{-# 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.UpdateColumnStatisticsForPartition
(
UpdateColumnStatisticsForPartition (..),
newUpdateColumnStatisticsForPartition,
updateColumnStatisticsForPartition_catalogId,
updateColumnStatisticsForPartition_databaseName,
updateColumnStatisticsForPartition_tableName,
updateColumnStatisticsForPartition_partitionValues,
updateColumnStatisticsForPartition_columnStatisticsList,
UpdateColumnStatisticsForPartitionResponse (..),
newUpdateColumnStatisticsForPartitionResponse,
updateColumnStatisticsForPartitionResponse_errors,
updateColumnStatisticsForPartitionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Glue.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateColumnStatisticsForPartition = UpdateColumnStatisticsForPartition'
{
UpdateColumnStatisticsForPartition -> Maybe Text
catalogId :: Prelude.Maybe Prelude.Text,
UpdateColumnStatisticsForPartition -> Text
databaseName :: Prelude.Text,
UpdateColumnStatisticsForPartition -> Text
tableName :: Prelude.Text,
UpdateColumnStatisticsForPartition -> [Text]
partitionValues :: [Prelude.Text],
UpdateColumnStatisticsForPartition -> [ColumnStatistics]
columnStatisticsList :: [ColumnStatistics]
}
deriving (UpdateColumnStatisticsForPartition
-> UpdateColumnStatisticsForPartition -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateColumnStatisticsForPartition
-> UpdateColumnStatisticsForPartition -> Bool
$c/= :: UpdateColumnStatisticsForPartition
-> UpdateColumnStatisticsForPartition -> Bool
== :: UpdateColumnStatisticsForPartition
-> UpdateColumnStatisticsForPartition -> Bool
$c== :: UpdateColumnStatisticsForPartition
-> UpdateColumnStatisticsForPartition -> Bool
Prelude.Eq, ReadPrec [UpdateColumnStatisticsForPartition]
ReadPrec UpdateColumnStatisticsForPartition
Int -> ReadS UpdateColumnStatisticsForPartition
ReadS [UpdateColumnStatisticsForPartition]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateColumnStatisticsForPartition]
$creadListPrec :: ReadPrec [UpdateColumnStatisticsForPartition]
readPrec :: ReadPrec UpdateColumnStatisticsForPartition
$creadPrec :: ReadPrec UpdateColumnStatisticsForPartition
readList :: ReadS [UpdateColumnStatisticsForPartition]
$creadList :: ReadS [UpdateColumnStatisticsForPartition]
readsPrec :: Int -> ReadS UpdateColumnStatisticsForPartition
$creadsPrec :: Int -> ReadS UpdateColumnStatisticsForPartition
Prelude.Read, Int -> UpdateColumnStatisticsForPartition -> ShowS
[UpdateColumnStatisticsForPartition] -> ShowS
UpdateColumnStatisticsForPartition -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateColumnStatisticsForPartition] -> ShowS
$cshowList :: [UpdateColumnStatisticsForPartition] -> ShowS
show :: UpdateColumnStatisticsForPartition -> String
$cshow :: UpdateColumnStatisticsForPartition -> String
showsPrec :: Int -> UpdateColumnStatisticsForPartition -> ShowS
$cshowsPrec :: Int -> UpdateColumnStatisticsForPartition -> ShowS
Prelude.Show, forall x.
Rep UpdateColumnStatisticsForPartition x
-> UpdateColumnStatisticsForPartition
forall x.
UpdateColumnStatisticsForPartition
-> Rep UpdateColumnStatisticsForPartition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateColumnStatisticsForPartition x
-> UpdateColumnStatisticsForPartition
$cfrom :: forall x.
UpdateColumnStatisticsForPartition
-> Rep UpdateColumnStatisticsForPartition x
Prelude.Generic)
newUpdateColumnStatisticsForPartition ::
Prelude.Text ->
Prelude.Text ->
UpdateColumnStatisticsForPartition
newUpdateColumnStatisticsForPartition :: Text -> Text -> UpdateColumnStatisticsForPartition
newUpdateColumnStatisticsForPartition
Text
pDatabaseName_
Text
pTableName_ =
UpdateColumnStatisticsForPartition'
{ $sel:catalogId:UpdateColumnStatisticsForPartition' :: Maybe Text
catalogId =
forall a. Maybe a
Prelude.Nothing,
$sel:databaseName:UpdateColumnStatisticsForPartition' :: Text
databaseName = Text
pDatabaseName_,
$sel:tableName:UpdateColumnStatisticsForPartition' :: Text
tableName = Text
pTableName_,
$sel:partitionValues:UpdateColumnStatisticsForPartition' :: [Text]
partitionValues = forall a. Monoid a => a
Prelude.mempty,
$sel:columnStatisticsList:UpdateColumnStatisticsForPartition' :: [ColumnStatistics]
columnStatisticsList = forall a. Monoid a => a
Prelude.mempty
}
updateColumnStatisticsForPartition_catalogId :: Lens.Lens' UpdateColumnStatisticsForPartition (Prelude.Maybe Prelude.Text)
updateColumnStatisticsForPartition_catalogId :: Lens' UpdateColumnStatisticsForPartition (Maybe Text)
updateColumnStatisticsForPartition_catalogId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForPartition' {Maybe Text
catalogId :: Maybe Text
$sel:catalogId:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Maybe Text
catalogId} -> Maybe Text
catalogId) (\s :: UpdateColumnStatisticsForPartition
s@UpdateColumnStatisticsForPartition' {} Maybe Text
a -> UpdateColumnStatisticsForPartition
s {$sel:catalogId:UpdateColumnStatisticsForPartition' :: Maybe Text
catalogId = Maybe Text
a} :: UpdateColumnStatisticsForPartition)
updateColumnStatisticsForPartition_databaseName :: Lens.Lens' UpdateColumnStatisticsForPartition Prelude.Text
updateColumnStatisticsForPartition_databaseName :: Lens' UpdateColumnStatisticsForPartition Text
updateColumnStatisticsForPartition_databaseName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForPartition' {Text
databaseName :: Text
$sel:databaseName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
databaseName} -> Text
databaseName) (\s :: UpdateColumnStatisticsForPartition
s@UpdateColumnStatisticsForPartition' {} Text
a -> UpdateColumnStatisticsForPartition
s {$sel:databaseName:UpdateColumnStatisticsForPartition' :: Text
databaseName = Text
a} :: UpdateColumnStatisticsForPartition)
updateColumnStatisticsForPartition_tableName :: Lens.Lens' UpdateColumnStatisticsForPartition Prelude.Text
updateColumnStatisticsForPartition_tableName :: Lens' UpdateColumnStatisticsForPartition Text
updateColumnStatisticsForPartition_tableName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForPartition' {Text
tableName :: Text
$sel:tableName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
tableName} -> Text
tableName) (\s :: UpdateColumnStatisticsForPartition
s@UpdateColumnStatisticsForPartition' {} Text
a -> UpdateColumnStatisticsForPartition
s {$sel:tableName:UpdateColumnStatisticsForPartition' :: Text
tableName = Text
a} :: UpdateColumnStatisticsForPartition)
updateColumnStatisticsForPartition_partitionValues :: Lens.Lens' UpdateColumnStatisticsForPartition [Prelude.Text]
updateColumnStatisticsForPartition_partitionValues :: Lens' UpdateColumnStatisticsForPartition [Text]
updateColumnStatisticsForPartition_partitionValues = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForPartition' {[Text]
partitionValues :: [Text]
$sel:partitionValues:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [Text]
partitionValues} -> [Text]
partitionValues) (\s :: UpdateColumnStatisticsForPartition
s@UpdateColumnStatisticsForPartition' {} [Text]
a -> UpdateColumnStatisticsForPartition
s {$sel:partitionValues:UpdateColumnStatisticsForPartition' :: [Text]
partitionValues = [Text]
a} :: UpdateColumnStatisticsForPartition) 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
updateColumnStatisticsForPartition_columnStatisticsList :: Lens.Lens' UpdateColumnStatisticsForPartition [ColumnStatistics]
updateColumnStatisticsForPartition_columnStatisticsList :: Lens' UpdateColumnStatisticsForPartition [ColumnStatistics]
updateColumnStatisticsForPartition_columnStatisticsList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForPartition' {[ColumnStatistics]
columnStatisticsList :: [ColumnStatistics]
$sel:columnStatisticsList:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [ColumnStatistics]
columnStatisticsList} -> [ColumnStatistics]
columnStatisticsList) (\s :: UpdateColumnStatisticsForPartition
s@UpdateColumnStatisticsForPartition' {} [ColumnStatistics]
a -> UpdateColumnStatisticsForPartition
s {$sel:columnStatisticsList:UpdateColumnStatisticsForPartition' :: [ColumnStatistics]
columnStatisticsList = [ColumnStatistics]
a} :: UpdateColumnStatisticsForPartition) 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.AWSRequest
UpdateColumnStatisticsForPartition
where
type
AWSResponse UpdateColumnStatisticsForPartition =
UpdateColumnStatisticsForPartitionResponse
request :: (Service -> Service)
-> UpdateColumnStatisticsForPartition
-> Request UpdateColumnStatisticsForPartition
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 UpdateColumnStatisticsForPartition
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateColumnStatisticsForPartition)))
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 [ColumnStatisticsError]
-> Int -> UpdateColumnStatisticsForPartitionResponse
UpdateColumnStatisticsForPartitionResponse'
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
"Errors" 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
UpdateColumnStatisticsForPartition
where
hashWithSalt :: Int -> UpdateColumnStatisticsForPartition -> Int
hashWithSalt
Int
_salt
UpdateColumnStatisticsForPartition' {[Text]
[ColumnStatistics]
Maybe Text
Text
columnStatisticsList :: [ColumnStatistics]
partitionValues :: [Text]
tableName :: Text
databaseName :: Text
catalogId :: Maybe Text
$sel:columnStatisticsList:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [ColumnStatistics]
$sel:partitionValues:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [Text]
$sel:tableName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
$sel:databaseName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
$sel:catalogId:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> 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` Text
databaseName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
tableName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [Text]
partitionValues
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [ColumnStatistics]
columnStatisticsList
instance
Prelude.NFData
UpdateColumnStatisticsForPartition
where
rnf :: UpdateColumnStatisticsForPartition -> ()
rnf UpdateColumnStatisticsForPartition' {[Text]
[ColumnStatistics]
Maybe Text
Text
columnStatisticsList :: [ColumnStatistics]
partitionValues :: [Text]
tableName :: Text
databaseName :: Text
catalogId :: Maybe Text
$sel:columnStatisticsList:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [ColumnStatistics]
$sel:partitionValues:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [Text]
$sel:tableName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
$sel:databaseName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
$sel:catalogId:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> 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 Text
databaseName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
tableName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [Text]
partitionValues
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf [ColumnStatistics]
columnStatisticsList
instance
Data.ToHeaders
UpdateColumnStatisticsForPartition
where
toHeaders :: UpdateColumnStatisticsForPartition -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSGlue.UpdateColumnStatisticsForPartition" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Data.ToJSON
UpdateColumnStatisticsForPartition
where
toJSON :: UpdateColumnStatisticsForPartition -> Value
toJSON UpdateColumnStatisticsForPartition' {[Text]
[ColumnStatistics]
Maybe Text
Text
columnStatisticsList :: [ColumnStatistics]
partitionValues :: [Text]
tableName :: Text
databaseName :: Text
catalogId :: Maybe Text
$sel:columnStatisticsList:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [ColumnStatistics]
$sel:partitionValues:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> [Text]
$sel:tableName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
$sel:databaseName:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> Text
$sel:catalogId:UpdateColumnStatisticsForPartition' :: UpdateColumnStatisticsForPartition -> 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,
forall a. a -> Maybe a
Prelude.Just (Key
"DatabaseName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
databaseName),
forall a. a -> Maybe a
Prelude.Just (Key
"TableName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
tableName),
forall a. a -> Maybe a
Prelude.Just
(Key
"PartitionValues" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= [Text]
partitionValues),
forall a. a -> Maybe a
Prelude.Just
( Key
"ColumnStatisticsList"
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= [ColumnStatistics]
columnStatisticsList
)
]
)
instance
Data.ToPath
UpdateColumnStatisticsForPartition
where
toPath :: UpdateColumnStatisticsForPartition -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
UpdateColumnStatisticsForPartition
where
toQuery :: UpdateColumnStatisticsForPartition -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateColumnStatisticsForPartitionResponse = UpdateColumnStatisticsForPartitionResponse'
{
UpdateColumnStatisticsForPartitionResponse
-> Maybe [ColumnStatisticsError]
errors :: Prelude.Maybe [ColumnStatisticsError],
UpdateColumnStatisticsForPartitionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateColumnStatisticsForPartitionResponse
-> UpdateColumnStatisticsForPartitionResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateColumnStatisticsForPartitionResponse
-> UpdateColumnStatisticsForPartitionResponse -> Bool
$c/= :: UpdateColumnStatisticsForPartitionResponse
-> UpdateColumnStatisticsForPartitionResponse -> Bool
== :: UpdateColumnStatisticsForPartitionResponse
-> UpdateColumnStatisticsForPartitionResponse -> Bool
$c== :: UpdateColumnStatisticsForPartitionResponse
-> UpdateColumnStatisticsForPartitionResponse -> Bool
Prelude.Eq, ReadPrec [UpdateColumnStatisticsForPartitionResponse]
ReadPrec UpdateColumnStatisticsForPartitionResponse
Int -> ReadS UpdateColumnStatisticsForPartitionResponse
ReadS [UpdateColumnStatisticsForPartitionResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateColumnStatisticsForPartitionResponse]
$creadListPrec :: ReadPrec [UpdateColumnStatisticsForPartitionResponse]
readPrec :: ReadPrec UpdateColumnStatisticsForPartitionResponse
$creadPrec :: ReadPrec UpdateColumnStatisticsForPartitionResponse
readList :: ReadS [UpdateColumnStatisticsForPartitionResponse]
$creadList :: ReadS [UpdateColumnStatisticsForPartitionResponse]
readsPrec :: Int -> ReadS UpdateColumnStatisticsForPartitionResponse
$creadsPrec :: Int -> ReadS UpdateColumnStatisticsForPartitionResponse
Prelude.Read, Int -> UpdateColumnStatisticsForPartitionResponse -> ShowS
[UpdateColumnStatisticsForPartitionResponse] -> ShowS
UpdateColumnStatisticsForPartitionResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateColumnStatisticsForPartitionResponse] -> ShowS
$cshowList :: [UpdateColumnStatisticsForPartitionResponse] -> ShowS
show :: UpdateColumnStatisticsForPartitionResponse -> String
$cshow :: UpdateColumnStatisticsForPartitionResponse -> String
showsPrec :: Int -> UpdateColumnStatisticsForPartitionResponse -> ShowS
$cshowsPrec :: Int -> UpdateColumnStatisticsForPartitionResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateColumnStatisticsForPartitionResponse x
-> UpdateColumnStatisticsForPartitionResponse
forall x.
UpdateColumnStatisticsForPartitionResponse
-> Rep UpdateColumnStatisticsForPartitionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateColumnStatisticsForPartitionResponse x
-> UpdateColumnStatisticsForPartitionResponse
$cfrom :: forall x.
UpdateColumnStatisticsForPartitionResponse
-> Rep UpdateColumnStatisticsForPartitionResponse x
Prelude.Generic)
newUpdateColumnStatisticsForPartitionResponse ::
Prelude.Int ->
UpdateColumnStatisticsForPartitionResponse
newUpdateColumnStatisticsForPartitionResponse :: Int -> UpdateColumnStatisticsForPartitionResponse
newUpdateColumnStatisticsForPartitionResponse
Int
pHttpStatus_ =
UpdateColumnStatisticsForPartitionResponse'
{ $sel:errors:UpdateColumnStatisticsForPartitionResponse' :: Maybe [ColumnStatisticsError]
errors =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateColumnStatisticsForPartitionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateColumnStatisticsForPartitionResponse_errors :: Lens.Lens' UpdateColumnStatisticsForPartitionResponse (Prelude.Maybe [ColumnStatisticsError])
updateColumnStatisticsForPartitionResponse_errors :: Lens'
UpdateColumnStatisticsForPartitionResponse
(Maybe [ColumnStatisticsError])
updateColumnStatisticsForPartitionResponse_errors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForPartitionResponse' {Maybe [ColumnStatisticsError]
errors :: Maybe [ColumnStatisticsError]
$sel:errors:UpdateColumnStatisticsForPartitionResponse' :: UpdateColumnStatisticsForPartitionResponse
-> Maybe [ColumnStatisticsError]
errors} -> Maybe [ColumnStatisticsError]
errors) (\s :: UpdateColumnStatisticsForPartitionResponse
s@UpdateColumnStatisticsForPartitionResponse' {} Maybe [ColumnStatisticsError]
a -> UpdateColumnStatisticsForPartitionResponse
s {$sel:errors:UpdateColumnStatisticsForPartitionResponse' :: Maybe [ColumnStatisticsError]
errors = Maybe [ColumnStatisticsError]
a} :: UpdateColumnStatisticsForPartitionResponse) 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
updateColumnStatisticsForPartitionResponse_httpStatus :: Lens.Lens' UpdateColumnStatisticsForPartitionResponse Prelude.Int
updateColumnStatisticsForPartitionResponse_httpStatus :: Lens' UpdateColumnStatisticsForPartitionResponse Int
updateColumnStatisticsForPartitionResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateColumnStatisticsForPartitionResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateColumnStatisticsForPartitionResponse' :: UpdateColumnStatisticsForPartitionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateColumnStatisticsForPartitionResponse
s@UpdateColumnStatisticsForPartitionResponse' {} Int
a -> UpdateColumnStatisticsForPartitionResponse
s {$sel:httpStatus:UpdateColumnStatisticsForPartitionResponse' :: Int
httpStatus = Int
a} :: UpdateColumnStatisticsForPartitionResponse)
instance
Prelude.NFData
UpdateColumnStatisticsForPartitionResponse
where
rnf :: UpdateColumnStatisticsForPartitionResponse -> ()
rnf UpdateColumnStatisticsForPartitionResponse' {Int
Maybe [ColumnStatisticsError]
httpStatus :: Int
errors :: Maybe [ColumnStatisticsError]
$sel:httpStatus:UpdateColumnStatisticsForPartitionResponse' :: UpdateColumnStatisticsForPartitionResponse -> Int
$sel:errors:UpdateColumnStatisticsForPartitionResponse' :: UpdateColumnStatisticsForPartitionResponse
-> Maybe [ColumnStatisticsError]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [ColumnStatisticsError]
errors
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus