# NotificationConfigurationProperty

A structure that specifies an Amazon SNS notification configuration for the `NotificationConfigurations` property of the [AWS::AutoScaling::AutoScalingGroup](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-autoscalinggroup.html) resource.

For an example template snippet, see [Configure Amazon EC2 Auto Scaling resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html) .

For more information, see [Get Amazon SNS notifications when your Auto Scaling group scales](https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html) in the *Amazon EC2 Auto Scaling User Guide* .

- 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_autoscaling as autoscaling } from 'aws-cdk-lib';
const notificationConfigurationProperty: autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty = {
  topicArn: 'topicArn',

  // the properties below are optional
  notificationTypes: ['notificationTypes'],
};
```

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_autoscaling as autoscaling

notification_configuration_property = autoscaling.CfnAutoScalingGroup.NotificationConfigurationProperty(
    topic_arn="topicArn",

    # the properties below are optional
    notification_types=["notificationTypes"]
)
```

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

NotificationConfigurationProperty notificationConfigurationProperty = NotificationConfigurationProperty.builder()
        .topicArn("topicArn")

        // the properties below are optional
        .notificationTypes(List.of("notificationTypes"))
        .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.AutoScaling;

var notificationConfigurationProperty = new NotificationConfigurationProperty {
    TopicArn = "topicArn",

    // the properties below are optional
    NotificationTypes = new [] { "notificationTypes" }
};
```

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"

notificationConfigurationProperty := &NotificationConfigurationProperty{
	TopicArn: jsii.String("topicArn"),

	// the properties below are optional
	NotificationTypes: []*string{
		jsii.String("notificationTypes"),
	},
}
```

## Properties

- `notificationTypes`: string[] — A list of event types that send a notification. Event types can include any of the following types.

  *Allowed values* :

  - `autoscaling:EC2_INSTANCE_LAUNCH`
  - `autoscaling:EC2_INSTANCE_LAUNCH_ERROR`
  - `autoscaling:EC2_INSTANCE_TERMINATE`
  - `autoscaling:EC2_INSTANCE_TERMINATE_ERROR`
  - `autoscaling:TEST_NOTIFICATION`

- `topicArn`: string (required) — The Amazon Resource Name (ARN) of the Amazon SNS topic.
