Class CfnRemediationConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRemediationConfiguration>
- Enclosing class:
CfnRemediationConfiguration
CfnRemediationConfiguration
.-
Method Summary
Modifier and TypeMethodDescriptionThe remediation is triggered automatically.automatic
(IResolvable automatic) The remediation is triggered automatically.build()
configRuleName
(String configRuleName) The name of the AWS Config rule.executionControls
(IResolvable executionControls) An ExecutionControls object.executionControls
(CfnRemediationConfiguration.ExecutionControlsProperty executionControls) An ExecutionControls object.maximumAutomaticAttempts
(Number maximumAutomaticAttempts) The maximum number of failed attempts for auto-remediation.parameters
(Object parameters) An object of the RemediationParameterValue.resourceType
(String resourceType) The type of a resource.retryAttemptSeconds
(Number retryAttemptSeconds) Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.Target ID is the name of the SSM document.targetType
(String targetType) The type of the target.targetVersion
(String targetVersion) Version of the target.
-
Method Details
-
create
@Stability(Stable) public static CfnRemediationConfiguration.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnRemediationConfiguration.Builder
.
-
configRuleName
The name of the AWS Config rule.- Parameters:
configRuleName
- The name of the AWS Config rule. This parameter is required.- Returns:
this
- See Also:
-
targetId
Target ID is the name of the SSM document.- Parameters:
targetId
- Target ID is the name of the SSM document. This parameter is required.- Returns:
this
- See Also:
-
targetType
The type of the target.Target executes remediation. For example, SSM document.
- Parameters:
targetType
- The type of the target. This parameter is required.- Returns:
this
- See Also:
-
automatic
The remediation is triggered automatically.- Parameters:
automatic
- The remediation is triggered automatically. This parameter is required.- Returns:
this
- See Also:
-
automatic
The remediation is triggered automatically.- Parameters:
automatic
- The remediation is triggered automatically. This parameter is required.- Returns:
this
- See Also:
-
executionControls
@Stability(Stable) public CfnRemediationConfiguration.Builder executionControls(IResolvable executionControls) An ExecutionControls object.- Parameters:
executionControls
- An ExecutionControls object. This parameter is required.- Returns:
this
- See Also:
-
executionControls
@Stability(Stable) public CfnRemediationConfiguration.Builder executionControls(CfnRemediationConfiguration.ExecutionControlsProperty executionControls) An ExecutionControls object.- Parameters:
executionControls
- An ExecutionControls object. This parameter is required.- Returns:
this
- See Also:
-
maximumAutomaticAttempts
@Stability(Stable) public CfnRemediationConfiguration.Builder maximumAutomaticAttempts(Number maximumAutomaticAttempts) 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.
- Parameters:
maximumAutomaticAttempts
- The maximum number of failed attempts for auto-remediation. If you do not select a number, the default is 5. This parameter is required.- Returns:
this
- See Also:
-
parameters
An object of the RemediationParameterValue. For more information, see RemediationParameterValue .The type is a map of strings to RemediationParameterValue.
- Parameters:
parameters
- An object of the RemediationParameterValue. For more information, see RemediationParameterValue . This parameter is required.- Returns:
this
- See Also:
-
resourceType
The type of a resource.- Parameters:
resourceType
- The type of a resource. This parameter is required.- Returns:
this
- See Also:
-
retryAttemptSeconds
@Stability(Stable) public CfnRemediationConfiguration.Builder retryAttemptSeconds(Number retryAttemptSeconds) Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.If
MaximumAutomaticAttempts
remediation attempts have been made underRetryAttemptSeconds
, a remediation exception will be added to the resource. If you do not select a number, the default is 60 seconds.For example, if you specify
RetryAttemptSeconds
as 50 seconds andMaximumAutomaticAttempts
as 5, AWS Config will run auto-remediations 5 times within 50 seconds before adding a remediation exception to the resource.- Parameters:
retryAttemptSeconds
- Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts. This parameter is required.- Returns:
this
- See Also:
-
targetVersion
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.
- Parameters:
targetVersion
- Version of the target. For example, version of the SSM document. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRemediationConfiguration>
- Returns:
- a newly built instance of
CfnRemediationConfiguration
.
-