{-# 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.Glue.GetColumnStatisticsForTable
(
GetColumnStatisticsForTable (..),
newGetColumnStatisticsForTable,
getColumnStatisticsForTable_catalogId,
getColumnStatisticsForTable_databaseName,
getColumnStatisticsForTable_tableName,
getColumnStatisticsForTable_columnNames,
GetColumnStatisticsForTableResponse (..),
newGetColumnStatisticsForTableResponse,
getColumnStatisticsForTableResponse_errors,
getColumnStatisticsForTableResponse_columnStatisticsList,
getColumnStatisticsForTableResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetColumnStatisticsForTable = GetColumnStatisticsForTable'
{
GetColumnStatisticsForTable -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
GetColumnStatisticsForTable -> Text
databaseName :: Prelude.Text,
GetColumnStatisticsForTable -> Text
tableName :: Prelude.Text,
GetColumnStatisticsForTable -> [Text]
columnNames :: [Prelude.Text]
}
deriving (GetColumnStatisticsForTable -> GetColumnStatisticsForTable -> Bool
(GetColumnStatisticsForTable
-> GetColumnStatisticsForTable -> Bool)
-> (GetColumnStatisticsForTable
-> GetColumnStatisticsForTable -> Bool)
-> Eq GetColumnStatisticsForTable
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetColumnStatisticsForTable -> GetColumnStatisticsForTable -> Bool
$c/= :: GetColumnStatisticsForTable -> GetColumnStatisticsForTable -> Bool
== :: GetColumnStatisticsForTable -> GetColumnStatisticsForTable -> Bool
$c== :: GetColumnStatisticsForTable -> GetColumnStatisticsForTable -> Bool
Prelude.Eq, ReadPrec [GetColumnStatisticsForTable]
ReadPrec GetColumnStatisticsForTable
Int -> ReadS GetColumnStatisticsForTable
ReadS [GetColumnStatisticsForTable]
(Int -> ReadS GetColumnStatisticsForTable)
-> ReadS [GetColumnStatisticsForTable]
-> ReadPrec GetColumnStatisticsForTable
-> ReadPrec [GetColumnStatisticsForTable]
-> Read GetColumnStatisticsForTable
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetColumnStatisticsForTable]
$creadListPrec :: ReadPrec [GetColumnStatisticsForTable]
readPrec :: ReadPrec GetColumnStatisticsForTable
$creadPrec :: ReadPrec GetColumnStatisticsForTable
readList :: ReadS [GetColumnStatisticsForTable]
$creadList :: ReadS [GetColumnStatisticsForTable]
readsPrec :: Int -> ReadS GetColumnStatisticsForTable
$creadsPrec :: Int -> ReadS GetColumnStatisticsForTable
Prelude.Read, Int -> GetColumnStatisticsForTable -> ShowS
[GetColumnStatisticsForTable] -> ShowS
GetColumnStatisticsForTable -> String
(Int -> GetColumnStatisticsForTable -> ShowS)
-> (GetColumnStatisticsForTable -> String)
-> ([GetColumnStatisticsForTable] -> ShowS)
-> Show GetColumnStatisticsForTable
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetColumnStatisticsForTable] -> ShowS
$cshowList :: [GetColumnStatisticsForTable] -> ShowS
show :: GetColumnStatisticsForTable -> String
$cshow :: GetColumnStatisticsForTable -> String
showsPrec :: Int -> GetColumnStatisticsForTable -> ShowS
$cshowsPrec :: Int -> GetColumnStatisticsForTable -> ShowS
Prelude.Show, (forall x.
GetColumnStatisticsForTable -> Rep GetColumnStatisticsForTable x)
-> (forall x.
Rep GetColumnStatisticsForTable x -> GetColumnStatisticsForTable)
-> Generic GetColumnStatisticsForTable
forall x.
Rep GetColumnStatisticsForTable x -> GetColumnStatisticsForTable
forall x.
GetColumnStatisticsForTable -> Rep GetColumnStatisticsForTable x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetColumnStatisticsForTable x -> GetColumnStatisticsForTable
$cfrom :: forall x.
GetColumnStatisticsForTable -> Rep GetColumnStatisticsForTable x
Prelude.Generic)
newGetColumnStatisticsForTable ::
Prelude.Text ->
Prelude.Text ->
GetColumnStatisticsForTable
newGetColumnStatisticsForTable :: Text -> Text -> GetColumnStatisticsForTable
newGetColumnStatisticsForTable
Text
pDatabaseName_
Text
pTableName_ =
GetColumnStatisticsForTable' :: Maybe Text -> Text -> Text -> [Text] -> GetColumnStatisticsForTable
GetColumnStatisticsForTable'
{ $sel:catalogId:GetColumnStatisticsForTable' :: Maybe Text
catalogId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:databaseName:GetColumnStatisticsForTable' :: Text
databaseName = Text
pDatabaseName_,
$sel:tableName:GetColumnStatisticsForTable' :: Text
tableName = Text
pTableName_,
$sel:columnNames:GetColumnStatisticsForTable' :: [Text]
columnNames = [Text]
forall a. Monoid a => a
Prelude.mempty
}
getColumnStatisticsForTable_catalogId :: Lens.Lens' GetColumnStatisticsForTable (Prelude.Maybe Prelude.Text)
getColumnStatisticsForTable_catalogId :: (Maybe Text -> f (Maybe Text))
-> GetColumnStatisticsForTable -> f GetColumnStatisticsForTable
getColumnStatisticsForTable_catalogId = (GetColumnStatisticsForTable -> Maybe Text)
-> (GetColumnStatisticsForTable
-> Maybe Text -> GetColumnStatisticsForTable)
-> Lens
GetColumnStatisticsForTable
GetColumnStatisticsForTable
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetColumnStatisticsForTable' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: GetColumnStatisticsForTable
s@GetColumnStatisticsForTable' {} Maybe Text
a -> GetColumnStatisticsForTable
s {$sel:catalogId:GetColumnStatisticsForTable' :: Maybe Text
catalogId = Maybe Text
a} :: GetColumnStatisticsForTable)
getColumnStatisticsForTable_databaseName :: Lens.Lens' GetColumnStatisticsForTable Prelude.Text
getColumnStatisticsForTable_databaseName :: (Text -> f Text)
-> GetColumnStatisticsForTable -> f GetColumnStatisticsForTable
getColumnStatisticsForTable_databaseName = (GetColumnStatisticsForTable -> Text)
-> (GetColumnStatisticsForTable
-> Text -> GetColumnStatisticsForTable)
-> Lens
GetColumnStatisticsForTable GetColumnStatisticsForTable Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetColumnStatisticsForTable' {Text
databaseName :: Text
$sel:databaseName:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> Text
databaseName} -> Text
databaseName) (\s :: GetColumnStatisticsForTable
s@GetColumnStatisticsForTable' {} Text
a -> GetColumnStatisticsForTable
s {$sel:databaseName:GetColumnStatisticsForTable' :: Text
databaseName = Text
a} :: GetColumnStatisticsForTable)
getColumnStatisticsForTable_tableName :: Lens.Lens' GetColumnStatisticsForTable Prelude.Text
getColumnStatisticsForTable_tableName :: (Text -> f Text)
-> GetColumnStatisticsForTable -> f GetColumnStatisticsForTable
getColumnStatisticsForTable_tableName = (GetColumnStatisticsForTable -> Text)
-> (GetColumnStatisticsForTable
-> Text -> GetColumnStatisticsForTable)
-> Lens
GetColumnStatisticsForTable GetColumnStatisticsForTable Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetColumnStatisticsForTable' {Text
tableName :: Text
$sel:tableName:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> Text
tableName} -> Text
tableName) (\s :: GetColumnStatisticsForTable
s@GetColumnStatisticsForTable' {} Text
a -> GetColumnStatisticsForTable
s {$sel:tableName:GetColumnStatisticsForTable' :: Text
tableName = Text
a} :: GetColumnStatisticsForTable)
getColumnStatisticsForTable_columnNames :: Lens.Lens' GetColumnStatisticsForTable [Prelude.Text]
getColumnStatisticsForTable_columnNames :: ([Text] -> f [Text])
-> GetColumnStatisticsForTable -> f GetColumnStatisticsForTable
getColumnStatisticsForTable_columnNames = (GetColumnStatisticsForTable -> [Text])
-> (GetColumnStatisticsForTable
-> [Text] -> GetColumnStatisticsForTable)
-> Lens
GetColumnStatisticsForTable
GetColumnStatisticsForTable
[Text]
[Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetColumnStatisticsForTable' {[Text]
columnNames :: [Text]
$sel:columnNames:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> [Text]
columnNames} -> [Text]
columnNames) (\s :: GetColumnStatisticsForTable
s@GetColumnStatisticsForTable' {} [Text]
a -> GetColumnStatisticsForTable
s {$sel:columnNames:GetColumnStatisticsForTable' :: [Text]
columnNames = [Text]
a} :: GetColumnStatisticsForTable) (([Text] -> f [Text])
-> GetColumnStatisticsForTable -> f GetColumnStatisticsForTable)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> GetColumnStatisticsForTable
-> f GetColumnStatisticsForTable
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest GetColumnStatisticsForTable where
type
AWSResponse GetColumnStatisticsForTable =
GetColumnStatisticsForTableResponse
request :: GetColumnStatisticsForTable -> Request GetColumnStatisticsForTable
request = Service
-> GetColumnStatisticsForTable
-> Request GetColumnStatisticsForTable
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetColumnStatisticsForTable
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetColumnStatisticsForTable)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetColumnStatisticsForTable))
-> Logger
-> Service
-> Proxy GetColumnStatisticsForTable
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetColumnStatisticsForTable)))
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 [ColumnError]
-> Maybe [ColumnStatistics]
-> Int
-> GetColumnStatisticsForTableResponse
GetColumnStatisticsForTableResponse'
(Maybe [ColumnError]
-> Maybe [ColumnStatistics]
-> Int
-> GetColumnStatisticsForTableResponse)
-> Either String (Maybe [ColumnError])
-> Either
String
(Maybe [ColumnStatistics]
-> Int -> GetColumnStatisticsForTableResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [ColumnError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Errors" Either String (Maybe (Maybe [ColumnError]))
-> Maybe [ColumnError] -> Either String (Maybe [ColumnError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ColumnError]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe [ColumnStatistics]
-> Int -> GetColumnStatisticsForTableResponse)
-> Either String (Maybe [ColumnStatistics])
-> Either String (Int -> GetColumnStatisticsForTableResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ColumnStatistics]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ColumnStatisticsList"
Either String (Maybe (Maybe [ColumnStatistics]))
-> Maybe [ColumnStatistics]
-> Either String (Maybe [ColumnStatistics])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ColumnStatistics]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> GetColumnStatisticsForTableResponse)
-> Either String Int
-> Either String GetColumnStatisticsForTableResponse
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 GetColumnStatisticsForTable
instance Prelude.NFData GetColumnStatisticsForTable
instance Core.ToHeaders GetColumnStatisticsForTable where
toHeaders :: GetColumnStatisticsForTable -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetColumnStatisticsForTable -> 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
"AWSGlue.GetColumnStatisticsForTable" ::
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 GetColumnStatisticsForTable where
toJSON :: GetColumnStatisticsForTable -> Value
toJSON GetColumnStatisticsForTable' {[Text]
Maybe Text
Text
columnNames :: [Text]
tableName :: Text
databaseName :: Text
catalogId :: Maybe Text
$sel:columnNames:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> [Text]
$sel:tableName:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> Text
$sel:databaseName:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> Text
$sel:catalogId:GetColumnStatisticsForTable' :: GetColumnStatisticsForTable -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"CatalogId" 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
catalogId,
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),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TableName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
tableName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ColumnNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
columnNames)
]
)
instance Core.ToPath GetColumnStatisticsForTable where
toPath :: GetColumnStatisticsForTable -> ByteString
toPath = ByteString -> GetColumnStatisticsForTable -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetColumnStatisticsForTable where
toQuery :: GetColumnStatisticsForTable -> QueryString
toQuery = QueryString -> GetColumnStatisticsForTable -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetColumnStatisticsForTableResponse = GetColumnStatisticsForTableResponse'
{
GetColumnStatisticsForTableResponse -> Maybe [ColumnError]
errors :: Prelude.Maybe [ColumnError],
GetColumnStatisticsForTableResponse -> Maybe [ColumnStatistics]
columnStatisticsList :: Prelude.Maybe [ColumnStatistics],
GetColumnStatisticsForTableResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetColumnStatisticsForTableResponse
-> GetColumnStatisticsForTableResponse -> Bool
(GetColumnStatisticsForTableResponse
-> GetColumnStatisticsForTableResponse -> Bool)
-> (GetColumnStatisticsForTableResponse
-> GetColumnStatisticsForTableResponse -> Bool)
-> Eq GetColumnStatisticsForTableResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetColumnStatisticsForTableResponse
-> GetColumnStatisticsForTableResponse -> Bool
$c/= :: GetColumnStatisticsForTableResponse
-> GetColumnStatisticsForTableResponse -> Bool
== :: GetColumnStatisticsForTableResponse
-> GetColumnStatisticsForTableResponse -> Bool
$c== :: GetColumnStatisticsForTableResponse
-> GetColumnStatisticsForTableResponse -> Bool
Prelude.Eq, ReadPrec [GetColumnStatisticsForTableResponse]
ReadPrec GetColumnStatisticsForTableResponse
Int -> ReadS GetColumnStatisticsForTableResponse
ReadS [GetColumnStatisticsForTableResponse]
(Int -> ReadS GetColumnStatisticsForTableResponse)
-> ReadS [GetColumnStatisticsForTableResponse]
-> ReadPrec GetColumnStatisticsForTableResponse
-> ReadPrec [GetColumnStatisticsForTableResponse]
-> Read GetColumnStatisticsForTableResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetColumnStatisticsForTableResponse]
$creadListPrec :: ReadPrec [GetColumnStatisticsForTableResponse]
readPrec :: ReadPrec GetColumnStatisticsForTableResponse
$creadPrec :: ReadPrec GetColumnStatisticsForTableResponse
readList :: ReadS [GetColumnStatisticsForTableResponse]
$creadList :: ReadS [GetColumnStatisticsForTableResponse]
readsPrec :: Int -> ReadS GetColumnStatisticsForTableResponse
$creadsPrec :: Int -> ReadS GetColumnStatisticsForTableResponse
Prelude.Read, Int -> GetColumnStatisticsForTableResponse -> ShowS
[GetColumnStatisticsForTableResponse] -> ShowS
GetColumnStatisticsForTableResponse -> String
(Int -> GetColumnStatisticsForTableResponse -> ShowS)
-> (GetColumnStatisticsForTableResponse -> String)
-> ([GetColumnStatisticsForTableResponse] -> ShowS)
-> Show GetColumnStatisticsForTableResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetColumnStatisticsForTableResponse] -> ShowS
$cshowList :: [GetColumnStatisticsForTableResponse] -> ShowS
show :: GetColumnStatisticsForTableResponse -> String
$cshow :: GetColumnStatisticsForTableResponse -> String
showsPrec :: Int -> GetColumnStatisticsForTableResponse -> ShowS
$cshowsPrec :: Int -> GetColumnStatisticsForTableResponse -> ShowS
Prelude.Show, (forall x.
GetColumnStatisticsForTableResponse
-> Rep GetColumnStatisticsForTableResponse x)
-> (forall x.
Rep GetColumnStatisticsForTableResponse x
-> GetColumnStatisticsForTableResponse)
-> Generic GetColumnStatisticsForTableResponse
forall x.
Rep GetColumnStatisticsForTableResponse x
-> GetColumnStatisticsForTableResponse
forall x.
GetColumnStatisticsForTableResponse
-> Rep GetColumnStatisticsForTableResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetColumnStatisticsForTableResponse x
-> GetColumnStatisticsForTableResponse
$cfrom :: forall x.
GetColumnStatisticsForTableResponse
-> Rep GetColumnStatisticsForTableResponse x
Prelude.Generic)
newGetColumnStatisticsForTableResponse ::
Prelude.Int ->
GetColumnStatisticsForTableResponse
newGetColumnStatisticsForTableResponse :: Int -> GetColumnStatisticsForTableResponse
newGetColumnStatisticsForTableResponse Int
pHttpStatus_ =
GetColumnStatisticsForTableResponse' :: Maybe [ColumnError]
-> Maybe [ColumnStatistics]
-> Int
-> GetColumnStatisticsForTableResponse
GetColumnStatisticsForTableResponse'
{ $sel:errors:GetColumnStatisticsForTableResponse' :: Maybe [ColumnError]
errors =
Maybe [ColumnError]
forall a. Maybe a
Prelude.Nothing,
$sel:columnStatisticsList:GetColumnStatisticsForTableResponse' :: Maybe [ColumnStatistics]
columnStatisticsList = Maybe [ColumnStatistics]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetColumnStatisticsForTableResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getColumnStatisticsForTableResponse_errors :: Lens.Lens' GetColumnStatisticsForTableResponse (Prelude.Maybe [ColumnError])
getColumnStatisticsForTableResponse_errors :: (Maybe [ColumnError] -> f (Maybe [ColumnError]))
-> GetColumnStatisticsForTableResponse
-> f GetColumnStatisticsForTableResponse
getColumnStatisticsForTableResponse_errors = (GetColumnStatisticsForTableResponse -> Maybe [ColumnError])
-> (GetColumnStatisticsForTableResponse
-> Maybe [ColumnError] -> GetColumnStatisticsForTableResponse)
-> Lens
GetColumnStatisticsForTableResponse
GetColumnStatisticsForTableResponse
(Maybe [ColumnError])
(Maybe [ColumnError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetColumnStatisticsForTableResponse' {Maybe [ColumnError]
errors :: Maybe [ColumnError]
$sel:errors:GetColumnStatisticsForTableResponse' :: GetColumnStatisticsForTableResponse -> Maybe [ColumnError]
errors} -> Maybe [ColumnError]
errors) (\s :: GetColumnStatisticsForTableResponse
s@GetColumnStatisticsForTableResponse' {} Maybe [ColumnError]
a -> GetColumnStatisticsForTableResponse
s {$sel:errors:GetColumnStatisticsForTableResponse' :: Maybe [ColumnError]
errors = Maybe [ColumnError]
a} :: GetColumnStatisticsForTableResponse) ((Maybe [ColumnError] -> f (Maybe [ColumnError]))
-> GetColumnStatisticsForTableResponse
-> f GetColumnStatisticsForTableResponse)
-> ((Maybe [ColumnError] -> f (Maybe [ColumnError]))
-> Maybe [ColumnError] -> f (Maybe [ColumnError]))
-> (Maybe [ColumnError] -> f (Maybe [ColumnError]))
-> GetColumnStatisticsForTableResponse
-> f GetColumnStatisticsForTableResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ColumnError] [ColumnError] [ColumnError] [ColumnError]
-> Iso
(Maybe [ColumnError])
(Maybe [ColumnError])
(Maybe [ColumnError])
(Maybe [ColumnError])
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 [ColumnError] [ColumnError] [ColumnError] [ColumnError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getColumnStatisticsForTableResponse_columnStatisticsList :: Lens.Lens' GetColumnStatisticsForTableResponse (Prelude.Maybe [ColumnStatistics])
getColumnStatisticsForTableResponse_columnStatisticsList :: (Maybe [ColumnStatistics] -> f (Maybe [ColumnStatistics]))
-> GetColumnStatisticsForTableResponse
-> f GetColumnStatisticsForTableResponse
getColumnStatisticsForTableResponse_columnStatisticsList = (GetColumnStatisticsForTableResponse -> Maybe [ColumnStatistics])
-> (GetColumnStatisticsForTableResponse
-> Maybe [ColumnStatistics] -> GetColumnStatisticsForTableResponse)
-> Lens
GetColumnStatisticsForTableResponse
GetColumnStatisticsForTableResponse
(Maybe [ColumnStatistics])
(Maybe [ColumnStatistics])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetColumnStatisticsForTableResponse' {Maybe [ColumnStatistics]
columnStatisticsList :: Maybe [ColumnStatistics]
$sel:columnStatisticsList:GetColumnStatisticsForTableResponse' :: GetColumnStatisticsForTableResponse -> Maybe [ColumnStatistics]
columnStatisticsList} -> Maybe [ColumnStatistics]
columnStatisticsList) (\s :: GetColumnStatisticsForTableResponse
s@GetColumnStatisticsForTableResponse' {} Maybe [ColumnStatistics]
a -> GetColumnStatisticsForTableResponse
s {$sel:columnStatisticsList:GetColumnStatisticsForTableResponse' :: Maybe [ColumnStatistics]
columnStatisticsList = Maybe [ColumnStatistics]
a} :: GetColumnStatisticsForTableResponse) ((Maybe [ColumnStatistics] -> f (Maybe [ColumnStatistics]))
-> GetColumnStatisticsForTableResponse
-> f GetColumnStatisticsForTableResponse)
-> ((Maybe [ColumnStatistics] -> f (Maybe [ColumnStatistics]))
-> Maybe [ColumnStatistics] -> f (Maybe [ColumnStatistics]))
-> (Maybe [ColumnStatistics] -> f (Maybe [ColumnStatistics]))
-> GetColumnStatisticsForTableResponse
-> f GetColumnStatisticsForTableResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ColumnStatistics]
[ColumnStatistics]
[ColumnStatistics]
[ColumnStatistics]
-> Iso
(Maybe [ColumnStatistics])
(Maybe [ColumnStatistics])
(Maybe [ColumnStatistics])
(Maybe [ColumnStatistics])
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
[ColumnStatistics]
[ColumnStatistics]
[ColumnStatistics]
[ColumnStatistics]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getColumnStatisticsForTableResponse_httpStatus :: Lens.Lens' GetColumnStatisticsForTableResponse Prelude.Int
getColumnStatisticsForTableResponse_httpStatus :: (Int -> f Int)
-> GetColumnStatisticsForTableResponse
-> f GetColumnStatisticsForTableResponse
getColumnStatisticsForTableResponse_httpStatus = (GetColumnStatisticsForTableResponse -> Int)
-> (GetColumnStatisticsForTableResponse
-> Int -> GetColumnStatisticsForTableResponse)
-> Lens
GetColumnStatisticsForTableResponse
GetColumnStatisticsForTableResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetColumnStatisticsForTableResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetColumnStatisticsForTableResponse' :: GetColumnStatisticsForTableResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetColumnStatisticsForTableResponse
s@GetColumnStatisticsForTableResponse' {} Int
a -> GetColumnStatisticsForTableResponse
s {$sel:httpStatus:GetColumnStatisticsForTableResponse' :: Int
httpStatus = Int
a} :: GetColumnStatisticsForTableResponse)
instance
Prelude.NFData
GetColumnStatisticsForTableResponse