amazonka-route53-1.4.0: Amazon Route 53 SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Gets information about the latest version for every traffic policy that is associated with the current AWS account. To get the information, send a GET request to the '/Route 53 API version/trafficpolicy' resource.

Amazon Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policies, you can use the maxitems parameter to list them in groups of up to 100.

The response includes three values that help you navigate from one group of maxitems traffic policies to the next:

  • IsTruncated
  • TrafficPolicyIdMarker
  • MaxItems


Creating a Request

listTrafficPolicies :: ListTrafficPolicies Source

Creates a value of ListTrafficPolicies with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

ltpTrafficPolicyIdMarker :: Lens' ListTrafficPolicies (Maybe Text) Source

For your first request to ListTrafficPolicies, do not include the TrafficPolicyIdMarker parameter.

If you have more traffic policies than the value of MaxItems, ListTrafficPolicies returns only the first MaxItems traffic policies. To get the next group of MaxItems policies, submit another request to ListTrafficPolicies. For the value of TrafficPolicyIdMarker, specify the value of the TrafficPolicyIdMarker element that was returned in the previous response.

Policies are listed in the order in which they were created.

ltpMaxItems :: Lens' ListTrafficPolicies (Maybe Text) Source

The maximum number of traffic policies to be included in the response body for this request. If you have more than MaxItems traffic policies, the value of the IsTruncated element in the response is true, and the value of the TrafficPolicyIdMarker element is the ID of the first traffic policy in the next group of MaxItems traffic policies.

Destructuring the Response

Response Lenses

ltprsTrafficPolicySummaries :: Lens' ListTrafficPoliciesResponse [TrafficPolicySummary] Source

A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current AWS account.

ltprsIsTruncated :: Lens' ListTrafficPoliciesResponse Bool Source

A flag that indicates whether there are more traffic policies to be listed. If the response was truncated, you can get the next group of MaxItems traffic policies by calling ListTrafficPolicies again and specifying the value of the TrafficPolicyIdMarker element in the TrafficPolicyIdMarker request parameter.

Valid Values: true | false

ltprsTrafficPolicyIdMarker :: Lens' ListTrafficPoliciesResponse Text Source

If the value of IsTruncated is true, TrafficPolicyIdMarker is the ID of the first traffic policy in the next group of MaxItems traffic policies.

ltprsMaxItems :: Lens' ListTrafficPoliciesResponse Text Source

The value that you specified for the MaxItems parameter in the call to ListTrafficPolicies that produced the current response.