{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DynamoDB.Types.ExportDescription
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Represents the properties of the exported table.
--
-- /See:/ 'newExportDescription' smart constructor.
data ExportDescription = ExportDescription'
  { -- | The ID of the AWS account that owns the bucket containing the export.
    ExportDescription -> Maybe Text
s3BucketOwner :: Prelude.Maybe Prelude.Text,
    -- | The format of the exported data. Valid values for @ExportFormat@ are
    -- @DYNAMODB_JSON@ or @ION@.
    ExportDescription -> Maybe ExportFormat
exportFormat :: Prelude.Maybe ExportFormat,
    -- | The ID of the AWS KMS managed key used to encrypt the S3 bucket where
    -- export data is stored (if applicable).
    ExportDescription -> Maybe Text
s3SseKmsKeyId :: Prelude.Maybe Prelude.Text,
    -- | The client token that was provided for the export task. A client token
    -- makes calls to @ExportTableToPointInTimeInput@ idempotent, meaning that
    -- multiple identical calls have the same effect as one single call.
    ExportDescription -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
    -- | The time at which the export task began.
    ExportDescription -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | Status code for the result of the failed export.
    ExportDescription -> Maybe Text
failureCode :: Prelude.Maybe Prelude.Text,
    -- | Export can be in one of the following states: IN_PROGRESS, COMPLETED, or
    -- FAILED.
    ExportDescription -> Maybe ExportStatus
exportStatus :: Prelude.Maybe ExportStatus,
    -- | Export failure reason description.
    ExportDescription -> Maybe Text
failureMessage :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the table that was exported.
    ExportDescription -> Maybe Text
tableArn :: Prelude.Maybe Prelude.Text,
    -- | The billable size of the table export.
    ExportDescription -> Maybe Natural
billedSizeBytes :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the table export.
    ExportDescription -> Maybe Text
exportArn :: Prelude.Maybe Prelude.Text,
    -- | Point in time from which table data was exported.
    ExportDescription -> Maybe POSIX
exportTime :: Prelude.Maybe Core.POSIX,
    -- | Type of encryption used on the bucket where export data is stored. Valid
    -- values for @S3SseAlgorithm@ are:
    --
    -- -   @AES256@ - server-side encryption with Amazon S3 managed keys
    --
    -- -   @KMS@ - server-side encryption with AWS KMS managed keys
    ExportDescription -> Maybe S3SseAlgorithm
s3SseAlgorithm :: Prelude.Maybe S3SseAlgorithm,
    -- | The time at which the export task completed.
    ExportDescription -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon S3 bucket prefix used as the file name and path of the
    -- exported snapshot.
    ExportDescription -> Maybe Text
s3Prefix :: Prelude.Maybe Prelude.Text,
    -- | The name of the manifest file for the export task.
    ExportDescription -> Maybe Text
exportManifest :: Prelude.Maybe Prelude.Text,
    -- | Unique ID of the table that was exported.
    ExportDescription -> Maybe Text
tableId :: Prelude.Maybe Prelude.Text,
    -- | The number of items exported.
    ExportDescription -> Maybe Natural
itemCount :: Prelude.Maybe Prelude.Natural,
    -- | The name of the Amazon S3 bucket containing the export.
    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)

-- |
-- Create a value of 'ExportDescription' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 's3BucketOwner', 'exportDescription_s3BucketOwner' - The ID of the AWS account that owns the bucket containing the export.
--
-- 'exportFormat', 'exportDescription_exportFormat' - The format of the exported data. Valid values for @ExportFormat@ are
-- @DYNAMODB_JSON@ or @ION@.
--
-- 's3SseKmsKeyId', 'exportDescription_s3SseKmsKeyId' - The ID of the AWS KMS managed key used to encrypt the S3 bucket where
-- export data is stored (if applicable).
--
-- 'clientToken', 'exportDescription_clientToken' - The client token that was provided for the export task. A client token
-- makes calls to @ExportTableToPointInTimeInput@ idempotent, meaning that
-- multiple identical calls have the same effect as one single call.
--
-- 'startTime', 'exportDescription_startTime' - The time at which the export task began.
--
-- 'failureCode', 'exportDescription_failureCode' - Status code for the result of the failed export.
--
-- 'exportStatus', 'exportDescription_exportStatus' - Export can be in one of the following states: IN_PROGRESS, COMPLETED, or
-- FAILED.
--
-- 'failureMessage', 'exportDescription_failureMessage' - Export failure reason description.
--
-- 'tableArn', 'exportDescription_tableArn' - The Amazon Resource Name (ARN) of the table that was exported.
--
-- 'billedSizeBytes', 'exportDescription_billedSizeBytes' - The billable size of the table export.
--
-- 'exportArn', 'exportDescription_exportArn' - The Amazon Resource Name (ARN) of the table export.
--
-- 'exportTime', 'exportDescription_exportTime' - Point in time from which table data was exported.
--
-- 's3SseAlgorithm', 'exportDescription_s3SseAlgorithm' - Type of encryption used on the bucket where export data is stored. Valid
-- values for @S3SseAlgorithm@ are:
--
-- -   @AES256@ - server-side encryption with Amazon S3 managed keys
--
-- -   @KMS@ - server-side encryption with AWS KMS managed keys
--
-- 'endTime', 'exportDescription_endTime' - The time at which the export task completed.
--
-- 's3Prefix', 'exportDescription_s3Prefix' - The Amazon S3 bucket prefix used as the file name and path of the
-- exported snapshot.
--
-- 'exportManifest', 'exportDescription_exportManifest' - The name of the manifest file for the export task.
--
-- 'tableId', 'exportDescription_tableId' - Unique ID of the table that was exported.
--
-- 'itemCount', 'exportDescription_itemCount' - The number of items exported.
--
-- 's3Bucket', 'exportDescription_s3Bucket' - The name of the Amazon S3 bucket containing the export.
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
    }

-- | The ID of the AWS account that owns the bucket containing the export.
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)

-- | The format of the exported data. Valid values for @ExportFormat@ are
-- @DYNAMODB_JSON@ or @ION@.
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)

-- | The ID of the AWS KMS managed key used to encrypt the S3 bucket where
-- export data is stored (if applicable).
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)

-- | The client token that was provided for the export task. A client token
-- makes calls to @ExportTableToPointInTimeInput@ idempotent, meaning that
-- multiple identical calls have the same effect as one single call.
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)

-- | The time at which the export task began.
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

-- | Status code for the result of the failed export.
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)

-- | Export can be in one of the following states: IN_PROGRESS, COMPLETED, or
-- FAILED.
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)

-- | Export failure reason description.
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)

-- | The Amazon Resource Name (ARN) of the table that was exported.
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)

-- | The billable size of the table export.
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)

-- | The Amazon Resource Name (ARN) of the table export.
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)

-- | Point in time from which table data was exported.
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

-- | Type of encryption used on the bucket where export data is stored. Valid
-- values for @S3SseAlgorithm@ are:
--
-- -   @AES256@ - server-side encryption with Amazon S3 managed keys
--
-- -   @KMS@ - server-side encryption with AWS KMS managed keys
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)

-- | The time at which the export task completed.
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

-- | The Amazon S3 bucket prefix used as the file name and path of the
-- exported snapshot.
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)

-- | The name of the manifest file for the export task.
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)

-- | Unique ID of the table that was exported.
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)

-- | The number of items exported.
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)

-- | The name of the Amazon S3 bucket containing the export.
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