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