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

com.pulumi.azure.cdn.kotlin.FrontdoorRouteArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cdn.kotlin

import com.pulumi.azure.cdn.FrontdoorRouteArgs.builder
import com.pulumi.azure.cdn.kotlin.inputs.FrontdoorRouteCacheArgs
import com.pulumi.azure.cdn.kotlin.inputs.FrontdoorRouteCacheArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Manages a Front Door (standard/premium) Route.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * import * as std from "@pulumi/std";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-cdn-frontdoor",
 *     location: "West Europe",
 * });
 * const exampleZone = new azure.dns.Zone("example", {
 *     name: "example.com",
 *     resourceGroupName: example.name,
 * });
 * const exampleFrontdoorProfile = new azure.cdn.FrontdoorProfile("example", {
 *     name: "example-profile",
 *     resourceGroupName: example.name,
 *     skuName: "Standard_AzureFrontDoor",
 * });
 * const exampleFrontdoorOriginGroup = new azure.cdn.FrontdoorOriginGroup("example", {
 *     name: "example-originGroup",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 *     loadBalancing: {
 *         additionalLatencyInMilliseconds: 0,
 *         sampleSize: 16,
 *         successfulSamplesRequired: 3,
 *     },
 * });
 * const exampleFrontdoorOrigin = new azure.cdn.FrontdoorOrigin("example", {
 *     name: "example-origin",
 *     cdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.id,
 *     enabled: true,
 *     certificateNameCheckEnabled: false,
 *     hostName: "contoso.com",
 *     httpPort: 80,
 *     httpsPort: 443,
 *     originHostHeader: "www.contoso.com",
 *     priority: 1,
 *     weight: 1,
 * });
 * const exampleFrontdoorEndpoint = new azure.cdn.FrontdoorEndpoint("example", {
 *     name: "example-endpoint",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 * });
 * const exampleFrontdoorRuleSet = new azure.cdn.FrontdoorRuleSet("example", {
 *     name: "ExampleRuleSet",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 * });
 * const contoso = new azure.cdn.FrontdoorCustomDomain("contoso", {
 *     name: "contoso-custom-domain",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 *     dnsZoneId: exampleZone.id,
 *     hostName: std.joinOutput({
 *         separator: ".",
 *         input: [
 *             "contoso",
 *             exampleZone.name,
 *         ],
 *     }).apply(invoke => invoke.result),
 *     tls: {
 *         certificateType: "ManagedCertificate",
 *         minimumTlsVersion: "TLS12",
 *     },
 * });
 * const fabrikam = new azure.cdn.FrontdoorCustomDomain("fabrikam", {
 *     name: "fabrikam-custom-domain",
 *     cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
 *     dnsZoneId: exampleZone.id,
 *     hostName: std.joinOutput({
 *         separator: ".",
 *         input: [
 *             "fabrikam",
 *             exampleZone.name,
 *         ],
 *     }).apply(invoke => invoke.result),
 *     tls: {
 *         certificateType: "ManagedCertificate",
 *         minimumTlsVersion: "TLS12",
 *     },
 * });
 * const exampleFrontdoorRoute = new azure.cdn.FrontdoorRoute("example", {
 *     name: "example-route",
 *     cdnFrontdoorEndpointId: exampleFrontdoorEndpoint.id,
 *     cdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.id,
 *     cdnFrontdoorOriginIds: [exampleFrontdoorOrigin.id],
 *     cdnFrontdoorRuleSetIds: [exampleFrontdoorRuleSet.id],
 *     enabled: true,
 *     forwardingProtocol: "HttpsOnly",
 *     httpsRedirectEnabled: true,
 *     patternsToMatches: ["/*"],
 *     supportedProtocols: [
 *         "Http",
 *         "Https",
 *     ],
 *     cdnFrontdoorCustomDomainIds: [
 *         contoso.id,
 *         fabrikam.id,
 *     ],
 *     linkToDefaultDomain: false,
 *     cache: {
 *         queryStringCachingBehavior: "IgnoreSpecifiedQueryStrings",
 *         queryStrings: [
 *             "account",
 *             "settings",
 *         ],
 *         compressionEnabled: true,
 *         contentTypesToCompresses: [
 *             "text/html",
 *             "text/javascript",
 *             "text/xml",
 *         ],
 *     },
 * });
 * const contosoFrontdoorCustomDomainAssociation = new azure.cdn.FrontdoorCustomDomainAssociation("contoso", {
 *     cdnFrontdoorCustomDomainId: contoso.id,
 *     cdnFrontdoorRouteIds: [exampleFrontdoorRoute.id],
 * });
 * const fabrikamFrontdoorCustomDomainAssociation = new azure.cdn.FrontdoorCustomDomainAssociation("fabrikam", {
 *     cdnFrontdoorCustomDomainId: fabrikam.id,
 *     cdnFrontdoorRouteIds: [exampleFrontdoorRoute.id],
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * import pulumi_std as std
 * example = azure.core.ResourceGroup("example",
 *     name="example-cdn-frontdoor",
 *     location="West Europe")
 * example_zone = azure.dns.Zone("example",
 *     name="example.com",
 *     resource_group_name=example.name)
 * example_frontdoor_profile = azure.cdn.FrontdoorProfile("example",
 *     name="example-profile",
 *     resource_group_name=example.name,
 *     sku_name="Standard_AzureFrontDoor")
 * example_frontdoor_origin_group = azure.cdn.FrontdoorOriginGroup("example",
 *     name="example-originGroup",
 *     cdn_frontdoor_profile_id=example_frontdoor_profile.id,
 *     load_balancing={
 *         "additional_latency_in_milliseconds": 0,
 *         "sample_size": 16,
 *         "successful_samples_required": 3,
 *     })
 * example_frontdoor_origin = azure.cdn.FrontdoorOrigin("example",
 *     name="example-origin",
 *     cdn_frontdoor_origin_group_id=example_frontdoor_origin_group.id,
 *     enabled=True,
 *     certificate_name_check_enabled=False,
 *     host_name="contoso.com",
 *     http_port=80,
 *     https_port=443,
 *     origin_host_header="www.contoso.com",
 *     priority=1,
 *     weight=1)
 * example_frontdoor_endpoint = azure.cdn.FrontdoorEndpoint("example",
 *     name="example-endpoint",
 *     cdn_frontdoor_profile_id=example_frontdoor_profile.id)
 * example_frontdoor_rule_set = azure.cdn.FrontdoorRuleSet("example",
 *     name="ExampleRuleSet",
 *     cdn_frontdoor_profile_id=example_frontdoor_profile.id)
 * contoso = azure.cdn.FrontdoorCustomDomain("contoso",
 *     name="contoso-custom-domain",
 *     cdn_frontdoor_profile_id=example_frontdoor_profile.id,
 *     dns_zone_id=example_zone.id,
 *     host_name=std.join_output(separator=".",
 *         input=[
 *             "contoso",
 *             example_zone.name,
 *         ]).apply(lambda invoke: invoke.result),
 *     tls={
 *         "certificate_type": "ManagedCertificate",
 *         "minimum_tls_version": "TLS12",
 *     })
 * fabrikam = azure.cdn.FrontdoorCustomDomain("fabrikam",
 *     name="fabrikam-custom-domain",
 *     cdn_frontdoor_profile_id=example_frontdoor_profile.id,
 *     dns_zone_id=example_zone.id,
 *     host_name=std.join_output(separator=".",
 *         input=[
 *             "fabrikam",
 *             example_zone.name,
 *         ]).apply(lambda invoke: invoke.result),
 *     tls={
 *         "certificate_type": "ManagedCertificate",
 *         "minimum_tls_version": "TLS12",
 *     })
 * example_frontdoor_route = azure.cdn.FrontdoorRoute("example",
 *     name="example-route",
 *     cdn_frontdoor_endpoint_id=example_frontdoor_endpoint.id,
 *     cdn_frontdoor_origin_group_id=example_frontdoor_origin_group.id,
 *     cdn_frontdoor_origin_ids=[example_frontdoor_origin.id],
 *     cdn_frontdoor_rule_set_ids=[example_frontdoor_rule_set.id],
 *     enabled=True,
 *     forwarding_protocol="HttpsOnly",
 *     https_redirect_enabled=True,
 *     patterns_to_matches=["/*"],
 *     supported_protocols=[
 *         "Http",
 *         "Https",
 *     ],
 *     cdn_frontdoor_custom_domain_ids=[
 *         contoso.id,
 *         fabrikam.id,
 *     ],
 *     link_to_default_domain=False,
 *     cache={
 *         "query_string_caching_behavior": "IgnoreSpecifiedQueryStrings",
 *         "query_strings": [
 *             "account",
 *             "settings",
 *         ],
 *         "compression_enabled": True,
 *         "content_types_to_compresses": [
 *             "text/html",
 *             "text/javascript",
 *             "text/xml",
 *         ],
 *     })
 * contoso_frontdoor_custom_domain_association = azure.cdn.FrontdoorCustomDomainAssociation("contoso",
 *     cdn_frontdoor_custom_domain_id=contoso.id,
 *     cdn_frontdoor_route_ids=[example_frontdoor_route.id])
 * fabrikam_frontdoor_custom_domain_association = azure.cdn.FrontdoorCustomDomainAssociation("fabrikam",
 *     cdn_frontdoor_custom_domain_id=fabrikam.id,
 *     cdn_frontdoor_route_ids=[example_frontdoor_route.id])
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * using Std = Pulumi.Std;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-cdn-frontdoor",
 *         Location = "West Europe",
 *     });
 *     var exampleZone = new Azure.Dns.Zone("example", new()
 *     {
 *         Name = "example.com",
 *         ResourceGroupName = example.Name,
 *     });
 *     var exampleFrontdoorProfile = new Azure.Cdn.FrontdoorProfile("example", new()
 *     {
 *         Name = "example-profile",
 *         ResourceGroupName = example.Name,
 *         SkuName = "Standard_AzureFrontDoor",
 *     });
 *     var exampleFrontdoorOriginGroup = new Azure.Cdn.FrontdoorOriginGroup("example", new()
 *     {
 *         Name = "example-originGroup",
 *         CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
 *         LoadBalancing = new Azure.Cdn.Inputs.FrontdoorOriginGroupLoadBalancingArgs
 *         {
 *             AdditionalLatencyInMilliseconds = 0,
 *             SampleSize = 16,
 *             SuccessfulSamplesRequired = 3,
 *         },
 *     });
 *     var exampleFrontdoorOrigin = new Azure.Cdn.FrontdoorOrigin("example", new()
 *     {
 *         Name = "example-origin",
 *         CdnFrontdoorOriginGroupId = exampleFrontdoorOriginGroup.Id,
 *         Enabled = true,
 *         CertificateNameCheckEnabled = false,
 *         HostName = "contoso.com",
 *         HttpPort = 80,
 *         HttpsPort = 443,
 *         OriginHostHeader = "www.contoso.com",
 *         Priority = 1,
 *         Weight = 1,
 *     });
 *     var exampleFrontdoorEndpoint = new Azure.Cdn.FrontdoorEndpoint("example", new()
 *     {
 *         Name = "example-endpoint",
 *         CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
 *     });
 *     var exampleFrontdoorRuleSet = new Azure.Cdn.FrontdoorRuleSet("example", new()
 *     {
 *         Name = "ExampleRuleSet",
 *         CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
 *     });
 *     var contoso = new Azure.Cdn.FrontdoorCustomDomain("contoso", new()
 *     {
 *         Name = "contoso-custom-domain",
 *         CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
 *         DnsZoneId = exampleZone.Id,
 *         HostName = Std.Join.Invoke(new()
 *         {
 *             Separator = ".",
 *             Input = new[]
 *             {
 *                 "contoso",
 *                 exampleZone.Name,
 *             },
 *         }).Apply(invoke => invoke.Result),
 *         Tls = new Azure.Cdn.Inputs.FrontdoorCustomDomainTlsArgs
 *         {
 *             CertificateType = "ManagedCertificate",
 *             MinimumTlsVersion = "TLS12",
 *         },
 *     });
 *     var fabrikam = new Azure.Cdn.FrontdoorCustomDomain("fabrikam", new()
 *     {
 *         Name = "fabrikam-custom-domain",
 *         CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
 *         DnsZoneId = exampleZone.Id,
 *         HostName = Std.Join.Invoke(new()
 *         {
 *             Separator = ".",
 *             Input = new[]
 *             {
 *                 "fabrikam",
 *                 exampleZone.Name,
 *             },
 *         }).Apply(invoke => invoke.Result),
 *         Tls = new Azure.Cdn.Inputs.FrontdoorCustomDomainTlsArgs
 *         {
 *             CertificateType = "ManagedCertificate",
 *             MinimumTlsVersion = "TLS12",
 *         },
 *     });
 *     var exampleFrontdoorRoute = new Azure.Cdn.FrontdoorRoute("example", new()
 *     {
 *         Name = "example-route",
 *         CdnFrontdoorEndpointId = exampleFrontdoorEndpoint.Id,
 *         CdnFrontdoorOriginGroupId = exampleFrontdoorOriginGroup.Id,
 *         CdnFrontdoorOriginIds = new[]
 *         {
 *             exampleFrontdoorOrigin.Id,
 *         },
 *         CdnFrontdoorRuleSetIds = new[]
 *         {
 *             exampleFrontdoorRuleSet.Id,
 *         },
 *         Enabled = true,
 *         ForwardingProtocol = "HttpsOnly",
 *         HttpsRedirectEnabled = true,
 *         PatternsToMatches = new[]
 *         {
 *             "/*",
 *         },
 *         SupportedProtocols = new[]
 *         {
 *             "Http",
 *             "Https",
 *         },
 *         CdnFrontdoorCustomDomainIds = new[]
 *         {
 *             contoso.Id,
 *             fabrikam.Id,
 *         },
 *         LinkToDefaultDomain = false,
 *         Cache = new Azure.Cdn.Inputs.FrontdoorRouteCacheArgs
 *         {
 *             QueryStringCachingBehavior = "IgnoreSpecifiedQueryStrings",
 *             QueryStrings = new[]
 *             {
 *                 "account",
 *                 "settings",
 *             },
 *             CompressionEnabled = true,
 *             ContentTypesToCompresses = new[]
 *             {
 *                 "text/html",
 *                 "text/javascript",
 *                 "text/xml",
 *             },
 *         },
 *     });
 *     var contosoFrontdoorCustomDomainAssociation = new Azure.Cdn.FrontdoorCustomDomainAssociation("contoso", new()
 *     {
 *         CdnFrontdoorCustomDomainId = contoso.Id,
 *         CdnFrontdoorRouteIds = new[]
 *         {
 *             exampleFrontdoorRoute.Id,
 *         },
 *     });
 *     var fabrikamFrontdoorCustomDomainAssociation = new Azure.Cdn.FrontdoorCustomDomainAssociation("fabrikam", new()
 *     {
 *         CdnFrontdoorCustomDomainId = fabrikam.Id,
 *         CdnFrontdoorRouteIds = new[]
 *         {
 *             exampleFrontdoorRoute.Id,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dns"
 * 	"github.com/pulumi/pulumi-std/sdk/go/std"
 * 	"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-cdn-frontdoor"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleZone, err := dns.NewZone(ctx, "example", &dns.ZoneArgs{
 * 			Name:              pulumi.String("example.com"),
 * 			ResourceGroupName: example.Name,
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{
 * 			Name:              pulumi.String("example-profile"),
 * 			ResourceGroupName: example.Name,
 * 			SkuName:           pulumi.String("Standard_AzureFrontDoor"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{
 * 			Name:                  pulumi.String("example-originGroup"),
 * 			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
 * 			LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{
 * 				AdditionalLatencyInMilliseconds: pulumi.Int(0),
 * 				SampleSize:                      pulumi.Int(16),
 * 				SuccessfulSamplesRequired:       pulumi.Int(3),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleFrontdoorOrigin, err := cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{
 * 			Name:                        pulumi.String("example-origin"),
 * 			CdnFrontdoorOriginGroupId:   exampleFrontdoorOriginGroup.ID(),
 * 			Enabled:                     pulumi.Bool(true),
 * 			CertificateNameCheckEnabled: pulumi.Bool(false),
 * 			HostName:                    pulumi.String("contoso.com"),
 * 			HttpPort:                    pulumi.Int(80),
 * 			HttpsPort:                   pulumi.Int(443),
 * 			OriginHostHeader:            pulumi.String("www.contoso.com"),
 * 			Priority:                    pulumi.Int(1),
 * 			Weight:                      pulumi.Int(1),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleFrontdoorEndpoint, err := cdn.NewFrontdoorEndpoint(ctx, "example", &cdn.FrontdoorEndpointArgs{
 * 			Name:                  pulumi.String("example-endpoint"),
 * 			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleFrontdoorRuleSet, err := cdn.NewFrontdoorRuleSet(ctx, "example", &cdn.FrontdoorRuleSetArgs{
 * 			Name:                  pulumi.String("ExampleRuleSet"),
 * 			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		contoso, err := cdn.NewFrontdoorCustomDomain(ctx, "contoso", &cdn.FrontdoorCustomDomainArgs{
 * 			Name:                  pulumi.String("contoso-custom-domain"),
 * 			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
 * 			DnsZoneId:             exampleZone.ID(),
 * 			HostName: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{
 * 				Separator: pulumi.String("."),
 * 				Input: pulumi.StringArray{
 * 					pulumi.String("contoso"),
 * 					exampleZone.Name,
 * 				},
 * 			}, nil).ApplyT(func(invoke std.JoinResult) (*string, error) {
 * 				return invoke.Result, nil
 * 			}).(pulumi.StringPtrOutput)),
 * 			Tls: &cdn.FrontdoorCustomDomainTlsArgs{
 * 				CertificateType:   pulumi.String("ManagedCertificate"),
 * 				MinimumTlsVersion: pulumi.String("TLS12"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		fabrikam, err := cdn.NewFrontdoorCustomDomain(ctx, "fabrikam", &cdn.FrontdoorCustomDomainArgs{
 * 			Name:                  pulumi.String("fabrikam-custom-domain"),
 * 			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
 * 			DnsZoneId:             exampleZone.ID(),
 * 			HostName: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{
 * 				Separator: pulumi.String("."),
 * 				Input: pulumi.StringArray{
 * 					pulumi.String("fabrikam"),
 * 					exampleZone.Name,
 * 				},
 * 			}, nil).ApplyT(func(invoke std.JoinResult) (*string, error) {
 * 				return invoke.Result, nil
 * 			}).(pulumi.StringPtrOutput)),
 * 			Tls: &cdn.FrontdoorCustomDomainTlsArgs{
 * 				CertificateType:   pulumi.String("ManagedCertificate"),
 * 				MinimumTlsVersion: pulumi.String("TLS12"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleFrontdoorRoute, err := cdn.NewFrontdoorRoute(ctx, "example", &cdn.FrontdoorRouteArgs{
 * 			Name:                      pulumi.String("example-route"),
 * 			CdnFrontdoorEndpointId:    exampleFrontdoorEndpoint.ID(),
 * 			CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(),
 * 			CdnFrontdoorOriginIds: pulumi.StringArray{
 * 				exampleFrontdoorOrigin.ID(),
 * 			},
 * 			CdnFrontdoorRuleSetIds: pulumi.StringArray{
 * 				exampleFrontdoorRuleSet.ID(),
 * 			},
 * 			Enabled:              pulumi.Bool(true),
 * 			ForwardingProtocol:   pulumi.String("HttpsOnly"),
 * 			HttpsRedirectEnabled: pulumi.Bool(true),
 * 			PatternsToMatches: pulumi.StringArray{
 * 				pulumi.String("/*"),
 * 			},
 * 			SupportedProtocols: pulumi.StringArray{
 * 				pulumi.String("Http"),
 * 				pulumi.String("Https"),
 * 			},
 * 			CdnFrontdoorCustomDomainIds: pulumi.StringArray{
 * 				contoso.ID(),
 * 				fabrikam.ID(),
 * 			},
 * 			LinkToDefaultDomain: pulumi.Bool(false),
 * 			Cache: &cdn.FrontdoorRouteCacheArgs{
 * 				QueryStringCachingBehavior: pulumi.String("IgnoreSpecifiedQueryStrings"),
 * 				QueryStrings: pulumi.StringArray{
 * 					pulumi.String("account"),
 * 					pulumi.String("settings"),
 * 				},
 * 				CompressionEnabled: pulumi.Bool(true),
 * 				ContentTypesToCompresses: pulumi.StringArray{
 * 					pulumi.String("text/html"),
 * 					pulumi.String("text/javascript"),
 * 					pulumi.String("text/xml"),
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = cdn.NewFrontdoorCustomDomainAssociation(ctx, "contoso", &cdn.FrontdoorCustomDomainAssociationArgs{
 * 			CdnFrontdoorCustomDomainId: contoso.ID(),
 * 			CdnFrontdoorRouteIds: pulumi.StringArray{
 * 				exampleFrontdoorRoute.ID(),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = cdn.NewFrontdoorCustomDomainAssociation(ctx, "fabrikam", &cdn.FrontdoorCustomDomainAssociationArgs{
 * 			CdnFrontdoorCustomDomainId: fabrikam.ID(),
 * 			CdnFrontdoorRouteIds: pulumi.StringArray{
 * 				exampleFrontdoorRoute.ID(),
 * 			},
 * 		})
 * 		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.dns.Zone;
 * import com.pulumi.azure.dns.ZoneArgs;
 * import com.pulumi.azure.cdn.FrontdoorProfile;
 * import com.pulumi.azure.cdn.FrontdoorProfileArgs;
 * import com.pulumi.azure.cdn.FrontdoorOriginGroup;
 * import com.pulumi.azure.cdn.FrontdoorOriginGroupArgs;
 * import com.pulumi.azure.cdn.inputs.FrontdoorOriginGroupLoadBalancingArgs;
 * import com.pulumi.azure.cdn.FrontdoorOrigin;
 * import com.pulumi.azure.cdn.FrontdoorOriginArgs;
 * import com.pulumi.azure.cdn.FrontdoorEndpoint;
 * import com.pulumi.azure.cdn.FrontdoorEndpointArgs;
 * import com.pulumi.azure.cdn.FrontdoorRuleSet;
 * import com.pulumi.azure.cdn.FrontdoorRuleSetArgs;
 * import com.pulumi.azure.cdn.FrontdoorCustomDomain;
 * import com.pulumi.azure.cdn.FrontdoorCustomDomainArgs;
 * import com.pulumi.azure.cdn.inputs.FrontdoorCustomDomainTlsArgs;
 * import com.pulumi.azure.cdn.FrontdoorRoute;
 * import com.pulumi.azure.cdn.FrontdoorRouteArgs;
 * import com.pulumi.azure.cdn.inputs.FrontdoorRouteCacheArgs;
 * import com.pulumi.azure.cdn.FrontdoorCustomDomainAssociation;
 * import com.pulumi.azure.cdn.FrontdoorCustomDomainAssociationArgs;
 * 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-cdn-frontdoor")
 *             .location("West Europe")
 *             .build());
 *         var exampleZone = new Zone("exampleZone", ZoneArgs.builder()
 *             .name("example.com")
 *             .resourceGroupName(example.name())
 *             .build());
 *         var exampleFrontdoorProfile = new FrontdoorProfile("exampleFrontdoorProfile", FrontdoorProfileArgs.builder()
 *             .name("example-profile")
 *             .resourceGroupName(example.name())
 *             .skuName("Standard_AzureFrontDoor")
 *             .build());
 *         var exampleFrontdoorOriginGroup = new FrontdoorOriginGroup("exampleFrontdoorOriginGroup", FrontdoorOriginGroupArgs.builder()
 *             .name("example-originGroup")
 *             .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
 *             .loadBalancing(FrontdoorOriginGroupLoadBalancingArgs.builder()
 *                 .additionalLatencyInMilliseconds(0)
 *                 .sampleSize(16)
 *                 .successfulSamplesRequired(3)
 *                 .build())
 *             .build());
 *         var exampleFrontdoorOrigin = new FrontdoorOrigin("exampleFrontdoorOrigin", FrontdoorOriginArgs.builder()
 *             .name("example-origin")
 *             .cdnFrontdoorOriginGroupId(exampleFrontdoorOriginGroup.id())
 *             .enabled(true)
 *             .certificateNameCheckEnabled(false)
 *             .hostName("contoso.com")
 *             .httpPort(80)
 *             .httpsPort(443)
 *             .originHostHeader("www.contoso.com")
 *             .priority(1)
 *             .weight(1)
 *             .build());
 *         var exampleFrontdoorEndpoint = new FrontdoorEndpoint("exampleFrontdoorEndpoint", FrontdoorEndpointArgs.builder()
 *             .name("example-endpoint")
 *             .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
 *             .build());
 *         var exampleFrontdoorRuleSet = new FrontdoorRuleSet("exampleFrontdoorRuleSet", FrontdoorRuleSetArgs.builder()
 *             .name("ExampleRuleSet")
 *             .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
 *             .build());
 *         var contoso = new FrontdoorCustomDomain("contoso", FrontdoorCustomDomainArgs.builder()
 *             .name("contoso-custom-domain")
 *             .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
 *             .dnsZoneId(exampleZone.id())
 *             .hostName(StdFunctions.join().applyValue(invoke -> invoke.result()))
 *             .tls(FrontdoorCustomDomainTlsArgs.builder()
 *                 .certificateType("ManagedCertificate")
 *                 .minimumTlsVersion("TLS12")
 *                 .build())
 *             .build());
 *         var fabrikam = new FrontdoorCustomDomain("fabrikam", FrontdoorCustomDomainArgs.builder()
 *             .name("fabrikam-custom-domain")
 *             .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
 *             .dnsZoneId(exampleZone.id())
 *             .hostName(StdFunctions.join().applyValue(invoke -> invoke.result()))
 *             .tls(FrontdoorCustomDomainTlsArgs.builder()
 *                 .certificateType("ManagedCertificate")
 *                 .minimumTlsVersion("TLS12")
 *                 .build())
 *             .build());
 *         var exampleFrontdoorRoute = new FrontdoorRoute("exampleFrontdoorRoute", FrontdoorRouteArgs.builder()
 *             .name("example-route")
 *             .cdnFrontdoorEndpointId(exampleFrontdoorEndpoint.id())
 *             .cdnFrontdoorOriginGroupId(exampleFrontdoorOriginGroup.id())
 *             .cdnFrontdoorOriginIds(exampleFrontdoorOrigin.id())
 *             .cdnFrontdoorRuleSetIds(exampleFrontdoorRuleSet.id())
 *             .enabled(true)
 *             .forwardingProtocol("HttpsOnly")
 *             .httpsRedirectEnabled(true)
 *             .patternsToMatches("/*")
 *             .supportedProtocols(
 *                 "Http",
 *                 "Https")
 *             .cdnFrontdoorCustomDomainIds(
 *                 contoso.id(),
 *                 fabrikam.id())
 *             .linkToDefaultDomain(false)
 *             .cache(FrontdoorRouteCacheArgs.builder()
 *                 .queryStringCachingBehavior("IgnoreSpecifiedQueryStrings")
 *                 .queryStrings(
 *                     "account",
 *                     "settings")
 *                 .compressionEnabled(true)
 *                 .contentTypesToCompresses(
 *                     "text/html",
 *                     "text/javascript",
 *                     "text/xml")
 *                 .build())
 *             .build());
 *         var contosoFrontdoorCustomDomainAssociation = new FrontdoorCustomDomainAssociation("contosoFrontdoorCustomDomainAssociation", FrontdoorCustomDomainAssociationArgs.builder()
 *             .cdnFrontdoorCustomDomainId(contoso.id())
 *             .cdnFrontdoorRouteIds(exampleFrontdoorRoute.id())
 *             .build());
 *         var fabrikamFrontdoorCustomDomainAssociation = new FrontdoorCustomDomainAssociation("fabrikamFrontdoorCustomDomainAssociation", FrontdoorCustomDomainAssociationArgs.builder()
 *             .cdnFrontdoorCustomDomainId(fabrikam.id())
 *             .cdnFrontdoorRouteIds(exampleFrontdoorRoute.id())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-cdn-frontdoor
 *       location: West Europe
 *   exampleZone:
 *     type: azure:dns:Zone
 *     name: example
 *     properties:
 *       name: example.com
 *       resourceGroupName: ${example.name}
 *   exampleFrontdoorProfile:
 *     type: azure:cdn:FrontdoorProfile
 *     name: example
 *     properties:
 *       name: example-profile
 *       resourceGroupName: ${example.name}
 *       skuName: Standard_AzureFrontDoor
 *   exampleFrontdoorOriginGroup:
 *     type: azure:cdn:FrontdoorOriginGroup
 *     name: example
 *     properties:
 *       name: example-originGroup
 *       cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
 *       loadBalancing:
 *         additionalLatencyInMilliseconds: 0
 *         sampleSize: 16
 *         successfulSamplesRequired: 3
 *   exampleFrontdoorOrigin:
 *     type: azure:cdn:FrontdoorOrigin
 *     name: example
 *     properties:
 *       name: example-origin
 *       cdnFrontdoorOriginGroupId: ${exampleFrontdoorOriginGroup.id}
 *       enabled: true
 *       certificateNameCheckEnabled: false
 *       hostName: contoso.com
 *       httpPort: 80
 *       httpsPort: 443
 *       originHostHeader: www.contoso.com
 *       priority: 1
 *       weight: 1
 *   exampleFrontdoorEndpoint:
 *     type: azure:cdn:FrontdoorEndpoint
 *     name: example
 *     properties:
 *       name: example-endpoint
 *       cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
 *   exampleFrontdoorRuleSet:
 *     type: azure:cdn:FrontdoorRuleSet
 *     name: example
 *     properties:
 *       name: ExampleRuleSet
 *       cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
 *   contoso:
 *     type: azure:cdn:FrontdoorCustomDomain
 *     properties:
 *       name: contoso-custom-domain
 *       cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
 *       dnsZoneId: ${exampleZone.id}
 *       hostName:
 *         fn::invoke:
 *           Function: std:join
 *           Arguments:
 *             separator: .
 *             input:
 *               - contoso
 *               - ${exampleZone.name}
 *           Return: result
 *       tls:
 *         certificateType: ManagedCertificate
 *         minimumTlsVersion: TLS12
 *   fabrikam:
 *     type: azure:cdn:FrontdoorCustomDomain
 *     properties:
 *       name: fabrikam-custom-domain
 *       cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
 *       dnsZoneId: ${exampleZone.id}
 *       hostName:
 *         fn::invoke:
 *           Function: std:join
 *           Arguments:
 *             separator: .
 *             input:
 *               - fabrikam
 *               - ${exampleZone.name}
 *           Return: result
 *       tls:
 *         certificateType: ManagedCertificate
 *         minimumTlsVersion: TLS12
 *   exampleFrontdoorRoute:
 *     type: azure:cdn:FrontdoorRoute
 *     name: example
 *     properties:
 *       name: example-route
 *       cdnFrontdoorEndpointId: ${exampleFrontdoorEndpoint.id}
 *       cdnFrontdoorOriginGroupId: ${exampleFrontdoorOriginGroup.id}
 *       cdnFrontdoorOriginIds:
 *         - ${exampleFrontdoorOrigin.id}
 *       cdnFrontdoorRuleSetIds:
 *         - ${exampleFrontdoorRuleSet.id}
 *       enabled: true
 *       forwardingProtocol: HttpsOnly
 *       httpsRedirectEnabled: true
 *       patternsToMatches:
 *         - /*
 *       supportedProtocols:
 *         - Http
 *         - Https
 *       cdnFrontdoorCustomDomainIds:
 *         - ${contoso.id}
 *         - ${fabrikam.id}
 *       linkToDefaultDomain: false
 *       cache:
 *         queryStringCachingBehavior: IgnoreSpecifiedQueryStrings
 *         queryStrings:
 *           - account
 *           - settings
 *         compressionEnabled: true
 *         contentTypesToCompresses:
 *           - text/html
 *           - text/javascript
 *           - text/xml
 *   contosoFrontdoorCustomDomainAssociation:
 *     type: azure:cdn:FrontdoorCustomDomainAssociation
 *     name: contoso
 *     properties:
 *       cdnFrontdoorCustomDomainId: ${contoso.id}
 *       cdnFrontdoorRouteIds:
 *         - ${exampleFrontdoorRoute.id}
 *   fabrikamFrontdoorCustomDomainAssociation:
 *     type: azure:cdn:FrontdoorCustomDomainAssociation
 *     name: fabrikam
 *     properties:
 *       cdnFrontdoorCustomDomainId: ${fabrikam.id}
 *       cdnFrontdoorRouteIds:
 *         - ${exampleFrontdoorRoute.id}
 * ```
 * 
 * ## Import
 * Front Door Routes can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:cdn/frontdoorRoute:FrontdoorRoute example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1/routes/route1
 * ```
 * @property cache A `cache` block as defined below.
 * > **NOTE:** To disable caching, do not provide the `cache` block in the configuration file.
 * @property cdnFrontdoorCustomDomainIds The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
 * @property cdnFrontdoorEndpointId The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
 * @property cdnFrontdoorOriginGroupId The resource ID of the Front Door Origin Group where this Front Door Route should be created.
 * @property cdnFrontdoorOriginIds One or more Front Door Origin resource IDs that this Front Door Route will link to.
 * @property cdnFrontdoorOriginPath A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`).
 * @property cdnFrontdoorRuleSetIds A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
 * @property enabled Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`.
 * @property forwardingProtocol The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`.
 * @property httpsRedirectEnabled Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`.
 * > **NOTE:** The `https_redirect_enabled` rule is the first rule that will be executed.
 * @property linkToDefaultDomain Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`.
 * @property name The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
 * @property patternsToMatches The route patterns of the rule.
 * @property supportedProtocols One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`.
 * > **NOTE:** If `https_redirect_enabled` is set to `true` the `supported_protocols` field must contain both `Http` and `Https` values.
 * */*/*/*/*/*/
 */
public data class FrontdoorRouteArgs(
    public val cache: Output? = null,
    public val cdnFrontdoorCustomDomainIds: Output>? = null,
    public val cdnFrontdoorEndpointId: Output? = null,
    public val cdnFrontdoorOriginGroupId: Output? = null,
    public val cdnFrontdoorOriginIds: Output>? = null,
    public val cdnFrontdoorOriginPath: Output? = null,
    public val cdnFrontdoorRuleSetIds: Output>? = null,
    public val enabled: Output? = null,
    public val forwardingProtocol: Output? = null,
    public val httpsRedirectEnabled: Output? = null,
    public val linkToDefaultDomain: Output? = null,
    public val name: Output? = null,
    public val patternsToMatches: Output>? = null,
    public val supportedProtocols: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.cdn.FrontdoorRouteArgs =
        com.pulumi.azure.cdn.FrontdoorRouteArgs.builder()
            .cache(cache?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .cdnFrontdoorCustomDomainIds(
                cdnFrontdoorCustomDomainIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .cdnFrontdoorEndpointId(cdnFrontdoorEndpointId?.applyValue({ args0 -> args0 }))
            .cdnFrontdoorOriginGroupId(cdnFrontdoorOriginGroupId?.applyValue({ args0 -> args0 }))
            .cdnFrontdoorOriginIds(cdnFrontdoorOriginIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .cdnFrontdoorOriginPath(cdnFrontdoorOriginPath?.applyValue({ args0 -> args0 }))
            .cdnFrontdoorRuleSetIds(
                cdnFrontdoorRuleSetIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .forwardingProtocol(forwardingProtocol?.applyValue({ args0 -> args0 }))
            .httpsRedirectEnabled(httpsRedirectEnabled?.applyValue({ args0 -> args0 }))
            .linkToDefaultDomain(linkToDefaultDomain?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .patternsToMatches(patternsToMatches?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .supportedProtocols(
                supportedProtocols?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            ).build()
}

/**
 * Builder for [FrontdoorRouteArgs].
 */
@PulumiTagMarker
public class FrontdoorRouteArgsBuilder internal constructor() {
    private var cache: Output? = null

    private var cdnFrontdoorCustomDomainIds: Output>? = null

    private var cdnFrontdoorEndpointId: Output? = null

    private var cdnFrontdoorOriginGroupId: Output? = null

    private var cdnFrontdoorOriginIds: Output>? = null

    private var cdnFrontdoorOriginPath: Output? = null

    private var cdnFrontdoorRuleSetIds: Output>? = null

    private var enabled: Output? = null

    private var forwardingProtocol: Output? = null

    private var httpsRedirectEnabled: Output? = null

    private var linkToDefaultDomain: Output? = null

    private var name: Output? = null

    private var patternsToMatches: Output>? = null

    private var supportedProtocols: Output>? = null

    /**
     * @param value A `cache` block as defined below.
     * > **NOTE:** To disable caching, do not provide the `cache` block in the configuration file.
     */
    @JvmName("vrpifjvekwutoxxg")
    public suspend fun cache(`value`: Output) {
        this.cache = value
    }

    /**
     * @param value The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
     */
    @JvmName("tjcbskwjfjsewedb")
    public suspend fun cdnFrontdoorCustomDomainIds(`value`: Output>) {
        this.cdnFrontdoorCustomDomainIds = value
    }

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

    /**
     * @param values The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
     */
    @JvmName("lyhmbwvejqewglfc")
    public suspend fun cdnFrontdoorCustomDomainIds(values: List>) {
        this.cdnFrontdoorCustomDomainIds = Output.all(values)
    }

    /**
     * @param value The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
     */
    @JvmName("pdtxpwuygnuckgfy")
    public suspend fun cdnFrontdoorEndpointId(`value`: Output) {
        this.cdnFrontdoorEndpointId = value
    }

    /**
     * @param value The resource ID of the Front Door Origin Group where this Front Door Route should be created.
     */
    @JvmName("jxnghsthudkmvckd")
    public suspend fun cdnFrontdoorOriginGroupId(`value`: Output) {
        this.cdnFrontdoorOriginGroupId = value
    }

    /**
     * @param value One or more Front Door Origin resource IDs that this Front Door Route will link to.
     */
    @JvmName("lcwlnrvxnpqmbtvl")
    public suspend fun cdnFrontdoorOriginIds(`value`: Output>) {
        this.cdnFrontdoorOriginIds = value
    }

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

    /**
     * @param values One or more Front Door Origin resource IDs that this Front Door Route will link to.
     */
    @JvmName("jaqwpdeabfttdhiv")
    public suspend fun cdnFrontdoorOriginIds(values: List>) {
        this.cdnFrontdoorOriginIds = Output.all(values)
    }

    /**
     * @param value A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`).
     */
    @JvmName("jwehhetrdfyhvmey")
    public suspend fun cdnFrontdoorOriginPath(`value`: Output) {
        this.cdnFrontdoorOriginPath = value
    }

    /**
     * @param value A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
     */
    @JvmName("frhtxiwrabtmmghq")
    public suspend fun cdnFrontdoorRuleSetIds(`value`: Output>) {
        this.cdnFrontdoorRuleSetIds = value
    }

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

    /**
     * @param values A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
     */
    @JvmName("kqlgetlqbojxqrau")
    public suspend fun cdnFrontdoorRuleSetIds(values: List>) {
        this.cdnFrontdoorRuleSetIds = Output.all(values)
    }

    /**
     * @param value Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`.
     */
    @JvmName("xkfjmprtjhmktfdk")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`.
     */
    @JvmName("cmybxgfvayjrwaxm")
    public suspend fun forwardingProtocol(`value`: Output) {
        this.forwardingProtocol = value
    }

    /**
     * @param value Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`.
     * > **NOTE:** The `https_redirect_enabled` rule is the first rule that will be executed.
     */
    @JvmName("agfdisqodvnujane")
    public suspend fun httpsRedirectEnabled(`value`: Output) {
        this.httpsRedirectEnabled = value
    }

    /**
     * @param value Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`.
     */
    @JvmName("jxnmusiiipriqlpg")
    public suspend fun linkToDefaultDomain(`value`: Output) {
        this.linkToDefaultDomain = value
    }

    /**
     * @param value The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
     */
    @JvmName("ysuvoowtpteedyon")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The route patterns of the rule.
     */
    @JvmName("ntywmbfwuttfckth")
    public suspend fun patternsToMatches(`value`: Output>) {
        this.patternsToMatches = value
    }

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

    /**
     * @param values The route patterns of the rule.
     */
    @JvmName("vddiljqsnghnoaew")
    public suspend fun patternsToMatches(values: List>) {
        this.patternsToMatches = Output.all(values)
    }

    /**
     * @param value One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`.
     * > **NOTE:** If `https_redirect_enabled` is set to `true` the `supported_protocols` field must contain both `Http` and `Https` values.
     */
    @JvmName("ewvtlhggplqhntec")
    public suspend fun supportedProtocols(`value`: Output>) {
        this.supportedProtocols = value
    }

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

    /**
     * @param values One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`.
     * > **NOTE:** If `https_redirect_enabled` is set to `true` the `supported_protocols` field must contain both `Http` and `Https` values.
     */
    @JvmName("rqcapurbgbyrnqjg")
    public suspend fun supportedProtocols(values: List>) {
        this.supportedProtocols = Output.all(values)
    }

    /**
     * @param value A `cache` block as defined below.
     * > **NOTE:** To disable caching, do not provide the `cache` block in the configuration file.
     */
    @JvmName("epkcakmgkfurjdgi")
    public suspend fun cache(`value`: FrontdoorRouteCacheArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cache = mapped
    }

    /**
     * @param argument A `cache` block as defined below.
     * > **NOTE:** To disable caching, do not provide the `cache` block in the configuration file.
     */
    @JvmName("vmvoxxbeusrcupqr")
    public suspend fun cache(argument: suspend FrontdoorRouteCacheArgsBuilder.() -> Unit) {
        val toBeMapped = FrontdoorRouteCacheArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.cache = mapped
    }

    /**
     * @param value The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
     */
    @JvmName("swcrupdukwehbnmv")
    public suspend fun cdnFrontdoorCustomDomainIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cdnFrontdoorCustomDomainIds = mapped
    }

    /**
     * @param values The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
     */
    @JvmName("afpdvqtkyphwgltn")
    public suspend fun cdnFrontdoorCustomDomainIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cdnFrontdoorCustomDomainIds = mapped
    }

    /**
     * @param value The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
     */
    @JvmName("cpufbbvumowtkleu")
    public suspend fun cdnFrontdoorEndpointId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cdnFrontdoorEndpointId = mapped
    }

    /**
     * @param value The resource ID of the Front Door Origin Group where this Front Door Route should be created.
     */
    @JvmName("xstbkencjmsgvfcr")
    public suspend fun cdnFrontdoorOriginGroupId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cdnFrontdoorOriginGroupId = mapped
    }

    /**
     * @param value One or more Front Door Origin resource IDs that this Front Door Route will link to.
     */
    @JvmName("ckwnjhbmvopfwlbe")
    public suspend fun cdnFrontdoorOriginIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cdnFrontdoorOriginIds = mapped
    }

    /**
     * @param values One or more Front Door Origin resource IDs that this Front Door Route will link to.
     */
    @JvmName("rpyytuplelfbaubo")
    public suspend fun cdnFrontdoorOriginIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cdnFrontdoorOriginIds = mapped
    }

    /**
     * @param value A directory path on the Front Door Origin that can be used to retrieve content (e.g. `contoso.cloudapp.net/originpath`).
     */
    @JvmName("tstjeeympekqlsme")
    public suspend fun cdnFrontdoorOriginPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cdnFrontdoorOriginPath = mapped
    }

    /**
     * @param value A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
     */
    @JvmName("tybaxhsfqshbtufm")
    public suspend fun cdnFrontdoorRuleSetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cdnFrontdoorRuleSetIds = mapped
    }

    /**
     * @param values A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
     */
    @JvmName("pdbqfgufvpqooncb")
    public suspend fun cdnFrontdoorRuleSetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cdnFrontdoorRuleSetIds = mapped
    }

    /**
     * @param value Is this Front Door Route enabled? Possible values are `true` or `false`. Defaults to `true`.
     */
    @JvmName("flhrfmqauikdxluy")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value The Protocol that will be use when forwarding traffic to backends. Possible values are `HttpOnly`, `HttpsOnly` or `MatchRequest`. Defaults to `MatchRequest`.
     */
    @JvmName("ixxgcnjpognbnsvv")
    public suspend fun forwardingProtocol(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.forwardingProtocol = mapped
    }

    /**
     * @param value Automatically redirect HTTP traffic to HTTPS traffic? Possible values are `true` or `false`. Defaults to `true`.
     * > **NOTE:** The `https_redirect_enabled` rule is the first rule that will be executed.
     */
    @JvmName("ttjklusmqqbmuhws")
    public suspend fun httpsRedirectEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpsRedirectEnabled = mapped
    }

    /**
     * @param value Should this Front Door Route be linked to the default endpoint? Possible values include `true` or `false`. Defaults to `true`.
     */
    @JvmName("adcsnvrhuvqqgrfk")
    public suspend fun linkToDefaultDomain(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.linkToDefaultDomain = mapped
    }

    /**
     * @param value The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
     */
    @JvmName("lhbrjwwmmsngqasq")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The route patterns of the rule.
     */
    @JvmName("vrecqmnpyuilfwep")
    public suspend fun patternsToMatches(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.patternsToMatches = mapped
    }

    /**
     * @param values The route patterns of the rule.
     */
    @JvmName("dhwfsiivsllblgig")
    public suspend fun patternsToMatches(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.patternsToMatches = mapped
    }

    /**
     * @param value One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`.
     * > **NOTE:** If `https_redirect_enabled` is set to `true` the `supported_protocols` field must contain both `Http` and `Https` values.
     */
    @JvmName("qneqldgnhrsoxhvi")
    public suspend fun supportedProtocols(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.supportedProtocols = mapped
    }

    /**
     * @param values One or more Protocols supported by this Front Door Route. Possible values are `Http` or `Https`.
     * > **NOTE:** If `https_redirect_enabled` is set to `true` the `supported_protocols` field must contain both `Http` and `Https` values.
     */
    @JvmName("qoedhrlnmhraacgc")
    public suspend fun supportedProtocols(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.supportedProtocols = mapped
    }

    internal fun build(): FrontdoorRouteArgs = FrontdoorRouteArgs(
        cache = cache,
        cdnFrontdoorCustomDomainIds = cdnFrontdoorCustomDomainIds,
        cdnFrontdoorEndpointId = cdnFrontdoorEndpointId,
        cdnFrontdoorOriginGroupId = cdnFrontdoorOriginGroupId,
        cdnFrontdoorOriginIds = cdnFrontdoorOriginIds,
        cdnFrontdoorOriginPath = cdnFrontdoorOriginPath,
        cdnFrontdoorRuleSetIds = cdnFrontdoorRuleSetIds,
        enabled = enabled,
        forwardingProtocol = forwardingProtocol,
        httpsRedirectEnabled = httpsRedirectEnabled,
        linkToDefaultDomain = linkToDefaultDomain,
        name = name,
        patternsToMatches = patternsToMatches,
        supportedProtocols = supportedProtocols,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy