Skip to content

Update Traffic Policy Instance

route53_update_traffic_policy_instance R Documentation

After you submit a UpdateTrafficPolicyInstance request, there's a brief delay while RouteĀ 53 creates the resource record sets that are specified in the traffic policy definition

Description

After you submit a update_traffic_policy_instance request, there's a brief delay while RouteĀ 53 creates the resource record sets that are specified in the traffic policy definition. Use get_traffic_policy_instance with the id of updated traffic policy instance confirm that the update_traffic_policy_instance request completed successfully. For more information, see the State response element.

Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Route 53 performs the following operations:

  1. Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant the differences are between the existing resource record sets and the new resource record sets.

  2. When all of the new resource record sets have been created, Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.

  3. Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.

Usage

route53_update_traffic_policy_instance(Id, TTL, TrafficPolicyId,
  TrafficPolicyVersion)

Arguments

Id

[required] The ID of the traffic policy instance that you want to update.

TTL

[required] The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.

TrafficPolicyId

[required] The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

TrafficPolicyVersion

[required] The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

Value

A list with the following syntax:

list(
  TrafficPolicyInstance = list(
    Id = "string",
    HostedZoneId = "string",
    Name = "string",
    TTL = 123,
    State = "string",
    Message = "string",
    TrafficPolicyId = "string",
    TrafficPolicyVersion = 123,
    TrafficPolicyType = "SOA"|"A"|"TXT"|"NS"|"CNAME"|"MX"|"NAPTR"|"PTR"|"SRV"|"SPF"|"AAAA"|"CAA"|"DS"
  )
)

Request syntax

svc$update_traffic_policy_instance(
  Id = "string",
  TTL = 123,
  TrafficPolicyId = "string",
  TrafficPolicyVersion = 123
)