import { _UnmarshalledAttributeValue } from './_AttributeValue'; import { _UnmarshalledConsumedCapacity } from './_ConsumedCapacity'; import { _UnmarshalledItemCollectionMetrics } from './_ItemCollectionMetrics'; import * as __aws_sdk_types from '@aws-sdk/types'; /** *

Represents the output of a PutItem operation.

*/ export interface PutItemOutput { /** *

The attribute values as they appeared before the PutItem operation, but only if ReturnValues is specified as ALL_OLD in the request. Each element consists of an attribute name and an attribute value.

*/ Attributes?: { [key: string]: _UnmarshalledAttributeValue; }; /** *

The capacity units consumed by the PutItem operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the ReturnConsumedCapacity parameter was specified. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

*/ ConsumedCapacity?: _UnmarshalledConsumedCapacity; /** *

Information about item collections, if any, that were affected by the PutItem operation. ItemCollectionMetrics is only returned if the ReturnItemCollectionMetrics parameter was specified. If the table does not have any local secondary indexes, this information is not returned in the response.

Each ItemCollectionMetrics element consists of:

*/ ItemCollectionMetrics?: _UnmarshalledItemCollectionMetrics; /** * Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK. */ $metadata: __aws_sdk_types.ResponseMetadata; }