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

com.pulumi.awsnative.route53profiles.kotlin.ProfileAssociationArgs.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.route53profiles.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.route53profiles.ProfileAssociationArgs.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

/**
 * Resource Type definition for AWS::Route53Profiles::ProfileAssociation
 * @property arn The Amazon Resource Name (ARN) of the  profile association.
 * @property name The name of an association between a  Profile and a VPC.
 * @property profileId The ID of the  profile that you associated with the resource that is specified by ResourceId.
 * @property resourceId The resource that you associated the  profile with.
 * @property tags An array of key-value pairs to apply to this resource.
 */
public data class ProfileAssociationArgs(
    public val arn: Output? = null,
    public val name: Output? = null,
    public val profileId: Output? = null,
    public val resourceId: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.route53profiles.ProfileAssociationArgs =
        com.pulumi.awsnative.route53profiles.ProfileAssociationArgs.builder()
            .arn(arn?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .profileId(profileId?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ProfileAssociationArgs].
 */
@PulumiTagMarker
public class ProfileAssociationArgsBuilder internal constructor() {
    private var arn: Output? = null

    private var name: Output? = null

    private var profileId: Output? = null

    private var resourceId: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the  profile association.
     */
    @JvmName("lidxqfnmipidtuxl")
    public suspend fun arn(`value`: Output) {
        this.arn = value
    }

    /**
     * @param value The name of an association between a  Profile and a VPC.
     */
    @JvmName("cbrhtxwerswyhtqi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The ID of the  profile that you associated with the resource that is specified by ResourceId.
     */
    @JvmName("efypttopqbgkgmim")
    public suspend fun profileId(`value`: Output) {
        this.profileId = value
    }

    /**
     * @param value The resource that you associated the  profile with.
     */
    @JvmName("epqmwwvnbnwsbfwo")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("pkgdwyqtumovsvbp")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("reeowdkpvsaxpvwv")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the  profile association.
     */
    @JvmName("jocdaprnjrihnebp")
    public suspend fun arn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.arn = mapped
    }

    /**
     * @param value The name of an association between a  Profile and a VPC.
     */
    @JvmName("jlowwymlfkirvmhq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The ID of the  profile that you associated with the resource that is specified by ResourceId.
     */
    @JvmName("qaukagxejdrabppy")
    public suspend fun profileId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.profileId = mapped
    }

    /**
     * @param value The resource that you associated the  profile with.
     */
    @JvmName("gqxlibkqcogwlvkw")
    public suspend fun resourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

    /**
     * @param value An array of key-value pairs to apply to this resource.
     */
    @JvmName("qnxmcnkdolepkagr")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument An array of key-value pairs to apply to this resource.
     */
    @JvmName("jmpjvswdqfkubkfa")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("ceepciomttqunchw")
    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 An array of key-value pairs to apply to this resource.
     */
    @JvmName("jkgwxryhxfhjvfli")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values An array of key-value pairs to apply to this resource.
     */
    @JvmName("cgglnxjmagbnuvyf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ProfileAssociationArgs = ProfileAssociationArgs(
        arn = arn,
        name = name,
        profileId = profileId,
        resourceId = resourceId,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy