# CfnAutoScalingInstanceRefreshAlarmSpecification

Alarm specification for the AutoScalingInstanceRefresh update policy.

- Source: [`core/lib/cfn-resource-policy.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/core/lib/cfn-resource-policy.ts#L411)
- Type last changed: v2.263.0 · 31 Jul 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `alarms`: string[] — The names of the CloudWatch alarms to monitor.
