azure.cdn.FrontdoorCustomDomainAssociation
Manages the association between a Front Door (standard/premium) Custom Domain and one or more Front Door (standard/premium) Routes.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Cdn.FrontdoorCustomDomainAssociation("example", new()
{
CdnFrontdoorCustomDomainId = azurerm_cdn_frontdoor_custom_domain.Contoso.Id,
CdnFrontdoorRouteIds = new[]
{
azurerm_cdn_frontdoor_route.Contoso.Id,
azurerm_cdn_frontdoor_route.Fabrikam.Id,
},
});
});
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.NewFrontdoorCustomDomainAssociation(ctx, "example", &cdn.FrontdoorCustomDomainAssociationArgs{
CdnFrontdoorCustomDomainId: pulumi.Any(azurerm_cdn_frontdoor_custom_domain.Contoso.Id),
CdnFrontdoorRouteIds: pulumi.StringArray{
azurerm_cdn_frontdoor_route.Contoso.Id,
azurerm_cdn_frontdoor_route.Fabrikam.Id,
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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 FrontdoorCustomDomainAssociation("example", FrontdoorCustomDomainAssociationArgs.builder()
.cdnFrontdoorCustomDomainId(azurerm_cdn_frontdoor_custom_domain.contoso().id())
.cdnFrontdoorRouteIds(
azurerm_cdn_frontdoor_route.contoso().id(),
azurerm_cdn_frontdoor_route.fabrikam().id())
.build());
}
}
import pulumi
import pulumi_azure as azure
example = azure.cdn.FrontdoorCustomDomainAssociation("example",
cdn_frontdoor_custom_domain_id=azurerm_cdn_frontdoor_custom_domain["contoso"]["id"],
cdn_frontdoor_route_ids=[
azurerm_cdn_frontdoor_route["contoso"]["id"],
azurerm_cdn_frontdoor_route["fabrikam"]["id"],
])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.cdn.FrontdoorCustomDomainAssociation("example", {
cdnFrontdoorCustomDomainId: azurerm_cdn_frontdoor_custom_domain.contoso.id,
cdnFrontdoorRouteIds: [
azurerm_cdn_frontdoor_route.contoso.id,
azurerm_cdn_frontdoor_route.fabrikam.id,
],
});
resources:
example:
type: azure:cdn:FrontdoorCustomDomainAssociation
properties:
cdnFrontdoorCustomDomainId: ${azurerm_cdn_frontdoor_custom_domain.contoso.id}
cdnFrontdoorRouteIds:
- ${azurerm_cdn_frontdoor_route.contoso.id}
- ${azurerm_cdn_frontdoor_route.fabrikam.id}
Create FrontdoorCustomDomainAssociation Resource
new FrontdoorCustomDomainAssociation(name: string, args: FrontdoorCustomDomainAssociationArgs, opts?: CustomResourceOptions);
@overload
def FrontdoorCustomDomainAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
cdn_frontdoor_custom_domain_id: Optional[str] = None,
cdn_frontdoor_route_ids: Optional[Sequence[str]] = None)
@overload
def FrontdoorCustomDomainAssociation(resource_name: str,
args: FrontdoorCustomDomainAssociationArgs,
opts: Optional[ResourceOptions] = None)
func NewFrontdoorCustomDomainAssociation(ctx *Context, name string, args FrontdoorCustomDomainAssociationArgs, opts ...ResourceOption) (*FrontdoorCustomDomainAssociation, error)
public FrontdoorCustomDomainAssociation(string name, FrontdoorCustomDomainAssociationArgs args, CustomResourceOptions? opts = null)
public FrontdoorCustomDomainAssociation(String name, FrontdoorCustomDomainAssociationArgs args)
public FrontdoorCustomDomainAssociation(String name, FrontdoorCustomDomainAssociationArgs args, CustomResourceOptions options)
type: azure:cdn:FrontdoorCustomDomainAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FrontdoorCustomDomainAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FrontdoorCustomDomainAssociationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FrontdoorCustomDomainAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FrontdoorCustomDomainAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FrontdoorCustomDomainAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FrontdoorCustomDomainAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FrontdoorCustomDomainAssociation resource accepts the following input properties:
- Cdn
Frontdoor stringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- Cdn
Frontdoor List<string>Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- Cdn
Frontdoor stringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- Cdn
Frontdoor []stringRoute Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn
Frontdoor StringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn
Frontdoor List<String>Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn
Frontdoor stringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn
Frontdoor string[]Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn_
frontdoor_ strcustom_ domain_ id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn_
frontdoor_ Sequence[str]route_ ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn
Frontdoor StringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn
Frontdoor List<String>Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
Outputs
All input properties are implicitly available as output properties. Additionally, the FrontdoorCustomDomainAssociation resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing FrontdoorCustomDomainAssociation Resource
Get an existing FrontdoorCustomDomainAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FrontdoorCustomDomainAssociationState, opts?: CustomResourceOptions): FrontdoorCustomDomainAssociation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cdn_frontdoor_custom_domain_id: Optional[str] = None,
cdn_frontdoor_route_ids: Optional[Sequence[str]] = None) -> FrontdoorCustomDomainAssociation
func GetFrontdoorCustomDomainAssociation(ctx *Context, name string, id IDInput, state *FrontdoorCustomDomainAssociationState, opts ...ResourceOption) (*FrontdoorCustomDomainAssociation, error)
public static FrontdoorCustomDomainAssociation Get(string name, Input<string> id, FrontdoorCustomDomainAssociationState? state, CustomResourceOptions? opts = null)
public static FrontdoorCustomDomainAssociation get(String name, Output<String> id, FrontdoorCustomDomainAssociationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cdn
Frontdoor stringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- Cdn
Frontdoor List<string>Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- Cdn
Frontdoor stringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- Cdn
Frontdoor []stringRoute Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn
Frontdoor StringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn
Frontdoor List<String>Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn
Frontdoor stringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn
Frontdoor string[]Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn_
frontdoor_ strcustom_ domain_ id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn_
frontdoor_ Sequence[str]route_ ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
- cdn
Frontdoor StringCustom Domain Id The ID of the Front Door Custom Domain that should be managed by the association resource. Changing this forces a new association resource to be created.
- cdn
Frontdoor List<String>Route Ids One or more IDs of the Front Door Route to which the Front Door Custom Domain is associated with.
Import
Front Door Custom Domain Associations can be imported using the resource id
, e.g.
$ pulumi import azure:cdn/frontdoorCustomDomainAssociation:FrontdoorCustomDomainAssociation example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/associations/assoc1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.