{-# 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.LakeFormation.SearchTablesByLFTags
(
SearchTablesByLFTags (..),
newSearchTablesByLFTags,
searchTablesByLFTags_catalogId,
searchTablesByLFTags_maxResults,
searchTablesByLFTags_nextToken,
searchTablesByLFTags_expression,
SearchTablesByLFTagsResponse (..),
newSearchTablesByLFTagsResponse,
searchTablesByLFTagsResponse_nextToken,
searchTablesByLFTagsResponse_tableList,
searchTablesByLFTagsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LakeFormation.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data SearchTablesByLFTags = SearchTablesByLFTags'
{
SearchTablesByLFTags -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
SearchTablesByLFTags -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
SearchTablesByLFTags -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
SearchTablesByLFTags -> NonEmpty LFTag
expression :: Prelude.NonEmpty LFTag
}
deriving (SearchTablesByLFTags -> SearchTablesByLFTags -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SearchTablesByLFTags -> SearchTablesByLFTags -> Bool
$c/= :: SearchTablesByLFTags -> SearchTablesByLFTags -> Bool
== :: SearchTablesByLFTags -> SearchTablesByLFTags -> Bool
$c== :: SearchTablesByLFTags -> SearchTablesByLFTags -> Bool
Prelude.Eq, ReadPrec [SearchTablesByLFTags]
ReadPrec SearchTablesByLFTags
Int -> ReadS SearchTablesByLFTags
ReadS [SearchTablesByLFTags]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SearchTablesByLFTags]
$creadListPrec :: ReadPrec [SearchTablesByLFTags]
readPrec :: ReadPrec SearchTablesByLFTags
$creadPrec :: ReadPrec SearchTablesByLFTags
readList :: ReadS [SearchTablesByLFTags]
$creadList :: ReadS [SearchTablesByLFTags]
readsPrec :: Int -> ReadS SearchTablesByLFTags
$creadsPrec :: Int -> ReadS SearchTablesByLFTags
Prelude.Read, Int -> SearchTablesByLFTags -> ShowS
[SearchTablesByLFTags] -> ShowS
SearchTablesByLFTags -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SearchTablesByLFTags] -> ShowS
$cshowList :: [SearchTablesByLFTags] -> ShowS
show :: SearchTablesByLFTags -> String
$cshow :: SearchTablesByLFTags -> String
showsPrec :: Int -> SearchTablesByLFTags -> ShowS
$cshowsPrec :: Int -> SearchTablesByLFTags -> ShowS
Prelude.Show, forall x. Rep SearchTablesByLFTags x -> SearchTablesByLFTags
forall x. SearchTablesByLFTags -> Rep SearchTablesByLFTags x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SearchTablesByLFTags x -> SearchTablesByLFTags
$cfrom :: forall x. SearchTablesByLFTags -> Rep SearchTablesByLFTags x
Prelude.Generic)
newSearchTablesByLFTags ::
Prelude.NonEmpty LFTag ->
SearchTablesByLFTags
newSearchTablesByLFTags :: NonEmpty LFTag -> SearchTablesByLFTags
newSearchTablesByLFTags NonEmpty LFTag
pExpression_ =
SearchTablesByLFTags'
{ $sel:catalogId:SearchTablesByLFTags' :: Maybe Text
catalogId = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:SearchTablesByLFTags' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:SearchTablesByLFTags' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:expression:SearchTablesByLFTags' :: NonEmpty LFTag
expression = forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced forall t b. AReview t b -> b -> t
Lens.# NonEmpty LFTag
pExpression_
}
searchTablesByLFTags_catalogId :: Lens.Lens' SearchTablesByLFTags (Prelude.Maybe Prelude.Text)
searchTablesByLFTags_catalogId :: Lens' SearchTablesByLFTags (Maybe Text)
searchTablesByLFTags_catalogId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchTablesByLFTags' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: SearchTablesByLFTags
s@SearchTablesByLFTags' {} Maybe Text
a -> SearchTablesByLFTags
s {$sel:catalogId:SearchTablesByLFTags' :: Maybe Text
catalogId = Maybe Text
a} :: SearchTablesByLFTags)
searchTablesByLFTags_maxResults :: Lens.Lens' SearchTablesByLFTags (Prelude.Maybe Prelude.Natural)
searchTablesByLFTags_maxResults :: Lens' SearchTablesByLFTags (Maybe Natural)
searchTablesByLFTags_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchTablesByLFTags' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: SearchTablesByLFTags
s@SearchTablesByLFTags' {} Maybe Natural
a -> SearchTablesByLFTags
s {$sel:maxResults:SearchTablesByLFTags' :: Maybe Natural
maxResults = Maybe Natural
a} :: SearchTablesByLFTags)
searchTablesByLFTags_nextToken :: Lens.Lens' SearchTablesByLFTags (Prelude.Maybe Prelude.Text)
searchTablesByLFTags_nextToken :: Lens' SearchTablesByLFTags (Maybe Text)
searchTablesByLFTags_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchTablesByLFTags' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: SearchTablesByLFTags
s@SearchTablesByLFTags' {} Maybe Text
a -> SearchTablesByLFTags
s {$sel:nextToken:SearchTablesByLFTags' :: Maybe Text
nextToken = Maybe Text
a} :: SearchTablesByLFTags)
searchTablesByLFTags_expression :: Lens.Lens' SearchTablesByLFTags (Prelude.NonEmpty LFTag)
searchTablesByLFTags_expression :: Lens' SearchTablesByLFTags (NonEmpty LFTag)
searchTablesByLFTags_expression = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchTablesByLFTags' {NonEmpty LFTag
expression :: NonEmpty LFTag
$sel:expression:SearchTablesByLFTags' :: SearchTablesByLFTags -> NonEmpty LFTag
expression} -> NonEmpty LFTag
expression) (\s :: SearchTablesByLFTags
s@SearchTablesByLFTags' {} NonEmpty LFTag
a -> SearchTablesByLFTags
s {$sel:expression:SearchTablesByLFTags' :: NonEmpty LFTag
expression = NonEmpty LFTag
a} :: SearchTablesByLFTags) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSPager SearchTablesByLFTags where
page :: SearchTablesByLFTags
-> AWSResponse SearchTablesByLFTags -> Maybe SearchTablesByLFTags
page SearchTablesByLFTags
rq AWSResponse SearchTablesByLFTags
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse SearchTablesByLFTags
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' SearchTablesByLFTagsResponse (Maybe Text)
searchTablesByLFTagsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse SearchTablesByLFTags
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' SearchTablesByLFTagsResponse (Maybe [TaggedTable])
searchTablesByLFTagsResponse_tableList
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ SearchTablesByLFTags
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' SearchTablesByLFTags (Maybe Text)
searchTablesByLFTags_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse SearchTablesByLFTags
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' SearchTablesByLFTagsResponse (Maybe Text)
searchTablesByLFTagsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest SearchTablesByLFTags where
type
AWSResponse SearchTablesByLFTags =
SearchTablesByLFTagsResponse
request :: (Service -> Service)
-> SearchTablesByLFTags -> Request SearchTablesByLFTags
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy SearchTablesByLFTags
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse SearchTablesByLFTags)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [TaggedTable] -> Int -> SearchTablesByLFTagsResponse
SearchTablesByLFTagsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TableList" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable SearchTablesByLFTags where
hashWithSalt :: Int -> SearchTablesByLFTags -> Int
hashWithSalt Int
_salt SearchTablesByLFTags' {Maybe Natural
Maybe Text
NonEmpty LFTag
expression :: NonEmpty LFTag
nextToken :: Maybe Text
maxResults :: Maybe Natural
catalogId :: Maybe Text
$sel:expression:SearchTablesByLFTags' :: SearchTablesByLFTags -> NonEmpty LFTag
$sel:nextToken:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
$sel:maxResults:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Natural
$sel:catalogId:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
catalogId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` NonEmpty LFTag
expression
instance Prelude.NFData SearchTablesByLFTags where
rnf :: SearchTablesByLFTags -> ()
rnf SearchTablesByLFTags' {Maybe Natural
Maybe Text
NonEmpty LFTag
expression :: NonEmpty LFTag
nextToken :: Maybe Text
maxResults :: Maybe Natural
catalogId :: Maybe Text
$sel:expression:SearchTablesByLFTags' :: SearchTablesByLFTags -> NonEmpty LFTag
$sel:nextToken:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
$sel:maxResults:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Natural
$sel:catalogId:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
catalogId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf NonEmpty LFTag
expression
instance Data.ToHeaders SearchTablesByLFTags where
toHeaders :: SearchTablesByLFTags -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON SearchTablesByLFTags where
toJSON :: SearchTablesByLFTags -> Value
toJSON SearchTablesByLFTags' {Maybe Natural
Maybe Text
NonEmpty LFTag
expression :: NonEmpty LFTag
nextToken :: Maybe Text
maxResults :: Maybe Natural
catalogId :: Maybe Text
$sel:expression:SearchTablesByLFTags' :: SearchTablesByLFTags -> NonEmpty LFTag
$sel:nextToken:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
$sel:maxResults:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Natural
$sel:catalogId:SearchTablesByLFTags' :: SearchTablesByLFTags -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"CatalogId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
catalogId,
(Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
forall a. a -> Maybe a
Prelude.Just (Key
"Expression" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= NonEmpty LFTag
expression)
]
)
instance Data.ToPath SearchTablesByLFTags where
toPath :: SearchTablesByLFTags -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/SearchTablesByLFTags"
instance Data.ToQuery SearchTablesByLFTags where
toQuery :: SearchTablesByLFTags -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data SearchTablesByLFTagsResponse = SearchTablesByLFTagsResponse'
{
SearchTablesByLFTagsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
SearchTablesByLFTagsResponse -> Maybe [TaggedTable]
tableList :: Prelude.Maybe [TaggedTable],
SearchTablesByLFTagsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (SearchTablesByLFTagsResponse
-> SearchTablesByLFTagsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SearchTablesByLFTagsResponse
-> SearchTablesByLFTagsResponse -> Bool
$c/= :: SearchTablesByLFTagsResponse
-> SearchTablesByLFTagsResponse -> Bool
== :: SearchTablesByLFTagsResponse
-> SearchTablesByLFTagsResponse -> Bool
$c== :: SearchTablesByLFTagsResponse
-> SearchTablesByLFTagsResponse -> Bool
Prelude.Eq, ReadPrec [SearchTablesByLFTagsResponse]
ReadPrec SearchTablesByLFTagsResponse
Int -> ReadS SearchTablesByLFTagsResponse
ReadS [SearchTablesByLFTagsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SearchTablesByLFTagsResponse]
$creadListPrec :: ReadPrec [SearchTablesByLFTagsResponse]
readPrec :: ReadPrec SearchTablesByLFTagsResponse
$creadPrec :: ReadPrec SearchTablesByLFTagsResponse
readList :: ReadS [SearchTablesByLFTagsResponse]
$creadList :: ReadS [SearchTablesByLFTagsResponse]
readsPrec :: Int -> ReadS SearchTablesByLFTagsResponse
$creadsPrec :: Int -> ReadS SearchTablesByLFTagsResponse
Prelude.Read, Int -> SearchTablesByLFTagsResponse -> ShowS
[SearchTablesByLFTagsResponse] -> ShowS
SearchTablesByLFTagsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SearchTablesByLFTagsResponse] -> ShowS
$cshowList :: [SearchTablesByLFTagsResponse] -> ShowS
show :: SearchTablesByLFTagsResponse -> String
$cshow :: SearchTablesByLFTagsResponse -> String
showsPrec :: Int -> SearchTablesByLFTagsResponse -> ShowS
$cshowsPrec :: Int -> SearchTablesByLFTagsResponse -> ShowS
Prelude.Show, forall x.
Rep SearchTablesByLFTagsResponse x -> SearchTablesByLFTagsResponse
forall x.
SearchTablesByLFTagsResponse -> Rep SearchTablesByLFTagsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep SearchTablesByLFTagsResponse x -> SearchTablesByLFTagsResponse
$cfrom :: forall x.
SearchTablesByLFTagsResponse -> Rep SearchTablesByLFTagsResponse x
Prelude.Generic)
newSearchTablesByLFTagsResponse ::
Prelude.Int ->
SearchTablesByLFTagsResponse
newSearchTablesByLFTagsResponse :: Int -> SearchTablesByLFTagsResponse
newSearchTablesByLFTagsResponse Int
pHttpStatus_ =
SearchTablesByLFTagsResponse'
{ $sel:nextToken:SearchTablesByLFTagsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:tableList:SearchTablesByLFTagsResponse' :: Maybe [TaggedTable]
tableList = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:SearchTablesByLFTagsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
searchTablesByLFTagsResponse_nextToken :: Lens.Lens' SearchTablesByLFTagsResponse (Prelude.Maybe Prelude.Text)
searchTablesByLFTagsResponse_nextToken :: Lens' SearchTablesByLFTagsResponse (Maybe Text)
searchTablesByLFTagsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchTablesByLFTagsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:SearchTablesByLFTagsResponse' :: SearchTablesByLFTagsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: SearchTablesByLFTagsResponse
s@SearchTablesByLFTagsResponse' {} Maybe Text
a -> SearchTablesByLFTagsResponse
s {$sel:nextToken:SearchTablesByLFTagsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: SearchTablesByLFTagsResponse)
searchTablesByLFTagsResponse_tableList :: Lens.Lens' SearchTablesByLFTagsResponse (Prelude.Maybe [TaggedTable])
searchTablesByLFTagsResponse_tableList :: Lens' SearchTablesByLFTagsResponse (Maybe [TaggedTable])
searchTablesByLFTagsResponse_tableList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchTablesByLFTagsResponse' {Maybe [TaggedTable]
tableList :: Maybe [TaggedTable]
$sel:tableList:SearchTablesByLFTagsResponse' :: SearchTablesByLFTagsResponse -> Maybe [TaggedTable]
tableList} -> Maybe [TaggedTable]
tableList) (\s :: SearchTablesByLFTagsResponse
s@SearchTablesByLFTagsResponse' {} Maybe [TaggedTable]
a -> SearchTablesByLFTagsResponse
s {$sel:tableList:SearchTablesByLFTagsResponse' :: Maybe [TaggedTable]
tableList = Maybe [TaggedTable]
a} :: SearchTablesByLFTagsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
searchTablesByLFTagsResponse_httpStatus :: Lens.Lens' SearchTablesByLFTagsResponse Prelude.Int
searchTablesByLFTagsResponse_httpStatus :: Lens' SearchTablesByLFTagsResponse Int
searchTablesByLFTagsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SearchTablesByLFTagsResponse' {Int
httpStatus :: Int
$sel:httpStatus:SearchTablesByLFTagsResponse' :: SearchTablesByLFTagsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: SearchTablesByLFTagsResponse
s@SearchTablesByLFTagsResponse' {} Int
a -> SearchTablesByLFTagsResponse
s {$sel:httpStatus:SearchTablesByLFTagsResponse' :: Int
httpStatus = Int
a} :: SearchTablesByLFTagsResponse)
instance Prelude.NFData SearchTablesByLFTagsResponse where
rnf :: SearchTablesByLFTagsResponse -> ()
rnf SearchTablesByLFTagsResponse' {Int
Maybe [TaggedTable]
Maybe Text
httpStatus :: Int
tableList :: Maybe [TaggedTable]
nextToken :: Maybe Text
$sel:httpStatus:SearchTablesByLFTagsResponse' :: SearchTablesByLFTagsResponse -> Int
$sel:tableList:SearchTablesByLFTagsResponse' :: SearchTablesByLFTagsResponse -> Maybe [TaggedTable]
$sel:nextToken:SearchTablesByLFTagsResponse' :: SearchTablesByLFTagsResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TaggedTable]
tableList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus