Skip to content
v2.278.0

CfnRemediationConfigurationProps Struct ​

Properties for defining a CfnRemediationConfiguration.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_config as config } from 'aws-cdk-lib';

declare const parameters: any;
const cfnRemediationConfigurationProps: config.CfnRemediationConfigurationProps = {
  configRuleName: 'configRuleName',
  targetId: 'targetId',
  targetType: 'targetType',

  // the properties below are optional
  automatic: false,
  executionControls: {
    ssmControls: {
      concurrentExecutionRatePercentage: 123,
      errorPercentage: 123,
    },
  },
  maximumAutomaticAttempts: 123,
  parameters: parameters,
  resourceType: 'resourceType',
  retryAttemptSeconds: 123,
  targetVersion: 'targetVersion',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_config as config

# parameters: Any

cfn_remediation_configuration_props = config.CfnRemediationConfigurationProps(
    config_rule_name="configRuleName",
    target_id="targetId",
    target_type="targetType",

    # the properties below are optional
    automatic=False,
    execution_controls=config.CfnRemediationConfiguration.ExecutionControlsProperty(
        ssm_controls=config.CfnRemediationConfiguration.SsmControlsProperty(
            concurrent_execution_rate_percentage=123,
            error_percentage=123
        )
    ),
    maximum_automatic_attempts=123,
    parameters=parameters,
    resource_type="resourceType",
    retry_attempt_seconds=123,
    target_version="targetVersion"
)
java
// 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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Config;

var parameters;

var cfnRemediationConfigurationProps = new CfnRemediationConfigurationProps {
    ConfigRuleName = "configRuleName",
    TargetId = "targetId",
    TargetType = "targetType",

    // the properties below are optional
    Automatic = false,
    ExecutionControls = new ExecutionControlsProperty {
        SsmControls = new SsmControlsProperty {
            ConcurrentExecutionRatePercentage = 123,
            ErrorPercentage = 123
        }
    },
    MaximumAutomaticAttempts = 123,
    Parameters = parameters,
    ResourceType = "resourceType",
    RetryAttemptSeconds = 123,
    TargetVersion = "targetVersion"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var parameters interface{}

cfnRemediationConfigurationProps := &CfnRemediationConfigurationProps{
	ConfigRuleName: jsii.String("configRuleName"),
	TargetId: jsii.String("targetId"),
	TargetType: jsii.String("targetType"),

	// the properties below are optional
	Automatic: jsii.Boolean(false),
	ExecutionControls: &ExecutionControlsProperty{
		SsmControls: &SsmControlsProperty{
			ConcurrentExecutionRatePercentage: jsii.Number(123),
			ErrorPercentage: jsii.Number(123),
		},
	},
	MaximumAutomaticAttempts: jsii.Number(123),
	Parameters: parameters,
	ResourceType: jsii.String("resourceType"),
	RetryAttemptSeconds: jsii.Number(123),
	TargetVersion: jsii.String("targetVersion"),
}

Properties ​

automaticoptionalboolean | IResolvableautomaticoptionaltyping.Union[bool, IResolvable]automaticoptionalBooleanAutomaticoptionalboolAutomaticoptionalinterface{} #
The remediation is triggered automatically.
configRuleNamestringconfig_rule_namestrconfigRuleNameStringConfigRuleNamestringConfigRuleName*string required #
The name of the AWS Config rule.
executionControlsoptionalIResolvable | CfnRemediationConfiguration.ExecutionControlsPropertyexecution_controlsoptionaltyping.Union[IResolvable, ExecutionControlsProperty]executionControlsoptionalIResolvableExecutionControlsoptionalIResolvableExecutionControlsoptionalinterface{} #
An ExecutionControls object.
maximumAutomaticAttemptsoptionalnumbermaximum_automatic_attemptsoptionalint | floatmaximumAutomaticAttemptsoptionalNumberMaximumAutomaticAttemptsoptionaldoubleMaximumAutomaticAttemptsoptional*float64 #
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.

parametersoptionalanyparametersoptionalAnyparametersoptionalObjectParametersoptionalobjectParametersoptionalinterface{} #
An object of the RemediationParameterValue. For more information, see RemediationParameterValue .

The type is a map of strings to RemediationParameterValue.

resourceTypeoptionalstringresource_typeoptionalstrresourceTypeoptionalStringResourceTypeoptionalstringResourceTypeoptional*string #
The type of a resource.
retryAttemptSecondsoptionalnumberretry_attempt_secondsoptionalint | floatretryAttemptSecondsoptionalNumberRetryAttemptSecondsoptionaldoubleRetryAttemptSecondsoptional*float64 #
Time window to determine whether or not to add a remediation exception to prevent infinite remediation attempts.
notes

If MaximumAutomaticAttempts remediation attempts have been made under RetryAttemptSeconds , 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 RetryAttemptSeconds as 50 seconds and MaximumAutomaticAttempts as 5, AWS Config will run auto-remediations 5 times within 50 seconds before adding a remediation exception to the resource.

targetIdstringtarget_idstrtargetIdStringTargetIdstringTargetId*string required #
Target ID is the name of the SSM document.
targetTypestringtarget_typestrtargetTypeStringTargetTypestringTargetType*string required #
The type of the target.

Target executes remediation. For example, SSM document.

targetVersionoptionalstringtarget_versionoptionalstrtargetVersionoptionalStringTargetVersionoptionalstringTargetVersionoptional*string #
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.