Provides a DNSimple domain delegation signer record resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dnsimple from "@pulumi/dnsimple";
const example = new dnsimple.DsRecord("example", {
domain: "example.com",
algorithm: "8",
digest: "6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B",
digestType: "2",
keyTag: "12345",
});
import pulumi
import pulumi_dnsimple as dnsimple
example = dnsimple.DsRecord("example",
domain="example.com",
algorithm="8",
digest="6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B",
digest_type="2",
key_tag="12345")
package main
import (
"github.com/pulumi/pulumi-dnsimple/sdk/v5/go/dnsimple"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dnsimple.NewDsRecord(ctx, "example", &dnsimple.DsRecordArgs{
Domain: pulumi.String("example.com"),
Algorithm: pulumi.String("8"),
Digest: pulumi.String("6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B"),
DigestType: pulumi.String("2"),
KeyTag: pulumi.String("12345"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DNSimple = Pulumi.DNSimple;
return await Deployment.RunAsync(() =>
{
var example = new DNSimple.DsRecord("example", new()
{
Domain = "example.com",
Algorithm = "8",
Digest = "6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B",
DigestType = "2",
KeyTag = "12345",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dnsimple.DsRecord;
import com.pulumi.dnsimple.DsRecordArgs;
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 DsRecord("example", DsRecordArgs.builder()
.domain("example.com")
.algorithm("8")
.digest("6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B")
.digestType("2")
.keyTag("12345")
.build());
}
}
resources:
example:
type: dnsimple:DsRecord
properties:
domain: example.com
algorithm: '8'
digest: 6CEEA0117A02480216EBF745A7B690F938860074E4AD11AF2AC573007205682B
digestType: '2'
keyTag: '12345'
Create DsRecord Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DsRecord(name: string, args: DsRecordArgs, opts?: CustomResourceOptions);@overload
def DsRecord(resource_name: str,
args: DsRecordArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DsRecord(resource_name: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
domain: Optional[str] = None,
digest: Optional[str] = None,
digest_type: Optional[str] = None,
key_tag: Optional[str] = None,
public_key: Optional[str] = None)func NewDsRecord(ctx *Context, name string, args DsRecordArgs, opts ...ResourceOption) (*DsRecord, error)public DsRecord(string name, DsRecordArgs args, CustomResourceOptions? opts = null)
public DsRecord(String name, DsRecordArgs args)
public DsRecord(String name, DsRecordArgs args, CustomResourceOptions options)
type: dnsimple:DsRecord
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 DsRecordArgs
- 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 DsRecordArgs
- 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 DsRecordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DsRecordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DsRecordArgs
- 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 dsRecordResource = new DNSimple.DsRecord("dsRecordResource", new()
{
Algorithm = "string",
Domain = "string",
Digest = "string",
DigestType = "string",
KeyTag = "string",
PublicKey = "string",
});
example, err := dnsimple.NewDsRecord(ctx, "dsRecordResource", &dnsimple.DsRecordArgs{
Algorithm: pulumi.String("string"),
Domain: pulumi.String("string"),
Digest: pulumi.String("string"),
DigestType: pulumi.String("string"),
KeyTag: pulumi.String("string"),
PublicKey: pulumi.String("string"),
})
var dsRecordResource = new DsRecord("dsRecordResource", DsRecordArgs.builder()
.algorithm("string")
.domain("string")
.digest("string")
.digestType("string")
.keyTag("string")
.publicKey("string")
.build());
ds_record_resource = dnsimple.DsRecord("dsRecordResource",
algorithm="string",
domain="string",
digest="string",
digest_type="string",
key_tag="string",
public_key="string")
const dsRecordResource = new dnsimple.DsRecord("dsRecordResource", {
algorithm: "string",
domain: "string",
digest: "string",
digestType: "string",
keyTag: "string",
publicKey: "string",
});
type: dnsimple:DsRecord
properties:
algorithm: string
digest: string
digestType: string
domain: string
keyTag: string
publicKey: string
DsRecord 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 DsRecord resource accepts the following input properties:
- Algorithm string
- DNSSEC algorithm number as a string.
- Domain string
- The domain name or numeric ID to create the delegation signer record for.
- Digest string
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- Digest
Type string - DNSSEC digest type number as a string.
- Key
Tag string - A key tag that references the corresponding DNSKEY record.
- Public
Key string - A public key that references the corresponding DNSKEY record.
- Algorithm string
- DNSSEC algorithm number as a string.
- Domain string
- The domain name or numeric ID to create the delegation signer record for.
- Digest string
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- Digest
Type string - DNSSEC digest type number as a string.
- Key
Tag string - A key tag that references the corresponding DNSKEY record.
- Public
Key string - A public key that references the corresponding DNSKEY record.
- algorithm String
- DNSSEC algorithm number as a string.
- domain String
- The domain name or numeric ID to create the delegation signer record for.
- digest String
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest
Type String - DNSSEC digest type number as a string.
- key
Tag String - A key tag that references the corresponding DNSKEY record.
- public
Key String - A public key that references the corresponding DNSKEY record.
- algorithm string
- DNSSEC algorithm number as a string.
- domain string
- The domain name or numeric ID to create the delegation signer record for.
- digest string
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest
Type string - DNSSEC digest type number as a string.
- key
Tag string - A key tag that references the corresponding DNSKEY record.
- public
Key string - A public key that references the corresponding DNSKEY record.
- algorithm str
- DNSSEC algorithm number as a string.
- domain str
- The domain name or numeric ID to create the delegation signer record for.
- digest str
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest_
type str - DNSSEC digest type number as a string.
- key_
tag str - A key tag that references the corresponding DNSKEY record.
- public_
key str - A public key that references the corresponding DNSKEY record.
- algorithm String
- DNSSEC algorithm number as a string.
- domain String
- The domain name or numeric ID to create the delegation signer record for.
- digest String
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest
Type String - DNSSEC digest type number as a string.
- key
Tag String - A key tag that references the corresponding DNSKEY record.
- public
Key String - A public key that references the corresponding DNSKEY record.
Outputs
All input properties are implicitly available as output properties. Additionally, the DsRecord resource produces the following output properties:
- created_
at str - The timestamp when the DS record was created.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - The timestamp when the DS record was last updated.
Look up Existing DsRecord Resource
Get an existing DsRecord 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?: DsRecordState, opts?: CustomResourceOptions): DsRecord@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
algorithm: Optional[str] = None,
created_at: Optional[str] = None,
digest: Optional[str] = None,
digest_type: Optional[str] = None,
domain: Optional[str] = None,
key_tag: Optional[str] = None,
public_key: Optional[str] = None,
updated_at: Optional[str] = None) -> DsRecordfunc GetDsRecord(ctx *Context, name string, id IDInput, state *DsRecordState, opts ...ResourceOption) (*DsRecord, error)public static DsRecord Get(string name, Input<string> id, DsRecordState? state, CustomResourceOptions? opts = null)public static DsRecord get(String name, Output<String> id, DsRecordState state, CustomResourceOptions options)resources: _: type: dnsimple:DsRecord get: id: ${id}- 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
- DNSSEC algorithm number as a string.
- Created
At string - The timestamp when the DS record was created.
- Digest string
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- Digest
Type string - DNSSEC digest type number as a string.
- Domain string
- The domain name or numeric ID to create the delegation signer record for.
- Key
Tag string - A key tag that references the corresponding DNSKEY record.
- Public
Key string - A public key that references the corresponding DNSKEY record.
- Updated
At string - The timestamp when the DS record was last updated.
- Algorithm string
- DNSSEC algorithm number as a string.
- Created
At string - The timestamp when the DS record was created.
- Digest string
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- Digest
Type string - DNSSEC digest type number as a string.
- Domain string
- The domain name or numeric ID to create the delegation signer record for.
- Key
Tag string - A key tag that references the corresponding DNSKEY record.
- Public
Key string - A public key that references the corresponding DNSKEY record.
- Updated
At string - The timestamp when the DS record was last updated.
- algorithm String
- DNSSEC algorithm number as a string.
- created
At String - The timestamp when the DS record was created.
- digest String
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest
Type String - DNSSEC digest type number as a string.
- domain String
- The domain name or numeric ID to create the delegation signer record for.
- key
Tag String - A key tag that references the corresponding DNSKEY record.
- public
Key String - A public key that references the corresponding DNSKEY record.
- updated
At String - The timestamp when the DS record was last updated.
- algorithm string
- DNSSEC algorithm number as a string.
- created
At string - The timestamp when the DS record was created.
- digest string
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest
Type string - DNSSEC digest type number as a string.
- domain string
- The domain name or numeric ID to create the delegation signer record for.
- key
Tag string - A key tag that references the corresponding DNSKEY record.
- public
Key string - A public key that references the corresponding DNSKEY record.
- updated
At string - The timestamp when the DS record was last updated.
- algorithm str
- DNSSEC algorithm number as a string.
- created_
at str - The timestamp when the DS record was created.
- digest str
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest_
type str - DNSSEC digest type number as a string.
- domain str
- The domain name or numeric ID to create the delegation signer record for.
- key_
tag str - A key tag that references the corresponding DNSKEY record.
- public_
key str - A public key that references the corresponding DNSKEY record.
- updated_
at str - The timestamp when the DS record was last updated.
- algorithm String
- DNSSEC algorithm number as a string.
- created
At String - The timestamp when the DS record was created.
- digest String
- The hexadecimal representation of the digest of the corresponding DNSKEY record.
- digest
Type String - DNSSEC digest type number as a string.
- domain String
- The domain name or numeric ID to create the delegation signer record for.
- key
Tag String - A key tag that references the corresponding DNSKEY record.
- public
Key String - A public key that references the corresponding DNSKEY record.
- updated
At String - The timestamp when the DS record was last updated.
Import
DNSimple DS records can be imported using the domain name and numeric record ID in the format domain_name_record_id.
bash
$ pulumi import dnsimple:index/dsRecord:DsRecord example example.com_5678
The record ID can be found within the DNSimple DNSSEC API. Check out Authentication in API Overview for available options.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- DNSimple pulumi/pulumi-dnsimple
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dnsimpleTerraform Provider.
