{-# 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.ListResourceDefinitions
(
ListResourceDefinitions (..),
newListResourceDefinitions,
listResourceDefinitions_nextToken,
listResourceDefinitions_maxResults,
ListResourceDefinitionsResponse (..),
newListResourceDefinitionsResponse,
listResourceDefinitionsResponse_nextToken,
listResourceDefinitionsResponse_definitions,
listResourceDefinitionsResponse_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 ListResourceDefinitions = ListResourceDefinitions'
{
ListResourceDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResourceDefinitions -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text
}
deriving (ListResourceDefinitions -> ListResourceDefinitions -> Bool
(ListResourceDefinitions -> ListResourceDefinitions -> Bool)
-> (ListResourceDefinitions -> ListResourceDefinitions -> Bool)
-> Eq ListResourceDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourceDefinitions -> ListResourceDefinitions -> Bool
$c/= :: ListResourceDefinitions -> ListResourceDefinitions -> Bool
== :: ListResourceDefinitions -> ListResourceDefinitions -> Bool
$c== :: ListResourceDefinitions -> ListResourceDefinitions -> Bool
Prelude.Eq, ReadPrec [ListResourceDefinitions]
ReadPrec ListResourceDefinitions
Int -> ReadS ListResourceDefinitions
ReadS [ListResourceDefinitions]
(Int -> ReadS ListResourceDefinitions)
-> ReadS [ListResourceDefinitions]
-> ReadPrec ListResourceDefinitions
-> ReadPrec [ListResourceDefinitions]
-> Read ListResourceDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourceDefinitions]
$creadListPrec :: ReadPrec [ListResourceDefinitions]
readPrec :: ReadPrec ListResourceDefinitions
$creadPrec :: ReadPrec ListResourceDefinitions
readList :: ReadS [ListResourceDefinitions]
$creadList :: ReadS [ListResourceDefinitions]
readsPrec :: Int -> ReadS ListResourceDefinitions
$creadsPrec :: Int -> ReadS ListResourceDefinitions
Prelude.Read, Int -> ListResourceDefinitions -> ShowS
[ListResourceDefinitions] -> ShowS
ListResourceDefinitions -> String
(Int -> ListResourceDefinitions -> ShowS)
-> (ListResourceDefinitions -> String)
-> ([ListResourceDefinitions] -> ShowS)
-> Show ListResourceDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourceDefinitions] -> ShowS
$cshowList :: [ListResourceDefinitions] -> ShowS
show :: ListResourceDefinitions -> String
$cshow :: ListResourceDefinitions -> String
showsPrec :: Int -> ListResourceDefinitions -> ShowS
$cshowsPrec :: Int -> ListResourceDefinitions -> ShowS
Prelude.Show, (forall x.
ListResourceDefinitions -> Rep ListResourceDefinitions x)
-> (forall x.
Rep ListResourceDefinitions x -> ListResourceDefinitions)
-> Generic ListResourceDefinitions
forall x. Rep ListResourceDefinitions x -> ListResourceDefinitions
forall x. ListResourceDefinitions -> Rep ListResourceDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListResourceDefinitions x -> ListResourceDefinitions
$cfrom :: forall x. ListResourceDefinitions -> Rep ListResourceDefinitions x
Prelude.Generic)
newListResourceDefinitions ::
ListResourceDefinitions
newListResourceDefinitions :: ListResourceDefinitions
newListResourceDefinitions =
ListResourceDefinitions' :: Maybe Text -> Maybe Text -> ListResourceDefinitions
ListResourceDefinitions'
{ $sel:nextToken:ListResourceDefinitions' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListResourceDefinitions' :: Maybe Text
maxResults = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listResourceDefinitions_nextToken :: Lens.Lens' ListResourceDefinitions (Prelude.Maybe Prelude.Text)
listResourceDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResourceDefinitions -> f ListResourceDefinitions
listResourceDefinitions_nextToken = (ListResourceDefinitions -> Maybe Text)
-> (ListResourceDefinitions
-> Maybe Text -> ListResourceDefinitions)
-> Lens
ListResourceDefinitions
ListResourceDefinitions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResourceDefinitions' :: ListResourceDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResourceDefinitions
s@ListResourceDefinitions' {} Maybe Text
a -> ListResourceDefinitions
s {$sel:nextToken:ListResourceDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListResourceDefinitions)
listResourceDefinitions_maxResults :: Lens.Lens' ListResourceDefinitions (Prelude.Maybe Prelude.Text)
listResourceDefinitions_maxResults :: (Maybe Text -> f (Maybe Text))
-> ListResourceDefinitions -> f ListResourceDefinitions
listResourceDefinitions_maxResults = (ListResourceDefinitions -> Maybe Text)
-> (ListResourceDefinitions
-> Maybe Text -> ListResourceDefinitions)
-> Lens
ListResourceDefinitions
ListResourceDefinitions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceDefinitions' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:ListResourceDefinitions' :: ListResourceDefinitions -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: ListResourceDefinitions
s@ListResourceDefinitions' {} Maybe Text
a -> ListResourceDefinitions
s {$sel:maxResults:ListResourceDefinitions' :: Maybe Text
maxResults = Maybe Text
a} :: ListResourceDefinitions)
instance Core.AWSPager ListResourceDefinitions where
page :: ListResourceDefinitions
-> AWSResponse ListResourceDefinitions
-> Maybe ListResourceDefinitions
page ListResourceDefinitions
rq AWSResponse ListResourceDefinitions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResourceDefinitions
ListResourceDefinitionsResponse
rs
ListResourceDefinitionsResponse
-> Getting (First Text) ListResourceDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceDefinitionsResponse
-> Const (First Text) ListResourceDefinitionsResponse
Lens' ListResourceDefinitionsResponse (Maybe Text)
listResourceDefinitionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceDefinitionsResponse
-> Const (First Text) ListResourceDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResourceDefinitionsResponse 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 ListResourceDefinitions
forall a. Maybe a
Prelude.Nothing
| Maybe [DefinitionInformation] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListResourceDefinitions
ListResourceDefinitionsResponse
rs
ListResourceDefinitionsResponse
-> Getting
(First [DefinitionInformation])
ListResourceDefinitionsResponse
[DefinitionInformation]
-> Maybe [DefinitionInformation]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DefinitionInformation]
-> Const
(First [DefinitionInformation]) (Maybe [DefinitionInformation]))
-> ListResourceDefinitionsResponse
-> Const
(First [DefinitionInformation]) ListResourceDefinitionsResponse
Lens'
ListResourceDefinitionsResponse (Maybe [DefinitionInformation])
listResourceDefinitionsResponse_definitions
((Maybe [DefinitionInformation]
-> Const
(First [DefinitionInformation]) (Maybe [DefinitionInformation]))
-> ListResourceDefinitionsResponse
-> Const
(First [DefinitionInformation]) ListResourceDefinitionsResponse)
-> (([DefinitionInformation]
-> Const (First [DefinitionInformation]) [DefinitionInformation])
-> Maybe [DefinitionInformation]
-> Const
(First [DefinitionInformation]) (Maybe [DefinitionInformation]))
-> Getting
(First [DefinitionInformation])
ListResourceDefinitionsResponse
[DefinitionInformation]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DefinitionInformation]
-> Const (First [DefinitionInformation]) [DefinitionInformation])
-> Maybe [DefinitionInformation]
-> Const
(First [DefinitionInformation]) (Maybe [DefinitionInformation])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListResourceDefinitions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListResourceDefinitions -> Maybe ListResourceDefinitions
forall a. a -> Maybe a
Prelude.Just (ListResourceDefinitions -> Maybe ListResourceDefinitions)
-> ListResourceDefinitions -> Maybe ListResourceDefinitions
forall a b. (a -> b) -> a -> b
Prelude.$
ListResourceDefinitions
rq
ListResourceDefinitions
-> (ListResourceDefinitions -> ListResourceDefinitions)
-> ListResourceDefinitions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListResourceDefinitions -> Identity ListResourceDefinitions
Lens
ListResourceDefinitions
ListResourceDefinitions
(Maybe Text)
(Maybe Text)
listResourceDefinitions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListResourceDefinitions -> Identity ListResourceDefinitions)
-> Maybe Text -> ListResourceDefinitions -> ListResourceDefinitions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListResourceDefinitions
ListResourceDefinitionsResponse
rs
ListResourceDefinitionsResponse
-> Getting (First Text) ListResourceDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceDefinitionsResponse
-> Const (First Text) ListResourceDefinitionsResponse
Lens' ListResourceDefinitionsResponse (Maybe Text)
listResourceDefinitionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListResourceDefinitionsResponse
-> Const (First Text) ListResourceDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListResourceDefinitionsResponse 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 ListResourceDefinitions where
type
AWSResponse ListResourceDefinitions =
ListResourceDefinitionsResponse
request :: ListResourceDefinitions -> Request ListResourceDefinitions
request = Service
-> ListResourceDefinitions -> Request ListResourceDefinitions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListResourceDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResourceDefinitions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListResourceDefinitions))
-> Logger
-> Service
-> Proxy ListResourceDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListResourceDefinitions)))
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 [DefinitionInformation]
-> Int
-> ListResourceDefinitionsResponse
ListResourceDefinitionsResponse'
(Maybe Text
-> Maybe [DefinitionInformation]
-> Int
-> ListResourceDefinitionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [DefinitionInformation]
-> Int -> ListResourceDefinitionsResponse)
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
"NextToken")
Either
String
(Maybe [DefinitionInformation]
-> Int -> ListResourceDefinitionsResponse)
-> Either String (Maybe [DefinitionInformation])
-> Either String (Int -> ListResourceDefinitionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [DefinitionInformation]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Definitions" Either String (Maybe (Maybe [DefinitionInformation]))
-> Maybe [DefinitionInformation]
-> Either String (Maybe [DefinitionInformation])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DefinitionInformation]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListResourceDefinitionsResponse)
-> Either String Int
-> Either String ListResourceDefinitionsResponse
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 ListResourceDefinitions
instance Prelude.NFData ListResourceDefinitions
instance Core.ToHeaders ListResourceDefinitions where
toHeaders :: ListResourceDefinitions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListResourceDefinitions -> 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 ListResourceDefinitions where
toPath :: ListResourceDefinitions -> ByteString
toPath =
ByteString -> ListResourceDefinitions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/greengrass/definition/resources"
instance Core.ToQuery ListResourceDefinitions where
toQuery :: ListResourceDefinitions -> QueryString
toQuery ListResourceDefinitions' {Maybe Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:ListResourceDefinitions' :: ListResourceDefinitions -> Maybe Text
$sel:nextToken:ListResourceDefinitions' :: ListResourceDefinitions -> 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 ListResourceDefinitionsResponse = ListResourceDefinitionsResponse'
{
ListResourceDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListResourceDefinitionsResponse -> Maybe [DefinitionInformation]
definitions :: Prelude.Maybe [DefinitionInformation],
ListResourceDefinitionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListResourceDefinitionsResponse
-> ListResourceDefinitionsResponse -> Bool
(ListResourceDefinitionsResponse
-> ListResourceDefinitionsResponse -> Bool)
-> (ListResourceDefinitionsResponse
-> ListResourceDefinitionsResponse -> Bool)
-> Eq ListResourceDefinitionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListResourceDefinitionsResponse
-> ListResourceDefinitionsResponse -> Bool
$c/= :: ListResourceDefinitionsResponse
-> ListResourceDefinitionsResponse -> Bool
== :: ListResourceDefinitionsResponse
-> ListResourceDefinitionsResponse -> Bool
$c== :: ListResourceDefinitionsResponse
-> ListResourceDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListResourceDefinitionsResponse]
ReadPrec ListResourceDefinitionsResponse
Int -> ReadS ListResourceDefinitionsResponse
ReadS [ListResourceDefinitionsResponse]
(Int -> ReadS ListResourceDefinitionsResponse)
-> ReadS [ListResourceDefinitionsResponse]
-> ReadPrec ListResourceDefinitionsResponse
-> ReadPrec [ListResourceDefinitionsResponse]
-> Read ListResourceDefinitionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListResourceDefinitionsResponse]
$creadListPrec :: ReadPrec [ListResourceDefinitionsResponse]
readPrec :: ReadPrec ListResourceDefinitionsResponse
$creadPrec :: ReadPrec ListResourceDefinitionsResponse
readList :: ReadS [ListResourceDefinitionsResponse]
$creadList :: ReadS [ListResourceDefinitionsResponse]
readsPrec :: Int -> ReadS ListResourceDefinitionsResponse
$creadsPrec :: Int -> ReadS ListResourceDefinitionsResponse
Prelude.Read, Int -> ListResourceDefinitionsResponse -> ShowS
[ListResourceDefinitionsResponse] -> ShowS
ListResourceDefinitionsResponse -> String
(Int -> ListResourceDefinitionsResponse -> ShowS)
-> (ListResourceDefinitionsResponse -> String)
-> ([ListResourceDefinitionsResponse] -> ShowS)
-> Show ListResourceDefinitionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListResourceDefinitionsResponse] -> ShowS
$cshowList :: [ListResourceDefinitionsResponse] -> ShowS
show :: ListResourceDefinitionsResponse -> String
$cshow :: ListResourceDefinitionsResponse -> String
showsPrec :: Int -> ListResourceDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListResourceDefinitionsResponse -> ShowS
Prelude.Show, (forall x.
ListResourceDefinitionsResponse
-> Rep ListResourceDefinitionsResponse x)
-> (forall x.
Rep ListResourceDefinitionsResponse x
-> ListResourceDefinitionsResponse)
-> Generic ListResourceDefinitionsResponse
forall x.
Rep ListResourceDefinitionsResponse x
-> ListResourceDefinitionsResponse
forall x.
ListResourceDefinitionsResponse
-> Rep ListResourceDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListResourceDefinitionsResponse x
-> ListResourceDefinitionsResponse
$cfrom :: forall x.
ListResourceDefinitionsResponse
-> Rep ListResourceDefinitionsResponse x
Prelude.Generic)
newListResourceDefinitionsResponse ::
Prelude.Int ->
ListResourceDefinitionsResponse
newListResourceDefinitionsResponse :: Int -> ListResourceDefinitionsResponse
newListResourceDefinitionsResponse Int
pHttpStatus_ =
ListResourceDefinitionsResponse' :: Maybe Text
-> Maybe [DefinitionInformation]
-> Int
-> ListResourceDefinitionsResponse
ListResourceDefinitionsResponse'
{ $sel:nextToken:ListResourceDefinitionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:definitions:ListResourceDefinitionsResponse' :: Maybe [DefinitionInformation]
definitions = Maybe [DefinitionInformation]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListResourceDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listResourceDefinitionsResponse_nextToken :: Lens.Lens' ListResourceDefinitionsResponse (Prelude.Maybe Prelude.Text)
listResourceDefinitionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListResourceDefinitionsResponse
-> f ListResourceDefinitionsResponse
listResourceDefinitionsResponse_nextToken = (ListResourceDefinitionsResponse -> Maybe Text)
-> (ListResourceDefinitionsResponse
-> Maybe Text -> ListResourceDefinitionsResponse)
-> Lens' ListResourceDefinitionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListResourceDefinitionsResponse' :: ListResourceDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListResourceDefinitionsResponse
s@ListResourceDefinitionsResponse' {} Maybe Text
a -> ListResourceDefinitionsResponse
s {$sel:nextToken:ListResourceDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListResourceDefinitionsResponse)
listResourceDefinitionsResponse_definitions :: Lens.Lens' ListResourceDefinitionsResponse (Prelude.Maybe [DefinitionInformation])
listResourceDefinitionsResponse_definitions :: (Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> ListResourceDefinitionsResponse
-> f ListResourceDefinitionsResponse
listResourceDefinitionsResponse_definitions = (ListResourceDefinitionsResponse -> Maybe [DefinitionInformation])
-> (ListResourceDefinitionsResponse
-> Maybe [DefinitionInformation]
-> ListResourceDefinitionsResponse)
-> Lens'
ListResourceDefinitionsResponse (Maybe [DefinitionInformation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceDefinitionsResponse' {Maybe [DefinitionInformation]
definitions :: Maybe [DefinitionInformation]
$sel:definitions:ListResourceDefinitionsResponse' :: ListResourceDefinitionsResponse -> Maybe [DefinitionInformation]
definitions} -> Maybe [DefinitionInformation]
definitions) (\s :: ListResourceDefinitionsResponse
s@ListResourceDefinitionsResponse' {} Maybe [DefinitionInformation]
a -> ListResourceDefinitionsResponse
s {$sel:definitions:ListResourceDefinitionsResponse' :: Maybe [DefinitionInformation]
definitions = Maybe [DefinitionInformation]
a} :: ListResourceDefinitionsResponse) ((Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> ListResourceDefinitionsResponse
-> f ListResourceDefinitionsResponse)
-> ((Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> (Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> ListResourceDefinitionsResponse
-> f ListResourceDefinitionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DefinitionInformation]
[DefinitionInformation]
[DefinitionInformation]
[DefinitionInformation]
-> Iso
(Maybe [DefinitionInformation])
(Maybe [DefinitionInformation])
(Maybe [DefinitionInformation])
(Maybe [DefinitionInformation])
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
[DefinitionInformation]
[DefinitionInformation]
[DefinitionInformation]
[DefinitionInformation]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listResourceDefinitionsResponse_httpStatus :: Lens.Lens' ListResourceDefinitionsResponse Prelude.Int
listResourceDefinitionsResponse_httpStatus :: (Int -> f Int)
-> ListResourceDefinitionsResponse
-> f ListResourceDefinitionsResponse
listResourceDefinitionsResponse_httpStatus = (ListResourceDefinitionsResponse -> Int)
-> (ListResourceDefinitionsResponse
-> Int -> ListResourceDefinitionsResponse)
-> Lens
ListResourceDefinitionsResponse
ListResourceDefinitionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListResourceDefinitionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListResourceDefinitionsResponse' :: ListResourceDefinitionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListResourceDefinitionsResponse
s@ListResourceDefinitionsResponse' {} Int
a -> ListResourceDefinitionsResponse
s {$sel:httpStatus:ListResourceDefinitionsResponse' :: Int
httpStatus = Int
a} :: ListResourceDefinitionsResponse)
instance
Prelude.NFData
ListResourceDefinitionsResponse