| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Route53.ListTrafficPolicyVersions
Description
Gets information about all of the versions for a specified traffic policy.
Traffic policy versions are listed in numerical order by VersionNumber .
Synopsis
- listTrafficPolicyVersions :: Text -> ListTrafficPolicyVersions
- data ListTrafficPolicyVersions
- ltpvMaxItems :: Lens' ListTrafficPolicyVersions (Maybe Text)
- ltpvTrafficPolicyVersionMarker :: Lens' ListTrafficPolicyVersions (Maybe Text)
- ltpvId :: Lens' ListTrafficPolicyVersions Text
- listTrafficPolicyVersionsResponse :: Int -> Bool -> Text -> Text -> ListTrafficPolicyVersionsResponse
- data ListTrafficPolicyVersionsResponse
- ltpvrsResponseStatus :: Lens' ListTrafficPolicyVersionsResponse Int
- ltpvrsTrafficPolicies :: Lens' ListTrafficPolicyVersionsResponse [TrafficPolicy]
- ltpvrsIsTruncated :: Lens' ListTrafficPolicyVersionsResponse Bool
- ltpvrsTrafficPolicyVersionMarker :: Lens' ListTrafficPolicyVersionsResponse Text
- ltpvrsMaxItems :: Lens' ListTrafficPolicyVersionsResponse Text
Creating a Request
listTrafficPolicyVersions Source #
Arguments
| :: Text | |
| -> ListTrafficPolicyVersions |
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:
ltpvMaxItems- 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 thanMaxItemsversions, the value ofIsTruncatedin the response istrue, and the value of theTrafficPolicyVersionMarkerelement is the ID of the first version that Amazon Route 53 will return if you submit another request.ltpvTrafficPolicyVersionMarker- For your first request toListTrafficPolicyVersions, don't include theTrafficPolicyVersionMarkerparameter. If you have more traffic policy versions than the value ofMaxItems,ListTrafficPolicyVersionsreturns only the first group ofMaxItemsversions. To get more traffic policy versions, submit anotherListTrafficPolicyVersionsrequest. For the value ofTrafficPolicyVersionMarker, specify the value ofTrafficPolicyVersionMarkerin the previous response.ltpvId- Specify the value ofIdof the traffic policy for which you want to list all versions.
data ListTrafficPolicyVersions Source #
A complex type that contains the information about the request to list your traffic policies.
See: listTrafficPolicyVersions smart constructor.
Instances
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 IsTruncated in the response is true , and the value of the TrafficPolicyVersionMarker element is the ID of the first version that Amazon Route 53 will return if you submit another request.
ltpvTrafficPolicyVersionMarker :: Lens' ListTrafficPolicyVersions (Maybe Text) Source #
For your first request to ListTrafficPolicyVersions , don't 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 more traffic policy versions, submit another ListTrafficPolicyVersions request. For the value of TrafficPolicyVersionMarker , specify the value of TrafficPolicyVersionMarker in the previous response.
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
listTrafficPolicyVersionsResponse Source #
Arguments
| :: Int | |
| -> Bool | |
| -> Text | |
| -> Text | |
| -> ListTrafficPolicyVersionsResponse |
Creates a value of ListTrafficPolicyVersionsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltpvrsResponseStatus- -- | The response status code.ltpvrsTrafficPolicies- A list that contains oneTrafficPolicyelement for each traffic policy version that is associated with the specified traffic policy.ltpvrsIsTruncated- 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 traffic policies by submitting anotherListTrafficPolicyVersionsrequest and specifying the value ofNextMarkerin themarkerparameter.ltpvrsTrafficPolicyVersionMarker- IfIsTruncatedistrue, the value ofTrafficPolicyVersionMarkeridentifies the first traffic policy that Amazon Route 53 will return if you submit another request. CallListTrafficPolicyVersionsagain and specify the value ofTrafficPolicyVersionMarkerin theTrafficPolicyVersionMarkerrequest parameter. This element is present only ifIsTruncatedistrue.ltpvrsMaxItems- The value that you specified for themaxitemsparameter in theListTrafficPolicyVersionsrequest that produced the current response.
data ListTrafficPolicyVersionsResponse Source #
A complex type that contains the response information for the request.
See: listTrafficPolicyVersionsResponse smart constructor.
Instances
Response Lenses
ltpvrsResponseStatus :: Lens' ListTrafficPolicyVersionsResponse Int Source #
- - | The response status code.
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 traffic policies by submitting another ListTrafficPolicyVersions request and specifying the value of NextMarker in the marker parameter.
ltpvrsTrafficPolicyVersionMarker :: Lens' ListTrafficPolicyVersionsResponse Text Source #
If IsTruncated is true , the value of TrafficPolicyVersionMarker identifies the first traffic policy that Amazon Route 53 will return if you submit another request. 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 ListTrafficPolicyVersions request that produced the current response.