com.pulumi.awsnative.sns.kotlin.outputs.TopicSubscription.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.sns.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
* ``Subscription`` is an embedded property that describes the subscription endpoints of an SNS topic.
* For full control over subscription behavior (for example, delivery policy, filtering, raw message delivery, and cross-region subscriptions), use the [AWS::SNS::Subscription](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-subscription.html) resource.
* @property endpoint The endpoint that receives notifications from the SNS topic. The endpoint value depends on the protocol that you specify. For more information, see the ``Endpoint`` parameter of the ``Subscribe`` action in the *API Reference*.
* @property protocol The subscription's protocol. For more information, see the ``Protocol`` parameter of the ``Subscribe`` action in the *API Reference*.
*/
public data class TopicSubscription(
public val endpoint: String,
public val protocol: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.sns.outputs.TopicSubscription): TopicSubscription = TopicSubscription(
endpoint = javaType.endpoint(),
protocol = javaType.protocol(),
)
}
}