Skip to content
v2.274.0

CfnPolicyAssociationProps Struct ​

Properties for defining a CfnPolicyAssociation.

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',
};

Properties ​

configurationPolicyIdstringconfiguration_policy_idstrconfigurationPolicyIdStringConfigurationPolicyIdstringConfigurationPolicyId*stringrequired#
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 .

targetIdstringtarget_idstrtargetIdStringTargetIdstringTargetId*stringrequired#
The identifier of the target account, organizational unit, or the root.
targetTypestringtarget_typestrtargetTypeStringTargetTypestringTargetType*stringrequired#
Specifies whether the target is an AWS account , organizational unit, or the root.