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/v2/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v2/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);def DelegationSet(resource_name, opts=None, reference_name=None, __props__=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.
- opts ResourceOptions
- A bag of options that control this 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 Programming Model docs.
Inputs
The DelegationSet resource accepts the following input properties:
- Reference
Name string This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
- Reference
Name string This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
- reference
Name 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:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name
Servers List<string> A list of authoritative name servers for the hosted zone (effectively a list of NS records).
- Id string
- The provider-assigned unique ID for this managed resource.
- Name
Servers []string A list of authoritative name servers for the hosted zone (effectively a list of NS records).
- id string
- The provider-assigned unique ID for this managed resource.
- name
Servers string[] A list of authoritative name servers for the hosted zone (effectively a list of NS records).
- id str
- The provider-assigned unique ID for this managed resource.
- name_
servers List[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): DelegationSetstatic get(resource_name, id, opts=None, name_servers=None, reference_name=None, __props__=None);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:
- Name
Servers List<string> A list of authoritative name servers for the hosted zone (effectively a list of NS records).
- Reference
Name string This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
- Name
Servers []string A list of authoritative name servers for the hosted zone (effectively a list of NS records).
- Reference
Name string This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
- name
Servers string[] A list of authoritative name servers for the hosted zone (effectively a list of NS records).
- reference
Name string This is a reference name used in Caller Reference (helpful for identifying single delegation set amongst others)
- name_
servers List[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)
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.