start_bulk_put_items
async
¶
start_bulk_put_items(
input_s3_configuration: InputS3Configuration,
output_s3_configuration: OutputS3Configuration,
table_name: TableArn,
*,
config_overrides: Optional[AsyncDynamoDBClientConfig] = None,
client_token: Optional[ClientToken] = None,
max_write_request_units: Optional[BulkOperationMaxWriteRequestUnits] = None,
performance_tier: Optional[BulkOperationPerformanceTier] = None,
) -> StartBulkPutItemsOutput
Starts an asynchronous bulk operation that reads items from Amazon S3 and writes them to an existing DynamoDB table, so you can efficiently load or migrate large datasets.
Parameters:
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier that ensures the bulk operation starts no more than one time. During the 8 hours after the initial request, repeated requests that use the same token and parameters return the same bulk operation. If a request reuses the token with different parameters, DynamoDB returns an
IdempotentParameterMismatchException. If you omit the token, an Amazon Web Services SDK automatically generates one. -
input_s3_configuration(InputS3Configuration) –The Amazon S3 location, data format, and compression settings for the input objects.
-
output_s3_configuration(OutputS3Configuration) –The Amazon S3 location, encryption settings, and output types for the bulk operation.
-
table_name(TableArn) –The name or ARN of the existing DynamoDB table that receives the items.
-
max_write_request_units(Optional[BulkOperationMaxWriteRequestUnits], default:None) –The maximum rate, in write request units per second, at which the bulk operation attempts to write. The value must be at least 1,024. With this setting, you limit only the bulk operation; the table's provisioned or on-demand capacity settings don't change. The actual write rate can be lower.
-
performance_tier(Optional[BulkOperationPerformanceTier], default:None) –The performance tier for the bulk operation. Valid values are
STANDARDandACCELERATED. If you don't specify a value, the operation usesSTANDARD.
Raises:
-
IdempotentParameterMismatchException–DynamoDB rejected the request because you retried a request with a different payload but with an idempotent token that was already used.
-
LimitExceededException–There is no limit to the number of daily on-demand backups that can be taken.
For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include
CreateTable,UpdateTable,DeleteTable,UpdateTimeToLive,RestoreTableFromBackup, andRestoreTableToPointInTime.When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.
When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.
There is a soft account quota of 2,500 tables.
GetRecords was called with a value of more than 1000 for the limit request parameter.
More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.
-
ResourceInUseException–The operation conflicts with the resource's availability. For example:
-
You attempted to recreate an existing table.
-
You tried to delete a table currently in the
CREATINGstate. -
You tried to update a resource that was already being updated.
When appropriate, wait for the ongoing update to complete and attempt the request again.
-
-
ResourceNotFoundException–The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be
ACTIVE. -
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_dynamodb/_services/async_dynamo_db.py
4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 | |