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