{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Route53.ListTrafficPolicyInstancesByPolicy
(
ListTrafficPolicyInstancesByPolicy (..),
newListTrafficPolicyInstancesByPolicy,
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceTypeMarker,
listTrafficPolicyInstancesByPolicy_maxItems,
listTrafficPolicyInstancesByPolicy_hostedZoneIdMarker,
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceNameMarker,
listTrafficPolicyInstancesByPolicy_trafficPolicyId,
listTrafficPolicyInstancesByPolicy_trafficPolicyVersion,
ListTrafficPolicyInstancesByPolicyResponse (..),
newListTrafficPolicyInstancesByPolicyResponse,
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceTypeMarker,
listTrafficPolicyInstancesByPolicyResponse_hostedZoneIdMarker,
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceNameMarker,
listTrafficPolicyInstancesByPolicyResponse_httpStatus,
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstances,
listTrafficPolicyInstancesByPolicyResponse_isTruncated,
listTrafficPolicyInstancesByPolicyResponse_maxItems,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.Route53.Types
data ListTrafficPolicyInstancesByPolicy = ListTrafficPolicyInstancesByPolicy'
{
ListTrafficPolicyInstancesByPolicy -> Maybe RRType
trafficPolicyInstanceTypeMarker :: Prelude.Maybe RRType,
ListTrafficPolicyInstancesByPolicy -> Maybe Text
maxItems :: Prelude.Maybe Prelude.Text,
ListTrafficPolicyInstancesByPolicy -> Maybe ResourceId
hostedZoneIdMarker :: Prelude.Maybe ResourceId,
ListTrafficPolicyInstancesByPolicy -> Maybe Text
trafficPolicyInstanceNameMarker :: Prelude.Maybe Prelude.Text,
ListTrafficPolicyInstancesByPolicy -> Text
trafficPolicyId :: Prelude.Text,
ListTrafficPolicyInstancesByPolicy -> Natural
trafficPolicyVersion :: Prelude.Natural
}
deriving (ListTrafficPolicyInstancesByPolicy
-> ListTrafficPolicyInstancesByPolicy -> Bool
(ListTrafficPolicyInstancesByPolicy
-> ListTrafficPolicyInstancesByPolicy -> Bool)
-> (ListTrafficPolicyInstancesByPolicy
-> ListTrafficPolicyInstancesByPolicy -> Bool)
-> Eq ListTrafficPolicyInstancesByPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTrafficPolicyInstancesByPolicy
-> ListTrafficPolicyInstancesByPolicy -> Bool
$c/= :: ListTrafficPolicyInstancesByPolicy
-> ListTrafficPolicyInstancesByPolicy -> Bool
== :: ListTrafficPolicyInstancesByPolicy
-> ListTrafficPolicyInstancesByPolicy -> Bool
$c== :: ListTrafficPolicyInstancesByPolicy
-> ListTrafficPolicyInstancesByPolicy -> Bool
Prelude.Eq, ReadPrec [ListTrafficPolicyInstancesByPolicy]
ReadPrec ListTrafficPolicyInstancesByPolicy
Int -> ReadS ListTrafficPolicyInstancesByPolicy
ReadS [ListTrafficPolicyInstancesByPolicy]
(Int -> ReadS ListTrafficPolicyInstancesByPolicy)
-> ReadS [ListTrafficPolicyInstancesByPolicy]
-> ReadPrec ListTrafficPolicyInstancesByPolicy
-> ReadPrec [ListTrafficPolicyInstancesByPolicy]
-> Read ListTrafficPolicyInstancesByPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTrafficPolicyInstancesByPolicy]
$creadListPrec :: ReadPrec [ListTrafficPolicyInstancesByPolicy]
readPrec :: ReadPrec ListTrafficPolicyInstancesByPolicy
$creadPrec :: ReadPrec ListTrafficPolicyInstancesByPolicy
readList :: ReadS [ListTrafficPolicyInstancesByPolicy]
$creadList :: ReadS [ListTrafficPolicyInstancesByPolicy]
readsPrec :: Int -> ReadS ListTrafficPolicyInstancesByPolicy
$creadsPrec :: Int -> ReadS ListTrafficPolicyInstancesByPolicy
Prelude.Read, Int -> ListTrafficPolicyInstancesByPolicy -> ShowS
[ListTrafficPolicyInstancesByPolicy] -> ShowS
ListTrafficPolicyInstancesByPolicy -> String
(Int -> ListTrafficPolicyInstancesByPolicy -> ShowS)
-> (ListTrafficPolicyInstancesByPolicy -> String)
-> ([ListTrafficPolicyInstancesByPolicy] -> ShowS)
-> Show ListTrafficPolicyInstancesByPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTrafficPolicyInstancesByPolicy] -> ShowS
$cshowList :: [ListTrafficPolicyInstancesByPolicy] -> ShowS
show :: ListTrafficPolicyInstancesByPolicy -> String
$cshow :: ListTrafficPolicyInstancesByPolicy -> String
showsPrec :: Int -> ListTrafficPolicyInstancesByPolicy -> ShowS
$cshowsPrec :: Int -> ListTrafficPolicyInstancesByPolicy -> ShowS
Prelude.Show, (forall x.
ListTrafficPolicyInstancesByPolicy
-> Rep ListTrafficPolicyInstancesByPolicy x)
-> (forall x.
Rep ListTrafficPolicyInstancesByPolicy x
-> ListTrafficPolicyInstancesByPolicy)
-> Generic ListTrafficPolicyInstancesByPolicy
forall x.
Rep ListTrafficPolicyInstancesByPolicy x
-> ListTrafficPolicyInstancesByPolicy
forall x.
ListTrafficPolicyInstancesByPolicy
-> Rep ListTrafficPolicyInstancesByPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTrafficPolicyInstancesByPolicy x
-> ListTrafficPolicyInstancesByPolicy
$cfrom :: forall x.
ListTrafficPolicyInstancesByPolicy
-> Rep ListTrafficPolicyInstancesByPolicy x
Prelude.Generic)
newListTrafficPolicyInstancesByPolicy ::
Prelude.Text ->
Prelude.Natural ->
ListTrafficPolicyInstancesByPolicy
newListTrafficPolicyInstancesByPolicy :: Text -> Natural -> ListTrafficPolicyInstancesByPolicy
newListTrafficPolicyInstancesByPolicy
Text
pTrafficPolicyId_
Natural
pTrafficPolicyVersion_ =
ListTrafficPolicyInstancesByPolicy' :: Maybe RRType
-> Maybe Text
-> Maybe ResourceId
-> Maybe Text
-> Text
-> Natural
-> ListTrafficPolicyInstancesByPolicy
ListTrafficPolicyInstancesByPolicy'
{ $sel:trafficPolicyInstanceTypeMarker:ListTrafficPolicyInstancesByPolicy' :: Maybe RRType
trafficPolicyInstanceTypeMarker =
Maybe RRType
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListTrafficPolicyInstancesByPolicy' :: Maybe Text
maxItems = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hostedZoneIdMarker:ListTrafficPolicyInstancesByPolicy' :: Maybe ResourceId
hostedZoneIdMarker = Maybe ResourceId
forall a. Maybe a
Prelude.Nothing,
$sel:trafficPolicyInstanceNameMarker:ListTrafficPolicyInstancesByPolicy' :: Maybe Text
trafficPolicyInstanceNameMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:trafficPolicyId:ListTrafficPolicyInstancesByPolicy' :: Text
trafficPolicyId = Text
pTrafficPolicyId_,
$sel:trafficPolicyVersion:ListTrafficPolicyInstancesByPolicy' :: Natural
trafficPolicyVersion =
Natural
pTrafficPolicyVersion_
}
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceTypeMarker :: Lens.Lens' ListTrafficPolicyInstancesByPolicy (Prelude.Maybe RRType)
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceTypeMarker :: (Maybe RRType -> f (Maybe RRType))
-> ListTrafficPolicyInstancesByPolicy
-> f ListTrafficPolicyInstancesByPolicy
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceTypeMarker = (ListTrafficPolicyInstancesByPolicy -> Maybe RRType)
-> (ListTrafficPolicyInstancesByPolicy
-> Maybe RRType -> ListTrafficPolicyInstancesByPolicy)
-> Lens
ListTrafficPolicyInstancesByPolicy
ListTrafficPolicyInstancesByPolicy
(Maybe RRType)
(Maybe RRType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicy' {Maybe RRType
trafficPolicyInstanceTypeMarker :: Maybe RRType
$sel:trafficPolicyInstanceTypeMarker:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe RRType
trafficPolicyInstanceTypeMarker} -> Maybe RRType
trafficPolicyInstanceTypeMarker) (\s :: ListTrafficPolicyInstancesByPolicy
s@ListTrafficPolicyInstancesByPolicy' {} Maybe RRType
a -> ListTrafficPolicyInstancesByPolicy
s {$sel:trafficPolicyInstanceTypeMarker:ListTrafficPolicyInstancesByPolicy' :: Maybe RRType
trafficPolicyInstanceTypeMarker = Maybe RRType
a} :: ListTrafficPolicyInstancesByPolicy)
listTrafficPolicyInstancesByPolicy_maxItems :: Lens.Lens' ListTrafficPolicyInstancesByPolicy (Prelude.Maybe Prelude.Text)
listTrafficPolicyInstancesByPolicy_maxItems :: (Maybe Text -> f (Maybe Text))
-> ListTrafficPolicyInstancesByPolicy
-> f ListTrafficPolicyInstancesByPolicy
listTrafficPolicyInstancesByPolicy_maxItems = (ListTrafficPolicyInstancesByPolicy -> Maybe Text)
-> (ListTrafficPolicyInstancesByPolicy
-> Maybe Text -> ListTrafficPolicyInstancesByPolicy)
-> Lens
ListTrafficPolicyInstancesByPolicy
ListTrafficPolicyInstancesByPolicy
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicy' {Maybe Text
maxItems :: Maybe Text
$sel:maxItems:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe Text
maxItems} -> Maybe Text
maxItems) (\s :: ListTrafficPolicyInstancesByPolicy
s@ListTrafficPolicyInstancesByPolicy' {} Maybe Text
a -> ListTrafficPolicyInstancesByPolicy
s {$sel:maxItems:ListTrafficPolicyInstancesByPolicy' :: Maybe Text
maxItems = Maybe Text
a} :: ListTrafficPolicyInstancesByPolicy)
listTrafficPolicyInstancesByPolicy_hostedZoneIdMarker :: Lens.Lens' ListTrafficPolicyInstancesByPolicy (Prelude.Maybe ResourceId)
listTrafficPolicyInstancesByPolicy_hostedZoneIdMarker :: (Maybe ResourceId -> f (Maybe ResourceId))
-> ListTrafficPolicyInstancesByPolicy
-> f ListTrafficPolicyInstancesByPolicy
listTrafficPolicyInstancesByPolicy_hostedZoneIdMarker = (ListTrafficPolicyInstancesByPolicy -> Maybe ResourceId)
-> (ListTrafficPolicyInstancesByPolicy
-> Maybe ResourceId -> ListTrafficPolicyInstancesByPolicy)
-> Lens
ListTrafficPolicyInstancesByPolicy
ListTrafficPolicyInstancesByPolicy
(Maybe ResourceId)
(Maybe ResourceId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicy' {Maybe ResourceId
hostedZoneIdMarker :: Maybe ResourceId
$sel:hostedZoneIdMarker:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe ResourceId
hostedZoneIdMarker} -> Maybe ResourceId
hostedZoneIdMarker) (\s :: ListTrafficPolicyInstancesByPolicy
s@ListTrafficPolicyInstancesByPolicy' {} Maybe ResourceId
a -> ListTrafficPolicyInstancesByPolicy
s {$sel:hostedZoneIdMarker:ListTrafficPolicyInstancesByPolicy' :: Maybe ResourceId
hostedZoneIdMarker = Maybe ResourceId
a} :: ListTrafficPolicyInstancesByPolicy)
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceNameMarker :: Lens.Lens' ListTrafficPolicyInstancesByPolicy (Prelude.Maybe Prelude.Text)
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceNameMarker :: (Maybe Text -> f (Maybe Text))
-> ListTrafficPolicyInstancesByPolicy
-> f ListTrafficPolicyInstancesByPolicy
listTrafficPolicyInstancesByPolicy_trafficPolicyInstanceNameMarker = (ListTrafficPolicyInstancesByPolicy -> Maybe Text)
-> (ListTrafficPolicyInstancesByPolicy
-> Maybe Text -> ListTrafficPolicyInstancesByPolicy)
-> Lens
ListTrafficPolicyInstancesByPolicy
ListTrafficPolicyInstancesByPolicy
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicy' {Maybe Text
trafficPolicyInstanceNameMarker :: Maybe Text
$sel:trafficPolicyInstanceNameMarker:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe Text
trafficPolicyInstanceNameMarker} -> Maybe Text
trafficPolicyInstanceNameMarker) (\s :: ListTrafficPolicyInstancesByPolicy
s@ListTrafficPolicyInstancesByPolicy' {} Maybe Text
a -> ListTrafficPolicyInstancesByPolicy
s {$sel:trafficPolicyInstanceNameMarker:ListTrafficPolicyInstancesByPolicy' :: Maybe Text
trafficPolicyInstanceNameMarker = Maybe Text
a} :: ListTrafficPolicyInstancesByPolicy)
listTrafficPolicyInstancesByPolicy_trafficPolicyId :: Lens.Lens' ListTrafficPolicyInstancesByPolicy Prelude.Text
listTrafficPolicyInstancesByPolicy_trafficPolicyId :: (Text -> f Text)
-> ListTrafficPolicyInstancesByPolicy
-> f ListTrafficPolicyInstancesByPolicy
listTrafficPolicyInstancesByPolicy_trafficPolicyId = (ListTrafficPolicyInstancesByPolicy -> Text)
-> (ListTrafficPolicyInstancesByPolicy
-> Text -> ListTrafficPolicyInstancesByPolicy)
-> Lens
ListTrafficPolicyInstancesByPolicy
ListTrafficPolicyInstancesByPolicy
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicy' {Text
trafficPolicyId :: Text
$sel:trafficPolicyId:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Text
trafficPolicyId} -> Text
trafficPolicyId) (\s :: ListTrafficPolicyInstancesByPolicy
s@ListTrafficPolicyInstancesByPolicy' {} Text
a -> ListTrafficPolicyInstancesByPolicy
s {$sel:trafficPolicyId:ListTrafficPolicyInstancesByPolicy' :: Text
trafficPolicyId = Text
a} :: ListTrafficPolicyInstancesByPolicy)
listTrafficPolicyInstancesByPolicy_trafficPolicyVersion :: Lens.Lens' ListTrafficPolicyInstancesByPolicy Prelude.Natural
listTrafficPolicyInstancesByPolicy_trafficPolicyVersion :: (Natural -> f Natural)
-> ListTrafficPolicyInstancesByPolicy
-> f ListTrafficPolicyInstancesByPolicy
listTrafficPolicyInstancesByPolicy_trafficPolicyVersion = (ListTrafficPolicyInstancesByPolicy -> Natural)
-> (ListTrafficPolicyInstancesByPolicy
-> Natural -> ListTrafficPolicyInstancesByPolicy)
-> Lens
ListTrafficPolicyInstancesByPolicy
ListTrafficPolicyInstancesByPolicy
Natural
Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicy' {Natural
trafficPolicyVersion :: Natural
$sel:trafficPolicyVersion:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Natural
trafficPolicyVersion} -> Natural
trafficPolicyVersion) (\s :: ListTrafficPolicyInstancesByPolicy
s@ListTrafficPolicyInstancesByPolicy' {} Natural
a -> ListTrafficPolicyInstancesByPolicy
s {$sel:trafficPolicyVersion:ListTrafficPolicyInstancesByPolicy' :: Natural
trafficPolicyVersion = Natural
a} :: ListTrafficPolicyInstancesByPolicy)
instance
Core.AWSRequest
ListTrafficPolicyInstancesByPolicy
where
type
AWSResponse ListTrafficPolicyInstancesByPolicy =
ListTrafficPolicyInstancesByPolicyResponse
request :: ListTrafficPolicyInstancesByPolicy
-> Request ListTrafficPolicyInstancesByPolicy
request = Service
-> ListTrafficPolicyInstancesByPolicy
-> Request ListTrafficPolicyInstancesByPolicy
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListTrafficPolicyInstancesByPolicy
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListTrafficPolicyInstancesByPolicy)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListTrafficPolicyInstancesByPolicy))
-> Logger
-> Service
-> Proxy ListTrafficPolicyInstancesByPolicy
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListTrafficPolicyInstancesByPolicy)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe RRType
-> Maybe ResourceId
-> Maybe Text
-> Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse'
(Maybe RRType
-> Maybe ResourceId
-> Maybe Text
-> Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse)
-> Either String (Maybe RRType)
-> Either
String
(Maybe ResourceId
-> Maybe Text
-> Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe RRType)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TrafficPolicyInstanceTypeMarker")
Either
String
(Maybe ResourceId
-> Maybe Text
-> Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse)
-> Either String (Maybe ResourceId)
-> Either
String
(Maybe Text
-> Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ResourceId)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"HostedZoneIdMarker")
Either
String
(Maybe Text
-> Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TrafficPolicyInstanceNameMarker")
Either
String
(Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse)
-> Either String Int
-> Either
String
([TrafficPolicyInstance]
-> Bool -> Text -> ListTrafficPolicyInstancesByPolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
([TrafficPolicyInstance]
-> Bool -> Text -> ListTrafficPolicyInstancesByPolicyResponse)
-> Either String [TrafficPolicyInstance]
-> Either
String (Bool -> Text -> ListTrafficPolicyInstancesByPolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TrafficPolicyInstances"
Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String [TrafficPolicyInstance])
-> Either String [TrafficPolicyInstance]
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text -> [Node] -> Either String [TrafficPolicyInstance]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"TrafficPolicyInstance"
)
Either
String (Bool -> Text -> ListTrafficPolicyInstancesByPolicyResponse)
-> Either String Bool
-> Either
String (Text -> ListTrafficPolicyInstancesByPolicyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Bool
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"IsTruncated")
Either String (Text -> ListTrafficPolicyInstancesByPolicyResponse)
-> Either String Text
-> Either String ListTrafficPolicyInstancesByPolicyResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"MaxItems")
)
instance
Prelude.Hashable
ListTrafficPolicyInstancesByPolicy
instance
Prelude.NFData
ListTrafficPolicyInstancesByPolicy
instance
Core.ToHeaders
ListTrafficPolicyInstancesByPolicy
where
toHeaders :: ListTrafficPolicyInstancesByPolicy -> ResponseHeaders
toHeaders = ResponseHeaders
-> ListTrafficPolicyInstancesByPolicy -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance
Core.ToPath
ListTrafficPolicyInstancesByPolicy
where
toPath :: ListTrafficPolicyInstancesByPolicy -> ByteString
toPath =
ByteString -> ListTrafficPolicyInstancesByPolicy -> ByteString
forall a b. a -> b -> a
Prelude.const
ByteString
"/2013-04-01/trafficpolicyinstances/trafficpolicy"
instance
Core.ToQuery
ListTrafficPolicyInstancesByPolicy
where
toQuery :: ListTrafficPolicyInstancesByPolicy -> QueryString
toQuery ListTrafficPolicyInstancesByPolicy' {Natural
Maybe Text
Maybe ResourceId
Maybe RRType
Text
trafficPolicyVersion :: Natural
trafficPolicyId :: Text
trafficPolicyInstanceNameMarker :: Maybe Text
hostedZoneIdMarker :: Maybe ResourceId
maxItems :: Maybe Text
trafficPolicyInstanceTypeMarker :: Maybe RRType
$sel:trafficPolicyVersion:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Natural
$sel:trafficPolicyId:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Text
$sel:trafficPolicyInstanceNameMarker:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe Text
$sel:hostedZoneIdMarker:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe ResourceId
$sel:maxItems:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe Text
$sel:trafficPolicyInstanceTypeMarker:ListTrafficPolicyInstancesByPolicy' :: ListTrafficPolicyInstancesByPolicy -> Maybe RRType
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"trafficpolicyinstancetype"
ByteString -> Maybe RRType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe RRType
trafficPolicyInstanceTypeMarker,
ByteString
"maxitems" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maxItems,
ByteString
"hostedzoneid" ByteString -> Maybe ResourceId -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ResourceId
hostedZoneIdMarker,
ByteString
"trafficpolicyinstancename"
ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
trafficPolicyInstanceNameMarker,
ByteString
"id" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
trafficPolicyId,
ByteString
"version" ByteString -> Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Natural
trafficPolicyVersion
]
data ListTrafficPolicyInstancesByPolicyResponse = ListTrafficPolicyInstancesByPolicyResponse'
{
ListTrafficPolicyInstancesByPolicyResponse -> Maybe RRType
trafficPolicyInstanceTypeMarker :: Prelude.Maybe RRType,
ListTrafficPolicyInstancesByPolicyResponse -> Maybe ResourceId
hostedZoneIdMarker :: Prelude.Maybe ResourceId,
ListTrafficPolicyInstancesByPolicyResponse -> Maybe Text
trafficPolicyInstanceNameMarker :: Prelude.Maybe Prelude.Text,
ListTrafficPolicyInstancesByPolicyResponse -> Int
httpStatus :: Prelude.Int,
ListTrafficPolicyInstancesByPolicyResponse
-> [TrafficPolicyInstance]
trafficPolicyInstances :: [TrafficPolicyInstance],
ListTrafficPolicyInstancesByPolicyResponse -> Bool
isTruncated :: Prelude.Bool,
ListTrafficPolicyInstancesByPolicyResponse -> Text
maxItems :: Prelude.Text
}
deriving (ListTrafficPolicyInstancesByPolicyResponse
-> ListTrafficPolicyInstancesByPolicyResponse -> Bool
(ListTrafficPolicyInstancesByPolicyResponse
-> ListTrafficPolicyInstancesByPolicyResponse -> Bool)
-> (ListTrafficPolicyInstancesByPolicyResponse
-> ListTrafficPolicyInstancesByPolicyResponse -> Bool)
-> Eq ListTrafficPolicyInstancesByPolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTrafficPolicyInstancesByPolicyResponse
-> ListTrafficPolicyInstancesByPolicyResponse -> Bool
$c/= :: ListTrafficPolicyInstancesByPolicyResponse
-> ListTrafficPolicyInstancesByPolicyResponse -> Bool
== :: ListTrafficPolicyInstancesByPolicyResponse
-> ListTrafficPolicyInstancesByPolicyResponse -> Bool
$c== :: ListTrafficPolicyInstancesByPolicyResponse
-> ListTrafficPolicyInstancesByPolicyResponse -> Bool
Prelude.Eq, ReadPrec [ListTrafficPolicyInstancesByPolicyResponse]
ReadPrec ListTrafficPolicyInstancesByPolicyResponse
Int -> ReadS ListTrafficPolicyInstancesByPolicyResponse
ReadS [ListTrafficPolicyInstancesByPolicyResponse]
(Int -> ReadS ListTrafficPolicyInstancesByPolicyResponse)
-> ReadS [ListTrafficPolicyInstancesByPolicyResponse]
-> ReadPrec ListTrafficPolicyInstancesByPolicyResponse
-> ReadPrec [ListTrafficPolicyInstancesByPolicyResponse]
-> Read ListTrafficPolicyInstancesByPolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTrafficPolicyInstancesByPolicyResponse]
$creadListPrec :: ReadPrec [ListTrafficPolicyInstancesByPolicyResponse]
readPrec :: ReadPrec ListTrafficPolicyInstancesByPolicyResponse
$creadPrec :: ReadPrec ListTrafficPolicyInstancesByPolicyResponse
readList :: ReadS [ListTrafficPolicyInstancesByPolicyResponse]
$creadList :: ReadS [ListTrafficPolicyInstancesByPolicyResponse]
readsPrec :: Int -> ReadS ListTrafficPolicyInstancesByPolicyResponse
$creadsPrec :: Int -> ReadS ListTrafficPolicyInstancesByPolicyResponse
Prelude.Read, Int -> ListTrafficPolicyInstancesByPolicyResponse -> ShowS
[ListTrafficPolicyInstancesByPolicyResponse] -> ShowS
ListTrafficPolicyInstancesByPolicyResponse -> String
(Int -> ListTrafficPolicyInstancesByPolicyResponse -> ShowS)
-> (ListTrafficPolicyInstancesByPolicyResponse -> String)
-> ([ListTrafficPolicyInstancesByPolicyResponse] -> ShowS)
-> Show ListTrafficPolicyInstancesByPolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTrafficPolicyInstancesByPolicyResponse] -> ShowS
$cshowList :: [ListTrafficPolicyInstancesByPolicyResponse] -> ShowS
show :: ListTrafficPolicyInstancesByPolicyResponse -> String
$cshow :: ListTrafficPolicyInstancesByPolicyResponse -> String
showsPrec :: Int -> ListTrafficPolicyInstancesByPolicyResponse -> ShowS
$cshowsPrec :: Int -> ListTrafficPolicyInstancesByPolicyResponse -> ShowS
Prelude.Show, (forall x.
ListTrafficPolicyInstancesByPolicyResponse
-> Rep ListTrafficPolicyInstancesByPolicyResponse x)
-> (forall x.
Rep ListTrafficPolicyInstancesByPolicyResponse x
-> ListTrafficPolicyInstancesByPolicyResponse)
-> Generic ListTrafficPolicyInstancesByPolicyResponse
forall x.
Rep ListTrafficPolicyInstancesByPolicyResponse x
-> ListTrafficPolicyInstancesByPolicyResponse
forall x.
ListTrafficPolicyInstancesByPolicyResponse
-> Rep ListTrafficPolicyInstancesByPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTrafficPolicyInstancesByPolicyResponse x
-> ListTrafficPolicyInstancesByPolicyResponse
$cfrom :: forall x.
ListTrafficPolicyInstancesByPolicyResponse
-> Rep ListTrafficPolicyInstancesByPolicyResponse x
Prelude.Generic)
newListTrafficPolicyInstancesByPolicyResponse ::
Prelude.Int ->
Prelude.Bool ->
Prelude.Text ->
ListTrafficPolicyInstancesByPolicyResponse
newListTrafficPolicyInstancesByPolicyResponse :: Int -> Bool -> Text -> ListTrafficPolicyInstancesByPolicyResponse
newListTrafficPolicyInstancesByPolicyResponse
Int
pHttpStatus_
Bool
pIsTruncated_
Text
pMaxItems_ =
ListTrafficPolicyInstancesByPolicyResponse' :: Maybe RRType
-> Maybe ResourceId
-> Maybe Text
-> Int
-> [TrafficPolicyInstance]
-> Bool
-> Text
-> ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse'
{ $sel:trafficPolicyInstanceTypeMarker:ListTrafficPolicyInstancesByPolicyResponse' :: Maybe RRType
trafficPolicyInstanceTypeMarker =
Maybe RRType
forall a. Maybe a
Prelude.Nothing,
$sel:hostedZoneIdMarker:ListTrafficPolicyInstancesByPolicyResponse' :: Maybe ResourceId
hostedZoneIdMarker =
Maybe ResourceId
forall a. Maybe a
Prelude.Nothing,
$sel:trafficPolicyInstanceNameMarker:ListTrafficPolicyInstancesByPolicyResponse' :: Maybe Text
trafficPolicyInstanceNameMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTrafficPolicyInstancesByPolicyResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:trafficPolicyInstances:ListTrafficPolicyInstancesByPolicyResponse' :: [TrafficPolicyInstance]
trafficPolicyInstances =
[TrafficPolicyInstance]
forall a. Monoid a => a
Prelude.mempty,
$sel:isTruncated:ListTrafficPolicyInstancesByPolicyResponse' :: Bool
isTruncated = Bool
pIsTruncated_,
$sel:maxItems:ListTrafficPolicyInstancesByPolicyResponse' :: Text
maxItems = Text
pMaxItems_
}
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceTypeMarker :: Lens.Lens' ListTrafficPolicyInstancesByPolicyResponse (Prelude.Maybe RRType)
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceTypeMarker :: (Maybe RRType -> f (Maybe RRType))
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceTypeMarker = (ListTrafficPolicyInstancesByPolicyResponse -> Maybe RRType)
-> (ListTrafficPolicyInstancesByPolicyResponse
-> Maybe RRType -> ListTrafficPolicyInstancesByPolicyResponse)
-> Lens
ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse
(Maybe RRType)
(Maybe RRType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicyResponse' {Maybe RRType
trafficPolicyInstanceTypeMarker :: Maybe RRType
$sel:trafficPolicyInstanceTypeMarker:ListTrafficPolicyInstancesByPolicyResponse' :: ListTrafficPolicyInstancesByPolicyResponse -> Maybe RRType
trafficPolicyInstanceTypeMarker} -> Maybe RRType
trafficPolicyInstanceTypeMarker) (\s :: ListTrafficPolicyInstancesByPolicyResponse
s@ListTrafficPolicyInstancesByPolicyResponse' {} Maybe RRType
a -> ListTrafficPolicyInstancesByPolicyResponse
s {$sel:trafficPolicyInstanceTypeMarker:ListTrafficPolicyInstancesByPolicyResponse' :: Maybe RRType
trafficPolicyInstanceTypeMarker = Maybe RRType
a} :: ListTrafficPolicyInstancesByPolicyResponse)
listTrafficPolicyInstancesByPolicyResponse_hostedZoneIdMarker :: Lens.Lens' ListTrafficPolicyInstancesByPolicyResponse (Prelude.Maybe ResourceId)
listTrafficPolicyInstancesByPolicyResponse_hostedZoneIdMarker :: (Maybe ResourceId -> f (Maybe ResourceId))
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
listTrafficPolicyInstancesByPolicyResponse_hostedZoneIdMarker = (ListTrafficPolicyInstancesByPolicyResponse -> Maybe ResourceId)
-> (ListTrafficPolicyInstancesByPolicyResponse
-> Maybe ResourceId -> ListTrafficPolicyInstancesByPolicyResponse)
-> Lens
ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse
(Maybe ResourceId)
(Maybe ResourceId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicyResponse' {Maybe ResourceId
hostedZoneIdMarker :: Maybe ResourceId
$sel:hostedZoneIdMarker:ListTrafficPolicyInstancesByPolicyResponse' :: ListTrafficPolicyInstancesByPolicyResponse -> Maybe ResourceId
hostedZoneIdMarker} -> Maybe ResourceId
hostedZoneIdMarker) (\s :: ListTrafficPolicyInstancesByPolicyResponse
s@ListTrafficPolicyInstancesByPolicyResponse' {} Maybe ResourceId
a -> ListTrafficPolicyInstancesByPolicyResponse
s {$sel:hostedZoneIdMarker:ListTrafficPolicyInstancesByPolicyResponse' :: Maybe ResourceId
hostedZoneIdMarker = Maybe ResourceId
a} :: ListTrafficPolicyInstancesByPolicyResponse)
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceNameMarker :: Lens.Lens' ListTrafficPolicyInstancesByPolicyResponse (Prelude.Maybe Prelude.Text)
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceNameMarker :: (Maybe Text -> f (Maybe Text))
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstanceNameMarker = (ListTrafficPolicyInstancesByPolicyResponse -> Maybe Text)
-> (ListTrafficPolicyInstancesByPolicyResponse
-> Maybe Text -> ListTrafficPolicyInstancesByPolicyResponse)
-> Lens
ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicyResponse' {Maybe Text
trafficPolicyInstanceNameMarker :: Maybe Text
$sel:trafficPolicyInstanceNameMarker:ListTrafficPolicyInstancesByPolicyResponse' :: ListTrafficPolicyInstancesByPolicyResponse -> Maybe Text
trafficPolicyInstanceNameMarker} -> Maybe Text
trafficPolicyInstanceNameMarker) (\s :: ListTrafficPolicyInstancesByPolicyResponse
s@ListTrafficPolicyInstancesByPolicyResponse' {} Maybe Text
a -> ListTrafficPolicyInstancesByPolicyResponse
s {$sel:trafficPolicyInstanceNameMarker:ListTrafficPolicyInstancesByPolicyResponse' :: Maybe Text
trafficPolicyInstanceNameMarker = Maybe Text
a} :: ListTrafficPolicyInstancesByPolicyResponse)
listTrafficPolicyInstancesByPolicyResponse_httpStatus :: Lens.Lens' ListTrafficPolicyInstancesByPolicyResponse Prelude.Int
listTrafficPolicyInstancesByPolicyResponse_httpStatus :: (Int -> f Int)
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
listTrafficPolicyInstancesByPolicyResponse_httpStatus = (ListTrafficPolicyInstancesByPolicyResponse -> Int)
-> (ListTrafficPolicyInstancesByPolicyResponse
-> Int -> ListTrafficPolicyInstancesByPolicyResponse)
-> Lens
ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicyResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTrafficPolicyInstancesByPolicyResponse' :: ListTrafficPolicyInstancesByPolicyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTrafficPolicyInstancesByPolicyResponse
s@ListTrafficPolicyInstancesByPolicyResponse' {} Int
a -> ListTrafficPolicyInstancesByPolicyResponse
s {$sel:httpStatus:ListTrafficPolicyInstancesByPolicyResponse' :: Int
httpStatus = Int
a} :: ListTrafficPolicyInstancesByPolicyResponse)
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstances :: Lens.Lens' ListTrafficPolicyInstancesByPolicyResponse [TrafficPolicyInstance]
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstances :: ([TrafficPolicyInstance] -> f [TrafficPolicyInstance])
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
listTrafficPolicyInstancesByPolicyResponse_trafficPolicyInstances = (ListTrafficPolicyInstancesByPolicyResponse
-> [TrafficPolicyInstance])
-> (ListTrafficPolicyInstancesByPolicyResponse
-> [TrafficPolicyInstance]
-> ListTrafficPolicyInstancesByPolicyResponse)
-> Lens
ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse
[TrafficPolicyInstance]
[TrafficPolicyInstance]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicyResponse' {[TrafficPolicyInstance]
trafficPolicyInstances :: [TrafficPolicyInstance]
$sel:trafficPolicyInstances:ListTrafficPolicyInstancesByPolicyResponse' :: ListTrafficPolicyInstancesByPolicyResponse
-> [TrafficPolicyInstance]
trafficPolicyInstances} -> [TrafficPolicyInstance]
trafficPolicyInstances) (\s :: ListTrafficPolicyInstancesByPolicyResponse
s@ListTrafficPolicyInstancesByPolicyResponse' {} [TrafficPolicyInstance]
a -> ListTrafficPolicyInstancesByPolicyResponse
s {$sel:trafficPolicyInstances:ListTrafficPolicyInstancesByPolicyResponse' :: [TrafficPolicyInstance]
trafficPolicyInstances = [TrafficPolicyInstance]
a} :: ListTrafficPolicyInstancesByPolicyResponse) (([TrafficPolicyInstance] -> f [TrafficPolicyInstance])
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse)
-> (([TrafficPolicyInstance] -> f [TrafficPolicyInstance])
-> [TrafficPolicyInstance] -> f [TrafficPolicyInstance])
-> ([TrafficPolicyInstance] -> f [TrafficPolicyInstance])
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TrafficPolicyInstance] -> f [TrafficPolicyInstance])
-> [TrafficPolicyInstance] -> f [TrafficPolicyInstance]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTrafficPolicyInstancesByPolicyResponse_isTruncated :: Lens.Lens' ListTrafficPolicyInstancesByPolicyResponse Prelude.Bool
listTrafficPolicyInstancesByPolicyResponse_isTruncated :: (Bool -> f Bool)
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
listTrafficPolicyInstancesByPolicyResponse_isTruncated = (ListTrafficPolicyInstancesByPolicyResponse -> Bool)
-> (ListTrafficPolicyInstancesByPolicyResponse
-> Bool -> ListTrafficPolicyInstancesByPolicyResponse)
-> Lens
ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse
Bool
Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicyResponse' {Bool
isTruncated :: Bool
$sel:isTruncated:ListTrafficPolicyInstancesByPolicyResponse' :: ListTrafficPolicyInstancesByPolicyResponse -> Bool
isTruncated} -> Bool
isTruncated) (\s :: ListTrafficPolicyInstancesByPolicyResponse
s@ListTrafficPolicyInstancesByPolicyResponse' {} Bool
a -> ListTrafficPolicyInstancesByPolicyResponse
s {$sel:isTruncated:ListTrafficPolicyInstancesByPolicyResponse' :: Bool
isTruncated = Bool
a} :: ListTrafficPolicyInstancesByPolicyResponse)
listTrafficPolicyInstancesByPolicyResponse_maxItems :: Lens.Lens' ListTrafficPolicyInstancesByPolicyResponse Prelude.Text
listTrafficPolicyInstancesByPolicyResponse_maxItems :: (Text -> f Text)
-> ListTrafficPolicyInstancesByPolicyResponse
-> f ListTrafficPolicyInstancesByPolicyResponse
listTrafficPolicyInstancesByPolicyResponse_maxItems = (ListTrafficPolicyInstancesByPolicyResponse -> Text)
-> (ListTrafficPolicyInstancesByPolicyResponse
-> Text -> ListTrafficPolicyInstancesByPolicyResponse)
-> Lens
ListTrafficPolicyInstancesByPolicyResponse
ListTrafficPolicyInstancesByPolicyResponse
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTrafficPolicyInstancesByPolicyResponse' {Text
maxItems :: Text
$sel:maxItems:ListTrafficPolicyInstancesByPolicyResponse' :: ListTrafficPolicyInstancesByPolicyResponse -> Text
maxItems} -> Text
maxItems) (\s :: ListTrafficPolicyInstancesByPolicyResponse
s@ListTrafficPolicyInstancesByPolicyResponse' {} Text
a -> ListTrafficPolicyInstancesByPolicyResponse
s {$sel:maxItems:ListTrafficPolicyInstancesByPolicyResponse' :: Text
maxItems = Text
a} :: ListTrafficPolicyInstancesByPolicyResponse)
instance
Prelude.NFData
ListTrafficPolicyInstancesByPolicyResponse