DynamoDB / Client / describe_bulk_operation
describe_bulk_operation¶
- DynamoDB.Client.describe_bulk_operation(**kwargs)¶
Describes the specified bulk operation.
See also: AWS API Documentation
Request Syntax
response = client.describe_bulk_operation( BulkOperationArn='string' )
- Parameters:
BulkOperationArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the bulk operation to describe.
- Return type:
dict
- Returns:
Response Syntax
{ 'BulkOperationDescription': { 'BulkOperationArn': 'string', 'BulkOperationStatus': 'IN_PROGRESS'|'COMPLETED'|'COMPLETED_WITH_ERRORS'|'CANCELLING'|'CANCELLED'|'FAILED', 'TableDetails': [ { 'TableName': 'string', 'TableId': 'string' }, ], 'ClientToken': 'string', 'InputS3Configuration': { 'S3BucketOwner': 'string', 'S3Bucket': 'string', 'S3KeyPrefix': 'string', 'InputFormat': 'DYNAMODB_JSON'|'ION', 'InputCompressionType': 'GZIP'|'ZSTD'|'NONE' }, 'OutputS3Configuration': { 'S3BucketOwner': 'string', 'S3Bucket': 'string', 'S3KeyPrefix': 'string', 'S3SseAlgorithm': 'AES256'|'KMS', 'S3SseKmsKeyId': 'string', 'OutputType': [ 'ERROR'|'CONDITION_CHECK_FAILURE', ] }, 'StartTime': datetime(2015, 1, 1), 'EndTime': datetime(2015, 1, 1), 'ProcessedItemCount': 123, 'ProcessedInputBytes': 123, 'TotalInputBytes': 123, 'BulkOperationUsage': [ { 'TableName': 'string', 'BulkPutBytes': 123, 'Table': { 'BulkPutBytes': 123 }, 'LocalSecondaryIndexes': { 'string': { 'BulkPutBytes': 123 } }, 'GlobalSecondaryIndexes': { 'string': { 'BulkPutBytes': 123 } }, 'VectorIndexes': { 'string': { 'BulkPutVectorBytes': 123 } } }, ], 'FailedItemCount': 123, 'FailureCode': 'string', 'FailureMessage': 'string', 'MaxWriteRequestUnits': 123, 'PerformanceTier': 'STANDARD'|'ACCELERATED' } }
Response Structure
(dict) –
BulkOperationDescription (dict) –
Contains detailed information about the bulk operation.
BulkOperationArn (string) –
The Amazon Resource Name (ARN) of the bulk operation.
BulkOperationStatus (string) –
The current status of the bulk operation can be one of the following values:
IN_PROGRESS
DynamoDB is processing the input.
COMPLETED
The bulk operation finished without parsing or validation errors. Condition-check failures do not cause the operation to complete with errors.
COMPLETED_WITH_ERRORS
The bulk operation finished, but DynamoDB couldn’t process at least one input item because of a parsing or validation error. When you enable
ERRORoutput, DynamoDB writes the details to the configured Amazon S3 output location.CANCELLING
DynamoDB accepted a cancellation request and is stopping the operation.
CANCELLED
DynamoDB stopped the operation after a cancellation request.
FAILED
The bulk operation failed. DynamoDB might write some items before the operation reaches this status. See FailureCode and FailureMessage for details.
TableDetails (list) –
A list containing identifying information for the table targeted by the bulk operation.
(dict) –
Contains identifying information for a table associated with a bulk operation.
TableName (string) –
The name or ARN of the table associated with the bulk operation.
TableId (string) –
The unique identifier of the table associated with the bulk operation.
ClientToken (string) –
The idempotency token associated with the start request.
InputS3Configuration (dict) –
The Amazon S3 input configuration associated with the bulk operation.
S3BucketOwner (string) –
The Amazon Web Services account ID of the input bucket owner. If you omit this value, DynamoDB uses the Amazon Web Services account ID of the requester.
Note
S3BucketOwneris required when the bucket is owned by another Amazon Web Services account.S3Bucket (string) –
The name of the Amazon S3 bucket that contains the input objects.
S3KeyPrefix (string) –
An optional key prefix that limits the input to matching objects in the Amazon S3 bucket.
InputFormat (string) –
The format of the input objects.
DYNAMODB_JSONuses JSON Lines, with one JSON record per line.IONuses a sequence of Ion structs.InputCompressionType (string) –
The compression type of the input objects. Valid values are
GZIP,ZSTD, andNONE. If you don’t specify a value, DynamoDB usesNONE.
OutputS3Configuration (dict) –
The Amazon S3 output configuration associated with the bulk operation.
S3BucketOwner (string) –
The Amazon Web Services account ID of the output bucket owner. If you omit this value, DynamoDB uses the Amazon Web Services account ID of the requester.
Note
S3BucketOwneris required when the bucket is owned by another Amazon Web Services account.S3Bucket (string) –
The name of the Amazon S3 bucket where DynamoDB writes output records.
S3KeyPrefix (string) –
An optional key prefix under which DynamoDB writes the output records.
S3SseAlgorithm (string) –
The server-side encryption algorithm for the output objects. Valid values are
AES256andKMS. If you don’t specify a value, Amazon S3 applies the destination bucket’s default encryption settings.S3SseKmsKeyId (string) –
The identifier of the KMS key that encrypts the output objects. Specify this value when
S3SseAlgorithmisKMS. Don’t specify it when the algorithm isAES256.OutputType (list) –
The following values describe the types of output that DynamoDB writes for individual input items. Include one or both values.
ERROR
Reports input records or input objects that DynamoDB couldn’t process. This includes malformed input and item validation failures, such as a missing or incorrectly typed primary key attribute or an item that exceeds a DynamoDB limit.
CONDITION_CHECK_FAILURE
Reports the attempted item and, when present, the existing item for a write whose condition expression evaluates to false.
(string) –
StartTime (datetime) –
The time when DynamoDB accepted the start request.
EndTime (datetime) –
The time when the operation reached a terminal status. DynamoDB omits this value while the operation remains in progress.
ProcessedItemCount (integer) –
The number of input items that DynamoDB has processed. This count includes successful writes, parsing or validation failures, and condition-check failures.
ProcessedInputBytes (integer) –
The number of bytes that DynamoDB has read from the Amazon S3 input objects.
TotalInputBytes (integer) –
The total size, in bytes, of the Amazon S3 input objects. DynamoDB omits this value until the initial input-size calculation completes.
BulkOperationUsage (list) –
Usage information for the table and its indexes.
(dict) –
Contains the bytes used during a bulk operation, including a breakdown for the table and its indexes.
TableName (string) –
The name or ARN of the table associated with the reported usage.
BulkPutBytes (integer) –
The total number of bulk put bytes used by the operation. This value excludes bulk put vector bytes.
Table (dict) –
The number of bulk put bytes for the table, excluding its indexes.
BulkPutBytes (integer) –
The number of bulk put bytes.
LocalSecondaryIndexes (dict) –
The bulk put bytes used on each local secondary index affected by the operation, keyed by index name.
(string) –
(dict) –
Contains the bulk put bytes used during a bulk operation.
BulkPutBytes (integer) –
The number of bulk put bytes.
GlobalSecondaryIndexes (dict) –
The bulk put bytes used on each global secondary index affected by the operation, keyed by index name.
(string) –
(dict) –
Contains the bulk put bytes used during a bulk operation.
BulkPutBytes (integer) –
The number of bulk put bytes.
VectorIndexes (dict) –
The bulk put vector bytes used on each vector index affected by the operation, keyed by index name.
(string) –
(dict) –
Contains the bulk put vector bytes used by a vector index during a bulk operation.
BulkPutVectorBytes (integer) –
The number of bulk put vector bytes used on the vector index.
FailedItemCount (integer) –
The number of processed input items that failed because of parsing or validation errors. This count is included in
ProcessedItemCount. Condition-check failures do not increase this count.FailureCode (string) –
A code that identifies why the bulk operation failed or was cancelled. DynamoDB returns this value only when
BulkOperationStatusisFAILEDorCANCELLED.FailureMessage (string) –
A message that describes why the bulk operation failed or was cancelled. DynamoDB returns this value only when
BulkOperationStatusisFAILEDorCANCELLED.MaxWriteRequestUnits (integer) –
The maximum write request unit rate configured for the bulk operation.
PerformanceTier (string) –
The performance tier selected for the bulk operation. Valid values are
STANDARDandACCELERATED. If the start request omitted this value, DynamoDB usesSTANDARD.
Exceptions