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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:09.553Z")
@Stability(Stable)
public class CfnPolicyAssociation
extends CfnResource
implements IInspectable
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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnPolicyAssociation
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnPolicyAssociation
(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 aFAILED
value 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.The identifier of the target account, organizational unit, or the root.Specifies whether the target is an AWS account , organizational unit, or the root.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setConfigurationPolicyId
(String value) The universally unique identifier (UUID) of the configuration policy.void
setTargetId
(String value) The identifier of the target account, organizational unit, or the root.void
setTargetType
(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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in 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 aFAILED
value 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:
getCfnProperties
in classCfnResource
-
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.
-