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

com.pulumi.azure.apimanagement.kotlin.inputs.ServiceAdditionalLocationArgs.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.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.apimanagement.kotlin.inputs

import com.pulumi.azure.apimanagement.inputs.ServiceAdditionalLocationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property capacity The number of compute units in this region. Defaults to the capacity of the main region.
 * @property gatewayDisabled Only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location.
 * @property gatewayRegionalUrl The URL of the Regional Gateway for the API Management Service in the specified region.
 * @property location The name of the Azure Region in which the API Management Service should be expanded to.
 * @property privateIpAddresses The Private IP addresses of the API Management Service. Available only when the API Manager instance is using Virtual Network mode.
 * @property publicIpAddressId ID of a standard SKU IPv4 Public IP.
 * > **NOTE:** Availability zones and custom public IPs are only supported in the Premium tier.
 * @property publicIpAddresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
 * @property virtualNetworkConfiguration A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`.
 * @property zones A list of availability zones.
 */
public data class ServiceAdditionalLocationArgs(
    public val capacity: Output? = null,
    public val gatewayDisabled: Output? = null,
    public val gatewayRegionalUrl: Output? = null,
    public val location: Output,
    public val privateIpAddresses: Output>? = null,
    public val publicIpAddressId: Output? = null,
    public val publicIpAddresses: Output>? = null,
    public val virtualNetworkConfiguration: Output? = null,
    public val zones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.apimanagement.inputs.ServiceAdditionalLocationArgs =
        com.pulumi.azure.apimanagement.inputs.ServiceAdditionalLocationArgs.builder()
            .capacity(capacity?.applyValue({ args0 -> args0 }))
            .gatewayDisabled(gatewayDisabled?.applyValue({ args0 -> args0 }))
            .gatewayRegionalUrl(gatewayRegionalUrl?.applyValue({ args0 -> args0 }))
            .location(location.applyValue({ args0 -> args0 }))
            .privateIpAddresses(privateIpAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .publicIpAddressId(publicIpAddressId?.applyValue({ args0 -> args0 }))
            .publicIpAddresses(publicIpAddresses?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .virtualNetworkConfiguration(
                virtualNetworkConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ServiceAdditionalLocationArgs].
 */
@PulumiTagMarker
public class ServiceAdditionalLocationArgsBuilder internal constructor() {
    private var capacity: Output? = null

    private var gatewayDisabled: Output? = null

    private var gatewayRegionalUrl: Output? = null

    private var location: Output? = null

    private var privateIpAddresses: Output>? = null

    private var publicIpAddressId: Output? = null

    private var publicIpAddresses: Output>? = null

    private var virtualNetworkConfiguration:
        Output? = null

    private var zones: Output>? = null

    /**
     * @param value The number of compute units in this region. Defaults to the capacity of the main region.
     */
    @JvmName("tilwouitcsovjahr")
    public suspend fun capacity(`value`: Output) {
        this.capacity = value
    }

    /**
     * @param value Only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location.
     */
    @JvmName("xbkqfekhwdtcsdut")
    public suspend fun gatewayDisabled(`value`: Output) {
        this.gatewayDisabled = value
    }

    /**
     * @param value The URL of the Regional Gateway for the API Management Service in the specified region.
     */
    @JvmName("wikgcljjhrmkddkv")
    public suspend fun gatewayRegionalUrl(`value`: Output) {
        this.gatewayRegionalUrl = value
    }

    /**
     * @param value The name of the Azure Region in which the API Management Service should be expanded to.
     */
    @JvmName("vhjmeohndmfethxh")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The Private IP addresses of the API Management Service. Available only when the API Manager instance is using Virtual Network mode.
     */
    @JvmName("dxwcrdyeunxbykst")
    public suspend fun privateIpAddresses(`value`: Output>) {
        this.privateIpAddresses = value
    }

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

    /**
     * @param values The Private IP addresses of the API Management Service. Available only when the API Manager instance is using Virtual Network mode.
     */
    @JvmName("adkjclmlkvtxmpcl")
    public suspend fun privateIpAddresses(values: List>) {
        this.privateIpAddresses = Output.all(values)
    }

    /**
     * @param value ID of a standard SKU IPv4 Public IP.
     * > **NOTE:** Availability zones and custom public IPs are only supported in the Premium tier.
     */
    @JvmName("ebghnlkbbascoyoj")
    public suspend fun publicIpAddressId(`value`: Output) {
        this.publicIpAddressId = value
    }

    /**
     * @param value Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
     */
    @JvmName("wjnkpstdbtkdweka")
    public suspend fun publicIpAddresses(`value`: Output>) {
        this.publicIpAddresses = value
    }

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

    /**
     * @param values Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
     */
    @JvmName("abtppkglqylkoiur")
    public suspend fun publicIpAddresses(values: List>) {
        this.publicIpAddresses = Output.all(values)
    }

    /**
     * @param value A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`.
     */
    @JvmName("rhwlcldwauxjjuou")
    public suspend fun virtualNetworkConfiguration(`value`: Output) {
        this.virtualNetworkConfiguration = value
    }

    /**
     * @param value A list of availability zones.
     */
    @JvmName("mlxwwjdiusudroqe")
    public suspend fun zones(`value`: Output>) {
        this.zones = value
    }

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

    /**
     * @param values A list of availability zones.
     */
    @JvmName("sbgdnidckmqpfisa")
    public suspend fun zones(values: List>) {
        this.zones = Output.all(values)
    }

    /**
     * @param value The number of compute units in this region. Defaults to the capacity of the main region.
     */
    @JvmName("aurcanvjmjxhtyfq")
    public suspend fun capacity(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacity = mapped
    }

    /**
     * @param value Only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location.
     */
    @JvmName("gmaxrmrpctewrefw")
    public suspend fun gatewayDisabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gatewayDisabled = mapped
    }

    /**
     * @param value The URL of the Regional Gateway for the API Management Service in the specified region.
     */
    @JvmName("vbagwpdndrwundoq")
    public suspend fun gatewayRegionalUrl(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.gatewayRegionalUrl = mapped
    }

    /**
     * @param value The name of the Azure Region in which the API Management Service should be expanded to.
     */
    @JvmName("wkintxnpttxjffnw")
    public suspend fun location(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The Private IP addresses of the API Management Service. Available only when the API Manager instance is using Virtual Network mode.
     */
    @JvmName("pgjyxwcnyuhiqaae")
    public suspend fun privateIpAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIpAddresses = mapped
    }

    /**
     * @param values The Private IP addresses of the API Management Service. Available only when the API Manager instance is using Virtual Network mode.
     */
    @JvmName("utpmfmdmlgqijtfc")
    public suspend fun privateIpAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateIpAddresses = mapped
    }

    /**
     * @param value ID of a standard SKU IPv4 Public IP.
     * > **NOTE:** Availability zones and custom public IPs are only supported in the Premium tier.
     */
    @JvmName("lbwdgmjwkonnsfnh")
    public suspend fun publicIpAddressId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpAddressId = mapped
    }

    /**
     * @param value Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
     */
    @JvmName("fdpsufqufuodquvc")
    public suspend fun publicIpAddresses(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpAddresses = mapped
    }

    /**
     * @param values Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
     */
    @JvmName("xkejadswalfnlcea")
    public suspend fun publicIpAddresses(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicIpAddresses = mapped
    }

    /**
     * @param value A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`.
     */
    @JvmName("dqkllbdilvcfyjun")
    public suspend fun virtualNetworkConfiguration(`value`: ServiceAdditionalLocationVirtualNetworkConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualNetworkConfiguration = mapped
    }

    /**
     * @param argument A `virtual_network_configuration` block as defined below. Required when `virtual_network_type` is `External` or `Internal`.
     */
    @JvmName("eidbdyyhcyqgpdaa")
    public suspend fun virtualNetworkConfiguration(argument: suspend ServiceAdditionalLocationVirtualNetworkConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAdditionalLocationVirtualNetworkConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.virtualNetworkConfiguration = mapped
    }

    /**
     * @param value A list of availability zones.
     */
    @JvmName("nkpsdidsuqserbhc")
    public suspend fun zones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    /**
     * @param values A list of availability zones.
     */
    @JvmName("ohmbswaimamljetr")
    public suspend fun zones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): ServiceAdditionalLocationArgs = ServiceAdditionalLocationArgs(
        capacity = capacity,
        gatewayDisabled = gatewayDisabled,
        gatewayRegionalUrl = gatewayRegionalUrl,
        location = location ?: throw PulumiNullFieldException("location"),
        privateIpAddresses = privateIpAddresses,
        publicIpAddressId = publicIpAddressId,
        publicIpAddresses = publicIpAddresses,
        virtualNetworkConfiguration = virtualNetworkConfiguration,
        zones = zones,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy