DelegationSet

Provides a Route53 Delegation Set resource.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var main = new Aws.Route53.DelegationSet("main", new()
    {
        ReferenceName = "DynDNS",
    });

    var primary = new Aws.Route53.Zone("primary", new()
    {
        DelegationSetId = main.Id,
    });

    var secondary = new Aws.Route53.Zone("secondary", new()
    {
        DelegationSetId = main.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/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
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.DelegationSet;
import com.pulumi.aws.route53.DelegationSetArgs;
import com.pulumi.aws.route53.Zone;
import com.pulumi.aws.route53.ZoneArgs;
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 main = new DelegationSet("main", DelegationSetArgs.builder()        
            .referenceName("DynDNS")
            .build());

        var primary = new Zone("primary", ZoneArgs.builder()        
            .delegationSetId(main.id())
            .build());

        var secondary = new Zone("secondary", ZoneArgs.builder()        
            .delegationSetId(main.id())
            .build());

    }
}
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});
resources:
  main:
    type: aws:route53:DelegationSet
    properties:
      referenceName: DynDNS
  primary:
    type: aws:route53:Zone
    properties:
      delegationSetId: ${main.id}
  secondary:
    type: aws:route53:Zone
    properties:
      delegationSetId: ${main.id}

Create 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)
public DelegationSet(String name, DelegationSetArgs args)
public DelegationSet(String name, DelegationSetArgs args, CustomResourceOptions options)
type: aws:route53:DelegationSet
properties: # The arguments to resource properties.
options: # 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.
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.
name String
The unique name of the resource.
args DelegationSetArgs
The arguments to resource properties.
options 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)

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)

referenceName String

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 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 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).

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).

Look up 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)
public static DelegationSet get(String name, Output<String> id, DelegationSetState 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:
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 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 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)

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)

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.