amazonka-dynamodb-2.0: Amazon DynamoDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DynamoDB.ImportTable

Description

Imports table data from an S3 bucket.

Synopsis

Creating a Request

data ImportTable Source #

See: newImportTable smart constructor.

Constructors

ImportTable' 

Fields

  • clientToken :: Maybe Text

    Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call.

    A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent.

    If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an IdempotentParameterMismatch exception.

  • inputCompressionType :: Maybe InputCompressionType

    Type of compression to be used on the input coming from the imported table.

  • inputFormatOptions :: Maybe InputFormatOptions

    Additional properties that specify how the input is formatted,

  • s3BucketSource :: S3BucketSource

    The S3 bucket that provides the source for the import.

  • inputFormat :: InputFormat

    The format of the source data. Valid values for ImportFormat are CSV, DYNAMODB_JSON or ION.

  • tableCreationParameters :: TableCreationParameters

    Parameters for the table to import the data into.

Instances

Instances details
ToJSON ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

ToHeaders ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Methods

toHeaders :: ImportTable -> [Header] #

ToPath ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

ToQuery ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

AWSRequest ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Associated Types

type AWSResponse ImportTable #

Generic ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Associated Types

type Rep ImportTable :: Type -> Type #

Read ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Show ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

NFData ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Methods

rnf :: ImportTable -> () #

Eq ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Hashable ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

type AWSResponse ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

type Rep ImportTable Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

type Rep ImportTable = D1 ('MetaData "ImportTable" "Amazonka.DynamoDB.ImportTable" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "ImportTable'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "inputCompressionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InputCompressionType)) :*: S1 ('MetaSel ('Just "inputFormatOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InputFormatOptions)))) :*: (S1 ('MetaSel ('Just "s3BucketSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 S3BucketSource) :*: (S1 ('MetaSel ('Just "inputFormat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 InputFormat) :*: S1 ('MetaSel ('Just "tableCreationParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TableCreationParameters)))))

newImportTable Source #

Create a value of ImportTable with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

ImportTable, importTable_clientToken - Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call.

A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent.

If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an IdempotentParameterMismatch exception.

ImportTable, importTable_inputCompressionType - Type of compression to be used on the input coming from the imported table.

ImportTable, importTable_inputFormatOptions - Additional properties that specify how the input is formatted,

ImportTable, importTable_s3BucketSource - The S3 bucket that provides the source for the import.

ImportTable, importTable_inputFormat - The format of the source data. Valid values for ImportFormat are CSV, DYNAMODB_JSON or ION.

ImportTable, importTable_tableCreationParameters - Parameters for the table to import the data into.

Request Lenses

importTable_clientToken :: Lens' ImportTable (Maybe Text) Source #

Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call.

A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent.

If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an IdempotentParameterMismatch exception.

importTable_inputCompressionType :: Lens' ImportTable (Maybe InputCompressionType) Source #

Type of compression to be used on the input coming from the imported table.

importTable_inputFormatOptions :: Lens' ImportTable (Maybe InputFormatOptions) Source #

Additional properties that specify how the input is formatted,

importTable_s3BucketSource :: Lens' ImportTable S3BucketSource Source #

The S3 bucket that provides the source for the import.

importTable_inputFormat :: Lens' ImportTable InputFormat Source #

The format of the source data. Valid values for ImportFormat are CSV, DYNAMODB_JSON or ION.

importTable_tableCreationParameters :: Lens' ImportTable TableCreationParameters Source #

Parameters for the table to import the data into.

Destructuring the Response

data ImportTableResponse Source #

See: newImportTableResponse smart constructor.

Constructors

ImportTableResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • importTableDescription :: ImportTableDescription

    Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.

Instances

Instances details
Generic ImportTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Associated Types

type Rep ImportTableResponse :: Type -> Type #

Read ImportTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Show ImportTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

NFData ImportTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

Methods

rnf :: ImportTableResponse -> () #

Eq ImportTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

type Rep ImportTableResponse Source # 
Instance details

Defined in Amazonka.DynamoDB.ImportTable

type Rep ImportTableResponse = D1 ('MetaData "ImportTableResponse" "Amazonka.DynamoDB.ImportTable" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "ImportTableResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "importTableDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ImportTableDescription)))

newImportTableResponse Source #

Create a value of ImportTableResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:ImportTableResponse', importTableResponse_httpStatus - The response's http status code.

$sel:importTableDescription:ImportTableResponse', importTableResponse_importTableDescription - Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.

Response Lenses

importTableResponse_importTableDescription :: Lens' ImportTableResponse ImportTableDescription Source #

Represents the properties of the table created for the import, and parameters of the import. The import parameters include import status, how many items were processed, and how many errors were encountered.