azure-native.cdn.AFDEndpoint
Explore with Pulumi AI
Azure Front Door endpoint is the entity within a Azure Front Door profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format
Other available API versions: 2020-09-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview.
Example Usage
AFDEndpoints_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var afdEndpoint = new AzureNative.Cdn.AFDEndpoint("afdEndpoint", new()
{
AutoGeneratedDomainNameLabelScope = AzureNative.Cdn.AutoGeneratedDomainNameLabelScope.TenantReuse,
EnabledState = AzureNative.Cdn.EnabledState.Enabled,
EndpointName = "endpoint1",
Location = "global",
ProfileName = "profile1",
ResourceGroupName = "RG",
Tags = null,
});
});
package main
import (
cdn "github.com/pulumi/pulumi-azure-native-sdk/cdn/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.NewAFDEndpoint(ctx, "afdEndpoint", &cdn.AFDEndpointArgs{
AutoGeneratedDomainNameLabelScope: pulumi.String(cdn.AutoGeneratedDomainNameLabelScopeTenantReuse),
EnabledState: pulumi.String(cdn.EnabledStateEnabled),
EndpointName: pulumi.String("endpoint1"),
Location: pulumi.String("global"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
Tags: nil,
})
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.azurenative.cdn.AFDEndpoint;
import com.pulumi.azurenative.cdn.AFDEndpointArgs;
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 afdEndpoint = new AFDEndpoint("afdEndpoint", AFDEndpointArgs.builder()
.autoGeneratedDomainNameLabelScope("TenantReuse")
.enabledState("Enabled")
.endpointName("endpoint1")
.location("global")
.profileName("profile1")
.resourceGroupName("RG")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
afd_endpoint = azure_native.cdn.AFDEndpoint("afdEndpoint",
auto_generated_domain_name_label_scope=azure_native.cdn.AutoGeneratedDomainNameLabelScope.TENANT_REUSE,
enabled_state=azure_native.cdn.EnabledState.ENABLED,
endpoint_name="endpoint1",
location="global",
profile_name="profile1",
resource_group_name="RG",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const afdEndpoint = new azure_native.cdn.AFDEndpoint("afdEndpoint", {
autoGeneratedDomainNameLabelScope: azure_native.cdn.AutoGeneratedDomainNameLabelScope.TenantReuse,
enabledState: azure_native.cdn.EnabledState.Enabled,
endpointName: "endpoint1",
location: "global",
profileName: "profile1",
resourceGroupName: "RG",
tags: {},
});
resources:
afdEndpoint:
type: azure-native:cdn:AFDEndpoint
properties:
autoGeneratedDomainNameLabelScope: TenantReuse
enabledState: Enabled
endpointName: endpoint1
location: global
profileName: profile1
resourceGroupName: RG
tags: {}
Create AFDEndpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AFDEndpoint(name: string, args: AFDEndpointArgs, opts?: CustomResourceOptions);
@overload
def AFDEndpoint(resource_name: str,
args: AFDEndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AFDEndpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
profile_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
auto_generated_domain_name_label_scope: Optional[Union[str, AutoGeneratedDomainNameLabelScope]] = None,
enabled_state: Optional[Union[str, EnabledState]] = None,
endpoint_name: Optional[str] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAFDEndpoint(ctx *Context, name string, args AFDEndpointArgs, opts ...ResourceOption) (*AFDEndpoint, error)
public AFDEndpoint(string name, AFDEndpointArgs args, CustomResourceOptions? opts = null)
public AFDEndpoint(String name, AFDEndpointArgs args)
public AFDEndpoint(String name, AFDEndpointArgs args, CustomResourceOptions options)
type: azure-native:cdn:AFDEndpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AFDEndpointArgs
- 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 AFDEndpointArgs
- 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 AFDEndpointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AFDEndpointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AFDEndpointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var afdendpointResource = new AzureNative.Cdn.AFDEndpoint("afdendpointResource", new()
{
ProfileName = "string",
ResourceGroupName = "string",
AutoGeneratedDomainNameLabelScope = "string",
EnabledState = "string",
EndpointName = "string",
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := cdn.NewAFDEndpoint(ctx, "afdendpointResource", &cdn.AFDEndpointArgs{
ProfileName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
AutoGeneratedDomainNameLabelScope: pulumi.String("string"),
EnabledState: pulumi.String("string"),
EndpointName: pulumi.String("string"),
Location: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var afdendpointResource = new AFDEndpoint("afdendpointResource", AFDEndpointArgs.builder()
.profileName("string")
.resourceGroupName("string")
.autoGeneratedDomainNameLabelScope("string")
.enabledState("string")
.endpointName("string")
.location("string")
.tags(Map.of("string", "string"))
.build());
afdendpoint_resource = azure_native.cdn.AFDEndpoint("afdendpointResource",
profile_name="string",
resource_group_name="string",
auto_generated_domain_name_label_scope="string",
enabled_state="string",
endpoint_name="string",
location="string",
tags={
"string": "string",
})
const afdendpointResource = new azure_native.cdn.AFDEndpoint("afdendpointResource", {
profileName: "string",
resourceGroupName: "string",
autoGeneratedDomainNameLabelScope: "string",
enabledState: "string",
endpointName: "string",
location: "string",
tags: {
string: "string",
},
});
type: azure-native:cdn:AFDEndpoint
properties:
autoGeneratedDomainNameLabelScope: string
enabledState: string
endpointName: string
location: string
profileName: string
resourceGroupName: string
tags:
string: string
AFDEndpoint 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 AFDEndpoint resource accepts the following input properties:
- Profile
Name string - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Auto
Generated string | Pulumi.Domain Name Label Scope Azure Native. Cdn. Auto Generated Domain Name Label Scope - Indicates the endpoint name reuse scope. The default value is TenantReuse.
- Enabled
State string | Pulumi.Azure Native. Cdn. Enabled State - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- Endpoint
Name string - Name of the endpoint under the profile which is unique globally.
- Location string
- Resource location.
- Dictionary<string, string>
- Resource tags.
- Profile
Name string - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
- Resource
Group stringName - Name of the Resource group within the Azure subscription.
- Auto
Generated string | AutoDomain Name Label Scope Generated Domain Name Label Scope - Indicates the endpoint name reuse scope. The default value is TenantReuse.
- Enabled
State string | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- Endpoint
Name string - Name of the endpoint under the profile which is unique globally.
- Location string
- Resource location.
- map[string]string
- Resource tags.
- profile
Name String - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- auto
Generated String | AutoDomain Name Label Scope Generated Domain Name Label Scope - Indicates the endpoint name reuse scope. The default value is TenantReuse.
- enabled
State String | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- endpoint
Name String - Name of the endpoint under the profile which is unique globally.
- location String
- Resource location.
- Map<String,String>
- Resource tags.
- profile
Name string - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
- resource
Group stringName - Name of the Resource group within the Azure subscription.
- auto
Generated string | AutoDomain Name Label Scope Generated Domain Name Label Scope - Indicates the endpoint name reuse scope. The default value is TenantReuse.
- enabled
State string | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- endpoint
Name string - Name of the endpoint under the profile which is unique globally.
- location string
- Resource location.
- {[key: string]: string}
- Resource tags.
- profile_
name str - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
- resource_
group_ strname - Name of the Resource group within the Azure subscription.
- auto_
generated_ str | Autodomain_ name_ label_ scope Generated Domain Name Label Scope - Indicates the endpoint name reuse scope. The default value is TenantReuse.
- enabled_
state str | EnabledState - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- endpoint_
name str - Name of the endpoint under the profile which is unique globally.
- location str
- Resource location.
- Mapping[str, str]
- Resource tags.
- profile
Name String - Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
- resource
Group StringName - Name of the Resource group within the Azure subscription.
- auto
Generated String | "TenantDomain Name Label Scope Reuse" | "Subscription Reuse" | "Resource Group Reuse" | "No Reuse" - Indicates the endpoint name reuse scope. The default value is TenantReuse.
- enabled
State String | "Enabled" | "Disabled" - Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'
- endpoint
Name String - Name of the endpoint under the profile which is unique globally.
- location String
- Resource location.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the AFDEndpoint resource produces the following output properties:
- Deployment
Status string - Host
Name string - The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning status
- System
Data Pulumi.Azure Native. Cdn. Outputs. System Data Response - Read only system data
- Type string
- Resource type.
- Deployment
Status string - Host
Name string - The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Resource name.
- Provisioning
State string - Provisioning status
- System
Data SystemData Response - Read only system data
- Type string
- Resource type.
- deployment
Status String - host
Name String - The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning status
- system
Data SystemData Response - Read only system data
- type String
- Resource type.
- deployment
Status string - host
Name string - The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Resource name.
- provisioning
State string - Provisioning status
- system
Data SystemData Response - Read only system data
- type string
- Resource type.
- deployment_
status str - host_
name str - The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Resource name.
- provisioning_
state str - Provisioning status
- system_
data SystemData Response - Read only system data
- type str
- Resource type.
- deployment
Status String - host
Name String - The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Resource name.
- provisioning
State String - Provisioning status
- system
Data Property Map - Read only system data
- type String
- Resource type.
Supporting Types
AutoGeneratedDomainNameLabelScope, AutoGeneratedDomainNameLabelScopeArgs
- Tenant
Reuse - TenantReuse
- Subscription
Reuse - SubscriptionReuse
- Resource
Group Reuse - ResourceGroupReuse
- No
Reuse - NoReuse
- Auto
Generated Domain Name Label Scope Tenant Reuse - TenantReuse
- Auto
Generated Domain Name Label Scope Subscription Reuse - SubscriptionReuse
- Auto
Generated Domain Name Label Scope Resource Group Reuse - ResourceGroupReuse
- Auto
Generated Domain Name Label Scope No Reuse - NoReuse
- Tenant
Reuse - TenantReuse
- Subscription
Reuse - SubscriptionReuse
- Resource
Group Reuse - ResourceGroupReuse
- No
Reuse - NoReuse
- Tenant
Reuse - TenantReuse
- Subscription
Reuse - SubscriptionReuse
- Resource
Group Reuse - ResourceGroupReuse
- No
Reuse - NoReuse
- TENANT_REUSE
- TenantReuse
- SUBSCRIPTION_REUSE
- SubscriptionReuse
- RESOURCE_GROUP_REUSE
- ResourceGroupReuse
- NO_REUSE
- NoReuse
- "Tenant
Reuse" - TenantReuse
- "Subscription
Reuse" - SubscriptionReuse
- "Resource
Group Reuse" - ResourceGroupReuse
- "No
Reuse" - NoReuse
EnabledState, EnabledStateArgs
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
State Enabled - Enabled
- Enabled
State Disabled - Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- Enabled
- Enabled
- Disabled
- Disabled
- ENABLED
- Enabled
- DISABLED
- Disabled
- "Enabled"
- Enabled
- "Disabled"
- Disabled
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - An identifier for the identity that created the resource
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - An identifier for the identity that last modified the resource
- Last
Modified stringBy Type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
- created
At string - The timestamp of resource creation (UTC)
- created
By string - An identifier for the identity that created the resource
- created
By stringType - The type of identity that created the resource
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - An identifier for the identity that last modified the resource
- last
Modified stringBy Type - The type of identity that last modified the resource
- created_
at str - The timestamp of resource creation (UTC)
- created_
by str - An identifier for the identity that created the resource
- created_
by_ strtype - The type of identity that created the resource
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - An identifier for the identity that last modified the resource
- last_
modified_ strby_ type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - An identifier for the identity that created the resource
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - An identifier for the identity that last modified the resource
- last
Modified StringBy Type - The type of identity that last modified the resource
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:cdn:AFDEndpoint endpoint1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0