{-# 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.ListCoreDefinitions
(
ListCoreDefinitions (..),
newListCoreDefinitions,
listCoreDefinitions_nextToken,
listCoreDefinitions_maxResults,
ListCoreDefinitionsResponse (..),
newListCoreDefinitionsResponse,
listCoreDefinitionsResponse_nextToken,
listCoreDefinitionsResponse_definitions,
listCoreDefinitionsResponse_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 ListCoreDefinitions = ListCoreDefinitions'
{
ListCoreDefinitions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCoreDefinitions -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text
}
deriving (ListCoreDefinitions -> ListCoreDefinitions -> Bool
(ListCoreDefinitions -> ListCoreDefinitions -> Bool)
-> (ListCoreDefinitions -> ListCoreDefinitions -> Bool)
-> Eq ListCoreDefinitions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCoreDefinitions -> ListCoreDefinitions -> Bool
$c/= :: ListCoreDefinitions -> ListCoreDefinitions -> Bool
== :: ListCoreDefinitions -> ListCoreDefinitions -> Bool
$c== :: ListCoreDefinitions -> ListCoreDefinitions -> Bool
Prelude.Eq, ReadPrec [ListCoreDefinitions]
ReadPrec ListCoreDefinitions
Int -> ReadS ListCoreDefinitions
ReadS [ListCoreDefinitions]
(Int -> ReadS ListCoreDefinitions)
-> ReadS [ListCoreDefinitions]
-> ReadPrec ListCoreDefinitions
-> ReadPrec [ListCoreDefinitions]
-> Read ListCoreDefinitions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCoreDefinitions]
$creadListPrec :: ReadPrec [ListCoreDefinitions]
readPrec :: ReadPrec ListCoreDefinitions
$creadPrec :: ReadPrec ListCoreDefinitions
readList :: ReadS [ListCoreDefinitions]
$creadList :: ReadS [ListCoreDefinitions]
readsPrec :: Int -> ReadS ListCoreDefinitions
$creadsPrec :: Int -> ReadS ListCoreDefinitions
Prelude.Read, Int -> ListCoreDefinitions -> ShowS
[ListCoreDefinitions] -> ShowS
ListCoreDefinitions -> String
(Int -> ListCoreDefinitions -> ShowS)
-> (ListCoreDefinitions -> String)
-> ([ListCoreDefinitions] -> ShowS)
-> Show ListCoreDefinitions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCoreDefinitions] -> ShowS
$cshowList :: [ListCoreDefinitions] -> ShowS
show :: ListCoreDefinitions -> String
$cshow :: ListCoreDefinitions -> String
showsPrec :: Int -> ListCoreDefinitions -> ShowS
$cshowsPrec :: Int -> ListCoreDefinitions -> ShowS
Prelude.Show, (forall x. ListCoreDefinitions -> Rep ListCoreDefinitions x)
-> (forall x. Rep ListCoreDefinitions x -> ListCoreDefinitions)
-> Generic ListCoreDefinitions
forall x. Rep ListCoreDefinitions x -> ListCoreDefinitions
forall x. ListCoreDefinitions -> Rep ListCoreDefinitions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCoreDefinitions x -> ListCoreDefinitions
$cfrom :: forall x. ListCoreDefinitions -> Rep ListCoreDefinitions x
Prelude.Generic)
newListCoreDefinitions ::
ListCoreDefinitions
newListCoreDefinitions :: ListCoreDefinitions
newListCoreDefinitions =
ListCoreDefinitions' :: Maybe Text -> Maybe Text -> ListCoreDefinitions
ListCoreDefinitions'
{ $sel:nextToken:ListCoreDefinitions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListCoreDefinitions' :: Maybe Text
maxResults = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listCoreDefinitions_nextToken :: Lens.Lens' ListCoreDefinitions (Prelude.Maybe Prelude.Text)
listCoreDefinitions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCoreDefinitions -> f ListCoreDefinitions
listCoreDefinitions_nextToken = (ListCoreDefinitions -> Maybe Text)
-> (ListCoreDefinitions -> Maybe Text -> ListCoreDefinitions)
-> Lens
ListCoreDefinitions ListCoreDefinitions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCoreDefinitions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCoreDefinitions' :: ListCoreDefinitions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCoreDefinitions
s@ListCoreDefinitions' {} Maybe Text
a -> ListCoreDefinitions
s {$sel:nextToken:ListCoreDefinitions' :: Maybe Text
nextToken = Maybe Text
a} :: ListCoreDefinitions)
listCoreDefinitions_maxResults :: Lens.Lens' ListCoreDefinitions (Prelude.Maybe Prelude.Text)
listCoreDefinitions_maxResults :: (Maybe Text -> f (Maybe Text))
-> ListCoreDefinitions -> f ListCoreDefinitions
listCoreDefinitions_maxResults = (ListCoreDefinitions -> Maybe Text)
-> (ListCoreDefinitions -> Maybe Text -> ListCoreDefinitions)
-> Lens
ListCoreDefinitions ListCoreDefinitions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCoreDefinitions' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:ListCoreDefinitions' :: ListCoreDefinitions -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: ListCoreDefinitions
s@ListCoreDefinitions' {} Maybe Text
a -> ListCoreDefinitions
s {$sel:maxResults:ListCoreDefinitions' :: Maybe Text
maxResults = Maybe Text
a} :: ListCoreDefinitions)
instance Core.AWSPager ListCoreDefinitions where
page :: ListCoreDefinitions
-> AWSResponse ListCoreDefinitions -> Maybe ListCoreDefinitions
page ListCoreDefinitions
rq AWSResponse ListCoreDefinitions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCoreDefinitions
ListCoreDefinitionsResponse
rs
ListCoreDefinitionsResponse
-> Getting (First Text) ListCoreDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCoreDefinitionsResponse
-> Const (First Text) ListCoreDefinitionsResponse
Lens' ListCoreDefinitionsResponse (Maybe Text)
listCoreDefinitionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCoreDefinitionsResponse
-> Const (First Text) ListCoreDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCoreDefinitionsResponse 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 ListCoreDefinitions
forall a. Maybe a
Prelude.Nothing
| Maybe [DefinitionInformation] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListCoreDefinitions
ListCoreDefinitionsResponse
rs
ListCoreDefinitionsResponse
-> Getting
(First [DefinitionInformation])
ListCoreDefinitionsResponse
[DefinitionInformation]
-> Maybe [DefinitionInformation]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DefinitionInformation]
-> Const
(First [DefinitionInformation]) (Maybe [DefinitionInformation]))
-> ListCoreDefinitionsResponse
-> Const
(First [DefinitionInformation]) ListCoreDefinitionsResponse
Lens' ListCoreDefinitionsResponse (Maybe [DefinitionInformation])
listCoreDefinitionsResponse_definitions
((Maybe [DefinitionInformation]
-> Const
(First [DefinitionInformation]) (Maybe [DefinitionInformation]))
-> ListCoreDefinitionsResponse
-> Const
(First [DefinitionInformation]) ListCoreDefinitionsResponse)
-> (([DefinitionInformation]
-> Const (First [DefinitionInformation]) [DefinitionInformation])
-> Maybe [DefinitionInformation]
-> Const
(First [DefinitionInformation]) (Maybe [DefinitionInformation]))
-> Getting
(First [DefinitionInformation])
ListCoreDefinitionsResponse
[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 ListCoreDefinitions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListCoreDefinitions -> Maybe ListCoreDefinitions
forall a. a -> Maybe a
Prelude.Just (ListCoreDefinitions -> Maybe ListCoreDefinitions)
-> ListCoreDefinitions -> Maybe ListCoreDefinitions
forall a b. (a -> b) -> a -> b
Prelude.$
ListCoreDefinitions
rq
ListCoreDefinitions
-> (ListCoreDefinitions -> ListCoreDefinitions)
-> ListCoreDefinitions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListCoreDefinitions -> Identity ListCoreDefinitions
Lens
ListCoreDefinitions ListCoreDefinitions (Maybe Text) (Maybe Text)
listCoreDefinitions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListCoreDefinitions -> Identity ListCoreDefinitions)
-> Maybe Text -> ListCoreDefinitions -> ListCoreDefinitions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListCoreDefinitions
ListCoreDefinitionsResponse
rs
ListCoreDefinitionsResponse
-> Getting (First Text) ListCoreDefinitionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListCoreDefinitionsResponse
-> Const (First Text) ListCoreDefinitionsResponse
Lens' ListCoreDefinitionsResponse (Maybe Text)
listCoreDefinitionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListCoreDefinitionsResponse
-> Const (First Text) ListCoreDefinitionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListCoreDefinitionsResponse 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 ListCoreDefinitions where
type
AWSResponse ListCoreDefinitions =
ListCoreDefinitionsResponse
request :: ListCoreDefinitions -> Request ListCoreDefinitions
request = Service -> ListCoreDefinitions -> Request ListCoreDefinitions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListCoreDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListCoreDefinitions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListCoreDefinitions))
-> Logger
-> Service
-> Proxy ListCoreDefinitions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListCoreDefinitions)))
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
-> ListCoreDefinitionsResponse
ListCoreDefinitionsResponse'
(Maybe Text
-> Maybe [DefinitionInformation]
-> Int
-> ListCoreDefinitionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [DefinitionInformation]
-> Int -> ListCoreDefinitionsResponse)
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 -> ListCoreDefinitionsResponse)
-> Either String (Maybe [DefinitionInformation])
-> Either String (Int -> ListCoreDefinitionsResponse)
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 -> ListCoreDefinitionsResponse)
-> Either String Int -> Either String ListCoreDefinitionsResponse
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 ListCoreDefinitions
instance Prelude.NFData ListCoreDefinitions
instance Core.ToHeaders ListCoreDefinitions where
toHeaders :: ListCoreDefinitions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListCoreDefinitions -> 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 ListCoreDefinitions where
toPath :: ListCoreDefinitions -> ByteString
toPath = ByteString -> ListCoreDefinitions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/greengrass/definition/cores"
instance Core.ToQuery ListCoreDefinitions where
toQuery :: ListCoreDefinitions -> QueryString
toQuery ListCoreDefinitions' {Maybe Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:ListCoreDefinitions' :: ListCoreDefinitions -> Maybe Text
$sel:nextToken:ListCoreDefinitions' :: ListCoreDefinitions -> 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 ListCoreDefinitionsResponse = ListCoreDefinitionsResponse'
{
ListCoreDefinitionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCoreDefinitionsResponse -> Maybe [DefinitionInformation]
definitions :: Prelude.Maybe [DefinitionInformation],
ListCoreDefinitionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListCoreDefinitionsResponse -> ListCoreDefinitionsResponse -> Bool
(ListCoreDefinitionsResponse
-> ListCoreDefinitionsResponse -> Bool)
-> (ListCoreDefinitionsResponse
-> ListCoreDefinitionsResponse -> Bool)
-> Eq ListCoreDefinitionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCoreDefinitionsResponse -> ListCoreDefinitionsResponse -> Bool
$c/= :: ListCoreDefinitionsResponse -> ListCoreDefinitionsResponse -> Bool
== :: ListCoreDefinitionsResponse -> ListCoreDefinitionsResponse -> Bool
$c== :: ListCoreDefinitionsResponse -> ListCoreDefinitionsResponse -> Bool
Prelude.Eq, ReadPrec [ListCoreDefinitionsResponse]
ReadPrec ListCoreDefinitionsResponse
Int -> ReadS ListCoreDefinitionsResponse
ReadS [ListCoreDefinitionsResponse]
(Int -> ReadS ListCoreDefinitionsResponse)
-> ReadS [ListCoreDefinitionsResponse]
-> ReadPrec ListCoreDefinitionsResponse
-> ReadPrec [ListCoreDefinitionsResponse]
-> Read ListCoreDefinitionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCoreDefinitionsResponse]
$creadListPrec :: ReadPrec [ListCoreDefinitionsResponse]
readPrec :: ReadPrec ListCoreDefinitionsResponse
$creadPrec :: ReadPrec ListCoreDefinitionsResponse
readList :: ReadS [ListCoreDefinitionsResponse]
$creadList :: ReadS [ListCoreDefinitionsResponse]
readsPrec :: Int -> ReadS ListCoreDefinitionsResponse
$creadsPrec :: Int -> ReadS ListCoreDefinitionsResponse
Prelude.Read, Int -> ListCoreDefinitionsResponse -> ShowS
[ListCoreDefinitionsResponse] -> ShowS
ListCoreDefinitionsResponse -> String
(Int -> ListCoreDefinitionsResponse -> ShowS)
-> (ListCoreDefinitionsResponse -> String)
-> ([ListCoreDefinitionsResponse] -> ShowS)
-> Show ListCoreDefinitionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCoreDefinitionsResponse] -> ShowS
$cshowList :: [ListCoreDefinitionsResponse] -> ShowS
show :: ListCoreDefinitionsResponse -> String
$cshow :: ListCoreDefinitionsResponse -> String
showsPrec :: Int -> ListCoreDefinitionsResponse -> ShowS
$cshowsPrec :: Int -> ListCoreDefinitionsResponse -> ShowS
Prelude.Show, (forall x.
ListCoreDefinitionsResponse -> Rep ListCoreDefinitionsResponse x)
-> (forall x.
Rep ListCoreDefinitionsResponse x -> ListCoreDefinitionsResponse)
-> Generic ListCoreDefinitionsResponse
forall x.
Rep ListCoreDefinitionsResponse x -> ListCoreDefinitionsResponse
forall x.
ListCoreDefinitionsResponse -> Rep ListCoreDefinitionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCoreDefinitionsResponse x -> ListCoreDefinitionsResponse
$cfrom :: forall x.
ListCoreDefinitionsResponse -> Rep ListCoreDefinitionsResponse x
Prelude.Generic)
newListCoreDefinitionsResponse ::
Prelude.Int ->
ListCoreDefinitionsResponse
newListCoreDefinitionsResponse :: Int -> ListCoreDefinitionsResponse
newListCoreDefinitionsResponse Int
pHttpStatus_ =
ListCoreDefinitionsResponse' :: Maybe Text
-> Maybe [DefinitionInformation]
-> Int
-> ListCoreDefinitionsResponse
ListCoreDefinitionsResponse'
{ $sel:nextToken:ListCoreDefinitionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:definitions:ListCoreDefinitionsResponse' :: Maybe [DefinitionInformation]
definitions = Maybe [DefinitionInformation]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListCoreDefinitionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listCoreDefinitionsResponse_nextToken :: Lens.Lens' ListCoreDefinitionsResponse (Prelude.Maybe Prelude.Text)
listCoreDefinitionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCoreDefinitionsResponse -> f ListCoreDefinitionsResponse
listCoreDefinitionsResponse_nextToken = (ListCoreDefinitionsResponse -> Maybe Text)
-> (ListCoreDefinitionsResponse
-> Maybe Text -> ListCoreDefinitionsResponse)
-> Lens' ListCoreDefinitionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCoreDefinitionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCoreDefinitionsResponse' :: ListCoreDefinitionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCoreDefinitionsResponse
s@ListCoreDefinitionsResponse' {} Maybe Text
a -> ListCoreDefinitionsResponse
s {$sel:nextToken:ListCoreDefinitionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCoreDefinitionsResponse)
listCoreDefinitionsResponse_definitions :: Lens.Lens' ListCoreDefinitionsResponse (Prelude.Maybe [DefinitionInformation])
listCoreDefinitionsResponse_definitions :: (Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> ListCoreDefinitionsResponse -> f ListCoreDefinitionsResponse
listCoreDefinitionsResponse_definitions = (ListCoreDefinitionsResponse -> Maybe [DefinitionInformation])
-> (ListCoreDefinitionsResponse
-> Maybe [DefinitionInformation] -> ListCoreDefinitionsResponse)
-> Lens'
ListCoreDefinitionsResponse (Maybe [DefinitionInformation])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCoreDefinitionsResponse' {Maybe [DefinitionInformation]
definitions :: Maybe [DefinitionInformation]
$sel:definitions:ListCoreDefinitionsResponse' :: ListCoreDefinitionsResponse -> Maybe [DefinitionInformation]
definitions} -> Maybe [DefinitionInformation]
definitions) (\s :: ListCoreDefinitionsResponse
s@ListCoreDefinitionsResponse' {} Maybe [DefinitionInformation]
a -> ListCoreDefinitionsResponse
s {$sel:definitions:ListCoreDefinitionsResponse' :: Maybe [DefinitionInformation]
definitions = Maybe [DefinitionInformation]
a} :: ListCoreDefinitionsResponse) ((Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> ListCoreDefinitionsResponse -> f ListCoreDefinitionsResponse)
-> ((Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> (Maybe [DefinitionInformation]
-> f (Maybe [DefinitionInformation]))
-> ListCoreDefinitionsResponse
-> f ListCoreDefinitionsResponse
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
listCoreDefinitionsResponse_httpStatus :: Lens.Lens' ListCoreDefinitionsResponse Prelude.Int
listCoreDefinitionsResponse_httpStatus :: (Int -> f Int)
-> ListCoreDefinitionsResponse -> f ListCoreDefinitionsResponse
listCoreDefinitionsResponse_httpStatus = (ListCoreDefinitionsResponse -> Int)
-> (ListCoreDefinitionsResponse
-> Int -> ListCoreDefinitionsResponse)
-> Lens
ListCoreDefinitionsResponse ListCoreDefinitionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCoreDefinitionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCoreDefinitionsResponse' :: ListCoreDefinitionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCoreDefinitionsResponse
s@ListCoreDefinitionsResponse' {} Int
a -> ListCoreDefinitionsResponse
s {$sel:httpStatus:ListCoreDefinitionsResponse' :: Int
httpStatus = Int
a} :: ListCoreDefinitionsResponse)
instance Prelude.NFData ListCoreDefinitionsResponse