All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.autoscaling.kotlin.outputs.AutoScalingGroupNotificationConfiguration.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.autoscaling.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 * 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*.
 * @property notificationTypes 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``
 * @property topicArn The Amazon Resource Name (ARN) of the Amazon SNS topic.
 */
public data class AutoScalingGroupNotificationConfiguration(
    public val notificationTypes: List? = null,
    public val topicArn: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.autoscaling.outputs.AutoScalingGroupNotificationConfiguration): AutoScalingGroupNotificationConfiguration = AutoScalingGroupNotificationConfiguration(
            notificationTypes = javaType.notificationTypes().map({ args0 -> args0 }),
            topicArn = javaType.topicArn().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy