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.
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 dictionarydata "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.
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.
- 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
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.
- 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
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.
- 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
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.
- 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
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.
- 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
We recommend new projects start with resources from the AWS provider.
published on Monday, Sep 28, 2026 by Pulumi