Zone Hold Args
data class ZoneHoldArgs(val holdAfter: Output<String>? = null, val includeSubdomains: Output<Boolean>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<ZoneHoldArgs>
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZoneHold = new cloudflare.ZoneHold("example_zone_hold", {zoneId: "023e105f4ecef8ad9ca31a8372d0c353"});
Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example_zone_hold = cloudflare.ZoneHold("example_zone_hold", zone_id="023e105f4ecef8ad9ca31a8372d0c353")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZoneHold = new Cloudflare.ZoneHold("example_zone_hold", new()
{
ZoneId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
Content copied to clipboard
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.NewZoneHold(ctx, "example_zone_hold", &cloudflare.ZoneHoldArgs{
ZoneId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZoneHold;
import com.pulumi.cloudflare.ZoneHoldArgs;
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 exampleZoneHold = new ZoneHold("exampleZoneHold", ZoneHoldArgs.builder()
.zoneId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
Content copied to clipboard
resources:
exampleZoneHold:
type: cloudflare:ZoneHold
name: example_zone_hold
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353
Content copied to clipboard
Import
$ pulumi import cloudflare:index/zoneHold:ZoneHold example '<zone_id>'
Content copied to clipboard
Properties
Link copied to clipboard
If hold_after
is provided and future-dated, the hold will be temporarily disabled, then automatically re-enabled by the system at the time specified in this RFC3339-formatted timestamp. A past-dated hold_after
value will have no effect on an existing, enabled hold. Providing an empty string will set its value to the current time.
Link copied to clipboard
If true
, the zone hold will extend to block any subdomain of the given zone, as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with the hostname 'example.com' and include_subdomains=true will block 'example.com', 'staging.example.com', 'api.staging.example.com', etc.