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

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.

    Using getTrafficPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTrafficPolicy(args: GetTrafficPolicyArgs, opts?: InvokeOptions): Promise<GetTrafficPolicyResult>
    function getTrafficPolicyOutput(args: GetTrafficPolicyOutputArgs, opts?: InvokeOutputOptions): Output<GetTrafficPolicyResult>
    def get_traffic_policy(arn: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetTrafficPolicyResult
    def get_traffic_policy_output(arn: pulumi.Input[Optional[str]] = None,
                           opts: Optional[InvokeOutputOptions] = None) -> Output[GetTrafficPolicyResult]
    func LookupTrafficPolicy(ctx *Context, args *LookupTrafficPolicyArgs, opts ...InvokeOption) (*LookupTrafficPolicyResult, error)
    func LookupTrafficPolicyOutput(ctx *Context, args *LookupTrafficPolicyOutputArgs, opts ...InvokeOption) LookupTrafficPolicyResultOutput

    > Note: This function is named LookupTrafficPolicy in the Go SDK.

    public static class GetTrafficPolicy 
    {
        public static Task<GetTrafficPolicyResult> InvokeAsync(GetTrafficPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficPolicyResult> Invoke(GetTrafficPolicyInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficPolicyResult> Invoke(GetTrafficPolicyInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTrafficPolicyResult> getTrafficPolicy(GetTrafficPolicyArgs args, InvokeOptions options)
    public static Output<GetTrafficPolicyResult> getTrafficPolicy(GetTrafficPolicyArgs args, InvokeOptions options)
    public static Output<GetTrafficPolicyResult> getTrafficPolicy(GetTrafficPolicyArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:route53:getTrafficPolicy
      arguments:
        # arguments dictionary
    data "aws-native_route53_get_traffic_policy" "name" {
        # arguments
    }

    The following arguments are supported:

    Arn string
    The Amazon Resource Name (ARN) of the traffic policy.
    Arn string
    The Amazon Resource Name (ARN) of the traffic policy.
    arn string
    The Amazon Resource Name (ARN) of the traffic policy.
    arn String
    The Amazon Resource Name (ARN) of the traffic policy.
    arn string
    The Amazon Resource Name (ARN) of the traffic policy.
    arn str
    The Amazon Resource Name (ARN) of the traffic policy.
    arn String
    The Amazon Resource Name (ARN) of the traffic policy.

    getTrafficPolicy Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the traffic policy.
    Comment string
    Any comments to include about the traffic policy.
    Id string
    The ID that Amazon Route 53 assigned to the traffic policy when it was created.
    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.
    Comment string
    Any comments to include about the traffic policy.
    Id string
    The ID that Amazon Route 53 assigned to the traffic policy when it was created.
    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.
    comment string
    Any comments to include about the traffic policy.
    id string
    The ID that Amazon Route 53 assigned to the traffic policy when it was created.
    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.
    comment String
    Any comments to include about the traffic policy.
    id String
    The ID that Amazon Route 53 assigned to the traffic policy when it was created.
    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.
    comment string
    Any comments to include about the traffic policy.
    id string
    The ID that Amazon Route 53 assigned to the traffic policy when it was created.
    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.
    comment str
    Any comments to include about the traffic policy.
    id str
    The ID that Amazon Route 53 assigned to the traffic policy when it was created.
    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.
    comment String
    Any comments to include about the traffic policy.
    id String
    The ID that Amazon Route 53 assigned to the traffic policy when it was created.
    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

    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