{-# 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.UpdateColumnStatisticsForTable
(
UpdateColumnStatisticsForTable (..),
newUpdateColumnStatisticsForTable,
updateColumnStatisticsForTable_catalogId,
updateColumnStatisticsForTable_databaseName,
updateColumnStatisticsForTable_tableName,
updateColumnStatisticsForTable_columnStatisticsList,
UpdateColumnStatisticsForTableResponse (..),
newUpdateColumnStatisticsForTableResponse,
updateColumnStatisticsForTableResponse_errors,
updateColumnStatisticsForTableResponse_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 UpdateColumnStatisticsForTable = UpdateColumnStatisticsForTable'
{
UpdateColumnStatisticsForTable -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
UpdateColumnStatisticsForTable -> Text
databaseName :: Prelude.Text,
UpdateColumnStatisticsForTable -> Text
tableName :: Prelude.Text,
UpdateColumnStatisticsForTable -> [ColumnStatistics]
columnStatisticsList :: [ColumnStatistics]
}
deriving (UpdateColumnStatisticsForTable
-> UpdateColumnStatisticsForTable -> Bool
(UpdateColumnStatisticsForTable
-> UpdateColumnStatisticsForTable -> Bool)
-> (UpdateColumnStatisticsForTable
-> UpdateColumnStatisticsForTable -> Bool)
-> Eq UpdateColumnStatisticsForTable
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateColumnStatisticsForTable
-> UpdateColumnStatisticsForTable -> Bool
$c/= :: UpdateColumnStatisticsForTable
-> UpdateColumnStatisticsForTable -> Bool
== :: UpdateColumnStatisticsForTable
-> UpdateColumnStatisticsForTable -> Bool
$c== :: UpdateColumnStatisticsForTable
-> UpdateColumnStatisticsForTable -> Bool
Prelude.Eq, ReadPrec [UpdateColumnStatisticsForTable]
ReadPrec UpdateColumnStatisticsForTable
Int -> ReadS UpdateColumnStatisticsForTable
ReadS [UpdateColumnStatisticsForTable]
(Int -> ReadS UpdateColumnStatisticsForTable)
-> ReadS [UpdateColumnStatisticsForTable]
-> ReadPrec UpdateColumnStatisticsForTable
-> ReadPrec [UpdateColumnStatisticsForTable]
-> Read UpdateColumnStatisticsForTable
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateColumnStatisticsForTable]
$creadListPrec :: ReadPrec [UpdateColumnStatisticsForTable]
readPrec :: ReadPrec UpdateColumnStatisticsForTable
$creadPrec :: ReadPrec UpdateColumnStatisticsForTable
readList :: ReadS [UpdateColumnStatisticsForTable]
$creadList :: ReadS [UpdateColumnStatisticsForTable]
readsPrec :: Int -> ReadS UpdateColumnStatisticsForTable
$creadsPrec :: Int -> ReadS UpdateColumnStatisticsForTable
Prelude.Read, Int -> UpdateColumnStatisticsForTable -> ShowS
[UpdateColumnStatisticsForTable] -> ShowS
UpdateColumnStatisticsForTable -> String
(Int -> UpdateColumnStatisticsForTable -> ShowS)
-> (UpdateColumnStatisticsForTable -> String)
-> ([UpdateColumnStatisticsForTable] -> ShowS)
-> Show UpdateColumnStatisticsForTable
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateColumnStatisticsForTable] -> ShowS
$cshowList :: [UpdateColumnStatisticsForTable] -> ShowS
show :: UpdateColumnStatisticsForTable -> String
$cshow :: UpdateColumnStatisticsForTable -> String
showsPrec :: Int -> UpdateColumnStatisticsForTable -> ShowS
$cshowsPrec :: Int -> UpdateColumnStatisticsForTable -> ShowS
Prelude.Show, (forall x.
UpdateColumnStatisticsForTable
-> Rep UpdateColumnStatisticsForTable x)
-> (forall x.
Rep UpdateColumnStatisticsForTable x
-> UpdateColumnStatisticsForTable)
-> Generic UpdateColumnStatisticsForTable
forall x.
Rep UpdateColumnStatisticsForTable x
-> UpdateColumnStatisticsForTable
forall x.
UpdateColumnStatisticsForTable
-> Rep UpdateColumnStatisticsForTable x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateColumnStatisticsForTable x
-> UpdateColumnStatisticsForTable
$cfrom :: forall x.
UpdateColumnStatisticsForTable
-> Rep UpdateColumnStatisticsForTable x
Prelude.Generic)
newUpdateColumnStatisticsForTable ::
Prelude.Text ->
Prelude.Text ->
UpdateColumnStatisticsForTable
newUpdateColumnStatisticsForTable :: Text -> Text -> UpdateColumnStatisticsForTable
newUpdateColumnStatisticsForTable
Text
pDatabaseName_
Text
pTableName_ =
UpdateColumnStatisticsForTable' :: Maybe Text
-> Text
-> Text
-> [ColumnStatistics]
-> UpdateColumnStatisticsForTable
UpdateColumnStatisticsForTable'
{ $sel:catalogId:UpdateColumnStatisticsForTable' :: Maybe Text
catalogId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:databaseName:UpdateColumnStatisticsForTable' :: Text
databaseName = Text
pDatabaseName_,
$sel:tableName:UpdateColumnStatisticsForTable' :: Text
tableName = Text
pTableName_,
$sel:columnStatisticsList:UpdateColumnStatisticsForTable' :: [ColumnStatistics]
columnStatisticsList = [ColumnStatistics]
forall a. Monoid a => a
Prelude.mempty
}
updateColumnStatisticsForTable_catalogId :: Lens.Lens' UpdateColumnStatisticsForTable (Prelude.Maybe Prelude.Text)
updateColumnStatisticsForTable_catalogId :: (Maybe Text -> f (Maybe Text))
-> UpdateColumnStatisticsForTable
-> f UpdateColumnStatisticsForTable
updateColumnStatisticsForTable_catalogId = (UpdateColumnStatisticsForTable -> Maybe Text)
-> (UpdateColumnStatisticsForTable
-> Maybe Text -> UpdateColumnStatisticsForTable)
-> Lens
UpdateColumnStatisticsForTable
UpdateColumnStatisticsForTable
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForTable' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: UpdateColumnStatisticsForTable
s@UpdateColumnStatisticsForTable' {} Maybe Text
a -> UpdateColumnStatisticsForTable
s {$sel:catalogId:UpdateColumnStatisticsForTable' :: Maybe Text
catalogId = Maybe Text
a} :: UpdateColumnStatisticsForTable)
updateColumnStatisticsForTable_databaseName :: Lens.Lens' UpdateColumnStatisticsForTable Prelude.Text
updateColumnStatisticsForTable_databaseName :: (Text -> f Text)
-> UpdateColumnStatisticsForTable
-> f UpdateColumnStatisticsForTable
updateColumnStatisticsForTable_databaseName = (UpdateColumnStatisticsForTable -> Text)
-> (UpdateColumnStatisticsForTable
-> Text -> UpdateColumnStatisticsForTable)
-> Lens
UpdateColumnStatisticsForTable
UpdateColumnStatisticsForTable
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForTable' {Text
databaseName :: Text
$sel:databaseName:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> Text
databaseName} -> Text
databaseName) (\s :: UpdateColumnStatisticsForTable
s@UpdateColumnStatisticsForTable' {} Text
a -> UpdateColumnStatisticsForTable
s {$sel:databaseName:UpdateColumnStatisticsForTable' :: Text
databaseName = Text
a} :: UpdateColumnStatisticsForTable)
updateColumnStatisticsForTable_tableName :: Lens.Lens' UpdateColumnStatisticsForTable Prelude.Text
updateColumnStatisticsForTable_tableName :: (Text -> f Text)
-> UpdateColumnStatisticsForTable
-> f UpdateColumnStatisticsForTable
updateColumnStatisticsForTable_tableName = (UpdateColumnStatisticsForTable -> Text)
-> (UpdateColumnStatisticsForTable
-> Text -> UpdateColumnStatisticsForTable)
-> Lens
UpdateColumnStatisticsForTable
UpdateColumnStatisticsForTable
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForTable' {Text
tableName :: Text
$sel:tableName:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> Text
tableName} -> Text
tableName) (\s :: UpdateColumnStatisticsForTable
s@UpdateColumnStatisticsForTable' {} Text
a -> UpdateColumnStatisticsForTable
s {$sel:tableName:UpdateColumnStatisticsForTable' :: Text
tableName = Text
a} :: UpdateColumnStatisticsForTable)
updateColumnStatisticsForTable_columnStatisticsList :: Lens.Lens' UpdateColumnStatisticsForTable [ColumnStatistics]
updateColumnStatisticsForTable_columnStatisticsList :: ([ColumnStatistics] -> f [ColumnStatistics])
-> UpdateColumnStatisticsForTable
-> f UpdateColumnStatisticsForTable
updateColumnStatisticsForTable_columnStatisticsList = (UpdateColumnStatisticsForTable -> [ColumnStatistics])
-> (UpdateColumnStatisticsForTable
-> [ColumnStatistics] -> UpdateColumnStatisticsForTable)
-> Lens
UpdateColumnStatisticsForTable
UpdateColumnStatisticsForTable
[ColumnStatistics]
[ColumnStatistics]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForTable' {[ColumnStatistics]
columnStatisticsList :: [ColumnStatistics]
$sel:columnStatisticsList:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> [ColumnStatistics]
columnStatisticsList} -> [ColumnStatistics]
columnStatisticsList) (\s :: UpdateColumnStatisticsForTable
s@UpdateColumnStatisticsForTable' {} [ColumnStatistics]
a -> UpdateColumnStatisticsForTable
s {$sel:columnStatisticsList:UpdateColumnStatisticsForTable' :: [ColumnStatistics]
columnStatisticsList = [ColumnStatistics]
a} :: UpdateColumnStatisticsForTable) (([ColumnStatistics] -> f [ColumnStatistics])
-> UpdateColumnStatisticsForTable
-> f UpdateColumnStatisticsForTable)
-> (([ColumnStatistics] -> f [ColumnStatistics])
-> [ColumnStatistics] -> f [ColumnStatistics])
-> ([ColumnStatistics] -> f [ColumnStatistics])
-> UpdateColumnStatisticsForTable
-> f UpdateColumnStatisticsForTable
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ColumnStatistics] -> f [ColumnStatistics])
-> [ColumnStatistics] -> f [ColumnStatistics]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSRequest
UpdateColumnStatisticsForTable
where
type
AWSResponse UpdateColumnStatisticsForTable =
UpdateColumnStatisticsForTableResponse
request :: UpdateColumnStatisticsForTable
-> Request UpdateColumnStatisticsForTable
request = Service
-> UpdateColumnStatisticsForTable
-> Request UpdateColumnStatisticsForTable
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateColumnStatisticsForTable
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateColumnStatisticsForTable)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateColumnStatisticsForTable))
-> Logger
-> Service
-> Proxy UpdateColumnStatisticsForTable
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateColumnStatisticsForTable)))
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 [ColumnStatisticsError]
-> Int -> UpdateColumnStatisticsForTableResponse
UpdateColumnStatisticsForTableResponse'
(Maybe [ColumnStatisticsError]
-> Int -> UpdateColumnStatisticsForTableResponse)
-> Either String (Maybe [ColumnStatisticsError])
-> Either String (Int -> UpdateColumnStatisticsForTableResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [ColumnStatisticsError]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Errors" Either String (Maybe (Maybe [ColumnStatisticsError]))
-> Maybe [ColumnStatisticsError]
-> Either String (Maybe [ColumnStatisticsError])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ColumnStatisticsError]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> UpdateColumnStatisticsForTableResponse)
-> Either String Int
-> Either String UpdateColumnStatisticsForTableResponse
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
UpdateColumnStatisticsForTable
instance
Prelude.NFData
UpdateColumnStatisticsForTable
instance
Core.ToHeaders
UpdateColumnStatisticsForTable
where
toHeaders :: UpdateColumnStatisticsForTable -> ResponseHeaders
toHeaders =
ResponseHeaders
-> UpdateColumnStatisticsForTable -> 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.UpdateColumnStatisticsForTable" ::
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 UpdateColumnStatisticsForTable where
toJSON :: UpdateColumnStatisticsForTable -> Value
toJSON UpdateColumnStatisticsForTable' {[ColumnStatistics]
Maybe Text
Text
columnStatisticsList :: [ColumnStatistics]
tableName :: Text
databaseName :: Text
catalogId :: Maybe Text
$sel:columnStatisticsList:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> [ColumnStatistics]
$sel:tableName:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> Text
$sel:databaseName:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> Text
$sel:catalogId:UpdateColumnStatisticsForTable' :: UpdateColumnStatisticsForTable -> 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
"ColumnStatisticsList"
Text -> [ColumnStatistics] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [ColumnStatistics]
columnStatisticsList
)
]
)
instance Core.ToPath UpdateColumnStatisticsForTable where
toPath :: UpdateColumnStatisticsForTable -> ByteString
toPath = ByteString -> UpdateColumnStatisticsForTable -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateColumnStatisticsForTable where
toQuery :: UpdateColumnStatisticsForTable -> QueryString
toQuery = QueryString -> UpdateColumnStatisticsForTable -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateColumnStatisticsForTableResponse = UpdateColumnStatisticsForTableResponse'
{
UpdateColumnStatisticsForTableResponse
-> Maybe [ColumnStatisticsError]
errors :: Prelude.Maybe [ColumnStatisticsError],
UpdateColumnStatisticsForTableResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateColumnStatisticsForTableResponse
-> UpdateColumnStatisticsForTableResponse -> Bool
(UpdateColumnStatisticsForTableResponse
-> UpdateColumnStatisticsForTableResponse -> Bool)
-> (UpdateColumnStatisticsForTableResponse
-> UpdateColumnStatisticsForTableResponse -> Bool)
-> Eq UpdateColumnStatisticsForTableResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateColumnStatisticsForTableResponse
-> UpdateColumnStatisticsForTableResponse -> Bool
$c/= :: UpdateColumnStatisticsForTableResponse
-> UpdateColumnStatisticsForTableResponse -> Bool
== :: UpdateColumnStatisticsForTableResponse
-> UpdateColumnStatisticsForTableResponse -> Bool
$c== :: UpdateColumnStatisticsForTableResponse
-> UpdateColumnStatisticsForTableResponse -> Bool
Prelude.Eq, ReadPrec [UpdateColumnStatisticsForTableResponse]
ReadPrec UpdateColumnStatisticsForTableResponse
Int -> ReadS UpdateColumnStatisticsForTableResponse
ReadS [UpdateColumnStatisticsForTableResponse]
(Int -> ReadS UpdateColumnStatisticsForTableResponse)
-> ReadS [UpdateColumnStatisticsForTableResponse]
-> ReadPrec UpdateColumnStatisticsForTableResponse
-> ReadPrec [UpdateColumnStatisticsForTableResponse]
-> Read UpdateColumnStatisticsForTableResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateColumnStatisticsForTableResponse]
$creadListPrec :: ReadPrec [UpdateColumnStatisticsForTableResponse]
readPrec :: ReadPrec UpdateColumnStatisticsForTableResponse
$creadPrec :: ReadPrec UpdateColumnStatisticsForTableResponse
readList :: ReadS [UpdateColumnStatisticsForTableResponse]
$creadList :: ReadS [UpdateColumnStatisticsForTableResponse]
readsPrec :: Int -> ReadS UpdateColumnStatisticsForTableResponse
$creadsPrec :: Int -> ReadS UpdateColumnStatisticsForTableResponse
Prelude.Read, Int -> UpdateColumnStatisticsForTableResponse -> ShowS
[UpdateColumnStatisticsForTableResponse] -> ShowS
UpdateColumnStatisticsForTableResponse -> String
(Int -> UpdateColumnStatisticsForTableResponse -> ShowS)
-> (UpdateColumnStatisticsForTableResponse -> String)
-> ([UpdateColumnStatisticsForTableResponse] -> ShowS)
-> Show UpdateColumnStatisticsForTableResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateColumnStatisticsForTableResponse] -> ShowS
$cshowList :: [UpdateColumnStatisticsForTableResponse] -> ShowS
show :: UpdateColumnStatisticsForTableResponse -> String
$cshow :: UpdateColumnStatisticsForTableResponse -> String
showsPrec :: Int -> UpdateColumnStatisticsForTableResponse -> ShowS
$cshowsPrec :: Int -> UpdateColumnStatisticsForTableResponse -> ShowS
Prelude.Show, (forall x.
UpdateColumnStatisticsForTableResponse
-> Rep UpdateColumnStatisticsForTableResponse x)
-> (forall x.
Rep UpdateColumnStatisticsForTableResponse x
-> UpdateColumnStatisticsForTableResponse)
-> Generic UpdateColumnStatisticsForTableResponse
forall x.
Rep UpdateColumnStatisticsForTableResponse x
-> UpdateColumnStatisticsForTableResponse
forall x.
UpdateColumnStatisticsForTableResponse
-> Rep UpdateColumnStatisticsForTableResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateColumnStatisticsForTableResponse x
-> UpdateColumnStatisticsForTableResponse
$cfrom :: forall x.
UpdateColumnStatisticsForTableResponse
-> Rep UpdateColumnStatisticsForTableResponse x
Prelude.Generic)
newUpdateColumnStatisticsForTableResponse ::
Prelude.Int ->
UpdateColumnStatisticsForTableResponse
newUpdateColumnStatisticsForTableResponse :: Int -> UpdateColumnStatisticsForTableResponse
newUpdateColumnStatisticsForTableResponse
Int
pHttpStatus_ =
UpdateColumnStatisticsForTableResponse' :: Maybe [ColumnStatisticsError]
-> Int -> UpdateColumnStatisticsForTableResponse
UpdateColumnStatisticsForTableResponse'
{ $sel:errors:UpdateColumnStatisticsForTableResponse' :: Maybe [ColumnStatisticsError]
errors =
Maybe [ColumnStatisticsError]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateColumnStatisticsForTableResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateColumnStatisticsForTableResponse_errors :: Lens.Lens' UpdateColumnStatisticsForTableResponse (Prelude.Maybe [ColumnStatisticsError])
updateColumnStatisticsForTableResponse_errors :: (Maybe [ColumnStatisticsError]
-> f (Maybe [ColumnStatisticsError]))
-> UpdateColumnStatisticsForTableResponse
-> f UpdateColumnStatisticsForTableResponse
updateColumnStatisticsForTableResponse_errors = (UpdateColumnStatisticsForTableResponse
-> Maybe [ColumnStatisticsError])
-> (UpdateColumnStatisticsForTableResponse
-> Maybe [ColumnStatisticsError]
-> UpdateColumnStatisticsForTableResponse)
-> Lens
UpdateColumnStatisticsForTableResponse
UpdateColumnStatisticsForTableResponse
(Maybe [ColumnStatisticsError])
(Maybe [ColumnStatisticsError])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForTableResponse' {Maybe [ColumnStatisticsError]
errors :: Maybe [ColumnStatisticsError]
$sel:errors:UpdateColumnStatisticsForTableResponse' :: UpdateColumnStatisticsForTableResponse
-> Maybe [ColumnStatisticsError]
errors} -> Maybe [ColumnStatisticsError]
errors) (\s :: UpdateColumnStatisticsForTableResponse
s@UpdateColumnStatisticsForTableResponse' {} Maybe [ColumnStatisticsError]
a -> UpdateColumnStatisticsForTableResponse
s {$sel:errors:UpdateColumnStatisticsForTableResponse' :: Maybe [ColumnStatisticsError]
errors = Maybe [ColumnStatisticsError]
a} :: UpdateColumnStatisticsForTableResponse) ((Maybe [ColumnStatisticsError]
-> f (Maybe [ColumnStatisticsError]))
-> UpdateColumnStatisticsForTableResponse
-> f UpdateColumnStatisticsForTableResponse)
-> ((Maybe [ColumnStatisticsError]
-> f (Maybe [ColumnStatisticsError]))
-> Maybe [ColumnStatisticsError]
-> f (Maybe [ColumnStatisticsError]))
-> (Maybe [ColumnStatisticsError]
-> f (Maybe [ColumnStatisticsError]))
-> UpdateColumnStatisticsForTableResponse
-> f UpdateColumnStatisticsForTableResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ColumnStatisticsError]
[ColumnStatisticsError]
[ColumnStatisticsError]
[ColumnStatisticsError]
-> Iso
(Maybe [ColumnStatisticsError])
(Maybe [ColumnStatisticsError])
(Maybe [ColumnStatisticsError])
(Maybe [ColumnStatisticsError])
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
[ColumnStatisticsError]
[ColumnStatisticsError]
[ColumnStatisticsError]
[ColumnStatisticsError]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateColumnStatisticsForTableResponse_httpStatus :: Lens.Lens' UpdateColumnStatisticsForTableResponse Prelude.Int
updateColumnStatisticsForTableResponse_httpStatus :: (Int -> f Int)
-> UpdateColumnStatisticsForTableResponse
-> f UpdateColumnStatisticsForTableResponse
updateColumnStatisticsForTableResponse_httpStatus = (UpdateColumnStatisticsForTableResponse -> Int)
-> (UpdateColumnStatisticsForTableResponse
-> Int -> UpdateColumnStatisticsForTableResponse)
-> Lens
UpdateColumnStatisticsForTableResponse
UpdateColumnStatisticsForTableResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForTableResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateColumnStatisticsForTableResponse' :: UpdateColumnStatisticsForTableResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateColumnStatisticsForTableResponse
s@UpdateColumnStatisticsForTableResponse' {} Int
a -> UpdateColumnStatisticsForTableResponse
s {$sel:httpStatus:UpdateColumnStatisticsForTableResponse' :: Int
httpStatus = Int
a} :: UpdateColumnStatisticsForTableResponse)
instance
Prelude.NFData
UpdateColumnStatisticsForTableResponse