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

com.pulumi.awsnative.oam.kotlin.SinkArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.oam.kotlin

import com.pulumi.awsnative.oam.SinkArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::Oam::Sink
 * @property name The name of the ObservabilityAccessManager Sink.
 * @property policy The policy of this ObservabilityAccessManager Sink.
 * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Oam::Sink` for more information about the expected schema for this property.
 * @property tags Tags to apply to the sink
 */
public data class SinkArgs(
    public val name: Output? = null,
    public val policy: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.oam.SinkArgs =
        com.pulumi.awsnative.oam.SinkArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .policy(policy?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [SinkArgs].
 */
@PulumiTagMarker
public class SinkArgsBuilder internal constructor() {
    private var name: Output? = null

    private var policy: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the ObservabilityAccessManager Sink.
     */
    @JvmName("uvqtmnwlwtqgiihq")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The policy of this ObservabilityAccessManager Sink.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Oam::Sink` for more information about the expected schema for this property.
     */
    @JvmName("xjwsjcbccvxsjidw")
    public suspend fun policy(`value`: Output) {
        this.policy = value
    }

    /**
     * @param value Tags to apply to the sink
     */
    @JvmName("hesydabwsweuuvdg")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The name of the ObservabilityAccessManager Sink.
     */
    @JvmName("uhrtuqljdkhoxtrj")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The policy of this ObservabilityAccessManager Sink.
     * Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Oam::Sink` for more information about the expected schema for this property.
     */
    @JvmName("iucvqehlsbjhjsfv")
    public suspend fun policy(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policy = mapped
    }

    /**
     * @param value Tags to apply to the sink
     */
    @JvmName("qmbnkkjhvesougrf")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Tags to apply to the sink
     */
    @JvmName("bkiwotcqkfmittsb")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): SinkArgs = SinkArgs(
        name = name,
        policy = policy,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy