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

com.pulumi.aws.ssm.kotlin.inputs.DocumentAttachmentsSourceArgs.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.ssm.kotlin.inputs

import com.pulumi.aws.ssm.inputs.DocumentAttachmentsSourceArgs.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 key The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
 * @property name The name of the document attachment file.
 * @property values The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
 */
public data class DocumentAttachmentsSourceArgs(
    public val key: Output,
    public val name: Output? = null,
    public val values: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ssm.inputs.DocumentAttachmentsSourceArgs =
        com.pulumi.aws.ssm.inputs.DocumentAttachmentsSourceArgs.builder()
            .key(key.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .values(values.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DocumentAttachmentsSourceArgs].
 */
@PulumiTagMarker
public class DocumentAttachmentsSourceArgsBuilder internal constructor() {
    private var key: Output? = null

    private var name: Output? = null

    private var values: Output>? = null

    /**
     * @param value The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
     */
    @JvmName("tlqcynfjporprrdj")
    public suspend fun key(`value`: Output) {
        this.key = value
    }

    /**
     * @param value The name of the document attachment file.
     */
    @JvmName("ymvoipjmskwdejdv")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
     */
    @JvmName("nthqqjifpfqogqtn")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
     */
    @JvmName("qrwcfauopxcfuwau")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value The key of a key-value pair that identifies the location of an attachment to the document. Valid values: `SourceUrl`, `S3FileUrl`, `AttachmentReference`.
     */
    @JvmName("qfycpvflqsdifnrw")
    public suspend fun key(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.key = mapped
    }

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

    /**
     * @param value The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
     */
    @JvmName("lqergtobwyakpwsv")
    public suspend fun values(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values The value of a key-value pair that identifies the location of an attachment to the document. The argument format is a list of a single string that depends on the type of key you specify - see the [API Reference](https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_AttachmentsSource.html) for details.
     */
    @JvmName("khufguxhbvdlayob")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): DocumentAttachmentsSourceArgs = DocumentAttachmentsSourceArgs(
        key = key ?: throw PulumiNullFieldException("key"),
        name = name,
        values = values ?: throw PulumiNullFieldException("values"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy