cloudflare.ZoneDnssec
Provides a Cloudflare resource to create and modify zone DNSSEC settings.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleZone = new Cloudflare.Zone("exampleZone", new()
{
ZoneName = "example.com",
});
var exampleZoneDnssec = new Cloudflare.ZoneDnssec("exampleZoneDnssec", new()
{
ZoneId = exampleZone.Id,
});
});
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleZone, err := cloudflare.NewZone(ctx, "exampleZone", &cloudflare.ZoneArgs{
Zone: pulumi.String("example.com"),
})
if err != nil {
return err
}
_, err = cloudflare.NewZoneDnssec(ctx, "exampleZoneDnssec", &cloudflare.ZoneDnssecArgs{
ZoneId: exampleZone.ID(),
})
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.Zone;
import com.pulumi.cloudflare.ZoneArgs;
import com.pulumi.cloudflare.ZoneDnssec;
import com.pulumi.cloudflare.ZoneDnssecArgs;
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 exampleZone = new Zone("exampleZone", ZoneArgs.builder()
.zone("example.com")
.build());
var exampleZoneDnssec = new ZoneDnssec("exampleZoneDnssec", ZoneDnssecArgs.builder()
.zoneId(exampleZone.id())
.build());
}
}
import pulumi
import pulumi_cloudflare as cloudflare
example_zone = cloudflare.Zone("exampleZone", zone="example.com")
example_zone_dnssec = cloudflare.ZoneDnssec("exampleZoneDnssec", zone_id=example_zone.id)
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZone = new cloudflare.Zone("exampleZone", {zone: "example.com"});
const exampleZoneDnssec = new cloudflare.ZoneDnssec("exampleZoneDnssec", {zoneId: exampleZone.id});
resources:
exampleZone:
type: cloudflare:Zone
properties:
zone: example.com
exampleZoneDnssec:
type: cloudflare:ZoneDnssec
properties:
zoneId: ${exampleZone.id}
Create ZoneDnssec Resource
new ZoneDnssec(name: string, args: ZoneDnssecArgs, opts?: CustomResourceOptions);
@overload
def ZoneDnssec(resource_name: str,
opts: Optional[ResourceOptions] = None,
modified_on: Optional[str] = None,
zone_id: Optional[str] = None)
@overload
def ZoneDnssec(resource_name: str,
args: ZoneDnssecArgs,
opts: Optional[ResourceOptions] = None)
func NewZoneDnssec(ctx *Context, name string, args ZoneDnssecArgs, opts ...ResourceOption) (*ZoneDnssec, error)
public ZoneDnssec(string name, ZoneDnssecArgs args, CustomResourceOptions? opts = null)
public ZoneDnssec(String name, ZoneDnssecArgs args)
public ZoneDnssec(String name, ZoneDnssecArgs args, CustomResourceOptions options)
type: cloudflare:ZoneDnssec
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneDnssecArgs
- 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 ZoneDnssecArgs
- 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 ZoneDnssecArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneDnssecArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneDnssecArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ZoneDnssec 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 ZoneDnssec resource accepts the following input properties:
- Zone
Id string The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Modified
On string Zone DNSSEC updated time.
- Zone
Id string The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Modified
On string Zone DNSSEC updated time.
- zone
Id String The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- modified
On String Zone DNSSEC updated time.
- zone
Id string The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- modified
On string Zone DNSSEC updated time.
- zone_
id str The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- modified_
on str Zone DNSSEC updated time.
- zone
Id String The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- modified
On String Zone DNSSEC updated time.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZoneDnssec resource produces the following output properties:
- Algorithm string
Zone DNSSEC algorithm.
- Digest string
Zone DNSSEC digest.
- Digest
Algorithm string Digest algorithm use for Zone DNSSEC.
- Digest
Type string Digest Type for Zone DNSSEC.
- Ds string
DS for the Zone DNSSEC.
- Flags int
Zone DNSSEC flags.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Tag int Key Tag for the Zone DNSSEC.
- Key
Type string Key type used for Zone DNSSEC.
- Public
Key string Public Key for the Zone DNSSEC.
- Status string
The status of the Zone DNSSEC.
- Algorithm string
Zone DNSSEC algorithm.
- Digest string
Zone DNSSEC digest.
- Digest
Algorithm string Digest algorithm use for Zone DNSSEC.
- Digest
Type string Digest Type for Zone DNSSEC.
- Ds string
DS for the Zone DNSSEC.
- Flags int
Zone DNSSEC flags.
- Id string
The provider-assigned unique ID for this managed resource.
- Key
Tag int Key Tag for the Zone DNSSEC.
- Key
Type string Key type used for Zone DNSSEC.
- Public
Key string Public Key for the Zone DNSSEC.
- Status string
The status of the Zone DNSSEC.
- algorithm String
Zone DNSSEC algorithm.
- digest String
Zone DNSSEC digest.
- digest
Algorithm String Digest algorithm use for Zone DNSSEC.
- digest
Type String Digest Type for Zone DNSSEC.
- ds String
DS for the Zone DNSSEC.
- flags Integer
Zone DNSSEC flags.
- id String
The provider-assigned unique ID for this managed resource.
- key
Tag Integer Key Tag for the Zone DNSSEC.
- key
Type String Key type used for Zone DNSSEC.
- public
Key String Public Key for the Zone DNSSEC.
- status String
The status of the Zone DNSSEC.
- algorithm string
Zone DNSSEC algorithm.
- digest string
Zone DNSSEC digest.
- digest
Algorithm string Digest algorithm use for Zone DNSSEC.
- digest
Type string Digest Type for Zone DNSSEC.
- ds string
DS for the Zone DNSSEC.
- flags number
Zone DNSSEC flags.
- id string
The provider-assigned unique ID for this managed resource.
- key
Tag number Key Tag for the Zone DNSSEC.
- key
Type string Key type used for Zone DNSSEC.
- public
Key string Public Key for the Zone DNSSEC.
- status string
The status of the Zone DNSSEC.
- algorithm str
Zone DNSSEC algorithm.
- digest str
Zone DNSSEC digest.
- digest_
algorithm str Digest algorithm use for Zone DNSSEC.
- digest_
type str Digest Type for Zone DNSSEC.
- ds str
DS for the Zone DNSSEC.
- flags int
Zone DNSSEC flags.
- id str
The provider-assigned unique ID for this managed resource.
- key_
tag int Key Tag for the Zone DNSSEC.
- key_
type str Key type used for Zone DNSSEC.
- public_
key str Public Key for the Zone DNSSEC.
- status str
The status of the Zone DNSSEC.
- algorithm String
Zone DNSSEC algorithm.
- digest String
Zone DNSSEC digest.
- digest
Algorithm String Digest algorithm use for Zone DNSSEC.
- digest
Type String Digest Type for Zone DNSSEC.
- ds String
DS for the Zone DNSSEC.
- flags Number
Zone DNSSEC flags.
- id String
The provider-assigned unique ID for this managed resource.
- key
Tag Number Key Tag for the Zone DNSSEC.
- key
Type String Key type used for Zone DNSSEC.
- public
Key String Public Key for the Zone DNSSEC.
- status String
The status of the Zone DNSSEC.
Look up Existing ZoneDnssec Resource
Get an existing ZoneDnssec resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZoneDnssecState, opts?: CustomResourceOptions): ZoneDnssec
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
digest: Optional[str] = None,
digest_algorithm: Optional[str] = None,
digest_type: Optional[str] = None,
ds: Optional[str] = None,
flags: Optional[int] = None,
key_tag: Optional[int] = None,
key_type: Optional[str] = None,
modified_on: Optional[str] = None,
public_key: Optional[str] = None,
status: Optional[str] = None,
zone_id: Optional[str] = None) -> ZoneDnssec
func GetZoneDnssec(ctx *Context, name string, id IDInput, state *ZoneDnssecState, opts ...ResourceOption) (*ZoneDnssec, error)
public static ZoneDnssec Get(string name, Input<string> id, ZoneDnssecState? state, CustomResourceOptions? opts = null)
public static ZoneDnssec get(String name, Output<String> id, ZoneDnssecState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Algorithm string
Zone DNSSEC algorithm.
- Digest string
Zone DNSSEC digest.
- Digest
Algorithm string Digest algorithm use for Zone DNSSEC.
- Digest
Type string Digest Type for Zone DNSSEC.
- Ds string
DS for the Zone DNSSEC.
- Flags int
Zone DNSSEC flags.
- Key
Tag int Key Tag for the Zone DNSSEC.
- Key
Type string Key type used for Zone DNSSEC.
- Modified
On string Zone DNSSEC updated time.
- Public
Key string Public Key for the Zone DNSSEC.
- Status string
The status of the Zone DNSSEC.
- Zone
Id string The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- Algorithm string
Zone DNSSEC algorithm.
- Digest string
Zone DNSSEC digest.
- Digest
Algorithm string Digest algorithm use for Zone DNSSEC.
- Digest
Type string Digest Type for Zone DNSSEC.
- Ds string
DS for the Zone DNSSEC.
- Flags int
Zone DNSSEC flags.
- Key
Tag int Key Tag for the Zone DNSSEC.
- Key
Type string Key type used for Zone DNSSEC.
- Modified
On string Zone DNSSEC updated time.
- Public
Key string Public Key for the Zone DNSSEC.
- Status string
The status of the Zone DNSSEC.
- Zone
Id string The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- algorithm String
Zone DNSSEC algorithm.
- digest String
Zone DNSSEC digest.
- digest
Algorithm String Digest algorithm use for Zone DNSSEC.
- digest
Type String Digest Type for Zone DNSSEC.
- ds String
DS for the Zone DNSSEC.
- flags Integer
Zone DNSSEC flags.
- key
Tag Integer Key Tag for the Zone DNSSEC.
- key
Type String Key type used for Zone DNSSEC.
- modified
On String Zone DNSSEC updated time.
- public
Key String Public Key for the Zone DNSSEC.
- status String
The status of the Zone DNSSEC.
- zone
Id String The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- algorithm string
Zone DNSSEC algorithm.
- digest string
Zone DNSSEC digest.
- digest
Algorithm string Digest algorithm use for Zone DNSSEC.
- digest
Type string Digest Type for Zone DNSSEC.
- ds string
DS for the Zone DNSSEC.
- flags number
Zone DNSSEC flags.
- key
Tag number Key Tag for the Zone DNSSEC.
- key
Type string Key type used for Zone DNSSEC.
- modified
On string Zone DNSSEC updated time.
- public
Key string Public Key for the Zone DNSSEC.
- status string
The status of the Zone DNSSEC.
- zone
Id string The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- algorithm str
Zone DNSSEC algorithm.
- digest str
Zone DNSSEC digest.
- digest_
algorithm str Digest algorithm use for Zone DNSSEC.
- digest_
type str Digest Type for Zone DNSSEC.
- ds str
DS for the Zone DNSSEC.
- flags int
Zone DNSSEC flags.
- key_
tag int Key Tag for the Zone DNSSEC.
- key_
type str Key type used for Zone DNSSEC.
- modified_
on str Zone DNSSEC updated time.
- public_
key str Public Key for the Zone DNSSEC.
- status str
The status of the Zone DNSSEC.
- zone_
id str The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
- algorithm String
Zone DNSSEC algorithm.
- digest String
Zone DNSSEC digest.
- digest
Algorithm String Digest algorithm use for Zone DNSSEC.
- digest
Type String Digest Type for Zone DNSSEC.
- ds String
DS for the Zone DNSSEC.
- flags Number
Zone DNSSEC flags.
- key
Tag Number Key Tag for the Zone DNSSEC.
- key
Type String Key type used for Zone DNSSEC.
- modified
On String Zone DNSSEC updated time.
- public
Key String Public Key for the Zone DNSSEC.
- status String
The status of the Zone DNSSEC.
- zone
Id String The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
Import
$ pulumi import cloudflare:index/zoneDnssec:ZoneDnssec example <zone_id>
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.