@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.736Z") @Stability(value=Stable) public interface CfnRemediationConfigurationProps extends software.amazon.jsii.JsiiSerializable
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;
CfnRemediationConfigurationProps cfnRemediationConfigurationProps = CfnRemediationConfigurationProps.builder()
.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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRemediationConfigurationProps.Builder
A builder for
CfnRemediationConfigurationProps |
static class |
CfnRemediationConfigurationProps.Jsii$Proxy
An implementation for
CfnRemediationConfigurationProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnRemediationConfigurationProps.Builder |
builder() |
default Object |
getAutomatic()
The remediation is triggered automatically.
|
String |
getConfigRuleName()
The name of the AWS Config rule.
|
default Object |
getExecutionControls()
An ExecutionControls object.
|
default Number |
getMaximumAutomaticAttempts()
The maximum number of failed attempts for auto-remediation.
|
default Object |
getParameters()
An object of the RemediationParameterValue.
|
default String |
getResourceType()
The type of a resource.
|
default Number |
getRetryAttemptSeconds()
Maximum time in seconds that AWS Config runs auto-remediation.
|
String |
getTargetId()
Target ID is the name of the public document.
|
String |
getTargetType()
The type of the target.
|
default String |
getTargetVersion()
Version of the target.
|
@Stability(value=Stable) @NotNull String getConfigRuleName()
@Stability(value=Stable) @NotNull String getTargetId()
@Stability(value=Stable) @NotNull String getTargetType()
Target executes remediation. For example, SSM document.
@Stability(value=Stable) @Nullable default Object getAutomatic()
@Stability(value=Stable) @Nullable default Object getExecutionControls()
@Stability(value=Stable) @Nullable default Number getMaximumAutomaticAttempts()
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.
@Stability(value=Stable) @Nullable default Object getParameters()
The type is a map of strings to RemediationParameterValue.
@Stability(value=Stable) @Nullable default String getResourceType()
@Stability(value=Stable) @Nullable default Number getRetryAttemptSeconds()
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.
@Stability(value=Stable) @Nullable default String getTargetVersion()
If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.
@Stability(value=Stable) static CfnRemediationConfigurationProps.Builder builder()
Copyright © 2022. All rights reserved.