Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Imports table data from an S3 bucket.
Synopsis
- data ImportTable = ImportTable' {}
- newImportTable :: S3BucketSource -> InputFormat -> TableCreationParameters -> ImportTable
- importTable_clientToken :: Lens' ImportTable (Maybe Text)
- importTable_inputCompressionType :: Lens' ImportTable (Maybe InputCompressionType)
- importTable_inputFormatOptions :: Lens' ImportTable (Maybe InputFormatOptions)
- importTable_s3BucketSource :: Lens' ImportTable S3BucketSource
- importTable_inputFormat :: Lens' ImportTable InputFormat
- importTable_tableCreationParameters :: Lens' ImportTable TableCreationParameters
- data ImportTableResponse = ImportTableResponse' {}
- newImportTableResponse :: Int -> ImportTableDescription -> ImportTableResponse
- importTableResponse_httpStatus :: Lens' ImportTableResponse Int
- importTableResponse_importTableDescription :: Lens' ImportTableResponse ImportTableDescription
Creating a Request
data ImportTable Source #
See: newImportTable
smart constructor.
ImportTable' | |
|
Instances
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.
ImportTableResponse' | |
|
Instances
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_httpStatus :: Lens' ImportTableResponse Int Source #
The response's http status code.
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.