Try AWS Native preview for resources not in the classic version.
aws.route53.DelegationSet
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
Provides a Route53 Delegation Set resource.
Example Usage
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", {
name: "mydomain.com",
delegationSetId: main.id,
});
const secondary = new aws.route53.Zone("secondary", {
name: "coolcompany.io",
delegationSetId: main.id,
});
import pulumi
import pulumi_aws as aws
main = aws.route53.DelegationSet("main", reference_name="DynDNS")
primary = aws.route53.Zone("primary",
name="mydomain.com",
delegation_set_id=main.id)
secondary = aws.route53.Zone("secondary",
name="coolcompany.io",
delegation_set_id=main.id)
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/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{
Name: pulumi.String("mydomain.com"),
DelegationSetId: main.ID(),
})
if err != nil {
return err
}
_, err = route53.NewZone(ctx, "secondary", &route53.ZoneArgs{
Name: pulumi.String("coolcompany.io"),
DelegationSetId: main.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
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()
{
Name = "mydomain.com",
DelegationSetId = main.Id,
});
var secondary = new Aws.Route53.Zone("secondary", new()
{
Name = "coolcompany.io",
DelegationSetId = main.Id,
});
});
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()
.name("mydomain.com")
.delegationSetId(main.id())
.build());
var secondary = new Zone("secondary", ZoneArgs.builder()
.name("coolcompany.io")
.delegationSetId(main.id())
.build());
}
}
resources:
main:
type: aws:route53:DelegationSet
properties:
referenceName: DynDNS
primary:
type: aws:route53:Zone
properties:
name: mydomain.com
delegationSetId: ${main.id}
secondary:
type: aws:route53:Zone
properties:
name: coolcompany.io
delegationSetId: ${main.id}
Create DelegationSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DelegationSet(name: string, args?: DelegationSetArgs, opts?: CustomResourceOptions);
@overload
def DelegationSet(resource_name: str,
args: Optional[DelegationSetArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DelegationSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
reference_name: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var delegationSetResource = new Aws.Route53.DelegationSet("delegationSetResource", new()
{
ReferenceName = "string",
});
example, err := route53.NewDelegationSet(ctx, "delegationSetResource", &route53.DelegationSetArgs{
ReferenceName: pulumi.String("string"),
})
var delegationSetResource = new DelegationSet("delegationSetResource", DelegationSetArgs.builder()
.referenceName("string")
.build());
delegation_set_resource = aws.route53.DelegationSet("delegationSetResource", reference_name="string")
const delegationSetResource = new aws.route53.DelegationSet("delegationSetResource", {referenceName: "string"});
type: aws:route53:DelegationSet
properties:
referenceName: string
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:
- 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 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)
- reference
Name 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.
- Name
Servers 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.
- Name
Servers []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.
- name
Servers 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.
- name
Servers 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.
- name
Servers 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.
- Arn string
- The Amazon Resource Name (ARN) of the Delegation Set.
- 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)
- Arn string
- The Amazon Resource Name (ARN) of the Delegation Set.
- 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)
- arn String
- The Amazon Resource Name (ARN) of the Delegation Set.
- 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)
- arn string
- The Amazon Resource Name (ARN) of the Delegation Set.
- 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)
- 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.
- 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)
Import
Using pulumi import
, import Route53 Delegation Sets using the delegation set id
. For example:
$ pulumi import aws:route53/delegationSet:DelegationSet set1 N1PA6795SAMPLE
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.