# MonitorProperty

Amazon CloudWatch alarms to monitor during the deployment process.

- Source: Generated at build time
- Type last changed: v2.127.0 · 10 Feb 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';
const monitorProperty: appconfig.CfnEnvironment.MonitorProperty = {
  alarmArn: 'alarmArn',

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

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_appconfig as appconfig

monitor_property = appconfig.CfnEnvironment.MonitorProperty(
    alarm_arn="alarmArn",

    # the properties below are optional
    alarm_role_arn="alarmRoleArn"
)
```

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.appconfig.*;

MonitorProperty monitorProperty = MonitorProperty.builder()
        .alarmArn("alarmArn")

        // the properties below are optional
        .alarmRoleArn("alarmRoleArn")
        .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.AppConfig;

var monitorProperty = new MonitorProperty {
    AlarmArn = "alarmArn",

    // the properties below are optional
    AlarmRoleArn = "alarmRoleArn"
};
```

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"

monitorProperty := &MonitorProperty{
	AlarmArn: jsii.String("alarmArn"),

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

## Properties

- `alarmArn`: string (required) — Amazon Resource Name (ARN) of the Amazon CloudWatch alarm.

- `alarmRoleArn`: string — ARN of an AWS Identity and Access Management (IAM) role for AWS AppConfig to monitor `AlarmArn` .
