
com.pulumi.azure.cdn.kotlin.FrontdoorRouteDisableLinkToDefaultDomainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cdn.kotlin
import com.pulumi.azure.cdn.FrontdoorRouteDisableLinkToDefaultDomainArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Manages the Link To Default Domain property of a Front Door (standard/premium) Route.
* !>**IMPORTANT:** This resource has been deprecated and should not be used for new deployments. The `azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain` resource will be removed from the 4.0 AzureRM provider. Please use the `link_to_default_domain` field in the `azure.cdn.FrontdoorRoute` resource to control this value.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("example", {
* cdnFrontdoorRouteId: exampleAzurermCdnFrontdoorRoute.id,
* cdnFrontdoorCustomDomainIds: [
* contoso.id,
* fabrikam.id,
* ],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.cdn.FrontdoorRouteDisableLinkToDefaultDomain("example",
* cdn_frontdoor_route_id=example_azurerm_cdn_frontdoor_route["id"],
* cdn_frontdoor_custom_domain_ids=[
* contoso["id"],
* fabrikam["id"],
* ])
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Cdn.FrontdoorRouteDisableLinkToDefaultDomain("example", new()
* {
* CdnFrontdoorRouteId = exampleAzurermCdnFrontdoorRoute.Id,
* CdnFrontdoorCustomDomainIds = new[]
* {
* contoso.Id,
* fabrikam.Id,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := cdn.NewFrontdoorRouteDisableLinkToDefaultDomain(ctx, "example", &cdn.FrontdoorRouteDisableLinkToDefaultDomainArgs{
* CdnFrontdoorRouteId: pulumi.Any(exampleAzurermCdnFrontdoorRoute.Id),
* CdnFrontdoorCustomDomainIds: pulumi.StringArray{
* contoso.Id,
* fabrikam.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.cdn.FrontdoorRouteDisableLinkToDefaultDomain;
* import com.pulumi.azure.cdn.FrontdoorRouteDisableLinkToDefaultDomainArgs;
* 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 FrontdoorRouteDisableLinkToDefaultDomain("example", FrontdoorRouteDisableLinkToDefaultDomainArgs.builder()
* .cdnFrontdoorRouteId(exampleAzurermCdnFrontdoorRoute.id())
* .cdnFrontdoorCustomDomainIds(
* contoso.id(),
* fabrikam.id())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:cdn:FrontdoorRouteDisableLinkToDefaultDomain
* properties:
* cdnFrontdoorRouteId: ${exampleAzurermCdnFrontdoorRoute.id}
* cdnFrontdoorCustomDomainIds:
* - ${contoso.id}
* - ${fabrikam.id}
* ```
*
* ## Import
* FrontDoor Route Disable Link To Default Domain can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:cdn/frontdoorRouteDisableLinkToDefaultDomain:FrontdoorRouteDisableLinkToDefaultDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1/routes/route1/disableLinkToDefaultDomain/disableLinkToDefaultDomain1
* ```
* @property cdnFrontdoorCustomDomainIds The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
* @property cdnFrontdoorRouteId The resource ID of the Front Door Route where the Link To Default Domain property should be `disabled`. Changing this forces a new Front Door Route Disable Link To Default Domain to be created.
*/
public data class FrontdoorRouteDisableLinkToDefaultDomainArgs(
public val cdnFrontdoorCustomDomainIds: Output>? = null,
public val cdnFrontdoorRouteId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cdn.FrontdoorRouteDisableLinkToDefaultDomainArgs =
com.pulumi.azure.cdn.FrontdoorRouteDisableLinkToDefaultDomainArgs.builder()
.cdnFrontdoorCustomDomainIds(
cdnFrontdoorCustomDomainIds?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.cdnFrontdoorRouteId(cdnFrontdoorRouteId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FrontdoorRouteDisableLinkToDefaultDomainArgs].
*/
@PulumiTagMarker
public class FrontdoorRouteDisableLinkToDefaultDomainArgsBuilder internal constructor() {
private var cdnFrontdoorCustomDomainIds: Output>? = null
private var cdnFrontdoorRouteId: Output? = null
/**
* @param value The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
*/
@JvmName("dcsrdjntmwkxmyyu")
public suspend fun cdnFrontdoorCustomDomainIds(`value`: Output>) {
this.cdnFrontdoorCustomDomainIds = value
}
@JvmName("rhxgaagmopannkxl")
public suspend fun cdnFrontdoorCustomDomainIds(vararg values: Output) {
this.cdnFrontdoorCustomDomainIds = Output.all(values.asList())
}
/**
* @param values The resource IDs of the Front Door Custom Domains which are associated with this Front Door Route.
*/
@JvmName("kawlhkceglxbsidl")
public suspend fun cdnFrontdoorCustomDomainIds(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy