Class CfnPolicyAssociation
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.securityhub.CfnPolicyAssociation
- All Implemented Interfaces:
IInspectable,IPolicyAssociationRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:20.544Z")
@Stability(Stable)
public class CfnPolicyAssociation
extends CfnResource
implements IInspectable, IPolicyAssociationRef
The
AWS::SecurityHub::PolicyAssociation resource specifies associations for a configuration policy or a self-managed configuration.
You can associate a AWS Security Hub configuration policy or self-managed configuration with the organization root, organizational units (OUs), or AWS accounts . After a successful association, the configuration policy takes effect in the specified targets. For more information, see Creating and associating Security Hub configuration policies in the AWS Security Hub User Guide .
Example:
// 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.*;
CfnPolicyAssociation cfnPolicyAssociation = CfnPolicyAssociation.Builder.create(this, "MyCfnPolicyAssociation")
.configurationPolicyId("configurationPolicyId")
.targetId("targetId")
.targetType("targetType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.securityhub.IPolicyAssociationRef
IPolicyAssociationRef.Jsii$Default, IPolicyAssociationRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnPolicyAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnPolicyAssociation(software.amazon.jsii.JsiiObjectRef objRef) CfnPolicyAssociation(software.constructs.Construct scope, String id, CfnPolicyAssociationProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe association identifier, formatted asTargetType/TargetId.The current status of the association between the specified target and the configuration.The explanation for aFAILEDvalue forAssociationStatus.Indicates whether the association between the specified target and the configuration was directly applied by the AWS Security Hub delegated administrator or inherited from a parent.The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated.The universally unique identifier (UUID) of the configuration policy.A reference to a PolicyAssociation resource.The identifier of the target account, organizational unit, or the root.Specifies whether the target is an AWS account , organizational unit, or the root.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetConfigurationPolicyId(String value) The universally unique identifier (UUID) of the configuration policy.voidsetTargetId(String value) The identifier of the target account, organizational unit, or the root.voidsetTargetType(String value) Specifies whether the target is an AWS account , organizational unit, or the root.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnPolicyAssociation
protected CfnPolicyAssociation(software.amazon.jsii.JsiiObjectRef objRef) -
CfnPolicyAssociation
protected CfnPolicyAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnPolicyAssociation
@Stability(Stable) public CfnPolicyAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnPolicyAssociationProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAssociationIdentifier
The association identifier, formatted asTargetType/TargetId.For example,
ACCOUNT/123456789012. -
getAttrAssociationStatus
The current status of the association between the specified target and the configuration. -
getAttrAssociationStatusMessage
The explanation for aFAILEDvalue forAssociationStatus. -
getAttrAssociationType
Indicates whether the association between the specified target and the configuration was directly applied by the AWS Security Hub delegated administrator or inherited from a parent. -
getAttrUpdatedAt
The date and time, in UTC and ISO 8601 format, that the configuration policy association was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getPolicyAssociationRef
A reference to a PolicyAssociation resource.- Specified by:
getPolicyAssociationRefin interfaceIPolicyAssociationRef
-
getConfigurationPolicyId
The universally unique identifier (UUID) of the configuration policy. -
setConfigurationPolicyId
The universally unique identifier (UUID) of the configuration policy. -
getTargetId
The identifier of the target account, organizational unit, or the root. -
setTargetId
The identifier of the target account, organizational unit, or the root. -
getTargetType
Specifies whether the target is an AWS account , organizational unit, or the root. -
setTargetType
Specifies whether the target is an AWS account , organizational unit, or the root.
-