{-# 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.MQ.ListConfigurationRevisions
(
ListConfigurationRevisions (..),
newListConfigurationRevisions,
listConfigurationRevisions_nextToken,
listConfigurationRevisions_maxResults,
listConfigurationRevisions_configurationId,
ListConfigurationRevisionsResponse (..),
newListConfigurationRevisionsResponse,
listConfigurationRevisionsResponse_configurationId,
listConfigurationRevisionsResponse_nextToken,
listConfigurationRevisionsResponse_revisions,
listConfigurationRevisionsResponse_maxResults,
listConfigurationRevisionsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MQ.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListConfigurationRevisions = ListConfigurationRevisions'
{
ListConfigurationRevisions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListConfigurationRevisions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListConfigurationRevisions -> Text
configurationId :: Prelude.Text
}
deriving (ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
(ListConfigurationRevisions -> ListConfigurationRevisions -> Bool)
-> (ListConfigurationRevisions
-> ListConfigurationRevisions -> Bool)
-> Eq ListConfigurationRevisions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
$c/= :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
== :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
$c== :: ListConfigurationRevisions -> ListConfigurationRevisions -> Bool
Prelude.Eq, ReadPrec [ListConfigurationRevisions]
ReadPrec ListConfigurationRevisions
Int -> ReadS ListConfigurationRevisions
ReadS [ListConfigurationRevisions]
(Int -> ReadS ListConfigurationRevisions)
-> ReadS [ListConfigurationRevisions]
-> ReadPrec ListConfigurationRevisions
-> ReadPrec [ListConfigurationRevisions]
-> Read ListConfigurationRevisions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurationRevisions]
$creadListPrec :: ReadPrec [ListConfigurationRevisions]
readPrec :: ReadPrec ListConfigurationRevisions
$creadPrec :: ReadPrec ListConfigurationRevisions
readList :: ReadS [ListConfigurationRevisions]
$creadList :: ReadS [ListConfigurationRevisions]
readsPrec :: Int -> ReadS ListConfigurationRevisions
$creadsPrec :: Int -> ReadS ListConfigurationRevisions
Prelude.Read, Int -> ListConfigurationRevisions -> ShowS
[ListConfigurationRevisions] -> ShowS
ListConfigurationRevisions -> String
(Int -> ListConfigurationRevisions -> ShowS)
-> (ListConfigurationRevisions -> String)
-> ([ListConfigurationRevisions] -> ShowS)
-> Show ListConfigurationRevisions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurationRevisions] -> ShowS
$cshowList :: [ListConfigurationRevisions] -> ShowS
show :: ListConfigurationRevisions -> String
$cshow :: ListConfigurationRevisions -> String
showsPrec :: Int -> ListConfigurationRevisions -> ShowS
$cshowsPrec :: Int -> ListConfigurationRevisions -> ShowS
Prelude.Show, (forall x.
ListConfigurationRevisions -> Rep ListConfigurationRevisions x)
-> (forall x.
Rep ListConfigurationRevisions x -> ListConfigurationRevisions)
-> Generic ListConfigurationRevisions
forall x.
Rep ListConfigurationRevisions x -> ListConfigurationRevisions
forall x.
ListConfigurationRevisions -> Rep ListConfigurationRevisions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConfigurationRevisions x -> ListConfigurationRevisions
$cfrom :: forall x.
ListConfigurationRevisions -> Rep ListConfigurationRevisions x
Prelude.Generic)
newListConfigurationRevisions ::
Prelude.Text ->
ListConfigurationRevisions
newListConfigurationRevisions :: Text -> ListConfigurationRevisions
newListConfigurationRevisions Text
pConfigurationId_ =
ListConfigurationRevisions' :: Maybe Text -> Maybe Natural -> Text -> ListConfigurationRevisions
ListConfigurationRevisions'
{ $sel:nextToken:ListConfigurationRevisions' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListConfigurationRevisions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:configurationId:ListConfigurationRevisions' :: Text
configurationId = Text
pConfigurationId_
}
listConfigurationRevisions_nextToken :: Lens.Lens' ListConfigurationRevisions (Prelude.Maybe Prelude.Text)
listConfigurationRevisions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConfigurationRevisions -> f ListConfigurationRevisions
listConfigurationRevisions_nextToken = (ListConfigurationRevisions -> Maybe Text)
-> (ListConfigurationRevisions
-> Maybe Text -> ListConfigurationRevisions)
-> Lens
ListConfigurationRevisions
ListConfigurationRevisions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurationRevisions
s@ListConfigurationRevisions' {} Maybe Text
a -> ListConfigurationRevisions
s {$sel:nextToken:ListConfigurationRevisions' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurationRevisions)
listConfigurationRevisions_maxResults :: Lens.Lens' ListConfigurationRevisions (Prelude.Maybe Prelude.Natural)
listConfigurationRevisions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListConfigurationRevisions -> f ListConfigurationRevisions
listConfigurationRevisions_maxResults = (ListConfigurationRevisions -> Maybe Natural)
-> (ListConfigurationRevisions
-> Maybe Natural -> ListConfigurationRevisions)
-> Lens
ListConfigurationRevisions
ListConfigurationRevisions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListConfigurationRevisions
s@ListConfigurationRevisions' {} Maybe Natural
a -> ListConfigurationRevisions
s {$sel:maxResults:ListConfigurationRevisions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListConfigurationRevisions)
listConfigurationRevisions_configurationId :: Lens.Lens' ListConfigurationRevisions Prelude.Text
listConfigurationRevisions_configurationId :: (Text -> f Text)
-> ListConfigurationRevisions -> f ListConfigurationRevisions
listConfigurationRevisions_configurationId = (ListConfigurationRevisions -> Text)
-> (ListConfigurationRevisions
-> Text -> ListConfigurationRevisions)
-> Lens
ListConfigurationRevisions ListConfigurationRevisions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisions' {Text
configurationId :: Text
$sel:configurationId:ListConfigurationRevisions' :: ListConfigurationRevisions -> Text
configurationId} -> Text
configurationId) (\s :: ListConfigurationRevisions
s@ListConfigurationRevisions' {} Text
a -> ListConfigurationRevisions
s {$sel:configurationId:ListConfigurationRevisions' :: Text
configurationId = Text
a} :: ListConfigurationRevisions)
instance Core.AWSRequest ListConfigurationRevisions where
type
AWSResponse ListConfigurationRevisions =
ListConfigurationRevisionsResponse
request :: ListConfigurationRevisions -> Request ListConfigurationRevisions
request = Service
-> ListConfigurationRevisions -> Request ListConfigurationRevisions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListConfigurationRevisions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListConfigurationRevisions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListConfigurationRevisions))
-> Logger
-> Service
-> Proxy ListConfigurationRevisions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListConfigurationRevisions)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Text
-> Maybe [ConfigurationRevision]
-> Maybe Int
-> Int
-> ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse'
(Maybe Text
-> Maybe Text
-> Maybe [ConfigurationRevision]
-> Maybe Int
-> Int
-> ListConfigurationRevisionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [ConfigurationRevision]
-> Maybe Int
-> Int
-> ListConfigurationRevisionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"configurationId")
Either
String
(Maybe Text
-> Maybe [ConfigurationRevision]
-> Maybe Int
-> Int
-> ListConfigurationRevisionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ConfigurationRevision]
-> Maybe Int -> Int -> ListConfigurationRevisionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextToken")
Either
String
(Maybe [ConfigurationRevision]
-> Maybe Int -> Int -> ListConfigurationRevisionsResponse)
-> Either String (Maybe [ConfigurationRevision])
-> Either
String (Maybe Int -> Int -> ListConfigurationRevisionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [ConfigurationRevision]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"revisions" Either String (Maybe (Maybe [ConfigurationRevision]))
-> Maybe [ConfigurationRevision]
-> Either String (Maybe [ConfigurationRevision])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ConfigurationRevision]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Int -> Int -> ListConfigurationRevisionsResponse)
-> Either String (Maybe Int)
-> Either String (Int -> ListConfigurationRevisionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"maxResults")
Either String (Int -> ListConfigurationRevisionsResponse)
-> Either String Int
-> Either String ListConfigurationRevisionsResponse
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))
)
instance Prelude.Hashable ListConfigurationRevisions
instance Prelude.NFData ListConfigurationRevisions
instance Core.ToHeaders ListConfigurationRevisions where
toHeaders :: ListConfigurationRevisions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListConfigurationRevisions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListConfigurationRevisions where
toPath :: ListConfigurationRevisions -> ByteString
toPath ListConfigurationRevisions' {Maybe Natural
Maybe Text
Text
configurationId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:configurationId:ListConfigurationRevisions' :: ListConfigurationRevisions -> Text
$sel:maxResults:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Natural
$sel:nextToken:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/configurations/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
configurationId,
ByteString
"/revisions"
]
instance Core.ToQuery ListConfigurationRevisions where
toQuery :: ListConfigurationRevisions -> QueryString
toQuery ListConfigurationRevisions' {Maybe Natural
Maybe Text
Text
configurationId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:configurationId:ListConfigurationRevisions' :: ListConfigurationRevisions -> Text
$sel:maxResults:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Natural
$sel:nextToken:ListConfigurationRevisions' :: ListConfigurationRevisions -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListConfigurationRevisionsResponse = ListConfigurationRevisionsResponse'
{
ListConfigurationRevisionsResponse -> Maybe Text
configurationId :: Prelude.Maybe Prelude.Text,
ListConfigurationRevisionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListConfigurationRevisionsResponse -> Maybe [ConfigurationRevision]
revisions :: Prelude.Maybe [ConfigurationRevision],
ListConfigurationRevisionsResponse -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
ListConfigurationRevisionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
(ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool)
-> (ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool)
-> Eq ListConfigurationRevisionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
$c/= :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
== :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
$c== :: ListConfigurationRevisionsResponse
-> ListConfigurationRevisionsResponse -> Bool
Prelude.Eq, ReadPrec [ListConfigurationRevisionsResponse]
ReadPrec ListConfigurationRevisionsResponse
Int -> ReadS ListConfigurationRevisionsResponse
ReadS [ListConfigurationRevisionsResponse]
(Int -> ReadS ListConfigurationRevisionsResponse)
-> ReadS [ListConfigurationRevisionsResponse]
-> ReadPrec ListConfigurationRevisionsResponse
-> ReadPrec [ListConfigurationRevisionsResponse]
-> Read ListConfigurationRevisionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListConfigurationRevisionsResponse]
$creadListPrec :: ReadPrec [ListConfigurationRevisionsResponse]
readPrec :: ReadPrec ListConfigurationRevisionsResponse
$creadPrec :: ReadPrec ListConfigurationRevisionsResponse
readList :: ReadS [ListConfigurationRevisionsResponse]
$creadList :: ReadS [ListConfigurationRevisionsResponse]
readsPrec :: Int -> ReadS ListConfigurationRevisionsResponse
$creadsPrec :: Int -> ReadS ListConfigurationRevisionsResponse
Prelude.Read, Int -> ListConfigurationRevisionsResponse -> ShowS
[ListConfigurationRevisionsResponse] -> ShowS
ListConfigurationRevisionsResponse -> String
(Int -> ListConfigurationRevisionsResponse -> ShowS)
-> (ListConfigurationRevisionsResponse -> String)
-> ([ListConfigurationRevisionsResponse] -> ShowS)
-> Show ListConfigurationRevisionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListConfigurationRevisionsResponse] -> ShowS
$cshowList :: [ListConfigurationRevisionsResponse] -> ShowS
show :: ListConfigurationRevisionsResponse -> String
$cshow :: ListConfigurationRevisionsResponse -> String
showsPrec :: Int -> ListConfigurationRevisionsResponse -> ShowS
$cshowsPrec :: Int -> ListConfigurationRevisionsResponse -> ShowS
Prelude.Show, (forall x.
ListConfigurationRevisionsResponse
-> Rep ListConfigurationRevisionsResponse x)
-> (forall x.
Rep ListConfigurationRevisionsResponse x
-> ListConfigurationRevisionsResponse)
-> Generic ListConfigurationRevisionsResponse
forall x.
Rep ListConfigurationRevisionsResponse x
-> ListConfigurationRevisionsResponse
forall x.
ListConfigurationRevisionsResponse
-> Rep ListConfigurationRevisionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListConfigurationRevisionsResponse x
-> ListConfigurationRevisionsResponse
$cfrom :: forall x.
ListConfigurationRevisionsResponse
-> Rep ListConfigurationRevisionsResponse x
Prelude.Generic)
newListConfigurationRevisionsResponse ::
Prelude.Int ->
ListConfigurationRevisionsResponse
newListConfigurationRevisionsResponse :: Int -> ListConfigurationRevisionsResponse
newListConfigurationRevisionsResponse Int
pHttpStatus_ =
ListConfigurationRevisionsResponse' :: Maybe Text
-> Maybe Text
-> Maybe [ConfigurationRevision]
-> Maybe Int
-> Int
-> ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse'
{ $sel:configurationId:ListConfigurationRevisionsResponse' :: Maybe Text
configurationId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListConfigurationRevisionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:revisions:ListConfigurationRevisionsResponse' :: Maybe [ConfigurationRevision]
revisions = Maybe [ConfigurationRevision]
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListConfigurationRevisionsResponse' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListConfigurationRevisionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listConfigurationRevisionsResponse_configurationId :: Lens.Lens' ListConfigurationRevisionsResponse (Prelude.Maybe Prelude.Text)
listConfigurationRevisionsResponse_configurationId :: (Maybe Text -> f (Maybe Text))
-> ListConfigurationRevisionsResponse
-> f ListConfigurationRevisionsResponse
listConfigurationRevisionsResponse_configurationId = (ListConfigurationRevisionsResponse -> Maybe Text)
-> (ListConfigurationRevisionsResponse
-> Maybe Text -> ListConfigurationRevisionsResponse)
-> Lens
ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisionsResponse' {Maybe Text
configurationId :: Maybe Text
$sel:configurationId:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe Text
configurationId} -> Maybe Text
configurationId) (\s :: ListConfigurationRevisionsResponse
s@ListConfigurationRevisionsResponse' {} Maybe Text
a -> ListConfigurationRevisionsResponse
s {$sel:configurationId:ListConfigurationRevisionsResponse' :: Maybe Text
configurationId = Maybe Text
a} :: ListConfigurationRevisionsResponse)
listConfigurationRevisionsResponse_nextToken :: Lens.Lens' ListConfigurationRevisionsResponse (Prelude.Maybe Prelude.Text)
listConfigurationRevisionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListConfigurationRevisionsResponse
-> f ListConfigurationRevisionsResponse
listConfigurationRevisionsResponse_nextToken = (ListConfigurationRevisionsResponse -> Maybe Text)
-> (ListConfigurationRevisionsResponse
-> Maybe Text -> ListConfigurationRevisionsResponse)
-> Lens
ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListConfigurationRevisionsResponse
s@ListConfigurationRevisionsResponse' {} Maybe Text
a -> ListConfigurationRevisionsResponse
s {$sel:nextToken:ListConfigurationRevisionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListConfigurationRevisionsResponse)
listConfigurationRevisionsResponse_revisions :: Lens.Lens' ListConfigurationRevisionsResponse (Prelude.Maybe [ConfigurationRevision])
listConfigurationRevisionsResponse_revisions :: (Maybe [ConfigurationRevision]
-> f (Maybe [ConfigurationRevision]))
-> ListConfigurationRevisionsResponse
-> f ListConfigurationRevisionsResponse
listConfigurationRevisionsResponse_revisions = (ListConfigurationRevisionsResponse
-> Maybe [ConfigurationRevision])
-> (ListConfigurationRevisionsResponse
-> Maybe [ConfigurationRevision]
-> ListConfigurationRevisionsResponse)
-> Lens
ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse
(Maybe [ConfigurationRevision])
(Maybe [ConfigurationRevision])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisionsResponse' {Maybe [ConfigurationRevision]
revisions :: Maybe [ConfigurationRevision]
$sel:revisions:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe [ConfigurationRevision]
revisions} -> Maybe [ConfigurationRevision]
revisions) (\s :: ListConfigurationRevisionsResponse
s@ListConfigurationRevisionsResponse' {} Maybe [ConfigurationRevision]
a -> ListConfigurationRevisionsResponse
s {$sel:revisions:ListConfigurationRevisionsResponse' :: Maybe [ConfigurationRevision]
revisions = Maybe [ConfigurationRevision]
a} :: ListConfigurationRevisionsResponse) ((Maybe [ConfigurationRevision]
-> f (Maybe [ConfigurationRevision]))
-> ListConfigurationRevisionsResponse
-> f ListConfigurationRevisionsResponse)
-> ((Maybe [ConfigurationRevision]
-> f (Maybe [ConfigurationRevision]))
-> Maybe [ConfigurationRevision]
-> f (Maybe [ConfigurationRevision]))
-> (Maybe [ConfigurationRevision]
-> f (Maybe [ConfigurationRevision]))
-> ListConfigurationRevisionsResponse
-> f ListConfigurationRevisionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ConfigurationRevision]
[ConfigurationRevision]
[ConfigurationRevision]
[ConfigurationRevision]
-> Iso
(Maybe [ConfigurationRevision])
(Maybe [ConfigurationRevision])
(Maybe [ConfigurationRevision])
(Maybe [ConfigurationRevision])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[ConfigurationRevision]
[ConfigurationRevision]
[ConfigurationRevision]
[ConfigurationRevision]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listConfigurationRevisionsResponse_maxResults :: Lens.Lens' ListConfigurationRevisionsResponse (Prelude.Maybe Prelude.Int)
listConfigurationRevisionsResponse_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListConfigurationRevisionsResponse
-> f ListConfigurationRevisionsResponse
listConfigurationRevisionsResponse_maxResults = (ListConfigurationRevisionsResponse -> Maybe Int)
-> (ListConfigurationRevisionsResponse
-> Maybe Int -> ListConfigurationRevisionsResponse)
-> Lens
ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisionsResponse' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListConfigurationRevisionsResponse
s@ListConfigurationRevisionsResponse' {} Maybe Int
a -> ListConfigurationRevisionsResponse
s {$sel:maxResults:ListConfigurationRevisionsResponse' :: Maybe Int
maxResults = Maybe Int
a} :: ListConfigurationRevisionsResponse)
listConfigurationRevisionsResponse_httpStatus :: Lens.Lens' ListConfigurationRevisionsResponse Prelude.Int
listConfigurationRevisionsResponse_httpStatus :: (Int -> f Int)
-> ListConfigurationRevisionsResponse
-> f ListConfigurationRevisionsResponse
listConfigurationRevisionsResponse_httpStatus = (ListConfigurationRevisionsResponse -> Int)
-> (ListConfigurationRevisionsResponse
-> Int -> ListConfigurationRevisionsResponse)
-> Lens
ListConfigurationRevisionsResponse
ListConfigurationRevisionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListConfigurationRevisionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListConfigurationRevisionsResponse' :: ListConfigurationRevisionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListConfigurationRevisionsResponse
s@ListConfigurationRevisionsResponse' {} Int
a -> ListConfigurationRevisionsResponse
s {$sel:httpStatus:ListConfigurationRevisionsResponse' :: Int
httpStatus = Int
a} :: ListConfigurationRevisionsResponse)
instance
Prelude.NFData
ListConfigurationRevisionsResponse