Class CfnRemediationConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.config.CfnRemediationConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRemediationConfigurationProps>
- Enclosing interface:
CfnRemediationConfigurationProps
@Stability(Stable)
public static final class CfnRemediationConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRemediationConfigurationProps>
A builder for
CfnRemediationConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRemediationConfigurationProps.getAutomatic()
automatic
(IResolvable automatic) Sets the value ofCfnRemediationConfigurationProps.getAutomatic()
build()
Builds the configured instance.configRuleName
(String configRuleName) Sets the value ofCfnRemediationConfigurationProps.getConfigRuleName()
executionControls
(IResolvable executionControls) Sets the value ofCfnRemediationConfigurationProps.getExecutionControls()
executionControls
(CfnRemediationConfiguration.ExecutionControlsProperty executionControls) Sets the value ofCfnRemediationConfigurationProps.getExecutionControls()
maximumAutomaticAttempts
(Number maximumAutomaticAttempts) Sets the value ofCfnRemediationConfigurationProps.getMaximumAutomaticAttempts()
parameters
(Object parameters) Sets the value ofCfnRemediationConfigurationProps.getParameters()
resourceType
(String resourceType) Sets the value ofCfnRemediationConfigurationProps.getResourceType()
retryAttemptSeconds
(Number retryAttemptSeconds) Sets the value ofCfnRemediationConfigurationProps.getRetryAttemptSeconds()
Sets the value ofCfnRemediationConfigurationProps.getTargetId()
targetType
(String targetType) Sets the value ofCfnRemediationConfigurationProps.getTargetType()
targetVersion
(String targetVersion) Sets the value ofCfnRemediationConfigurationProps.getTargetVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configRuleName
@Stability(Stable) public CfnRemediationConfigurationProps.Builder configRuleName(String configRuleName) Sets the value ofCfnRemediationConfigurationProps.getConfigRuleName()
- Parameters:
configRuleName
- The name of the AWS Config rule. This parameter is required.- Returns:
this
-
targetId
Sets the value ofCfnRemediationConfigurationProps.getTargetId()
- Parameters:
targetId
- Target ID is the name of the SSM document. This parameter is required.- Returns:
this
-
targetType
Sets the value ofCfnRemediationConfigurationProps.getTargetType()
- Parameters:
targetType
- The type of the target. This parameter is required. Target executes remediation. For example, SSM document.- Returns:
this
-
automatic
Sets the value ofCfnRemediationConfigurationProps.getAutomatic()
- Parameters:
automatic
- The remediation is triggered automatically.- Returns:
this
-
automatic
Sets the value ofCfnRemediationConfigurationProps.getAutomatic()
- Parameters:
automatic
- The remediation is triggered automatically.- Returns:
this
-
executionControls
@Stability(Stable) public CfnRemediationConfigurationProps.Builder executionControls(IResolvable executionControls) Sets the value ofCfnRemediationConfigurationProps.getExecutionControls()
- Parameters:
executionControls
- An ExecutionControls object.- Returns:
this
-
executionControls
@Stability(Stable) public CfnRemediationConfigurationProps.Builder executionControls(CfnRemediationConfiguration.ExecutionControlsProperty executionControls) Sets the value ofCfnRemediationConfigurationProps.getExecutionControls()
- Parameters:
executionControls
- An ExecutionControls object.- Returns:
this
-
maximumAutomaticAttempts
@Stability(Stable) public CfnRemediationConfigurationProps.Builder maximumAutomaticAttempts(Number maximumAutomaticAttempts) Sets the value ofCfnRemediationConfigurationProps.getMaximumAutomaticAttempts()
- Parameters:
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.- Returns:
this
-
parameters
Sets the value ofCfnRemediationConfigurationProps.getParameters()
- Parameters:
parameters
- An object of the RemediationParameterValue. For more information, see RemediationParameterValue .The type is a map of strings to RemediationParameterValue.
- Returns:
this
-
resourceType
@Stability(Stable) public CfnRemediationConfigurationProps.Builder resourceType(String resourceType) Sets the value ofCfnRemediationConfigurationProps.getResourceType()
- Parameters:
resourceType
- The type of a resource.- Returns:
this
-
retryAttemptSeconds
@Stability(Stable) public CfnRemediationConfigurationProps.Builder retryAttemptSeconds(Number retryAttemptSeconds) Sets the value ofCfnRemediationConfigurationProps.getRetryAttemptSeconds()
- Parameters:
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.
- Returns:
this
-
targetVersion
@Stability(Stable) public CfnRemediationConfigurationProps.Builder targetVersion(String targetVersion) Sets the value ofCfnRemediationConfigurationProps.getTargetVersion()
- Parameters:
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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRemediationConfigurationProps>
- Returns:
- a new instance of
CfnRemediationConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-