PolicyConfigurationProperty Struct
Configuration settings for policy behavior.
| 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_networksecuritymanager as networksecuritymanager } from 'aws-cdk-lib';
const policyConfigurationProperty: networksecuritymanager.CfnPolicy.PolicyConfigurationProperty = {
remediationEnabled: false,
resourcesCleanUp: false,
wafConfig: {
conflictResolution: 'conflictResolution',
existingCustomerWebAclResolution: 'existingCustomerWebAclResolution',
},
};
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_networksecuritymanager as networksecuritymanager
policy_configuration_property = networksecuritymanager.CfnPolicy.PolicyConfigurationProperty(
remediation_enabled=False,
resources_clean_up=False,
waf_config=networksecuritymanager.CfnPolicy.WafConfigProperty(
conflict_resolution="conflictResolution",
existing_customer_web_acl_resolution="existingCustomerWebAclResolution"
)
)
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.networksecuritymanager.*;
PolicyConfigurationProperty policyConfigurationProperty = PolicyConfigurationProperty.builder()
.remediationEnabled(false)
.resourcesCleanUp(false)
.wafConfig(WafConfigProperty.builder()
.conflictResolution("conflictResolution")
.existingCustomerWebAclResolution("existingCustomerWebAclResolution")
.build())
.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.NetworkSecurityManager;
var policyConfigurationProperty = new PolicyConfigurationProperty {
RemediationEnabled = false,
ResourcesCleanUp = false,
WafConfig = new WafConfigProperty {
ConflictResolution = "conflictResolution",
ExistingCustomerWebAclResolution = "existingCustomerWebAclResolution"
}
};
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"
policyConfigurationProperty := &PolicyConfigurationProperty{
RemediationEnabled: jsii.Boolean(false),
ResourcesCleanUp: jsii.Boolean(false),
WafConfig: &WafConfigProperty{
ConflictResolution: jsii.String("conflictResolution"),
ExistingCustomerWebAclResolution: jsii.String("existingCustomerWebAclResolution"),
},
}
Properties
remediationEnabledoptionalboolean | IResolvableremediation_enabledoptionaltyping.Union[bool, IResolvable]remediationEnabledoptionalBooleanRemediationEnabledoptionalboolRemediationEnabledoptionalinterface{} #Controls automatic remediation of non-compliant resources.
resourcesCleanUpoptionalboolean | IResolvableresources_clean_upoptionaltyping.Union[bool, IResolvable]resourcesCleanUpoptionalBooleanResourcesCleanUpoptionalboolResourcesCleanUpoptionalinterface{} #Controls automatic cleanup of unused resources.
wafConfigoptionalIResolvable | CfnPolicy.WafConfigPropertywaf_configoptionaltyping.Union[IResolvable, WafConfigProperty]wafConfigoptionalIResolvableWafConfigoptionalIResolvableWafConfigoptionalinterface{} #WAF-specific policy settings.
Populated only for WAF firewall type policies.