@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.734Z") @Stability(value=Stable) public class CfnRemediationConfiguration extends CfnResource implements IInspectable
An object that represents the details about the remediation configuration that includes the remediation action, parameters, and data to execute the action.
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;
CfnRemediationConfiguration cfnRemediationConfiguration = CfnRemediationConfiguration.Builder.create(this, "MyCfnRemediationConfiguration")
.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 | Class and Description |
|---|---|
static class |
CfnRemediationConfiguration.Builder
A fluent builder for
CfnRemediationConfiguration. |
static interface |
CfnRemediationConfiguration.ExecutionControlsProperty
An ExecutionControls object.
|
static interface |
CfnRemediationConfiguration.RemediationParameterValueProperty
The value is either a dynamic (resource) value or a static value.
|
static interface |
CfnRemediationConfiguration.ResourceValueProperty
The dynamic value of the resource.
|
static interface |
CfnRemediationConfiguration.SsmControlsProperty
AWS Systems Manager (SSM) specific remediation controls.
|
static interface |
CfnRemediationConfiguration.StaticValueProperty
The static value of the resource.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnRemediationConfiguration(software.constructs.Construct scope,
String id,
CfnRemediationConfigurationProps props)
Create a new `AWS::Config::RemediationConfiguration`.
|
protected |
CfnRemediationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnRemediationConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAutomatic()
The remediation is triggered automatically.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getConfigRuleName()
The name of the AWS Config rule.
|
Object |
getExecutionControls()
An ExecutionControls object.
|
Number |
getMaximumAutomaticAttempts()
The maximum number of failed attempts for auto-remediation.
|
Object |
getParameters()
An object of the RemediationParameterValue.
|
String |
getResourceType()
The type of a resource.
|
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.
|
String |
getTargetVersion()
Version of the target.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAutomatic(Boolean value)
The remediation is triggered automatically.
|
void |
setAutomatic(IResolvable value)
The remediation is triggered automatically.
|
void |
setConfigRuleName(String value)
The name of the AWS Config rule.
|
void |
setExecutionControls(CfnRemediationConfiguration.ExecutionControlsProperty value)
An ExecutionControls object.
|
void |
setExecutionControls(IResolvable value)
An ExecutionControls object.
|
void |
setMaximumAutomaticAttempts(Number value)
The maximum number of failed attempts for auto-remediation.
|
void |
setParameters(Object value)
An object of the RemediationParameterValue.
|
void |
setResourceType(String value)
The type of a resource.
|
void |
setRetryAttemptSeconds(Number value)
Maximum time in seconds that AWS Config runs auto-remediation.
|
void |
setTargetId(String value)
Target ID is the name of the public document.
|
void |
setTargetType(String value)
The type of the target.
|
void |
setTargetVersion(String value)
Version of the target.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnRemediationConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnRemediationConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnRemediationConfiguration(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnRemediationConfigurationProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getConfigRuleName()
@Stability(value=Stable)
public void setConfigRuleName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getParameters()
The type is a map of strings to RemediationParameterValue.
@Stability(value=Stable)
public void setParameters(@NotNull
Object value)
The type is a map of strings to RemediationParameterValue.
@Stability(value=Stable) @NotNull public String getTargetId()
@Stability(value=Stable)
public void setTargetId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getTargetType()
Target executes remediation. For example, SSM document.
@Stability(value=Stable)
public void setTargetType(@NotNull
String value)
Target executes remediation. For example, SSM document.
@Stability(value=Stable) @Nullable public Object getAutomatic()
@Stability(value=Stable)
public void setAutomatic(@Nullable
Boolean value)
@Stability(value=Stable)
public void setAutomatic(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getExecutionControls()
@Stability(value=Stable)
public void setExecutionControls(@Nullable
CfnRemediationConfiguration.ExecutionControlsProperty value)
@Stability(value=Stable)
public void setExecutionControls(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public 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)
public void setMaximumAutomaticAttempts(@Nullable
Number value)
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 public String getResourceType()
@Stability(value=Stable)
public void setResourceType(@Nullable
String value)
@Stability(value=Stable) @Nullable public 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)
public void setRetryAttemptSeconds(@Nullable
Number value)
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 public 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)
public void setTargetVersion(@Nullable
String value)
If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.
Copyright © 2022. All rights reserved.