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

com.pulumi.azure.frontdoor.kotlin.FrontdoorArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.frontdoor.kotlin

import com.pulumi.azure.frontdoor.FrontdoorArgs.builder
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolArgs
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolArgsBuilder
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolHealthProbeArgs
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolHealthProbeArgsBuilder
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolLoadBalancingArgs
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolLoadBalancingArgsBuilder
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolSettingArgs
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorBackendPoolSettingArgsBuilder
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorFrontendEndpointArgs
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorFrontendEndpointArgsBuilder
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorRoutingRuleArgs
import com.pulumi.azure.frontdoor.kotlin.inputs.FrontdoorRoutingRuleArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * !> **IMPORTANT** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers.
 * Manages an Azure Front Door (classic) instance.
 * Azure Front Door Service is Microsoft's highly available and scalable web application acceleration platform and global HTTP(S) load balancer. It provides built-in DDoS protection and application layer security and caching. Front Door enables you to build applications that maximize and automate high-availability and performance for your end-users. Use Front Door with Azure services including Web/Mobile Apps, Cloud Services and Virtual Machines – or combine it with on-premises services for hybrid deployments and smooth cloud migration.
 * Below are some of the key scenarios that Azure Front Door Service addresses:
 * * Use Front Door to improve application scale and availability with instant multi-region failover
 * * Use Front Door to improve application performance with SSL offload and routing requests to the fastest available application backend.
 * * Use Front Door for application layer security and DDoS protection for your application.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "FrontDoorExampleResourceGroup",
 *     location: "West Europe",
 * });
 * const exampleFrontdoor = new azure.frontdoor.Frontdoor("example", {
 *     name: "example-FrontDoor",
 *     resourceGroupName: example.name,
 *     routingRules: [{
 *         name: "exampleRoutingRule1",
 *         acceptedProtocols: [
 *             "Http",
 *             "Https",
 *         ],
 *         patternsToMatches: ["/*"],
 *         frontendEndpoints: ["exampleFrontendEndpoint1"],
 *         forwardingConfiguration: {
 *             forwardingProtocol: "MatchRequest",
 *             backendPoolName: "exampleBackendBing",
 *         },
 *     }],
 *     backendPoolLoadBalancings: [{
 *         name: "exampleLoadBalancingSettings1",
 *     }],
 *     backendPoolHealthProbes: [{
 *         name: "exampleHealthProbeSetting1",
 *     }],
 *     backendPools: [{
 *         name: "exampleBackendBing",
 *         backends: [{
 *             hostHeader: "www.bing.com",
 *             address: "www.bing.com",
 *             httpPort: 80,
 *             httpsPort: 443,
 *         }],
 *         loadBalancingName: "exampleLoadBalancingSettings1",
 *         healthProbeName: "exampleHealthProbeSetting1",
 *     }],
 *     frontendEndpoints: [{
 *         name: "exampleFrontendEndpoint1",
 *         hostName: "example-FrontDoor.azurefd.net",
 *     }],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="FrontDoorExampleResourceGroup",
 *     location="West Europe")
 * example_frontdoor = azure.frontdoor.Frontdoor("example",
 *     name="example-FrontDoor",
 *     resource_group_name=example.name,
 *     routing_rules=[{
 *         "name": "exampleRoutingRule1",
 *         "accepted_protocols": [
 *             "Http",
 *             "Https",
 *         ],
 *         "patterns_to_matches": ["/*"],
 *         "frontend_endpoints": ["exampleFrontendEndpoint1"],
 *         "forwarding_configuration": {
 *             "forwarding_protocol": "MatchRequest",
 *             "backend_pool_name": "exampleBackendBing",
 *         },
 *     }],
 *     backend_pool_load_balancings=[{
 *         "name": "exampleLoadBalancingSettings1",
 *     }],
 *     backend_pool_health_probes=[{
 *         "name": "exampleHealthProbeSetting1",
 *     }],
 *     backend_pools=[{
 *         "name": "exampleBackendBing",
 *         "backends": [{
 *             "host_header": "www.bing.com",
 *             "address": "www.bing.com",
 *             "http_port": 80,
 *             "https_port": 443,
 *         }],
 *         "load_balancing_name": "exampleLoadBalancingSettings1",
 *         "health_probe_name": "exampleHealthProbeSetting1",
 *     }],
 *     frontend_endpoints=[{
 *         "name": "exampleFrontendEndpoint1",
 *         "host_name": "example-FrontDoor.azurefd.net",
 *     }])
 * ```
 * ```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 = "FrontDoorExampleResourceGroup",
 *         Location = "West Europe",
 *     });
 *     var exampleFrontdoor = new Azure.FrontDoor.Frontdoor("example", new()
 *     {
 *         Name = "example-FrontDoor",
 *         ResourceGroupName = example.Name,
 *         RoutingRules = new[]
 *         {
 *             new Azure.FrontDoor.Inputs.FrontdoorRoutingRuleArgs
 *             {
 *                 Name = "exampleRoutingRule1",
 *                 AcceptedProtocols = new[]
 *                 {
 *                     "Http",
 *                     "Https",
 *                 },
 *                 PatternsToMatches = new[]
 *                 {
 *                     "/*",
 *                 },
 *                 FrontendEndpoints = new[]
 *                 {
 *                     "exampleFrontendEndpoint1",
 *                 },
 *                 ForwardingConfiguration = new Azure.FrontDoor.Inputs.FrontdoorRoutingRuleForwardingConfigurationArgs
 *                 {
 *                     ForwardingProtocol = "MatchRequest",
 *                     BackendPoolName = "exampleBackendBing",
 *                 },
 *             },
 *         },
 *         BackendPoolLoadBalancings = new[]
 *         {
 *             new Azure.FrontDoor.Inputs.FrontdoorBackendPoolLoadBalancingArgs
 *             {
 *                 Name = "exampleLoadBalancingSettings1",
 *             },
 *         },
 *         BackendPoolHealthProbes = new[]
 *         {
 *             new Azure.FrontDoor.Inputs.FrontdoorBackendPoolHealthProbeArgs
 *             {
 *                 Name = "exampleHealthProbeSetting1",
 *             },
 *         },
 *         BackendPools = new[]
 *         {
 *             new Azure.FrontDoor.Inputs.FrontdoorBackendPoolArgs
 *             {
 *                 Name = "exampleBackendBing",
 *                 Backends = new[]
 *                 {
 *                     new Azure.FrontDoor.Inputs.FrontdoorBackendPoolBackendArgs
 *                     {
 *                         HostHeader = "www.bing.com",
 *                         Address = "www.bing.com",
 *                         HttpPort = 80,
 *                         HttpsPort = 443,
 *                     },
 *                 },
 *                 LoadBalancingName = "exampleLoadBalancingSettings1",
 *                 HealthProbeName = "exampleHealthProbeSetting1",
 *             },
 *         },
 *         FrontendEndpoints = new[]
 *         {
 *             new Azure.FrontDoor.Inputs.FrontdoorFrontendEndpointArgs
 *             {
 *                 Name = "exampleFrontendEndpoint1",
 *                 HostName = "example-FrontDoor.azurefd.net",
 *             },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/frontdoor"
 * 	"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("FrontDoorExampleResourceGroup"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = frontdoor.NewFrontdoor(ctx, "example", &frontdoor.FrontdoorArgs{
 * 			Name:              pulumi.String("example-FrontDoor"),
 * 			ResourceGroupName: example.Name,
 * 			RoutingRules: frontdoor.FrontdoorRoutingRuleArray{
 * 				&frontdoor.FrontdoorRoutingRuleArgs{
 * 					Name: pulumi.String("exampleRoutingRule1"),
 * 					AcceptedProtocols: pulumi.StringArray{
 * 						pulumi.String("Http"),
 * 						pulumi.String("Https"),
 * 					},
 * 					PatternsToMatches: pulumi.StringArray{
 * 						pulumi.String("/*"),
 * 					},
 * 					FrontendEndpoints: pulumi.StringArray{
 * 						pulumi.String("exampleFrontendEndpoint1"),
 * 					},
 * 					ForwardingConfiguration: &frontdoor.FrontdoorRoutingRuleForwardingConfigurationArgs{
 * 						ForwardingProtocol: pulumi.String("MatchRequest"),
 * 						BackendPoolName:    pulumi.String("exampleBackendBing"),
 * 					},
 * 				},
 * 			},
 * 			BackendPoolLoadBalancings: frontdoor.FrontdoorBackendPoolLoadBalancingArray{
 * 				&frontdoor.FrontdoorBackendPoolLoadBalancingArgs{
 * 					Name: pulumi.String("exampleLoadBalancingSettings1"),
 * 				},
 * 			},
 * 			BackendPoolHealthProbes: frontdoor.FrontdoorBackendPoolHealthProbeArray{
 * 				&frontdoor.FrontdoorBackendPoolHealthProbeArgs{
 * 					Name: pulumi.String("exampleHealthProbeSetting1"),
 * 				},
 * 			},
 * 			BackendPools: frontdoor.FrontdoorBackendPoolArray{
 * 				&frontdoor.FrontdoorBackendPoolArgs{
 * 					Name: pulumi.String("exampleBackendBing"),
 * 					Backends: frontdoor.FrontdoorBackendPoolBackendArray{
 * 						&frontdoor.FrontdoorBackendPoolBackendArgs{
 * 							HostHeader: pulumi.String("www.bing.com"),
 * 							Address:    pulumi.String("www.bing.com"),
 * 							HttpPort:   pulumi.Int(80),
 * 							HttpsPort:  pulumi.Int(443),
 * 						},
 * 					},
 * 					LoadBalancingName: pulumi.String("exampleLoadBalancingSettings1"),
 * 					HealthProbeName:   pulumi.String("exampleHealthProbeSetting1"),
 * 				},
 * 			},
 * 			FrontendEndpoints: frontdoor.FrontdoorFrontendEndpointArray{
 * 				&frontdoor.FrontdoorFrontendEndpointArgs{
 * 					Name:     pulumi.String("exampleFrontendEndpoint1"),
 * 					HostName: pulumi.String("example-FrontDoor.azurefd.net"),
 * 				},
 * 			},
 * 		})
 * 		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.frontdoor.Frontdoor;
 * import com.pulumi.azure.frontdoor.FrontdoorArgs;
 * import com.pulumi.azure.frontdoor.inputs.FrontdoorRoutingRuleArgs;
 * import com.pulumi.azure.frontdoor.inputs.FrontdoorRoutingRuleForwardingConfigurationArgs;
 * import com.pulumi.azure.frontdoor.inputs.FrontdoorBackendPoolLoadBalancingArgs;
 * import com.pulumi.azure.frontdoor.inputs.FrontdoorBackendPoolHealthProbeArgs;
 * import com.pulumi.azure.frontdoor.inputs.FrontdoorBackendPoolArgs;
 * import com.pulumi.azure.frontdoor.inputs.FrontdoorFrontendEndpointArgs;
 * 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("FrontDoorExampleResourceGroup")
 *             .location("West Europe")
 *             .build());
 *         var exampleFrontdoor = new Frontdoor("exampleFrontdoor", FrontdoorArgs.builder()
 *             .name("example-FrontDoor")
 *             .resourceGroupName(example.name())
 *             .routingRules(FrontdoorRoutingRuleArgs.builder()
 *                 .name("exampleRoutingRule1")
 *                 .acceptedProtocols(
 *                     "Http",
 *                     "Https")
 *                 .patternsToMatches("/*")
 *                 .frontendEndpoints("exampleFrontendEndpoint1")
 *                 .forwardingConfiguration(FrontdoorRoutingRuleForwardingConfigurationArgs.builder()
 *                     .forwardingProtocol("MatchRequest")
 *                     .backendPoolName("exampleBackendBing")
 *                     .build())
 *                 .build())
 *             .backendPoolLoadBalancings(FrontdoorBackendPoolLoadBalancingArgs.builder()
 *                 .name("exampleLoadBalancingSettings1")
 *                 .build())
 *             .backendPoolHealthProbes(FrontdoorBackendPoolHealthProbeArgs.builder()
 *                 .name("exampleHealthProbeSetting1")
 *                 .build())
 *             .backendPools(FrontdoorBackendPoolArgs.builder()
 *                 .name("exampleBackendBing")
 *                 .backends(FrontdoorBackendPoolBackendArgs.builder()
 *                     .hostHeader("www.bing.com")
 *                     .address("www.bing.com")
 *                     .httpPort(80)
 *                     .httpsPort(443)
 *                     .build())
 *                 .loadBalancingName("exampleLoadBalancingSettings1")
 *                 .healthProbeName("exampleHealthProbeSetting1")
 *                 .build())
 *             .frontendEndpoints(FrontdoorFrontendEndpointArgs.builder()
 *                 .name("exampleFrontendEndpoint1")
 *                 .hostName("example-FrontDoor.azurefd.net")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: FrontDoorExampleResourceGroup
 *       location: West Europe
 *   exampleFrontdoor:
 *     type: azure:frontdoor:Frontdoor
 *     name: example
 *     properties:
 *       name: example-FrontDoor
 *       resourceGroupName: ${example.name}
 *       routingRules:
 *         - name: exampleRoutingRule1
 *           acceptedProtocols:
 *             - Http
 *             - Https
 *           patternsToMatches:
 *             - /*
 *           frontendEndpoints:
 *             - exampleFrontendEndpoint1
 *           forwardingConfiguration:
 *             forwardingProtocol: MatchRequest
 *             backendPoolName: exampleBackendBing
 *       backendPoolLoadBalancings:
 *         - name: exampleLoadBalancingSettings1
 *       backendPoolHealthProbes:
 *         - name: exampleHealthProbeSetting1
 *       backendPools:
 *         - name: exampleBackendBing
 *           backends:
 *             - hostHeader: www.bing.com
 *               address: www.bing.com
 *               httpPort: 80
 *               httpsPort: 443
 *           loadBalancingName: exampleLoadBalancingSettings1
 *           healthProbeName: exampleHealthProbeSetting1
 *       frontendEndpoints:
 *         - name: exampleFrontendEndpoint1
 *           hostName: example-FrontDoor.azurefd.net
 * ```
 * 
 * ## Import
 * Front Doors can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:frontdoor/frontdoor:Frontdoor example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/frontDoors/frontdoor1
 * ```
 * @property backendPoolHealthProbes A `backend_pool_health_probe` block as defined below.
 * @property backendPoolLoadBalancings A `backend_pool_load_balancing` block as defined below.
 * @property backendPoolSettings A `backend_pool_settings` block as defined below.
 * @property backendPools A `backend_pool` block as defined below.
 * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
 * @property friendlyName A friendly name for the Front Door service.
 * @property frontendEndpoints A `frontend_endpoint` block as defined below.
 * @property loadBalancerEnabled Should the Front Door Load Balancer be Enabled? Defaults to `true`.
 * @property name Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
 * @property resourceGroupName Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
 * @property routingRules A `routing_rule` block as defined below.
 * @property tags A mapping of tags to assign to the resource.
 * */*/*/*/*/*/
 */
public data class FrontdoorArgs(
    public val backendPoolHealthProbes: Output>? = null,
    public val backendPoolLoadBalancings: Output>? = null,
    public val backendPoolSettings: Output>? = null,
    public val backendPools: Output>? = null,
    public val friendlyName: Output? = null,
    public val frontendEndpoints: Output>? = null,
    public val loadBalancerEnabled: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val routingRules: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.frontdoor.FrontdoorArgs =
        com.pulumi.azure.frontdoor.FrontdoorArgs.builder()
            .backendPoolHealthProbes(
                backendPoolHealthProbes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .backendPoolLoadBalancings(
                backendPoolLoadBalancings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .backendPoolSettings(
                backendPoolSettings?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .backendPools(
                backendPools?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .friendlyName(friendlyName?.applyValue({ args0 -> args0 }))
            .frontendEndpoints(
                frontendEndpoints?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .loadBalancerEnabled(loadBalancerEnabled?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .routingRules(
                routingRules?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [FrontdoorArgs].
 */
@PulumiTagMarker
public class FrontdoorArgsBuilder internal constructor() {
    private var backendPoolHealthProbes: Output>? = null

    private var backendPoolLoadBalancings: Output>? = null

    private var backendPoolSettings: Output>? = null

    private var backendPools: Output>? = null

    private var friendlyName: Output? = null

    private var frontendEndpoints: Output>? = null

    private var loadBalancerEnabled: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var routingRules: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value A `backend_pool_health_probe` block as defined below.
     */
    @JvmName("osxihsvktyxqmqhv")
    public suspend fun backendPoolHealthProbes(`value`: Output>) {
        this.backendPoolHealthProbes = value
    }

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

    /**
     * @param values A `backend_pool_health_probe` block as defined below.
     */
    @JvmName("ibryjiskmxjyhwts")
    public suspend fun backendPoolHealthProbes(values: List>) {
        this.backendPoolHealthProbes = Output.all(values)
    }

    /**
     * @param value A `backend_pool_load_balancing` block as defined below.
     */
    @JvmName("qfovishylkimdqlm")
    public suspend fun backendPoolLoadBalancings(`value`: Output>) {
        this.backendPoolLoadBalancings = value
    }

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

    /**
     * @param values A `backend_pool_load_balancing` block as defined below.
     */
    @JvmName("defjljijvmlixeae")
    public suspend fun backendPoolLoadBalancings(values: List>) {
        this.backendPoolLoadBalancings = Output.all(values)
    }

    /**
     * @param value A `backend_pool_settings` block as defined below.
     */
    @JvmName("otbmudlpvgpixfwb")
    public suspend fun backendPoolSettings(`value`: Output>) {
        this.backendPoolSettings = value
    }

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

    /**
     * @param values A `backend_pool_settings` block as defined below.
     */
    @JvmName("hupgmssajoqhxvyh")
    public suspend fun backendPoolSettings(values: List>) {
        this.backendPoolSettings = Output.all(values)
    }

    /**
     * @param value A `backend_pool` block as defined below.
     * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
     */
    @JvmName("iiwjhudnynkdoopi")
    public suspend fun backendPools(`value`: Output>) {
        this.backendPools = value
    }

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

    /**
     * @param values A `backend_pool` block as defined below.
     * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
     */
    @JvmName("cuagfbgjtywupyka")
    public suspend fun backendPools(values: List>) {
        this.backendPools = Output.all(values)
    }

    /**
     * @param value A friendly name for the Front Door service.
     */
    @JvmName("rxnpljtuardhbycp")
    public suspend fun friendlyName(`value`: Output) {
        this.friendlyName = value
    }

    /**
     * @param value A `frontend_endpoint` block as defined below.
     */
    @JvmName("jwkowudrsqfjdihd")
    public suspend fun frontendEndpoints(`value`: Output>) {
        this.frontendEndpoints = value
    }

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

    /**
     * @param values A `frontend_endpoint` block as defined below.
     */
    @JvmName("qjamwhivnpyjphyt")
    public suspend fun frontendEndpoints(values: List>) {
        this.frontendEndpoints = Output.all(values)
    }

    /**
     * @param value Should the Front Door Load Balancer be Enabled? Defaults to `true`.
     */
    @JvmName("sgclrsgirxtsvxdu")
    public suspend fun loadBalancerEnabled(`value`: Output) {
        this.loadBalancerEnabled = value
    }

    /**
     * @param value Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
     */
    @JvmName("bdlafxbmdxvtfpsh")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
     */
    @JvmName("dppopxyuuesdsuen")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A `routing_rule` block as defined below.
     */
    @JvmName("otsgnpxqtpagdski")
    public suspend fun routingRules(`value`: Output>) {
        this.routingRules = value
    }

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

    /**
     * @param values A `routing_rule` block as defined below.
     */
    @JvmName("qyqmvnkxdnllhsho")
    public suspend fun routingRules(values: List>) {
        this.routingRules = Output.all(values)
    }

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

    /**
     * @param value A `backend_pool_health_probe` block as defined below.
     */
    @JvmName("wyupsceftynqmxsg")
    public suspend fun backendPoolHealthProbes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendPoolHealthProbes = mapped
    }

    /**
     * @param argument A `backend_pool_health_probe` block as defined below.
     */
    @JvmName("weyyjvjenjhcrntq")
    public suspend fun backendPoolHealthProbes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolHealthProbeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPoolHealthProbes = mapped
    }

    /**
     * @param argument A `backend_pool_health_probe` block as defined below.
     */
    @JvmName("xnresirkqcyrpdvy")
    public suspend fun backendPoolHealthProbes(vararg argument: suspend FrontdoorBackendPoolHealthProbeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolHealthProbeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPoolHealthProbes = mapped
    }

    /**
     * @param argument A `backend_pool_health_probe` block as defined below.
     */
    @JvmName("irgmmwfpxrmaktrr")
    public suspend fun backendPoolHealthProbes(argument: suspend FrontdoorBackendPoolHealthProbeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrontdoorBackendPoolHealthProbeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.backendPoolHealthProbes = mapped
    }

    /**
     * @param values A `backend_pool_health_probe` block as defined below.
     */
    @JvmName("tcqqfhmllhgtbtlw")
    public suspend fun backendPoolHealthProbes(vararg values: FrontdoorBackendPoolHealthProbeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backendPoolHealthProbes = mapped
    }

    /**
     * @param value A `backend_pool_load_balancing` block as defined below.
     */
    @JvmName("lsblirqvdjwpajnl")
    public suspend fun backendPoolLoadBalancings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendPoolLoadBalancings = mapped
    }

    /**
     * @param argument A `backend_pool_load_balancing` block as defined below.
     */
    @JvmName("myjfjmpevbolbieq")
    public suspend fun backendPoolLoadBalancings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolLoadBalancingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPoolLoadBalancings = mapped
    }

    /**
     * @param argument A `backend_pool_load_balancing` block as defined below.
     */
    @JvmName("renqwtuumhgmuirk")
    public suspend fun backendPoolLoadBalancings(vararg argument: suspend FrontdoorBackendPoolLoadBalancingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolLoadBalancingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPoolLoadBalancings = mapped
    }

    /**
     * @param argument A `backend_pool_load_balancing` block as defined below.
     */
    @JvmName("vgmskotgktxklugg")
    public suspend fun backendPoolLoadBalancings(argument: suspend FrontdoorBackendPoolLoadBalancingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrontdoorBackendPoolLoadBalancingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.backendPoolLoadBalancings = mapped
    }

    /**
     * @param values A `backend_pool_load_balancing` block as defined below.
     */
    @JvmName("ihuxpscjcjdtafhq")
    public suspend fun backendPoolLoadBalancings(vararg values: FrontdoorBackendPoolLoadBalancingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backendPoolLoadBalancings = mapped
    }

    /**
     * @param value A `backend_pool_settings` block as defined below.
     */
    @JvmName("vbkdcdlehrmaigvr")
    public suspend fun backendPoolSettings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendPoolSettings = mapped
    }

    /**
     * @param argument A `backend_pool_settings` block as defined below.
     */
    @JvmName("wjljevrtisjqwrcd")
    public suspend fun backendPoolSettings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPoolSettings = mapped
    }

    /**
     * @param argument A `backend_pool_settings` block as defined below.
     */
    @JvmName("nplkvybaowprpkuf")
    public suspend fun backendPoolSettings(vararg argument: suspend FrontdoorBackendPoolSettingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolSettingArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPoolSettings = mapped
    }

    /**
     * @param argument A `backend_pool_settings` block as defined below.
     */
    @JvmName("rlrfqdgmxonbyuoo")
    public suspend fun backendPoolSettings(argument: suspend FrontdoorBackendPoolSettingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrontdoorBackendPoolSettingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.backendPoolSettings = mapped
    }

    /**
     * @param values A `backend_pool_settings` block as defined below.
     */
    @JvmName("vdqvuuynwbpachri")
    public suspend fun backendPoolSettings(vararg values: FrontdoorBackendPoolSettingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backendPoolSettings = mapped
    }

    /**
     * @param value A `backend_pool` block as defined below.
     * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
     */
    @JvmName("ltyqhyvuwbovytgs")
    public suspend fun backendPools(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.backendPools = mapped
    }

    /**
     * @param argument A `backend_pool` block as defined below.
     * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
     */
    @JvmName("kreuwwciscvtmser")
    public suspend fun backendPools(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPools = mapped
    }

    /**
     * @param argument A `backend_pool` block as defined below.
     * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
     */
    @JvmName("wtfmdyokcuwuvpyc")
    public suspend fun backendPools(vararg argument: suspend FrontdoorBackendPoolArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontdoorBackendPoolArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.backendPools = mapped
    }

    /**
     * @param argument A `backend_pool` block as defined below.
     * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
     */
    @JvmName("afhesygjxajylvwy")
    public suspend fun backendPools(argument: suspend FrontdoorBackendPoolArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FrontdoorBackendPoolArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.backendPools = mapped
    }

    /**
     * @param values A `backend_pool` block as defined below.
     * > Azure by default allows specifying up to 50 Backend Pools - but this quota can be increased via Microsoft Support.
     */
    @JvmName("kcvafyohokifoycq")
    public suspend fun backendPools(vararg values: FrontdoorBackendPoolArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backendPools = mapped
    }

    /**
     * @param value A friendly name for the Front Door service.
     */
    @JvmName("rgjeodfxqakpmxqm")
    public suspend fun friendlyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.friendlyName = mapped
    }

    /**
     * @param value A `frontend_endpoint` block as defined below.
     */
    @JvmName("dbbhdklmfbphghhc")
    public suspend fun frontendEndpoints(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.frontendEndpoints = mapped
    }

    /**
     * @param argument A `frontend_endpoint` block as defined below.
     */
    @JvmName("wweyssjimfjcfikk")
    public suspend fun frontendEndpoints(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontdoorFrontendEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.frontendEndpoints = mapped
    }

    /**
     * @param argument A `frontend_endpoint` block as defined below.
     */
    @JvmName("yjdhqvrgpiputbqp")
    public suspend fun frontendEndpoints(vararg argument: suspend FrontdoorFrontendEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontdoorFrontendEndpointArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.frontendEndpoints = mapped
    }

    /**
     * @param argument A `frontend_endpoint` block as defined below.
     */
    @JvmName("bbcldjxnqswtcrer")
    public suspend fun frontendEndpoints(argument: suspend FrontdoorFrontendEndpointArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FrontdoorFrontendEndpointArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.frontendEndpoints = mapped
    }

    /**
     * @param values A `frontend_endpoint` block as defined below.
     */
    @JvmName("ntqivrmqqvarncdi")
    public suspend fun frontendEndpoints(vararg values: FrontdoorFrontendEndpointArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frontendEndpoints = mapped
    }

    /**
     * @param value Should the Front Door Load Balancer be Enabled? Defaults to `true`.
     */
    @JvmName("qkivvbcdjsbxrlqu")
    public suspend fun loadBalancerEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancerEnabled = mapped
    }

    /**
     * @param value Specifies the name of the Front Door service. Must be globally unique. Changing this forces a new resource to be created.
     */
    @JvmName("yhymkltrtydriqjp")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the name of the Resource Group in which the Front Door service should exist. Changing this forces a new resource to be created.
     */
    @JvmName("psuakkqeaopmrbod")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value A `routing_rule` block as defined below.
     */
    @JvmName("sutvmosbeivywpxf")
    public suspend fun routingRules(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.routingRules = mapped
    }

    /**
     * @param argument A `routing_rule` block as defined below.
     */
    @JvmName("iashiqjrsivjhoaj")
    public suspend fun routingRules(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FrontdoorRoutingRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.routingRules = mapped
    }

    /**
     * @param argument A `routing_rule` block as defined below.
     */
    @JvmName("henntqrglhmosloj")
    public suspend fun routingRules(vararg argument: suspend FrontdoorRoutingRuleArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FrontdoorRoutingRuleArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.routingRules = mapped
    }

    /**
     * @param argument A `routing_rule` block as defined below.
     */
    @JvmName("vwetpaodwuyhncdy")
    public suspend fun routingRules(argument: suspend FrontdoorRoutingRuleArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FrontdoorRoutingRuleArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.routingRules = mapped
    }

    /**
     * @param values A `routing_rule` block as defined below.
     */
    @JvmName("gmqdivkrgkrjgoob")
    public suspend fun routingRules(vararg values: FrontdoorRoutingRuleArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.routingRules = mapped
    }

    /**
     * @param value A mapping of tags to assign to the resource.
     */
    @JvmName("mhkeuvogwjsenidl")
    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("gllqetvxynddrabj")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): FrontdoorArgs = FrontdoorArgs(
        backendPoolHealthProbes = backendPoolHealthProbes,
        backendPoolLoadBalancings = backendPoolLoadBalancings,
        backendPoolSettings = backendPoolSettings,
        backendPools = backendPools,
        friendlyName = friendlyName,
        frontendEndpoints = frontendEndpoints,
        loadBalancerEnabled = loadBalancerEnabled,
        name = name,
        resourceGroupName = resourceGroupName,
        routingRules = routingRules,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy