![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.sns.kotlin.TopicPolicyArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sns.kotlin
import com.pulumi.awsnative.sns.TopicPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* The ``AWS::SNS::TopicPolicy`` resource associates SNS topics with a policy. For an example snippet, see [Declaring an policy](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-iam.html#scenario-sns-policy) in the *User Guide*.
* @property policyDocument A policy document that contains permissions to add to the specified SNS topics.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SNS::TopicPolicy` for more information about the expected schema for this property.
* @property topics The Amazon Resource Names (ARN) of the topics to which you want to add the policy. You can use the ``Ref`` function to specify an ``AWS::SNS::Topic`` resource.
*/
public data class TopicPolicyArgs(
public val policyDocument: Output? = null,
public val topics: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.sns.TopicPolicyArgs =
com.pulumi.awsnative.sns.TopicPolicyArgs.builder()
.policyDocument(policyDocument?.applyValue({ args0 -> args0 }))
.topics(topics?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [TopicPolicyArgs].
*/
@PulumiTagMarker
public class TopicPolicyArgsBuilder internal constructor() {
private var policyDocument: Output? = null
private var topics: Output>? = null
/**
* @param value A policy document that contains permissions to add to the specified SNS topics.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::SNS::TopicPolicy` for more information about the expected schema for this property.
*/
@JvmName("qeouwpdohwlbsgsn")
public suspend fun policyDocument(`value`: Output) {
this.policyDocument = value
}
/**
* @param value The Amazon Resource Names (ARN) of the topics to which you want to add the policy. You can use the ``Ref`` function to specify an ``AWS::SNS::Topic`` resource.
*/
@JvmName("forahxshaxkvyywh")
public suspend fun topics(`value`: Output>) {
this.topics = value
}
@JvmName("urabvvgjcpsfhtcf")
public suspend fun topics(vararg values: Output) {
this.topics = Output.all(values.asList())
}
/**
* @param values The Amazon Resource Names (ARN) of the topics to which you want to add the policy. You can use the ``Ref`` function to specify an ``AWS::SNS::Topic`` resource.
*/
@JvmName("hjtiojibmefmowvk")
public suspend fun topics(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy