Class CfnRemediationConfigurationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.config.CfnRemediationConfigurationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRemediationConfigurationMixinProps>
- Enclosing interface:
CfnRemediationConfigurationMixinProps
@Stability(Stable)
public static final class CfnRemediationConfigurationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRemediationConfigurationMixinProps>
A builder for
CfnRemediationConfigurationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRemediationConfigurationMixinProps.getAutomatic()automatic(IResolvable automatic) Sets the value ofCfnRemediationConfigurationMixinProps.getAutomatic()build()Builds the configured instance.configRuleName(String configRuleName) Sets the value ofCfnRemediationConfigurationMixinProps.getConfigRuleName()executionControls(CfnRemediationConfigurationPropsMixin.ExecutionControlsProperty executionControls) Sets the value ofCfnRemediationConfigurationMixinProps.getExecutionControls()executionControls(IResolvable executionControls) Sets the value ofCfnRemediationConfigurationMixinProps.getExecutionControls()maximumAutomaticAttempts(Number maximumAutomaticAttempts) Sets the value ofCfnRemediationConfigurationMixinProps.getMaximumAutomaticAttempts()parameters(Object parameters) Sets the value ofCfnRemediationConfigurationMixinProps.getParameters()resourceType(String resourceType) Sets the value ofCfnRemediationConfigurationMixinProps.getResourceType()retryAttemptSeconds(Number retryAttemptSeconds) Sets the value ofCfnRemediationConfigurationMixinProps.getRetryAttemptSeconds()Sets the value ofCfnRemediationConfigurationMixinProps.getTargetId()targetType(String targetType) Sets the value ofCfnRemediationConfigurationMixinProps.getTargetType()targetVersion(String targetVersion) Sets the value ofCfnRemediationConfigurationMixinProps.getTargetVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
automatic
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder automatic(Boolean automatic) Sets the value ofCfnRemediationConfigurationMixinProps.getAutomatic()- Parameters:
automatic- The remediation is triggered automatically.- Returns:
this
-
automatic
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder automatic(IResolvable automatic) Sets the value ofCfnRemediationConfigurationMixinProps.getAutomatic()- Parameters:
automatic- The remediation is triggered automatically.- Returns:
this
-
configRuleName
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder configRuleName(String configRuleName) Sets the value ofCfnRemediationConfigurationMixinProps.getConfigRuleName()- Parameters:
configRuleName- The name of the AWS Config rule.- Returns:
this
-
executionControls
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder executionControls(IResolvable executionControls) Sets the value ofCfnRemediationConfigurationMixinProps.getExecutionControls()- Parameters:
executionControls- An ExecutionControls object.- Returns:
this
-
executionControls
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder executionControls(CfnRemediationConfigurationPropsMixin.ExecutionControlsProperty executionControls) Sets the value ofCfnRemediationConfigurationMixinProps.getExecutionControls()- Parameters:
executionControls- An ExecutionControls object.- Returns:
this
-
maximumAutomaticAttempts
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder maximumAutomaticAttempts(Number maximumAutomaticAttempts) Sets the value ofCfnRemediationConfigurationMixinProps.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
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder parameters(Object parameters) Sets the value ofCfnRemediationConfigurationMixinProps.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 CfnRemediationConfigurationMixinProps.Builder resourceType(String resourceType) Sets the value ofCfnRemediationConfigurationMixinProps.getResourceType()- Parameters:
resourceType- The type of a resource.- Returns:
this
-
retryAttemptSeconds
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder retryAttemptSeconds(Number retryAttemptSeconds) Sets the value ofCfnRemediationConfigurationMixinProps.getRetryAttemptSeconds()- Parameters:
retryAttemptSeconds- Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts. IfMaximumAutomaticAttemptsremediation 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
RetryAttemptSecondsas 50 seconds andMaximumAutomaticAttemptsas 5, AWS Config will run auto-remediations 5 times within 50 seconds before adding a remediation exception to the resource.- Returns:
this
-
targetId
Sets the value ofCfnRemediationConfigurationMixinProps.getTargetId()- Parameters:
targetId- Target ID is the name of the SSM document.- Returns:
this
-
targetType
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder targetType(String targetType) Sets the value ofCfnRemediationConfigurationMixinProps.getTargetType()- Parameters:
targetType- The type of the target. Target executes remediation. For example, SSM document.- Returns:
this
-
targetVersion
@Stability(Stable) public CfnRemediationConfigurationMixinProps.Builder targetVersion(String targetVersion) Sets the value ofCfnRemediationConfigurationMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnRemediationConfigurationMixinProps>- Returns:
- a new instance of
CfnRemediationConfigurationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-