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:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:51.292Z")
@Stability(Stable)
public class CfnConfigurationPolicy
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnConfigurationPolicy
.static interface
An object that provides the current value of a security control parameter and identifies whether it has been customized.static interface
An object that includes the data type of a security control parameter and its current value.static interface
An object that defines how AWS Security Hub is configured.static interface
A list of security controls and control parameter values that are included in a configuration policy.static interface
An object that defines which security controls are enabled in an AWS Security Hub configuration policy.static interface
An object that defines how AWS Security Hub is configured.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
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnConfigurationPolicy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnConfigurationPolicy
(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.The description of the configuration policy.getName()
The name of the configuration policy.getTags()
User-defined tags associated with a configuration policy.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
An object that defines how AWS Security Hub is configured.void
An object that defines how AWS Security Hub is configured.void
setDescription
(String value) The description of the configuration policy.void
The name of the configuration policy.void
User-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, 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
-
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:
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.
-
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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getConfigurationPolicy
An object that defines how AWS Security Hub is configured. -
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.
-