{-# 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.ListFunctionDefinitionVersions
(
ListFunctionDefinitionVersions (..),
newListFunctionDefinitionVersions,
listFunctionDefinitionVersions_nextToken,
listFunctionDefinitionVersions_maxResults,
listFunctionDefinitionVersions_functionDefinitionId,
ListFunctionDefinitionVersionsResponse (..),
newListFunctionDefinitionVersionsResponse,
listFunctionDefinitionVersionsResponse_versions,
listFunctionDefinitionVersionsResponse_nextToken,
listFunctionDefinitionVersionsResponse_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 ListFunctionDefinitionVersions = ListFunctionDefinitionVersions'
{
ListFunctionDefinitionVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFunctionDefinitionVersions -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
ListFunctionDefinitionVersions -> Text
functionDefinitionId :: Prelude.Text
}
deriving (ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions -> Bool
(ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions -> Bool)
-> (ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions -> Bool)
-> Eq ListFunctionDefinitionVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions -> Bool
$c/= :: ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions -> Bool
== :: ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions -> Bool
$c== :: ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions -> Bool
Prelude.Eq, ReadPrec [ListFunctionDefinitionVersions]
ReadPrec ListFunctionDefinitionVersions
Int -> ReadS ListFunctionDefinitionVersions
ReadS [ListFunctionDefinitionVersions]
(Int -> ReadS ListFunctionDefinitionVersions)
-> ReadS [ListFunctionDefinitionVersions]
-> ReadPrec ListFunctionDefinitionVersions
-> ReadPrec [ListFunctionDefinitionVersions]
-> Read ListFunctionDefinitionVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFunctionDefinitionVersions]
$creadListPrec :: ReadPrec [ListFunctionDefinitionVersions]
readPrec :: ReadPrec ListFunctionDefinitionVersions
$creadPrec :: ReadPrec ListFunctionDefinitionVersions
readList :: ReadS [ListFunctionDefinitionVersions]
$creadList :: ReadS [ListFunctionDefinitionVersions]
readsPrec :: Int -> ReadS ListFunctionDefinitionVersions
$creadsPrec :: Int -> ReadS ListFunctionDefinitionVersions
Prelude.Read, Int -> ListFunctionDefinitionVersions -> ShowS
[ListFunctionDefinitionVersions] -> ShowS
ListFunctionDefinitionVersions -> String
(Int -> ListFunctionDefinitionVersions -> ShowS)
-> (ListFunctionDefinitionVersions -> String)
-> ([ListFunctionDefinitionVersions] -> ShowS)
-> Show ListFunctionDefinitionVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFunctionDefinitionVersions] -> ShowS
$cshowList :: [ListFunctionDefinitionVersions] -> ShowS
show :: ListFunctionDefinitionVersions -> String
$cshow :: ListFunctionDefinitionVersions -> String
showsPrec :: Int -> ListFunctionDefinitionVersions -> ShowS
$cshowsPrec :: Int -> ListFunctionDefinitionVersions -> ShowS
Prelude.Show, (forall x.
ListFunctionDefinitionVersions
-> Rep ListFunctionDefinitionVersions x)
-> (forall x.
Rep ListFunctionDefinitionVersions x
-> ListFunctionDefinitionVersions)
-> Generic ListFunctionDefinitionVersions
forall x.
Rep ListFunctionDefinitionVersions x
-> ListFunctionDefinitionVersions
forall x.
ListFunctionDefinitionVersions
-> Rep ListFunctionDefinitionVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFunctionDefinitionVersions x
-> ListFunctionDefinitionVersions
$cfrom :: forall x.
ListFunctionDefinitionVersions
-> Rep ListFunctionDefinitionVersions x
Prelude.Generic)
newListFunctionDefinitionVersions ::
Prelude.Text ->
ListFunctionDefinitionVersions
newListFunctionDefinitionVersions :: Text -> ListFunctionDefinitionVersions
newListFunctionDefinitionVersions
Text
pFunctionDefinitionId_ =
ListFunctionDefinitionVersions' :: Maybe Text -> Maybe Text -> Text -> ListFunctionDefinitionVersions
ListFunctionDefinitionVersions'
{ $sel:nextToken:ListFunctionDefinitionVersions' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListFunctionDefinitionVersions' :: Maybe Text
maxResults = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:functionDefinitionId:ListFunctionDefinitionVersions' :: Text
functionDefinitionId =
Text
pFunctionDefinitionId_
}
listFunctionDefinitionVersions_nextToken :: Lens.Lens' ListFunctionDefinitionVersions (Prelude.Maybe Prelude.Text)
listFunctionDefinitionVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFunctionDefinitionVersions
-> f ListFunctionDefinitionVersions
listFunctionDefinitionVersions_nextToken = (ListFunctionDefinitionVersions -> Maybe Text)
-> (ListFunctionDefinitionVersions
-> Maybe Text -> ListFunctionDefinitionVersions)
-> Lens
ListFunctionDefinitionVersions
ListFunctionDefinitionVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionDefinitionVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFunctionDefinitionVersions
s@ListFunctionDefinitionVersions' {} Maybe Text
a -> ListFunctionDefinitionVersions
s {$sel:nextToken:ListFunctionDefinitionVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListFunctionDefinitionVersions)
listFunctionDefinitionVersions_maxResults :: Lens.Lens' ListFunctionDefinitionVersions (Prelude.Maybe Prelude.Text)
listFunctionDefinitionVersions_maxResults :: (Maybe Text -> f (Maybe Text))
-> ListFunctionDefinitionVersions
-> f ListFunctionDefinitionVersions
listFunctionDefinitionVersions_maxResults = (ListFunctionDefinitionVersions -> Maybe Text)
-> (ListFunctionDefinitionVersions
-> Maybe Text -> ListFunctionDefinitionVersions)
-> Lens
ListFunctionDefinitionVersions
ListFunctionDefinitionVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionDefinitionVersions' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: ListFunctionDefinitionVersions
s@ListFunctionDefinitionVersions' {} Maybe Text
a -> ListFunctionDefinitionVersions
s {$sel:maxResults:ListFunctionDefinitionVersions' :: Maybe Text
maxResults = Maybe Text
a} :: ListFunctionDefinitionVersions)
listFunctionDefinitionVersions_functionDefinitionId :: Lens.Lens' ListFunctionDefinitionVersions Prelude.Text
listFunctionDefinitionVersions_functionDefinitionId :: (Text -> f Text)
-> ListFunctionDefinitionVersions
-> f ListFunctionDefinitionVersions
listFunctionDefinitionVersions_functionDefinitionId = (ListFunctionDefinitionVersions -> Text)
-> (ListFunctionDefinitionVersions
-> Text -> ListFunctionDefinitionVersions)
-> Lens
ListFunctionDefinitionVersions
ListFunctionDefinitionVersions
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionDefinitionVersions' {Text
functionDefinitionId :: Text
$sel:functionDefinitionId:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Text
functionDefinitionId} -> Text
functionDefinitionId) (\s :: ListFunctionDefinitionVersions
s@ListFunctionDefinitionVersions' {} Text
a -> ListFunctionDefinitionVersions
s {$sel:functionDefinitionId:ListFunctionDefinitionVersions' :: Text
functionDefinitionId = Text
a} :: ListFunctionDefinitionVersions)
instance Core.AWSPager ListFunctionDefinitionVersions where
page :: ListFunctionDefinitionVersions
-> AWSResponse ListFunctionDefinitionVersions
-> Maybe ListFunctionDefinitionVersions
page ListFunctionDefinitionVersions
rq AWSResponse ListFunctionDefinitionVersions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFunctionDefinitionVersions
ListFunctionDefinitionVersionsResponse
rs
ListFunctionDefinitionVersionsResponse
-> Getting (First Text) ListFunctionDefinitionVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFunctionDefinitionVersionsResponse
-> Const (First Text) ListFunctionDefinitionVersionsResponse
Lens' ListFunctionDefinitionVersionsResponse (Maybe Text)
listFunctionDefinitionVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFunctionDefinitionVersionsResponse
-> Const (First Text) ListFunctionDefinitionVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFunctionDefinitionVersionsResponse 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 ListFunctionDefinitionVersions
forall a. Maybe a
Prelude.Nothing
| Maybe [VersionInformation] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFunctionDefinitionVersions
ListFunctionDefinitionVersionsResponse
rs
ListFunctionDefinitionVersionsResponse
-> Getting
(First [VersionInformation])
ListFunctionDefinitionVersionsResponse
[VersionInformation]
-> Maybe [VersionInformation]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [VersionInformation]
-> Const (First [VersionInformation]) (Maybe [VersionInformation]))
-> ListFunctionDefinitionVersionsResponse
-> Const
(First [VersionInformation]) ListFunctionDefinitionVersionsResponse
Lens'
ListFunctionDefinitionVersionsResponse (Maybe [VersionInformation])
listFunctionDefinitionVersionsResponse_versions
((Maybe [VersionInformation]
-> Const (First [VersionInformation]) (Maybe [VersionInformation]))
-> ListFunctionDefinitionVersionsResponse
-> Const
(First [VersionInformation])
ListFunctionDefinitionVersionsResponse)
-> (([VersionInformation]
-> Const (First [VersionInformation]) [VersionInformation])
-> Maybe [VersionInformation]
-> Const (First [VersionInformation]) (Maybe [VersionInformation]))
-> Getting
(First [VersionInformation])
ListFunctionDefinitionVersionsResponse
[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 ListFunctionDefinitionVersions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListFunctionDefinitionVersions
-> Maybe ListFunctionDefinitionVersions
forall a. a -> Maybe a
Prelude.Just (ListFunctionDefinitionVersions
-> Maybe ListFunctionDefinitionVersions)
-> ListFunctionDefinitionVersions
-> Maybe ListFunctionDefinitionVersions
forall a b. (a -> b) -> a -> b
Prelude.$
ListFunctionDefinitionVersions
rq
ListFunctionDefinitionVersions
-> (ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions)
-> ListFunctionDefinitionVersions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListFunctionDefinitionVersions
-> Identity ListFunctionDefinitionVersions
Lens
ListFunctionDefinitionVersions
ListFunctionDefinitionVersions
(Maybe Text)
(Maybe Text)
listFunctionDefinitionVersions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListFunctionDefinitionVersions
-> Identity ListFunctionDefinitionVersions)
-> Maybe Text
-> ListFunctionDefinitionVersions
-> ListFunctionDefinitionVersions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFunctionDefinitionVersions
ListFunctionDefinitionVersionsResponse
rs
ListFunctionDefinitionVersionsResponse
-> Getting (First Text) ListFunctionDefinitionVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFunctionDefinitionVersionsResponse
-> Const (First Text) ListFunctionDefinitionVersionsResponse
Lens' ListFunctionDefinitionVersionsResponse (Maybe Text)
listFunctionDefinitionVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFunctionDefinitionVersionsResponse
-> Const (First Text) ListFunctionDefinitionVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFunctionDefinitionVersionsResponse 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
ListFunctionDefinitionVersions
where
type
AWSResponse ListFunctionDefinitionVersions =
ListFunctionDefinitionVersionsResponse
request :: ListFunctionDefinitionVersions
-> Request ListFunctionDefinitionVersions
request = Service
-> ListFunctionDefinitionVersions
-> Request ListFunctionDefinitionVersions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListFunctionDefinitionVersions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListFunctionDefinitionVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListFunctionDefinitionVersions))
-> Logger
-> Service
-> Proxy ListFunctionDefinitionVersions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListFunctionDefinitionVersions)))
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 -> ListFunctionDefinitionVersionsResponse
ListFunctionDefinitionVersionsResponse'
(Maybe [VersionInformation]
-> Maybe Text -> Int -> ListFunctionDefinitionVersionsResponse)
-> Either String (Maybe [VersionInformation])
-> Either
String
(Maybe Text -> Int -> ListFunctionDefinitionVersionsResponse)
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 -> ListFunctionDefinitionVersionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListFunctionDefinitionVersionsResponse)
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 -> ListFunctionDefinitionVersionsResponse)
-> Either String Int
-> Either String ListFunctionDefinitionVersionsResponse
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
ListFunctionDefinitionVersions
instance
Prelude.NFData
ListFunctionDefinitionVersions
instance
Core.ToHeaders
ListFunctionDefinitionVersions
where
toHeaders :: ListFunctionDefinitionVersions -> ResponseHeaders
toHeaders =
ResponseHeaders
-> ListFunctionDefinitionVersions -> 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 ListFunctionDefinitionVersions where
toPath :: ListFunctionDefinitionVersions -> ByteString
toPath ListFunctionDefinitionVersions' {Maybe Text
Text
functionDefinitionId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:functionDefinitionId:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Text
$sel:maxResults:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Maybe Text
$sel:nextToken:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/greengrass/definition/functions/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
functionDefinitionId,
ByteString
"/versions"
]
instance Core.ToQuery ListFunctionDefinitionVersions where
toQuery :: ListFunctionDefinitionVersions -> QueryString
toQuery ListFunctionDefinitionVersions' {Maybe Text
Text
functionDefinitionId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:functionDefinitionId:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Text
$sel:maxResults:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> Maybe Text
$sel:nextToken:ListFunctionDefinitionVersions' :: ListFunctionDefinitionVersions -> 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 ListFunctionDefinitionVersionsResponse = ListFunctionDefinitionVersionsResponse'
{
ListFunctionDefinitionVersionsResponse
-> Maybe [VersionInformation]
versions :: Prelude.Maybe [VersionInformation],
ListFunctionDefinitionVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFunctionDefinitionVersionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListFunctionDefinitionVersionsResponse
-> ListFunctionDefinitionVersionsResponse -> Bool
(ListFunctionDefinitionVersionsResponse
-> ListFunctionDefinitionVersionsResponse -> Bool)
-> (ListFunctionDefinitionVersionsResponse
-> ListFunctionDefinitionVersionsResponse -> Bool)
-> Eq ListFunctionDefinitionVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFunctionDefinitionVersionsResponse
-> ListFunctionDefinitionVersionsResponse -> Bool
$c/= :: ListFunctionDefinitionVersionsResponse
-> ListFunctionDefinitionVersionsResponse -> Bool
== :: ListFunctionDefinitionVersionsResponse
-> ListFunctionDefinitionVersionsResponse -> Bool
$c== :: ListFunctionDefinitionVersionsResponse
-> ListFunctionDefinitionVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListFunctionDefinitionVersionsResponse]
ReadPrec ListFunctionDefinitionVersionsResponse
Int -> ReadS ListFunctionDefinitionVersionsResponse
ReadS [ListFunctionDefinitionVersionsResponse]
(Int -> ReadS ListFunctionDefinitionVersionsResponse)
-> ReadS [ListFunctionDefinitionVersionsResponse]
-> ReadPrec ListFunctionDefinitionVersionsResponse
-> ReadPrec [ListFunctionDefinitionVersionsResponse]
-> Read ListFunctionDefinitionVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFunctionDefinitionVersionsResponse]
$creadListPrec :: ReadPrec [ListFunctionDefinitionVersionsResponse]
readPrec :: ReadPrec ListFunctionDefinitionVersionsResponse
$creadPrec :: ReadPrec ListFunctionDefinitionVersionsResponse
readList :: ReadS [ListFunctionDefinitionVersionsResponse]
$creadList :: ReadS [ListFunctionDefinitionVersionsResponse]
readsPrec :: Int -> ReadS ListFunctionDefinitionVersionsResponse
$creadsPrec :: Int -> ReadS ListFunctionDefinitionVersionsResponse
Prelude.Read, Int -> ListFunctionDefinitionVersionsResponse -> ShowS
[ListFunctionDefinitionVersionsResponse] -> ShowS
ListFunctionDefinitionVersionsResponse -> String
(Int -> ListFunctionDefinitionVersionsResponse -> ShowS)
-> (ListFunctionDefinitionVersionsResponse -> String)
-> ([ListFunctionDefinitionVersionsResponse] -> ShowS)
-> Show ListFunctionDefinitionVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFunctionDefinitionVersionsResponse] -> ShowS
$cshowList :: [ListFunctionDefinitionVersionsResponse] -> ShowS
show :: ListFunctionDefinitionVersionsResponse -> String
$cshow :: ListFunctionDefinitionVersionsResponse -> String
showsPrec :: Int -> ListFunctionDefinitionVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListFunctionDefinitionVersionsResponse -> ShowS
Prelude.Show, (forall x.
ListFunctionDefinitionVersionsResponse
-> Rep ListFunctionDefinitionVersionsResponse x)
-> (forall x.
Rep ListFunctionDefinitionVersionsResponse x
-> ListFunctionDefinitionVersionsResponse)
-> Generic ListFunctionDefinitionVersionsResponse
forall x.
Rep ListFunctionDefinitionVersionsResponse x
-> ListFunctionDefinitionVersionsResponse
forall x.
ListFunctionDefinitionVersionsResponse
-> Rep ListFunctionDefinitionVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFunctionDefinitionVersionsResponse x
-> ListFunctionDefinitionVersionsResponse
$cfrom :: forall x.
ListFunctionDefinitionVersionsResponse
-> Rep ListFunctionDefinitionVersionsResponse x
Prelude.Generic)
newListFunctionDefinitionVersionsResponse ::
Prelude.Int ->
ListFunctionDefinitionVersionsResponse
newListFunctionDefinitionVersionsResponse :: Int -> ListFunctionDefinitionVersionsResponse
newListFunctionDefinitionVersionsResponse
Int
pHttpStatus_ =
ListFunctionDefinitionVersionsResponse' :: Maybe [VersionInformation]
-> Maybe Text -> Int -> ListFunctionDefinitionVersionsResponse
ListFunctionDefinitionVersionsResponse'
{ $sel:versions:ListFunctionDefinitionVersionsResponse' :: Maybe [VersionInformation]
versions =
Maybe [VersionInformation]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListFunctionDefinitionVersionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListFunctionDefinitionVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listFunctionDefinitionVersionsResponse_versions :: Lens.Lens' ListFunctionDefinitionVersionsResponse (Prelude.Maybe [VersionInformation])
listFunctionDefinitionVersionsResponse_versions :: (Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> ListFunctionDefinitionVersionsResponse
-> f ListFunctionDefinitionVersionsResponse
listFunctionDefinitionVersionsResponse_versions = (ListFunctionDefinitionVersionsResponse
-> Maybe [VersionInformation])
-> (ListFunctionDefinitionVersionsResponse
-> Maybe [VersionInformation]
-> ListFunctionDefinitionVersionsResponse)
-> Lens'
ListFunctionDefinitionVersionsResponse (Maybe [VersionInformation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionDefinitionVersionsResponse' {Maybe [VersionInformation]
versions :: Maybe [VersionInformation]
$sel:versions:ListFunctionDefinitionVersionsResponse' :: ListFunctionDefinitionVersionsResponse
-> Maybe [VersionInformation]
versions} -> Maybe [VersionInformation]
versions) (\s :: ListFunctionDefinitionVersionsResponse
s@ListFunctionDefinitionVersionsResponse' {} Maybe [VersionInformation]
a -> ListFunctionDefinitionVersionsResponse
s {$sel:versions:ListFunctionDefinitionVersionsResponse' :: Maybe [VersionInformation]
versions = Maybe [VersionInformation]
a} :: ListFunctionDefinitionVersionsResponse) ((Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> ListFunctionDefinitionVersionsResponse
-> f ListFunctionDefinitionVersionsResponse)
-> ((Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> (Maybe [VersionInformation] -> f (Maybe [VersionInformation]))
-> ListFunctionDefinitionVersionsResponse
-> f ListFunctionDefinitionVersionsResponse
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
listFunctionDefinitionVersionsResponse_nextToken :: Lens.Lens' ListFunctionDefinitionVersionsResponse (Prelude.Maybe Prelude.Text)
listFunctionDefinitionVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFunctionDefinitionVersionsResponse
-> f ListFunctionDefinitionVersionsResponse
listFunctionDefinitionVersionsResponse_nextToken = (ListFunctionDefinitionVersionsResponse -> Maybe Text)
-> (ListFunctionDefinitionVersionsResponse
-> Maybe Text -> ListFunctionDefinitionVersionsResponse)
-> Lens' ListFunctionDefinitionVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionDefinitionVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFunctionDefinitionVersionsResponse' :: ListFunctionDefinitionVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFunctionDefinitionVersionsResponse
s@ListFunctionDefinitionVersionsResponse' {} Maybe Text
a -> ListFunctionDefinitionVersionsResponse
s {$sel:nextToken:ListFunctionDefinitionVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFunctionDefinitionVersionsResponse)
listFunctionDefinitionVersionsResponse_httpStatus :: Lens.Lens' ListFunctionDefinitionVersionsResponse Prelude.Int
listFunctionDefinitionVersionsResponse_httpStatus :: (Int -> f Int)
-> ListFunctionDefinitionVersionsResponse
-> f ListFunctionDefinitionVersionsResponse
listFunctionDefinitionVersionsResponse_httpStatus = (ListFunctionDefinitionVersionsResponse -> Int)
-> (ListFunctionDefinitionVersionsResponse
-> Int -> ListFunctionDefinitionVersionsResponse)
-> Lens
ListFunctionDefinitionVersionsResponse
ListFunctionDefinitionVersionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFunctionDefinitionVersionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListFunctionDefinitionVersionsResponse' :: ListFunctionDefinitionVersionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListFunctionDefinitionVersionsResponse
s@ListFunctionDefinitionVersionsResponse' {} Int
a -> ListFunctionDefinitionVersionsResponse
s {$sel:httpStatus:ListFunctionDefinitionVersionsResponse' :: Int
httpStatus = Int
a} :: ListFunctionDefinitionVersionsResponse)
instance
Prelude.NFData
ListFunctionDefinitionVersionsResponse