Class CfnConfigurationPolicy
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.CfnConfigurationPolicy
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IConfigurationPolicyRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:14.983Z")
@Stability(Stable)
public class CfnConfigurationPolicy
extends CfnResource
implements IInspectable, IConfigurationPolicyRef, ITaggableV2
The
AWS::SecurityHub::ConfigurationPolicy resource creates a central configuration policy with the defined settings.
Only the AWS Security Hub delegated administrator can create this resource in the home Region. For more information, see Central configuration in Security Hub 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.*;
CfnConfigurationPolicy cfnConfigurationPolicy = CfnConfigurationPolicy.Builder.create(this, "MyCfnConfigurationPolicy")
.configurationPolicy(PolicyProperty.builder()
.securityHub(SecurityHubPolicyProperty.builder()
.enabledStandardIdentifiers(List.of("enabledStandardIdentifiers"))
.securityControlsConfiguration(SecurityControlsConfigurationProperty.builder()
.disabledSecurityControlIdentifiers(List.of("disabledSecurityControlIdentifiers"))
.enabledSecurityControlIdentifiers(List.of("enabledSecurityControlIdentifiers"))
.securityControlCustomParameters(List.of(SecurityControlCustomParameterProperty.builder()
.parameters(Map.of(
"parametersKey", ParameterConfigurationProperty.builder()
.valueType("valueType")
// the properties below are optional
.value(ParameterValueProperty.builder()
.boolean(false)
.double(123)
.enum("enum")
.enumList(List.of("enumList"))
.integer(123)
.integerList(List.of(123))
.string("string")
.stringList(List.of("stringList"))
.build())
.build()))
.securityControlId("securityControlId")
.build()))
.build())
.serviceEnabled(false)
.build())
.build())
.name("name")
// the properties below are optional
.description("description")
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnConfigurationPolicy.static interfaceAn object that provides the current value of a security control parameter and identifies whether it has been customized.static interfaceAn object that includes the data type of a security control parameter and its current value.static interfaceAn object that defines how AWS Security Hub is configured.static interfaceA list of security controls and control parameter values that are included in a configuration policy.static interfaceAn object that defines which security controls are enabled in an AWS Security Hub configuration policy.static interfaceAn object that defines how AWS Security Hub is configured.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.securityhub.IConfigurationPolicyRef
IConfigurationPolicyRef.Jsii$Default, IConfigurationPolicyRef.Jsii$ProxyNested 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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnConfigurationPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConfigurationPolicy(software.amazon.jsii.JsiiObjectRef objRef) CfnConfigurationPolicy(software.constructs.Construct scope, String id, CfnConfigurationPolicyProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the configuration policy.The date and time, in UTC and ISO 8601 format.The universally unique identifier (UUID) of the configuration policy.Indicates whether the service that the configuration policy applies to is enabled in the policy.The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.Tag Manager which manages the tags for this resource.An object that defines how AWS Security Hub is configured.A reference to a ConfigurationPolicy resource.The description of the configuration policy.getName()The name of the configuration policy.getTags()User-defined tags associated with a configuration policy.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidAn object that defines how AWS Security Hub is configured.voidAn object that defines how AWS Security Hub is configured.voidsetDescription(String value) The description of the configuration policy.voidThe name of the configuration policy.voidUser-defined tags associated with a configuration policy.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, 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.awscdk.IEnvironmentAware
getEnvMethods 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
-
CfnConfigurationPolicy
protected CfnConfigurationPolicy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConfigurationPolicy
protected CfnConfigurationPolicy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConfigurationPolicy
@Stability(Stable) public CfnConfigurationPolicy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConfigurationPolicyProps 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.
-
getAttrArn
The ARN of the configuration policy. -
getAttrCreatedAt
The date and time, in UTC and ISO 8601 format. -
getAttrId
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. -
getAttrServiceEnabled
Indicates whether the service that the configuration policy applies to is enabled in the policy. -
getAttrUpdatedAt
The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConfigurationPolicyRef
A reference to a ConfigurationPolicy resource.- Specified by:
getConfigurationPolicyRefin interfaceIConfigurationPolicyRef
-
getConfigurationPolicy
An object that defines how AWS Security Hub is configured.Returns union: either
IResolvableorCfnConfigurationPolicy.PolicyProperty -
setConfigurationPolicy
An object that defines how AWS Security Hub is configured. -
setConfigurationPolicy
@Stability(Stable) public void setConfigurationPolicy(@NotNull CfnConfigurationPolicy.PolicyProperty value) An object that defines how AWS Security Hub is configured. -
getName
The name of the configuration policy. -
setName
The name of the configuration policy. -
getDescription
The description of the configuration policy. -
setDescription
The description of the configuration policy. -
getTags
User-defined tags associated with a configuration policy. -
setTags
User-defined tags associated with a configuration policy.
-