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

com.pulumi.awsnative.pcaconnectorad.kotlin.ConnectorArgs.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.pcaconnectorad.kotlin

import com.pulumi.awsnative.pcaconnectorad.ConnectorArgs.builder
import com.pulumi.awsnative.pcaconnectorad.kotlin.inputs.ConnectorVpcInformationArgs
import com.pulumi.awsnative.pcaconnectorad.kotlin.inputs.ConnectorVpcInformationArgsBuilder
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

/**
 * Definition of AWS::PCAConnectorAD::Connector Resource Type
 * @property certificateAuthorityArn The Amazon Resource Name (ARN) of the certificate authority being used.
 * @property directoryId The identifier of the Active Directory.
 * @property tags Metadata assigned to a connector consisting of a key-value pair.
 * @property vpcInformation Information of the VPC and security group(s) used with the connector.
 */
public data class ConnectorArgs(
    public val certificateAuthorityArn: Output? = null,
    public val directoryId: Output? = null,
    public val tags: Output>? = null,
    public val vpcInformation: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pcaconnectorad.ConnectorArgs =
        com.pulumi.awsnative.pcaconnectorad.ConnectorArgs.builder()
            .certificateAuthorityArn(certificateAuthorityArn?.applyValue({ args0 -> args0 }))
            .directoryId(directoryId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .vpcInformation(
                vpcInformation?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ConnectorArgs].
 */
@PulumiTagMarker
public class ConnectorArgsBuilder internal constructor() {
    private var certificateAuthorityArn: Output? = null

    private var directoryId: Output? = null

    private var tags: Output>? = null

    private var vpcInformation: Output? = null

    /**
     * @param value The Amazon Resource Name (ARN) of the certificate authority being used.
     */
    @JvmName("olcjdroiuktmeuvx")
    public suspend fun certificateAuthorityArn(`value`: Output) {
        this.certificateAuthorityArn = value
    }

    /**
     * @param value The identifier of the Active Directory.
     */
    @JvmName("qpgvenpmupljlcsg")
    public suspend fun directoryId(`value`: Output) {
        this.directoryId = value
    }

    /**
     * @param value Metadata assigned to a connector consisting of a key-value pair.
     */
    @JvmName("iwdjgvxwrvqwjmcy")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Information of the VPC and security group(s) used with the connector.
     */
    @JvmName("ryfplwlqdeuuhywv")
    public suspend fun vpcInformation(`value`: Output) {
        this.vpcInformation = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the certificate authority being used.
     */
    @JvmName("xutnakrgpanksccb")
    public suspend fun certificateAuthorityArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateAuthorityArn = mapped
    }

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

    /**
     * @param value Metadata assigned to a connector consisting of a key-value pair.
     */
    @JvmName("uclncivaufnaioah")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Metadata assigned to a connector consisting of a key-value pair.
     */
    @JvmName("chvjwlareyhhibwb")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value Information of the VPC and security group(s) used with the connector.
     */
    @JvmName("kfpfqejjokovwodt")
    public suspend fun vpcInformation(`value`: ConnectorVpcInformationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcInformation = mapped
    }

    /**
     * @param argument Information of the VPC and security group(s) used with the connector.
     */
    @JvmName("usidjanrpixqvjde")
    public suspend fun vpcInformation(argument: suspend ConnectorVpcInformationArgsBuilder.() -> Unit) {
        val toBeMapped = ConnectorVpcInformationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.vpcInformation = mapped
    }

    internal fun build(): ConnectorArgs = ConnectorArgs(
        certificateAuthorityArn = certificateAuthorityArn,
        directoryId = directoryId,
        tags = tags,
        vpcInformation = vpcInformation,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy