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

com.pulumi.azure.network.kotlin.PublicIpArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin

import com.pulumi.azure.network.PublicIpArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Public IP Address.
 * > **Note** If this resource is to be associated with a resource that requires disassociation before destruction (such as `azure.network.NetworkInterface`) it is recommended to set the `lifecycle` argument `create_before_destroy = true`. Otherwise, it can fail to disassociate on destruction.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const examplePublicIp = new azure.network.PublicIp("example", {
 *     name: "acceptanceTestPublicIp1",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     allocationMethod: "Static",
 *     tags: {
 *         environment: "Production",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_public_ip = azure.network.PublicIp("example",
 *     name="acceptanceTestPublicIp1",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     allocation_method="Static",
 *     tags={
 *         "environment": "Production",
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var examplePublicIp = new Azure.Network.PublicIp("example", new()
 *     {
 *         Name = "acceptanceTestPublicIp1",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         AllocationMethod = "Static",
 *         Tags =
 *         {
 *             { "environment", "Production" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
 * 			Name:              pulumi.String("acceptanceTestPublicIp1"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			AllocationMethod:  pulumi.String("Static"),
 * 			Tags: pulumi.StringMap{
 * 				"environment": pulumi.String("Production"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.network.PublicIp;
 * import com.pulumi.azure.network.PublicIpArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
 *             .name("acceptanceTestPublicIp1")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .allocationMethod("Static")
 *             .tags(Map.of("environment", "Production"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   examplePublicIp:
 *     type: azure:network:PublicIp
 *     name: example
 *     properties:
 *       name: acceptanceTestPublicIp1
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       allocationMethod: Static
 *       tags:
 *         environment: Production
 * ```
 * 
 * ## Import
 * Public IPs can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:network/publicIp:PublicIp myPublicIp /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/publicIPAddresses/myPublicIpAddress1
 * ```
 * @property allocationMethod Defines the allocation method for this IP address. Possible values are `Static` or `Dynamic`.
 * > **Note** `Dynamic` Public IP Addresses aren't allocated until they're assigned to a resource (such as a Virtual Machine or a Load Balancer) by design within Azure. See `ip_address` argument.
 * @property ddosProtectionMode The DDoS protection mode of the public IP. Possible values are `Disabled`, `Enabled`, and `VirtualNetworkInherited`. Defaults to `VirtualNetworkInherited`.
 * @property ddosProtectionPlanId The ID of DDoS protection plan associated with the public IP.
 * > **Note:** `ddos_protection_plan_id` can only be set when `ddos_protection_mode` is `Enabled`.
 * @property domainNameLabel Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
 * @property edgeZone Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
 * @property idleTimeoutInMinutes Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
 * @property ipTags A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
 * > **Note** IP Tag `RoutingPreference` requires multiple `zones` and `Standard` SKU to be set.
 * @property ipVersion The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created. Defaults to `IPv4`.
 * > **Note** Only `static` IP address allocation is supported for IPv6.
 * @property location Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
 * @property name Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
 * @property publicIpPrefixId If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
 * @property resourceGroupName The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
 * @property reverseFqdn A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
 * @property sku The SKU of the Public IP. Accepted values are `Basic` and `Standard`. Defaults to `Basic`. Changing this forces a new resource to be created.
 * > **Note** Public IP Standard SKUs require `allocation_method` to be set to `Static`.
 * @property skuTier The SKU Tier that should be used for the Public IP. Possible values are `Regional` and `Global`. Defaults to `Regional`. Changing this forces a new resource to be created.
 * > **Note** When `sku_tier` is set to `Global`, `sku` must be set to `Standard`.
 * @property tags A mapping of tags to assign to the resource.
 * @property zones A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
 * > **Note:** Availability Zones are only supported with a [Standard SKU](https://docs.microsoft.com/azure/virtual-network/virtual-network-ip-addresses-overview-arm#standard) and [in select regions](https://docs.microsoft.com/azure/availability-zones/az-overview) at this time. Standard SKU Public IP Addresses that do not specify a zone are **not** zone-redundant by default.
 */
public data class PublicIpArgs(
    public val allocationMethod: Output? = null,
    public val ddosProtectionMode: Output? = null,
    public val ddosProtectionPlanId: Output? = null,
    public val domainNameLabel: Output? = null,
    public val edgeZone: Output? = null,
    public val idleTimeoutInMinutes: Output? = null,
    public val ipTags: Output>? = null,
    public val ipVersion: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val publicIpPrefixId: Output? = null,
    public val resourceGroupName: Output? = null,
    public val reverseFqdn: Output? = null,
    public val sku: Output? = null,
    public val skuTier: Output? = null,
    public val tags: Output>? = null,
    public val zones: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.PublicIpArgs =
        com.pulumi.azure.network.PublicIpArgs.builder()
            .allocationMethod(allocationMethod?.applyValue({ args0 -> args0 }))
            .ddosProtectionMode(ddosProtectionMode?.applyValue({ args0 -> args0 }))
            .ddosProtectionPlanId(ddosProtectionPlanId?.applyValue({ args0 -> args0 }))
            .domainNameLabel(domainNameLabel?.applyValue({ args0 -> args0 }))
            .edgeZone(edgeZone?.applyValue({ args0 -> args0 }))
            .idleTimeoutInMinutes(idleTimeoutInMinutes?.applyValue({ args0 -> args0 }))
            .ipTags(ipTags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .ipVersion(ipVersion?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .publicIpPrefixId(publicIpPrefixId?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .reverseFqdn(reverseFqdn?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0 }))
            .skuTier(skuTier?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [PublicIpArgs].
 */
@PulumiTagMarker
public class PublicIpArgsBuilder internal constructor() {
    private var allocationMethod: Output? = null

    private var ddosProtectionMode: Output? = null

    private var ddosProtectionPlanId: Output? = null

    private var domainNameLabel: Output? = null

    private var edgeZone: Output? = null

    private var idleTimeoutInMinutes: Output? = null

    private var ipTags: Output>? = null

    private var ipVersion: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var publicIpPrefixId: Output? = null

    private var resourceGroupName: Output? = null

    private var reverseFqdn: Output? = null

    private var sku: Output? = null

    private var skuTier: Output? = null

    private var tags: Output>? = null

    private var zones: Output>? = null

    /**
     * @param value Defines the allocation method for this IP address. Possible values are `Static` or `Dynamic`.
     * > **Note** `Dynamic` Public IP Addresses aren't allocated until they're assigned to a resource (such as a Virtual Machine or a Load Balancer) by design within Azure. See `ip_address` argument.
     */
    @JvmName("legjilegiiondvom")
    public suspend fun allocationMethod(`value`: Output) {
        this.allocationMethod = value
    }

    /**
     * @param value The DDoS protection mode of the public IP. Possible values are `Disabled`, `Enabled`, and `VirtualNetworkInherited`. Defaults to `VirtualNetworkInherited`.
     */
    @JvmName("nmbijaadhswtkepw")
    public suspend fun ddosProtectionMode(`value`: Output) {
        this.ddosProtectionMode = value
    }

    /**
     * @param value The ID of DDoS protection plan associated with the public IP.
     * > **Note:** `ddos_protection_plan_id` can only be set when `ddos_protection_mode` is `Enabled`.
     */
    @JvmName("aeaafhdefknfsltb")
    public suspend fun ddosProtectionPlanId(`value`: Output) {
        this.ddosProtectionPlanId = value
    }

    /**
     * @param value Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
     */
    @JvmName("yxdxvxysgocaoacm")
    public suspend fun domainNameLabel(`value`: Output) {
        this.domainNameLabel = value
    }

    /**
     * @param value Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
     */
    @JvmName("xorvbdqkytaghowi")
    public suspend fun edgeZone(`value`: Output) {
        this.edgeZone = value
    }

    /**
     * @param value Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
     */
    @JvmName("tpvcinlcdvlyhole")
    public suspend fun idleTimeoutInMinutes(`value`: Output) {
        this.idleTimeoutInMinutes = value
    }

    /**
     * @param value A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
     * > **Note** IP Tag `RoutingPreference` requires multiple `zones` and `Standard` SKU to be set.
     */
    @JvmName("uhetpjgfyuggkkow")
    public suspend fun ipTags(`value`: Output>) {
        this.ipTags = value
    }

    /**
     * @param value The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created. Defaults to `IPv4`.
     * > **Note** Only `static` IP address allocation is supported for IPv6.
     */
    @JvmName("dlnmaihixwkjaqli")
    public suspend fun ipVersion(`value`: Output) {
        this.ipVersion = value
    }

    /**
     * @param value Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
     */
    @JvmName("ocogcienxuepwrvx")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
     */
    @JvmName("eemcgkhnlxdcqeoa")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
     */
    @JvmName("qrkkbcllaxjthmsd")
    public suspend fun publicIpPrefixId(`value`: Output) {
        this.publicIpPrefixId = value
    }

    /**
     * @param value The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
     */
    @JvmName("wiiwoxabjebgparq")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
     */
    @JvmName("pxwviceeorkgjpnc")
    public suspend fun reverseFqdn(`value`: Output) {
        this.reverseFqdn = value
    }

    /**
     * @param value The SKU of the Public IP. Accepted values are `Basic` and `Standard`. Defaults to `Basic`. Changing this forces a new resource to be created.
     * > **Note** Public IP Standard SKUs require `allocation_method` to be set to `Static`.
     */
    @JvmName("cciqhwwcqcktdeky")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value The SKU Tier that should be used for the Public IP. Possible values are `Regional` and `Global`. Defaults to `Regional`. Changing this forces a new resource to be created.
     * > **Note** When `sku_tier` is set to `Global`, `sku` must be set to `Standard`.
     */
    @JvmName("gxxsbydbvmypbldh")
    public suspend fun skuTier(`value`: Output) {
        this.skuTier = value
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("pdvptdbtlxkpykcm")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
     * > **Note:** Availability Zones are only supported with a [Standard SKU](https://docs.microsoft.com/azure/virtual-network/virtual-network-ip-addresses-overview-arm#standard) and [in select regions](https://docs.microsoft.com/azure/availability-zones/az-overview) at this time. Standard SKU Public IP Addresses that do not specify a zone are **not** zone-redundant by default.
     */
    @JvmName("spsljivgvfbayoia")
    public suspend fun zones(`value`: Output>) {
        this.zones = value
    }

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

    /**
     * @param values A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
     * > **Note:** Availability Zones are only supported with a [Standard SKU](https://docs.microsoft.com/azure/virtual-network/virtual-network-ip-addresses-overview-arm#standard) and [in select regions](https://docs.microsoft.com/azure/availability-zones/az-overview) at this time. Standard SKU Public IP Addresses that do not specify a zone are **not** zone-redundant by default.
     */
    @JvmName("usnmvwtecyfbkgsa")
    public suspend fun zones(values: List>) {
        this.zones = Output.all(values)
    }

    /**
     * @param value Defines the allocation method for this IP address. Possible values are `Static` or `Dynamic`.
     * > **Note** `Dynamic` Public IP Addresses aren't allocated until they're assigned to a resource (such as a Virtual Machine or a Load Balancer) by design within Azure. See `ip_address` argument.
     */
    @JvmName("uqubmrttpeqkuapv")
    public suspend fun allocationMethod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allocationMethod = mapped
    }

    /**
     * @param value The DDoS protection mode of the public IP. Possible values are `Disabled`, `Enabled`, and `VirtualNetworkInherited`. Defaults to `VirtualNetworkInherited`.
     */
    @JvmName("vbdqdiiqtpbcmjna")
    public suspend fun ddosProtectionMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ddosProtectionMode = mapped
    }

    /**
     * @param value The ID of DDoS protection plan associated with the public IP.
     * > **Note:** `ddos_protection_plan_id` can only be set when `ddos_protection_mode` is `Enabled`.
     */
    @JvmName("vlqtqprirakfrlmg")
    public suspend fun ddosProtectionPlanId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ddosProtectionPlanId = mapped
    }

    /**
     * @param value Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.
     */
    @JvmName("ggfvntvevulfuiqj")
    public suspend fun domainNameLabel(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainNameLabel = mapped
    }

    /**
     * @param value Specifies the Edge Zone within the Azure Region where this Public IP should exist. Changing this forces a new Public IP to be created.
     */
    @JvmName("mvlnykydrqvbulrk")
    public suspend fun edgeZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.edgeZone = mapped
    }

    /**
     * @param value Specifies the timeout for the TCP idle connection. The value can be set between 4 and 30 minutes.
     */
    @JvmName("ymlvvjvpgodnkkgk")
    public suspend fun idleTimeoutInMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleTimeoutInMinutes = mapped
    }

    /**
     * @param value A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
     * > **Note** IP Tag `RoutingPreference` requires multiple `zones` and `Standard` SKU to be set.
     */
    @JvmName("kglmjcyaofryrfwr")
    public suspend fun ipTags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipTags = mapped
    }

    /**
     * @param values A mapping of IP tags to assign to the public IP. Changing this forces a new resource to be created.
     * > **Note** IP Tag `RoutingPreference` requires multiple `zones` and `Standard` SKU to be set.
     */
    @JvmName("pqgwuhdkkgqhfmff")
    public fun ipTags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.ipTags = mapped
    }

    /**
     * @param value The IP Version to use, IPv6 or IPv4. Changing this forces a new resource to be created. Defaults to `IPv4`.
     * > **Note** Only `static` IP address allocation is supported for IPv6.
     */
    @JvmName("oihxnlmjkfahiyuj")
    public suspend fun ipVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ipVersion = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the Public IP should exist. Changing this forces a new resource to be created.
     */
    @JvmName("bpdijtvgvmepiuqd")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Specifies the name of the Public IP. Changing this forces a new Public IP to be created.
     */
    @JvmName("ogrovglpuitcdnfk")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value If specified then public IP address allocated will be provided from the public IP prefix resource. Changing this forces a new resource to be created.
     */
    @JvmName("freytqvqmpyouukc")
    public suspend fun publicIpPrefixId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicIpPrefixId = mapped
    }

    /**
     * @param value The name of the Resource Group where this Public IP should exist. Changing this forces a new Public IP to be created.
     */
    @JvmName("klyjpxlucxwnudro")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.
     */
    @JvmName("hhfifpuplshvlagv")
    public suspend fun reverseFqdn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.reverseFqdn = mapped
    }

    /**
     * @param value The SKU of the Public IP. Accepted values are `Basic` and `Standard`. Defaults to `Basic`. Changing this forces a new resource to be created.
     * > **Note** Public IP Standard SKUs require `allocation_method` to be set to `Static`.
     */
    @JvmName("hnxqncsiwnhuldgj")
    public suspend fun sku(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value The SKU Tier that should be used for the Public IP. Possible values are `Regional` and `Global`. Defaults to `Regional`. Changing this forces a new resource to be created.
     * > **Note** When `sku_tier` is set to `Global`, `sku` must be set to `Standard`.
     */
    @JvmName("gatmymjqmtgulxkq")
    public suspend fun skuTier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skuTier = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("snmhrdrwodflqvfv")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags to assign to the resource.
     */
    @JvmName("ehpccyvneavuuvln")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
     * > **Note:** Availability Zones are only supported with a [Standard SKU](https://docs.microsoft.com/azure/virtual-network/virtual-network-ip-addresses-overview-arm#standard) and [in select regions](https://docs.microsoft.com/azure/availability-zones/az-overview) at this time. Standard SKU Public IP Addresses that do not specify a zone are **not** zone-redundant by default.
     */
    @JvmName("mjcgvxcwyrwbamgu")
    public suspend fun zones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    /**
     * @param values A collection containing the availability zone to allocate the Public IP in. Changing this forces a new resource to be created.
     * > **Note:** Availability Zones are only supported with a [Standard SKU](https://docs.microsoft.com/azure/virtual-network/virtual-network-ip-addresses-overview-arm#standard) and [in select regions](https://docs.microsoft.com/azure/availability-zones/az-overview) at this time. Standard SKU Public IP Addresses that do not specify a zone are **not** zone-redundant by default.
     */
    @JvmName("tgbbgkilfjemsids")
    public suspend fun zones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.zones = mapped
    }

    internal fun build(): PublicIpArgs = PublicIpArgs(
        allocationMethod = allocationMethod,
        ddosProtectionMode = ddosProtectionMode,
        ddosProtectionPlanId = ddosProtectionPlanId,
        domainNameLabel = domainNameLabel,
        edgeZone = edgeZone,
        idleTimeoutInMinutes = idleTimeoutInMinutes,
        ipTags = ipTags,
        ipVersion = ipVersion,
        location = location,
        name = name,
        publicIpPrefixId = publicIpPrefixId,
        resourceGroupName = resourceGroupName,
        reverseFqdn = reverseFqdn,
        sku = sku,
        skuTier = skuTier,
        tags = tags,
        zones = zones,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy