CustomPolicyDetailsProperty Struct
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 | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
enableDebugLogDeliveryoptionalboolean | IResolvableenable_debug_log_deliveryoptionaltyping.Union[bool, IResolvable]enableDebugLogDeliveryoptionalBooleanEnableDebugLogDeliveryoptionalboolEnableDebugLogDeliveryoptionalinterface{} #The boolean expression for enabling debug logging for your AWS Config Custom Policy rule.
The default value is false .
policyRuntimeoptionalstringpolicy_runtimeoptionalstrpolicyRuntimeoptionalStringPolicyRuntimeoptionalstringPolicyRuntimeoptional*string #The runtime system for your AWS Config Custom Policy rule.
notes
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 .
policyTextoptionalstringpolicy_textoptionalstrpolicyTextoptionalStringPolicyTextoptionalstringPolicyTextoptional*string #The policy definition containing the logic for your AWS Config Custom Policy rule.