1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. route53
  6. TrafficPolicy

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
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:

    Document string
    The definition of the traffic policy in JSON format.
    Comment string
    Any comments to include about the traffic policy.
    Name string
    The name of the traffic policy.
    Document string
    The definition of the traffic policy in JSON format.
    Comment string
    Any comments to include about the traffic policy.
    Name string
    The name of the traffic policy.
    document string
    The definition of the traffic policy in JSON format.
    comment string
    Any comments to include about the traffic policy.
    name string
    The name of the traffic policy.
    document String
    The definition of the traffic policy in JSON format.
    comment String
    Any comments to include about the traffic policy.
    name String
    The name of the traffic policy.
    document string
    The definition of the traffic policy in JSON format.
    comment string
    Any comments to include about the traffic policy.
    name string
    The name of the traffic policy.
    document str
    The definition of the traffic policy in JSON format.
    comment str
    Any comments to include about the traffic policy.
    name str
    The name of the traffic policy.
    document String
    The definition of the traffic policy in JSON format.
    comment String
    Any comments to include about the traffic policy.
    name String
    The name of the traffic policy.

    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.
    AwsId 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.AwsNative.Route53.TrafficPolicyType
    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.
    AwsId 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 TrafficPolicyType
    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.
    awsId 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 TrafficPolicyType
    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.
    awsId 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 TrafficPolicyType
    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 TrafficPolicyType
    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.
    awsId 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
    TrafficPolicyTypeSoa
    SOA
    TrafficPolicyTypeA
    A
    TrafficPolicyTypeTxt
    TXT
    TrafficPolicyTypeNs
    NS
    TrafficPolicyTypeCname
    CNAME
    TrafficPolicyTypeMx
    MX
    TrafficPolicyTypeNaptr
    NAPTR
    TrafficPolicyTypePtr
    PTR
    TrafficPolicyTypeSrv
    SRV
    TrafficPolicyTypeSpf
    SPF
    TrafficPolicyTypeAaaa
    AAAA
    TrafficPolicyTypeCaa
    CAA
    TrafficPolicyTypeDs
    DS
    TrafficPolicyTypeTlsa
    TLSA
    TrafficPolicyTypeSshfp
    SSHFP
    TrafficPolicyTypeSvcb
    SVCB
    TrafficPolicyTypeHttps
    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
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.81.0
    published on Monday, Sep 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial