We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi
Resource Type definition for AWS::Route53::TrafficPolicy. Creates a Route 53 traffic policy, a JSON document that describes how Route 53 responds to DNS queries for a domain name.
Create TrafficPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficPolicy(name: string, args: TrafficPolicyArgs, opts?: CustomResourceOptions);@overload
def TrafficPolicy(resource_name: str,
args: TrafficPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
document: Optional[str] = None,
comment: Optional[str] = None,
name: Optional[str] = None)func NewTrafficPolicy(ctx *Context, name string, args TrafficPolicyArgs, opts ...ResourceOption) (*TrafficPolicy, error)public TrafficPolicy(string name, TrafficPolicyArgs args, CustomResourceOptions? opts = null)
public TrafficPolicy(String name, TrafficPolicyArgs args)
public TrafficPolicy(String name, TrafficPolicyArgs args, CustomResourceOptions options)
type: aws-native:route53:TrafficPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_route53_traffic_policy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TrafficPolicyArgs
- 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 TrafficPolicyArgs
- 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 TrafficPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TrafficPolicy 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 TrafficPolicy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficPolicy resource produces the following output properties:
- Arn string
- The Amazon Resource Name (ARN) of the traffic policy.
- Aws
Id string - The ID that Amazon Route 53 assigned to the traffic policy when it was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type
Pulumi.
Aws Native. Route53. Traffic Policy Type - The DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
- Version int
- The version number that Amazon Route 53 assigned to the traffic policy.
- Arn string
- The Amazon Resource Name (ARN) of the traffic policy.
- Aws
Id string - The ID that Amazon Route 53 assigned to the traffic policy when it was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Type
Traffic
Policy Type - The DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
- Version int
- The version number that Amazon Route 53 assigned to the traffic policy.
- arn string
- The Amazon Resource Name (ARN) of the traffic policy.
- aws_
id string - The ID that Amazon Route 53 assigned to the traffic policy when it was created.
- id string
- The provider-assigned unique ID for this managed resource.
- type "SOA" | "A" | "TXT" | "NS" | "CNAME" | "MX" | "NAPTR" | "PTR" | "SRV" | "SPF" | "AAAA" | "CAA" | "DS" | "TLSA" | "SSHFP" | "SVCB" | "HTTPS"
- The DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
- version number
- The version number that Amazon Route 53 assigned to the traffic policy.
- arn String
- The Amazon Resource Name (ARN) of the traffic policy.
- aws
Id String - The ID that Amazon Route 53 assigned to the traffic policy when it was created.
- id String
- The provider-assigned unique ID for this managed resource.
- type
Traffic
Policy Type - The DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
- version Integer
- The version number that Amazon Route 53 assigned to the traffic policy.
- arn string
- The Amazon Resource Name (ARN) of the traffic policy.
- aws
Id string - The ID that Amazon Route 53 assigned to the traffic policy when it was created.
- id string
- The provider-assigned unique ID for this managed resource.
- type
Traffic
Policy Type - The DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
- version number
- The version number that Amazon Route 53 assigned to the traffic policy.
- arn str
- The Amazon Resource Name (ARN) of the traffic policy.
- aws_
id str - The ID that Amazon Route 53 assigned to the traffic policy when it was created.
- id str
- The provider-assigned unique ID for this managed resource.
- type
Traffic
Policy Type - The DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
- version int
- The version number that Amazon Route 53 assigned to the traffic policy.
- arn String
- The Amazon Resource Name (ARN) of the traffic policy.
- aws
Id String - The ID that Amazon Route 53 assigned to the traffic policy when it was created.
- id String
- The provider-assigned unique ID for this managed resource.
- type "SOA" | "A" | "TXT" | "NS" | "CNAME" | "MX" | "NAPTR" | "PTR" | "SRV" | "SPF" | "AAAA" | "CAA" | "DS" | "TLSA" | "SSHFP" | "SVCB" | "HTTPS"
- The DNS type of the resource record sets that Amazon Route 53 creates when the traffic policy is used to create a traffic policy instance.
- version Number
- The version number that Amazon Route 53 assigned to the traffic policy.
Supporting Types
TrafficPolicyType, TrafficPolicyTypeArgs
- Soa
SOA- A
A- Txt
TXT- Ns
NS- Cname
CNAME- Mx
MX- Naptr
NAPTR- Ptr
PTR- Srv
SRV- Spf
SPF- Aaaa
AAAA- Caa
CAA- Ds
DS- Tlsa
TLSA- Sshfp
SSHFP- Svcb
SVCB- Https
HTTPS
- Traffic
Policy Type Soa SOA- Traffic
Policy Type A A- Traffic
Policy Type Txt TXT- Traffic
Policy Type Ns NS- Traffic
Policy Type Cname CNAME- Traffic
Policy Type Mx MX- Traffic
Policy Type Naptr NAPTR- Traffic
Policy Type Ptr PTR- Traffic
Policy Type Srv SRV- Traffic
Policy Type Spf SPF- Traffic
Policy Type Aaaa AAAA- Traffic
Policy Type Caa CAA- Traffic
Policy Type Ds DS- Traffic
Policy Type Tlsa TLSA- Traffic
Policy Type Sshfp SSHFP- Traffic
Policy Type Svcb SVCB- Traffic
Policy Type Https HTTPS
- "SOA"
SOA- "A"
A- "TXT"
TXT- "NS"
NS- "CNAME"
CNAME- "MX"
MX- "NAPTR"
NAPTR- "PTR"
PTR- "SRV"
SRV- "SPF"
SPF- "AAAA"
AAAA- "CAA"
CAA- "DS"
DS- "TLSA"
TLSA- "SSHFP"
SSHFP- "SVCB"
SVCB- "HTTPS"
HTTPS
- Soa
SOA- A
A- Txt
TXT- Ns
NS- Cname
CNAME- Mx
MX- Naptr
NAPTR- Ptr
PTR- Srv
SRV- Spf
SPF- Aaaa
AAAA- Caa
CAA- Ds
DS- Tlsa
TLSA- Sshfp
SSHFP- Svcb
SVCB- Https
HTTPS
- Soa
SOA- A
A- Txt
TXT- Ns
NS- Cname
CNAME- Mx
MX- Naptr
NAPTR- Ptr
PTR- Srv
SRV- Spf
SPF- Aaaa
AAAA- Caa
CAA- Ds
DS- Tlsa
TLSA- Sshfp
SSHFP- Svcb
SVCB- Https
HTTPS
- SOA
SOA- A
A- TXT
TXT- NS
NS- CNAME
CNAME- MX
MX- NAPTR
NAPTR- PTR
PTR- SRV
SRV- SPF
SPF- AAAA
AAAA- CAA
CAA- DS
DS- TLSA
TLSA- SSHFP
SSHFP- SVCB
SVCB- HTTPS
HTTPS
- "SOA"
SOA- "A"
A- "TXT"
TXT- "NS"
NS- "CNAME"
CNAME- "MX"
MX- "NAPTR"
NAPTR- "PTR"
PTR- "SRV"
SRV- "SPF"
SPF- "AAAA"
AAAA- "CAA"
CAA- "DS"
DS- "TLSA"
TLSA- "SSHFP"
SSHFP- "SVCB"
SVCB- "HTTPS"
HTTPS
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi