Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

AWS Classic

v4.30.0 published on Tuesday, Nov 30, 2021 by Pulumi

DelegationSet

Provides a Route53 Delegation Set resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var main = new Aws.Route53.DelegationSet("main", new Aws.Route53.DelegationSetArgs
        {
            ReferenceName = "DynDNS",
        });
        var primary = new Aws.Route53.Zone("primary", new Aws.Route53.ZoneArgs
        {
            DelegationSetId = main.Id,
        });
        var secondary = new Aws.Route53.Zone("secondary", new Aws.Route53.ZoneArgs
        {
            DelegationSetId = main.Id,
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/route53"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		main, err := route53.NewDelegationSet(ctx, "main", &route53.DelegationSetArgs{
			ReferenceName: pulumi.String("DynDNS"),
		})
		if err != nil {
			return err
		}
		_, err = route53.NewZone(ctx, "primary", &route53.ZoneArgs{
			DelegationSetId: main.ID(),
		})
		if err != nil {
			return err
		}
		_, err = route53.NewZone(ctx, "secondary", &route53.ZoneArgs{
			DelegationSetId: main.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

main = aws.route53.DelegationSet("main", reference_name="DynDNS")
primary = aws.route53.Zone("primary", delegation_set_id=main.id)
secondary = aws.route53.Zone("secondary", delegation_set_id=main.id)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const main = new aws.route53.DelegationSet("main", {referenceName: "DynDNS"});
const primary = new aws.route53.Zone("primary", {delegationSetId: main.id});
const secondary = new aws.route53.Zone("secondary", {delegationSetId: main.id});

Create a DelegationSet Resource

new DelegationSet(name: string, args?: DelegationSetArgs, opts?: CustomResourceOptions);
@overload
def DelegationSet(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  reference_name: Optional[str] = None)
@overload
def DelegationSet(resource_name: str,
                  args: Optional[DelegationSetArgs] = None,
                  opts: Optional[ResourceOptions] = None)
func NewDelegationSet(ctx *Context, name string, args *DelegationSetArgs, opts ...ResourceOption) (*DelegationSet, error)
public DelegationSet(string name, DelegationSetArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args DelegationSetArgs
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 DelegationSetArgs
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 DelegationSetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DelegationSetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

DelegationSet 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 DelegationSet resource accepts the following input properties:

ReferenceName string
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
ReferenceName string
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
referenceName string
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
reference_name str
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)

Outputs

All input properties are implicitly available as output properties. Additionally, the DelegationSet resource produces the following output properties:

Arn string
The Amazon Resource Name (ARN) of the Delegation Set.
Id string
The provider-assigned unique ID for this managed resource.
NameServers List<string>
A list of authoritative name servers for the hosted zone (effectively a list of NS records).
Arn string
The Amazon Resource Name (ARN) of the Delegation Set.
Id string
The provider-assigned unique ID for this managed resource.
NameServers []string
A list of authoritative name servers for the hosted zone (effectively a list of NS records).
arn string
The Amazon Resource Name (ARN) of the Delegation Set.
id string
The provider-assigned unique ID for this managed resource.
nameServers string[]
A list of authoritative name servers for the hosted zone (effectively a list of NS records).
arn str
The Amazon Resource Name (ARN) of the Delegation Set.
id str
The provider-assigned unique ID for this managed resource.
name_servers Sequence[str]
A list of authoritative name servers for the hosted zone (effectively a list of NS records).

Look up an Existing DelegationSet Resource

Get an existing DelegationSet 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?: DelegationSetState, opts?: CustomResourceOptions): DelegationSet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        name_servers: Optional[Sequence[str]] = None,
        reference_name: Optional[str] = None) -> DelegationSet
func GetDelegationSet(ctx *Context, name string, id IDInput, state *DelegationSetState, opts ...ResourceOption) (*DelegationSet, error)
public static DelegationSet Get(string name, Input<string> id, DelegationSetState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Arn string
The Amazon Resource Name (ARN) of the Delegation Set.
NameServers List<string>
A list of authoritative name servers for the hosted zone (effectively a list of NS records).
ReferenceName string
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
Arn string
The Amazon Resource Name (ARN) of the Delegation Set.
NameServers []string
A list of authoritative name servers for the hosted zone (effectively a list of NS records).
ReferenceName string
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
arn string
The Amazon Resource Name (ARN) of the Delegation Set.
nameServers string[]
A list of authoritative name servers for the hosted zone (effectively a list of NS records).
referenceName string
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
arn str
The Amazon Resource Name (ARN) of the Delegation Set.
name_servers Sequence[str]
A list of authoritative name servers for the hosted zone (effectively a list of NS records).
reference_name str
This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)

Import

Route53 Delegation Sets can be imported using the delegation set id, e.g.,

 $ pulumi import aws:route53/delegationSet:DelegationSet set1 N1PA6795SAMPLE

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.