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

com.pulumi.awsnative.logs.kotlin.DeliveryArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.logs.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.logs.DeliveryArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * This structure contains information about one delivery in your account.
 * A delivery is a connection between a logical delivery source and a logical delivery destination.
 * For more information, see [CreateDelivery](https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_CreateDelivery.html).
 * @property deliveryDestinationArn The ARN of the delivery destination that is associated with this delivery.
 * @property deliverySourceName The name of the delivery source that is associated with this delivery.
 * @property tags The tags that have been assigned to this delivery.
 */
public data class DeliveryArgs(
    public val deliveryDestinationArn: Output? = null,
    public val deliverySourceName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.logs.DeliveryArgs =
        com.pulumi.awsnative.logs.DeliveryArgs.builder()
            .deliveryDestinationArn(deliveryDestinationArn?.applyValue({ args0 -> args0 }))
            .deliverySourceName(deliverySourceName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [DeliveryArgs].
 */
@PulumiTagMarker
public class DeliveryArgsBuilder internal constructor() {
    private var deliveryDestinationArn: Output? = null

    private var deliverySourceName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The ARN of the delivery destination that is associated with this delivery.
     */
    @JvmName("bkyqvluemylvvidv")
    public suspend fun deliveryDestinationArn(`value`: Output) {
        this.deliveryDestinationArn = value
    }

    /**
     * @param value The name of the delivery source that is associated with this delivery.
     */
    @JvmName("jpqcmnblodppeple")
    public suspend fun deliverySourceName(`value`: Output) {
        this.deliverySourceName = value
    }

    /**
     * @param value The tags that have been assigned to this delivery.
     */
    @JvmName("cnwcnpvvtsteytbw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("hvbqjxwsbdrfiigt")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags that have been assigned to this delivery.
     */
    @JvmName("trgkiwxkjvmvsknd")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ARN of the delivery destination that is associated with this delivery.
     */
    @JvmName("ilcirwoabakldxhd")
    public suspend fun deliveryDestinationArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deliveryDestinationArn = mapped
    }

    /**
     * @param value The name of the delivery source that is associated with this delivery.
     */
    @JvmName("bcaslokrdapffxcf")
    public suspend fun deliverySourceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deliverySourceName = mapped
    }

    /**
     * @param value The tags that have been assigned to this delivery.
     */
    @JvmName("erhvlosujdukqumq")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags that have been assigned to this delivery.
     */
    @JvmName("qafnksifgsygrnsv")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags that have been assigned to this delivery.
     */
    @JvmName("hmimybdxkdkyskqr")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags that have been assigned to this delivery.
     */
    @JvmName("dbfvjkhmtayuwafh")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags that have been assigned to this delivery.
     */
    @JvmName("qwlamgtpvkaabndi")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DeliveryArgs = DeliveryArgs(
        deliveryDestinationArn = deliveryDestinationArn,
        deliverySourceName = deliverySourceName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy