1. Packages
  2. Cloudflare
  3. API Docs
  4. ZoneDnssec
Cloudflare v5.34.0 published on Friday, Jul 12, 2024 by Pulumi

cloudflare.ZoneDnssec

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.34.0 published on Friday, Jul 12, 2024 by Pulumi

    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

    The ZoneDnssec resource accepts the following input properties:

    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    ModifiedOn string
    Zone DNSSEC updated time.
    ZoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    ModifiedOn string
    Zone DNSSEC updated time.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    modifiedOn String
    Zone DNSSEC updated time.
    zoneId string
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    modifiedOn 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.
    zoneId String
    The zone identifier to target for the resource. Modifying this attribute will force creation of a new resource.
    modifiedOn 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.
    DigestAlgorithm string
    Digest algorithm use for Zone DNSSEC.
    DigestType 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.
    KeyTag int
    Key Tag for the Zone DNSSEC.
    KeyType string
    Key type used for Zone DNSSEC.
    PublicKey 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.
    DigestAlgorithm string
    Digest algorithm use for Zone DNSSEC.
    DigestType 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.
    KeyTag int
    Key Tag for the Zone DNSSEC.
    KeyType string
    Key type used for Zone DNSSEC.
    PublicKey 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.
    digestAlgorithm String
    Digest algorithm use for Zone DNSSEC.
    digestType 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.
    keyTag Integer
    Key Tag for the Zone DNSSEC.
    keyType String
    Key type used for Zone DNSSEC.
    publicKey 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.
    digestAlgorithm string
    Digest algorithm use for Zone DNSSEC.
    digestType 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.
    keyTag number
    Key Tag for the Zone DNSSEC.
    keyType string
    Key type used for Zone DNSSEC.
    publicKey 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.
    digestAlgorithm String
    Digest algorithm use for Zone DNSSEC.
    digestType 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.
    keyTag Number
    Key Tag for the Zone DNSSEC.
    keyType String
    Key type used for Zone DNSSEC.
    publicKey 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.
    The following state arguments are supported:
    Algorithm string
    Zone DNSSEC algorithm.
    Digest string
    Zone DNSSEC digest.
    DigestAlgorithm string
    Digest algorithm use for Zone DNSSEC.
    DigestType string
    Digest Type for Zone DNSSEC.
    Ds string
    DS for the Zone DNSSEC.
    Flags int
    Zone DNSSEC flags.
    KeyTag int
    Key Tag for the Zone DNSSEC.
    KeyType string
    Key type used for Zone DNSSEC.
    ModifiedOn string
    Zone DNSSEC updated time.
    PublicKey string
    Public Key for the Zone DNSSEC.
    Status string
    The status of the Zone DNSSEC.
    ZoneId 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.
    DigestAlgorithm string
    Digest algorithm use for Zone DNSSEC.
    DigestType string
    Digest Type for Zone DNSSEC.
    Ds string
    DS for the Zone DNSSEC.
    Flags int
    Zone DNSSEC flags.
    KeyTag int
    Key Tag for the Zone DNSSEC.
    KeyType string
    Key type used for Zone DNSSEC.
    ModifiedOn string
    Zone DNSSEC updated time.
    PublicKey string
    Public Key for the Zone DNSSEC.
    Status string
    The status of the Zone DNSSEC.
    ZoneId 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.
    digestAlgorithm String
    Digest algorithm use for Zone DNSSEC.
    digestType String
    Digest Type for Zone DNSSEC.
    ds String
    DS for the Zone DNSSEC.
    flags Integer
    Zone DNSSEC flags.
    keyTag Integer
    Key Tag for the Zone DNSSEC.
    keyType String
    Key type used for Zone DNSSEC.
    modifiedOn String
    Zone DNSSEC updated time.
    publicKey String
    Public Key for the Zone DNSSEC.
    status String
    The status of the Zone DNSSEC.
    zoneId 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.
    digestAlgorithm string
    Digest algorithm use for Zone DNSSEC.
    digestType string
    Digest Type for Zone DNSSEC.
    ds string
    DS for the Zone DNSSEC.
    flags number
    Zone DNSSEC flags.
    keyTag number
    Key Tag for the Zone DNSSEC.
    keyType string
    Key type used for Zone DNSSEC.
    modifiedOn string
    Zone DNSSEC updated time.
    publicKey string
    Public Key for the Zone DNSSEC.
    status string
    The status of the Zone DNSSEC.
    zoneId 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.
    digestAlgorithm String
    Digest algorithm use for Zone DNSSEC.
    digestType String
    Digest Type for Zone DNSSEC.
    ds String
    DS for the Zone DNSSEC.
    flags Number
    Zone DNSSEC flags.
    keyTag Number
    Key Tag for the Zone DNSSEC.
    keyType String
    Key type used for Zone DNSSEC.
    modifiedOn String
    Zone DNSSEC updated time.
    publicKey String
    Public Key for the Zone DNSSEC.
    status String
    The status of the Zone DNSSEC.
    zoneId 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.
    cloudflare logo
    Cloudflare v5.34.0 published on Friday, Jul 12, 2024 by Pulumi