CustomHostnameFallbackOrigin

class CustomHostnameFallbackOrigin : KotlinCustomResource

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleCustomHostnameFallbackOrigin = new cloudflare.CustomHostnameFallbackOrigin("example_custom_hostname_fallback_origin", {
zoneId: "023e105f4ecef8ad9ca31a8372d0c353",
origin: "fallback.example.com",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_custom_hostname_fallback_origin = cloudflare.CustomHostnameFallbackOrigin("example_custom_hostname_fallback_origin",
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
origin="fallback.example.com")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleCustomHostnameFallbackOrigin = new Cloudflare.CustomHostnameFallbackOrigin("example_custom_hostname_fallback_origin", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
Origin = "fallback.example.com",
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewCustomHostnameFallbackOrigin(ctx, "example_custom_hostname_fallback_origin", &cloudflare.CustomHostnameFallbackOriginArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
Origin: pulumi.String("fallback.example.com"),
})
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.cloudflare.CustomHostnameFallbackOrigin;
import com.pulumi.cloudflare.CustomHostnameFallbackOriginArgs;
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 exampleCustomHostnameFallbackOrigin = new CustomHostnameFallbackOrigin("exampleCustomHostnameFallbackOrigin", CustomHostnameFallbackOriginArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.origin("fallback.example.com")
.build());
}
}
resources:
exampleCustomHostnameFallbackOrigin:
type: cloudflare:CustomHostnameFallbackOrigin
name: example_custom_hostname_fallback_origin
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
origin: fallback.example.com

Import

$ pulumi import cloudflare:index/customHostnameFallbackOrigin:CustomHostnameFallbackOrigin example '<zone_id>'

Properties

Link copied to clipboard
val createdAt: Output<String>

This is the time the fallback origin was created.

Link copied to clipboard
val errors: Output<List<String>>

These are errors that were encountered while trying to activate a fallback origin.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val origin: Output<String>

Your origin hostname that requests to your custom hostnames will be sent to.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val status: Output<String>

Status of the fallback origin's activation. Available values: "initializing", "pendingdeployment", "pendingdeletion", "active", "deploymenttimedout", "deletiontimedout".

Link copied to clipboard
val updatedAt: Output<String>

This is the time the fallback origin was updated.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneId: Output<String>

Identifier