{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DynamoDB.Types.ExportDescription where
import qualified Amazonka.Core as Core
import Amazonka.DynamoDB.Types.ExportFormat
import Amazonka.DynamoDB.Types.ExportStatus
import Amazonka.DynamoDB.Types.S3SseAlgorithm
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ExportDescription = ExportDescription'
{
ExportDescription -> Maybe Text
s3BucketOwner :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe ExportFormat
exportFormat :: Prelude.Maybe ExportFormat,
ExportDescription -> Maybe Text
s3SseKmsKeyId :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
ExportDescription -> Maybe Text
failureCode :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe ExportStatus
exportStatus :: Prelude.Maybe ExportStatus,
ExportDescription -> Maybe Text
failureMessage :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe Text
tableArn :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe Natural
billedSizeBytes :: Prelude.Maybe Prelude.Natural,
ExportDescription -> Maybe Text
exportArn :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe POSIX
exportTime :: Prelude.Maybe Core.POSIX,
ExportDescription -> Maybe S3SseAlgorithm
s3SseAlgorithm :: Prelude.Maybe S3SseAlgorithm,
ExportDescription -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
ExportDescription -> Maybe Text
s3Prefix :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe Text
exportManifest :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe Text
tableId :: Prelude.Maybe Prelude.Text,
ExportDescription -> Maybe Natural
itemCount :: Prelude.Maybe Prelude.Natural,
ExportDescription -> Maybe Text
s3Bucket :: Prelude.Maybe Prelude.Text
}
deriving (ExportDescription -> ExportDescription -> Bool
(ExportDescription -> ExportDescription -> Bool)
-> (ExportDescription -> ExportDescription -> Bool)
-> Eq ExportDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ExportDescription -> ExportDescription -> Bool
$c/= :: ExportDescription -> ExportDescription -> Bool
== :: ExportDescription -> ExportDescription -> Bool
$c== :: ExportDescription -> ExportDescription -> Bool
Prelude.Eq, ReadPrec [ExportDescription]
ReadPrec ExportDescription
Int -> ReadS ExportDescription
ReadS [ExportDescription]
(Int -> ReadS ExportDescription)
-> ReadS [ExportDescription]
-> ReadPrec ExportDescription
-> ReadPrec [ExportDescription]
-> Read ExportDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ExportDescription]
$creadListPrec :: ReadPrec [ExportDescription]
readPrec :: ReadPrec ExportDescription
$creadPrec :: ReadPrec ExportDescription
readList :: ReadS [ExportDescription]
$creadList :: ReadS [ExportDescription]
readsPrec :: Int -> ReadS ExportDescription
$creadsPrec :: Int -> ReadS ExportDescription
Prelude.Read, Int -> ExportDescription -> ShowS
[ExportDescription] -> ShowS
ExportDescription -> String
(Int -> ExportDescription -> ShowS)
-> (ExportDescription -> String)
-> ([ExportDescription] -> ShowS)
-> Show ExportDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ExportDescription] -> ShowS
$cshowList :: [ExportDescription] -> ShowS
show :: ExportDescription -> String
$cshow :: ExportDescription -> String
showsPrec :: Int -> ExportDescription -> ShowS
$cshowsPrec :: Int -> ExportDescription -> ShowS
Prelude.Show, (forall x. ExportDescription -> Rep ExportDescription x)
-> (forall x. Rep ExportDescription x -> ExportDescription)
-> Generic ExportDescription
forall x. Rep ExportDescription x -> ExportDescription
forall x. ExportDescription -> Rep ExportDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ExportDescription x -> ExportDescription
$cfrom :: forall x. ExportDescription -> Rep ExportDescription x
Prelude.Generic)
newExportDescription ::
ExportDescription
newExportDescription :: ExportDescription
newExportDescription =
ExportDescription' :: Maybe Text
-> Maybe ExportFormat
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription
ExportDescription'
{ $sel:s3BucketOwner:ExportDescription' :: Maybe Text
s3BucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:exportFormat:ExportDescription' :: Maybe ExportFormat
exportFormat = Maybe ExportFormat
forall a. Maybe a
Prelude.Nothing,
$sel:s3SseKmsKeyId:ExportDescription' :: Maybe Text
s3SseKmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientToken:ExportDescription' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startTime:ExportDescription' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:failureCode:ExportDescription' :: Maybe Text
failureCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:exportStatus:ExportDescription' :: Maybe ExportStatus
exportStatus = Maybe ExportStatus
forall a. Maybe a
Prelude.Nothing,
$sel:failureMessage:ExportDescription' :: Maybe Text
failureMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tableArn:ExportDescription' :: Maybe Text
tableArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:billedSizeBytes:ExportDescription' :: Maybe Natural
billedSizeBytes = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:exportArn:ExportDescription' :: Maybe Text
exportArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:exportTime:ExportDescription' :: Maybe POSIX
exportTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:s3SseAlgorithm:ExportDescription' :: Maybe S3SseAlgorithm
s3SseAlgorithm = Maybe S3SseAlgorithm
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:ExportDescription' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:s3Prefix:ExportDescription' :: Maybe Text
s3Prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:exportManifest:ExportDescription' :: Maybe Text
exportManifest = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tableId:ExportDescription' :: Maybe Text
tableId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:itemCount:ExportDescription' :: Maybe Natural
itemCount = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:s3Bucket:ExportDescription' :: Maybe Text
s3Bucket = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
exportDescription_s3BucketOwner :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_s3BucketOwner :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_s3BucketOwner = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
s3BucketOwner :: Maybe Text
$sel:s3BucketOwner:ExportDescription' :: ExportDescription -> Maybe Text
s3BucketOwner} -> Maybe Text
s3BucketOwner) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:s3BucketOwner:ExportDescription' :: Maybe Text
s3BucketOwner = Maybe Text
a} :: ExportDescription)
exportDescription_exportFormat :: Lens.Lens' ExportDescription (Prelude.Maybe ExportFormat)
exportDescription_exportFormat :: (Maybe ExportFormat -> f (Maybe ExportFormat))
-> ExportDescription -> f ExportDescription
exportDescription_exportFormat = (ExportDescription -> Maybe ExportFormat)
-> (ExportDescription -> Maybe ExportFormat -> ExportDescription)
-> Lens
ExportDescription
ExportDescription
(Maybe ExportFormat)
(Maybe ExportFormat)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe ExportFormat
exportFormat :: Maybe ExportFormat
$sel:exportFormat:ExportDescription' :: ExportDescription -> Maybe ExportFormat
exportFormat} -> Maybe ExportFormat
exportFormat) (\s :: ExportDescription
s@ExportDescription' {} Maybe ExportFormat
a -> ExportDescription
s {$sel:exportFormat:ExportDescription' :: Maybe ExportFormat
exportFormat = Maybe ExportFormat
a} :: ExportDescription)
exportDescription_s3SseKmsKeyId :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_s3SseKmsKeyId :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_s3SseKmsKeyId = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
s3SseKmsKeyId :: Maybe Text
$sel:s3SseKmsKeyId:ExportDescription' :: ExportDescription -> Maybe Text
s3SseKmsKeyId} -> Maybe Text
s3SseKmsKeyId) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:s3SseKmsKeyId:ExportDescription' :: Maybe Text
s3SseKmsKeyId = Maybe Text
a} :: ExportDescription)
exportDescription_clientToken :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_clientToken :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_clientToken = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:ExportDescription' :: ExportDescription -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:clientToken:ExportDescription' :: Maybe Text
clientToken = Maybe Text
a} :: ExportDescription)
exportDescription_startTime :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.UTCTime)
exportDescription_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ExportDescription -> f ExportDescription
exportDescription_startTime = (ExportDescription -> Maybe POSIX)
-> (ExportDescription -> Maybe POSIX -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:ExportDescription' :: ExportDescription -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: ExportDescription
s@ExportDescription' {} Maybe POSIX
a -> ExportDescription
s {$sel:startTime:ExportDescription' :: Maybe POSIX
startTime = Maybe POSIX
a} :: ExportDescription) ((Maybe POSIX -> f (Maybe POSIX))
-> ExportDescription -> f ExportDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ExportDescription
-> f ExportDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
exportDescription_failureCode :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_failureCode :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_failureCode = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
failureCode :: Maybe Text
$sel:failureCode:ExportDescription' :: ExportDescription -> Maybe Text
failureCode} -> Maybe Text
failureCode) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:failureCode:ExportDescription' :: Maybe Text
failureCode = Maybe Text
a} :: ExportDescription)
exportDescription_exportStatus :: Lens.Lens' ExportDescription (Prelude.Maybe ExportStatus)
exportDescription_exportStatus :: (Maybe ExportStatus -> f (Maybe ExportStatus))
-> ExportDescription -> f ExportDescription
exportDescription_exportStatus = (ExportDescription -> Maybe ExportStatus)
-> (ExportDescription -> Maybe ExportStatus -> ExportDescription)
-> Lens
ExportDescription
ExportDescription
(Maybe ExportStatus)
(Maybe ExportStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe ExportStatus
exportStatus :: Maybe ExportStatus
$sel:exportStatus:ExportDescription' :: ExportDescription -> Maybe ExportStatus
exportStatus} -> Maybe ExportStatus
exportStatus) (\s :: ExportDescription
s@ExportDescription' {} Maybe ExportStatus
a -> ExportDescription
s {$sel:exportStatus:ExportDescription' :: Maybe ExportStatus
exportStatus = Maybe ExportStatus
a} :: ExportDescription)
exportDescription_failureMessage :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_failureMessage :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_failureMessage = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
failureMessage :: Maybe Text
$sel:failureMessage:ExportDescription' :: ExportDescription -> Maybe Text
failureMessage} -> Maybe Text
failureMessage) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:failureMessage:ExportDescription' :: Maybe Text
failureMessage = Maybe Text
a} :: ExportDescription)
exportDescription_tableArn :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_tableArn :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_tableArn = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
tableArn :: Maybe Text
$sel:tableArn:ExportDescription' :: ExportDescription -> Maybe Text
tableArn} -> Maybe Text
tableArn) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:tableArn:ExportDescription' :: Maybe Text
tableArn = Maybe Text
a} :: ExportDescription)
exportDescription_billedSizeBytes :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Natural)
exportDescription_billedSizeBytes :: (Maybe Natural -> f (Maybe Natural))
-> ExportDescription -> f ExportDescription
exportDescription_billedSizeBytes = (ExportDescription -> Maybe Natural)
-> (ExportDescription -> Maybe Natural -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Natural
billedSizeBytes :: Maybe Natural
$sel:billedSizeBytes:ExportDescription' :: ExportDescription -> Maybe Natural
billedSizeBytes} -> Maybe Natural
billedSizeBytes) (\s :: ExportDescription
s@ExportDescription' {} Maybe Natural
a -> ExportDescription
s {$sel:billedSizeBytes:ExportDescription' :: Maybe Natural
billedSizeBytes = Maybe Natural
a} :: ExportDescription)
exportDescription_exportArn :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_exportArn :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_exportArn = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
exportArn :: Maybe Text
$sel:exportArn:ExportDescription' :: ExportDescription -> Maybe Text
exportArn} -> Maybe Text
exportArn) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:exportArn:ExportDescription' :: Maybe Text
exportArn = Maybe Text
a} :: ExportDescription)
exportDescription_exportTime :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.UTCTime)
exportDescription_exportTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ExportDescription -> f ExportDescription
exportDescription_exportTime = (ExportDescription -> Maybe POSIX)
-> (ExportDescription -> Maybe POSIX -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe POSIX
exportTime :: Maybe POSIX
$sel:exportTime:ExportDescription' :: ExportDescription -> Maybe POSIX
exportTime} -> Maybe POSIX
exportTime) (\s :: ExportDescription
s@ExportDescription' {} Maybe POSIX
a -> ExportDescription
s {$sel:exportTime:ExportDescription' :: Maybe POSIX
exportTime = Maybe POSIX
a} :: ExportDescription) ((Maybe POSIX -> f (Maybe POSIX))
-> ExportDescription -> f ExportDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ExportDescription
-> f ExportDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
exportDescription_s3SseAlgorithm :: Lens.Lens' ExportDescription (Prelude.Maybe S3SseAlgorithm)
exportDescription_s3SseAlgorithm :: (Maybe S3SseAlgorithm -> f (Maybe S3SseAlgorithm))
-> ExportDescription -> f ExportDescription
exportDescription_s3SseAlgorithm = (ExportDescription -> Maybe S3SseAlgorithm)
-> (ExportDescription -> Maybe S3SseAlgorithm -> ExportDescription)
-> Lens
ExportDescription
ExportDescription
(Maybe S3SseAlgorithm)
(Maybe S3SseAlgorithm)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe S3SseAlgorithm
s3SseAlgorithm :: Maybe S3SseAlgorithm
$sel:s3SseAlgorithm:ExportDescription' :: ExportDescription -> Maybe S3SseAlgorithm
s3SseAlgorithm} -> Maybe S3SseAlgorithm
s3SseAlgorithm) (\s :: ExportDescription
s@ExportDescription' {} Maybe S3SseAlgorithm
a -> ExportDescription
s {$sel:s3SseAlgorithm:ExportDescription' :: Maybe S3SseAlgorithm
s3SseAlgorithm = Maybe S3SseAlgorithm
a} :: ExportDescription)
exportDescription_endTime :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.UTCTime)
exportDescription_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ExportDescription -> f ExportDescription
exportDescription_endTime = (ExportDescription -> Maybe POSIX)
-> (ExportDescription -> Maybe POSIX -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:ExportDescription' :: ExportDescription -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: ExportDescription
s@ExportDescription' {} Maybe POSIX
a -> ExportDescription
s {$sel:endTime:ExportDescription' :: Maybe POSIX
endTime = Maybe POSIX
a} :: ExportDescription) ((Maybe POSIX -> f (Maybe POSIX))
-> ExportDescription -> f ExportDescription)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ExportDescription
-> f ExportDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
exportDescription_s3Prefix :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_s3Prefix :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_s3Prefix = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
s3Prefix :: Maybe Text
$sel:s3Prefix:ExportDescription' :: ExportDescription -> Maybe Text
s3Prefix} -> Maybe Text
s3Prefix) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:s3Prefix:ExportDescription' :: Maybe Text
s3Prefix = Maybe Text
a} :: ExportDescription)
exportDescription_exportManifest :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_exportManifest :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_exportManifest = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
exportManifest :: Maybe Text
$sel:exportManifest:ExportDescription' :: ExportDescription -> Maybe Text
exportManifest} -> Maybe Text
exportManifest) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:exportManifest:ExportDescription' :: Maybe Text
exportManifest = Maybe Text
a} :: ExportDescription)
exportDescription_tableId :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_tableId :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_tableId = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
tableId :: Maybe Text
$sel:tableId:ExportDescription' :: ExportDescription -> Maybe Text
tableId} -> Maybe Text
tableId) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:tableId:ExportDescription' :: Maybe Text
tableId = Maybe Text
a} :: ExportDescription)
exportDescription_itemCount :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Natural)
exportDescription_itemCount :: (Maybe Natural -> f (Maybe Natural))
-> ExportDescription -> f ExportDescription
exportDescription_itemCount = (ExportDescription -> Maybe Natural)
-> (ExportDescription -> Maybe Natural -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Natural
itemCount :: Maybe Natural
$sel:itemCount:ExportDescription' :: ExportDescription -> Maybe Natural
itemCount} -> Maybe Natural
itemCount) (\s :: ExportDescription
s@ExportDescription' {} Maybe Natural
a -> ExportDescription
s {$sel:itemCount:ExportDescription' :: Maybe Natural
itemCount = Maybe Natural
a} :: ExportDescription)
exportDescription_s3Bucket :: Lens.Lens' ExportDescription (Prelude.Maybe Prelude.Text)
exportDescription_s3Bucket :: (Maybe Text -> f (Maybe Text))
-> ExportDescription -> f ExportDescription
exportDescription_s3Bucket = (ExportDescription -> Maybe Text)
-> (ExportDescription -> Maybe Text -> ExportDescription)
-> Lens
ExportDescription ExportDescription (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ExportDescription' {Maybe Text
s3Bucket :: Maybe Text
$sel:s3Bucket:ExportDescription' :: ExportDescription -> Maybe Text
s3Bucket} -> Maybe Text
s3Bucket) (\s :: ExportDescription
s@ExportDescription' {} Maybe Text
a -> ExportDescription
s {$sel:s3Bucket:ExportDescription' :: Maybe Text
s3Bucket = Maybe Text
a} :: ExportDescription)
instance Core.FromJSON ExportDescription where
parseJSON :: Value -> Parser ExportDescription
parseJSON =
String
-> (Object -> Parser ExportDescription)
-> Value
-> Parser ExportDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ExportDescription"
( \Object
x ->
Maybe Text
-> Maybe ExportFormat
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription
ExportDescription'
(Maybe Text
-> Maybe ExportFormat
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe ExportFormat
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3BucketOwner")
Parser
(Maybe ExportFormat
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe ExportFormat)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExportFormat)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExportFormat")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3SseKmsKeyId")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ClientToken")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StartTime")
Parser
(Maybe Text
-> Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailureCode")
Parser
(Maybe ExportStatus
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe ExportStatus)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ExportStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExportStatus")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailureMessage")
Parser
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TableArn")
Parser
(Maybe Natural
-> Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Natural)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"BilledSizeBytes")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExportArn")
Parser
(Maybe POSIX
-> Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe POSIX)
-> Parser
(Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExportTime")
Parser
(Maybe S3SseAlgorithm
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe S3SseAlgorithm)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe S3SseAlgorithm)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3SseAlgorithm")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EndTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Natural -> Maybe Text -> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3Prefix")
Parser
(Maybe Text
-> Maybe Text -> Maybe Natural -> Maybe Text -> ExportDescription)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Natural -> Maybe Text -> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExportManifest")
Parser
(Maybe Text -> Maybe Natural -> Maybe Text -> ExportDescription)
-> Parser (Maybe Text)
-> Parser (Maybe Natural -> Maybe Text -> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TableId")
Parser (Maybe Natural -> Maybe Text -> ExportDescription)
-> Parser (Maybe Natural)
-> Parser (Maybe Text -> ExportDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ItemCount")
Parser (Maybe Text -> ExportDescription)
-> Parser (Maybe Text) -> Parser ExportDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"S3Bucket")
)
instance Prelude.Hashable ExportDescription
instance Prelude.NFData ExportDescription