com.pulumi.aws.s3.kotlin.inputs.BucketNotificationTopicArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.s3.kotlin.inputs
import com.pulumi.aws.s3.inputs.BucketNotificationTopicArgs.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.collections.List
import kotlin.jvm.JvmName
/**
*
* @property events [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
* @property filterPrefix Object key name prefix.
* @property filterSuffix Object key name suffix.
* @property id Unique identifier for each of the notification configurations.
* @property topicArn SNS topic ARN.
*/
public data class BucketNotificationTopicArgs(
public val events: Output>,
public val filterPrefix: Output? = null,
public val filterSuffix: Output? = null,
public val id: Output? = null,
public val topicArn: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.s3.inputs.BucketNotificationTopicArgs =
com.pulumi.aws.s3.inputs.BucketNotificationTopicArgs.builder()
.events(events.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.filterPrefix(filterPrefix?.applyValue({ args0 -> args0 }))
.filterSuffix(filterSuffix?.applyValue({ args0 -> args0 }))
.id(id?.applyValue({ args0 -> args0 }))
.topicArn(topicArn.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketNotificationTopicArgs].
*/
@PulumiTagMarker
public class BucketNotificationTopicArgsBuilder internal constructor() {
private var events: Output>? = null
private var filterPrefix: Output? = null
private var filterSuffix: Output? = null
private var id: Output? = null
private var topicArn: Output? = null
/**
* @param value [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
*/
@JvmName("dkpcyrclrpxmvvgu")
public suspend fun events(`value`: Output>) {
this.events = value
}
@JvmName("hykrmmexdkvfhpkv")
public suspend fun events(vararg values: Output) {
this.events = Output.all(values.asList())
}
/**
* @param values [Event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
*/
@JvmName("rqcymvtdjfmvctct")
public suspend fun events(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy