amazonka-route53-1.6.0: Amazon Route 53 SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Route53.ListTrafficPolicies

Contents

Description

Gets information about the latest version for every traffic policy that is associated with the current AWS account. Policies are listed in the order in which they were created.

Synopsis

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:

  • ltpTrafficPolicyIdMarker - (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.
  • ltpMaxItems - (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 Amazon Route 53 will return if you submit another 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 AWS account.

See: listTrafficPolicies smart constructor.

Instances

Eq ListTrafficPolicies Source # 
Data ListTrafficPolicies Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTrafficPolicies -> c ListTrafficPolicies #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTrafficPolicies #

toConstr :: ListTrafficPolicies -> Constr #

dataTypeOf :: ListTrafficPolicies -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListTrafficPolicies) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTrafficPolicies) #

gmapT :: (forall b. Data b => b -> b) -> ListTrafficPolicies -> ListTrafficPolicies #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTrafficPolicies -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTrafficPolicies -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTrafficPolicies -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTrafficPolicies -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTrafficPolicies -> m ListTrafficPolicies #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTrafficPolicies -> m ListTrafficPolicies #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTrafficPolicies -> m ListTrafficPolicies #

Read ListTrafficPolicies Source # 
Show ListTrafficPolicies Source # 
Generic ListTrafficPolicies Source # 
Hashable ListTrafficPolicies Source # 
NFData ListTrafficPolicies Source # 

Methods

rnf :: ListTrafficPolicies -> () #

AWSRequest ListTrafficPolicies Source # 
ToHeaders ListTrafficPolicies Source # 
ToPath ListTrafficPolicies Source # 
ToQuery ListTrafficPolicies Source # 
type Rep ListTrafficPolicies Source # 
type Rep ListTrafficPolicies = D1 * (MetaData "ListTrafficPolicies" "Network.AWS.Route53.ListTrafficPolicies" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "ListTrafficPolicies'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltpTrafficPolicyIdMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ltpMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))
type Rs ListTrafficPolicies Source # 

Request Lenses

ltpTrafficPolicyIdMarker :: 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.

ltpMaxItems :: 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 Amazon Route 53 will return if you submit another request.

Destructuring the Response

listTrafficPoliciesResponse Source #

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

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

  • ltprsResponseStatus - -- | The response status code.
  • ltprsTrafficPolicySummaries - A list that contains one TrafficPolicySummary element for each traffic policy that was created by the current AWS account.
  • ltprsIsTruncated - 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.
  • ltprsTrafficPolicyIdMarker - 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 - The value that you specified for the MaxItems parameter in the ListTrafficPolicies request that produced the current response.

data ListTrafficPoliciesResponse Source #

A complex type that contains the response information for the request.

See: listTrafficPoliciesResponse smart constructor.

Instances

Eq ListTrafficPoliciesResponse Source # 
Data ListTrafficPoliciesResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListTrafficPoliciesResponse -> c ListTrafficPoliciesResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListTrafficPoliciesResponse #

toConstr :: ListTrafficPoliciesResponse -> Constr #

dataTypeOf :: ListTrafficPoliciesResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListTrafficPoliciesResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListTrafficPoliciesResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListTrafficPoliciesResponse -> ListTrafficPoliciesResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListTrafficPoliciesResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListTrafficPoliciesResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListTrafficPoliciesResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListTrafficPoliciesResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListTrafficPoliciesResponse -> m ListTrafficPoliciesResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTrafficPoliciesResponse -> m ListTrafficPoliciesResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListTrafficPoliciesResponse -> m ListTrafficPoliciesResponse #

Read ListTrafficPoliciesResponse Source # 
Show ListTrafficPoliciesResponse Source # 
Generic ListTrafficPoliciesResponse Source # 
NFData ListTrafficPoliciesResponse Source # 
type Rep ListTrafficPoliciesResponse Source # 
type Rep ListTrafficPoliciesResponse = D1 * (MetaData "ListTrafficPoliciesResponse" "Network.AWS.Route53.ListTrafficPolicies" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "ListTrafficPoliciesResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ltprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_ltprsTrafficPolicySummaries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [TrafficPolicySummary]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltprsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltprsTrafficPolicyIdMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ltprsMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))

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 traffic policies by submitting another ListTrafficPolicies request and specifying the value of TrafficPolicyIdMarker in the TrafficPolicyIdMarker request parameter.

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 ListTrafficPolicies request that produced the current response.