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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnRemediationConfiguration.static interfaceAn ExecutionControls object.static interfaceThe value is either a dynamic (resource) value or a static value.static interfaceThe dynamic value of the resource.static interfaceAWS Systems Manager (SSM) specific remediation controls.static interfaceThe static value of the resource.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnRemediationConfiguration(Construct scope, String id, CfnRemediationConfigurationProps props) Create a newAWS::Config::RemediationConfiguration.protectedCfnRemediationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnRemediationConfiguration(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAutomatic(Boolean value) The remediation is triggered automatically.voidsetAutomatic(IResolvable value) The remediation is triggered automatically.voidsetConfigRuleName(String value) The name of the AWS Config rule.voidsetExecutionControls(IResolvable value) An ExecutionControls object.voidAn ExecutionControls object.voidThe maximum number of failed attempts for auto-remediation.voidsetParameters(Object value) An object of the RemediationParameterValue.voidsetResourceType(String value) The type of a resource.voidsetRetryAttemptSeconds(Number value) Maximum time in seconds that AWS Config runs auto-remediation.voidsetTargetId(String value) Target ID is the name of the SSM document.voidsetTargetType(String value) The type of the target.voidsetTargetVersion(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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.
-