Copyright | (c) 2013-2021 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 |
Gets information about the latest version for every traffic policy that is associated with the current Amazon Web Services account. Policies are listed in the order that they were created in.
For information about how of deleting a traffic policy affects the
response from ListTrafficPolicies
, see
DeleteTrafficPolicy.
Synopsis
- data ListTrafficPolicies = ListTrafficPolicies' {}
- newListTrafficPolicies :: ListTrafficPolicies
- listTrafficPolicies_trafficPolicyIdMarker :: Lens' ListTrafficPolicies (Maybe Text)
- listTrafficPolicies_maxItems :: Lens' ListTrafficPolicies (Maybe Text)
- data ListTrafficPoliciesResponse = ListTrafficPoliciesResponse' {}
- newListTrafficPoliciesResponse :: Int -> Bool -> Text -> Text -> ListTrafficPoliciesResponse
- listTrafficPoliciesResponse_httpStatus :: Lens' ListTrafficPoliciesResponse Int
- listTrafficPoliciesResponse_trafficPolicySummaries :: Lens' ListTrafficPoliciesResponse [TrafficPolicySummary]
- listTrafficPoliciesResponse_isTruncated :: Lens' ListTrafficPoliciesResponse Bool
- listTrafficPoliciesResponse_trafficPolicyIdMarker :: Lens' ListTrafficPoliciesResponse Text
- listTrafficPoliciesResponse_maxItems :: Lens' ListTrafficPoliciesResponse Text
Creating a Request
data ListTrafficPolicies Source #
A complex type that contains the information about the request to list the traffic policies that are associated with the current Amazon Web Services account.
See: newListTrafficPolicies
smart constructor.
ListTrafficPolicies' | |
|
Instances
newListTrafficPolicies :: ListTrafficPolicies Source #
Create a value of ListTrafficPolicies
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:trafficPolicyIdMarker:ListTrafficPolicies'
, listTrafficPolicies_trafficPolicyIdMarker
- (Conditional) For your first request to ListTrafficPolicies
, don't
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 policies, submit another request to
ListTrafficPolicies
. For the value of TrafficPolicyIdMarker
, specify
the value of TrafficPolicyIdMarker
that was returned in the previous
response.
$sel:maxItems:ListTrafficPolicies'
, listTrafficPolicies_maxItems
- (Optional) The maximum number of traffic policies that you want Amazon
Route 53 to return in response to this request. If you have more than
MaxItems
traffic policies, the value of IsTruncated
in the response
is true
, and the value of TrafficPolicyIdMarker
is the ID of the
first traffic policy that Route 53 will return if you submit another
request.
Request Lenses
listTrafficPolicies_trafficPolicyIdMarker :: Lens' ListTrafficPolicies (Maybe Text) Source #
(Conditional) For your first request to ListTrafficPolicies
, don't
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 policies, submit another request to
ListTrafficPolicies
. For the value of TrafficPolicyIdMarker
, specify
the value of TrafficPolicyIdMarker
that was returned in the previous
response.
listTrafficPolicies_maxItems :: Lens' ListTrafficPolicies (Maybe Text) Source #
(Optional) The maximum number of traffic policies that you want Amazon
Route 53 to return in response to this request. If you have more than
MaxItems
traffic policies, the value of IsTruncated
in the response
is true
, and the value of TrafficPolicyIdMarker
is the ID of the
first traffic policy that Route 53 will return if you submit another
request.
Destructuring the Response
data ListTrafficPoliciesResponse Source #
A complex type that contains the response information for the request.
See: newListTrafficPoliciesResponse
smart constructor.
ListTrafficPoliciesResponse' | |
|
Instances
newListTrafficPoliciesResponse Source #
:: Int | |
-> Bool | |
-> Text | |
-> Text | |
-> ListTrafficPoliciesResponse |
Create a value of ListTrafficPoliciesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:ListTrafficPoliciesResponse'
, listTrafficPoliciesResponse_httpStatus
- The response's http status code.
$sel:trafficPolicySummaries:ListTrafficPoliciesResponse'
, listTrafficPoliciesResponse_trafficPolicySummaries
- A list that contains one TrafficPolicySummary
element for each traffic
policy that was created by the current Amazon Web Services account.
$sel:isTruncated:ListTrafficPoliciesResponse'
, listTrafficPoliciesResponse_isTruncated
- 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 ListTrafficPolicies
request and
specifying the value of TrafficPolicyIdMarker
in the
TrafficPolicyIdMarker
request parameter.
$sel:trafficPolicyIdMarker:ListTrafficPolicies'
, listTrafficPoliciesResponse_trafficPolicyIdMarker
- If the value of IsTruncated
is true
, TrafficPolicyIdMarker
is the
ID of the first traffic policy in the next group of MaxItems
traffic
policies.
$sel:maxItems:ListTrafficPolicies'
, listTrafficPoliciesResponse_maxItems
- The value that you specified for the MaxItems
parameter in the
ListTrafficPolicies
request that produced the current response.
Response Lenses
listTrafficPoliciesResponse_httpStatus :: Lens' ListTrafficPoliciesResponse Int Source #
The response's http status code.
listTrafficPoliciesResponse_trafficPolicySummaries :: Lens' ListTrafficPoliciesResponse [TrafficPolicySummary] Source #
A list that contains one TrafficPolicySummary
element for each traffic
policy that was created by the current Amazon Web Services account.
listTrafficPoliciesResponse_isTruncated :: 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
traffic policies by submitting another ListTrafficPolicies
request and
specifying the value of TrafficPolicyIdMarker
in the
TrafficPolicyIdMarker
request parameter.
listTrafficPoliciesResponse_trafficPolicyIdMarker :: 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.
listTrafficPoliciesResponse_maxItems :: Lens' ListTrafficPoliciesResponse Text Source #
The value that you specified for the MaxItems
parameter in the
ListTrafficPolicies
request that produced the current response.