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

com.pulumi.awsnative.resiliencehub.kotlin.outputs.AppEventSubscription.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.resiliencehub.kotlin.outputs

import com.pulumi.awsnative.resiliencehub.kotlin.enums.AppEventSubscriptionEventType
import kotlin.String
import kotlin.Suppress

/**
 * Indicates an event you would like to subscribe and get notification for.
 * @property eventType The type of event you would like to subscribe and get notification for.
 * @property name Unique name to identify an event subscription.
 * @property snsTopicArn Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic.
 */
public data class AppEventSubscription(
    public val eventType: AppEventSubscriptionEventType,
    public val name: String,
    public val snsTopicArn: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.resiliencehub.outputs.AppEventSubscription): AppEventSubscription = AppEventSubscription(
            eventType = javaType.eventType().let({ args0 ->
                com.pulumi.awsnative.resiliencehub.kotlin.enums.AppEventSubscriptionEventType.Companion.toKotlin(args0)
            }),
            name = javaType.name(),
            snsTopicArn = javaType.snsTopicArn().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy