CfnRemediationConfigurationProps Struct
Properties for defining a CfnRemediationConfiguration.
| Source |
|---|
Example
// 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',
};
# 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"
)
// 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();
// 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"
};
// 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{} #configRuleNamestringconfig_rule_namestrconfigRuleNameStringConfigRuleNamestringConfigRuleName*string required #executionControlsoptionalIResolvable | CfnRemediationConfiguration.execution_controlsoptionaltyping.Union[IResolvable, ExecutionControlsProperty]executionControlsoptionalIResolvableExecutionControlsoptionalIResolvableExecutionControlsoptionalinterface{} #maximumAutomaticAttemptsoptionalnumbermaximum_automatic_attemptsoptionalint | floatmaximumAutomaticAttemptsoptionalNumberMaximumAutomaticAttemptsoptionaldoubleMaximumAutomaticAttemptsoptional*float64 #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{} #The type is a map of strings to RemediationParameterValue.
resourceTypeoptionalstringresource_typeoptionalstrresourceTypeoptionalStringResourceTypeoptionalstringResourceTypeoptional*string #retryAttemptSecondsoptionalnumberretry_attempt_secondsoptionalint | floatretryAttemptSecondsoptionalNumberRetryAttemptSecondsoptionaldoubleRetryAttemptSecondsoptional*float64 #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.
Target executes remediation. For example, SSM document.
targetVersionoptionalstringtarget_versionoptionalstrtargetVersionoptionalStringTargetVersionoptionalstringTargetVersionoptional*string #If you make backward incompatible changes to the SSM document, you must call PutRemediationConfiguration API again to ensure the remediations can run.