Skip to content
v2.277.0

CfnAutoScalingInstanceRefreshAlarmSpecification Struct ​

Alarm specification for the AutoScalingInstanceRefresh update policy.

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 cfnAutoScalingInstanceRefreshAlarmSpecification: cdk.CfnAutoScalingInstanceRefreshAlarmSpecification = {
  alarms: ['alarms'],
};
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_auto_scaling_instance_refresh_alarm_specification = cdk.CfnAutoScalingInstanceRefreshAlarmSpecification(
    alarms=["alarms"]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

CfnAutoScalingInstanceRefreshAlarmSpecification cfnAutoScalingInstanceRefreshAlarmSpecification = CfnAutoScalingInstanceRefreshAlarmSpecification.builder()
        .alarms(List.of("alarms"))
        .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 cfnAutoScalingInstanceRefreshAlarmSpecification = new CfnAutoScalingInstanceRefreshAlarmSpecification {
    Alarms = new [] { "alarms" }
};
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"

cfnAutoScalingInstanceRefreshAlarmSpecification := &CfnAutoScalingInstanceRefreshAlarmSpecification{
	Alarms: []*string{
		jsii.String("alarms"),
	},
}

Properties ​

alarmsoptionalstring[]alarmsoptionaltyping.List[str]alarmsoptionalList<String>Alarmsoptionalstring[]Alarmsoptional*[]*string#
The names of the CloudWatch alarms to monitor.