cloudflare.ZoneDnssec
Explore with Pulumi AI
Provides a Cloudflare resource to create and modify zone DNSSEC settings.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = new cloudflare.Zone("example", {zone: "example.com"});
const exampleZoneDnssec = new cloudflare.ZoneDnssec("example", {zoneId: example.id});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.Zone("example", zone="example.com")
example_zone_dnssec = cloudflare.ZoneDnssec("example", zone_id=example.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 {
example, err := cloudflare.NewZone(ctx, "example", &cloudflare.ZoneArgs{
Zone: pulumi.String("example.com"),
})
if err != nil {
return err
}
_, err = cloudflare.NewZoneDnssec(ctx, "example", &cloudflare.ZoneDnssecArgs{
ZoneId: example.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var example = new Cloudflare.Zone("example", new()
{
ZoneName = "example.com",
});
var exampleZoneDnssec = new Cloudflare.ZoneDnssec("example", new()
{
ZoneId = example.Id,
});
});
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 example = new Zone("example", ZoneArgs.builder()
.zone("example.com")
.build());
var exampleZoneDnssec = new ZoneDnssec("exampleZoneDnssec", ZoneDnssecArgs.builder()
.zoneId(example.id())
.build());
}
}
resources:
example:
type: cloudflare:Zone
properties:
zone: example.com
exampleZoneDnssec:
type: cloudflare:ZoneDnssec
name: example
properties:
zoneId: ${example.id}
Create ZoneDnssec Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZoneDnssec(name: string, args: ZoneDnssecArgs, opts?: CustomResourceOptions);
@overload
def ZoneDnssec(resource_name: str,
args: ZoneDnssecArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZoneDnssec(resource_name: str,
opts: Optional[ResourceOptions] = None,
zone_id: Optional[str] = None,
modified_on: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var zoneDnssecResource = new Cloudflare.ZoneDnssec("zoneDnssecResource", new()
{
ZoneId = "string",
ModifiedOn = "string",
});
example, err := cloudflare.NewZoneDnssec(ctx, "zoneDnssecResource", &cloudflare.ZoneDnssecArgs{
ZoneId: pulumi.String("string"),
ModifiedOn: pulumi.String("string"),
})
var zoneDnssecResource = new ZoneDnssec("zoneDnssecResource", ZoneDnssecArgs.builder()
.zoneId("string")
.modifiedOn("string")
.build());
zone_dnssec_resource = cloudflare.ZoneDnssec("zoneDnssecResource",
zone_id="string",
modified_on="string")
const zoneDnssecResource = new cloudflare.ZoneDnssec("zoneDnssecResource", {
zoneId: "string",
modifiedOn: "string",
});
type: cloudflare:ZoneDnssec
properties:
modifiedOn: string
zoneId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.