# CustomPolicyDetailsProperty

Provides the CustomPolicyDetails, the rule owner ( `AWS` for managed rules, `CUSTOM_POLICY` for Custom Policy rules, and `CUSTOM_LAMBDA` for Custom Lambda rules), the rule identifier, and the events that cause the evaluation of your AWS resources.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';
const customPolicyDetailsProperty: config.CfnConfigRule.CustomPolicyDetailsProperty = {
  enableDebugLogDelivery: false,
  policyRuntime: 'policyRuntime',
  policyText: 'policyText',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_config as config

custom_policy_details_property = config.CfnConfigRule.CustomPolicyDetailsProperty(
    enable_debug_log_delivery=False,
    policy_runtime="policyRuntime",
    policy_text="policyText"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;

CustomPolicyDetailsProperty customPolicyDetailsProperty = CustomPolicyDetailsProperty.builder()
        .enableDebugLogDelivery(false)
        .policyRuntime("policyRuntime")
        .policyText("policyText")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;

var customPolicyDetailsProperty = new CustomPolicyDetailsProperty {
    EnableDebugLogDelivery = false,
    PolicyRuntime = "policyRuntime",
    PolicyText = "policyText"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customPolicyDetailsProperty := &CustomPolicyDetailsProperty{
	EnableDebugLogDelivery: jsii.Boolean(false),
	PolicyRuntime: jsii.String("policyRuntime"),
	PolicyText: jsii.String("policyText"),
}
```

## Properties

- `enableDebugLogDelivery`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.

  The default value is `false` .

- `policyRuntime`: string — The runtime system for your AWS Config Custom Policy rule.

  Guard is a policy-as-code language that allows you to write policies that are enforced by AWS Config Custom Policy rules. For more information about Guard, see the [Guard GitHub Repository](https://docs.aws.amazon.com/https://github.com/aws-cloudformation/cloudformation-guard) .

- `policyText`: string — The policy definition containing the logic for your AWS Config Custom Policy rule.
