![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.sns.kotlin.inputs.TopicSubscriptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sns.kotlin.inputs
import com.pulumi.awsnative.sns.inputs.TopicSubscriptionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ``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 TopicSubscriptionArgs(
public val endpoint: Output,
public val protocol: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sns.inputs.TopicSubscriptionArgs =
com.pulumi.awsnative.sns.inputs.TopicSubscriptionArgs.builder()
.endpoint(endpoint.applyValue({ args0 -> args0 }))
.protocol(protocol.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TopicSubscriptionArgs].
*/
@PulumiTagMarker
public class TopicSubscriptionArgsBuilder internal constructor() {
private var endpoint: Output? = null
private var protocol: Output? = null
/**
* @param value 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*.
*/
@JvmName("hneoidvnbwhxmtur")
public suspend fun endpoint(`value`: Output) {
this.endpoint = value
}
/**
* @param value The subscription's protocol. For more information, see the ``Protocol`` parameter of the ``Subscribe`` action in the *API Reference*.
*/
@JvmName("daevifipaaifrixr")
public suspend fun protocol(`value`: Output) {
this.protocol = value
}
/**
* @param value 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*.
*/
@JvmName("fjxjbgglomypwhyf")
public suspend fun endpoint(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.endpoint = mapped
}
/**
* @param value The subscription's protocol. For more information, see the ``Protocol`` parameter of the ``Subscribe`` action in the *API Reference*.
*/
@JvmName("qopcikcpaacabjfe")
public suspend fun protocol(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protocol = mapped
}
internal fun build(): TopicSubscriptionArgs = TopicSubscriptionArgs(
endpoint = endpoint ?: throw PulumiNullFieldException("endpoint"),
protocol = protocol ?: throw PulumiNullFieldException("protocol"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy