AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Represents the output of a BatchGetItem operation.
Namespace: Amazon.DynamoDBv2.Model
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z
public class BatchGetItemResponse : AmazonWebServiceResponse
The BatchGetItemResponse type exposes the following members
| Name | Description | |
|---|---|---|
|
BatchGetItemResponse() |
| Name | Type | Description | |
|---|---|---|---|
|
ConsumedCapacity | System.Collections.Generic.List<Amazon.DynamoDBv2.Model.ConsumedCapacity> |
Gets and sets the property ConsumedCapacity.
The read capacity units consumed by the entire Each element consists of:
|
|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
|
Responses | System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.String, Amazon.DynamoDBv2.Model.AttributeValue>>> |
Gets and sets the property Responses.
A map of table name or table ARN to a list of items. Each object in |
|
UnprocessedKeys | System.Collections.Generic.Dictionary<System.String, Amazon.DynamoDBv2.Model.KeysAndAttributes> |
Gets and sets the property UnprocessedKeys.
A map of tables and their respective keys that were not processed with the current
response. The Each element consists of:
If there are no unprocessed keys remaining, the response contains an empty |
var client = new AmazonDynamoDBClient();
var response = client.BatchGetItem(new BatchGetItemRequest
{
RequestItems = new Dictionary<string, KeysAndAttributes> {
{ "tablename1", new KeysAndAttributes {
Keys = new List<Dictionary<string, AttributeValue>> {
new Dictionary<string, AttributeValue> {
{ "key1", new AttributeValue { N = "NumberAttributeValue" } }
}
},
AttributesToGet = new List<string> {
"attr1",
"attr2"
},
ConsistentRead = true,
ProjectionExpression = "str1",
ExpressionAttributeNames = new Dictionary<string, string> {
{ "name1", "attr3" },
{ "name2", "attr4" }
}
} },
{ "tablename2", new KeysAndAttributes {
Keys = new List<Dictionary<string, AttributeValue>> {
new Dictionary<string, AttributeValue> {
{ "key2", new AttributeValue { BOOL = true } }
}
},
AttributesToGet = new List<string> {
"attr1",
"attr2"
},
ConsistentRead = false,
ProjectionExpression = "str2",
ExpressionAttributeNames = new Dictionary<string, string> {
{ "name1", "attr3" },
{ "name2", "attr4" }
}
} }
},
ReturnConsumedCapacity = "NONE"
});
Dictionary<string, List<Dictionary<string, AttributeValue>>> responses = response.Responses;
List<ConsumedCapacity> consumedCapacity = response.ConsumedCapacity;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5