{-# 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.Proton.ListEnvironmentTemplates
(
ListEnvironmentTemplates (..),
newListEnvironmentTemplates,
listEnvironmentTemplates_nextToken,
listEnvironmentTemplates_maxResults,
ListEnvironmentTemplatesResponse (..),
newListEnvironmentTemplatesResponse,
listEnvironmentTemplatesResponse_nextToken,
listEnvironmentTemplatesResponse_httpStatus,
listEnvironmentTemplatesResponse_templates,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListEnvironmentTemplates = ListEnvironmentTemplates'
{
ListEnvironmentTemplates -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListEnvironmentTemplates -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListEnvironmentTemplates -> ListEnvironmentTemplates -> Bool
(ListEnvironmentTemplates -> ListEnvironmentTemplates -> Bool)
-> (ListEnvironmentTemplates -> ListEnvironmentTemplates -> Bool)
-> Eq ListEnvironmentTemplates
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEnvironmentTemplates -> ListEnvironmentTemplates -> Bool
$c/= :: ListEnvironmentTemplates -> ListEnvironmentTemplates -> Bool
== :: ListEnvironmentTemplates -> ListEnvironmentTemplates -> Bool
$c== :: ListEnvironmentTemplates -> ListEnvironmentTemplates -> Bool
Prelude.Eq, ReadPrec [ListEnvironmentTemplates]
ReadPrec ListEnvironmentTemplates
Int -> ReadS ListEnvironmentTemplates
ReadS [ListEnvironmentTemplates]
(Int -> ReadS ListEnvironmentTemplates)
-> ReadS [ListEnvironmentTemplates]
-> ReadPrec ListEnvironmentTemplates
-> ReadPrec [ListEnvironmentTemplates]
-> Read ListEnvironmentTemplates
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEnvironmentTemplates]
$creadListPrec :: ReadPrec [ListEnvironmentTemplates]
readPrec :: ReadPrec ListEnvironmentTemplates
$creadPrec :: ReadPrec ListEnvironmentTemplates
readList :: ReadS [ListEnvironmentTemplates]
$creadList :: ReadS [ListEnvironmentTemplates]
readsPrec :: Int -> ReadS ListEnvironmentTemplates
$creadsPrec :: Int -> ReadS ListEnvironmentTemplates
Prelude.Read, Int -> ListEnvironmentTemplates -> ShowS
[ListEnvironmentTemplates] -> ShowS
ListEnvironmentTemplates -> String
(Int -> ListEnvironmentTemplates -> ShowS)
-> (ListEnvironmentTemplates -> String)
-> ([ListEnvironmentTemplates] -> ShowS)
-> Show ListEnvironmentTemplates
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEnvironmentTemplates] -> ShowS
$cshowList :: [ListEnvironmentTemplates] -> ShowS
show :: ListEnvironmentTemplates -> String
$cshow :: ListEnvironmentTemplates -> String
showsPrec :: Int -> ListEnvironmentTemplates -> ShowS
$cshowsPrec :: Int -> ListEnvironmentTemplates -> ShowS
Prelude.Show, (forall x.
ListEnvironmentTemplates -> Rep ListEnvironmentTemplates x)
-> (forall x.
Rep ListEnvironmentTemplates x -> ListEnvironmentTemplates)
-> Generic ListEnvironmentTemplates
forall x.
Rep ListEnvironmentTemplates x -> ListEnvironmentTemplates
forall x.
ListEnvironmentTemplates -> Rep ListEnvironmentTemplates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEnvironmentTemplates x -> ListEnvironmentTemplates
$cfrom :: forall x.
ListEnvironmentTemplates -> Rep ListEnvironmentTemplates x
Prelude.Generic)
newListEnvironmentTemplates ::
ListEnvironmentTemplates
newListEnvironmentTemplates :: ListEnvironmentTemplates
newListEnvironmentTemplates =
ListEnvironmentTemplates' :: Maybe Text -> Maybe Natural -> ListEnvironmentTemplates
ListEnvironmentTemplates'
{ $sel:nextToken:ListEnvironmentTemplates' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListEnvironmentTemplates' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listEnvironmentTemplates_nextToken :: Lens.Lens' ListEnvironmentTemplates (Prelude.Maybe Prelude.Text)
listEnvironmentTemplates_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEnvironmentTemplates -> f ListEnvironmentTemplates
listEnvironmentTemplates_nextToken = (ListEnvironmentTemplates -> Maybe Text)
-> (ListEnvironmentTemplates
-> Maybe Text -> ListEnvironmentTemplates)
-> Lens
ListEnvironmentTemplates
ListEnvironmentTemplates
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEnvironmentTemplates' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEnvironmentTemplates' :: ListEnvironmentTemplates -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEnvironmentTemplates
s@ListEnvironmentTemplates' {} Maybe Text
a -> ListEnvironmentTemplates
s {$sel:nextToken:ListEnvironmentTemplates' :: Maybe Text
nextToken = Maybe Text
a} :: ListEnvironmentTemplates)
listEnvironmentTemplates_maxResults :: Lens.Lens' ListEnvironmentTemplates (Prelude.Maybe Prelude.Natural)
listEnvironmentTemplates_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListEnvironmentTemplates -> f ListEnvironmentTemplates
listEnvironmentTemplates_maxResults = (ListEnvironmentTemplates -> Maybe Natural)
-> (ListEnvironmentTemplates
-> Maybe Natural -> ListEnvironmentTemplates)
-> Lens
ListEnvironmentTemplates
ListEnvironmentTemplates
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEnvironmentTemplates' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListEnvironmentTemplates' :: ListEnvironmentTemplates -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListEnvironmentTemplates
s@ListEnvironmentTemplates' {} Maybe Natural
a -> ListEnvironmentTemplates
s {$sel:maxResults:ListEnvironmentTemplates' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListEnvironmentTemplates)
instance Core.AWSPager ListEnvironmentTemplates where
page :: ListEnvironmentTemplates
-> AWSResponse ListEnvironmentTemplates
-> Maybe ListEnvironmentTemplates
page ListEnvironmentTemplates
rq AWSResponse ListEnvironmentTemplates
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEnvironmentTemplates
ListEnvironmentTemplatesResponse
rs
ListEnvironmentTemplatesResponse
-> Getting (First Text) ListEnvironmentTemplatesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEnvironmentTemplatesResponse
-> Const (First Text) ListEnvironmentTemplatesResponse
Lens' ListEnvironmentTemplatesResponse (Maybe Text)
listEnvironmentTemplatesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEnvironmentTemplatesResponse
-> Const (First Text) ListEnvironmentTemplatesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEnvironmentTemplatesResponse 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 ListEnvironmentTemplates
forall a. Maybe a
Prelude.Nothing
| [EnvironmentTemplateSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEnvironmentTemplates
ListEnvironmentTemplatesResponse
rs
ListEnvironmentTemplatesResponse
-> Getting
[EnvironmentTemplateSummary]
ListEnvironmentTemplatesResponse
[EnvironmentTemplateSummary]
-> [EnvironmentTemplateSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[EnvironmentTemplateSummary]
ListEnvironmentTemplatesResponse
[EnvironmentTemplateSummary]
Lens' ListEnvironmentTemplatesResponse [EnvironmentTemplateSummary]
listEnvironmentTemplatesResponse_templates
) =
Maybe ListEnvironmentTemplates
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListEnvironmentTemplates -> Maybe ListEnvironmentTemplates
forall a. a -> Maybe a
Prelude.Just (ListEnvironmentTemplates -> Maybe ListEnvironmentTemplates)
-> ListEnvironmentTemplates -> Maybe ListEnvironmentTemplates
forall a b. (a -> b) -> a -> b
Prelude.$
ListEnvironmentTemplates
rq
ListEnvironmentTemplates
-> (ListEnvironmentTemplates -> ListEnvironmentTemplates)
-> ListEnvironmentTemplates
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListEnvironmentTemplates -> Identity ListEnvironmentTemplates
Lens
ListEnvironmentTemplates
ListEnvironmentTemplates
(Maybe Text)
(Maybe Text)
listEnvironmentTemplates_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListEnvironmentTemplates -> Identity ListEnvironmentTemplates)
-> Maybe Text
-> ListEnvironmentTemplates
-> ListEnvironmentTemplates
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListEnvironmentTemplates
ListEnvironmentTemplatesResponse
rs
ListEnvironmentTemplatesResponse
-> Getting (First Text) ListEnvironmentTemplatesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEnvironmentTemplatesResponse
-> Const (First Text) ListEnvironmentTemplatesResponse
Lens' ListEnvironmentTemplatesResponse (Maybe Text)
listEnvironmentTemplatesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEnvironmentTemplatesResponse
-> Const (First Text) ListEnvironmentTemplatesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEnvironmentTemplatesResponse 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 ListEnvironmentTemplates where
type
AWSResponse ListEnvironmentTemplates =
ListEnvironmentTemplatesResponse
request :: ListEnvironmentTemplates -> Request ListEnvironmentTemplates
request = Service
-> ListEnvironmentTemplates -> Request ListEnvironmentTemplates
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListEnvironmentTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEnvironmentTemplates)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListEnvironmentTemplates))
-> Logger
-> Service
-> Proxy ListEnvironmentTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEnvironmentTemplates)))
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
-> Int
-> [EnvironmentTemplateSummary]
-> ListEnvironmentTemplatesResponse
ListEnvironmentTemplatesResponse'
(Maybe Text
-> Int
-> [EnvironmentTemplateSummary]
-> ListEnvironmentTemplatesResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [EnvironmentTemplateSummary]
-> ListEnvironmentTemplatesResponse)
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
(Int
-> [EnvironmentTemplateSummary]
-> ListEnvironmentTemplatesResponse)
-> Either String Int
-> Either
String
([EnvironmentTemplateSummary] -> ListEnvironmentTemplatesResponse)
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))
Either
String
([EnvironmentTemplateSummary] -> ListEnvironmentTemplatesResponse)
-> Either String [EnvironmentTemplateSummary]
-> Either String ListEnvironmentTemplatesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe [EnvironmentTemplateSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"templates" Either String (Maybe [EnvironmentTemplateSummary])
-> [EnvironmentTemplateSummary]
-> Either String [EnvironmentTemplateSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [EnvironmentTemplateSummary]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable ListEnvironmentTemplates
instance Prelude.NFData ListEnvironmentTemplates
instance Core.ToHeaders ListEnvironmentTemplates where
toHeaders :: ListEnvironmentTemplates -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListEnvironmentTemplates -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AwsProton20200720.ListEnvironmentTemplates" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListEnvironmentTemplates where
toJSON :: ListEnvironmentTemplates -> Value
toJSON ListEnvironmentTemplates' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListEnvironmentTemplates' :: ListEnvironmentTemplates -> Maybe Natural
$sel:nextToken:ListEnvironmentTemplates' :: ListEnvironmentTemplates -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"maxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListEnvironmentTemplates where
toPath :: ListEnvironmentTemplates -> ByteString
toPath = ByteString -> ListEnvironmentTemplates -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListEnvironmentTemplates where
toQuery :: ListEnvironmentTemplates -> QueryString
toQuery = QueryString -> ListEnvironmentTemplates -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListEnvironmentTemplatesResponse = ListEnvironmentTemplatesResponse'
{
ListEnvironmentTemplatesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListEnvironmentTemplatesResponse -> Int
httpStatus :: Prelude.Int,
ListEnvironmentTemplatesResponse -> [EnvironmentTemplateSummary]
templates :: [EnvironmentTemplateSummary]
}
deriving (ListEnvironmentTemplatesResponse
-> ListEnvironmentTemplatesResponse -> Bool
(ListEnvironmentTemplatesResponse
-> ListEnvironmentTemplatesResponse -> Bool)
-> (ListEnvironmentTemplatesResponse
-> ListEnvironmentTemplatesResponse -> Bool)
-> Eq ListEnvironmentTemplatesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEnvironmentTemplatesResponse
-> ListEnvironmentTemplatesResponse -> Bool
$c/= :: ListEnvironmentTemplatesResponse
-> ListEnvironmentTemplatesResponse -> Bool
== :: ListEnvironmentTemplatesResponse
-> ListEnvironmentTemplatesResponse -> Bool
$c== :: ListEnvironmentTemplatesResponse
-> ListEnvironmentTemplatesResponse -> Bool
Prelude.Eq, Int -> ListEnvironmentTemplatesResponse -> ShowS
[ListEnvironmentTemplatesResponse] -> ShowS
ListEnvironmentTemplatesResponse -> String
(Int -> ListEnvironmentTemplatesResponse -> ShowS)
-> (ListEnvironmentTemplatesResponse -> String)
-> ([ListEnvironmentTemplatesResponse] -> ShowS)
-> Show ListEnvironmentTemplatesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEnvironmentTemplatesResponse] -> ShowS
$cshowList :: [ListEnvironmentTemplatesResponse] -> ShowS
show :: ListEnvironmentTemplatesResponse -> String
$cshow :: ListEnvironmentTemplatesResponse -> String
showsPrec :: Int -> ListEnvironmentTemplatesResponse -> ShowS
$cshowsPrec :: Int -> ListEnvironmentTemplatesResponse -> ShowS
Prelude.Show, (forall x.
ListEnvironmentTemplatesResponse
-> Rep ListEnvironmentTemplatesResponse x)
-> (forall x.
Rep ListEnvironmentTemplatesResponse x
-> ListEnvironmentTemplatesResponse)
-> Generic ListEnvironmentTemplatesResponse
forall x.
Rep ListEnvironmentTemplatesResponse x
-> ListEnvironmentTemplatesResponse
forall x.
ListEnvironmentTemplatesResponse
-> Rep ListEnvironmentTemplatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEnvironmentTemplatesResponse x
-> ListEnvironmentTemplatesResponse
$cfrom :: forall x.
ListEnvironmentTemplatesResponse
-> Rep ListEnvironmentTemplatesResponse x
Prelude.Generic)
newListEnvironmentTemplatesResponse ::
Prelude.Int ->
ListEnvironmentTemplatesResponse
newListEnvironmentTemplatesResponse :: Int -> ListEnvironmentTemplatesResponse
newListEnvironmentTemplatesResponse Int
pHttpStatus_ =
ListEnvironmentTemplatesResponse' :: Maybe Text
-> Int
-> [EnvironmentTemplateSummary]
-> ListEnvironmentTemplatesResponse
ListEnvironmentTemplatesResponse'
{ $sel:nextToken:ListEnvironmentTemplatesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListEnvironmentTemplatesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:templates:ListEnvironmentTemplatesResponse' :: [EnvironmentTemplateSummary]
templates = [EnvironmentTemplateSummary]
forall a. Monoid a => a
Prelude.mempty
}
listEnvironmentTemplatesResponse_nextToken :: Lens.Lens' ListEnvironmentTemplatesResponse (Prelude.Maybe Prelude.Text)
listEnvironmentTemplatesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEnvironmentTemplatesResponse
-> f ListEnvironmentTemplatesResponse
listEnvironmentTemplatesResponse_nextToken = (ListEnvironmentTemplatesResponse -> Maybe Text)
-> (ListEnvironmentTemplatesResponse
-> Maybe Text -> ListEnvironmentTemplatesResponse)
-> Lens' ListEnvironmentTemplatesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEnvironmentTemplatesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEnvironmentTemplatesResponse' :: ListEnvironmentTemplatesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEnvironmentTemplatesResponse
s@ListEnvironmentTemplatesResponse' {} Maybe Text
a -> ListEnvironmentTemplatesResponse
s {$sel:nextToken:ListEnvironmentTemplatesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEnvironmentTemplatesResponse)
listEnvironmentTemplatesResponse_httpStatus :: Lens.Lens' ListEnvironmentTemplatesResponse Prelude.Int
listEnvironmentTemplatesResponse_httpStatus :: (Int -> f Int)
-> ListEnvironmentTemplatesResponse
-> f ListEnvironmentTemplatesResponse
listEnvironmentTemplatesResponse_httpStatus = (ListEnvironmentTemplatesResponse -> Int)
-> (ListEnvironmentTemplatesResponse
-> Int -> ListEnvironmentTemplatesResponse)
-> Lens
ListEnvironmentTemplatesResponse
ListEnvironmentTemplatesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEnvironmentTemplatesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListEnvironmentTemplatesResponse' :: ListEnvironmentTemplatesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListEnvironmentTemplatesResponse
s@ListEnvironmentTemplatesResponse' {} Int
a -> ListEnvironmentTemplatesResponse
s {$sel:httpStatus:ListEnvironmentTemplatesResponse' :: Int
httpStatus = Int
a} :: ListEnvironmentTemplatesResponse)
listEnvironmentTemplatesResponse_templates :: Lens.Lens' ListEnvironmentTemplatesResponse [EnvironmentTemplateSummary]
listEnvironmentTemplatesResponse_templates :: ([EnvironmentTemplateSummary] -> f [EnvironmentTemplateSummary])
-> ListEnvironmentTemplatesResponse
-> f ListEnvironmentTemplatesResponse
listEnvironmentTemplatesResponse_templates = (ListEnvironmentTemplatesResponse -> [EnvironmentTemplateSummary])
-> (ListEnvironmentTemplatesResponse
-> [EnvironmentTemplateSummary]
-> ListEnvironmentTemplatesResponse)
-> Lens'
ListEnvironmentTemplatesResponse [EnvironmentTemplateSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEnvironmentTemplatesResponse' {[EnvironmentTemplateSummary]
templates :: [EnvironmentTemplateSummary]
$sel:templates:ListEnvironmentTemplatesResponse' :: ListEnvironmentTemplatesResponse -> [EnvironmentTemplateSummary]
templates} -> [EnvironmentTemplateSummary]
templates) (\s :: ListEnvironmentTemplatesResponse
s@ListEnvironmentTemplatesResponse' {} [EnvironmentTemplateSummary]
a -> ListEnvironmentTemplatesResponse
s {$sel:templates:ListEnvironmentTemplatesResponse' :: [EnvironmentTemplateSummary]
templates = [EnvironmentTemplateSummary]
a} :: ListEnvironmentTemplatesResponse) (([EnvironmentTemplateSummary] -> f [EnvironmentTemplateSummary])
-> ListEnvironmentTemplatesResponse
-> f ListEnvironmentTemplatesResponse)
-> (([EnvironmentTemplateSummary]
-> f [EnvironmentTemplateSummary])
-> [EnvironmentTemplateSummary] -> f [EnvironmentTemplateSummary])
-> ([EnvironmentTemplateSummary] -> f [EnvironmentTemplateSummary])
-> ListEnvironmentTemplatesResponse
-> f ListEnvironmentTemplatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([EnvironmentTemplateSummary] -> f [EnvironmentTemplateSummary])
-> [EnvironmentTemplateSummary] -> f [EnvironmentTemplateSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
ListEnvironmentTemplatesResponse