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

com.pulumi.aws.route53.kotlin.ProfilesAssociationArgs.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.route53.kotlin

import com.pulumi.aws.route53.ProfilesAssociationArgs.builder
import com.pulumi.aws.route53.kotlin.inputs.ProfilesAssociationTimeoutsArgs
import com.pulumi.aws.route53.kotlin.inputs.ProfilesAssociationTimeoutsArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource for managing an AWS Route 53 Profiles Association.
 * ## Example Usage
 * ### Basic Usage
 * 
 * ```yaml
 * resources:
 *   example:
 *     type: aws:route53:ProfilesProfile
 *     properties:
 *       name: example
 *   exampleVpc:
 *     type: aws:ec2:Vpc
 *     name: example
 *     properties:
 *       cidr: 10.0.0.0/16
 *   exampleProfilesAssociation:
 *     type: aws:route53:ProfilesAssociation
 *     name: example
 *     properties:
 *       name: example
 *       profileId: ${example.id}
 *       resourceId: ${exampleVpc.id}
 * ```
 * 
 * ## Import
 * Using `pulumi import`, import Route 53 Profiles Association using the `example_id_arg`. For example:
 * ```sh
 * $ pulumi import aws:route53/profilesAssociation:ProfilesAssociation example rpa-id-12345678
 * ```
 * @property name Name of the Profile Association. Must match a regex of `(?!^[0-9]+$)([a-zA-Z0-9\\-_' ']+)`.
 * @property profileId ID of the profile associated with the VPC.
 * @property resourceId Resource ID of the VPC the profile to be associated with.
 * @property tags
 * @property timeouts
 */
public data class ProfilesAssociationArgs(
    public val name: Output? = null,
    public val profileId: Output? = null,
    public val resourceId: Output? = null,
    public val tags: Output>? = null,
    public val timeouts: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.route53.ProfilesAssociationArgs =
        com.pulumi.aws.route53.ProfilesAssociationArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .profileId(profileId?.applyValue({ args0 -> args0 }))
            .resourceId(resourceId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .timeouts(timeouts?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var profileId: Output? = null

    private var resourceId: Output? = null

    private var tags: Output>? = null

    private var timeouts: Output? = null

    /**
     * @param value Name of the Profile Association. Must match a regex of `(?!^[0-9]+$)([a-zA-Z0-9\\-_' ']+)`.
     */
    @JvmName("tthpdiaqajsqoybo")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value ID of the profile associated with the VPC.
     */
    @JvmName("rudoqgtgyuegeuac")
    public suspend fun profileId(`value`: Output) {
        this.profileId = value
    }

    /**
     * @param value Resource ID of the VPC the profile to be associated with.
     */
    @JvmName("jbbvjuookgtlekft")
    public suspend fun resourceId(`value`: Output) {
        this.resourceId = value
    }

    /**
     * @param value
     */
    @JvmName("vniogaaehsvhwcsh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value
     */
    @JvmName("chyojccngehdntkq")
    public suspend fun timeouts(`value`: Output) {
        this.timeouts = value
    }

    /**
     * @param value Name of the Profile Association. Must match a regex of `(?!^[0-9]+$)([a-zA-Z0-9\\-_' ']+)`.
     */
    @JvmName("mjbdoktvlkfnaenf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value ID of the profile associated with the VPC.
     */
    @JvmName("psgslvtteirfvwef")
    public suspend fun profileId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.profileId = mapped
    }

    /**
     * @param value Resource ID of the VPC the profile to be associated with.
     */
    @JvmName("crmkfcfiysgolhtn")
    public suspend fun resourceId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceId = mapped
    }

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

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

    /**
     * @param value
     */
    @JvmName("brxhctvdunfjyvte")
    public suspend fun timeouts(`value`: ProfilesAssociationTimeoutsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeouts = mapped
    }

    /**
     * @param argument
     */
    @JvmName("sufjjshuquinidhf")
    public suspend fun timeouts(argument: suspend ProfilesAssociationTimeoutsArgsBuilder.() -> Unit) {
        val toBeMapped = ProfilesAssociationTimeoutsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.timeouts = mapped
    }

    internal fun build(): ProfilesAssociationArgs = ProfilesAssociationArgs(
        name = name,
        profileId = profileId,
        resourceId = resourceId,
        tags = tags,
        timeouts = timeouts,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy