Class CfnRemediationConfiguration
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::Config::RemediationConfiguration
.
An object that represents the details about the remediation configuration that includes the remediation action, parameters, and data to execute the action.
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.config.*; Object parameters; CfnRemediationConfiguration cfnRemediationConfiguration = CfnRemediationConfiguration.Builder.create(this, "MyCfnRemediationConfiguration") .configRuleName("configRuleName") .targetId("targetId") .targetType("targetType") // the properties below are optional .automatic(false) .executionControls(ExecutionControlsProperty.builder() .ssmControls(SsmControlsProperty.builder() .concurrentExecutionRatePercentage(123) .errorPercentage(123) .build()) .build()) .maximumAutomaticAttempts(123) .parameters(parameters) .resourceType("resourceType") .retryAttemptSeconds(123) .targetVersion("targetVersion") .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnRemediationConfiguration
.static interface
An ExecutionControls object.static interface
The value is either a dynamic (resource) value or a static value.static interface
The dynamic value of the resource.static interface
AWS Systems Manager (SSM) specific remediation controls.static interface
The static value of the resource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.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
ModifierConstructorDescriptionCfnRemediationConfiguration
(Construct scope, String id, CfnRemediationConfigurationProps props) Create a newAWS::Config::RemediationConfiguration
.protected
CfnRemediationConfiguration
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnRemediationConfiguration
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe remediation is triggered automatically.The name of the AWS Config rule.An ExecutionControls object.The maximum number of failed attempts for auto-remediation.An object of the RemediationParameterValue.The type of a resource.Maximum time in seconds that AWS Config runs auto-remediation.Target ID is the name of the SSM document.The type of the target.Version of the target.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAutomatic
(Boolean value) The remediation is triggered automatically.void
setAutomatic
(IResolvable value) The remediation is triggered automatically.void
setConfigRuleName
(String value) The name of the AWS Config rule.void
setExecutionControls
(IResolvable value) An ExecutionControls object.void
An ExecutionControls object.void
The maximum number of failed attempts for auto-remediation.void
setParameters
(Object value) An object of the RemediationParameterValue.void
setResourceType
(String value) The type of a resource.void
setRetryAttemptSeconds
(Number value) Maximum time in seconds that AWS Config runs auto-remediation.void
setTargetId
(String value) Target ID is the name of the SSM document.void
setTargetType
(String value) The type of the target.void
setTargetVersion
(String value) Version of the target.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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
-
CfnRemediationConfiguration
protected CfnRemediationConfiguration(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRemediationConfiguration
protected CfnRemediationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRemediationConfiguration
@Stability(Stable) public CfnRemediationConfiguration(@NotNull Construct scope, @NotNull String id, @NotNull CfnRemediationConfigurationProps props) Create a newAWS::Config::RemediationConfiguration
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getConfigRuleName
The name of the AWS Config rule. -
setConfigRuleName
The name of the AWS Config rule. -
getParameters
An object of the RemediationParameterValue. For more information, see RemediationParameterValue .The type is a map of strings to RemediationParameterValue.
-
setParameters
An object of the RemediationParameterValue. For more information, see RemediationParameterValue .The type is a map of strings to RemediationParameterValue.
-
getTargetId
Target ID is the name of the SSM document. -
setTargetId
Target ID is the name of the SSM document. -
getTargetType
The type of the target.Target executes remediation. For example, SSM document.
-
setTargetType
The type of the target.Target executes remediation. For example, SSM document.
-
getAutomatic
The remediation is triggered automatically. -
setAutomatic
The remediation is triggered automatically. -
setAutomatic
The remediation is triggered automatically. -
getExecutionControls
An ExecutionControls object. -
setExecutionControls
An ExecutionControls object. -
setExecutionControls
@Stability(Stable) public void setExecutionControls(@Nullable CfnRemediationConfiguration.ExecutionControlsProperty value) An ExecutionControls object. -
getMaximumAutomaticAttempts
The maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5.For example, if you specify MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, AWS Config will put a RemediationException on your behalf for the failing resource after the 5th failed attempt within 50 seconds.
-
setMaximumAutomaticAttempts
The maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5.For example, if you specify MaximumAutomaticAttempts as 5 with RetryAttemptSeconds as 50 seconds, AWS Config will put a RemediationException on your behalf for the failing resource after the 5th failed attempt within 50 seconds.
-
getResourceType
The type of a resource. -
setResourceType
The type of a resource. -
getRetryAttemptSeconds
Maximum time in seconds that AWS Config runs auto-remediation.If you do not select a number, the default is 60 seconds.
For example, if you specify RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, AWS Config will run auto-remediations 5 times within 50 seconds before throwing an exception.
-
setRetryAttemptSeconds
Maximum time in seconds that AWS Config runs auto-remediation.If you do not select a number, the default is 60 seconds.
For example, if you specify RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, AWS Config will run auto-remediations 5 times within 50 seconds before throwing an exception.
-
getTargetVersion
Version of the target. For example, version of the SSM document.If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.
-
setTargetVersion
Version of the target. For example, version of the SSM document.If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.
-