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

com.pulumi.awsnative.globalaccelerator.kotlin.CrossAccountAttachmentArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.globalaccelerator.kotlin

import com.pulumi.awsnative.globalaccelerator.CrossAccountAttachmentArgs.builder
import com.pulumi.awsnative.globalaccelerator.kotlin.inputs.CrossAccountAttachmentResourceArgs
import com.pulumi.awsnative.globalaccelerator.kotlin.inputs.CrossAccountAttachmentResourceArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * Resource Type definition for AWS::GlobalAccelerator::CrossAccountAttachment
 * @property name The Friendly identifier of the attachment.
 * @property principals Principals to share the resources with.
 * @property resources Resources shared using the attachment.
 * @property tags Add tags for a cross-account attachment.
 * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
 */
public data class CrossAccountAttachmentArgs(
    public val name: Output? = null,
    public val principals: Output>? = null,
    public val resources: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.globalaccelerator.CrossAccountAttachmentArgs =
        com.pulumi.awsnative.globalaccelerator.CrossAccountAttachmentArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .principals(principals?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .resources(
                resources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var principals: Output>? = null

    private var resources: Output>? = null

    private var tags: Output>? = null

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

    /**
     * @param value Principals to share the resources with.
     */
    @JvmName("dsuiioarfxgyecoh")
    public suspend fun principals(`value`: Output>) {
        this.principals = value
    }

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

    /**
     * @param values Principals to share the resources with.
     */
    @JvmName("ynojdwdpcvsjywjl")
    public suspend fun principals(values: List>) {
        this.principals = Output.all(values)
    }

    /**
     * @param value Resources shared using the attachment.
     */
    @JvmName("jsclwdyxkpfpyuak")
    public suspend fun resources(`value`: Output>) {
        this.resources = value
    }

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

    /**
     * @param values Resources shared using the attachment.
     */
    @JvmName("awojwpkwiakbavmo")
    public suspend fun resources(values: List>) {
        this.resources = Output.all(values)
    }

    /**
     * @param value Add tags for a cross-account attachment.
     * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("tnoqcdknrdybaemw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Add tags for a cross-account attachment.
     * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("aqtjoujrogqfbxgo")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

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

    /**
     * @param value Principals to share the resources with.
     */
    @JvmName("qkxwdcfmmkivrkla")
    public suspend fun principals(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    /**
     * @param values Principals to share the resources with.
     */
    @JvmName("gccauaaxcxgdvvrv")
    public suspend fun principals(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principals = mapped
    }

    /**
     * @param value Resources shared using the attachment.
     */
    @JvmName("kljqskwqplhexgew")
    public suspend fun resources(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param argument Resources shared using the attachment.
     */
    @JvmName("pgdwnffwiwfhsjtb")
    public suspend fun resources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CrossAccountAttachmentResourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param argument Resources shared using the attachment.
     */
    @JvmName("nmjaluqduiimtybv")
    public suspend fun resources(vararg argument: suspend CrossAccountAttachmentResourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CrossAccountAttachmentResourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param argument Resources shared using the attachment.
     */
    @JvmName("mpncirawquqmgvoq")
    public suspend fun resources(argument: suspend CrossAccountAttachmentResourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CrossAccountAttachmentResourceArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.resources = mapped
    }

    /**
     * @param values Resources shared using the attachment.
     */
    @JvmName("ulrdractowvpansj")
    public suspend fun resources(vararg values: CrossAccountAttachmentResourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.resources = mapped
    }

    /**
     * @param value Add tags for a cross-account attachment.
     * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("cnnpthihamsofvek")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Add tags for a cross-account attachment.
     * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("kllcvhiwstydfbkf")
    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 Add tags for a cross-account attachment.
     * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("uqdvkjuqjqsakfnm")
    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 Add tags for a cross-account attachment.
     * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("datchdbogglkacqd")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Add tags for a cross-account attachment.
     * For more information, see [Tagging in AWS Global Accelerator](https://docs.aws.amazon.com/global-accelerator/latest/dg/tagging-in-global-accelerator.html) in the *AWS Global Accelerator Developer Guide* .
     */
    @JvmName("pklosetqfqoidqsp")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): CrossAccountAttachmentArgs = CrossAccountAttachmentArgs(
        name = name,
        principals = principals,
        resources = resources,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy