Azure Native

v1.79.2 published on Thursday, Sep 29, 2022 by Pulumi

AFDEndpoint

CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format .azureedge.net. API Version: 2020-09-01.

Example Usage

AFDEndpoints_Create

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var afdEndpoint = new AzureNative.Cdn.AFDEndpoint("afdEndpoint", new()
    {
        EnabledState = "Enabled",
        EndpointName = "endpoint1",
        Location = "CentralUs",
        OriginResponseTimeoutSeconds = 30,
        ProfileName = "profile1",
        ResourceGroupName = "RG",
        Tags = ,
    });

});
package main

import (
	cdn "github.com/pulumi/pulumi-azure-native/sdk/go/azure/cdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cdn.NewAFDEndpoint(ctx, "afdEndpoint", &cdn.AFDEndpointArgs{
			EnabledState:                 pulumi.String("Enabled"),
			EndpointName:                 pulumi.String("endpoint1"),
			Location:                     pulumi.String("CentralUs"),
			OriginResponseTimeoutSeconds: pulumi.Int(30),
			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()        
            .enabledState("Enabled")
            .endpointName("endpoint1")
            .location("CentralUs")
            .originResponseTimeoutSeconds(30)
            .profileName("profile1")
            .resourceGroupName("RG")
            .tags()
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

afd_endpoint = azure_native.cdn.AFDEndpoint("afdEndpoint",
    enabled_state="Enabled",
    endpoint_name="endpoint1",
    location="CentralUs",
    origin_response_timeout_seconds=30,
    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", {
    enabledState: "Enabled",
    endpointName: "endpoint1",
    location: "CentralUs",
    originResponseTimeoutSeconds: 30,
    profileName: "profile1",
    resourceGroupName: "RG",
    tags: {},
});
resources:
  afdEndpoint:
    type: azure-native:cdn:AFDEndpoint
    properties:
      enabledState: Enabled
      endpointName: endpoint1
      location: CentralUs
      originResponseTimeoutSeconds: 30
      profileName: profile1
      resourceGroupName: RG
      tags: {}

Create a AFDEndpoint Resource

new AFDEndpoint(name: string, args: AFDEndpointArgs, opts?: CustomResourceOptions);
@overload
def AFDEndpoint(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                enabled_state: Optional[Union[str, EnabledState]] = None,
                endpoint_name: Optional[str] = None,
                location: Optional[str] = None,
                origin_response_timeout_seconds: Optional[int] = None,
                profile_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None)
@overload
def AFDEndpoint(resource_name: str,
                args: AFDEndpointArgs,
                opts: Optional[ResourceOptions] = 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.

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.

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:

ProfileName string

Name of the CDN profile which is unique within the resource group.

ResourceGroupName string

Name of the Resource group within the Azure subscription.

EnabledState string | Pulumi.AzureNative.Cdn.EnabledState

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'

EndpointName string

Name of the endpoint under the profile which is unique globally.

Location string

Resource location.

OriginResponseTimeoutSeconds int

Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.

Tags Dictionary<string, string>

Resource tags.

ProfileName string

Name of the CDN profile which is unique within the resource group.

ResourceGroupName string

Name of the Resource group within the Azure subscription.

EnabledState string | EnabledState

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'

EndpointName string

Name of the endpoint under the profile which is unique globally.

Location string

Resource location.

OriginResponseTimeoutSeconds int

Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.

Tags map[string]string

Resource tags.

profileName String

Name of the CDN profile which is unique within the resource group.

resourceGroupName String

Name of the Resource group within the Azure subscription.

enabledState String | EnabledState

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'

endpointName String

Name of the endpoint under the profile which is unique globally.

location String

Resource location.

originResponseTimeoutSeconds Integer

Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.

tags Map<String,String>

Resource tags.

profileName string

Name of the CDN profile which is unique within the resource group.

resourceGroupName string

Name of the Resource group within the Azure subscription.

enabledState string | EnabledState

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'

endpointName string

Name of the endpoint under the profile which is unique globally.

location string

Resource location.

originResponseTimeoutSeconds number

Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.

tags {[key: string]: string}

Resource tags.

profile_name str

Name of the CDN profile which is unique within the resource group.

resource_group_name str

Name of the Resource group within the Azure subscription.

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.

origin_response_timeout_seconds int

Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.

tags Mapping[str, str]

Resource tags.

profileName String

Name of the CDN profile which is unique within the resource group.

resourceGroupName String

Name of the Resource group within the Azure subscription.

enabledState String | "Enabled" | "Disabled"

Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'

endpointName String

Name of the endpoint under the profile which is unique globally.

location String

Resource location.

originResponseTimeoutSeconds Number

Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.

tags Map<String>

Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the AFDEndpoint resource produces the following output properties:

DeploymentStatus string
HostName 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.

ProvisioningState string

Provisioning status

SystemData Pulumi.AzureNative.Cdn.Outputs.SystemDataResponse

Read only system data

Type string

Resource type.

DeploymentStatus string
HostName 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.

ProvisioningState string

Provisioning status

SystemData SystemDataResponse

Read only system data

Type string

Resource type.

deploymentStatus String
hostName 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.

provisioningState String

Provisioning status

systemData SystemDataResponse

Read only system data

type String

Resource type.

deploymentStatus string
hostName 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.

provisioningState string

Provisioning status

systemData SystemDataResponse

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 SystemDataResponse

Read only system data

type str

Resource type.

deploymentStatus String
hostName 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.

provisioningState String

Provisioning status

systemData Property Map

Read only system data

type String

Resource type.

Supporting Types

EnabledState

Enabled
Enabled
Disabled
Disabled
EnabledStateEnabled
Enabled
EnabledStateDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

SystemDataResponse

CreatedAt string

The timestamp of resource creation (UTC)

CreatedBy string

An identifier for the identity that created the resource

CreatedByType string

The type of identity that created the resource

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

An identifier for the identity that last modified the resource

LastModifiedByType string

The type of identity that last modified the resource

CreatedAt string

The timestamp of resource creation (UTC)

CreatedBy string

An identifier for the identity that created the resource

CreatedByType string

The type of identity that created the resource

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

An identifier for the identity that last modified the resource

LastModifiedByType string

The type of identity that last modified the resource

createdAt String

The timestamp of resource creation (UTC)

createdBy String

An identifier for the identity that created the resource

createdByType String

The type of identity that created the resource

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

An identifier for the identity that last modified the resource

lastModifiedByType String

The type of identity that last modified the resource

createdAt string

The timestamp of resource creation (UTC)

createdBy string

An identifier for the identity that created the resource

createdByType string

The type of identity that created the resource

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

An identifier for the identity that last modified the resource

lastModifiedByType string

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_type str

The type of identity that created the resource

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

An identifier for the identity that last modified the resource

last_modified_by_type str

The type of identity that last modified the resource

createdAt String

The timestamp of resource creation (UTC)

createdBy String

An identifier for the identity that created the resource

createdByType String

The type of identity that created the resource

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

An identifier for the identity that last modified the resource

lastModifiedByType String

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/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0