# AlarmProperty

The `AWS::ApplicationInsights::Application Alarm` property type defines a CloudWatch alarm to be monitored for the component.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const alarmProperty: applicationinsights.CfnApplication.AlarmProperty = {
  alarmName: 'alarmName',

  // the properties below are optional
  severity: 'severity',
};
```

Python:

```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_applicationinsights as applicationinsights

alarm_property = applicationinsights.CfnApplication.AlarmProperty(
    alarm_name="alarmName",

    # the properties below are optional
    severity="severity"
)
```

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.services.applicationinsights.*;

AlarmProperty alarmProperty = AlarmProperty.builder()
        .alarmName("alarmName")

        // the properties below are optional
        .severity("severity")
        .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.AWS.ApplicationInsights;

var alarmProperty = new AlarmProperty {
    AlarmName = "alarmName",

    // the properties below are optional
    Severity = "severity"
};
```

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 "github.com/aws/aws-cdk-go/awscdk"

alarmProperty := &AlarmProperty{
	AlarmName: jsii.String("alarmName"),

	// the properties below are optional
	Severity: jsii.String("severity"),
}
```

## Properties

- `alarmName`: string (required) — The name of the CloudWatch alarm to be monitored for the component.

- `severity`: string — Indicates the degree of outage when the alarm goes off.
