{-# 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.Greengrass.ListGroupVersions
(
ListGroupVersions (..),
newListGroupVersions,
listGroupVersions_nextToken,
listGroupVersions_maxResults,
listGroupVersions_groupId,
ListGroupVersionsResponse (..),
newListGroupVersionsResponse,
listGroupVersionsResponse_versions,
listGroupVersionsResponse_nextToken,
listGroupVersionsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Greengrass.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListGroupVersions = ListGroupVersions'
{
ListGroupVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGroupVersions -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
ListGroupVersions -> Text
groupId :: Prelude.Text
}
deriving (ListGroupVersions -> ListGroupVersions -> Bool
(ListGroupVersions -> ListGroupVersions -> Bool)
-> (ListGroupVersions -> ListGroupVersions -> Bool)
-> Eq ListGroupVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGroupVersions -> ListGroupVersions -> Bool
$c/= :: ListGroupVersions -> ListGroupVersions -> Bool
== :: ListGroupVersions -> ListGroupVersions -> Bool
$c== :: ListGroupVersions -> ListGroupVersions -> Bool
Prelude.Eq, ReadPrec [ListGroupVersions]
ReadPrec ListGroupVersions
Int -> ReadS ListGroupVersions
ReadS [ListGroupVersions]
(Int -> ReadS ListGroupVersions)
-> ReadS [ListGroupVersions]
-> ReadPrec ListGroupVersions
-> ReadPrec [ListGroupVersions]
-> Read ListGroupVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGroupVersions]
$creadListPrec :: ReadPrec [ListGroupVersions]
readPrec :: ReadPrec ListGroupVersions
$creadPrec :: ReadPrec ListGroupVersions
readList :: ReadS [ListGroupVersions]
$creadList :: ReadS [ListGroupVersions]
readsPrec :: Int -> ReadS ListGroupVersions
$creadsPrec :: Int -> ReadS ListGroupVersions
Prelude.Read, Int -> ListGroupVersions -> ShowS
[ListGroupVersions] -> ShowS
ListGroupVersions -> String
(Int -> ListGroupVersions -> ShowS)
-> (ListGroupVersions -> String)
-> ([ListGroupVersions] -> ShowS)
-> Show ListGroupVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGroupVersions] -> ShowS
$cshowList :: [ListGroupVersions] -> ShowS
show :: ListGroupVersions -> String
$cshow :: ListGroupVersions -> String
showsPrec :: Int -> ListGroupVersions -> ShowS
$cshowsPrec :: Int -> ListGroupVersions -> ShowS
Prelude.Show, (forall x. ListGroupVersions -> Rep ListGroupVersions x)
-> (forall x. Rep ListGroupVersions x -> ListGroupVersions)
-> Generic ListGroupVersions
forall x. Rep ListGroupVersions x -> ListGroupVersions
forall x. ListGroupVersions -> Rep ListGroupVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListGroupVersions x -> ListGroupVersions
$cfrom :: forall x. ListGroupVersions -> Rep ListGroupVersions x
Prelude.Generic)
newListGroupVersions ::
Prelude.Text ->
ListGroupVersions
newListGroupVersions :: Text -> ListGroupVersions
newListGroupVersions Text
pGroupId_ =
ListGroupVersions' :: Maybe Text -> Maybe Text -> Text -> ListGroupVersions
ListGroupVersions'
{ $sel:nextToken:ListGroupVersions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListGroupVersions' :: Maybe Text
maxResults = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:groupId:ListGroupVersions' :: Text
groupId = Text
pGroupId_
}
listGroupVersions_nextToken :: Lens.Lens' ListGroupVersions (Prelude.Maybe Prelude.Text)
listGroupVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListGroupVersions -> f ListGroupVersions
listGroupVersions_nextToken = (ListGroupVersions -> Maybe Text)
-> (ListGroupVersions -> Maybe Text -> ListGroupVersions)
-> Lens
ListGroupVersions ListGroupVersions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGroupVersions' :: ListGroupVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGroupVersions
s@ListGroupVersions' {} Maybe Text
a -> ListGroupVersions
s {$sel:nextToken:ListGroupVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListGroupVersions)
listGroupVersions_maxResults :: Lens.Lens' ListGroupVersions (Prelude.Maybe Prelude.Text)
listGroupVersions_maxResults :: (Maybe Text -> f (Maybe Text))
-> ListGroupVersions -> f ListGroupVersions
listGroupVersions_maxResults = (ListGroupVersions -> Maybe Text)
-> (ListGroupVersions -> Maybe Text -> ListGroupVersions)
-> Lens
ListGroupVersions ListGroupVersions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupVersions' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:ListGroupVersions' :: ListGroupVersions -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: ListGroupVersions
s@ListGroupVersions' {} Maybe Text
a -> ListGroupVersions
s {$sel:maxResults:ListGroupVersions' :: Maybe Text
maxResults = Maybe Text
a} :: ListGroupVersions)
listGroupVersions_groupId :: Lens.Lens' ListGroupVersions Prelude.Text
listGroupVersions_groupId :: (Text -> f Text) -> ListGroupVersions -> f ListGroupVersions
listGroupVersions_groupId = (ListGroupVersions -> Text)
-> (ListGroupVersions -> Text -> ListGroupVersions)
-> Lens ListGroupVersions ListGroupVersions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupVersions' {Text
groupId :: Text
$sel:groupId:ListGroupVersions' :: ListGroupVersions -> Text
groupId} -> Text
groupId) (\s :: ListGroupVersions
s@ListGroupVersions' {} Text
a -> ListGroupVersions
s {$sel:groupId:ListGroupVersions' :: Text
groupId = Text
a} :: ListGroupVersions)
instance Core.AWSPager ListGroupVersions where
page :: ListGroupVersions
-> AWSResponse ListGroupVersions -> Maybe ListGroupVersions
page ListGroupVersions
rq AWSResponse ListGroupVersions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGroupVersions
ListGroupVersionsResponse
rs
ListGroupVersionsResponse
-> Getting (First Text) ListGroupVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupVersionsResponse
-> Const (First Text) ListGroupVersionsResponse
Lens' ListGroupVersionsResponse (Maybe Text)
listGroupVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupVersionsResponse
-> Const (First Text) ListGroupVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGroupVersionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListGroupVersions
forall a. Maybe a
Prelude.Nothing
| Maybe [VersionInformation] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListGroupVersions
ListGroupVersionsResponse
rs
ListGroupVersionsResponse
-> Getting
(First [VersionInformation])
ListGroupVersionsResponse
[VersionInformation]
-> Maybe [VersionInformation]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [VersionInformation]
-> Const (First [VersionInformation]) (Maybe [VersionInformation]))
-> ListGroupVersionsResponse
-> Const (First [VersionInformation]) ListGroupVersionsResponse
Lens' ListGroupVersionsResponse (Maybe [VersionInformation])
listGroupVersionsResponse_versions
((Maybe [VersionInformation]
-> Const (First [VersionInformation]) (Maybe [VersionInformation]))
-> ListGroupVersionsResponse
-> Const (First [VersionInformation]) ListGroupVersionsResponse)
-> (([VersionInformation]
-> Const (First [VersionInformation]) [VersionInformation])
-> Maybe [VersionInformation]
-> Const (First [VersionInformation]) (Maybe [VersionInformation]))
-> Getting
(First [VersionInformation])
ListGroupVersionsResponse
[VersionInformation]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([VersionInformation]
-> Const (First [VersionInformation]) [VersionInformation])
-> Maybe [VersionInformation]
-> Const (First [VersionInformation]) (Maybe [VersionInformation])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListGroupVersions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListGroupVersions -> Maybe ListGroupVersions
forall a. a -> Maybe a
Prelude.Just (ListGroupVersions -> Maybe ListGroupVersions)
-> ListGroupVersions -> Maybe ListGroupVersions
forall a b. (a -> b) -> a -> b
Prelude.$
ListGroupVersions
rq
ListGroupVersions
-> (ListGroupVersions -> ListGroupVersions) -> ListGroupVersions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListGroupVersions -> Identity ListGroupVersions
Lens ListGroupVersions ListGroupVersions (Maybe Text) (Maybe Text)
listGroupVersions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListGroupVersions -> Identity ListGroupVersions)
-> Maybe Text -> ListGroupVersions -> ListGroupVersions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListGroupVersions
ListGroupVersionsResponse
rs
ListGroupVersionsResponse
-> Getting (First Text) ListGroupVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupVersionsResponse
-> Const (First Text) ListGroupVersionsResponse
Lens' ListGroupVersionsResponse (Maybe Text)
listGroupVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListGroupVersionsResponse
-> Const (First Text) ListGroupVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListGroupVersionsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListGroupVersions where
type
AWSResponse ListGroupVersions =
ListGroupVersionsResponse
request :: ListGroupVersions -> Request ListGroupVersions
request = Service -> ListGroupVersions -> Request ListGroupVersions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListGroupVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListGroupVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListGroupVersions))
-> Logger
-> Service
-> Proxy ListGroupVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListGroupVersions)))
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 [VersionInformation]
-> Maybe Text -> Int -> ListGroupVersionsResponse
ListGroupVersionsResponse'
(Maybe [VersionInformation]
-> Maybe Text -> Int -> ListGroupVersionsResponse)
-> Either String (Maybe [VersionInformation])
-> Either String (Maybe Text -> Int -> ListGroupVersionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [VersionInformation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Versions" Either String (Maybe (Maybe [VersionInformation]))
-> Maybe [VersionInformation]
-> Either String (Maybe [VersionInformation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [VersionInformation]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListGroupVersionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListGroupVersionsResponse)
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 (Int -> ListGroupVersionsResponse)
-> Either String Int -> Either String ListGroupVersionsResponse
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 ListGroupVersions
instance Prelude.NFData ListGroupVersions
instance Core.ToHeaders ListGroupVersions where
toHeaders :: ListGroupVersions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListGroupVersions -> 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 ListGroupVersions where
toPath :: ListGroupVersions -> ByteString
toPath ListGroupVersions' {Maybe Text
Text
groupId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:groupId:ListGroupVersions' :: ListGroupVersions -> Text
$sel:maxResults:ListGroupVersions' :: ListGroupVersions -> Maybe Text
$sel:nextToken:ListGroupVersions' :: ListGroupVersions -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/groups/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
groupId,
ByteString
"/versions"
]
instance Core.ToQuery ListGroupVersions where
toQuery :: ListGroupVersions -> QueryString
toQuery ListGroupVersions' {Maybe Text
Text
groupId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:groupId:ListGroupVersions' :: ListGroupVersions -> Text
$sel:maxResults:ListGroupVersions' :: ListGroupVersions -> Maybe Text
$sel:nextToken:ListGroupVersions' :: ListGroupVersions -> 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 Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maxResults
]
data ListGroupVersionsResponse = ListGroupVersionsResponse'
{
ListGroupVersionsResponse -> Maybe [VersionInformation]
versions :: Prelude.Maybe [VersionInformation],
ListGroupVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListGroupVersionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListGroupVersionsResponse -> ListGroupVersionsResponse -> Bool
(ListGroupVersionsResponse -> ListGroupVersionsResponse -> Bool)
-> (ListGroupVersionsResponse -> ListGroupVersionsResponse -> Bool)
-> Eq ListGroupVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListGroupVersionsResponse -> ListGroupVersionsResponse -> Bool
$c/= :: ListGroupVersionsResponse -> ListGroupVersionsResponse -> Bool
== :: ListGroupVersionsResponse -> ListGroupVersionsResponse -> Bool
$c== :: ListGroupVersionsResponse -> ListGroupVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListGroupVersionsResponse]
ReadPrec ListGroupVersionsResponse
Int -> ReadS ListGroupVersionsResponse
ReadS [ListGroupVersionsResponse]
(Int -> ReadS ListGroupVersionsResponse)
-> ReadS [ListGroupVersionsResponse]
-> ReadPrec ListGroupVersionsResponse
-> ReadPrec [ListGroupVersionsResponse]
-> Read ListGroupVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListGroupVersionsResponse]
$creadListPrec :: ReadPrec [ListGroupVersionsResponse]
readPrec :: ReadPrec ListGroupVersionsResponse
$creadPrec :: ReadPrec ListGroupVersionsResponse
readList :: ReadS [ListGroupVersionsResponse]
$creadList :: ReadS [ListGroupVersionsResponse]
readsPrec :: Int -> ReadS ListGroupVersionsResponse
$creadsPrec :: Int -> ReadS ListGroupVersionsResponse
Prelude.Read, Int -> ListGroupVersionsResponse -> ShowS
[ListGroupVersionsResponse] -> ShowS
ListGroupVersionsResponse -> String
(Int -> ListGroupVersionsResponse -> ShowS)
-> (ListGroupVersionsResponse -> String)
-> ([ListGroupVersionsResponse] -> ShowS)
-> Show ListGroupVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListGroupVersionsResponse] -> ShowS
$cshowList :: [ListGroupVersionsResponse] -> ShowS
show :: ListGroupVersionsResponse -> String
$cshow :: ListGroupVersionsResponse -> String
showsPrec :: Int -> ListGroupVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListGroupVersionsResponse -> ShowS
Prelude.Show, (forall x.
ListGroupVersionsResponse -> Rep ListGroupVersionsResponse x)
-> (forall x.
Rep ListGroupVersionsResponse x -> ListGroupVersionsResponse)
-> Generic ListGroupVersionsResponse
forall x.
Rep ListGroupVersionsResponse x -> ListGroupVersionsResponse
forall x.
ListGroupVersionsResponse -> Rep ListGroupVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListGroupVersionsResponse x -> ListGroupVersionsResponse
$cfrom :: forall x.
ListGroupVersionsResponse -> Rep ListGroupVersionsResponse x
Prelude.Generic)
newListGroupVersionsResponse ::
Prelude.Int ->
ListGroupVersionsResponse
newListGroupVersionsResponse :: Int -> ListGroupVersionsResponse
newListGroupVersionsResponse Int
pHttpStatus_ =
ListGroupVersionsResponse' :: Maybe [VersionInformation]
-> Maybe Text -> Int -> ListGroupVersionsResponse
ListGroupVersionsResponse'
{ $sel:versions:ListGroupVersionsResponse' :: Maybe [VersionInformation]
versions =
Maybe [VersionInformation]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListGroupVersionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListGroupVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listGroupVersionsResponse_versions :: Lens.Lens' ListGroupVersionsResponse (Prelude.Maybe [VersionInformation])
listGroupVersionsResponse_versions :: (Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> ListGroupVersionsResponse -> f ListGroupVersionsResponse
listGroupVersionsResponse_versions = (ListGroupVersionsResponse -> Maybe [VersionInformation])
-> (ListGroupVersionsResponse
-> Maybe [VersionInformation] -> ListGroupVersionsResponse)
-> Lens' ListGroupVersionsResponse (Maybe [VersionInformation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupVersionsResponse' {Maybe [VersionInformation]
versions :: Maybe [VersionInformation]
$sel:versions:ListGroupVersionsResponse' :: ListGroupVersionsResponse -> Maybe [VersionInformation]
versions} -> Maybe [VersionInformation]
versions) (\s :: ListGroupVersionsResponse
s@ListGroupVersionsResponse' {} Maybe [VersionInformation]
a -> ListGroupVersionsResponse
s {$sel:versions:ListGroupVersionsResponse' :: Maybe [VersionInformation]
versions = Maybe [VersionInformation]
a} :: ListGroupVersionsResponse) ((Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> ListGroupVersionsResponse -> f ListGroupVersionsResponse)
-> ((Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> (Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> ListGroupVersionsResponse
-> f ListGroupVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[VersionInformation]
[VersionInformation]
[VersionInformation]
[VersionInformation]
-> Iso
(Maybe [VersionInformation])
(Maybe [VersionInformation])
(Maybe [VersionInformation])
(Maybe [VersionInformation])
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
[VersionInformation]
[VersionInformation]
[VersionInformation]
[VersionInformation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listGroupVersionsResponse_nextToken :: Lens.Lens' ListGroupVersionsResponse (Prelude.Maybe Prelude.Text)
listGroupVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListGroupVersionsResponse -> f ListGroupVersionsResponse
listGroupVersionsResponse_nextToken = (ListGroupVersionsResponse -> Maybe Text)
-> (ListGroupVersionsResponse
-> Maybe Text -> ListGroupVersionsResponse)
-> Lens' ListGroupVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListGroupVersionsResponse' :: ListGroupVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListGroupVersionsResponse
s@ListGroupVersionsResponse' {} Maybe Text
a -> ListGroupVersionsResponse
s {$sel:nextToken:ListGroupVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListGroupVersionsResponse)
listGroupVersionsResponse_httpStatus :: Lens.Lens' ListGroupVersionsResponse Prelude.Int
listGroupVersionsResponse_httpStatus :: (Int -> f Int)
-> ListGroupVersionsResponse -> f ListGroupVersionsResponse
listGroupVersionsResponse_httpStatus = (ListGroupVersionsResponse -> Int)
-> (ListGroupVersionsResponse -> Int -> ListGroupVersionsResponse)
-> Lens ListGroupVersionsResponse ListGroupVersionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListGroupVersionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListGroupVersionsResponse' :: ListGroupVersionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListGroupVersionsResponse
s@ListGroupVersionsResponse' {} Int
a -> ListGroupVersionsResponse
s {$sel:httpStatus:ListGroupVersionsResponse' :: Int
httpStatus = Int
a} :: ListGroupVersionsResponse)
instance Prelude.NFData ListGroupVersionsResponse