All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.s3.kotlin.inputs.BucketNotificationTopicArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@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>) {
        this.events = Output.all(values)
    }

    /**
     * @param value Object key name prefix.
     */
    @JvmName("yjfekkslytgqsbel")
    public suspend fun filterPrefix(`value`: Output) {
        this.filterPrefix = value
    }

    /**
     * @param value Object key name suffix.
     */
    @JvmName("robjujgasikopkbr")
    public suspend fun filterSuffix(`value`: Output) {
        this.filterSuffix = value
    }

    /**
     * @param value Unique identifier for each of the notification configurations.
     */
    @JvmName("jlukwfhsohgfduvp")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value SNS topic ARN.
     */
    @JvmName("prignuqfscqnyxhb")
    public suspend fun topicArn(`value`: Output) {
        this.topicArn = value
    }

    /**
     * @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("kasihbwqulimgerd")
    public suspend fun events(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @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("qrclmdjgmymreyrb")
    public suspend fun events(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.events = mapped
    }

    /**
     * @param value Object key name prefix.
     */
    @JvmName("wjvtoockbkxyfjem")
    public suspend fun filterPrefix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filterPrefix = mapped
    }

    /**
     * @param value Object key name suffix.
     */
    @JvmName("ftmyppjwbpuwwmvw")
    public suspend fun filterSuffix(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filterSuffix = mapped
    }

    /**
     * @param value Unique identifier for each of the notification configurations.
     */
    @JvmName("gjpibeiwgcurbptk")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value SNS topic ARN.
     */
    @JvmName("xjmwdukbptocnyix")
    public suspend fun topicArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.topicArn = mapped
    }

    internal fun build(): BucketNotificationTopicArgs = BucketNotificationTopicArgs(
        events = events ?: throw PulumiNullFieldException("events"),
        filterPrefix = filterPrefix,
        filterSuffix = filterSuffix,
        id = id,
        topicArn = topicArn ?: throw PulumiNullFieldException("topicArn"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy