Skip to content
v2.278.0

CfnResourceAutoScalingCreationPolicy Struct ​

For an Auto Scaling group replacement update, specifies how many instances must signal success for the update to succeed.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const cfnResourceAutoScalingCreationPolicy: cdk.CfnResourceAutoScalingCreationPolicy = {
  minSuccessfulInstancesPercent: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

cfn_resource_auto_scaling_creation_policy = cdk.CfnResourceAutoScalingCreationPolicy(
    min_successful_instances_percent=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

CfnResourceAutoScalingCreationPolicy cfnResourceAutoScalingCreationPolicy = CfnResourceAutoScalingCreationPolicy.builder()
        .minSuccessfulInstancesPercent(123)
        .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;

var cfnResourceAutoScalingCreationPolicy = new CfnResourceAutoScalingCreationPolicy {
    MinSuccessfulInstancesPercent = 123
};
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 cdk "github.com/aws/aws-cdk-go/awscdk"

cfnResourceAutoScalingCreationPolicy := &CfnResourceAutoScalingCreationPolicy{
	MinSuccessfulInstancesPercent: jsii.Number(123),
}

Properties ​

minSuccessfulInstancesPercentoptionalnumbermin_successful_instances_percentoptionalint | floatminSuccessfulInstancesPercentoptionalNumberMinSuccessfulInstancesPercentoptionaldoubleMinSuccessfulInstancesPercentoptional*float64 #
Specifies the percentage of instances in an Auto Scaling replacement update that must signal success for the update to succeed.
notes

You can specify a value from 0 to 100. AWS CloudFormation rounds to the nearest tenth of a percent. For example, if you update five instances with a minimum successful percentage of 50, three instances must signal success. If an instance doesn't send a signal within the time specified by the Timeout property, AWS CloudFormation assumes that the instance wasn't created.