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.ListTrafficPolicyVersions

Contents

Description

Gets information about all of the versions for a specified traffic policy.

Traffic policy versions are listed in numerical order by VersionNumber .

Synopsis

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:

  • 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 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 - 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 - Specify the value of Id of 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

Eq ListTrafficPolicyVersions Source # 
Data ListTrafficPolicyVersions Source # 

Methods

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

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

toConstr :: ListTrafficPolicyVersions -> Constr #

dataTypeOf :: ListTrafficPolicyVersions -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTrafficPolicyVersions Source # 
Show ListTrafficPolicyVersions Source # 
Generic ListTrafficPolicyVersions Source # 
Hashable ListTrafficPolicyVersions Source # 
NFData ListTrafficPolicyVersions Source # 
AWSRequest ListTrafficPolicyVersions Source # 
ToHeaders ListTrafficPolicyVersions Source # 
ToPath ListTrafficPolicyVersions Source # 
ToQuery ListTrafficPolicyVersions Source # 
type Rep ListTrafficPolicyVersions Source # 
type Rep ListTrafficPolicyVersions = D1 * (MetaData "ListTrafficPolicyVersions" "Network.AWS.Route53.ListTrafficPolicyVersions" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "ListTrafficPolicyVersions'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltpvMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltpvTrafficPolicyVersionMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ltpvId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs ListTrafficPolicyVersions Source # 

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 #

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 one TrafficPolicy element 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 another ListTrafficPolicyVersions request and specifying the value of NextMarker in the marker parameter.
  • ltpvrsTrafficPolicyVersionMarker - 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 - The value that you specified for the maxitems parameter in the ListTrafficPolicyVersions request that produced the current response.

data ListTrafficPolicyVersionsResponse Source #

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

See: listTrafficPolicyVersionsResponse smart constructor.

Instances

Eq ListTrafficPolicyVersionsResponse Source # 
Data ListTrafficPolicyVersionsResponse Source # 

Methods

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

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

toConstr :: ListTrafficPolicyVersionsResponse -> Constr #

dataTypeOf :: ListTrafficPolicyVersionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListTrafficPolicyVersionsResponse Source # 
Show ListTrafficPolicyVersionsResponse Source # 
Generic ListTrafficPolicyVersionsResponse Source # 
NFData ListTrafficPolicyVersionsResponse Source # 
type Rep ListTrafficPolicyVersionsResponse Source # 
type Rep ListTrafficPolicyVersionsResponse = D1 * (MetaData "ListTrafficPolicyVersionsResponse" "Network.AWS.Route53.ListTrafficPolicyVersions" "amazonka-route53-1.6.0-Ak5sZypnFS3AFXHlAYIveI" False) (C1 * (MetaCons "ListTrafficPolicyVersionsResponse'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_ltpvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_ltpvrsTrafficPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [TrafficPolicy]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltpvrsIsTruncated") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)) ((:*:) * (S1 * (MetaSel (Just Symbol "_ltpvrsTrafficPolicyVersionMarker") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ltpvrsMaxItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))))

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