AFDOriginArgs

data class AFDOriginArgs(val azureOrigin: Output<ResourceReferenceArgs>? = null, val enabledState: Output<Either<String, EnabledState>>? = null, val enforceCertificateNameCheck: Output<Boolean>? = null, val hostName: Output<String>? = null, val httpPort: Output<Int>? = null, val httpsPort: Output<Int>? = null, val originGroupName: Output<String>? = null, val originHostHeader: Output<String>? = null, val originName: Output<String>? = null, val priority: Output<Int>? = null, val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sharedPrivateLinkResource: Output<SharedPrivateLinkResourcePropertiesArgs>? = null, val weight: Output<Int>? = null) : ConvertibleToJava<AFDOriginArgs>

Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins. Uses Azure REST API version 2024-09-01. In version 2.x of the Azure Native provider, it used API version 2023-05-01. Other available API versions: 2023-05-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native cdn [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

AFDOrigins_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var afdOrigin = new AzureNative.Cdn.AFDOrigin("afdOrigin", new()
{
EnabledState = AzureNative.Cdn.EnabledState.Enabled,
HostName = "host1.blob.core.windows.net",
HttpPort = 80,
HttpsPort = 443,
OriginGroupName = "origingroup1",
OriginHostHeader = "host1.foo.com",
OriginName = "origin1",
ProfileName = "profile1",
ResourceGroupName = "RG",
});
});
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.NewAFDOrigin(ctx, "afdOrigin", &cdn.AFDOriginArgs{
EnabledState: pulumi.String(cdn.EnabledStateEnabled),
HostName: pulumi.String("host1.blob.core.windows.net"),
HttpPort: pulumi.Int(80),
HttpsPort: pulumi.Int(443),
OriginGroupName: pulumi.String("origingroup1"),
OriginHostHeader: pulumi.String("host1.foo.com"),
OriginName: pulumi.String("origin1"),
ProfileName: pulumi.String("profile1"),
ResourceGroupName: pulumi.String("RG"),
})
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.AFDOrigin;
import com.pulumi.azurenative.cdn.AFDOriginArgs;
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 afdOrigin = new AFDOrigin("afdOrigin", AFDOriginArgs.builder()
.enabledState("Enabled")
.hostName("host1.blob.core.windows.net")
.httpPort(80)
.httpsPort(443)
.originGroupName("origingroup1")
.originHostHeader("host1.foo.com")
.originName("origin1")
.profileName("profile1")
.resourceGroupName("RG")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:cdn:AFDOrigin origin1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}

Constructors

Link copied to clipboard
constructor(azureOrigin: Output<ResourceReferenceArgs>? = null, enabledState: Output<Either<String, EnabledState>>? = null, enforceCertificateNameCheck: Output<Boolean>? = null, hostName: Output<String>? = null, httpPort: Output<Int>? = null, httpsPort: Output<Int>? = null, originGroupName: Output<String>? = null, originHostHeader: Output<String>? = null, originName: Output<String>? = null, priority: Output<Int>? = null, profileName: Output<String>? = null, resourceGroupName: Output<String>? = null, sharedPrivateLinkResource: Output<SharedPrivateLinkResourcePropertiesArgs>? = null, weight: Output<Int>? = null)

Properties

Link copied to clipboard
val azureOrigin: Output<ResourceReferenceArgs>? = null

Resource reference to the Azure origin resource.

Link copied to clipboard
val enabledState: Output<Either<String, EnabledState>>? = null

Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.

Link copied to clipboard

Whether to enable certificate name check at origin level

Link copied to clipboard
val hostName: Output<String>? = null

The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.

Link copied to clipboard
val httpPort: Output<Int>? = null

The value of the HTTP port. Must be between 1 and 65535.

Link copied to clipboard
val httpsPort: Output<Int>? = null

The value of the HTTPS port. Must be between 1 and 65535.

Link copied to clipboard
val originGroupName: Output<String>? = null

Name of the origin group which is unique within the profile.

Link copied to clipboard
val originHostHeader: Output<String>? = null

The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint

Link copied to clipboard
val originName: Output<String>? = null

Name of the origin that is unique within the profile.

Link copied to clipboard
val priority: Output<Int>? = null

Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5

Link copied to clipboard
val profileName: Output<String>? = null

Name of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the Resource group within the Azure subscription.

Link copied to clipboard

The properties of the private link resource for private origin.

Link copied to clipboard
val weight: Output<Int>? = null

Weight of the origin in given origin group for load balancing. Must be between 1 and 1000

Functions

Link copied to clipboard
open override fun toJava(): AFDOriginArgs