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

com.pulumi.googlenative.managedidentities.v1.kotlin.PeeringArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.managedidentities.v1.kotlin

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.managedidentities.v1.PeeringArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Creates a Peering for Managed AD instance.
 * Auto-naming is currently not supported for this resource.
 * @property authorizedNetwork The full names of the Google Compute Engine [networks](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Caller needs to make sure that CIDR subnets do not overlap between networks, else peering creation will fail.
 * @property domainResource Full domain resource path for the Managed AD Domain involved in peering. The resource path should be in the form: `projects/{project_id}/locations/global/domains/{domain_name}`
 * @property labels Optional. Resource labels to represent user-provided metadata.
 * @property peeringId Required. Peering Id, unique name to identify peering. It should follow the regex format "^(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)$"
 * @property project
 */
public data class PeeringArgs(
    public val authorizedNetwork: Output? = null,
    public val domainResource: Output? = null,
    public val labels: Output>? = null,
    public val peeringId: Output? = null,
    public val project: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.managedidentities.v1.PeeringArgs =
        com.pulumi.googlenative.managedidentities.v1.PeeringArgs.builder()
            .authorizedNetwork(authorizedNetwork?.applyValue({ args0 -> args0 }))
            .domainResource(domainResource?.applyValue({ args0 -> args0 }))
            .labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .peeringId(peeringId?.applyValue({ args0 -> args0 }))
            .project(project?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PeeringArgs].
 */
@PulumiTagMarker
public class PeeringArgsBuilder internal constructor() {
    private var authorizedNetwork: Output? = null

    private var domainResource: Output? = null

    private var labels: Output>? = null

    private var peeringId: Output? = null

    private var project: Output? = null

    /**
     * @param value The full names of the Google Compute Engine [networks](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Caller needs to make sure that CIDR subnets do not overlap between networks, else peering creation will fail.
     */
    @JvmName("pwjeabcxsihnfdwb")
    public suspend fun authorizedNetwork(`value`: Output) {
        this.authorizedNetwork = value
    }

    /**
     * @param value Full domain resource path for the Managed AD Domain involved in peering. The resource path should be in the form: `projects/{project_id}/locations/global/domains/{domain_name}`
     */
    @JvmName("djsjpsvrwpfhlwpc")
    public suspend fun domainResource(`value`: Output) {
        this.domainResource = value
    }

    /**
     * @param value Optional. Resource labels to represent user-provided metadata.
     */
    @JvmName("waivbtgmmutvtxde")
    public suspend fun labels(`value`: Output>) {
        this.labels = value
    }

    /**
     * @param value Required. Peering Id, unique name to identify peering. It should follow the regex format "^(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)$"
     */
    @JvmName("tmmcmdfdetknokjm")
    public suspend fun peeringId(`value`: Output) {
        this.peeringId = value
    }

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

    /**
     * @param value The full names of the Google Compute Engine [networks](/compute/docs/networks-and-firewalls#networks) to which the instance is connected. Caller needs to make sure that CIDR subnets do not overlap between networks, else peering creation will fail.
     */
    @JvmName("tfahiktcgfaocvhb")
    public suspend fun authorizedNetwork(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizedNetwork = mapped
    }

    /**
     * @param value Full domain resource path for the Managed AD Domain involved in peering. The resource path should be in the form: `projects/{project_id}/locations/global/domains/{domain_name}`
     */
    @JvmName("iakkqpgrqagotuie")
    public suspend fun domainResource(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainResource = mapped
    }

    /**
     * @param value Optional. Resource labels to represent user-provided metadata.
     */
    @JvmName("neicmprnpgrkxuim")
    public suspend fun labels(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param values Optional. Resource labels to represent user-provided metadata.
     */
    @JvmName("rmnemwgldwwwknuh")
    public fun labels(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.labels = mapped
    }

    /**
     * @param value Required. Peering Id, unique name to identify peering. It should follow the regex format "^(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)$"
     */
    @JvmName("oyylvsjxhkdhxikv")
    public suspend fun peeringId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.peeringId = mapped
    }

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

    internal fun build(): PeeringArgs = PeeringArgs(
        authorizedNetwork = authorizedNetwork,
        domainResource = domainResource,
        labels = labels,
        peeringId = peeringId,
        project = project,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy