{-# 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.IoT.ListProvisioningTemplates
(
ListProvisioningTemplates (..),
newListProvisioningTemplates,
listProvisioningTemplates_nextToken,
listProvisioningTemplates_maxResults,
ListProvisioningTemplatesResponse (..),
newListProvisioningTemplatesResponse,
listProvisioningTemplatesResponse_templates,
listProvisioningTemplatesResponse_nextToken,
listProvisioningTemplatesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.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 ListProvisioningTemplates = ListProvisioningTemplates'
{
ListProvisioningTemplates -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProvisioningTemplates -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListProvisioningTemplates -> ListProvisioningTemplates -> Bool
(ListProvisioningTemplates -> ListProvisioningTemplates -> Bool)
-> (ListProvisioningTemplates -> ListProvisioningTemplates -> Bool)
-> Eq ListProvisioningTemplates
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProvisioningTemplates -> ListProvisioningTemplates -> Bool
$c/= :: ListProvisioningTemplates -> ListProvisioningTemplates -> Bool
== :: ListProvisioningTemplates -> ListProvisioningTemplates -> Bool
$c== :: ListProvisioningTemplates -> ListProvisioningTemplates -> Bool
Prelude.Eq, ReadPrec [ListProvisioningTemplates]
ReadPrec ListProvisioningTemplates
Int -> ReadS ListProvisioningTemplates
ReadS [ListProvisioningTemplates]
(Int -> ReadS ListProvisioningTemplates)
-> ReadS [ListProvisioningTemplates]
-> ReadPrec ListProvisioningTemplates
-> ReadPrec [ListProvisioningTemplates]
-> Read ListProvisioningTemplates
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProvisioningTemplates]
$creadListPrec :: ReadPrec [ListProvisioningTemplates]
readPrec :: ReadPrec ListProvisioningTemplates
$creadPrec :: ReadPrec ListProvisioningTemplates
readList :: ReadS [ListProvisioningTemplates]
$creadList :: ReadS [ListProvisioningTemplates]
readsPrec :: Int -> ReadS ListProvisioningTemplates
$creadsPrec :: Int -> ReadS ListProvisioningTemplates
Prelude.Read, Int -> ListProvisioningTemplates -> ShowS
[ListProvisioningTemplates] -> ShowS
ListProvisioningTemplates -> String
(Int -> ListProvisioningTemplates -> ShowS)
-> (ListProvisioningTemplates -> String)
-> ([ListProvisioningTemplates] -> ShowS)
-> Show ListProvisioningTemplates
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProvisioningTemplates] -> ShowS
$cshowList :: [ListProvisioningTemplates] -> ShowS
show :: ListProvisioningTemplates -> String
$cshow :: ListProvisioningTemplates -> String
showsPrec :: Int -> ListProvisioningTemplates -> ShowS
$cshowsPrec :: Int -> ListProvisioningTemplates -> ShowS
Prelude.Show, (forall x.
ListProvisioningTemplates -> Rep ListProvisioningTemplates x)
-> (forall x.
Rep ListProvisioningTemplates x -> ListProvisioningTemplates)
-> Generic ListProvisioningTemplates
forall x.
Rep ListProvisioningTemplates x -> ListProvisioningTemplates
forall x.
ListProvisioningTemplates -> Rep ListProvisioningTemplates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProvisioningTemplates x -> ListProvisioningTemplates
$cfrom :: forall x.
ListProvisioningTemplates -> Rep ListProvisioningTemplates x
Prelude.Generic)
newListProvisioningTemplates ::
ListProvisioningTemplates
newListProvisioningTemplates :: ListProvisioningTemplates
newListProvisioningTemplates =
ListProvisioningTemplates' :: Maybe Text -> Maybe Natural -> ListProvisioningTemplates
ListProvisioningTemplates'
{ $sel:nextToken:ListProvisioningTemplates' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListProvisioningTemplates' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listProvisioningTemplates_nextToken :: Lens.Lens' ListProvisioningTemplates (Prelude.Maybe Prelude.Text)
listProvisioningTemplates_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProvisioningTemplates -> f ListProvisioningTemplates
listProvisioningTemplates_nextToken = (ListProvisioningTemplates -> Maybe Text)
-> (ListProvisioningTemplates
-> Maybe Text -> ListProvisioningTemplates)
-> Lens
ListProvisioningTemplates
ListProvisioningTemplates
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisioningTemplates' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProvisioningTemplates' :: ListProvisioningTemplates -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProvisioningTemplates
s@ListProvisioningTemplates' {} Maybe Text
a -> ListProvisioningTemplates
s {$sel:nextToken:ListProvisioningTemplates' :: Maybe Text
nextToken = Maybe Text
a} :: ListProvisioningTemplates)
listProvisioningTemplates_maxResults :: Lens.Lens' ListProvisioningTemplates (Prelude.Maybe Prelude.Natural)
listProvisioningTemplates_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListProvisioningTemplates -> f ListProvisioningTemplates
listProvisioningTemplates_maxResults = (ListProvisioningTemplates -> Maybe Natural)
-> (ListProvisioningTemplates
-> Maybe Natural -> ListProvisioningTemplates)
-> Lens
ListProvisioningTemplates
ListProvisioningTemplates
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisioningTemplates' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListProvisioningTemplates' :: ListProvisioningTemplates -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListProvisioningTemplates
s@ListProvisioningTemplates' {} Maybe Natural
a -> ListProvisioningTemplates
s {$sel:maxResults:ListProvisioningTemplates' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListProvisioningTemplates)
instance Core.AWSPager ListProvisioningTemplates where
page :: ListProvisioningTemplates
-> AWSResponse ListProvisioningTemplates
-> Maybe ListProvisioningTemplates
page ListProvisioningTemplates
rq AWSResponse ListProvisioningTemplates
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListProvisioningTemplates
ListProvisioningTemplatesResponse
rs
ListProvisioningTemplatesResponse
-> Getting (First Text) ListProvisioningTemplatesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListProvisioningTemplatesResponse
-> Const (First Text) ListProvisioningTemplatesResponse
Lens' ListProvisioningTemplatesResponse (Maybe Text)
listProvisioningTemplatesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListProvisioningTemplatesResponse
-> Const (First Text) ListProvisioningTemplatesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListProvisioningTemplatesResponse 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 ListProvisioningTemplates
forall a. Maybe a
Prelude.Nothing
| Maybe [ProvisioningTemplateSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListProvisioningTemplates
ListProvisioningTemplatesResponse
rs
ListProvisioningTemplatesResponse
-> Getting
(First [ProvisioningTemplateSummary])
ListProvisioningTemplatesResponse
[ProvisioningTemplateSummary]
-> Maybe [ProvisioningTemplateSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ProvisioningTemplateSummary]
-> Const
(First [ProvisioningTemplateSummary])
(Maybe [ProvisioningTemplateSummary]))
-> ListProvisioningTemplatesResponse
-> Const
(First [ProvisioningTemplateSummary])
ListProvisioningTemplatesResponse
Lens'
ListProvisioningTemplatesResponse
(Maybe [ProvisioningTemplateSummary])
listProvisioningTemplatesResponse_templates
((Maybe [ProvisioningTemplateSummary]
-> Const
(First [ProvisioningTemplateSummary])
(Maybe [ProvisioningTemplateSummary]))
-> ListProvisioningTemplatesResponse
-> Const
(First [ProvisioningTemplateSummary])
ListProvisioningTemplatesResponse)
-> (([ProvisioningTemplateSummary]
-> Const
(First [ProvisioningTemplateSummary])
[ProvisioningTemplateSummary])
-> Maybe [ProvisioningTemplateSummary]
-> Const
(First [ProvisioningTemplateSummary])
(Maybe [ProvisioningTemplateSummary]))
-> Getting
(First [ProvisioningTemplateSummary])
ListProvisioningTemplatesResponse
[ProvisioningTemplateSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ProvisioningTemplateSummary]
-> Const
(First [ProvisioningTemplateSummary])
[ProvisioningTemplateSummary])
-> Maybe [ProvisioningTemplateSummary]
-> Const
(First [ProvisioningTemplateSummary])
(Maybe [ProvisioningTemplateSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListProvisioningTemplates
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListProvisioningTemplates -> Maybe ListProvisioningTemplates
forall a. a -> Maybe a
Prelude.Just (ListProvisioningTemplates -> Maybe ListProvisioningTemplates)
-> ListProvisioningTemplates -> Maybe ListProvisioningTemplates
forall a b. (a -> b) -> a -> b
Prelude.$
ListProvisioningTemplates
rq
ListProvisioningTemplates
-> (ListProvisioningTemplates -> ListProvisioningTemplates)
-> ListProvisioningTemplates
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListProvisioningTemplates -> Identity ListProvisioningTemplates
Lens
ListProvisioningTemplates
ListProvisioningTemplates
(Maybe Text)
(Maybe Text)
listProvisioningTemplates_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListProvisioningTemplates -> Identity ListProvisioningTemplates)
-> Maybe Text
-> ListProvisioningTemplates
-> ListProvisioningTemplates
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListProvisioningTemplates
ListProvisioningTemplatesResponse
rs
ListProvisioningTemplatesResponse
-> Getting (First Text) ListProvisioningTemplatesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListProvisioningTemplatesResponse
-> Const (First Text) ListProvisioningTemplatesResponse
Lens' ListProvisioningTemplatesResponse (Maybe Text)
listProvisioningTemplatesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListProvisioningTemplatesResponse
-> Const (First Text) ListProvisioningTemplatesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListProvisioningTemplatesResponse 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 ListProvisioningTemplates where
type
AWSResponse ListProvisioningTemplates =
ListProvisioningTemplatesResponse
request :: ListProvisioningTemplates -> Request ListProvisioningTemplates
request = Service
-> ListProvisioningTemplates -> Request ListProvisioningTemplates
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListProvisioningTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListProvisioningTemplates)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListProvisioningTemplates))
-> Logger
-> Service
-> Proxy ListProvisioningTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListProvisioningTemplates)))
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 [ProvisioningTemplateSummary]
-> Maybe Text -> Int -> ListProvisioningTemplatesResponse
ListProvisioningTemplatesResponse'
(Maybe [ProvisioningTemplateSummary]
-> Maybe Text -> Int -> ListProvisioningTemplatesResponse)
-> Either String (Maybe [ProvisioningTemplateSummary])
-> Either
String (Maybe Text -> Int -> ListProvisioningTemplatesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [ProvisioningTemplateSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"templates" Either String (Maybe (Maybe [ProvisioningTemplateSummary]))
-> Maybe [ProvisioningTemplateSummary]
-> Either String (Maybe [ProvisioningTemplateSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ProvisioningTemplateSummary]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> ListProvisioningTemplatesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListProvisioningTemplatesResponse)
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 -> ListProvisioningTemplatesResponse)
-> Either String Int
-> Either String ListProvisioningTemplatesResponse
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 ListProvisioningTemplates
instance Prelude.NFData ListProvisioningTemplates
instance Core.ToHeaders ListProvisioningTemplates where
toHeaders :: ListProvisioningTemplates -> ResponseHeaders
toHeaders = ResponseHeaders -> ListProvisioningTemplates -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListProvisioningTemplates where
toPath :: ListProvisioningTemplates -> ByteString
toPath = ByteString -> ListProvisioningTemplates -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/provisioning-templates"
instance Core.ToQuery ListProvisioningTemplates where
toQuery :: ListProvisioningTemplates -> QueryString
toQuery ListProvisioningTemplates' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListProvisioningTemplates' :: ListProvisioningTemplates -> Maybe Natural
$sel:nextToken:ListProvisioningTemplates' :: ListProvisioningTemplates -> 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 Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListProvisioningTemplatesResponse = ListProvisioningTemplatesResponse'
{
ListProvisioningTemplatesResponse
-> Maybe [ProvisioningTemplateSummary]
templates :: Prelude.Maybe [ProvisioningTemplateSummary],
ListProvisioningTemplatesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProvisioningTemplatesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListProvisioningTemplatesResponse
-> ListProvisioningTemplatesResponse -> Bool
(ListProvisioningTemplatesResponse
-> ListProvisioningTemplatesResponse -> Bool)
-> (ListProvisioningTemplatesResponse
-> ListProvisioningTemplatesResponse -> Bool)
-> Eq ListProvisioningTemplatesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProvisioningTemplatesResponse
-> ListProvisioningTemplatesResponse -> Bool
$c/= :: ListProvisioningTemplatesResponse
-> ListProvisioningTemplatesResponse -> Bool
== :: ListProvisioningTemplatesResponse
-> ListProvisioningTemplatesResponse -> Bool
$c== :: ListProvisioningTemplatesResponse
-> ListProvisioningTemplatesResponse -> Bool
Prelude.Eq, ReadPrec [ListProvisioningTemplatesResponse]
ReadPrec ListProvisioningTemplatesResponse
Int -> ReadS ListProvisioningTemplatesResponse
ReadS [ListProvisioningTemplatesResponse]
(Int -> ReadS ListProvisioningTemplatesResponse)
-> ReadS [ListProvisioningTemplatesResponse]
-> ReadPrec ListProvisioningTemplatesResponse
-> ReadPrec [ListProvisioningTemplatesResponse]
-> Read ListProvisioningTemplatesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProvisioningTemplatesResponse]
$creadListPrec :: ReadPrec [ListProvisioningTemplatesResponse]
readPrec :: ReadPrec ListProvisioningTemplatesResponse
$creadPrec :: ReadPrec ListProvisioningTemplatesResponse
readList :: ReadS [ListProvisioningTemplatesResponse]
$creadList :: ReadS [ListProvisioningTemplatesResponse]
readsPrec :: Int -> ReadS ListProvisioningTemplatesResponse
$creadsPrec :: Int -> ReadS ListProvisioningTemplatesResponse
Prelude.Read, Int -> ListProvisioningTemplatesResponse -> ShowS
[ListProvisioningTemplatesResponse] -> ShowS
ListProvisioningTemplatesResponse -> String
(Int -> ListProvisioningTemplatesResponse -> ShowS)
-> (ListProvisioningTemplatesResponse -> String)
-> ([ListProvisioningTemplatesResponse] -> ShowS)
-> Show ListProvisioningTemplatesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProvisioningTemplatesResponse] -> ShowS
$cshowList :: [ListProvisioningTemplatesResponse] -> ShowS
show :: ListProvisioningTemplatesResponse -> String
$cshow :: ListProvisioningTemplatesResponse -> String
showsPrec :: Int -> ListProvisioningTemplatesResponse -> ShowS
$cshowsPrec :: Int -> ListProvisioningTemplatesResponse -> ShowS
Prelude.Show, (forall x.
ListProvisioningTemplatesResponse
-> Rep ListProvisioningTemplatesResponse x)
-> (forall x.
Rep ListProvisioningTemplatesResponse x
-> ListProvisioningTemplatesResponse)
-> Generic ListProvisioningTemplatesResponse
forall x.
Rep ListProvisioningTemplatesResponse x
-> ListProvisioningTemplatesResponse
forall x.
ListProvisioningTemplatesResponse
-> Rep ListProvisioningTemplatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProvisioningTemplatesResponse x
-> ListProvisioningTemplatesResponse
$cfrom :: forall x.
ListProvisioningTemplatesResponse
-> Rep ListProvisioningTemplatesResponse x
Prelude.Generic)
newListProvisioningTemplatesResponse ::
Prelude.Int ->
ListProvisioningTemplatesResponse
newListProvisioningTemplatesResponse :: Int -> ListProvisioningTemplatesResponse
newListProvisioningTemplatesResponse Int
pHttpStatus_ =
ListProvisioningTemplatesResponse' :: Maybe [ProvisioningTemplateSummary]
-> Maybe Text -> Int -> ListProvisioningTemplatesResponse
ListProvisioningTemplatesResponse'
{ $sel:templates:ListProvisioningTemplatesResponse' :: Maybe [ProvisioningTemplateSummary]
templates =
Maybe [ProvisioningTemplateSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListProvisioningTemplatesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListProvisioningTemplatesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listProvisioningTemplatesResponse_templates :: Lens.Lens' ListProvisioningTemplatesResponse (Prelude.Maybe [ProvisioningTemplateSummary])
listProvisioningTemplatesResponse_templates :: (Maybe [ProvisioningTemplateSummary]
-> f (Maybe [ProvisioningTemplateSummary]))
-> ListProvisioningTemplatesResponse
-> f ListProvisioningTemplatesResponse
listProvisioningTemplatesResponse_templates = (ListProvisioningTemplatesResponse
-> Maybe [ProvisioningTemplateSummary])
-> (ListProvisioningTemplatesResponse
-> Maybe [ProvisioningTemplateSummary]
-> ListProvisioningTemplatesResponse)
-> Lens'
ListProvisioningTemplatesResponse
(Maybe [ProvisioningTemplateSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisioningTemplatesResponse' {Maybe [ProvisioningTemplateSummary]
templates :: Maybe [ProvisioningTemplateSummary]
$sel:templates:ListProvisioningTemplatesResponse' :: ListProvisioningTemplatesResponse
-> Maybe [ProvisioningTemplateSummary]
templates} -> Maybe [ProvisioningTemplateSummary]
templates) (\s :: ListProvisioningTemplatesResponse
s@ListProvisioningTemplatesResponse' {} Maybe [ProvisioningTemplateSummary]
a -> ListProvisioningTemplatesResponse
s {$sel:templates:ListProvisioningTemplatesResponse' :: Maybe [ProvisioningTemplateSummary]
templates = Maybe [ProvisioningTemplateSummary]
a} :: ListProvisioningTemplatesResponse) ((Maybe [ProvisioningTemplateSummary]
-> f (Maybe [ProvisioningTemplateSummary]))
-> ListProvisioningTemplatesResponse
-> f ListProvisioningTemplatesResponse)
-> ((Maybe [ProvisioningTemplateSummary]
-> f (Maybe [ProvisioningTemplateSummary]))
-> Maybe [ProvisioningTemplateSummary]
-> f (Maybe [ProvisioningTemplateSummary]))
-> (Maybe [ProvisioningTemplateSummary]
-> f (Maybe [ProvisioningTemplateSummary]))
-> ListProvisioningTemplatesResponse
-> f ListProvisioningTemplatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ProvisioningTemplateSummary]
[ProvisioningTemplateSummary]
[ProvisioningTemplateSummary]
[ProvisioningTemplateSummary]
-> Iso
(Maybe [ProvisioningTemplateSummary])
(Maybe [ProvisioningTemplateSummary])
(Maybe [ProvisioningTemplateSummary])
(Maybe [ProvisioningTemplateSummary])
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
[ProvisioningTemplateSummary]
[ProvisioningTemplateSummary]
[ProvisioningTemplateSummary]
[ProvisioningTemplateSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listProvisioningTemplatesResponse_nextToken :: Lens.Lens' ListProvisioningTemplatesResponse (Prelude.Maybe Prelude.Text)
listProvisioningTemplatesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProvisioningTemplatesResponse
-> f ListProvisioningTemplatesResponse
listProvisioningTemplatesResponse_nextToken = (ListProvisioningTemplatesResponse -> Maybe Text)
-> (ListProvisioningTemplatesResponse
-> Maybe Text -> ListProvisioningTemplatesResponse)
-> Lens' ListProvisioningTemplatesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisioningTemplatesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProvisioningTemplatesResponse' :: ListProvisioningTemplatesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProvisioningTemplatesResponse
s@ListProvisioningTemplatesResponse' {} Maybe Text
a -> ListProvisioningTemplatesResponse
s {$sel:nextToken:ListProvisioningTemplatesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListProvisioningTemplatesResponse)
listProvisioningTemplatesResponse_httpStatus :: Lens.Lens' ListProvisioningTemplatesResponse Prelude.Int
listProvisioningTemplatesResponse_httpStatus :: (Int -> f Int)
-> ListProvisioningTemplatesResponse
-> f ListProvisioningTemplatesResponse
listProvisioningTemplatesResponse_httpStatus = (ListProvisioningTemplatesResponse -> Int)
-> (ListProvisioningTemplatesResponse
-> Int -> ListProvisioningTemplatesResponse)
-> Lens
ListProvisioningTemplatesResponse
ListProvisioningTemplatesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProvisioningTemplatesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListProvisioningTemplatesResponse' :: ListProvisioningTemplatesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListProvisioningTemplatesResponse
s@ListProvisioningTemplatesResponse' {} Int
a -> ListProvisioningTemplatesResponse
s {$sel:httpStatus:ListProvisioningTemplatesResponse' :: Int
httpStatus = Int
a} :: ListProvisioningTemplatesResponse)
instance
Prelude.NFData
ListProvisioningTemplatesResponse