
com.pulumi.awsnative.resiliencehub.kotlin.outputs.AppEventSubscription.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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