CfnPolicyAssociationProps Struct
Properties for defining a CfnPolicyAssociation.
| 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_securityhub as securityhub } from 'aws-cdk-lib';
const cfnPolicyAssociationProps: securityhub.CfnPolicyAssociationProps = {
configurationPolicyId: 'configurationPolicyId',
targetId: 'targetId',
targetType: 'targetType',
};
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_securityhub as securityhub
cfn_policy_association_props = securityhub.CfnPolicyAssociationProps(
configuration_policy_id="configurationPolicyId",
target_id="targetId",
target_type="targetType"
)
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.securityhub.*;
CfnPolicyAssociationProps cfnPolicyAssociationProps = CfnPolicyAssociationProps.builder()
.configurationPolicyId("configurationPolicyId")
.targetId("targetId")
.targetType("targetType")
.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.SecurityHub;
var cfnPolicyAssociationProps = new CfnPolicyAssociationProps {
ConfigurationPolicyId = "configurationPolicyId",
TargetId = "targetId",
TargetType = "targetType"
};
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"
cfnPolicyAssociationProps := &CfnPolicyAssociationProps{
ConfigurationPolicyId: jsii.String("configurationPolicyId"),
TargetId: jsii.String("targetId"),
TargetType: jsii.String("targetType"),
}
Properties
configurationPolicyIdstringconfiguration_policy_idstrconfigurationPolicyIdStringConfigurationPolicyIdstringConfigurationPolicyId*string required #The universally unique identifier (UUID) of the configuration policy.
A self-managed configuration has no UUID. The identifier of a self-managed configuration is SELF_MANAGED_SECURITY_HUB .
The identifier of the target account, organizational unit, or the root.
Specifies whether the target is an AWS account , organizational unit, or the root.