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 all of the versions for a specified traffic policy. ListTrafficPolicyVersions lists only versions that have not been deleted.

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 maxitemsmaxitems traffic policies to the next:

  • IsTruncated
  • TrafficPolicyVersionMarker
  • MaxItems


Creating a Request

listTrafficPolicyVersions Source

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

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

Request Lenses

ltpvMaxItems :: Lens' ListTrafficPolicyVersions (Maybe Text) Source

The maximum number of traffic policy versions that you want Amazon Route 53 to include in the response body for this request. If the specified traffic policy has more than MaxItems versions, the value of the IsTruncated element in the response is true, and the value of the TrafficPolicyVersionMarker element is the ID of the first version in the next group of MaxItems traffic policy versions.

ltpvTrafficPolicyVersionMarker :: Lens' ListTrafficPolicyVersions (Maybe Text) Source

For your first request to ListTrafficPolicyVersions, do not include the TrafficPolicyVersionMarker parameter.

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

Traffic policy versions are listed in sequential order.

ltpvId :: Lens' ListTrafficPolicyVersions Text Source

Specify the value of Id of the traffic policy for which you want to list all versions.

Destructuring the Response

Response Lenses

ltpvrsTrafficPolicies :: Lens' ListTrafficPolicyVersionsResponse [TrafficPolicy] Source

A list that contains one TrafficPolicy element for each traffic policy version that is associated with the specified traffic policy.

ltpvrsIsTruncated :: Lens' ListTrafficPolicyVersionsResponse 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 ListTrafficPolicyVersions again and specifying the value of the NextMarker element in the marker parameter.

Valid Values: true | false

ltpvrsTrafficPolicyVersionMarker :: Lens' ListTrafficPolicyVersionsResponse Text Source

If IsTruncated is true, the value of TrafficPolicyVersionMarker identifies the first traffic policy in the next group of MaxItems traffic policies. Call ListTrafficPolicyVersions again and specify the value of TrafficPolicyVersionMarker in the TrafficPolicyVersionMarker request parameter.

This element is present only if IsTruncated is true.

ltpvrsMaxItems :: Lens' ListTrafficPolicyVersionsResponse Text Source

The value that you specified for the maxitems parameter in the call to ListTrafficPolicyVersions that produced the current response.