ZoneHoldArgs

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"});
import pulumi
import pulumi_cloudflare as cloudflare
example_zone_hold = cloudflare.ZoneHold("example_zone_hold", zone_id="023e105f4ecef8ad9ca31a8372d0c353")
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",
});
});
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
})
}
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());
}
}
resources:
exampleZoneHold:
type: cloudflare:ZoneHold
name: example_zone_hold
properties:
zoneId: 023e105f4ecef8ad9ca31a8372d0c353

Import

$ pulumi import cloudflare:index/zoneHold:ZoneHold example '<zone_id>'

Constructors

Link copied to clipboard
constructor(holdAfter: Output<String>? = null, includeSubdomains: Output<Boolean>? = null, zoneId: Output<String>? = null)

Properties

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

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
val includeSubdomains: Output<Boolean>? = null

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.

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

Identifier

Functions

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