@Stability(value=Stable) public static final class CfnRemediationConfigurationProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRemediationConfigurationProps>
CfnRemediationConfigurationProps
Constructor and Description |
---|
Builder() |
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder configRuleName(String configRuleName)
CfnRemediationConfigurationProps.getConfigRuleName()
configRuleName
- The name of the AWS Config rule. This parameter is required.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder targetId(String targetId)
CfnRemediationConfigurationProps.getTargetId()
targetId
- Target ID is the name of the SSM document. This parameter is required.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder targetType(String targetType)
CfnRemediationConfigurationProps.getTargetType()
targetType
- The type of the target. This parameter is required.
Target executes remediation. For example, SSM document.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder automatic(Boolean automatic)
CfnRemediationConfigurationProps.getAutomatic()
automatic
- The remediation is triggered automatically.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder automatic(IResolvable automatic)
CfnRemediationConfigurationProps.getAutomatic()
automatic
- The remediation is triggered automatically.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder executionControls(IResolvable executionControls)
CfnRemediationConfigurationProps.getExecutionControls()
executionControls
- An ExecutionControls object.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder executionControls(CfnRemediationConfiguration.ExecutionControlsProperty executionControls)
CfnRemediationConfigurationProps.getExecutionControls()
executionControls
- An ExecutionControls object.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder maximumAutomaticAttempts(Number maximumAutomaticAttempts)
CfnRemediationConfigurationProps.getMaximumAutomaticAttempts()
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.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder parameters(Object parameters)
CfnRemediationConfigurationProps.getParameters()
parameters
- An object of the RemediationParameterValue. For more information, see [RemediationParameterValue](https://docs.aws.amazon.com/config/latest/APIReference/API_RemediationParameterValue.html) .
The type is a map of strings to RemediationParameterValue.
this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder resourceType(String resourceType)
CfnRemediationConfigurationProps.getResourceType()
resourceType
- The type of a resource.this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder retryAttemptSeconds(Number retryAttemptSeconds)
CfnRemediationConfigurationProps.getRetryAttemptSeconds()
retryAttemptSeconds
- 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.
this
@Stability(value=Stable) public CfnRemediationConfigurationProps.Builder targetVersion(String targetVersion)
CfnRemediationConfigurationProps.getTargetVersion()
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.
this
@Stability(value=Stable) public CfnRemediationConfigurationProps build()
build
in interface software.amazon.jsii.Builder<CfnRemediationConfigurationProps>
CfnRemediationConfigurationProps
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.