{-# 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.QuickSight.ListTemplateAliases
(
ListTemplateAliases (..),
newListTemplateAliases,
listTemplateAliases_nextToken,
listTemplateAliases_maxResults,
listTemplateAliases_awsAccountId,
listTemplateAliases_templateId,
ListTemplateAliasesResponse (..),
newListTemplateAliasesResponse,
listTemplateAliasesResponse_requestId,
listTemplateAliasesResponse_templateAliasList,
listTemplateAliasesResponse_nextToken,
listTemplateAliasesResponse_status,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListTemplateAliases = ListTemplateAliases'
{
ListTemplateAliases -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTemplateAliases -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListTemplateAliases -> Text
awsAccountId :: Prelude.Text,
ListTemplateAliases -> Text
templateId :: Prelude.Text
}
deriving (ListTemplateAliases -> ListTemplateAliases -> Bool
(ListTemplateAliases -> ListTemplateAliases -> Bool)
-> (ListTemplateAliases -> ListTemplateAliases -> Bool)
-> Eq ListTemplateAliases
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTemplateAliases -> ListTemplateAliases -> Bool
$c/= :: ListTemplateAliases -> ListTemplateAliases -> Bool
== :: ListTemplateAliases -> ListTemplateAliases -> Bool
$c== :: ListTemplateAliases -> ListTemplateAliases -> Bool
Prelude.Eq, ReadPrec [ListTemplateAliases]
ReadPrec ListTemplateAliases
Int -> ReadS ListTemplateAliases
ReadS [ListTemplateAliases]
(Int -> ReadS ListTemplateAliases)
-> ReadS [ListTemplateAliases]
-> ReadPrec ListTemplateAliases
-> ReadPrec [ListTemplateAliases]
-> Read ListTemplateAliases
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTemplateAliases]
$creadListPrec :: ReadPrec [ListTemplateAliases]
readPrec :: ReadPrec ListTemplateAliases
$creadPrec :: ReadPrec ListTemplateAliases
readList :: ReadS [ListTemplateAliases]
$creadList :: ReadS [ListTemplateAliases]
readsPrec :: Int -> ReadS ListTemplateAliases
$creadsPrec :: Int -> ReadS ListTemplateAliases
Prelude.Read, Int -> ListTemplateAliases -> ShowS
[ListTemplateAliases] -> ShowS
ListTemplateAliases -> String
(Int -> ListTemplateAliases -> ShowS)
-> (ListTemplateAliases -> String)
-> ([ListTemplateAliases] -> ShowS)
-> Show ListTemplateAliases
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTemplateAliases] -> ShowS
$cshowList :: [ListTemplateAliases] -> ShowS
show :: ListTemplateAliases -> String
$cshow :: ListTemplateAliases -> String
showsPrec :: Int -> ListTemplateAliases -> ShowS
$cshowsPrec :: Int -> ListTemplateAliases -> ShowS
Prelude.Show, (forall x. ListTemplateAliases -> Rep ListTemplateAliases x)
-> (forall x. Rep ListTemplateAliases x -> ListTemplateAliases)
-> Generic ListTemplateAliases
forall x. Rep ListTemplateAliases x -> ListTemplateAliases
forall x. ListTemplateAliases -> Rep ListTemplateAliases x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTemplateAliases x -> ListTemplateAliases
$cfrom :: forall x. ListTemplateAliases -> Rep ListTemplateAliases x
Prelude.Generic)
newListTemplateAliases ::
Prelude.Text ->
Prelude.Text ->
ListTemplateAliases
newListTemplateAliases :: Text -> Text -> ListTemplateAliases
newListTemplateAliases Text
pAwsAccountId_ Text
pTemplateId_ =
ListTemplateAliases' :: Maybe Text -> Maybe Natural -> Text -> Text -> ListTemplateAliases
ListTemplateAliases'
{ $sel:nextToken:ListTemplateAliases' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListTemplateAliases' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:ListTemplateAliases' :: Text
awsAccountId = Text
pAwsAccountId_,
$sel:templateId:ListTemplateAliases' :: Text
templateId = Text
pTemplateId_
}
listTemplateAliases_nextToken :: Lens.Lens' ListTemplateAliases (Prelude.Maybe Prelude.Text)
listTemplateAliases_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTemplateAliases -> f ListTemplateAliases
listTemplateAliases_nextToken = (ListTemplateAliases -> Maybe Text)
-> (ListTemplateAliases -> Maybe Text -> ListTemplateAliases)
-> Lens
ListTemplateAliases ListTemplateAliases (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliases' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTemplateAliases' :: ListTemplateAliases -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTemplateAliases
s@ListTemplateAliases' {} Maybe Text
a -> ListTemplateAliases
s {$sel:nextToken:ListTemplateAliases' :: Maybe Text
nextToken = Maybe Text
a} :: ListTemplateAliases)
listTemplateAliases_maxResults :: Lens.Lens' ListTemplateAliases (Prelude.Maybe Prelude.Natural)
listTemplateAliases_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListTemplateAliases -> f ListTemplateAliases
listTemplateAliases_maxResults = (ListTemplateAliases -> Maybe Natural)
-> (ListTemplateAliases -> Maybe Natural -> ListTemplateAliases)
-> Lens
ListTemplateAliases
ListTemplateAliases
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliases' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTemplateAliases' :: ListTemplateAliases -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTemplateAliases
s@ListTemplateAliases' {} Maybe Natural
a -> ListTemplateAliases
s {$sel:maxResults:ListTemplateAliases' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTemplateAliases)
listTemplateAliases_awsAccountId :: Lens.Lens' ListTemplateAliases Prelude.Text
listTemplateAliases_awsAccountId :: (Text -> f Text) -> ListTemplateAliases -> f ListTemplateAliases
listTemplateAliases_awsAccountId = (ListTemplateAliases -> Text)
-> (ListTemplateAliases -> Text -> ListTemplateAliases)
-> Lens ListTemplateAliases ListTemplateAliases Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliases' {Text
awsAccountId :: Text
$sel:awsAccountId:ListTemplateAliases' :: ListTemplateAliases -> Text
awsAccountId} -> Text
awsAccountId) (\s :: ListTemplateAliases
s@ListTemplateAliases' {} Text
a -> ListTemplateAliases
s {$sel:awsAccountId:ListTemplateAliases' :: Text
awsAccountId = Text
a} :: ListTemplateAliases)
listTemplateAliases_templateId :: Lens.Lens' ListTemplateAliases Prelude.Text
listTemplateAliases_templateId :: (Text -> f Text) -> ListTemplateAliases -> f ListTemplateAliases
listTemplateAliases_templateId = (ListTemplateAliases -> Text)
-> (ListTemplateAliases -> Text -> ListTemplateAliases)
-> Lens ListTemplateAliases ListTemplateAliases Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliases' {Text
templateId :: Text
$sel:templateId:ListTemplateAliases' :: ListTemplateAliases -> Text
templateId} -> Text
templateId) (\s :: ListTemplateAliases
s@ListTemplateAliases' {} Text
a -> ListTemplateAliases
s {$sel:templateId:ListTemplateAliases' :: Text
templateId = Text
a} :: ListTemplateAliases)
instance Core.AWSPager ListTemplateAliases where
page :: ListTemplateAliases
-> AWSResponse ListTemplateAliases -> Maybe ListTemplateAliases
page ListTemplateAliases
rq AWSResponse ListTemplateAliases
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTemplateAliases
ListTemplateAliasesResponse
rs
ListTemplateAliasesResponse
-> Getting (First Text) ListTemplateAliasesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTemplateAliasesResponse
-> Const (First Text) ListTemplateAliasesResponse
Lens' ListTemplateAliasesResponse (Maybe Text)
listTemplateAliasesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTemplateAliasesResponse
-> Const (First Text) ListTemplateAliasesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTemplateAliasesResponse 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 ListTemplateAliases
forall a. Maybe a
Prelude.Nothing
| Maybe [TemplateAlias] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTemplateAliases
ListTemplateAliasesResponse
rs
ListTemplateAliasesResponse
-> Getting
(First [TemplateAlias]) ListTemplateAliasesResponse [TemplateAlias]
-> Maybe [TemplateAlias]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TemplateAlias]
-> Const (First [TemplateAlias]) (Maybe [TemplateAlias]))
-> ListTemplateAliasesResponse
-> Const (First [TemplateAlias]) ListTemplateAliasesResponse
Lens' ListTemplateAliasesResponse (Maybe [TemplateAlias])
listTemplateAliasesResponse_templateAliasList
((Maybe [TemplateAlias]
-> Const (First [TemplateAlias]) (Maybe [TemplateAlias]))
-> ListTemplateAliasesResponse
-> Const (First [TemplateAlias]) ListTemplateAliasesResponse)
-> (([TemplateAlias]
-> Const (First [TemplateAlias]) [TemplateAlias])
-> Maybe [TemplateAlias]
-> Const (First [TemplateAlias]) (Maybe [TemplateAlias]))
-> Getting
(First [TemplateAlias]) ListTemplateAliasesResponse [TemplateAlias]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TemplateAlias] -> Const (First [TemplateAlias]) [TemplateAlias])
-> Maybe [TemplateAlias]
-> Const (First [TemplateAlias]) (Maybe [TemplateAlias])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTemplateAliases
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTemplateAliases -> Maybe ListTemplateAliases
forall a. a -> Maybe a
Prelude.Just (ListTemplateAliases -> Maybe ListTemplateAliases)
-> ListTemplateAliases -> Maybe ListTemplateAliases
forall a b. (a -> b) -> a -> b
Prelude.$
ListTemplateAliases
rq
ListTemplateAliases
-> (ListTemplateAliases -> ListTemplateAliases)
-> ListTemplateAliases
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTemplateAliases -> Identity ListTemplateAliases
Lens
ListTemplateAliases ListTemplateAliases (Maybe Text) (Maybe Text)
listTemplateAliases_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTemplateAliases -> Identity ListTemplateAliases)
-> Maybe Text -> ListTemplateAliases -> ListTemplateAliases
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTemplateAliases
ListTemplateAliasesResponse
rs
ListTemplateAliasesResponse
-> Getting (First Text) ListTemplateAliasesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTemplateAliasesResponse
-> Const (First Text) ListTemplateAliasesResponse
Lens' ListTemplateAliasesResponse (Maybe Text)
listTemplateAliasesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTemplateAliasesResponse
-> Const (First Text) ListTemplateAliasesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTemplateAliasesResponse 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 ListTemplateAliases where
type
AWSResponse ListTemplateAliases =
ListTemplateAliasesResponse
request :: ListTemplateAliases -> Request ListTemplateAliases
request = Service -> ListTemplateAliases -> Request ListTemplateAliases
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListTemplateAliases
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTemplateAliases)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTemplateAliases))
-> Logger
-> Service
-> Proxy ListTemplateAliases
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTemplateAliases)))
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 [TemplateAlias]
-> Maybe Text
-> Int
-> ListTemplateAliasesResponse
ListTemplateAliasesResponse'
(Maybe Text
-> Maybe [TemplateAlias]
-> Maybe Text
-> Int
-> ListTemplateAliasesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [TemplateAlias]
-> Maybe Text -> Int -> ListTemplateAliasesResponse)
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
"RequestId")
Either
String
(Maybe [TemplateAlias]
-> Maybe Text -> Int -> ListTemplateAliasesResponse)
-> Either String (Maybe [TemplateAlias])
-> Either String (Maybe Text -> Int -> ListTemplateAliasesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [TemplateAlias]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TemplateAliasList"
Either String (Maybe (Maybe [TemplateAlias]))
-> Maybe [TemplateAlias] -> Either String (Maybe [TemplateAlias])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TemplateAlias]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListTemplateAliasesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListTemplateAliasesResponse)
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 -> ListTemplateAliasesResponse)
-> Either String Int -> Either String ListTemplateAliasesResponse
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 ListTemplateAliases
instance Prelude.NFData ListTemplateAliases
instance Core.ToHeaders ListTemplateAliases where
toHeaders :: ListTemplateAliases -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTemplateAliases -> 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.0" ::
Prelude.ByteString
)
]
)
instance Core.ToPath ListTemplateAliases where
toPath :: ListTemplateAliases -> ByteString
toPath ListTemplateAliases' {Maybe Natural
Maybe Text
Text
templateId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:templateId:ListTemplateAliases' :: ListTemplateAliases -> Text
$sel:awsAccountId:ListTemplateAliases' :: ListTemplateAliases -> Text
$sel:maxResults:ListTemplateAliases' :: ListTemplateAliases -> Maybe Natural
$sel:nextToken:ListTemplateAliases' :: ListTemplateAliases -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/accounts/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
ByteString
"/templates/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
templateId,
ByteString
"/aliases"
]
instance Core.ToQuery ListTemplateAliases where
toQuery :: ListTemplateAliases -> QueryString
toQuery ListTemplateAliases' {Maybe Natural
Maybe Text
Text
templateId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:templateId:ListTemplateAliases' :: ListTemplateAliases -> Text
$sel:awsAccountId:ListTemplateAliases' :: ListTemplateAliases -> Text
$sel:maxResults:ListTemplateAliases' :: ListTemplateAliases -> Maybe Natural
$sel:nextToken:ListTemplateAliases' :: ListTemplateAliases -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"next-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"max-result" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListTemplateAliasesResponse = ListTemplateAliasesResponse'
{
ListTemplateAliasesResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
ListTemplateAliasesResponse -> Maybe [TemplateAlias]
templateAliasList :: Prelude.Maybe [TemplateAlias],
ListTemplateAliasesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTemplateAliasesResponse -> Int
status :: Prelude.Int
}
deriving (ListTemplateAliasesResponse -> ListTemplateAliasesResponse -> Bool
(ListTemplateAliasesResponse
-> ListTemplateAliasesResponse -> Bool)
-> (ListTemplateAliasesResponse
-> ListTemplateAliasesResponse -> Bool)
-> Eq ListTemplateAliasesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTemplateAliasesResponse -> ListTemplateAliasesResponse -> Bool
$c/= :: ListTemplateAliasesResponse -> ListTemplateAliasesResponse -> Bool
== :: ListTemplateAliasesResponse -> ListTemplateAliasesResponse -> Bool
$c== :: ListTemplateAliasesResponse -> ListTemplateAliasesResponse -> Bool
Prelude.Eq, ReadPrec [ListTemplateAliasesResponse]
ReadPrec ListTemplateAliasesResponse
Int -> ReadS ListTemplateAliasesResponse
ReadS [ListTemplateAliasesResponse]
(Int -> ReadS ListTemplateAliasesResponse)
-> ReadS [ListTemplateAliasesResponse]
-> ReadPrec ListTemplateAliasesResponse
-> ReadPrec [ListTemplateAliasesResponse]
-> Read ListTemplateAliasesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTemplateAliasesResponse]
$creadListPrec :: ReadPrec [ListTemplateAliasesResponse]
readPrec :: ReadPrec ListTemplateAliasesResponse
$creadPrec :: ReadPrec ListTemplateAliasesResponse
readList :: ReadS [ListTemplateAliasesResponse]
$creadList :: ReadS [ListTemplateAliasesResponse]
readsPrec :: Int -> ReadS ListTemplateAliasesResponse
$creadsPrec :: Int -> ReadS ListTemplateAliasesResponse
Prelude.Read, Int -> ListTemplateAliasesResponse -> ShowS
[ListTemplateAliasesResponse] -> ShowS
ListTemplateAliasesResponse -> String
(Int -> ListTemplateAliasesResponse -> ShowS)
-> (ListTemplateAliasesResponse -> String)
-> ([ListTemplateAliasesResponse] -> ShowS)
-> Show ListTemplateAliasesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTemplateAliasesResponse] -> ShowS
$cshowList :: [ListTemplateAliasesResponse] -> ShowS
show :: ListTemplateAliasesResponse -> String
$cshow :: ListTemplateAliasesResponse -> String
showsPrec :: Int -> ListTemplateAliasesResponse -> ShowS
$cshowsPrec :: Int -> ListTemplateAliasesResponse -> ShowS
Prelude.Show, (forall x.
ListTemplateAliasesResponse -> Rep ListTemplateAliasesResponse x)
-> (forall x.
Rep ListTemplateAliasesResponse x -> ListTemplateAliasesResponse)
-> Generic ListTemplateAliasesResponse
forall x.
Rep ListTemplateAliasesResponse x -> ListTemplateAliasesResponse
forall x.
ListTemplateAliasesResponse -> Rep ListTemplateAliasesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTemplateAliasesResponse x -> ListTemplateAliasesResponse
$cfrom :: forall x.
ListTemplateAliasesResponse -> Rep ListTemplateAliasesResponse x
Prelude.Generic)
newListTemplateAliasesResponse ::
Prelude.Int ->
ListTemplateAliasesResponse
newListTemplateAliasesResponse :: Int -> ListTemplateAliasesResponse
newListTemplateAliasesResponse Int
pStatus_ =
ListTemplateAliasesResponse' :: Maybe Text
-> Maybe [TemplateAlias]
-> Maybe Text
-> Int
-> ListTemplateAliasesResponse
ListTemplateAliasesResponse'
{ $sel:requestId:ListTemplateAliasesResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:templateAliasList:ListTemplateAliasesResponse' :: Maybe [TemplateAlias]
templateAliasList = Maybe [TemplateAlias]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListTemplateAliasesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:ListTemplateAliasesResponse' :: Int
status = Int
pStatus_
}
listTemplateAliasesResponse_requestId :: Lens.Lens' ListTemplateAliasesResponse (Prelude.Maybe Prelude.Text)
listTemplateAliasesResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListTemplateAliasesResponse -> f ListTemplateAliasesResponse
listTemplateAliasesResponse_requestId = (ListTemplateAliasesResponse -> Maybe Text)
-> (ListTemplateAliasesResponse
-> Maybe Text -> ListTemplateAliasesResponse)
-> Lens' ListTemplateAliasesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliasesResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListTemplateAliasesResponse' :: ListTemplateAliasesResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListTemplateAliasesResponse
s@ListTemplateAliasesResponse' {} Maybe Text
a -> ListTemplateAliasesResponse
s {$sel:requestId:ListTemplateAliasesResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListTemplateAliasesResponse)
listTemplateAliasesResponse_templateAliasList :: Lens.Lens' ListTemplateAliasesResponse (Prelude.Maybe [TemplateAlias])
listTemplateAliasesResponse_templateAliasList :: (Maybe [TemplateAlias] -> f (Maybe [TemplateAlias]))
-> ListTemplateAliasesResponse -> f ListTemplateAliasesResponse
listTemplateAliasesResponse_templateAliasList = (ListTemplateAliasesResponse -> Maybe [TemplateAlias])
-> (ListTemplateAliasesResponse
-> Maybe [TemplateAlias] -> ListTemplateAliasesResponse)
-> Lens' ListTemplateAliasesResponse (Maybe [TemplateAlias])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliasesResponse' {Maybe [TemplateAlias]
templateAliasList :: Maybe [TemplateAlias]
$sel:templateAliasList:ListTemplateAliasesResponse' :: ListTemplateAliasesResponse -> Maybe [TemplateAlias]
templateAliasList} -> Maybe [TemplateAlias]
templateAliasList) (\s :: ListTemplateAliasesResponse
s@ListTemplateAliasesResponse' {} Maybe [TemplateAlias]
a -> ListTemplateAliasesResponse
s {$sel:templateAliasList:ListTemplateAliasesResponse' :: Maybe [TemplateAlias]
templateAliasList = Maybe [TemplateAlias]
a} :: ListTemplateAliasesResponse) ((Maybe [TemplateAlias] -> f (Maybe [TemplateAlias]))
-> ListTemplateAliasesResponse -> f ListTemplateAliasesResponse)
-> ((Maybe [TemplateAlias] -> f (Maybe [TemplateAlias]))
-> Maybe [TemplateAlias] -> f (Maybe [TemplateAlias]))
-> (Maybe [TemplateAlias] -> f (Maybe [TemplateAlias]))
-> ListTemplateAliasesResponse
-> f ListTemplateAliasesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[TemplateAlias] [TemplateAlias] [TemplateAlias] [TemplateAlias]
-> Iso
(Maybe [TemplateAlias])
(Maybe [TemplateAlias])
(Maybe [TemplateAlias])
(Maybe [TemplateAlias])
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
[TemplateAlias] [TemplateAlias] [TemplateAlias] [TemplateAlias]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTemplateAliasesResponse_nextToken :: Lens.Lens' ListTemplateAliasesResponse (Prelude.Maybe Prelude.Text)
listTemplateAliasesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTemplateAliasesResponse -> f ListTemplateAliasesResponse
listTemplateAliasesResponse_nextToken = (ListTemplateAliasesResponse -> Maybe Text)
-> (ListTemplateAliasesResponse
-> Maybe Text -> ListTemplateAliasesResponse)
-> Lens' ListTemplateAliasesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliasesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTemplateAliasesResponse' :: ListTemplateAliasesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTemplateAliasesResponse
s@ListTemplateAliasesResponse' {} Maybe Text
a -> ListTemplateAliasesResponse
s {$sel:nextToken:ListTemplateAliasesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTemplateAliasesResponse)
listTemplateAliasesResponse_status :: Lens.Lens' ListTemplateAliasesResponse Prelude.Int
listTemplateAliasesResponse_status :: (Int -> f Int)
-> ListTemplateAliasesResponse -> f ListTemplateAliasesResponse
listTemplateAliasesResponse_status = (ListTemplateAliasesResponse -> Int)
-> (ListTemplateAliasesResponse
-> Int -> ListTemplateAliasesResponse)
-> Lens
ListTemplateAliasesResponse ListTemplateAliasesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTemplateAliasesResponse' {Int
status :: Int
$sel:status:ListTemplateAliasesResponse' :: ListTemplateAliasesResponse -> Int
status} -> Int
status) (\s :: ListTemplateAliasesResponse
s@ListTemplateAliasesResponse' {} Int
a -> ListTemplateAliasesResponse
s {$sel:status:ListTemplateAliasesResponse' :: Int
status = Int
a} :: ListTemplateAliasesResponse)
instance Prelude.NFData ListTemplateAliasesResponse