{-# 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.Athena.ListTableMetadata
(
ListTableMetadata (..),
newListTableMetadata,
listTableMetadata_nextToken,
listTableMetadata_expression,
listTableMetadata_maxResults,
listTableMetadata_catalogName,
listTableMetadata_databaseName,
ListTableMetadataResponse (..),
newListTableMetadataResponse,
listTableMetadataResponse_nextToken,
listTableMetadataResponse_tableMetadataList,
listTableMetadataResponse_httpStatus,
)
where
import Amazonka.Athena.Types
import qualified Amazonka.Core as Core
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 ListTableMetadata = ListTableMetadata'
{
ListTableMetadata -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTableMetadata -> Maybe Text
expression :: Prelude.Maybe Prelude.Text,
ListTableMetadata -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListTableMetadata -> Text
catalogName :: Prelude.Text,
ListTableMetadata -> Text
databaseName :: Prelude.Text
}
deriving (ListTableMetadata -> ListTableMetadata -> Bool
(ListTableMetadata -> ListTableMetadata -> Bool)
-> (ListTableMetadata -> ListTableMetadata -> Bool)
-> Eq ListTableMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTableMetadata -> ListTableMetadata -> Bool
$c/= :: ListTableMetadata -> ListTableMetadata -> Bool
== :: ListTableMetadata -> ListTableMetadata -> Bool
$c== :: ListTableMetadata -> ListTableMetadata -> Bool
Prelude.Eq, ReadPrec [ListTableMetadata]
ReadPrec ListTableMetadata
Int -> ReadS ListTableMetadata
ReadS [ListTableMetadata]
(Int -> ReadS ListTableMetadata)
-> ReadS [ListTableMetadata]
-> ReadPrec ListTableMetadata
-> ReadPrec [ListTableMetadata]
-> Read ListTableMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTableMetadata]
$creadListPrec :: ReadPrec [ListTableMetadata]
readPrec :: ReadPrec ListTableMetadata
$creadPrec :: ReadPrec ListTableMetadata
readList :: ReadS [ListTableMetadata]
$creadList :: ReadS [ListTableMetadata]
readsPrec :: Int -> ReadS ListTableMetadata
$creadsPrec :: Int -> ReadS ListTableMetadata
Prelude.Read, Int -> ListTableMetadata -> ShowS
[ListTableMetadata] -> ShowS
ListTableMetadata -> String
(Int -> ListTableMetadata -> ShowS)
-> (ListTableMetadata -> String)
-> ([ListTableMetadata] -> ShowS)
-> Show ListTableMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTableMetadata] -> ShowS
$cshowList :: [ListTableMetadata] -> ShowS
show :: ListTableMetadata -> String
$cshow :: ListTableMetadata -> String
showsPrec :: Int -> ListTableMetadata -> ShowS
$cshowsPrec :: Int -> ListTableMetadata -> ShowS
Prelude.Show, (forall x. ListTableMetadata -> Rep ListTableMetadata x)
-> (forall x. Rep ListTableMetadata x -> ListTableMetadata)
-> Generic ListTableMetadata
forall x. Rep ListTableMetadata x -> ListTableMetadata
forall x. ListTableMetadata -> Rep ListTableMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListTableMetadata x -> ListTableMetadata
$cfrom :: forall x. ListTableMetadata -> Rep ListTableMetadata x
Prelude.Generic)
newListTableMetadata ::
Prelude.Text ->
Prelude.Text ->
ListTableMetadata
newListTableMetadata :: Text -> Text -> ListTableMetadata
newListTableMetadata Text
pCatalogName_ Text
pDatabaseName_ =
ListTableMetadata' :: Maybe Text
-> Maybe Text -> Maybe Natural -> Text -> Text -> ListTableMetadata
ListTableMetadata'
{ $sel:nextToken:ListTableMetadata' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expression:ListTableMetadata' :: Maybe Text
expression = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListTableMetadata' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:catalogName:ListTableMetadata' :: Text
catalogName = Text
pCatalogName_,
$sel:databaseName:ListTableMetadata' :: Text
databaseName = Text
pDatabaseName_
}
listTableMetadata_nextToken :: Lens.Lens' ListTableMetadata (Prelude.Maybe Prelude.Text)
listTableMetadata_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTableMetadata -> f ListTableMetadata
listTableMetadata_nextToken = (ListTableMetadata -> Maybe Text)
-> (ListTableMetadata -> Maybe Text -> ListTableMetadata)
-> Lens
ListTableMetadata ListTableMetadata (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadata' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTableMetadata' :: ListTableMetadata -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTableMetadata
s@ListTableMetadata' {} Maybe Text
a -> ListTableMetadata
s {$sel:nextToken:ListTableMetadata' :: Maybe Text
nextToken = Maybe Text
a} :: ListTableMetadata)
listTableMetadata_expression :: Lens.Lens' ListTableMetadata (Prelude.Maybe Prelude.Text)
listTableMetadata_expression :: (Maybe Text -> f (Maybe Text))
-> ListTableMetadata -> f ListTableMetadata
listTableMetadata_expression = (ListTableMetadata -> Maybe Text)
-> (ListTableMetadata -> Maybe Text -> ListTableMetadata)
-> Lens
ListTableMetadata ListTableMetadata (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadata' {Maybe Text
expression :: Maybe Text
$sel:expression:ListTableMetadata' :: ListTableMetadata -> Maybe Text
expression} -> Maybe Text
expression) (\s :: ListTableMetadata
s@ListTableMetadata' {} Maybe Text
a -> ListTableMetadata
s {$sel:expression:ListTableMetadata' :: Maybe Text
expression = Maybe Text
a} :: ListTableMetadata)
listTableMetadata_maxResults :: Lens.Lens' ListTableMetadata (Prelude.Maybe Prelude.Natural)
listTableMetadata_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListTableMetadata -> f ListTableMetadata
listTableMetadata_maxResults = (ListTableMetadata -> Maybe Natural)
-> (ListTableMetadata -> Maybe Natural -> ListTableMetadata)
-> Lens
ListTableMetadata ListTableMetadata (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadata' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTableMetadata' :: ListTableMetadata -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTableMetadata
s@ListTableMetadata' {} Maybe Natural
a -> ListTableMetadata
s {$sel:maxResults:ListTableMetadata' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTableMetadata)
listTableMetadata_catalogName :: Lens.Lens' ListTableMetadata Prelude.Text
listTableMetadata_catalogName :: (Text -> f Text) -> ListTableMetadata -> f ListTableMetadata
listTableMetadata_catalogName = (ListTableMetadata -> Text)
-> (ListTableMetadata -> Text -> ListTableMetadata)
-> Lens ListTableMetadata ListTableMetadata Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadata' {Text
catalogName :: Text
$sel:catalogName:ListTableMetadata' :: ListTableMetadata -> Text
catalogName} -> Text
catalogName) (\s :: ListTableMetadata
s@ListTableMetadata' {} Text
a -> ListTableMetadata
s {$sel:catalogName:ListTableMetadata' :: Text
catalogName = Text
a} :: ListTableMetadata)
listTableMetadata_databaseName :: Lens.Lens' ListTableMetadata Prelude.Text
listTableMetadata_databaseName :: (Text -> f Text) -> ListTableMetadata -> f ListTableMetadata
listTableMetadata_databaseName = (ListTableMetadata -> Text)
-> (ListTableMetadata -> Text -> ListTableMetadata)
-> Lens ListTableMetadata ListTableMetadata Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadata' {Text
databaseName :: Text
$sel:databaseName:ListTableMetadata' :: ListTableMetadata -> Text
databaseName} -> Text
databaseName) (\s :: ListTableMetadata
s@ListTableMetadata' {} Text
a -> ListTableMetadata
s {$sel:databaseName:ListTableMetadata' :: Text
databaseName = Text
a} :: ListTableMetadata)
instance Core.AWSPager ListTableMetadata where
page :: ListTableMetadata
-> AWSResponse ListTableMetadata -> Maybe ListTableMetadata
page ListTableMetadata
rq AWSResponse ListTableMetadata
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTableMetadata
ListTableMetadataResponse
rs
ListTableMetadataResponse
-> Getting (First Text) ListTableMetadataResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTableMetadataResponse
-> Const (First Text) ListTableMetadataResponse
Lens' ListTableMetadataResponse (Maybe Text)
listTableMetadataResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTableMetadataResponse
-> Const (First Text) ListTableMetadataResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTableMetadataResponse 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 ListTableMetadata
forall a. Maybe a
Prelude.Nothing
| Maybe [TableMetadata] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTableMetadata
ListTableMetadataResponse
rs
ListTableMetadataResponse
-> Getting
(First [TableMetadata]) ListTableMetadataResponse [TableMetadata]
-> Maybe [TableMetadata]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TableMetadata]
-> Const (First [TableMetadata]) (Maybe [TableMetadata]))
-> ListTableMetadataResponse
-> Const (First [TableMetadata]) ListTableMetadataResponse
Lens' ListTableMetadataResponse (Maybe [TableMetadata])
listTableMetadataResponse_tableMetadataList
((Maybe [TableMetadata]
-> Const (First [TableMetadata]) (Maybe [TableMetadata]))
-> ListTableMetadataResponse
-> Const (First [TableMetadata]) ListTableMetadataResponse)
-> (([TableMetadata]
-> Const (First [TableMetadata]) [TableMetadata])
-> Maybe [TableMetadata]
-> Const (First [TableMetadata]) (Maybe [TableMetadata]))
-> Getting
(First [TableMetadata]) ListTableMetadataResponse [TableMetadata]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TableMetadata] -> Const (First [TableMetadata]) [TableMetadata])
-> Maybe [TableMetadata]
-> Const (First [TableMetadata]) (Maybe [TableMetadata])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTableMetadata
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTableMetadata -> Maybe ListTableMetadata
forall a. a -> Maybe a
Prelude.Just (ListTableMetadata -> Maybe ListTableMetadata)
-> ListTableMetadata -> Maybe ListTableMetadata
forall a b. (a -> b) -> a -> b
Prelude.$
ListTableMetadata
rq
ListTableMetadata
-> (ListTableMetadata -> ListTableMetadata) -> ListTableMetadata
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTableMetadata -> Identity ListTableMetadata
Lens ListTableMetadata ListTableMetadata (Maybe Text) (Maybe Text)
listTableMetadata_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTableMetadata -> Identity ListTableMetadata)
-> Maybe Text -> ListTableMetadata -> ListTableMetadata
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTableMetadata
ListTableMetadataResponse
rs
ListTableMetadataResponse
-> Getting (First Text) ListTableMetadataResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTableMetadataResponse
-> Const (First Text) ListTableMetadataResponse
Lens' ListTableMetadataResponse (Maybe Text)
listTableMetadataResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTableMetadataResponse
-> Const (First Text) ListTableMetadataResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTableMetadataResponse 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 ListTableMetadata where
type
AWSResponse ListTableMetadata =
ListTableMetadataResponse
request :: ListTableMetadata -> Request ListTableMetadata
request = Service -> ListTableMetadata -> Request ListTableMetadata
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListTableMetadata
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTableMetadata)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTableMetadata))
-> Logger
-> Service
-> Proxy ListTableMetadata
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTableMetadata)))
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 [TableMetadata] -> Int -> ListTableMetadataResponse
ListTableMetadataResponse'
(Maybe Text
-> Maybe [TableMetadata] -> Int -> ListTableMetadataResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [TableMetadata] -> Int -> ListTableMetadataResponse)
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 [TableMetadata] -> Int -> ListTableMetadataResponse)
-> Either String (Maybe [TableMetadata])
-> Either String (Int -> ListTableMetadataResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [TableMetadata]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TableMetadataList"
Either String (Maybe (Maybe [TableMetadata]))
-> Maybe [TableMetadata] -> Either String (Maybe [TableMetadata])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TableMetadata]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListTableMetadataResponse)
-> Either String Int -> Either String ListTableMetadataResponse
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 ListTableMetadata
instance Prelude.NFData ListTableMetadata
instance Core.ToHeaders ListTableMetadata where
toHeaders :: ListTableMetadata -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListTableMetadata -> 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
"AmazonAthena.ListTableMetadata" ::
Prelude.ByteString
),
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.ToJSON ListTableMetadata where
toJSON :: ListTableMetadata -> Value
toJSON ListTableMetadata' {Maybe Natural
Maybe Text
Text
databaseName :: Text
catalogName :: Text
maxResults :: Maybe Natural
expression :: Maybe Text
nextToken :: Maybe Text
$sel:databaseName:ListTableMetadata' :: ListTableMetadata -> Text
$sel:catalogName:ListTableMetadata' :: ListTableMetadata -> Text
$sel:maxResults:ListTableMetadata' :: ListTableMetadata -> Maybe Natural
$sel:expression:ListTableMetadata' :: ListTableMetadata -> Maybe Text
$sel:nextToken:ListTableMetadata' :: ListTableMetadata -> 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
"Expression" 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
expression,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"CatalogName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
catalogName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DatabaseName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
databaseName)
]
)
instance Core.ToPath ListTableMetadata where
toPath :: ListTableMetadata -> ByteString
toPath = ByteString -> ListTableMetadata -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListTableMetadata where
toQuery :: ListTableMetadata -> QueryString
toQuery = QueryString -> ListTableMetadata -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListTableMetadataResponse = ListTableMetadataResponse'
{
ListTableMetadataResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTableMetadataResponse -> Maybe [TableMetadata]
tableMetadataList :: Prelude.Maybe [TableMetadata],
ListTableMetadataResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListTableMetadataResponse -> ListTableMetadataResponse -> Bool
(ListTableMetadataResponse -> ListTableMetadataResponse -> Bool)
-> (ListTableMetadataResponse -> ListTableMetadataResponse -> Bool)
-> Eq ListTableMetadataResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTableMetadataResponse -> ListTableMetadataResponse -> Bool
$c/= :: ListTableMetadataResponse -> ListTableMetadataResponse -> Bool
== :: ListTableMetadataResponse -> ListTableMetadataResponse -> Bool
$c== :: ListTableMetadataResponse -> ListTableMetadataResponse -> Bool
Prelude.Eq, ReadPrec [ListTableMetadataResponse]
ReadPrec ListTableMetadataResponse
Int -> ReadS ListTableMetadataResponse
ReadS [ListTableMetadataResponse]
(Int -> ReadS ListTableMetadataResponse)
-> ReadS [ListTableMetadataResponse]
-> ReadPrec ListTableMetadataResponse
-> ReadPrec [ListTableMetadataResponse]
-> Read ListTableMetadataResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTableMetadataResponse]
$creadListPrec :: ReadPrec [ListTableMetadataResponse]
readPrec :: ReadPrec ListTableMetadataResponse
$creadPrec :: ReadPrec ListTableMetadataResponse
readList :: ReadS [ListTableMetadataResponse]
$creadList :: ReadS [ListTableMetadataResponse]
readsPrec :: Int -> ReadS ListTableMetadataResponse
$creadsPrec :: Int -> ReadS ListTableMetadataResponse
Prelude.Read, Int -> ListTableMetadataResponse -> ShowS
[ListTableMetadataResponse] -> ShowS
ListTableMetadataResponse -> String
(Int -> ListTableMetadataResponse -> ShowS)
-> (ListTableMetadataResponse -> String)
-> ([ListTableMetadataResponse] -> ShowS)
-> Show ListTableMetadataResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTableMetadataResponse] -> ShowS
$cshowList :: [ListTableMetadataResponse] -> ShowS
show :: ListTableMetadataResponse -> String
$cshow :: ListTableMetadataResponse -> String
showsPrec :: Int -> ListTableMetadataResponse -> ShowS
$cshowsPrec :: Int -> ListTableMetadataResponse -> ShowS
Prelude.Show, (forall x.
ListTableMetadataResponse -> Rep ListTableMetadataResponse x)
-> (forall x.
Rep ListTableMetadataResponse x -> ListTableMetadataResponse)
-> Generic ListTableMetadataResponse
forall x.
Rep ListTableMetadataResponse x -> ListTableMetadataResponse
forall x.
ListTableMetadataResponse -> Rep ListTableMetadataResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTableMetadataResponse x -> ListTableMetadataResponse
$cfrom :: forall x.
ListTableMetadataResponse -> Rep ListTableMetadataResponse x
Prelude.Generic)
newListTableMetadataResponse ::
Prelude.Int ->
ListTableMetadataResponse
newListTableMetadataResponse :: Int -> ListTableMetadataResponse
newListTableMetadataResponse Int
pHttpStatus_ =
ListTableMetadataResponse' :: Maybe Text
-> Maybe [TableMetadata] -> Int -> ListTableMetadataResponse
ListTableMetadataResponse'
{ $sel:nextToken:ListTableMetadataResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tableMetadataList:ListTableMetadataResponse' :: Maybe [TableMetadata]
tableMetadataList = Maybe [TableMetadata]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTableMetadataResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listTableMetadataResponse_nextToken :: Lens.Lens' ListTableMetadataResponse (Prelude.Maybe Prelude.Text)
listTableMetadataResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTableMetadataResponse -> f ListTableMetadataResponse
listTableMetadataResponse_nextToken = (ListTableMetadataResponse -> Maybe Text)
-> (ListTableMetadataResponse
-> Maybe Text -> ListTableMetadataResponse)
-> Lens' ListTableMetadataResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadataResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTableMetadataResponse' :: ListTableMetadataResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTableMetadataResponse
s@ListTableMetadataResponse' {} Maybe Text
a -> ListTableMetadataResponse
s {$sel:nextToken:ListTableMetadataResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTableMetadataResponse)
listTableMetadataResponse_tableMetadataList :: Lens.Lens' ListTableMetadataResponse (Prelude.Maybe [TableMetadata])
listTableMetadataResponse_tableMetadataList :: (Maybe [TableMetadata] -> f (Maybe [TableMetadata]))
-> ListTableMetadataResponse -> f ListTableMetadataResponse
listTableMetadataResponse_tableMetadataList = (ListTableMetadataResponse -> Maybe [TableMetadata])
-> (ListTableMetadataResponse
-> Maybe [TableMetadata] -> ListTableMetadataResponse)
-> Lens' ListTableMetadataResponse (Maybe [TableMetadata])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadataResponse' {Maybe [TableMetadata]
tableMetadataList :: Maybe [TableMetadata]
$sel:tableMetadataList:ListTableMetadataResponse' :: ListTableMetadataResponse -> Maybe [TableMetadata]
tableMetadataList} -> Maybe [TableMetadata]
tableMetadataList) (\s :: ListTableMetadataResponse
s@ListTableMetadataResponse' {} Maybe [TableMetadata]
a -> ListTableMetadataResponse
s {$sel:tableMetadataList:ListTableMetadataResponse' :: Maybe [TableMetadata]
tableMetadataList = Maybe [TableMetadata]
a} :: ListTableMetadataResponse) ((Maybe [TableMetadata] -> f (Maybe [TableMetadata]))
-> ListTableMetadataResponse -> f ListTableMetadataResponse)
-> ((Maybe [TableMetadata] -> f (Maybe [TableMetadata]))
-> Maybe [TableMetadata] -> f (Maybe [TableMetadata]))
-> (Maybe [TableMetadata] -> f (Maybe [TableMetadata]))
-> ListTableMetadataResponse
-> f ListTableMetadataResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[TableMetadata] [TableMetadata] [TableMetadata] [TableMetadata]
-> Iso
(Maybe [TableMetadata])
(Maybe [TableMetadata])
(Maybe [TableMetadata])
(Maybe [TableMetadata])
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
[TableMetadata] [TableMetadata] [TableMetadata] [TableMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTableMetadataResponse_httpStatus :: Lens.Lens' ListTableMetadataResponse Prelude.Int
listTableMetadataResponse_httpStatus :: (Int -> f Int)
-> ListTableMetadataResponse -> f ListTableMetadataResponse
listTableMetadataResponse_httpStatus = (ListTableMetadataResponse -> Int)
-> (ListTableMetadataResponse -> Int -> ListTableMetadataResponse)
-> Lens ListTableMetadataResponse ListTableMetadataResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTableMetadataResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTableMetadataResponse' :: ListTableMetadataResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTableMetadataResponse
s@ListTableMetadataResponse' {} Int
a -> ListTableMetadataResponse
s {$sel:httpStatus:ListTableMetadataResponse' :: Int
httpStatus = Int
a} :: ListTableMetadataResponse)
instance Prelude.NFData ListTableMetadataResponse