From 5af7fc0bc9ded671b244bf09534880f9d3c6b31c Mon Sep 17 00:00:00 2001 From: Russell Cohen Date: Tue, 24 Nov 2020 19:03:53 -0500 Subject: [PATCH] Dynamo update (#54) * Use the new Dynamo DB model * Convert Vec to [T] when generating formatters --- codegen-test/model/dynamodb.json | 3500 +++++++++++------ .../smithy/rust/codegen/lang/RustTypes.kt | 6 + .../protocols/JsonSerializerSymbolProvider.kt | 8 +- 3 files changed, 2344 insertions(+), 1170 deletions(-) diff --git a/codegen-test/model/dynamodb.json b/codegen-test/model/dynamodb.json index 09cb632f5..8fabdfa9b 100644 --- a/codegen-test/model/dynamodb.json +++ b/codegen-test/model/dynamodb.json @@ -35,10 +35,10 @@ "com.amazonaws.dynamodb#ArchivalSummary": { "type": "structure", "members": { - "ArchivalBackupArn": { - "target": "com.amazonaws.dynamodb#BackupArn", + "ArchivalDateTime": { + "target": "com.amazonaws.dynamodb#Date", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the backup the table was archived\n to, when applicable in the archival reason. If you wish to restore this\n backup to the same table name, you will need to delete the original\n table.

" + "smithy.api#documentation": "

The date and time when table archival was initiated by DynamoDB,\n in UNIX epoch time format.

" } }, "ArchivalReason": { @@ -47,10 +47,10 @@ "smithy.api#documentation": "

The reason DynamoDB archived the table. Currently, the only\n possible value is:

\n\n " } }, - "ArchivalDateTime": { - "target": "com.amazonaws.dynamodb#Date", + "ArchivalBackupArn": { + "target": "com.amazonaws.dynamodb#BackupArn", "traits": { - "smithy.api#documentation": "

The date and time when table archival was initiated by DynamoDB,\n in UNIX epoch time format.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the backup the table was archived\n to, when applicable in the archival reason. If you wish to restore this\n backup to the same table name, you will need to delete the original\n table.

" } } }, @@ -77,17 +77,17 @@ "com.amazonaws.dynamodb#AttributeDefinition": { "type": "structure", "members": { - "AttributeType": { - "target": "com.amazonaws.dynamodb#ScalarAttributeType", + "AttributeName": { + "target": "com.amazonaws.dynamodb#KeySchemaAttributeName", "traits": { - "smithy.api#documentation": "

The data type for the attribute, where:

\n ", + "smithy.api#documentation": "

A name for the attribute.

", "smithy.api#required": {} } }, - "AttributeName": { - "target": "com.amazonaws.dynamodb#KeySchemaAttributeName", + "AttributeType": { + "target": "com.amazonaws.dynamodb#ScalarAttributeType", "traits": { - "smithy.api#documentation": "

A name for the attribute.

", + "smithy.api#documentation": "

The data type for the attribute, where:

\n ", "smithy.api#required": {} } } @@ -141,36 +141,24 @@ } }, "com.amazonaws.dynamodb#AttributeValue": { - "type": "structure", + "type": "union", "members": { - "BOOL": { - "target": "com.amazonaws.dynamodb#BooleanAttributeValue", - "traits": { - "smithy.api#documentation": "

An attribute of type Boolean. For example:

\n

\n \"BOOL\": true\n

" - } - }, - "NS": { - "target": "com.amazonaws.dynamodb#NumberSetAttributeValue", - "traits": { - "smithy.api#documentation": "

An attribute of type Number Set. For example:

\n

\n \"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]\n

\n

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

" - } - }, "S": { "target": "com.amazonaws.dynamodb#StringAttributeValue", "traits": { "smithy.api#documentation": "

An attribute of type String. For example:

\n

\n \"S\": \"Hello\"\n

" } }, - "B": { - "target": "com.amazonaws.dynamodb#BinaryAttributeValue", + "N": { + "target": "com.amazonaws.dynamodb#NumberAttributeValue", "traits": { - "smithy.api#documentation": "

An attribute of type Binary. For example:

\n

\n \"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"\n

" + "smithy.api#documentation": "

An attribute of type Number. For example:

\n

\n \"N\": \"123.45\"\n

\n

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

" } }, - "BS": { - "target": "com.amazonaws.dynamodb#BinarySetAttributeValue", + "B": { + "target": "com.amazonaws.dynamodb#BinaryAttributeValue", "traits": { - "smithy.api#documentation": "

An attribute of type Binary Set. For example:

\n

\n \"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]\n

" + "smithy.api#documentation": "

An attribute of type Binary. For example:

\n

\n \"B\": \"dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk\"\n

" } }, "SS": { @@ -179,10 +167,16 @@ "smithy.api#documentation": "

An attribute of type String Set. For example:

\n

\n \"SS\": [\"Giraffe\", \"Hippo\" ,\"Zebra\"]\n

" } }, - "N": { - "target": "com.amazonaws.dynamodb#NumberAttributeValue", + "NS": { + "target": "com.amazonaws.dynamodb#NumberSetAttributeValue", "traits": { - "smithy.api#documentation": "

An attribute of type Number. For example:

\n

\n \"N\": \"123.45\"\n

\n

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

" + "smithy.api#documentation": "

An attribute of type Number Set. For example:

\n

\n \"NS\": [\"42.2\", \"-19\", \"7.5\", \"3.14\"]\n

\n

Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations.

" + } + }, + "BS": { + "target": "com.amazonaws.dynamodb#BinarySetAttributeValue", + "traits": { + "smithy.api#documentation": "

An attribute of type Binary Set. For example:

\n

\n \"BS\": [\"U3Vubnk=\", \"UmFpbnk=\", \"U25vd3k=\"]\n

" } }, "M": { @@ -191,16 +185,22 @@ "smithy.api#documentation": "

An attribute of type Map. For example:

\n

\n \"M\": {\"Name\": {\"S\": \"Joe\"}, \"Age\": {\"N\": \"35\"}}\n

" } }, + "L": { + "target": "com.amazonaws.dynamodb#ListAttributeValue", + "traits": { + "smithy.api#documentation": "

An attribute of type List. For example:

\n

\n \"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\", \"3.14159\"}]\n

" + } + }, "NULL": { "target": "com.amazonaws.dynamodb#NullAttributeValue", "traits": { "smithy.api#documentation": "

An attribute of type Null. For example:

\n

\n \"NULL\": true\n

" } }, - "L": { - "target": "com.amazonaws.dynamodb#ListAttributeValue", + "BOOL": { + "target": "com.amazonaws.dynamodb#BooleanAttributeValue", "traits": { - "smithy.api#documentation": "

An attribute of type List. For example:

\n

\n \"L\": [ {\"S\": \"Cookies\"} , {\"S\": \"Coffee\"}, {\"N\", \"3.14159\"}]\n

" + "smithy.api#documentation": "

An attribute of type Boolean. For example:

\n

\n \"BOOL\": true\n

" } } }, @@ -217,17 +217,17 @@ "com.amazonaws.dynamodb#AttributeValueUpdate": { "type": "structure", "members": { - "Action": { - "target": "com.amazonaws.dynamodb#AttributeAction", - "traits": { - "smithy.api#documentation": "

Specifies how to perform the update. Valid values are PUT (default), DELETE,\n and ADD. The behavior depends on whether the specified primary key already exists\n in the table.

\n\n

\n If an item with the specified Key is found in the table:\n

\n\n \n\n

\n If no item with the specified Key is found:\n

\n\n " - } - }, "Value": { "target": "com.amazonaws.dynamodb#AttributeValue", "traits": { "smithy.api#documentation": "

Represents the data for an attribute.

\n

Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

\n

For more information, see Data Types in the Amazon DynamoDB Developer Guide.\n

" } + }, + "Action": { + "target": "com.amazonaws.dynamodb#AttributeAction", + "traits": { + "smithy.api#documentation": "

Specifies how to perform the update. Valid values are PUT (default), DELETE,\n and ADD. The behavior depends on whether the specified primary key already exists\n in the table.

\n\n

\n If an item with the specified Key is found in the table:\n

\n\n \n\n

\n If no item with the specified Key is found:\n

\n\n " + } } }, "traits": { @@ -310,6 +310,12 @@ "smithy.api#documentation": "

The minimum capacity units that a global table or global secondary index should be scaled down to.

" } }, + "MaximumUnits": { + "target": "com.amazonaws.dynamodb#PositiveLongObject", + "traits": { + "smithy.api#documentation": "

The maximum capacity units that a global table or global secondary index should be scaled up to.

" + } + }, "AutoScalingDisabled": { "target": "com.amazonaws.dynamodb#BooleanObject", "traits": { @@ -327,12 +333,6 @@ "traits": { "smithy.api#documentation": "

Information about the scaling policies.

" } - }, - "MaximumUnits": { - "target": "com.amazonaws.dynamodb#PositiveLongObject", - "traits": { - "smithy.api#documentation": "

The maximum capacity units that a global table or global secondary index should be scaled up to.

" - } } }, "traits": { @@ -348,18 +348,6 @@ "smithy.api#documentation": "

The minimum capacity units that a global table or global secondary index should be scaled down to.

" } }, - "ScalingPolicyUpdate": { - "target": "com.amazonaws.dynamodb#AutoScalingPolicyUpdate", - "traits": { - "smithy.api#documentation": "

The scaling policy to apply for scaling target global table or global secondary index capacity units.

" - } - }, - "AutoScalingRoleArn": { - "target": "com.amazonaws.dynamodb#AutoScalingRoleArn", - "traits": { - "smithy.api#documentation": "

Role ARN used for configuring auto scaling policy.

" - } - }, "MaximumUnits": { "target": "com.amazonaws.dynamodb#PositiveLongObject", "traits": { @@ -371,6 +359,18 @@ "traits": { "smithy.api#documentation": "

Disabled auto scaling for this global table or global secondary index.

" } + }, + "AutoScalingRoleArn": { + "target": "com.amazonaws.dynamodb#AutoScalingRoleArn", + "traits": { + "smithy.api#documentation": "

Role ARN used for configuring auto scaling policy.

" + } + }, + "ScalingPolicyUpdate": { + "target": "com.amazonaws.dynamodb#AutoScalingPolicyUpdate", + "traits": { + "smithy.api#documentation": "

The scaling policy to apply for scaling target global table or global secondary index capacity units.

" + } } }, "traits": { @@ -380,10 +380,10 @@ "com.amazonaws.dynamodb#AutoScalingTargetTrackingScalingPolicyConfigurationDescription": { "type": "structure", "members": { - "ScaleOutCooldown": { - "target": "com.amazonaws.dynamodb#IntegerObject", + "DisableScaleIn": { + "target": "com.amazonaws.dynamodb#BooleanObject", "traits": { - "smithy.api#documentation": "

The amount of time, in seconds, after a scale out activity completes before another scale out\n activity can start. While the cooldown period is in effect, the capacity that has been added\n by the previous scale out event that initiated the cooldown is calculated as part of the\n desired capacity for the next scale out. You should continuously (but not excessively)\n scale out.

" + "smithy.api#documentation": "

Indicates whether scale in by the target tracking policy is disabled. If the value is true,\n scale in is disabled and the target tracking policy won't remove capacity from the scalable resource.\n Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.\n The default value is false.

" } }, "ScaleInCooldown": { @@ -392,10 +392,10 @@ "smithy.api#documentation": "

The amount of time, in seconds, after a scale in activity completes before another scale\n in activity can start. The cooldown period is used to block subsequent scale in requests\n until it has expired. You should scale in conservatively to protect your application's\n availability. However, if another alarm triggers a scale out policy during the cooldown\n period after a scale-in, application auto scaling scales out your scalable target\n immediately.

" } }, - "DisableScaleIn": { - "target": "com.amazonaws.dynamodb#BooleanObject", + "ScaleOutCooldown": { + "target": "com.amazonaws.dynamodb#IntegerObject", "traits": { - "smithy.api#documentation": "

Indicates whether scale in by the target tracking policy is disabled. If the value is true,\n scale in is disabled and the target tracking policy won't remove capacity from the scalable resource.\n Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.\n The default value is false.

" + "smithy.api#documentation": "

The amount of time, in seconds, after a scale out activity completes before another scale out\n activity can start. While the cooldown period is in effect, the capacity that has been added\n by the previous scale out event that initiated the cooldown is calculated as part of the\n desired capacity for the next scale out. You should continuously (but not excessively)\n scale out.

" } }, "TargetValue": { @@ -413,30 +413,30 @@ "com.amazonaws.dynamodb#AutoScalingTargetTrackingScalingPolicyConfigurationUpdate": { "type": "structure", "members": { + "DisableScaleIn": { + "target": "com.amazonaws.dynamodb#BooleanObject", + "traits": { + "smithy.api#documentation": "

Indicates whether scale in by the target tracking policy is disabled. If the value is true,\n scale in is disabled and the target tracking policy won't remove capacity from the scalable resource.\n Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.\n The default value is false.

" + } + }, "ScaleInCooldown": { "target": "com.amazonaws.dynamodb#IntegerObject", "traits": { "smithy.api#documentation": "

The amount of time, in seconds, after a scale in activity completes before another scale\n in activity can start. The cooldown period is used to block subsequent scale in requests\n until it has expired. You should scale in conservatively to protect your application's\n availability. However, if another alarm triggers a scale out policy during the cooldown\n period after a scale-in, application auto scaling scales out your scalable target\n immediately.

" } }, + "ScaleOutCooldown": { + "target": "com.amazonaws.dynamodb#IntegerObject", + "traits": { + "smithy.api#documentation": "

The amount of time, in seconds, after a scale out activity completes before another scale out\n activity can start. While the cooldown period is in effect, the capacity that has been added\n by the previous scale out event that initiated the cooldown is calculated as part of the\n desired capacity for the next scale out. You should continuously (but not excessively)\n scale out.

" + } + }, "TargetValue": { "target": "com.amazonaws.dynamodb#Double", "traits": { "smithy.api#documentation": "

The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).

", "smithy.api#required": {} } - }, - "DisableScaleIn": { - "target": "com.amazonaws.dynamodb#BooleanObject", - "traits": { - "smithy.api#documentation": "

Indicates whether scale in by the target tracking policy is disabled. If the value is true,\n scale in is disabled and the target tracking policy won't remove capacity from the scalable resource.\n Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.\n The default value is false.

" - } - }, - "ScaleOutCooldown": { - "target": "com.amazonaws.dynamodb#IntegerObject", - "traits": { - "smithy.api#documentation": "

The amount of time, in seconds, after a scale out activity completes before another scale out\n activity can start. While the cooldown period is in effect, the capacity that has been added\n by the previous scale out event that initiated the cooldown is calculated as part of the\n desired capacity for the next scale out. You should continuously (but not excessively)\n scale out.

" - } } }, "traits": { @@ -470,17 +470,17 @@ "smithy.api#documentation": "

Contains the details of the backup created for the table.

" } }, - "SourceTableFeatureDetails": { - "target": "com.amazonaws.dynamodb#SourceTableFeatureDetails", - "traits": { - "smithy.api#documentation": "

Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.

" - } - }, "SourceTableDetails": { "target": "com.amazonaws.dynamodb#SourceTableDetails", "traits": { "smithy.api#documentation": "

Contains the details of the table when the backup was created.

" } + }, + "SourceTableFeatureDetails": { + "target": "com.amazonaws.dynamodb#SourceTableFeatureDetails", + "traits": { + "smithy.api#documentation": "

Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, streams, TTL.

" + } } }, "traits": { @@ -490,19 +490,26 @@ "com.amazonaws.dynamodb#BackupDetails": { "type": "structure", "members": { - "BackupExpiryDateTime": { - "target": "com.amazonaws.dynamodb#Date", + "BackupArn": { + "target": "com.amazonaws.dynamodb#BackupArn", "traits": { - "smithy.api#documentation": "

Time at which the automatic on-demand backup created by DynamoDB will expire. This SYSTEM\n on-demand backup expires automatically 35 days after its creation.

" + "smithy.api#documentation": "

ARN associated with the backup.

", + "smithy.api#required": {} } }, - "BackupType": { - "target": "com.amazonaws.dynamodb#BackupType", + "BackupName": { + "target": "com.amazonaws.dynamodb#BackupName", "traits": { - "smithy.api#documentation": "

BackupType:

\n ", + "smithy.api#documentation": "

Name of the requested backup.

", "smithy.api#required": {} } }, + "BackupSizeBytes": { + "target": "com.amazonaws.dynamodb#BackupSizeBytes", + "traits": { + "smithy.api#documentation": "

Size of the backup in bytes.

" + } + }, "BackupStatus": { "target": "com.amazonaws.dynamodb#BackupStatus", "traits": { @@ -510,10 +517,10 @@ "smithy.api#required": {} } }, - "BackupName": { - "target": "com.amazonaws.dynamodb#BackupName", + "BackupType": { + "target": "com.amazonaws.dynamodb#BackupType", "traits": { - "smithy.api#documentation": "

Name of the requested backup.

", + "smithy.api#documentation": "

BackupType:

\n ", "smithy.api#required": {} } }, @@ -524,17 +531,10 @@ "smithy.api#required": {} } }, - "BackupArn": { - "target": "com.amazonaws.dynamodb#BackupArn", - "traits": { - "smithy.api#documentation": "

ARN associated with the backup.

", - "smithy.api#required": {} - } - }, - "BackupSizeBytes": { - "target": "com.amazonaws.dynamodb#BackupSizeBytes", + "BackupExpiryDateTime": { + "target": "com.amazonaws.dynamodb#Date", "traits": { - "smithy.api#documentation": "

Size of the backup in bytes.

" + "smithy.api#documentation": "

Time at which the automatic on-demand backup created by DynamoDB will expire. This SYSTEM\n on-demand backup expires automatically 35 days after its creation.

" } } }, @@ -610,24 +610,6 @@ "com.amazonaws.dynamodb#BackupSummary": { "type": "structure", "members": { - "BackupArn": { - "target": "com.amazonaws.dynamodb#BackupArn", - "traits": { - "smithy.api#documentation": "

ARN associated with the backup.

" - } - }, - "BackupName": { - "target": "com.amazonaws.dynamodb#BackupName", - "traits": { - "smithy.api#documentation": "

Name of the specified backup.

" - } - }, - "BackupExpiryDateTime": { - "target": "com.amazonaws.dynamodb#Date", - "traits": { - "smithy.api#documentation": "

Time at which the automatic on-demand backup created by DynamoDB will expire. This\n SYSTEM on-demand backup expires automatically 35 days after its\n creation.

" - } - }, "TableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { @@ -640,10 +622,22 @@ "smithy.api#documentation": "

Unique identifier for the table.

" } }, - "BackupType": { - "target": "com.amazonaws.dynamodb#BackupType", + "TableArn": { + "target": "com.amazonaws.dynamodb#TableArn", "traits": { - "smithy.api#documentation": "

BackupType:

\n " + "smithy.api#documentation": "

ARN associated with the table.

" + } + }, + "BackupArn": { + "target": "com.amazonaws.dynamodb#BackupArn", + "traits": { + "smithy.api#documentation": "

ARN associated with the backup.

" + } + }, + "BackupName": { + "target": "com.amazonaws.dynamodb#BackupName", + "traits": { + "smithy.api#documentation": "

Name of the specified backup.

" } }, "BackupCreationDateTime": { @@ -652,23 +646,29 @@ "smithy.api#documentation": "

Time at which the backup was created.

" } }, + "BackupExpiryDateTime": { + "target": "com.amazonaws.dynamodb#Date", + "traits": { + "smithy.api#documentation": "

Time at which the automatic on-demand backup created by DynamoDB will expire. This\n SYSTEM on-demand backup expires automatically 35 days after its\n creation.

" + } + }, "BackupStatus": { "target": "com.amazonaws.dynamodb#BackupStatus", "traits": { "smithy.api#documentation": "

Backup can be in one of the following states: CREATING, ACTIVE, DELETED.

" } }, + "BackupType": { + "target": "com.amazonaws.dynamodb#BackupType", + "traits": { + "smithy.api#documentation": "

BackupType:

\n " + } + }, "BackupSizeBytes": { "target": "com.amazonaws.dynamodb#BackupSizeBytes", "traits": { "smithy.api#documentation": "

Size of the backup in bytes.

" } - }, - "TableArn": { - "target": "com.amazonaws.dynamodb#TableArn", - "traits": { - "smithy.api#documentation": "

ARN associated with the table.

" - } } }, "traits": { @@ -727,6 +727,49 @@ } } }, + "com.amazonaws.dynamodb#BatchExecuteStatement": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#BatchExecuteStatementInput" + }, + "output": { + "target": "com.amazonaws.dynamodb#BatchExecuteStatementOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#RequestLimitExceeded" + } + ], + "traits": { + "smithy.api#documentation": "

\nThis operation allows you to perform batch reads and writes on data stored in DynamoDB, using PartiQL.\n

" + } + }, + "com.amazonaws.dynamodb#BatchExecuteStatementInput": { + "type": "structure", + "members": { + "Statements": { + "target": "com.amazonaws.dynamodb#PartiQLBatchRequest", + "traits": { + "smithy.api#documentation": "

\nThe list of PartiQL statements representing the batch to run.\n

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.dynamodb#BatchExecuteStatementOutput": { + "type": "structure", + "members": { + "Responses": { + "target": "com.amazonaws.dynamodb#PartiQLBatchResponse", + "traits": { + "smithy.api#documentation": "

\nThe response to each PartiQL statement in the batch.\n

" + } + } + } + }, "com.amazonaws.dynamodb#BatchGetItem": { "type": "operation", "input": { @@ -759,15 +802,15 @@ "com.amazonaws.dynamodb#BatchGetItemInput": { "type": "structure", "members": { - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, "RequestItems": { "target": "com.amazonaws.dynamodb#BatchGetRequestMap", "traits": { "smithy.api#documentation": "

A map of one or more table names and, for each table, a map that describes one or more items to retrieve from that table. Each table name can be used only once per BatchGetItem request.

\n

Each element in the map of items to retrieve consists of the following:

\n ", "smithy.api#required": {} } + }, + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" } }, "traits": { @@ -783,17 +826,17 @@ "smithy.api#documentation": "

A map of table name to a list of items. Each object in Responses consists of a table\n name, along with a map of attribute data consisting of the data type and attribute value.

" } }, - "ConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ConsumedCapacityMultiple", - "traits": { - "smithy.api#documentation": "

The read capacity units consumed by the entire BatchGetItem operation.

\n

Each element consists of:

\n " - } - }, "UnprocessedKeys": { "target": "com.amazonaws.dynamodb#BatchGetRequestMap", "traits": { "smithy.api#documentation": "

A map of tables and their respective keys that were not processed with the current response.\n The UnprocessedKeys value is in the same form as RequestItems, so the value can\n be provided directly to a subsequent BatchGetItem operation. For more information, see\n RequestItems in the Request Parameters section.

\n

Each element consists of:

\n \n

If there are no unprocessed keys remaining, the response contains an empty\n UnprocessedKeys map.

" } + }, + "ConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ConsumedCapacityMultiple", + "traits": { + "smithy.api#documentation": "

The read capacity units consumed by the entire BatchGetItem operation.

\n

Each element consists of:

\n " + } } }, "traits": { @@ -824,6 +867,130 @@ "target": "com.amazonaws.dynamodb#ItemList" } }, + "com.amazonaws.dynamodb#BatchStatementError": { + "type": "structure", + "members": { + "Code": { + "target": "com.amazonaws.dynamodb#BatchStatementErrorCodeEnum", + "traits": { + "smithy.api#documentation": "

\nThe error code associated with the failed PartiQL batch statement.\n

" + } + }, + "Message": { + "target": "com.amazonaws.dynamodb#String", + "traits": { + "smithy.api#documentation": "

\nThe error message associated with the PartiQL batch resposne.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\nAn error associated with a statement in a PartiQL batch that was run.\n

" + } + }, + "com.amazonaws.dynamodb#BatchStatementErrorCodeEnum": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ConditionalCheckFailed", + "name": "ConditionalCheckFailed" + }, + { + "value": "ItemCollectionSizeLimitExceeded", + "name": "ItemCollectionSizeLimitExceeded" + }, + { + "value": "RequestLimitExceeded", + "name": "RequestLimitExceeded" + }, + { + "value": "ValidationError", + "name": "ValidationError" + }, + { + "value": "ProvisionedThroughputExceeded", + "name": "ProvisionedThroughputExceeded" + }, + { + "value": "TransactionConflict", + "name": "TransactionConflict" + }, + { + "value": "ThrottlingError", + "name": "ThrottlingError" + }, + { + "value": "InternalServerError", + "name": "InternalServerError" + }, + { + "value": "ResourceNotFound", + "name": "ResourceNotFound" + }, + { + "value": "AccessDenied", + "name": "AccessDenied" + }, + { + "value": "DuplicateItem", + "name": "DuplicateItem" + } + ] + } + }, + "com.amazonaws.dynamodb#BatchStatementRequest": { + "type": "structure", + "members": { + "Statement": { + "target": "com.amazonaws.dynamodb#PartiQLStatement", + "traits": { + "smithy.api#documentation": "

\nA valid PartiQL statement.\n

", + "smithy.api#required": {} + } + }, + "Parameters": { + "target": "com.amazonaws.dynamodb#PreparedStatementParameters", + "traits": { + "smithy.api#documentation": "

\nThe parameters associated with a PartiQL statement in the batch request.\n

" + } + }, + "ConsistentRead": { + "target": "com.amazonaws.dynamodb#ConsistentRead", + "traits": { + "smithy.api#documentation": "

\nThe read consistency of the PartiQL batch request. \n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\nA PartiQL batch statement request. \n

" + } + }, + "com.amazonaws.dynamodb#BatchStatementResponse": { + "type": "structure", + "members": { + "Error": { + "target": "com.amazonaws.dynamodb#BatchStatementError", + "traits": { + "smithy.api#documentation": "

\nThe error associated with a failed PartiQL batch statement.\n

" + } + }, + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

\nThe table name associated with a failed PartiQL batch statement.\n

" + } + }, + "Item": { + "target": "com.amazonaws.dynamodb#AttributeMap", + "traits": { + "smithy.api#documentation": "

\nA DynamoDB item associated with a BatchStatementResponse\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\nA PartiQL batch statement response..\n

" + } + }, "com.amazonaws.dynamodb#BatchWriteItem": { "type": "operation", "input": { @@ -859,9 +1026,6 @@ "com.amazonaws.dynamodb#BatchWriteItemInput": { "type": "structure", "members": { - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, "RequestItems": { "target": "com.amazonaws.dynamodb#BatchWriteItemRequestMap", "traits": { @@ -869,6 +1033,9 @@ "smithy.api#required": {} } }, + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" + }, "ReturnItemCollectionMetrics": { "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", "traits": { @@ -883,6 +1050,12 @@ "com.amazonaws.dynamodb#BatchWriteItemOutput": { "type": "structure", "members": { + "UnprocessedItems": { + "target": "com.amazonaws.dynamodb#BatchWriteItemRequestMap", + "traits": { + "smithy.api#documentation": "

A map of tables and requests against those tables that were not processed. The\n UnprocessedItems value is in the same form as RequestItems, so you can provide\n this value directly to a subsequent BatchGetItem operation. For more information, see\n RequestItems in the Request Parameters section.

\n

Each UnprocessedItems entry consists of a table name and, for that table, a list of\n operations to perform (DeleteRequest or PutRequest).

\n \n

If there are no unprocessed items remaining, the response contains an empty\n UnprocessedItems map.

" + } + }, "ItemCollectionMetrics": { "target": "com.amazonaws.dynamodb#ItemCollectionMetricsPerTable", "traits": { @@ -894,12 +1067,6 @@ "traits": { "smithy.api#documentation": "

The capacity units consumed by the entire BatchWriteItem operation.

\n

Each element consists of:

\n " } - }, - "UnprocessedItems": { - "target": "com.amazonaws.dynamodb#BatchWriteItemRequestMap", - "traits": { - "smithy.api#documentation": "

A map of tables and requests against those tables that were not processed. The\n UnprocessedItems value is in the same form as RequestItems, so you can provide\n this value directly to a subsequent BatchGetItem operation. For more information, see\n RequestItems in the Request Parameters section.

\n

Each UnprocessedItems entry consists of a table name and, for that table, a list of\n operations to perform (DeleteRequest or PutRequest).

\n \n

If there are no unprocessed items remaining, the response contains an empty\n UnprocessedItems map.

" - } } }, "traits": { @@ -921,6 +1088,15 @@ } } }, + "com.amazonaws.dynamodb#BilledSizeBytes": { + "type": "long", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 0 + } + } + }, "com.amazonaws.dynamodb#BillingMode": { "type": "string", "traits": { @@ -978,12 +1154,6 @@ "com.amazonaws.dynamodb#CancellationReason": { "type": "structure", "members": { - "Message": { - "target": "com.amazonaws.dynamodb#ErrorMessage", - "traits": { - "smithy.api#documentation": "

Cancellation reason message description.

" - } - }, "Item": { "target": "com.amazonaws.dynamodb#AttributeMap", "traits": { @@ -995,6 +1165,12 @@ "traits": { "smithy.api#documentation": "

Status code for the result of the cancelled transaction.

" } + }, + "Message": { + "target": "com.amazonaws.dynamodb#ErrorMessage", + "traits": { + "smithy.api#documentation": "

Cancellation reason message description.

" + } } }, "traits": { @@ -1022,16 +1198,16 @@ "smithy.api#documentation": "

The total number of read capacity units consumed on a table or an index.

" } }, - "CapacityUnits": { + "WriteCapacityUnits": { "target": "com.amazonaws.dynamodb#ConsumedCapacityUnits", "traits": { - "smithy.api#documentation": "

The total number of capacity units consumed on a table or an index.

" + "smithy.api#documentation": "

The total number of write capacity units consumed on a table or an index.

" } }, - "WriteCapacityUnits": { + "CapacityUnits": { "target": "com.amazonaws.dynamodb#ConsumedCapacityUnits", "traits": { - "smithy.api#documentation": "

The total number of write capacity units consumed on a table or an index.

" + "smithy.api#documentation": "

The total number of capacity units consumed on a table or an index.

" } } }, @@ -1048,6 +1224,9 @@ } } }, + "com.amazonaws.dynamodb#ClientToken": { + "type": "string" + }, "com.amazonaws.dynamodb#Code": { "type": "string" }, @@ -1100,18 +1279,18 @@ "com.amazonaws.dynamodb#Condition": { "type": "structure", "members": { + "AttributeValueList": { + "target": "com.amazonaws.dynamodb#AttributeValueList", + "traits": { + "smithy.api#documentation": "

One or more values to evaluate against the supplied attribute. The number of values in the\n list depends on the ComparisonOperator being used.

\n

For type Number, value comparisons are numeric.

\n

String value comparisons for greater than, equals, or less than are based on ASCII character\n code values. For example, a is greater than A, and a\n is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

\n

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

" + } + }, "ComparisonOperator": { "target": "com.amazonaws.dynamodb#ComparisonOperator", "traits": { "smithy.api#documentation": "

A comparator for evaluating attributes. For example, equals, greater than, less than, etc.

\n

The following comparison operators are available:

\n

\n EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN\n

\n

The following are descriptions of each comparison operator.

\n \n

For usage examples of AttributeValueList and ComparisonOperator, see\n Legacy Conditional Parameters\n in the Amazon DynamoDB Developer Guide.

", "smithy.api#required": {} } - }, - "AttributeValueList": { - "target": "com.amazonaws.dynamodb#AttributeValueList", - "traits": { - "smithy.api#documentation": "

One or more values to evaluate against the supplied attribute. The number of values in the\n list depends on the ComparisonOperator being used.

\n

For type Number, value comparisons are numeric.

\n

String value comparisons for greater than, equals, or less than are based on ASCII character\n code values. For example, a is greater than A, and a\n is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

\n

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

" - } } }, "traits": { @@ -1128,6 +1307,13 @@ "smithy.api#required": {} } }, + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

Name of the table for the check item request.

", + "smithy.api#required": {} + } + }, "ConditionExpression": { "target": "com.amazonaws.dynamodb#ConditionExpression", "traits": { @@ -1135,6 +1321,12 @@ "smithy.api#required": {} } }, + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "traits": { + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression.

" + } + }, "ExpressionAttributeValues": { "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", "traits": { @@ -1146,19 +1338,6 @@ "traits": { "smithy.api#documentation": "

Use ReturnValuesOnConditionCheckFailure to\n get the item attributes if the ConditionCheck condition fails.\n For ReturnValuesOnConditionCheckFailure, the valid\n values are: NONE and ALL_OLD.

" } - }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", - "traits": { - "smithy.api#documentation": "

Name of the table for the check item request.

", - "smithy.api#required": {} - } - }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", - "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression.

" - } } }, "traits": { @@ -1217,18 +1396,6 @@ "smithy.api#documentation": "

The total number of capacity units consumed by the operation.

" } }, - "LocalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#SecondaryIndexesCapacityMap", - "traits": { - "smithy.api#documentation": "

The amount of throughput consumed on each local index affected by the operation.

" - } - }, - "GlobalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#SecondaryIndexesCapacityMap", - "traits": { - "smithy.api#documentation": "

The amount of throughput consumed on each global index affected by the operation.

" - } - }, "ReadCapacityUnits": { "target": "com.amazonaws.dynamodb#ConsumedCapacityUnits", "traits": { @@ -1246,6 +1413,18 @@ "traits": { "smithy.api#documentation": "

The amount of throughput consumed on the table affected by the operation.

" } + }, + "LocalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#SecondaryIndexesCapacityMap", + "traits": { + "smithy.api#documentation": "

The amount of throughput consumed on each local index affected by the operation.

" + } + }, + "GlobalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#SecondaryIndexesCapacityMap", + "traits": { + "smithy.api#documentation": "

The amount of throughput consumed on each global index affected by the operation.

" + } } }, "traits": { @@ -1267,23 +1446,23 @@ "com.amazonaws.dynamodb#ContinuousBackupsDescription": { "type": "structure", "members": { - "PointInTimeRecoveryDescription": { - "target": "com.amazonaws.dynamodb#PointInTimeRecoveryDescription", - "traits": { - "smithy.api#documentation": "

The description of the point in time recovery settings applied to the table.

" - } - }, "ContinuousBackupsStatus": { "target": "com.amazonaws.dynamodb#ContinuousBackupsStatus", "traits": { "smithy.api#documentation": "

\n ContinuousBackupsStatus can be one of the following states: ENABLED,\n DISABLED

", "smithy.api#required": {} } - } - }, - "traits": { - "smithy.api#documentation": "

Represents the continuous backups and point in time recovery settings on the table.

" - } + }, + "PointInTimeRecoveryDescription": { + "target": "com.amazonaws.dynamodb#PointInTimeRecoveryDescription", + "traits": { + "smithy.api#documentation": "

The description of the point in time recovery settings applied to the table.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the continuous backups and point in time recovery settings on the table.

" + } }, "com.amazonaws.dynamodb#ContinuousBackupsStatus": { "type": "string", @@ -1386,7 +1565,7 @@ } }, "traits": { - "smithy.api#documentation": "

Represents a Contributor Insights summary entry..

" + "smithy.api#documentation": "

Represents a Contributor Insights summary entry.

" } }, "com.amazonaws.dynamodb#CreateBackup": { @@ -1457,16 +1636,10 @@ "com.amazonaws.dynamodb#CreateGlobalSecondaryIndexAction": { "type": "structure", "members": { - "ProvisionedThroughput": { - "target": "com.amazonaws.dynamodb#ProvisionedThroughput", - "traits": { - "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

" - } - }, - "Projection": { - "target": "com.amazonaws.dynamodb#Projection", + "IndexName": { + "target": "com.amazonaws.dynamodb#IndexName", "traits": { - "smithy.api#documentation": "

Represents attributes that are copied (projected) from the table into an index. These\n are in addition to the primary key attributes and index key attributes, which are\n automatically projected.

", + "smithy.api#documentation": "

The name of the global secondary index to be created.

", "smithy.api#required": {} } }, @@ -1477,12 +1650,18 @@ "smithy.api#required": {} } }, - "IndexName": { - "target": "com.amazonaws.dynamodb#IndexName", + "Projection": { + "target": "com.amazonaws.dynamodb#Projection", "traits": { - "smithy.api#documentation": "

The name of the global secondary index to be created.

", + "smithy.api#documentation": "

Represents attributes that are copied (projected) from the table into an index. These\n are in addition to the primary key attributes and index key attributes, which are\n automatically projected.

", "smithy.api#required": {} } + }, + "ProvisionedThroughput": { + "target": "com.amazonaws.dynamodb#ProvisionedThroughput", + "traits": { + "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

" + } } }, "traits": { @@ -1579,17 +1758,17 @@ "smithy.api#documentation": "

The AWS KMS customer master key (CMK) that should be used for AWS KMS encryption\n in the new replica. To specify a CMK, use its key ID, Amazon Resource Name (ARN),\n alias name, or alias ARN. Note that you should only provide this parameter if the\n key is different from the default DynamoDB KMS master key alias/aws/dynamodb.

" } }, - "GlobalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexList", - "traits": { - "smithy.api#documentation": "

Replica-specific global secondary index settings.

" - } - }, "ProvisionedThroughputOverride": { "target": "com.amazonaws.dynamodb#ProvisionedThroughputOverride", "traits": { "smithy.api#documentation": "

Replica-specific provisioned throughput. If not specified, uses the source table's\n provisioned throughput settings.

" } + }, + "GlobalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexList", + "traits": { + "smithy.api#documentation": "

Replica-specific global secondary index settings.

" + } } }, "traits": { @@ -1625,23 +1804,17 @@ "com.amazonaws.dynamodb#CreateTableInput": { "type": "structure", "members": { - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", + "AttributeDefinitions": { + "target": "com.amazonaws.dynamodb#AttributeDefinitions", "traits": { - "smithy.api#documentation": "

The name of the table to create.

", + "smithy.api#documentation": "

An array of attributes that describe the key schema for the table and indexes.

", "smithy.api#required": {} } }, - "SSESpecification": { - "target": "com.amazonaws.dynamodb#SSESpecification", - "traits": { - "smithy.api#documentation": "

Represents the settings used to enable server-side encryption.

" - } - }, - "AttributeDefinitions": { - "target": "com.amazonaws.dynamodb#AttributeDefinitions", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

An array of attributes that describe the key schema for the table and indexes.

", + "smithy.api#documentation": "

The name of the table to create.

", "smithy.api#required": {} } }, @@ -1652,16 +1825,22 @@ "smithy.api#required": {} } }, + "LocalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#LocalSecondaryIndexList", + "traits": { + "smithy.api#documentation": "

One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

\n

Each local secondary index in the array includes the following:

\n " + } + }, "GlobalSecondaryIndexes": { "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexList", "traits": { "smithy.api#documentation": "

One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:

\n " } }, - "StreamSpecification": { - "target": "com.amazonaws.dynamodb#StreamSpecification", + "BillingMode": { + "target": "com.amazonaws.dynamodb#BillingMode", "traits": { - "smithy.api#documentation": "

The settings for DynamoDB Streams on the table. These settings consist of:

\n " + "smithy.api#documentation": "

Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

\n " } }, "ProvisionedThroughput": { @@ -1670,16 +1849,16 @@ "smithy.api#documentation": "

Represents the provisioned throughput settings for a specified table or index. The\n settings can be modified using the UpdateTable operation.

\n\t\t

If you set BillingMode as PROVISIONED, you must specify this property. If you\n set BillingMode as PAY_PER_REQUEST, you cannot specify this\n property.

\n

For current minimum and maximum provisioned throughput values, see Service,\n Account, and Table Quotas in the Amazon DynamoDB Developer\n Guide.

" } }, - "BillingMode": { - "target": "com.amazonaws.dynamodb#BillingMode", + "StreamSpecification": { + "target": "com.amazonaws.dynamodb#StreamSpecification", "traits": { - "smithy.api#documentation": "

Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

\n " + "smithy.api#documentation": "

The settings for DynamoDB Streams on the table. These settings consist of:

\n " } }, - "LocalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#LocalSecondaryIndexList", + "SSESpecification": { + "target": "com.amazonaws.dynamodb#SSESpecification", "traits": { - "smithy.api#documentation": "

One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.

\n

Each local secondary index in the array includes the following:

\n " + "smithy.api#documentation": "

Represents the settings used to enable server-side encryption.

" } }, "Tags": { @@ -1713,6 +1892,13 @@ "com.amazonaws.dynamodb#Delete": { "type": "structure", "members": { + "Key": { + "target": "com.amazonaws.dynamodb#Key", + "traits": { + "smithy.api#documentation": "

The primary key of the item to be deleted. Each element consists of an\n attribute name and a value for that attribute.

", + "smithy.api#required": {} + } + }, "TableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { @@ -1726,11 +1912,10 @@ "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional delete to succeed.

" } }, - "Key": { - "target": "com.amazonaws.dynamodb#Key", + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", "traits": { - "smithy.api#documentation": "

The primary key of the item to be deleted. Each element consists of an\n attribute name and a value for that attribute.

", - "smithy.api#required": {} + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression.

" } }, "ExpressionAttributeValues": { @@ -1739,12 +1924,6 @@ "smithy.api#documentation": "

One or more values that can be substituted in an expression.

" } }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", - "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression.

" - } - }, "ReturnValuesOnConditionCheckFailure": { "target": "com.amazonaws.dynamodb#ReturnValuesOnConditionCheckFailure", "traits": { @@ -1864,32 +2043,45 @@ "com.amazonaws.dynamodb#DeleteItemInput": { "type": "structure", "members": { + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The name of the table from which to delete the item.

", + "smithy.api#required": {} + } + }, + "Key": { + "target": "com.amazonaws.dynamodb#Key", + "traits": { + "smithy.api#documentation": "

A map of attribute names to AttributeValue objects, representing the primary key of\n the item to delete.

\n

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", + "smithy.api#required": {} + } + }, "Expected": { "target": "com.amazonaws.dynamodb#ExpectedAttributeMap", "traits": { "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n Expected in the Amazon DynamoDB Developer Guide.

" } }, - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, "ConditionalOperator": { "target": "com.amazonaws.dynamodb#ConditionalOperator", "traits": { "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n ConditionalOperator in the Amazon DynamoDB Developer Guide.

" } }, - "Key": { - "target": "com.amazonaws.dynamodb#Key", + "ReturnValues": { + "target": "com.amazonaws.dynamodb#ReturnValue", "traits": { - "smithy.api#documentation": "

A map of attribute names to AttributeValue objects, representing the primary key of\n the item to delete.

\n

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Use ReturnValues if you want to get the item attributes as they appeared before they\n were deleted. For DeleteItem, the valid values are:

\n \n \n

The ReturnValues parameter is used by several DynamoDB operations; however,\n DeleteItem does not recognize any values other than NONE or\n ALL_OLD.

\n
" } }, - "ExpressionAttributeValues": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" + }, + "ReturnItemCollectionMetrics": { + "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", "traits": { - "smithy.api#documentation": "

One or more values that can be substituted in an expression.

\n

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

\n

\n Available | Backordered | Discontinued\n

\n

You would first need to specify ExpressionAttributeValues as follows:

\n

\n { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }\n

\n

You could then use these values in an expression, such as this:

\n

\n ProductStatus IN (:avail, :back, :disc)\n

\n

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during\n the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" } }, "ConditionExpression": { @@ -1898,29 +2090,16 @@ "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional DeleteItem to\n succeed.

\n

An expression can contain any of the following:

\n \n

For more information about condition expressions, see Condition Expressions in the Amazon DynamoDB Developer\n Guide.

" } }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", - "traits": { - "smithy.api#documentation": "

The name of the table from which to delete the item.

", - "smithy.api#required": {} - } - }, "ExpressionAttributeNames": { "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", "traits": { "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" } }, - "ReturnItemCollectionMetrics": { - "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", - "traits": { - "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during\n the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" - } - }, - "ReturnValues": { - "target": "com.amazonaws.dynamodb#ReturnValue", + "ExpressionAttributeValues": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", "traits": { - "smithy.api#documentation": "

Use ReturnValues if you want to get the item attributes as they appeared before they\n were deleted. For DeleteItem, the valid values are:

\n \n \n

The ReturnValues parameter is used by several DynamoDB operations; however,\n DeleteItem does not recognize any values other than NONE or\n ALL_OLD.

\n
" + "smithy.api#documentation": "

One or more values that can be substituted in an expression.

\n

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the ProductStatus attribute was one of the following:

\n

\n Available | Backordered | Discontinued\n

\n

You would first need to specify ExpressionAttributeValues as follows:

\n

\n { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }\n

\n

You could then use these values in an expression, such as this:

\n

\n ProductStatus IN (:avail, :back, :disc)\n

\n

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer\n Guide.

" } } }, @@ -1931,6 +2110,12 @@ "com.amazonaws.dynamodb#DeleteItemOutput": { "type": "structure", "members": { + "Attributes": { + "target": "com.amazonaws.dynamodb#AttributeMap", + "traits": { + "smithy.api#documentation": "

A map of attribute names to AttributeValue objects, representing the item as it\n appeared before the DeleteItem operation. This map appears in the response only if\n ReturnValues was specified as ALL_OLD in the request.

" + } + }, "ConsumedCapacity": { "target": "com.amazonaws.dynamodb#ConsumedCapacity", "traits": { @@ -1942,12 +2127,6 @@ "traits": { "smithy.api#documentation": "

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

\n

Each ItemCollectionMetrics\n element consists of:

\n " } - }, - "Attributes": { - "target": "com.amazonaws.dynamodb#AttributeMap", - "traits": { - "smithy.api#documentation": "

A map of attribute names to AttributeValue objects, representing the item as it\n appeared before the DeleteItem operation. This map appears in the response only if\n ReturnValues was specified as ALL_OLD in the request.

" - } } }, "traits": { @@ -2172,18 +2351,18 @@ "com.amazonaws.dynamodb#DescribeContributorInsightsInput": { "type": "structure", "members": { - "IndexName": { - "target": "com.amazonaws.dynamodb#IndexName", - "traits": { - "smithy.api#documentation": "

The name of the global secondary index to describe, if applicable.

" - } - }, "TableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { "smithy.api#documentation": "

The name of the table to describe.

", "smithy.api#required": {} } + }, + "IndexName": { + "target": "com.amazonaws.dynamodb#IndexName", + "traits": { + "smithy.api#documentation": "

The name of the global secondary index to describe, if applicable.

" + } } } }, @@ -2202,12 +2381,6 @@ "smithy.api#documentation": "

The name of the global secondary index being described.

" } }, - "FailureException": { - "target": "com.amazonaws.dynamodb#FailureException", - "traits": { - "smithy.api#documentation": "

Returns information about the last failure that encountered.

\n

The most common exceptions for a FAILED status are:

\n " - } - }, "ContributorInsightsRuleList": { "target": "com.amazonaws.dynamodb#ContributorInsightsRuleList", "traits": { @@ -2225,6 +2398,12 @@ "traits": { "smithy.api#documentation": "

Timestamp of the last time the status was changed.

" } + }, + "FailureException": { + "target": "com.amazonaws.dynamodb#FailureException", + "traits": { + "smithy.api#documentation": "

Returns information about the last failure that encountered.

\n

The most common exceptions for a FAILED status are:

\n " + } } } }, @@ -2256,6 +2435,52 @@ } } }, + "com.amazonaws.dynamodb#DescribeExport": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#DescribeExportInput" + }, + "output": { + "target": "com.amazonaws.dynamodb#DescribeExportOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#ExportNotFoundException" + }, + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#LimitExceededException" + } + ], + "traits": { + "smithy.api#documentation": "

Describes an existing table export.

" + } + }, + "com.amazonaws.dynamodb#DescribeExportInput": { + "type": "structure", + "members": { + "ExportArn": { + "target": "com.amazonaws.dynamodb#ExportArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) associated with the export.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.dynamodb#DescribeExportOutput": { + "type": "structure", + "members": { + "ExportDescription": { + "target": "com.amazonaws.dynamodb#ExportDescription", + "traits": { + "smithy.api#documentation": "

Represents the properties of the export.

" + } + } + } + }, "com.amazonaws.dynamodb#DescribeGlobalTable": { "type": "operation", "input": { @@ -2340,27 +2565,27 @@ "com.amazonaws.dynamodb#DescribeGlobalTableSettingsOutput": { "type": "structure", "members": { - "ReplicaSettings": { - "target": "com.amazonaws.dynamodb#ReplicaSettingsDescriptionList", - "traits": { - "smithy.api#documentation": "

The Region-specific settings for the global table.

" - } - }, "GlobalTableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { "smithy.api#documentation": "

The name of the global table.

" } + }, + "ReplicaSettings": { + "target": "com.amazonaws.dynamodb#ReplicaSettingsDescriptionList", + "traits": { + "smithy.api#documentation": "

The Region-specific settings for the global table.

" + } } } }, - "com.amazonaws.dynamodb#DescribeLimits": { + "com.amazonaws.dynamodb#DescribeKinesisStreamingDestination": { "type": "operation", "input": { - "target": "com.amazonaws.dynamodb#DescribeLimitsInput" + "target": "com.amazonaws.dynamodb#DescribeKinesisStreamingDestinationInput" }, "output": { - "target": "com.amazonaws.dynamodb#DescribeLimitsOutput" + "target": "com.amazonaws.dynamodb#DescribeKinesisStreamingDestinationOutput" }, "errors": [ { @@ -2368,26 +2593,78 @@ }, { "target": "com.amazonaws.dynamodb#InvalidEndpointException" + }, + { + "target": "com.amazonaws.dynamodb#ResourceNotFoundException" } ], "traits": { - "smithy.api#documentation": "

Returns the current provisioned-capacity quotas for your AWS account in a Region, both\n for the Region as a whole and for any one DynamoDB table that you create there.

\n

When you establish an AWS account, the account has initial quotas on the maximum read\n capacity units and write capacity units that you can provision across all of your\n DynamoDB tables in a given Region. Also, there are per-table quotas that apply when you\n create a table there. For more information, see Service, Account, and Table\n Quotas page in the Amazon DynamoDB Developer\n Guide.

\n\n

Although you can increase these quotas by filing a case at AWS Support Center, obtaining the increase is not\n instantaneous. The DescribeLimits action lets you write code to compare the\n capacity you are currently using to those quotas imposed by your account so that you\n have enough time to apply for an increase before you hit a quota.

\n\n

For example, you could use one of the AWS SDKs to do the following:

\n\n
    \n
  1. \n

    Call DescribeLimits for a particular Region to obtain your current\n account quotas on provisioned capacity there.

    \n
  2. \n
  3. \n

    Create a variable to hold the aggregate read capacity units provisioned for all\n your tables in that Region, and one to hold the aggregate write capacity units.\n Zero them both.

    \n
  4. \n
  5. \n

    Call ListTables to obtain a list of all your DynamoDB tables.

    \n
  6. \n
  7. \n

    For each table name listed by ListTables, do the following:

    \n
      \n
    • \n

      Call DescribeTable with the table name.

      \n
    • \n
    • \n

      Use the data returned by DescribeTable to add the read capacity units and write capacity\n units provisioned for the table itself to your variables.

      \n
    • \n
    • \n

      If the table has one or more global secondary indexes (GSIs), loop over these GSIs and add their provisioned capacity values to your variables as well.

      \n
    • \n
    \n
  8. \n
  9. \n

    Report the account quotas for that Region returned by DescribeLimits, along with\n the total current provisioned capacity levels you have calculated.

    \n
  10. \n
\n\n

This will let you see whether you are getting close to your account-level quotas.

\n

The per-table quotas apply only when you are creating a new table. They restrict the sum\n of the provisioned capacity of the new table itself and all its global secondary\n indexes.

\n

For existing tables and their GSIs, DynamoDB doesn't let you increase provisioned\n capacity extremely rapidly, but the only quota that applies is that the aggregate\n provisioned capacity over all your tables and GSIs cannot exceed either of the\n per-account quotas.

\n \n

\n DescribeLimits should only be called periodically. You can expect throttling\n errors if you call it more than once in a minute.

\n
\n

The DescribeLimits Request element has no content.

" + "smithy.api#documentation": "

Returns information about the status of Kinesis streaming.

" } }, - "com.amazonaws.dynamodb#DescribeLimitsInput": { + "com.amazonaws.dynamodb#DescribeKinesisStreamingDestinationInput": { "type": "structure", - "members": {}, - "traits": { - "smithy.api#documentation": "

Represents the input of a DescribeLimits operation. Has no content.

" - } - }, - "com.amazonaws.dynamodb#DescribeLimitsOutput": { + "members": { + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The name of the table being described.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.dynamodb#DescribeKinesisStreamingDestinationOutput": { "type": "structure", "members": { - "TableMaxWriteCapacityUnits": { + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The name of the table being described.

" + } + }, + "KinesisDataStreamDestinations": { + "target": "com.amazonaws.dynamodb#KinesisDataStreamDestinations", + "traits": { + "smithy.api#documentation": "

The list of replica structures for the table being described.

" + } + } + } + }, + "com.amazonaws.dynamodb#DescribeLimits": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#DescribeLimitsInput" + }, + "output": { + "target": "com.amazonaws.dynamodb#DescribeLimitsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#InvalidEndpointException" + } + ], + "traits": { + "smithy.api#documentation": "

Returns the current provisioned-capacity quotas for your AWS account in a Region, both\n for the Region as a whole and for any one DynamoDB table that you create there.

\n

When you establish an AWS account, the account has initial quotas on the maximum read\n capacity units and write capacity units that you can provision across all of your\n DynamoDB tables in a given Region. Also, there are per-table quotas that apply when you\n create a table there. For more information, see Service, Account, and Table\n Quotas page in the Amazon DynamoDB Developer\n Guide.

\n\n

Although you can increase these quotas by filing a case at AWS Support Center, obtaining the increase is not\n instantaneous. The DescribeLimits action lets you write code to compare the\n capacity you are currently using to those quotas imposed by your account so that you\n have enough time to apply for an increase before you hit a quota.

\n\n

For example, you could use one of the AWS SDKs to do the following:

\n\n
    \n
  1. \n

    Call DescribeLimits for a particular Region to obtain your current\n account quotas on provisioned capacity there.

    \n
  2. \n
  3. \n

    Create a variable to hold the aggregate read capacity units provisioned for all\n your tables in that Region, and one to hold the aggregate write capacity units.\n Zero them both.

    \n
  4. \n
  5. \n

    Call ListTables to obtain a list of all your DynamoDB tables.

    \n
  6. \n
  7. \n

    For each table name listed by ListTables, do the following:

    \n
      \n
    • \n

      Call DescribeTable with the table name.

      \n
    • \n
    • \n

      Use the data returned by DescribeTable to add the read capacity units and write capacity\n units provisioned for the table itself to your variables.

      \n
    • \n
    • \n

      If the table has one or more global secondary indexes (GSIs), loop over these GSIs and add their provisioned capacity values to your variables as well.

      \n
    • \n
    \n
  8. \n
  9. \n

    Report the account quotas for that Region returned by DescribeLimits, along with\n the total current provisioned capacity levels you have calculated.

    \n
  10. \n
\n\n

This will let you see whether you are getting close to your account-level quotas.

\n

The per-table quotas apply only when you are creating a new table. They restrict the sum\n of the provisioned capacity of the new table itself and all its global secondary\n indexes.

\n

For existing tables and their GSIs, DynamoDB doesn't let you increase provisioned\n capacity extremely rapidly, but the only quota that applies is that the aggregate\n provisioned capacity over all your tables and GSIs cannot exceed either of the\n per-account quotas.

\n \n

\n DescribeLimits should only be called periodically. You can expect throttling\n errors if you call it more than once in a minute.

\n
\n

The DescribeLimits Request element has no content.

" + } + }, + "com.amazonaws.dynamodb#DescribeLimitsInput": { + "type": "structure", + "members": {}, + "traits": { + "smithy.api#documentation": "

Represents the input of a DescribeLimits operation. Has no content.

" + } + }, + "com.amazonaws.dynamodb#DescribeLimitsOutput": { + "type": "structure", + "members": { + "AccountMaxReadCapacityUnits": { "target": "com.amazonaws.dynamodb#PositiveLongObject", "traits": { - "smithy.api#documentation": "

The maximum write capacity units that your account allows you to provision for a new\n table that you are creating in this Region, including the write capacity units\n provisioned for its global secondary indexes (GSIs).

" + "smithy.api#documentation": "

The maximum total read capacity units that your account allows you to provision across\n all of your tables in this Region.

" } }, "AccountMaxWriteCapacityUnits": { @@ -2402,10 +2679,10 @@ "smithy.api#documentation": "

The maximum read capacity units that your account allows you to provision for a new\n table that you are creating in this Region, including the read capacity units\n provisioned for its global secondary indexes (GSIs).

" } }, - "AccountMaxReadCapacityUnits": { + "TableMaxWriteCapacityUnits": { "target": "com.amazonaws.dynamodb#PositiveLongObject", "traits": { - "smithy.api#documentation": "

The maximum total read capacity units that your account allows you to provision across\n all of your tables in this Region.

" + "smithy.api#documentation": "

The maximum write capacity units that your account allows you to provision for a new\n table that you are creating in this Region, including the write capacity units\n provisioned for its global secondary indexes (GSIs).

" } } }, @@ -2554,16 +2831,82 @@ } } }, + "com.amazonaws.dynamodb#DestinationStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "ENABLING" + }, + { + "value": "ACTIVE" + }, + { + "value": "DISABLING" + }, + { + "value": "DISABLED" + }, + { + "value": "ENABLE_FAILED" + } + ] + } + }, + "com.amazonaws.dynamodb#DisableKinesisStreamingDestination": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#KinesisStreamingDestinationInput" + }, + "output": { + "target": "com.amazonaws.dynamodb#KinesisStreamingDestinationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#InvalidEndpointException" + }, + { + "target": "com.amazonaws.dynamodb#LimitExceededException" + }, + { + "target": "com.amazonaws.dynamodb#ResourceInUseException" + }, + { + "target": "com.amazonaws.dynamodb#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

Stops replication from the DynamoDB table to the Kinesis data stream. This is done\n without deleting either of the resources.

" + } + }, "com.amazonaws.dynamodb#Double": { "type": "double", "traits": { "smithy.api#box": {} } }, + "com.amazonaws.dynamodb#DuplicateItemException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.dynamodb#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

\nThere was an attempt to insert an item with the same primary key as an item that already exists in the DynamoDB table.\n

", + "smithy.api#error": "client" + } + }, "com.amazonaws.dynamodb#DynamoDB_20120810": { "type": "service", "version": "2012-08-10", "operations": [ + { + "target": "com.amazonaws.dynamodb#BatchExecuteStatement" + }, { "target": "com.amazonaws.dynamodb#BatchGetItem" }, @@ -2600,12 +2943,18 @@ { "target": "com.amazonaws.dynamodb#DescribeEndpoints" }, + { + "target": "com.amazonaws.dynamodb#DescribeExport" + }, { "target": "com.amazonaws.dynamodb#DescribeGlobalTable" }, { "target": "com.amazonaws.dynamodb#DescribeGlobalTableSettings" }, + { + "target": "com.amazonaws.dynamodb#DescribeKinesisStreamingDestination" + }, { "target": "com.amazonaws.dynamodb#DescribeLimits" }, @@ -2618,6 +2967,21 @@ { "target": "com.amazonaws.dynamodb#DescribeTimeToLive" }, + { + "target": "com.amazonaws.dynamodb#DisableKinesisStreamingDestination" + }, + { + "target": "com.amazonaws.dynamodb#EnableKinesisStreamingDestination" + }, + { + "target": "com.amazonaws.dynamodb#ExecuteStatement" + }, + { + "target": "com.amazonaws.dynamodb#ExecuteTransaction" + }, + { + "target": "com.amazonaws.dynamodb#ExportTableToPointInTime" + }, { "target": "com.amazonaws.dynamodb#GetItem" }, @@ -2627,6 +2991,9 @@ { "target": "com.amazonaws.dynamodb#ListContributorInsights" }, + { + "target": "com.amazonaws.dynamodb#ListExports" + }, { "target": "com.amazonaws.dynamodb#ListGlobalTables" }, @@ -2710,20 +3077,49 @@ } } }, + "com.amazonaws.dynamodb#EnableKinesisStreamingDestination": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#KinesisStreamingDestinationInput" + }, + "output": { + "target": "com.amazonaws.dynamodb#KinesisStreamingDestinationOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#InvalidEndpointException" + }, + { + "target": "com.amazonaws.dynamodb#LimitExceededException" + }, + { + "target": "com.amazonaws.dynamodb#ResourceInUseException" + }, + { + "target": "com.amazonaws.dynamodb#ResourceNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

Starts table data replication to the specified Kinesis data stream at a timestamp chosen\n during the enable workflow. If this operation doesn't return results immediately, use\n DescribeKinesisStreamingDestination to check if streaming to the Kinesis data stream is\n ACTIVE.

" + } + }, "com.amazonaws.dynamodb#Endpoint": { "type": "structure", "members": { - "CachePeriodInMinutes": { - "target": "com.amazonaws.dynamodb#Long", + "Address": { + "target": "com.amazonaws.dynamodb#String", "traits": { - "smithy.api#documentation": "

Endpoint cache time to live (TTL) value.

", + "smithy.api#documentation": "

IP address of the endpoint.

", "smithy.api#required": {} } }, - "Address": { - "target": "com.amazonaws.dynamodb#String", + "CachePeriodInMinutes": { + "target": "com.amazonaws.dynamodb#Long", "traits": { - "smithy.api#documentation": "

IP address of the endpoint.

", + "smithy.api#documentation": "

Endpoint cache time to live (TTL) value.

", "smithy.api#required": {} } } @@ -2747,113 +3143,599 @@ "com.amazonaws.dynamodb#ExceptionName": { "type": "string" }, - "com.amazonaws.dynamodb#ExpectedAttributeMap": { - "type": "map", - "key": { - "target": "com.amazonaws.dynamodb#AttributeName" + "com.amazonaws.dynamodb#ExecuteStatement": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#ExecuteStatementInput" }, - "value": { - "target": "com.amazonaws.dynamodb#ExpectedAttributeValue" + "output": { + "target": "com.amazonaws.dynamodb#ExecuteStatementOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#ConditionalCheckFailedException" + }, + { + "target": "com.amazonaws.dynamodb#DuplicateItemException" + }, + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException" + }, + { + "target": "com.amazonaws.dynamodb#ProvisionedThroughputExceededException" + }, + { + "target": "com.amazonaws.dynamodb#RequestLimitExceeded" + }, + { + "target": "com.amazonaws.dynamodb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.dynamodb#TransactionConflictException" + } + ], + "traits": { + "smithy.api#documentation": "

\nThis operation allows you to perform reads and singleton writes on data stored in DynamoDB, using PartiQL.\n

" } }, - "com.amazonaws.dynamodb#ExpectedAttributeValue": { + "com.amazonaws.dynamodb#ExecuteStatementInput": { "type": "structure", "members": { - "Value": { - "target": "com.amazonaws.dynamodb#AttributeValue", + "Statement": { + "target": "com.amazonaws.dynamodb#PartiQLStatement", "traits": { - "smithy.api#documentation": "

Represents the data for the expected attribute.

\n

Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

\n

For more information, see Data Types in the\n Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

\nThe PartiQL statement representing the operation to run.\n

", + "smithy.api#required": {} } }, - "AttributeValueList": { - "target": "com.amazonaws.dynamodb#AttributeValueList", + "Parameters": { + "target": "com.amazonaws.dynamodb#PreparedStatementParameters", "traits": { - "smithy.api#documentation": "

One or more values to evaluate against the supplied attribute. The number of values in the\n list depends on the ComparisonOperator being used.

\n

For type Number, value comparisons are numeric.

\n

String value comparisons for greater than, equals, or less than are based on ASCII character\n code values. For example, a is greater than A, and a\n is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

\n

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

\n

For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

\nThe parameters for the PartiQL statement, if any.\n

" } }, - "Exists": { - "target": "com.amazonaws.dynamodb#BooleanObject", + "ConsistentRead": { + "target": "com.amazonaws.dynamodb#ConsistentRead", "traits": { - "smithy.api#documentation": "

Causes DynamoDB to evaluate the value before attempting a conditional operation:

\n \n

The default setting for Exists is true. If you supply a Value all\n by itself, DynamoDB assumes the attribute exists: You don't have to set Exists to\n true, because it is implied.

\n

DynamoDB returns a ValidationException if:

\n " + "smithy.api#documentation": "

\nThe consistency of a read operation. If set to true, then a strongly consistent read is used; otherwise, an eventually consistent read is used.\n

" } }, - "ComparisonOperator": { - "target": "com.amazonaws.dynamodb#ComparisonOperator", + "NextToken": { + "target": "com.amazonaws.dynamodb#PartiQLNextToken", "traits": { - "smithy.api#documentation": "

A comparator for evaluating attributes in the AttributeValueList. For example, equals,\n greater than, less than, etc.

\n

The following comparison operators are available:

\n

\n EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN\n

\n

The following are descriptions of each comparison operator.

\n " + "smithy.api#documentation": "

\nSet this value to get remaining results, if NextToken was returned in the statement response.\n

" } } - }, - "traits": { - "smithy.api#documentation": "

Represents a condition to be compared with an attribute value. This condition can be\n used with DeleteItem, PutItem, or UpdateItem\n operations; if the comparison evaluates to true, the operation succeeds; if not, the\n operation fails. You can use ExpectedAttributeValue in one of two different\n ways:

\n \n

\n Value and Exists are incompatible with AttributeValueList and\n ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will\n return a ValidationException exception.

" } }, - "com.amazonaws.dynamodb#ExpressionAttributeNameMap": { - "type": "map", - "key": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameVariable" - }, - "value": { - "target": "com.amazonaws.dynamodb#AttributeName" - } - }, - "com.amazonaws.dynamodb#ExpressionAttributeNameVariable": { - "type": "string" - }, - "com.amazonaws.dynamodb#ExpressionAttributeValueMap": { - "type": "map", - "key": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeValueVariable" - }, - "value": { - "target": "com.amazonaws.dynamodb#AttributeValue" - } - }, - "com.amazonaws.dynamodb#ExpressionAttributeValueVariable": { - "type": "string" - }, - "com.amazonaws.dynamodb#FailureException": { + "com.amazonaws.dynamodb#ExecuteStatementOutput": { "type": "structure", "members": { - "ExceptionDescription": { - "target": "com.amazonaws.dynamodb#ExceptionDescription", + "Items": { + "target": "com.amazonaws.dynamodb#ItemList", "traits": { - "smithy.api#documentation": "

Description of the failure.

" + "smithy.api#documentation": "

\nIf a read operation was used, this property will contain the result of the reade operation; a map of attribute names and their values. For the write operations this value will be empty.\n

" } }, - "ExceptionName": { - "target": "com.amazonaws.dynamodb#ExceptionName", + "NextToken": { + "target": "com.amazonaws.dynamodb#PartiQLNextToken", "traits": { - "smithy.api#documentation": "

Exception name.

" + "smithy.api#documentation": "

\nIf the response of a read request exceeds the response payload limit DynamoDB will set this value in the response. If set, you can use that this value in the subsequent request to get the remaining results.\n

" } } + } + }, + "com.amazonaws.dynamodb#ExecuteTransaction": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#ExecuteTransactionInput" }, + "output": { + "target": "com.amazonaws.dynamodb#ExecuteTransactionOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#IdempotentParameterMismatchException" + }, + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#ProvisionedThroughputExceededException" + }, + { + "target": "com.amazonaws.dynamodb#RequestLimitExceeded" + }, + { + "target": "com.amazonaws.dynamodb#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.dynamodb#TransactionCanceledException" + }, + { + "target": "com.amazonaws.dynamodb#TransactionInProgressException" + } + ], "traits": { - "smithy.api#documentation": "

Represents a failure a contributor insights operation.

" + "smithy.api#documentation": "

\nThis operation allows you to perform transactional reads or writes on data stored in DynamoDB, using PartiQL.\n

" } }, - "com.amazonaws.dynamodb#FilterConditionMap": { + "com.amazonaws.dynamodb#ExecuteTransactionInput": { + "type": "structure", + "members": { + "TransactStatements": { + "target": "com.amazonaws.dynamodb#ParameterizedStatements", + "traits": { + "smithy.api#documentation": "

\nThe list of PartiQL statements representing the transaction to run.\n

", + "smithy.api#required": {} + } + }, + "ClientRequestToken": { + "target": "com.amazonaws.dynamodb#ClientRequestToken", + "traits": { + "smithy.api#documentation": "

\nSet this value to get remaining results, if NextToken was returned in the statement response.\n

", + "smithy.api#idempotencyToken": {} + } + } + } + }, + "com.amazonaws.dynamodb#ExecuteTransactionOutput": { + "type": "structure", + "members": { + "Responses": { + "target": "com.amazonaws.dynamodb#ItemResponseList", + "traits": { + "smithy.api#documentation": "

\nThe response to a PartiQL transaction.\n

" + } + } + } + }, + "com.amazonaws.dynamodb#ExpectedAttributeMap": { "type": "map", "key": { "target": "com.amazonaws.dynamodb#AttributeName" }, "value": { - "target": "com.amazonaws.dynamodb#Condition" + "target": "com.amazonaws.dynamodb#ExpectedAttributeValue" } }, - "com.amazonaws.dynamodb#Get": { + "com.amazonaws.dynamodb#ExpectedAttributeValue": { "type": "structure", "members": { - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "Value": { + "target": "com.amazonaws.dynamodb#AttributeValue", "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in the\n ProjectionExpression parameter.

" + "smithy.api#documentation": "

Represents the data for the expected attribute.

\n

Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.

\n

For more information, see Data Types in the\n Amazon DynamoDB Developer Guide.

" } }, - "ProjectionExpression": { - "target": "com.amazonaws.dynamodb#ProjectionExpression", + "Exists": { + "target": "com.amazonaws.dynamodb#BooleanObject", + "traits": { + "smithy.api#documentation": "

Causes DynamoDB to evaluate the value before attempting a conditional operation:

\n \n

The default setting for Exists is true. If you supply a Value all\n by itself, DynamoDB assumes the attribute exists: You don't have to set Exists to\n true, because it is implied.

\n

DynamoDB returns a ValidationException if:

\n " + } + }, + "ComparisonOperator": { + "target": "com.amazonaws.dynamodb#ComparisonOperator", + "traits": { + "smithy.api#documentation": "

A comparator for evaluating attributes in the AttributeValueList. For example, equals,\n greater than, less than, etc.

\n

The following comparison operators are available:

\n

\n EQ | NE | LE | LT | GE | GT | NOT_NULL | NULL | CONTAINS | NOT_CONTAINS | BEGINS_WITH | IN | BETWEEN\n

\n

The following are descriptions of each comparison operator.

\n " + } + }, + "AttributeValueList": { + "target": "com.amazonaws.dynamodb#AttributeValueList", + "traits": { + "smithy.api#documentation": "

One or more values to evaluate against the supplied attribute. The number of values in the\n list depends on the ComparisonOperator being used.

\n

For type Number, value comparisons are numeric.

\n

String value comparisons for greater than, equals, or less than are based on ASCII character\n code values. For example, a is greater than A, and a\n is greater than B. For a list of code values, see http://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters.

\n

For Binary, DynamoDB treats each byte of the binary data as unsigned when it compares binary values.

\n

For information on specifying data types in JSON, see JSON Data Format in the Amazon DynamoDB Developer Guide.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a condition to be compared with an attribute value. This condition can be\n used with DeleteItem, PutItem, or UpdateItem\n operations; if the comparison evaluates to true, the operation succeeds; if not, the\n operation fails. You can use ExpectedAttributeValue in one of two different\n ways:

\n \n

\n Value and Exists are incompatible with AttributeValueList and\n ComparisonOperator. Note that if you use both sets of parameters at once, DynamoDB will\n return a ValidationException exception.

" + } + }, + "com.amazonaws.dynamodb#ExportArn": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 37, + "max": 1024 + } + } + }, + "com.amazonaws.dynamodb#ExportConflictException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.dynamodb#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

There was a conflict when writing to the specified S3 bucket.

", + "smithy.api#error": "client" + } + }, + "com.amazonaws.dynamodb#ExportDescription": { + "type": "structure", + "members": { + "ExportArn": { + "target": "com.amazonaws.dynamodb#ExportArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the table export.

" + } + }, + "ExportStatus": { + "target": "com.amazonaws.dynamodb#ExportStatus", + "traits": { + "smithy.api#documentation": "

Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.

" + } + }, + "StartTime": { + "target": "com.amazonaws.dynamodb#ExportStartTime", + "traits": { + "smithy.api#documentation": "

The time at which the export task began.

" + } + }, + "EndTime": { + "target": "com.amazonaws.dynamodb#ExportEndTime", + "traits": { + "smithy.api#documentation": "

The time at which the export task completed.

" + } + }, + "ExportManifest": { + "target": "com.amazonaws.dynamodb#ExportManifest", + "traits": { + "smithy.api#documentation": "

The name of the manifest file for the export task.

" + } + }, + "TableArn": { + "target": "com.amazonaws.dynamodb#TableArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the table that was exported.

" + } + }, + "TableId": { + "target": "com.amazonaws.dynamodb#TableId", + "traits": { + "smithy.api#documentation": "

Unique ID of the table that was exported.

" + } + }, + "ExportTime": { + "target": "com.amazonaws.dynamodb#ExportTime", + "traits": { + "smithy.api#documentation": "

Point in time from which table data was exported.

" + } + }, + "ClientToken": { + "target": "com.amazonaws.dynamodb#ClientToken", + "traits": { + "smithy.api#documentation": "

The client token that was provided for the export task. A client token makes calls to\n ExportTableToPointInTimeInput idempotent, meaning that multiple\n identical calls have the same effect as one single call.

" + } + }, + "S3Bucket": { + "target": "com.amazonaws.dynamodb#S3Bucket", + "traits": { + "smithy.api#documentation": "

The name of the Amazon S3 bucket containing the export.

" + } + }, + "S3BucketOwner": { + "target": "com.amazonaws.dynamodb#S3BucketOwner", + "traits": { + "smithy.api#documentation": "

The ID of the AWS account that owns the bucket containing the export.

" + } + }, + "S3Prefix": { + "target": "com.amazonaws.dynamodb#S3Prefix", + "traits": { + "smithy.api#documentation": "

The Amazon S3 bucket prefix used as the file name and path of the exported\n snapshot.

" + } + }, + "S3SseAlgorithm": { + "target": "com.amazonaws.dynamodb#S3SseAlgorithm", + "traits": { + "smithy.api#documentation": "

Type of encryption used on the bucket where export data is stored. Valid values\n for S3SseAlgorithm are:

\n " + } + }, + "S3SseKmsKeyId": { + "target": "com.amazonaws.dynamodb#S3SseKmsKeyId", + "traits": { + "smithy.api#documentation": "

The ID of the AWS KMS managed key used to encrypt the S3 bucket where export data is\n stored (if applicable).

" + } + }, + "FailureCode": { + "target": "com.amazonaws.dynamodb#FailureCode", + "traits": { + "smithy.api#documentation": "

Status code for the result of the failed export.

" + } + }, + "FailureMessage": { + "target": "com.amazonaws.dynamodb#FailureMessage", + "traits": { + "smithy.api#documentation": "

Export failure reason description.

" + } + }, + "ExportFormat": { + "target": "com.amazonaws.dynamodb#ExportFormat", + "traits": { + "smithy.api#documentation": "

The format of the exported data. Valid values for ExportFormat are\n DYNAMODB_JSON or ION.

" + } + }, + "BilledSizeBytes": { + "target": "com.amazonaws.dynamodb#BilledSizeBytes", + "traits": { + "smithy.api#documentation": "

The billable size of the table export.

" + } + }, + "ItemCount": { + "target": "com.amazonaws.dynamodb#ItemCount", + "traits": { + "smithy.api#documentation": "

The number of items exported.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents the properties of the exported table.

" + } + }, + "com.amazonaws.dynamodb#ExportEndTime": { + "type": "timestamp" + }, + "com.amazonaws.dynamodb#ExportFormat": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "DYNAMODB_JSON", + "name": "DYNAMODB_JSON" + }, + { + "value": "ION", + "name": "ION" + } + ] + } + }, + "com.amazonaws.dynamodb#ExportManifest": { + "type": "string" + }, + "com.amazonaws.dynamodb#ExportNextToken": { + "type": "string" + }, + "com.amazonaws.dynamodb#ExportNotFoundException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.dynamodb#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The specified export was not found.

", + "smithy.api#error": "client" + } + }, + "com.amazonaws.dynamodb#ExportStartTime": { + "type": "timestamp" + }, + "com.amazonaws.dynamodb#ExportStatus": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "IN_PROGRESS", + "name": "IN_PROGRESS" + }, + { + "value": "COMPLETED", + "name": "COMPLETED" + }, + { + "value": "FAILED", + "name": "FAILED" + } + ] + } + }, + "com.amazonaws.dynamodb#ExportSummaries": { + "type": "list", + "member": { + "target": "com.amazonaws.dynamodb#ExportSummary" + } + }, + "com.amazonaws.dynamodb#ExportSummary": { + "type": "structure", + "members": { + "ExportArn": { + "target": "com.amazonaws.dynamodb#ExportArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the export.

" + } + }, + "ExportStatus": { + "target": "com.amazonaws.dynamodb#ExportStatus", + "traits": { + "smithy.api#documentation": "

Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Summary information about an export task.

" + } + }, + "com.amazonaws.dynamodb#ExportTableToPointInTime": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#ExportTableToPointInTimeInput" + }, + "output": { + "target": "com.amazonaws.dynamodb#ExportTableToPointInTimeOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#ExportConflictException" + }, + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#InvalidExportTimeException" + }, + { + "target": "com.amazonaws.dynamodb#LimitExceededException" + }, + { + "target": "com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException" + }, + { + "target": "com.amazonaws.dynamodb#TableNotFoundException" + } + ], + "traits": { + "smithy.api#documentation": "

Exports table data to an S3 bucket. The table must have point in time recovery\n enabled, and you can export data from any time within the point in time recovery\n window.

" + } + }, + "com.amazonaws.dynamodb#ExportTableToPointInTimeInput": { + "type": "structure", + "members": { + "TableArn": { + "target": "com.amazonaws.dynamodb#TableArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) associated with the table to export.

", + "smithy.api#required": {} + } + }, + "ExportTime": { + "target": "com.amazonaws.dynamodb#ExportTime", + "traits": { + "smithy.api#documentation": "

Time in the past from which to export table data. The table export will be a snapshot\n of the table's state at this point in time.

" + } + }, + "ClientToken": { + "target": "com.amazonaws.dynamodb#ClientToken", + "traits": { + "smithy.api#documentation": "

Providing a ClientToken makes the call to\n ExportTableToPointInTimeInput idempotent, meaning that multiple\n identical calls have the same effect as one single call.

\n

A client token is valid for 8 hours after the first request that uses it is\n completed. After 8 hours, any request with the same client token is treated as a new\n request. Do not resubmit the same request with the same client token for more than 8\n hours, or the result might not be idempotent.

\n

If you submit a request with the same client token but a change in other parameters\n within the 8-hour idempotency window, DynamoDB returns an\n IdempotentParameterMismatch exception.

", + "smithy.api#idempotencyToken": {} + } + }, + "S3Bucket": { + "target": "com.amazonaws.dynamodb#S3Bucket", + "traits": { + "smithy.api#documentation": "

The name of the Amazon S3 bucket to export the snapshot to.

", + "smithy.api#required": {} + } + }, + "S3BucketOwner": { + "target": "com.amazonaws.dynamodb#S3BucketOwner", + "traits": { + "smithy.api#documentation": "

The ID of the AWS account that owns the bucket the export will be stored in.

" + } + }, + "S3Prefix": { + "target": "com.amazonaws.dynamodb#S3Prefix", + "traits": { + "smithy.api#documentation": "

The Amazon S3 bucket prefix to use as the file name and path of the exported\n snapshot.

" + } + }, + "S3SseAlgorithm": { + "target": "com.amazonaws.dynamodb#S3SseAlgorithm", + "traits": { + "smithy.api#documentation": "

Type of encryption used on the bucket where export data will be stored. Valid values\n for S3SseAlgorithm are:

\n " + } + }, + "S3SseKmsKeyId": { + "target": "com.amazonaws.dynamodb#S3SseKmsKeyId", + "traits": { + "smithy.api#documentation": "

The ID of the AWS KMS managed key used to encrypt the S3 bucket where export data will\n be stored (if applicable).

" + } + }, + "ExportFormat": { + "target": "com.amazonaws.dynamodb#ExportFormat", + "traits": { + "smithy.api#documentation": "

The format for the exported data. Valid values for ExportFormat are\n DYNAMODB_JSON or ION.

" + } + } + } + }, + "com.amazonaws.dynamodb#ExportTableToPointInTimeOutput": { + "type": "structure", + "members": { + "ExportDescription": { + "target": "com.amazonaws.dynamodb#ExportDescription", + "traits": { + "smithy.api#documentation": "

Contains a description of the table export.

" + } + } + } + }, + "com.amazonaws.dynamodb#ExportTime": { + "type": "timestamp" + }, + "com.amazonaws.dynamodb#ExpressionAttributeNameMap": { + "type": "map", + "key": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameVariable" + }, + "value": { + "target": "com.amazonaws.dynamodb#AttributeName" + } + }, + "com.amazonaws.dynamodb#ExpressionAttributeNameVariable": { + "type": "string" + }, + "com.amazonaws.dynamodb#ExpressionAttributeValueMap": { + "type": "map", + "key": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeValueVariable" + }, + "value": { + "target": "com.amazonaws.dynamodb#AttributeValue" + } + }, + "com.amazonaws.dynamodb#ExpressionAttributeValueVariable": { + "type": "string" + }, + "com.amazonaws.dynamodb#FailureCode": { + "type": "string" + }, + "com.amazonaws.dynamodb#FailureException": { + "type": "structure", + "members": { + "ExceptionName": { + "target": "com.amazonaws.dynamodb#ExceptionName", + "traits": { + "smithy.api#documentation": "

Exception name.

" + } + }, + "ExceptionDescription": { + "target": "com.amazonaws.dynamodb#ExceptionDescription", + "traits": { + "smithy.api#documentation": "

Description of the failure.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Represents a failure a contributor insights operation.

" + } + }, + "com.amazonaws.dynamodb#FailureMessage": { + "type": "string" + }, + "com.amazonaws.dynamodb#FilterConditionMap": { + "type": "map", + "key": { + "target": "com.amazonaws.dynamodb#AttributeName" + }, + "value": { + "target": "com.amazonaws.dynamodb#Condition" + } + }, + "com.amazonaws.dynamodb#Get": { + "type": "structure", + "members": { + "Key": { + "target": "com.amazonaws.dynamodb#Key", "traits": { - "smithy.api#documentation": "

A string that identifies one or more attributes of the specified item\n to retrieve from the table. The attributes in the expression must be\n separated by commas. If no attribute names are specified, then all\n attributes of the specified item are returned. If any of the requested\n attributes are not found, they do not appear in the result.

" + "smithy.api#documentation": "

A map of attribute names to AttributeValue objects that\n specifies the primary key of the item to retrieve.

", + "smithy.api#required": {} } }, "TableName": { @@ -2863,11 +3745,16 @@ "smithy.api#required": {} } }, - "Key": { - "target": "com.amazonaws.dynamodb#Key", + "ProjectionExpression": { + "target": "com.amazonaws.dynamodb#ProjectionExpression", "traits": { - "smithy.api#documentation": "

A map of attribute names to AttributeValue objects that\n specifies the primary key of the item to retrieve.

", - "smithy.api#required": {} + "smithy.api#documentation": "

A string that identifies one or more attributes of the specified item\n to retrieve from the table. The attributes in the expression must be\n separated by commas. If no attribute names are specified, then all\n attributes of the specified item are returned. If any of the requested\n attributes are not found, they do not appear in the result.

" + } + }, + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "traits": { + "smithy.api#documentation": "

One or more substitution tokens for attribute names in the\n ProjectionExpression parameter.

" } } }, @@ -2907,12 +3794,6 @@ "com.amazonaws.dynamodb#GetItemInput": { "type": "structure", "members": { - "ConsistentRead": { - "target": "com.amazonaws.dynamodb#ConsistentRead", - "traits": { - "smithy.api#documentation": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

" - } - }, "TableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { @@ -2920,13 +3801,11 @@ "smithy.api#required": {} } }, - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "Key": { + "target": "com.amazonaws.dynamodb#Key", "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

A map of attribute names to AttributeValue objects, representing the primary key of\n the item to retrieve.

\n

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", + "smithy.api#required": {} } }, "AttributesToGet": { @@ -2935,18 +3814,26 @@ "smithy.api#documentation": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see\n AttributesToGet in the Amazon DynamoDB Developer Guide.

" } }, - "Key": { - "target": "com.amazonaws.dynamodb#Key", + "ConsistentRead": { + "target": "com.amazonaws.dynamodb#ConsistentRead", "traits": { - "smithy.api#documentation": "

A map of attribute names to AttributeValue objects, representing the primary key of\n the item to retrieve.

\n

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

" } }, + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" + }, "ProjectionExpression": { "target": "com.amazonaws.dynamodb#ProjectionExpression", "traits": { "smithy.api#documentation": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

\n

If no attribute names are specified, then all attributes are returned. If any of the\n requested attributes are not found, they do not appear in the result.

\n

For more information, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" } + }, + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "traits": { + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + } } }, "traits": { @@ -2976,19 +3863,6 @@ "com.amazonaws.dynamodb#GlobalSecondaryIndex": { "type": "structure", "members": { - "Projection": { - "target": "com.amazonaws.dynamodb#Projection", - "traits": { - "smithy.api#documentation": "

Represents attributes that are copied (projected) from the table into the global\n secondary index. These are in addition to the primary key attributes and index key\n attributes, which are automatically projected.

", - "smithy.api#required": {} - } - }, - "ProvisionedThroughput": { - "target": "com.amazonaws.dynamodb#ProvisionedThroughput", - "traits": { - "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

" - } - }, "IndexName": { "target": "com.amazonaws.dynamodb#IndexName", "traits": { @@ -3002,6 +3876,19 @@ "smithy.api#documentation": "

The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
", "smithy.api#required": {} } + }, + "Projection": { + "target": "com.amazonaws.dynamodb#Projection", + "traits": { + "smithy.api#documentation": "

Represents attributes that are copied (projected) from the table into the global\n secondary index. These are in addition to the primary key attributes and index key\n attributes, which are automatically projected.

", + "smithy.api#required": {} + } + }, + "ProvisionedThroughput": { + "target": "com.amazonaws.dynamodb#ProvisionedThroughput", + "traits": { + "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

" + } } }, "traits": { @@ -3039,16 +3926,16 @@ "com.amazonaws.dynamodb#GlobalSecondaryIndexDescription": { "type": "structure", "members": { - "IndexSizeBytes": { - "target": "com.amazonaws.dynamodb#Long", + "IndexName": { + "target": "com.amazonaws.dynamodb#IndexName", "traits": { - "smithy.api#documentation": "

The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" + "smithy.api#documentation": "

The name of the global secondary index.

" } }, - "ProvisionedThroughput": { - "target": "com.amazonaws.dynamodb#ProvisionedThroughputDescription", + "KeySchema": { + "target": "com.amazonaws.dynamodb#KeySchema", "traits": { - "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
" } }, "Projection": { @@ -3057,41 +3944,41 @@ "smithy.api#documentation": "

Represents attributes that are copied (projected) from the table into the global\n secondary index. These are in addition to the primary key attributes and index key\n attributes, which are automatically projected.

" } }, - "IndexArn": { - "target": "com.amazonaws.dynamodb#String", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

" - } - }, - "KeySchema": { - "target": "com.amazonaws.dynamodb#KeySchema", - "traits": { - "smithy.api#documentation": "

The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
" - } - }, "IndexStatus": { "target": "com.amazonaws.dynamodb#IndexStatus", "traits": { "smithy.api#documentation": "

The current state of the global secondary index:

\n " } }, - "IndexName": { - "target": "com.amazonaws.dynamodb#IndexName", - "traits": { - "smithy.api#documentation": "

The name of the global secondary index.

" - } - }, "Backfilling": { "target": "com.amazonaws.dynamodb#Backfilling", "traits": { "smithy.api#documentation": "

Indicates whether the index is currently backfilling. Backfilling is the process of reading items from \n the table and determining whether they can be added to the index. (Not all items will qualify: For example, a partition key \n cannot have any duplicate values.) If an item can be added to the index, DynamoDB will do so. After all items have been processed, \n the backfilling operation is complete and Backfilling is false.

\n

You can delete an index that is being created during the Backfilling phase\n when IndexStatus is set to CREATING and Backfilling is true. You\n can't delete the index that is being created when IndexStatus is set to\n CREATING and Backfilling is false.

\n \n

For indexes that were created during a CreateTable operation, the Backfilling attribute does not appear in the DescribeTable output.

\n
" } }, + "ProvisionedThroughput": { + "target": "com.amazonaws.dynamodb#ProvisionedThroughputDescription", + "traits": { + "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

" + } + }, + "IndexSizeBytes": { + "target": "com.amazonaws.dynamodb#Long", + "traits": { + "smithy.api#documentation": "

The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" + } + }, "ItemCount": { "target": "com.amazonaws.dynamodb#Long", "traits": { "smithy.api#documentation": "

The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" } + }, + "IndexArn": { + "target": "com.amazonaws.dynamodb#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

" + } } }, "traits": { @@ -3151,17 +4038,17 @@ "smithy.api#documentation": "

The name of an existing global secondary index, along with new provisioned throughput settings to be applied to that index.

" } }, - "Delete": { - "target": "com.amazonaws.dynamodb#DeleteGlobalSecondaryIndexAction", - "traits": { - "smithy.api#documentation": "

The name of an existing global secondary index to be removed.

" - } - }, "Create": { "target": "com.amazonaws.dynamodb#CreateGlobalSecondaryIndexAction", "traits": { "smithy.api#documentation": "

The parameters required for creating a global secondary index on an existing table:

\n " } + }, + "Delete": { + "target": "com.amazonaws.dynamodb#DeleteGlobalSecondaryIndexAction", + "traits": { + "smithy.api#documentation": "

The name of an existing global secondary index to be removed.

" + } } }, "traits": { @@ -3218,22 +4105,16 @@ "com.amazonaws.dynamodb#GlobalTableDescription": { "type": "structure", "members": { - "GlobalTableArn": { - "target": "com.amazonaws.dynamodb#GlobalTableArnString", - "traits": { - "smithy.api#documentation": "

The unique identifier of the global table.

" - } - }, "ReplicationGroup": { "target": "com.amazonaws.dynamodb#ReplicaDescriptionList", "traits": { "smithy.api#documentation": "

The Regions where the global table has replicas.

" } }, - "GlobalTableName": { - "target": "com.amazonaws.dynamodb#TableName", + "GlobalTableArn": { + "target": "com.amazonaws.dynamodb#GlobalTableArnString", "traits": { - "smithy.api#documentation": "

The global table name.

" + "smithy.api#documentation": "

The unique identifier of the global table.

" } }, "CreationDateTime": { @@ -3247,6 +4128,12 @@ "traits": { "smithy.api#documentation": "

The current state of the global table:

\n " } + }, + "GlobalTableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The global table name.

" + } } }, "traits": { @@ -3256,12 +4143,6 @@ "com.amazonaws.dynamodb#GlobalTableGlobalSecondaryIndexSettingsUpdate": { "type": "structure", "members": { - "ProvisionedWriteCapacityUnits": { - "target": "com.amazonaws.dynamodb#PositiveLongObject", - "traits": { - "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.\n

" - } - }, "IndexName": { "target": "com.amazonaws.dynamodb#IndexName", "traits": { @@ -3269,6 +4150,12 @@ "smithy.api#required": {} } }, + "ProvisionedWriteCapacityUnits": { + "target": "com.amazonaws.dynamodb#PositiveLongObject", + "traits": { + "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.\n

" + } + }, "ProvisionedWriteCapacityAutoScalingSettingsUpdate": { "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate", "traits": { @@ -3418,6 +4305,18 @@ "smithy.api#httpError": 421 } }, + "com.amazonaws.dynamodb#InvalidExportTimeException": { + "type": "structure", + "members": { + "message": { + "target": "com.amazonaws.dynamodb#ErrorMessage" + } + }, + "traits": { + "smithy.api#documentation": "

The specified ExportTime is outside of the point in time recovery\n window.

", + "smithy.api#error": "client" + } + }, "com.amazonaws.dynamodb#InvalidRestoreTimeException": { "type": "structure", "members": { @@ -3605,17 +4504,17 @@ "com.amazonaws.dynamodb#KeySchemaElement": { "type": "structure", "members": { - "KeyType": { - "target": "com.amazonaws.dynamodb#KeyType", + "AttributeName": { + "target": "com.amazonaws.dynamodb#KeySchemaAttributeName", "traits": { - "smithy.api#documentation": "

The role that this key attribute will assume:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
", + "smithy.api#documentation": "

The name of a key attribute.

", "smithy.api#required": {} } }, - "AttributeName": { - "target": "com.amazonaws.dynamodb#KeySchemaAttributeName", + "KeyType": { + "target": "com.amazonaws.dynamodb#KeyType", "traits": { - "smithy.api#documentation": "

The name of a key attribute.

", + "smithy.api#documentation": "

The role that this key attribute will assume:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
", "smithy.api#required": {} } } @@ -3647,12 +4546,6 @@ "smithy.api#required": {} } }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", - "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" - } - }, "AttributesToGet": { "target": "com.amazonaws.dynamodb#AttributeNameList", "traits": { @@ -3670,12 +4563,92 @@ "traits": { "smithy.api#documentation": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars,\n sets, or elements of a JSON document. The attributes in the ProjectionExpression must be separated by\n commas.

\n

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

\n

For more information, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" } + }, + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "traits": { + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" + } } }, "traits": { "smithy.api#documentation": "

Represents a set of primary keys and, for each key, the attributes to retrieve from the table.

\n

For each primary key, you must provide all of the key attributes. For example, with a\n simple primary key, you only need to provide the partition key. For a composite\n primary key, you must provide both the partition key and the sort key.

" } }, + "com.amazonaws.dynamodb#KinesisDataStreamDestination": { + "type": "structure", + "members": { + "StreamArn": { + "target": "com.amazonaws.dynamodb#StreamArn", + "traits": { + "smithy.api#documentation": "

The ARN for a specific Kinesis data stream.

" + } + }, + "DestinationStatus": { + "target": "com.amazonaws.dynamodb#DestinationStatus", + "traits": { + "smithy.api#documentation": "

The current status of replication.

" + } + }, + "DestinationStatusDescription": { + "target": "com.amazonaws.dynamodb#String", + "traits": { + "smithy.api#documentation": "

The human-readable string that corresponds to the replica status.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes a Kinesis data stream destination.

" + } + }, + "com.amazonaws.dynamodb#KinesisDataStreamDestinations": { + "type": "list", + "member": { + "target": "com.amazonaws.dynamodb#KinesisDataStreamDestination" + } + }, + "com.amazonaws.dynamodb#KinesisStreamingDestinationInput": { + "type": "structure", + "members": { + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The name of the DynamoDB table.

", + "smithy.api#required": {} + } + }, + "StreamArn": { + "target": "com.amazonaws.dynamodb#StreamArn", + "traits": { + "smithy.api#documentation": "

The ARN for a Kinesis data stream.

", + "smithy.api#required": {} + } + } + } + }, + "com.amazonaws.dynamodb#KinesisStreamingDestinationOutput": { + "type": "structure", + "members": { + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The name of the table being modified.

" + } + }, + "StreamArn": { + "target": "com.amazonaws.dynamodb#StreamArn", + "traits": { + "smithy.api#documentation": "

The ARN for the specific Kinesis data stream.

" + } + }, + "DestinationStatus": { + "target": "com.amazonaws.dynamodb#DestinationStatus", + "traits": { + "smithy.api#documentation": "

The current status of the replication.

" + } + } + } + }, "com.amazonaws.dynamodb#LastUpdateDateTime": { "type": "timestamp" }, @@ -3723,28 +4696,22 @@ "com.amazonaws.dynamodb#ListBackupsInput": { "type": "structure", "members": { - "BackupType": { - "target": "com.amazonaws.dynamodb#BackupTypeFilter", - "traits": { - "smithy.api#documentation": "

The backups from the table specified by BackupType are listed.

\n

Where BackupType can be:

\n " - } - }, - "TimeRangeLowerBound": { - "target": "com.amazonaws.dynamodb#TimeRangeLowerBound", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Only backups created after this time are listed. TimeRangeLowerBound is inclusive.

" + "smithy.api#documentation": "

The backups from the table specified by TableName are listed.

" } }, - "ExclusiveStartBackupArn": { - "target": "com.amazonaws.dynamodb#BackupArn", + "Limit": { + "target": "com.amazonaws.dynamodb#BackupsInputLimit", "traits": { - "smithy.api#documentation": "

\n LastEvaluatedBackupArn is the Amazon Resource Name (ARN) of the backup last\n evaluated when the current page of results was returned, inclusive of the current page\n of results. This value may be specified as the ExclusiveStartBackupArn of a\n new ListBackups operation in order to fetch the next page of results.

" + "smithy.api#documentation": "

Maximum number of backups to return at once.

" } }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", + "TimeRangeLowerBound": { + "target": "com.amazonaws.dynamodb#TimeRangeLowerBound", "traits": { - "smithy.api#documentation": "

The backups from the table specified by TableName are listed.

" + "smithy.api#documentation": "

Only backups created after this time are listed. TimeRangeLowerBound is inclusive.

" } }, "TimeRangeUpperBound": { @@ -3753,10 +4720,16 @@ "smithy.api#documentation": "

Only backups created before this time are listed. TimeRangeUpperBound is exclusive.

" } }, - "Limit": { - "target": "com.amazonaws.dynamodb#BackupsInputLimit", + "ExclusiveStartBackupArn": { + "target": "com.amazonaws.dynamodb#BackupArn", "traits": { - "smithy.api#documentation": "

Maximum number of backups to return at once.

" + "smithy.api#documentation": "

\n LastEvaluatedBackupArn is the Amazon Resource Name (ARN) of the backup last\n evaluated when the current page of results was returned, inclusive of the current page\n of results. This value may be specified as the ExclusiveStartBackupArn of a\n new ListBackups operation in order to fetch the next page of results.

" + } + }, + "BackupType": { + "target": "com.amazonaws.dynamodb#BackupTypeFilter", + "traits": { + "smithy.api#documentation": "

The backups from the table specified by BackupType are listed.

\n

Where BackupType can be:

\n " } } } @@ -3764,17 +4737,17 @@ "com.amazonaws.dynamodb#ListBackupsOutput": { "type": "structure", "members": { - "LastEvaluatedBackupArn": { - "target": "com.amazonaws.dynamodb#BackupArn", - "traits": { - "smithy.api#documentation": "

\n The ARN of the backup last evaluated when the current page of results was returned,\n inclusive of the current page of results. This value may be specified as the\n ExclusiveStartBackupArn of a new ListBackups operation in order to fetch the next page of results.\n

\n

\n If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are no\n more results to be retrieved.\n

\n

If LastEvaluatedBackupArn is not empty, this may or may not indicate that\n there is more data to be returned. All results are guaranteed to have been returned if\n and only if no value for LastEvaluatedBackupArn is returned.

" - } - }, "BackupSummaries": { "target": "com.amazonaws.dynamodb#BackupSummaries", "traits": { "smithy.api#documentation": "

List of BackupSummary objects.

" } + }, + "LastEvaluatedBackupArn": { + "target": "com.amazonaws.dynamodb#BackupArn", + "traits": { + "smithy.api#documentation": "

\n The ARN of the backup last evaluated when the current page of results was returned,\n inclusive of the current page of results. This value may be specified as the\n ExclusiveStartBackupArn of a new ListBackups operation in order to fetch the next page of results.\n

\n

\n If LastEvaluatedBackupArn is empty, then the last page of results has been processed and there are no\n more results to be retrieved.\n

\n

If LastEvaluatedBackupArn is not empty, this may or may not indicate that\n there is more data to be returned. All results are guaranteed to have been returned if\n and only if no value for LastEvaluatedBackupArn is returned.

" + } } } }, @@ -3837,16 +4810,91 @@ "com.amazonaws.dynamodb#ListContributorInsightsOutput": { "type": "structure", "members": { + "ContributorInsightsSummaries": { + "target": "com.amazonaws.dynamodb#ContributorInsightsSummaries", + "traits": { + "smithy.api#documentation": "

A list of ContributorInsightsSummary.

" + } + }, "NextToken": { "target": "com.amazonaws.dynamodb#NextTokenString", "traits": { "smithy.api#documentation": "

A token to go to the next page if there is one.

" } + } + } + }, + "com.amazonaws.dynamodb#ListExports": { + "type": "operation", + "input": { + "target": "com.amazonaws.dynamodb#ListExportsInput" + }, + "output": { + "target": "com.amazonaws.dynamodb#ListExportsOutput" + }, + "errors": [ + { + "target": "com.amazonaws.dynamodb#InternalServerError" + }, + { + "target": "com.amazonaws.dynamodb#LimitExceededException" + } + ], + "traits": { + "smithy.api#documentation": "

Lists completed exports within the past 90 days.

", + "smithy.api#paginated": { + "inputToken": "NextToken", + "outputToken": "NextToken", + "pageSize": "MaxResults" + } + } + }, + "com.amazonaws.dynamodb#ListExportsInput": { + "type": "structure", + "members": { + "TableArn": { + "target": "com.amazonaws.dynamodb#TableArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) associated with the exported table.

" + } }, - "ContributorInsightsSummaries": { - "target": "com.amazonaws.dynamodb#ContributorInsightsSummaries", + "MaxResults": { + "target": "com.amazonaws.dynamodb#ListExportsMaxLimit", "traits": { - "smithy.api#documentation": "

A list of ContributorInsightsSummary.

" + "smithy.api#documentation": "

Maximum number of results to return per page.

" + } + }, + "NextToken": { + "target": "com.amazonaws.dynamodb#ExportNextToken", + "traits": { + "smithy.api#documentation": "

An optional string that, if supplied, must be copied from the output of a previous\n call to ListExports. When provided in this manner, the API fetches the next\n page of results.

" + } + } + } + }, + "com.amazonaws.dynamodb#ListExportsMaxLimit": { + "type": "integer", + "traits": { + "smithy.api#box": {}, + "smithy.api#range": { + "min": 1, + "max": 25 + } + } + }, + "com.amazonaws.dynamodb#ListExportsOutput": { + "type": "structure", + "members": { + "ExportSummaries": { + "target": "com.amazonaws.dynamodb#ExportSummaries", + "traits": { + "smithy.api#documentation": "

A list of ExportSummary objects.

" + } + }, + "NextToken": { + "target": "com.amazonaws.dynamodb#ExportNextToken", + "traits": { + "smithy.api#documentation": "

If this value is returned, there are additional results to be displayed. To retrieve\n them, call ListExports again, with NextToken set to this\n value.

" } } } @@ -3874,10 +4922,10 @@ "com.amazonaws.dynamodb#ListGlobalTablesInput": { "type": "structure", "members": { - "RegionName": { - "target": "com.amazonaws.dynamodb#RegionName", + "ExclusiveStartGlobalTableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Lists the global tables in a specific Region.

" + "smithy.api#documentation": "

The first global table name that this operation will evaluate.

" } }, "Limit": { @@ -3886,10 +4934,10 @@ "smithy.api#documentation": "

The maximum number of table names to return, if the parameter is not specified DynamoDB defaults to 100.

\n

If the number of global tables DynamoDB finds reaches this limit, it stops the operation and returns the table names collected up to that point,\n with a table name in the LastEvaluatedGlobalTableName to apply in a subsequent operation to the ExclusiveStartGlobalTableName parameter.

" } }, - "ExclusiveStartGlobalTableName": { - "target": "com.amazonaws.dynamodb#TableName", + "RegionName": { + "target": "com.amazonaws.dynamodb#RegionName", "traits": { - "smithy.api#documentation": "

The first global table name that this operation will evaluate.

" + "smithy.api#documentation": "

Lists the global tables in a specific Region.

" } } } @@ -3940,17 +4988,17 @@ "com.amazonaws.dynamodb#ListTablesInput": { "type": "structure", "members": { - "Limit": { - "target": "com.amazonaws.dynamodb#ListTablesInputLimit", - "traits": { - "smithy.api#documentation": "

A maximum number of table names to return. If this parameter is not specified, the limit is 100.

" - } - }, "ExclusiveStartTableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { "smithy.api#documentation": "

The first table name that this operation will evaluate. Use the value that was returned for\n LastEvaluatedTableName in a previous operation, so that you can obtain the next page\n of results.

" } + }, + "Limit": { + "target": "com.amazonaws.dynamodb#ListTablesInputLimit", + "traits": { + "smithy.api#documentation": "

A maximum number of table names to return. If this parameter is not specified, the limit is 100.

" + } } }, "traits": { @@ -3970,17 +5018,17 @@ "com.amazonaws.dynamodb#ListTablesOutput": { "type": "structure", "members": { - "LastEvaluatedTableName": { - "target": "com.amazonaws.dynamodb#TableName", - "traits": { - "smithy.api#documentation": "

The name of the last table in the current page of results. Use this value as the\n ExclusiveStartTableName in a new request to obtain the next page of results, until\n all the table names are returned.

\n

If you do not receive a LastEvaluatedTableName value in the response, this means that\n there are no more table names to be retrieved.

" - } - }, "TableNames": { "target": "com.amazonaws.dynamodb#TableNameList", "traits": { "smithy.api#documentation": "

The names of the tables associated with the current account at the current endpoint. The maximum size of this array is 100.

\n

If LastEvaluatedTableName also appears in the output, you can use this value as the\n ExclusiveStartTableName parameter in a subsequent ListTables request and\n obtain the next page of results.

" } + }, + "LastEvaluatedTableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The name of the last table in the current page of results. Use this value as the\n ExclusiveStartTableName in a new request to obtain the next page of results, until\n all the table names are returned.

\n

If you do not receive a LastEvaluatedTableName value in the response, this means that\n there are no more table names to be retrieved.

" + } } }, "traits": { @@ -4031,17 +5079,17 @@ "com.amazonaws.dynamodb#ListTagsOfResourceOutput": { "type": "structure", "members": { - "NextToken": { - "target": "com.amazonaws.dynamodb#NextTokenString", - "traits": { - "smithy.api#documentation": "

If this value is returned, there are additional results to be displayed. To retrieve them,\n call ListTagsOfResource again, with NextToken set to this value.

" - } - }, "Tags": { "target": "com.amazonaws.dynamodb#TagList", "traits": { "smithy.api#documentation": "

The tags currently associated with the Amazon DynamoDB resource.

" } + }, + "NextToken": { + "target": "com.amazonaws.dynamodb#NextTokenString", + "traits": { + "smithy.api#documentation": "

If this value is returned, there are additional results to be displayed. To retrieve them,\n call ListTagsOfResource again, with NextToken set to this value.

" + } } } }, @@ -4083,16 +5131,10 @@ "smithy.api#documentation": "

Represents the name of the local secondary index.

" } }, - "IndexArn": { - "target": "com.amazonaws.dynamodb#String", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

" - } - }, - "IndexSizeBytes": { - "target": "com.amazonaws.dynamodb#Long", + "KeySchema": { + "target": "com.amazonaws.dynamodb#KeySchema", "traits": { - "smithy.api#documentation": "

The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" + "smithy.api#documentation": "

The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
" } }, "Projection": { @@ -4101,10 +5143,10 @@ "smithy.api#documentation": "

Represents attributes that are copied (projected) from the table into the global\n secondary index. These are in addition to the primary key attributes and index key\n attributes, which are automatically projected.

" } }, - "KeySchema": { - "target": "com.amazonaws.dynamodb#KeySchema", + "IndexSizeBytes": { + "target": "com.amazonaws.dynamodb#Long", "traits": { - "smithy.api#documentation": "

The complete key schema for the local secondary index, consisting of one or more pairs of attribute names and key types:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
" + "smithy.api#documentation": "

The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" } }, "ItemCount": { @@ -4112,6 +5154,12 @@ "traits": { "smithy.api#documentation": "

The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" } + }, + "IndexArn": { + "target": "com.amazonaws.dynamodb#String", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the index.

" + } } }, "traits": { @@ -4127,18 +5175,18 @@ "com.amazonaws.dynamodb#LocalSecondaryIndexInfo": { "type": "structure", "members": { - "KeySchema": { - "target": "com.amazonaws.dynamodb#KeySchema", - "traits": { - "smithy.api#documentation": "

The complete key schema for a local secondary index, which consists of one or more pairs of attribute names and key types:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
" - } - }, "IndexName": { "target": "com.amazonaws.dynamodb#IndexName", "traits": { "smithy.api#documentation": "

Represents the name of the local secondary index.

" } }, + "KeySchema": { + "target": "com.amazonaws.dynamodb#KeySchema", + "traits": { + "smithy.api#documentation": "

The complete key schema for a local secondary index, which consists of one or more pairs of attribute names and key types:

\n \n \n

The partition key of an item is also known as its hash attribute. The\n term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to\n evenly distribute data items across partitions, based on their partition key values.

\n

The sort key of an item is also known as its range attribute.\n The term \"range attribute\" derives from the way DynamoDB stores items with the same\n partition key physically close together, in sorted order by the sort key value.

\n
" + } + }, "Projection": { "target": "com.amazonaws.dynamodb#Projection", "traits": { @@ -4222,9 +5270,84 @@ "target": "com.amazonaws.dynamodb#NumberAttributeValue" } }, + "com.amazonaws.dynamodb#ParameterizedStatement": { + "type": "structure", + "members": { + "Statement": { + "target": "com.amazonaws.dynamodb#PartiQLStatement", + "traits": { + "smithy.api#documentation": "

\nA PartiQL statment that uses parameters.\n

", + "smithy.api#required": {} + } + }, + "Parameters": { + "target": "com.amazonaws.dynamodb#PreparedStatementParameters", + "traits": { + "smithy.api#documentation": "

\nThe parameter values.\n

" + } + } + }, + "traits": { + "smithy.api#documentation": "

\nRepresents a PartiQL statment that uses parameters.\n

" + } + }, + "com.amazonaws.dynamodb#ParameterizedStatements": { + "type": "list", + "member": { + "target": "com.amazonaws.dynamodb#ParameterizedStatement" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 25 + } + } + }, + "com.amazonaws.dynamodb#PartiQLBatchRequest": { + "type": "list", + "member": { + "target": "com.amazonaws.dynamodb#BatchStatementRequest" + }, + "traits": { + "smithy.api#length": { + "min": 1, + "max": 25 + } + } + }, + "com.amazonaws.dynamodb#PartiQLBatchResponse": { + "type": "list", + "member": { + "target": "com.amazonaws.dynamodb#BatchStatementResponse" + } + }, + "com.amazonaws.dynamodb#PartiQLNextToken": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 32768 + } + } + }, + "com.amazonaws.dynamodb#PartiQLStatement": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 8192 + } + } + }, "com.amazonaws.dynamodb#PointInTimeRecoveryDescription": { "type": "structure", "members": { + "PointInTimeRecoveryStatus": { + "target": "com.amazonaws.dynamodb#PointInTimeRecoveryStatus", + "traits": { + "smithy.api#documentation": "

The current state of point in time recovery:

\n " + } + }, "EarliestRestorableDateTime": { "target": "com.amazonaws.dynamodb#Date", "traits": { @@ -4236,12 +5359,6 @@ "traits": { "smithy.api#documentation": "

\n LatestRestorableDateTime is typically 5 minutes before the current time.\n

" } - }, - "PointInTimeRecoveryStatus": { - "target": "com.amazonaws.dynamodb#PointInTimeRecoveryStatus", - "traits": { - "smithy.api#documentation": "

The current state of point in time recovery:

\n " - } } }, "traits": { @@ -4306,6 +5423,17 @@ } } }, + "com.amazonaws.dynamodb#PreparedStatementParameters": { + "type": "list", + "member": { + "target": "com.amazonaws.dynamodb#AttributeValue" + }, + "traits": { + "smithy.api#length": { + "min": 1 + } + } + }, "com.amazonaws.dynamodb#Projection": { "type": "structure", "members": { @@ -4370,16 +5498,16 @@ "com.amazonaws.dynamodb#ProvisionedThroughputDescription": { "type": "structure", "members": { - "WriteCapacityUnits": { - "target": "com.amazonaws.dynamodb#NonNegativeLongObject", + "LastIncreaseDateTime": { + "target": "com.amazonaws.dynamodb#Date", "traits": { - "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a\n ThrottlingException.

" + "smithy.api#documentation": "

The date and time of the last provisioned throughput increase for this table.

" } }, - "LastIncreaseDateTime": { + "LastDecreaseDateTime": { "target": "com.amazonaws.dynamodb#Date", "traits": { - "smithy.api#documentation": "

The date and time of the last provisioned throughput increase for this table.

" + "smithy.api#documentation": "

The date and time of the last provisioned throughput decrease for this table.

" } }, "NumberOfDecreasesToday": { @@ -4394,10 +5522,10 @@ "smithy.api#documentation": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a\n ThrottlingException. Eventually consistent reads require less effort than strongly\n consistent reads, so a setting of 50 ReadCapacityUnits per second provides 100\n eventually consistent ReadCapacityUnits per second.

" } }, - "LastDecreaseDateTime": { - "target": "com.amazonaws.dynamodb#Date", + "WriteCapacityUnits": { + "target": "com.amazonaws.dynamodb#NonNegativeLongObject", "traits": { - "smithy.api#documentation": "

The date and time of the last provisioned throughput decrease for this table.

" + "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a\n ThrottlingException.

" } } }, @@ -4437,10 +5565,11 @@ "com.amazonaws.dynamodb#Put": { "type": "structure", "members": { - "ExpressionAttributeValues": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", + "Item": { + "target": "com.amazonaws.dynamodb#PutItemInputAttributeMap", "traits": { - "smithy.api#documentation": "

One or more values that can be substituted in an expression.

" + "smithy.api#documentation": "

A map of attribute name to attribute values, representing the primary key\n of the item to be written by PutItem. All of the table's primary key\n attributes must be specified, and their data types must match those of the table's\n key schema. If any attributes are present in the item that are part of an index\n key schema for the table, their types must match the index key schema.

", + "smithy.api#required": {} } }, "TableName": { @@ -4456,23 +5585,22 @@ "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional update to succeed.

" } }, - "ReturnValuesOnConditionCheckFailure": { - "target": "com.amazonaws.dynamodb#ReturnValuesOnConditionCheckFailure", - "traits": { - "smithy.api#documentation": "

Use ReturnValuesOnConditionCheckFailure to\n get the item attributes if the Put condition fails.\n For ReturnValuesOnConditionCheckFailure, the valid\n values are: NONE and ALL_OLD.

" - } - }, "ExpressionAttributeNames": { "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", "traits": { "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression.

" } }, - "Item": { - "target": "com.amazonaws.dynamodb#PutItemInputAttributeMap", + "ExpressionAttributeValues": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", "traits": { - "smithy.api#documentation": "

A map of attribute name to attribute values, representing the primary key\n of the item to be written by PutItem. All of the table's primary key\n attributes must be specified, and their data types must match those of the table's\n key schema. If any attributes are present in the item that are part of an index\n key schema for the table, their types must match the index key schema.

", - "smithy.api#required": {} + "smithy.api#documentation": "

One or more values that can be substituted in an expression.

" + } + }, + "ReturnValuesOnConditionCheckFailure": { + "target": "com.amazonaws.dynamodb#ReturnValuesOnConditionCheckFailure", + "traits": { + "smithy.api#documentation": "

Use ReturnValuesOnConditionCheckFailure to\n get the item attributes if the Put condition fails.\n For ReturnValuesOnConditionCheckFailure, the valid\n values are: NONE and ALL_OLD.

" } } }, @@ -4521,18 +5649,6 @@ "com.amazonaws.dynamodb#PutItemInput": { "type": "structure", "members": { - "ReturnValues": { - "target": "com.amazonaws.dynamodb#ReturnValue", - "traits": { - "smithy.api#documentation": "

Use ReturnValues if you want to get the item attributes as they appeared before they\n were updated with the PutItem request. For PutItem, the valid values are:

\n \n \n

The ReturnValues parameter is used by several DynamoDB operations; however,\n PutItem does not recognize any values other than NONE or\n ALL_OLD.

\n
" - } - }, - "ReturnItemCollectionMetrics": { - "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", - "traits": { - "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during\n the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" - } - }, "TableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { @@ -4547,25 +5663,25 @@ "smithy.api#required": {} } }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "Expected": { + "target": "com.amazonaws.dynamodb#ExpectedAttributeMap", "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n Expected in the Amazon DynamoDB Developer Guide.

" } }, - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, - "ConditionExpression": { - "target": "com.amazonaws.dynamodb#ConditionExpression", + "ReturnValues": { + "target": "com.amazonaws.dynamodb#ReturnValue", "traits": { - "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional PutItem operation to\n succeed.

\n

An expression can contain any of the following:

\n \n

For more information on condition expressions, see Condition Expressions in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

Use ReturnValues if you want to get the item attributes as they appeared before they\n were updated with the PutItem request. For PutItem, the valid values are:

\n \n \n

The ReturnValues parameter is used by several DynamoDB operations; however,\n PutItem does not recognize any values other than NONE or\n ALL_OLD.

\n
" } }, - "Expected": { - "target": "com.amazonaws.dynamodb#ExpectedAttributeMap", + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" + }, + "ReturnItemCollectionMetrics": { + "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", "traits": { - "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n Expected in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during\n the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" } }, "ConditionalOperator": { @@ -4574,6 +5690,18 @@ "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n ConditionalOperator in the Amazon DynamoDB Developer Guide.

" } }, + "ConditionExpression": { + "target": "com.amazonaws.dynamodb#ConditionExpression", + "traits": { + "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional PutItem operation to\n succeed.

\n

An expression can contain any of the following:

\n \n

For more information on condition expressions, see Condition Expressions in the Amazon DynamoDB Developer\n Guide.

" + } + }, + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "traits": { + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + } + }, "ExpressionAttributeValues": { "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", "traits": { @@ -4597,10 +5725,10 @@ "com.amazonaws.dynamodb#PutItemOutput": { "type": "structure", "members": { - "ItemCollectionMetrics": { - "target": "com.amazonaws.dynamodb#ItemCollectionMetrics", + "Attributes": { + "target": "com.amazonaws.dynamodb#AttributeMap", "traits": { - "smithy.api#documentation": "

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

\n

Each ItemCollectionMetrics\n element consists of:

\n " + "smithy.api#documentation": "

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

" } }, "ConsumedCapacity": { @@ -4609,10 +5737,10 @@ "smithy.api#documentation": "

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

" } }, - "Attributes": { - "target": "com.amazonaws.dynamodb#AttributeMap", + "ItemCollectionMetrics": { + "target": "com.amazonaws.dynamodb#ItemCollectionMetrics", "traits": { - "smithy.api#documentation": "

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

" + "smithy.api#documentation": "

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

\n

Each ItemCollectionMetrics\n element consists of:

\n " } } }, @@ -4680,22 +5808,10 @@ "smithy.api#documentation": "

The name of an index to query. This index can be any local secondary index or global secondary index on the table. Note that\n if you use the IndexName parameter, you must also provide TableName.\n

" } }, - "KeyConditions": { - "target": "com.amazonaws.dynamodb#KeyConditions", - "traits": { - "smithy.api#documentation": "

This is a legacy parameter. Use KeyConditionExpression instead. For more information, see\n KeyConditions in the Amazon DynamoDB Developer Guide.

" - } - }, - "ScanIndexForward": { - "target": "com.amazonaws.dynamodb#BooleanObject", - "traits": { - "smithy.api#documentation": "

Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.

\n

Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

\n

If ScanIndexForward is true, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ScanIndexForward is false, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.

" - } - }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "Select": { + "target": "com.amazonaws.dynamodb#Select", "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for\n ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

The attributes to be returned in the\n result. You can retrieve all item attributes, specific item attributes, the count of\n matching items, or in the case of an index, some or all of the attributes projected into\n the index.

\n \n

If neither Select nor AttributesToGet\n are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a\n table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot\n use both Select and AttributesToGet\n together in a single request, unless the value for Select is\n SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying\n AttributesToGet without any value for\n Select.)

\n \n

If you use the ProjectionExpression parameter, then\n the value for Select can only be\n SPECIFIC_ATTRIBUTES. Any other value for\n Select will return an error.

\n
" } }, "AttributesToGet": { @@ -4704,25 +5820,10 @@ "smithy.api#documentation": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see\n AttributesToGet in the Amazon DynamoDB Developer Guide.

" } }, - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, - "QueryFilter": { - "target": "com.amazonaws.dynamodb#FilterConditionMap", - "traits": { - "smithy.api#documentation": "

This is a legacy parameter. Use FilterExpression instead. For more information, see\n QueryFilter in the Amazon DynamoDB Developer Guide.

" - } - }, - "ExpressionAttributeValues": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", - "traits": { - "smithy.api#documentation": "

One or more values that can be substituted in an expression.

\n

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the\n ProductStatus attribute was one of the following:

\n

\n Available | Backordered | Discontinued\n

\n

You would first need to specify ExpressionAttributeValues as follows:

\n

\n { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }\n

\n

You could then use these values in an expression, such as this:

\n

\n ProductStatus IN (:avail, :back, :disc)\n

\n

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

" - } - }, - "ProjectionExpression": { - "target": "com.amazonaws.dynamodb#ProjectionExpression", + "Limit": { + "target": "com.amazonaws.dynamodb#PositiveIntegerObject", "traits": { - "smithy.api#documentation": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

\n

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

\n

For more information, see\n Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

The maximum number of items to evaluate (not necessarily the number of matching items).\n If DynamoDB processes the number of items up to the limit while processing the results,\n it stops the operation and returns the matching values up to that point, and a key in\n LastEvaluatedKey to apply in a subsequent operation, so that you can\n pick up where you left off. Also, if the processed dataset size exceeds 1 MB before\n DynamoDB reaches this limit, it stops the operation and returns the matching values up\n to the limit, and a key in LastEvaluatedKey to apply in a subsequent\n operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer\n Guide.

" } }, "ConsistentRead": { @@ -4731,16 +5832,16 @@ "smithy.api#documentation": "

Determines the read consistency model: If set to true, then the operation uses strongly consistent reads; otherwise, the operation uses eventually consistent reads.

\n

Strongly consistent reads\n are not supported on global secondary indexes. If you query a global secondary index with ConsistentRead set to\n true, you will receive a ValidationException.

" } }, - "KeyConditionExpression": { - "target": "com.amazonaws.dynamodb#KeyExpression", + "KeyConditions": { + "target": "com.amazonaws.dynamodb#KeyConditions", "traits": { - "smithy.api#documentation": "

The condition that specifies the key values for items to be retrieved by the\n Query action.

\n\n

The condition must perform an equality test on a single partition key value.

\n

The condition can optionally perform one of several comparison tests on a single\n sort key value. This allows Query to retrieve one item with a given\n partition key value and sort key value, or several items that have the same partition\n key value but different sort key values.

\n\n

The partition key equality test is required, and must be specified in the following format:

\n\n

\n partitionKeyName\n =\n :partitionkeyval\n

\n\n

If you also want to provide a condition for the sort key, it must be combined using AND with the condition\n for the sort key. Following is an example, using the = comparison operator for the sort key:

\n\n

\n partitionKeyName\n =\n :partitionkeyval\n AND\n sortKeyName\n =\n :sortkeyval\n

\n

Valid comparisons for the sort key condition are as follows:

\n \n\n

Use the ExpressionAttributeValues parameter to replace tokens such as\n :partitionval and :sortval with actual values at runtime.

\n\n

You can optionally use the ExpressionAttributeNames parameter to replace the names of\n the partition key and sort key with placeholder tokens. This option might be necessary if an attribute\n name conflicts with a DynamoDB reserved word. For example, the following\n KeyConditionExpression parameter causes an error because Size is a reserved\n word:

\n \n

To work around this, define a placeholder (such a #S) to represent the attribute\n name Size. KeyConditionExpression then is as follows:

\n \n

For a list of reserved words, see Reserved\n Words in the Amazon DynamoDB Developer Guide.

\n\n

For more information on ExpressionAttributeNames and ExpressionAttributeValues,\n see Using Placeholders for Attribute\n Names and Values in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

This is a legacy parameter. Use KeyConditionExpression instead. For more information, see\n KeyConditions in the Amazon DynamoDB Developer Guide.

" } }, - "Select": { - "target": "com.amazonaws.dynamodb#Select", + "QueryFilter": { + "target": "com.amazonaws.dynamodb#FilterConditionMap", "traits": { - "smithy.api#documentation": "

The attributes to be returned in the\n result. You can retrieve all item attributes, specific item attributes, the count of\n matching items, or in the case of an index, some or all of the attributes projected into\n the index.

\n \n

If neither Select nor AttributesToGet\n are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a\n table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot\n use both Select and AttributesToGet\n together in a single request, unless the value for Select is\n SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying\n AttributesToGet without any value for\n Select.)

\n \n

If you use the ProjectionExpression parameter, then\n the value for Select can only be\n SPECIFIC_ATTRIBUTES. Any other value for\n Select will return an error.

\n
" + "smithy.api#documentation": "

This is a legacy parameter. Use FilterExpression instead. For more information, see\n QueryFilter in the Amazon DynamoDB Developer Guide.

" } }, "ConditionalOperator": { @@ -4749,10 +5850,10 @@ "smithy.api#documentation": "

This is a legacy parameter. Use FilterExpression instead. For more information, see\n ConditionalOperator in the Amazon DynamoDB Developer Guide.

" } }, - "Limit": { - "target": "com.amazonaws.dynamodb#PositiveIntegerObject", + "ScanIndexForward": { + "target": "com.amazonaws.dynamodb#BooleanObject", "traits": { - "smithy.api#documentation": "

The maximum number of items to evaluate (not necessarily the number of matching items).\n If DynamoDB processes the number of items up to the limit while processing the results,\n it stops the operation and returns the matching values up to that point, and a key in\n LastEvaluatedKey to apply in a subsequent operation, so that you can\n pick up where you left off. Also, if the processed dataset size exceeds 1 MB before\n DynamoDB reaches this limit, it stops the operation and returns the matching values up\n to the limit, and a key in LastEvaluatedKey to apply in a subsequent\n operation to continue the operation. For more information, see Query and Scan in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

Specifies the order for index traversal: If true (default), the traversal is performed in ascending order; if false, the traversal is performed in descending order.

\n

Items with the same partition key value are stored in sorted order by sort key. If the sort key data type is Number, the results are stored in numeric order. For type String, the results are stored in order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary data as unsigned.

\n

If ScanIndexForward is true, DynamoDB returns the results in the order in which they are stored (by sort key value). This is the default behavior. If ScanIndexForward is false, DynamoDB reads the results in reverse order by sort key value, and then returns the results to the client.

" } }, "ExclusiveStartKey": { @@ -4761,11 +5862,38 @@ "smithy.api#documentation": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

\n

The data type for ExclusiveStartKey must be String, Number, or Binary. No\n set data types are allowed.

" } }, + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" + }, + "ProjectionExpression": { + "target": "com.amazonaws.dynamodb#ProjectionExpression", + "traits": { + "smithy.api#documentation": "

A string that identifies one or more attributes to retrieve from the table. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

\n

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

\n

For more information, see\n Accessing Item Attributes in the Amazon DynamoDB Developer Guide.

" + } + }, "FilterExpression": { "target": "com.amazonaws.dynamodb#ConditionExpression", "traits": { "smithy.api#documentation": "

A string that contains conditions that DynamoDB applies after the Query operation, but\n before the data is returned to you. Items that do not satisfy the FilterExpression\n criteria are not returned.

\n

A FilterExpression does not allow key attributes. You cannot define a filter expression based on a partition key or a sort key.

\n \n

A FilterExpression is applied after the items have already been read; the process of\n filtering does not consume any additional read capacity units.

\n
\n

For more information, see Filter\n Expressions in the Amazon DynamoDB Developer Guide.

" } + }, + "KeyConditionExpression": { + "target": "com.amazonaws.dynamodb#KeyExpression", + "traits": { + "smithy.api#documentation": "

The condition that specifies the key values for items to be retrieved by the\n Query action.

\n\n

The condition must perform an equality test on a single partition key value.

\n

The condition can optionally perform one of several comparison tests on a single\n sort key value. This allows Query to retrieve one item with a given\n partition key value and sort key value, or several items that have the same partition\n key value but different sort key values.

\n\n

The partition key equality test is required, and must be specified in the following format:

\n\n

\n partitionKeyName\n =\n :partitionkeyval\n

\n\n

If you also want to provide a condition for the sort key, it must be combined using AND with the condition\n for the sort key. Following is an example, using the = comparison operator for the sort key:

\n\n

\n partitionKeyName\n =\n :partitionkeyval\n AND\n sortKeyName\n =\n :sortkeyval\n

\n

Valid comparisons for the sort key condition are as follows:

\n \n\n

Use the ExpressionAttributeValues parameter to replace tokens such as\n :partitionval and :sortval with actual values at runtime.

\n\n

You can optionally use the ExpressionAttributeNames parameter to replace the names of\n the partition key and sort key with placeholder tokens. This option might be necessary if an attribute\n name conflicts with a DynamoDB reserved word. For example, the following\n KeyConditionExpression parameter causes an error because Size is a reserved\n word:

\n \n

To work around this, define a placeholder (such a #S) to represent the attribute\n name Size. KeyConditionExpression then is as follows:

\n \n

For a list of reserved words, see Reserved\n Words in the Amazon DynamoDB Developer Guide.

\n\n

For more information on ExpressionAttributeNames and ExpressionAttributeValues,\n see Using Placeholders for Attribute\n Names and Values in the Amazon DynamoDB Developer Guide.

" + } + }, + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "traits": { + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for\n ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + } + }, + "ExpressionAttributeValues": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", + "traits": { + "smithy.api#documentation": "

One or more values that can be substituted in an expression.

\n

Use the : (colon) character in an expression to dereference an attribute value. For example, suppose that you wanted to check whether the value of the\n ProductStatus attribute was one of the following:

\n

\n Available | Backordered | Discontinued\n

\n

You would first need to specify ExpressionAttributeValues as follows:

\n

\n { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }\n

\n

You could then use these values in an expression, such as this:

\n

\n ProductStatus IN (:avail, :back, :disc)\n

\n

For more information on expression attribute values, see Specifying Conditions in the Amazon DynamoDB Developer Guide.

" + } } }, "traits": { @@ -4781,16 +5909,10 @@ "smithy.api#documentation": "

An array of item attributes that match the query criteria. Each element in this array consists of an attribute name and the value for that attribute.

" } }, - "LastEvaluatedKey": { - "target": "com.amazonaws.dynamodb#Key", - "traits": { - "smithy.api#documentation": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

\n

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

\n

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

" - } - }, - "ConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ConsumedCapacity", + "Count": { + "target": "com.amazonaws.dynamodb#Integer", "traits": { - "smithy.api#documentation": "

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

" + "smithy.api#documentation": "

The number of items in the response.

\n

If you used a QueryFilter in the request, then Count is the number of items\n returned after the filter was applied, and ScannedCount is the number of\n matching items before the filter was applied.

\n

If you did not use a filter in the request, then Count and ScannedCount are the\n same.

" } }, "ScannedCount": { @@ -4799,10 +5921,16 @@ "smithy.api#documentation": "

The number of items evaluated, before any QueryFilter is applied. A high\n ScannedCount value with few, or no, Count results indicates an inefficient\n Query operation. For more information, see Count and ScannedCount in the\n Amazon DynamoDB Developer Guide.

\n

If you did not use a filter in the request, then ScannedCount is the same as\n Count.

" } }, - "Count": { - "target": "com.amazonaws.dynamodb#Integer", + "LastEvaluatedKey": { + "target": "com.amazonaws.dynamodb#Key", "traits": { - "smithy.api#documentation": "

The number of items in the response.

\n

If you used a QueryFilter in the request, then Count is the number of items\n returned after the filter was applied, and ScannedCount is the number of\n matching items before the filter was applied.

\n

If you did not use a filter in the request, then Count and ScannedCount are the\n same.

" + "smithy.api#documentation": "

The primary key of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request.

\n

If LastEvaluatedKey is empty, then the \"last page\" of results has been processed and there is no more data to be retrieved.

\n

If LastEvaluatedKey is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedKey is empty.

" + } + }, + "ConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ConsumedCapacity", + "traits": { + "smithy.api#documentation": "

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

" } } }, @@ -4880,6 +6008,13 @@ "com.amazonaws.dynamodb#ReplicaAutoScalingUpdate": { "type": "structure", "members": { + "RegionName": { + "target": "com.amazonaws.dynamodb#RegionName", + "traits": { + "smithy.api#documentation": "

The Region where the replica exists.

", + "smithy.api#required": {} + } + }, "ReplicaGlobalSecondaryIndexUpdates": { "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexAutoScalingUpdateList", "traits": { @@ -4888,13 +6023,6 @@ }, "ReplicaProvisionedReadCapacityAutoScalingUpdate": { "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate" - }, - "RegionName": { - "target": "com.amazonaws.dynamodb#RegionName", - "traits": { - "smithy.api#documentation": "

The Region where the replica exists.

", - "smithy.api#required": {} - } } }, "traits": { @@ -4915,52 +6043,52 @@ "com.amazonaws.dynamodb#ReplicaDescription": { "type": "structure", "members": { - "GlobalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexDescriptionList", + "RegionName": { + "target": "com.amazonaws.dynamodb#RegionName", "traits": { - "smithy.api#documentation": "

Replica-specific global secondary index settings.

" + "smithy.api#documentation": "

The name of the Region.

" } }, - "ProvisionedThroughputOverride": { - "target": "com.amazonaws.dynamodb#ProvisionedThroughputOverride", + "ReplicaStatus": { + "target": "com.amazonaws.dynamodb#ReplicaStatus", "traits": { - "smithy.api#documentation": "

Replica-specific provisioned throughput. If not described, uses the source table's\n provisioned throughput settings.

" + "smithy.api#documentation": "

The current state of the replica:

\n " } }, - "KMSMasterKeyId": { - "target": "com.amazonaws.dynamodb#KMSMasterKeyId", + "ReplicaStatusDescription": { + "target": "com.amazonaws.dynamodb#ReplicaStatusDescription", "traits": { - "smithy.api#documentation": "

The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS\n encryption.

" + "smithy.api#documentation": "

Detailed information about the replica status.

" } }, - "ReplicaInaccessibleDateTime": { - "target": "com.amazonaws.dynamodb#Date", + "ReplicaStatusPercentProgress": { + "target": "com.amazonaws.dynamodb#ReplicaStatusPercentProgress", "traits": { - "smithy.api#documentation": "

The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the ReplicaStatus property.

" + "smithy.api#documentation": "

Specifies the progress of a Create, Update, or Delete action on the replica\n as a percentage.

" } }, - "RegionName": { - "target": "com.amazonaws.dynamodb#RegionName", + "KMSMasterKeyId": { + "target": "com.amazonaws.dynamodb#KMSMasterKeyId", "traits": { - "smithy.api#documentation": "

The name of the Region.

" + "smithy.api#documentation": "

The AWS KMS customer master key (CMK) of the replica that will be used for AWS KMS\n encryption.

" } }, - "ReplicaStatusDescription": { - "target": "com.amazonaws.dynamodb#ReplicaStatusDescription", + "ProvisionedThroughputOverride": { + "target": "com.amazonaws.dynamodb#ProvisionedThroughputOverride", "traits": { - "smithy.api#documentation": "

Detailed information about the replica status.

" + "smithy.api#documentation": "

Replica-specific provisioned throughput. If not described, uses the source table's\n provisioned throughput settings.

" } }, - "ReplicaStatus": { - "target": "com.amazonaws.dynamodb#ReplicaStatus", + "GlobalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexDescriptionList", "traits": { - "smithy.api#documentation": "

The current state of the replica:

\n " + "smithy.api#documentation": "

Replica-specific global secondary index settings.

" } }, - "ReplicaStatusPercentProgress": { - "target": "com.amazonaws.dynamodb#ReplicaStatusPercentProgress", + "ReplicaInaccessibleDateTime": { + "target": "com.amazonaws.dynamodb#Date", "traits": { - "smithy.api#documentation": "

Specifies the progress of a Create, Update, or Delete action on the replica\n as a percentage.

" + "smithy.api#documentation": "

The time at which the replica was first detected as inaccessible. To determine cause of inaccessibility check the ReplicaStatus property.

" } } }, @@ -4998,12 +6126,6 @@ "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexAutoScalingDescription": { "type": "structure", "members": { - "ProvisionedWriteCapacityAutoScalingSettings": { - "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription" - }, - "ProvisionedReadCapacityAutoScalingSettings": { - "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription" - }, "IndexName": { "target": "com.amazonaws.dynamodb#IndexName", "traits": { @@ -5015,6 +6137,12 @@ "traits": { "smithy.api#documentation": "

The current state of the replica global secondary index:

\n " } + }, + "ProvisionedReadCapacityAutoScalingSettings": { + "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription" + }, + "ProvisionedWriteCapacityAutoScalingSettings": { + "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription" } }, "traits": { @@ -5097,16 +6225,22 @@ "smithy.api#required": {} } }, + "IndexStatus": { + "target": "com.amazonaws.dynamodb#IndexStatus", + "traits": { + "smithy.api#documentation": "

\n The current status of the global secondary index:

\n " + } + }, "ProvisionedReadCapacityUnits": { "target": "com.amazonaws.dynamodb#PositiveLongObject", "traits": { "smithy.api#documentation": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.

" } }, - "ProvisionedWriteCapacityAutoScalingSettings": { + "ProvisionedReadCapacityAutoScalingSettings": { "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription", "traits": { - "smithy.api#documentation": "

Auto scaling settings for a global secondary index replica's write capacity\n units.

" + "smithy.api#documentation": "

Auto scaling settings for a global secondary index replica's read capacity units.

" } }, "ProvisionedWriteCapacityUnits": { @@ -5115,16 +6249,10 @@ "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.

" } }, - "IndexStatus": { - "target": "com.amazonaws.dynamodb#IndexStatus", - "traits": { - "smithy.api#documentation": "

\n The current status of the global secondary index:

\n " - } - }, - "ProvisionedReadCapacityAutoScalingSettings": { + "ProvisionedWriteCapacityAutoScalingSettings": { "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription", "traits": { - "smithy.api#documentation": "

Auto scaling settings for a global secondary index replica's read capacity units.

" + "smithy.api#documentation": "

Auto scaling settings for a global secondary index replica's write capacity\n units.

" } } }, @@ -5141,10 +6269,11 @@ "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexSettingsUpdate": { "type": "structure", "members": { - "ProvisionedReadCapacityAutoScalingSettingsUpdate": { - "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate", + "IndexName": { + "target": "com.amazonaws.dynamodb#IndexName", "traits": { - "smithy.api#documentation": "

Auto scaling settings for managing a global secondary index replica's read capacity\n units.

" + "smithy.api#documentation": "

The name of the global secondary index. The name must be unique among all other indexes on this table.

", + "smithy.api#required": {} } }, "ProvisionedReadCapacityUnits": { @@ -5153,11 +6282,10 @@ "smithy.api#documentation": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.

" } }, - "IndexName": { - "target": "com.amazonaws.dynamodb#IndexName", + "ProvisionedReadCapacityAutoScalingSettingsUpdate": { + "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate", "traits": { - "smithy.api#documentation": "

The name of the global secondary index. The name must be unique among all other indexes on this table.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Auto scaling settings for managing a global secondary index replica's read capacity\n units.

" } } }, @@ -5198,18 +6326,6 @@ "com.amazonaws.dynamodb#ReplicaSettingsDescription": { "type": "structure", "members": { - "ReplicaProvisionedReadCapacityUnits": { - "target": "com.amazonaws.dynamodb#NonNegativeLongObject", - "traits": { - "smithy.api#documentation": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.\n For more information, see Specifying Read and Write\n Requirements in the Amazon DynamoDB Developer Guide.\n

" - } - }, - "ReplicaProvisionedReadCapacityAutoScalingSettings": { - "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription", - "traits": { - "smithy.api#documentation": "

Auto scaling settings for a global table replica's read capacity units.

" - } - }, "RegionName": { "target": "com.amazonaws.dynamodb#RegionName", "traits": { @@ -5217,12 +6333,6 @@ "smithy.api#required": {} } }, - "ReplicaProvisionedWriteCapacityUnits": { - "target": "com.amazonaws.dynamodb#NonNegativeLongObject", - "traits": { - "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.\n For more information, see Specifying Read and Write\n Requirements in the Amazon DynamoDB Developer Guide.

" - } - }, "ReplicaStatus": { "target": "com.amazonaws.dynamodb#ReplicaStatus", "traits": { @@ -5235,10 +6345,22 @@ "smithy.api#documentation": "

The read/write capacity mode of the replica.

" } }, - "ReplicaGlobalSecondaryIndexSettings": { - "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexSettingsDescriptionList", + "ReplicaProvisionedReadCapacityUnits": { + "target": "com.amazonaws.dynamodb#NonNegativeLongObject", "traits": { - "smithy.api#documentation": "

Replica global secondary index settings for the global table.

" + "smithy.api#documentation": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.\n For more information, see Specifying Read and Write\n Requirements in the Amazon DynamoDB Developer Guide.\n

" + } + }, + "ReplicaProvisionedReadCapacityAutoScalingSettings": { + "target": "com.amazonaws.dynamodb#AutoScalingSettingsDescription", + "traits": { + "smithy.api#documentation": "

Auto scaling settings for a global table replica's read capacity units.

" + } + }, + "ReplicaProvisionedWriteCapacityUnits": { + "target": "com.amazonaws.dynamodb#NonNegativeLongObject", + "traits": { + "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.\n For more information, see Specifying Read and Write\n Requirements in the Amazon DynamoDB Developer Guide.

" } }, "ReplicaProvisionedWriteCapacityAutoScalingSettings": { @@ -5246,6 +6368,12 @@ "traits": { "smithy.api#documentation": "

Auto scaling settings for a global table replica's write capacity units.

" } + }, + "ReplicaGlobalSecondaryIndexSettings": { + "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexSettingsDescriptionList", + "traits": { + "smithy.api#documentation": "

Replica global secondary index settings for the global table.

" + } } }, "traits": { @@ -5261,16 +6389,11 @@ "com.amazonaws.dynamodb#ReplicaSettingsUpdate": { "type": "structure", "members": { - "ReplicaGlobalSecondaryIndexSettingsUpdate": { - "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexSettingsUpdateList", - "traits": { - "smithy.api#documentation": "

Represents the settings of a global secondary index for a global table that will be modified.

" - } - }, - "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate": { - "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate", + "RegionName": { + "target": "com.amazonaws.dynamodb#RegionName", "traits": { - "smithy.api#documentation": "

Auto scaling settings for managing a global table replica's read capacity units.

" + "smithy.api#documentation": "

The Region of the replica to be added.

", + "smithy.api#required": {} } }, "ReplicaProvisionedReadCapacityUnits": { @@ -5279,11 +6402,16 @@ "smithy.api#documentation": "

The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException.\n For more information, see Specifying Read and Write\n Requirements in the Amazon DynamoDB Developer Guide.\n

" } }, - "RegionName": { - "target": "com.amazonaws.dynamodb#RegionName", + "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate": { + "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate", "traits": { - "smithy.api#documentation": "

The Region of the replica to be added.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Auto scaling settings for managing a global table replica's read capacity units.

" + } + }, + "ReplicaGlobalSecondaryIndexSettingsUpdate": { + "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexSettingsUpdateList", + "traits": { + "smithy.api#documentation": "

Represents the settings of a global secondary index for a global table that will be modified.

" } } }, @@ -5324,6 +6452,9 @@ }, { "value": "REGION_DISABLED" + }, + { + "value": "INACCESSIBLE_ENCRYPTION_CREDENTIALS" } ] } @@ -5363,12 +6494,6 @@ "com.amazonaws.dynamodb#ReplicationGroupUpdate": { "type": "structure", "members": { - "Delete": { - "target": "com.amazonaws.dynamodb#DeleteReplicationGroupMemberAction", - "traits": { - "smithy.api#documentation": "

The parameters required for deleting a replica for the table.

" - } - }, "Create": { "target": "com.amazonaws.dynamodb#CreateReplicationGroupMemberAction", "traits": { @@ -5380,6 +6505,12 @@ "traits": { "smithy.api#documentation": "

The parameters required for updating a replica for the table.

" } + }, + "Delete": { + "target": "com.amazonaws.dynamodb#DeleteReplicationGroupMemberAction", + "traits": { + "smithy.api#documentation": "

The parameters required for deleting a replica for the table.

" + } } }, "traits": { @@ -5457,17 +6588,16 @@ "com.amazonaws.dynamodb#RestoreSummary": { "type": "structure", "members": { - "SourceTableArn": { - "target": "com.amazonaws.dynamodb#TableArn", + "SourceBackupArn": { + "target": "com.amazonaws.dynamodb#BackupArn", "traits": { - "smithy.api#documentation": "

The ARN of the source table of the backup that is being restored.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the backup from which the table was restored.

" } }, - "RestoreInProgress": { - "target": "com.amazonaws.dynamodb#RestoreInProgress", + "SourceTableArn": { + "target": "com.amazonaws.dynamodb#TableArn", "traits": { - "smithy.api#documentation": "

Indicates if a restore is in progress or not.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The ARN of the source table of the backup that is being restored.

" } }, "RestoreDateTime": { @@ -5477,10 +6607,11 @@ "smithy.api#required": {} } }, - "SourceBackupArn": { - "target": "com.amazonaws.dynamodb#BackupArn", + "RestoreInProgress": { + "target": "com.amazonaws.dynamodb#RestoreInProgress", "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the backup from which the table was restored.

" + "smithy.api#documentation": "

Indicates if a restore is in progress or not.

", + "smithy.api#required": {} } } }, @@ -5526,24 +6657,6 @@ "com.amazonaws.dynamodb#RestoreTableFromBackupInput": { "type": "structure", "members": { - "GlobalSecondaryIndexOverride": { - "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexList", - "traits": { - "smithy.api#documentation": "

List of global secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" - } - }, - "LocalSecondaryIndexOverride": { - "target": "com.amazonaws.dynamodb#LocalSecondaryIndexList", - "traits": { - "smithy.api#documentation": "

List of local secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" - } - }, - "SSESpecificationOverride": { - "target": "com.amazonaws.dynamodb#SSESpecification", - "traits": { - "smithy.api#documentation": "

The new server-side encryption settings for the restored table.

" - } - }, "TargetTableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { @@ -5564,11 +6677,29 @@ "smithy.api#documentation": "

The billing mode of the restored table.

" } }, + "GlobalSecondaryIndexOverride": { + "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexList", + "traits": { + "smithy.api#documentation": "

List of global secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" + } + }, + "LocalSecondaryIndexOverride": { + "target": "com.amazonaws.dynamodb#LocalSecondaryIndexList", + "traits": { + "smithy.api#documentation": "

List of local secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" + } + }, "ProvisionedThroughputOverride": { "target": "com.amazonaws.dynamodb#ProvisionedThroughput", "traits": { "smithy.api#documentation": "

Provisioned throughput settings for the restored table.

" } + }, + "SSESpecificationOverride": { + "target": "com.amazonaws.dynamodb#SSESpecification", + "traits": { + "smithy.api#documentation": "

The new server-side encryption settings for the restored table.

" + } } } }, @@ -5624,34 +6755,29 @@ "com.amazonaws.dynamodb#RestoreTableToPointInTimeInput": { "type": "structure", "members": { - "LocalSecondaryIndexOverride": { - "target": "com.amazonaws.dynamodb#LocalSecondaryIndexList", - "traits": { - "smithy.api#documentation": "

List of local secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" - } - }, - "SSESpecificationOverride": { - "target": "com.amazonaws.dynamodb#SSESpecification", + "SourceTableArn": { + "target": "com.amazonaws.dynamodb#TableArn", "traits": { - "smithy.api#documentation": "

The new server-side encryption settings for the restored table.

" + "smithy.api#documentation": "

The DynamoDB table that will be restored. This value is an Amazon\n Resource Name (ARN).

" } }, - "UseLatestRestorableTime": { - "target": "com.amazonaws.dynamodb#BooleanObject", + "SourceTableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Restore the table to the latest possible time. LatestRestorableDateTime\n is typically 5 minutes before the current time.

" + "smithy.api#documentation": "

Name of the source table that is being restored.

" } }, - "ProvisionedThroughputOverride": { - "target": "com.amazonaws.dynamodb#ProvisionedThroughput", + "TargetTableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Provisioned throughput settings for the restored table.

" + "smithy.api#documentation": "

The name of the new table to which it must be restored to.

", + "smithy.api#required": {} } }, - "GlobalSecondaryIndexOverride": { - "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexList", + "UseLatestRestorableTime": { + "target": "com.amazonaws.dynamodb#BooleanObject", "traits": { - "smithy.api#documentation": "

List of global secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" + "smithy.api#documentation": "

Restore the table to the latest possible time. LatestRestorableDateTime\n is typically 5 minutes before the current time.

" } }, "RestoreDateTime": { @@ -5660,29 +6786,34 @@ "smithy.api#documentation": "

Time in the past to restore the table to.

" } }, - "SourceTableArn": { - "target": "com.amazonaws.dynamodb#TableArn", + "BillingModeOverride": { + "target": "com.amazonaws.dynamodb#BillingMode", + "traits": { + "smithy.api#documentation": "

The billing mode of the restored table.

" + } + }, + "GlobalSecondaryIndexOverride": { + "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexList", "traits": { - "smithy.api#documentation": "

The DynamoDB table that will be restored. This value is an Amazon\n Resource Name (ARN).

" + "smithy.api#documentation": "

List of global secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" } }, - "BillingModeOverride": { - "target": "com.amazonaws.dynamodb#BillingMode", + "LocalSecondaryIndexOverride": { + "target": "com.amazonaws.dynamodb#LocalSecondaryIndexList", "traits": { - "smithy.api#documentation": "

The billing mode of the restored table.

" + "smithy.api#documentation": "

List of local secondary indexes for the restored table. The indexes\n provided should match existing secondary indexes. You can choose to exclude\n some or all of the indexes at the time of restore.

" } }, - "TargetTableName": { - "target": "com.amazonaws.dynamodb#TableName", + "ProvisionedThroughputOverride": { + "target": "com.amazonaws.dynamodb#ProvisionedThroughput", "traits": { - "smithy.api#documentation": "

The name of the new table to which it must be restored to.

", - "smithy.api#required": {} + "smithy.api#documentation": "

Provisioned throughput settings for the restored table.

" } }, - "SourceTableName": { - "target": "com.amazonaws.dynamodb#TableName", + "SSESpecificationOverride": { + "target": "com.amazonaws.dynamodb#SSESpecification", "traits": { - "smithy.api#documentation": "

Name of the source table that is being restored.

" + "smithy.api#documentation": "

The new server-side encryption settings for the restored table.

" } } } @@ -5763,21 +6894,40 @@ ] } }, + "com.amazonaws.dynamodb#S3Bucket": { + "type": "string" + }, + "com.amazonaws.dynamodb#S3BucketOwner": { + "type": "string" + }, + "com.amazonaws.dynamodb#S3Prefix": { + "type": "string" + }, + "com.amazonaws.dynamodb#S3SseAlgorithm": { + "type": "string", + "traits": { + "smithy.api#enum": [ + { + "value": "AES256" + }, + { + "value": "KMS" + } + ] + } + }, + "com.amazonaws.dynamodb#S3SseKmsKeyId": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 2048 + } + } + }, "com.amazonaws.dynamodb#SSEDescription": { "type": "structure", "members": { - "InaccessibleEncryptionDateTime": { - "target": "com.amazonaws.dynamodb#Date", - "traits": { - "smithy.api#documentation": "

Indicates the time, in UNIX epoch date format, when DynamoDB detected that the table's\n AWS KMS key was inaccessible. This attribute will automatically be cleared when DynamoDB\n detects that the table's AWS KMS key is accessible again. DynamoDB will initiate the table\n archival process when table's AWS KMS key remains inaccessible for more than seven days\n from this date.

" - } - }, - "KMSMasterKeyArn": { - "target": "com.amazonaws.dynamodb#KMSMasterKeyArn", - "traits": { - "smithy.api#documentation": "

The AWS KMS customer master key (CMK) ARN used for the AWS KMS encryption.

" - } - }, "Status": { "target": "com.amazonaws.dynamodb#SSEStatus", "traits": { @@ -5789,6 +6939,18 @@ "traits": { "smithy.api#documentation": "

Server-side encryption type. The only supported value is:

\n " } + }, + "KMSMasterKeyArn": { + "target": "com.amazonaws.dynamodb#KMSMasterKeyArn", + "traits": { + "smithy.api#documentation": "

The AWS KMS customer master key (CMK) ARN used for the AWS KMS encryption.

" + } + }, + "InaccessibleEncryptionDateTime": { + "target": "com.amazonaws.dynamodb#Date", + "traits": { + "smithy.api#documentation": "

Indicates the time, in UNIX epoch date format, when DynamoDB detected that the table's\n AWS KMS key was inaccessible. This attribute will automatically be cleared when DynamoDB\n detects that the table's AWS KMS key is accessible again. DynamoDB will initiate the table\n archival process when table's AWS KMS key remains inaccessible for more than seven days\n from this date.

" + } } }, "traits": { @@ -5804,10 +6966,10 @@ "com.amazonaws.dynamodb#SSESpecification": { "type": "structure", "members": { - "KMSMasterKeyId": { - "target": "com.amazonaws.dynamodb#KMSMasterKeyId", + "Enabled": { + "target": "com.amazonaws.dynamodb#SSEEnabled", "traits": { - "smithy.api#documentation": "

The AWS KMS customer master key (CMK) that should be used for the AWS KMS encryption. To\n specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note\n that you should only provide this parameter if the key is different from the default\n DynamoDB customer master key alias/aws/dynamodb.

" + "smithy.api#documentation": "

Indicates whether server-side encryption is done using an AWS managed CMK or an AWS owned CMK. If enabled (true),\n server-side encryption type is set to KMS and an AWS managed CMK is used (AWS KMS charges apply). If disabled (false) or not specified, server-side\nencryption is set to AWS owned CMK.

" } }, "SSEType": { @@ -5816,10 +6978,10 @@ "smithy.api#documentation": "

Server-side encryption type. The only supported value is:

\n " } }, - "Enabled": { - "target": "com.amazonaws.dynamodb#SSEEnabled", + "KMSMasterKeyId": { + "target": "com.amazonaws.dynamodb#KMSMasterKeyId", "traits": { - "smithy.api#documentation": "

Indicates whether server-side encryption is done using an AWS managed CMK or an AWS owned CMK. If enabled (true),\n server-side encryption type is set to KMS and an AWS managed CMK is used (AWS KMS charges apply). If disabled (false) or not specified, server-side\nencryption is set to AWS owned CMK.

" + "smithy.api#documentation": "

The AWS KMS customer master key (CMK) that should be used for the AWS KMS encryption. To\n specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note\n that you should only provide this parameter if the key is different from the default\n DynamoDB customer master key alias/aws/dynamodb.

" } } }, @@ -5910,40 +7072,35 @@ "com.amazonaws.dynamodb#ScanInput": { "type": "structure", "members": { - "ProjectionExpression": { - "target": "com.amazonaws.dynamodb#ProjectionExpression", - "traits": { - "smithy.api#documentation": "

A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

\n

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

\n

For more information, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" - } - }, - "ConsistentRead": { - "target": "com.amazonaws.dynamodb#ConsistentRead", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

A Boolean value that determines the read consistency model during the scan:

\n \n

The default setting for ConsistentRead is false.

\n

The ConsistentRead parameter is not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

" + "smithy.api#documentation": "

The name of the table containing the requested items; or, if you provide\n IndexName, the name of the table to which that index belongs.

", + "smithy.api#required": {} } }, - "Select": { - "target": "com.amazonaws.dynamodb#Select", + "IndexName": { + "target": "com.amazonaws.dynamodb#IndexName", "traits": { - "smithy.api#documentation": "

The attributes to be returned in the\n result. You can retrieve all item attributes, specific item attributes, the count of\n matching items, or in the case of an index, some or all of the attributes projected into\n the index.

\n \n

If neither Select nor AttributesToGet\n are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a\n table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot\n use both Select and AttributesToGet\n together in a single request, unless the value for Select is\n SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying\n AttributesToGet without any value for\n Select.)

\n \n

If you use the ProjectionExpression parameter, then\n the value for Select can only be\n SPECIFIC_ATTRIBUTES. Any other value for\n Select will return an error.

\n
" + "smithy.api#documentation": "

The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.

" } }, - "ExpressionAttributeValues": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", + "AttributesToGet": { + "target": "com.amazonaws.dynamodb#AttributeNameList", "traits": { - "smithy.api#documentation": "

One or more values that can be substituted in an expression.

\n

Use the : (colon) character in an expression to\n dereference an attribute value. For example, suppose that you wanted to check whether\n the value of the ProductStatus attribute was one of the following:

\n

\n Available | Backordered | Discontinued\n

\n

You would first need to specify ExpressionAttributeValues as follows:

\n

\n { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }\n

\n

You could then use these values in an expression, such as this:

\n

\n ProductStatus IN (:avail, :back, :disc)\n

\n

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see\n AttributesToGet in the Amazon DynamoDB Developer Guide.

" } }, - "Segment": { - "target": "com.amazonaws.dynamodb#ScanSegment", + "Limit": { + "target": "com.amazonaws.dynamodb#PositiveIntegerObject", "traits": { - "smithy.api#documentation": "

For a parallel Scan request, Segment identifies an individual segment to be\n scanned by an application worker.

\n

Segment IDs are zero-based, so the first segment is always 0. For example, if you want to\n use four application threads to scan a table or an index, then the first thread specifies a Segment value\n of 0, the second thread specifies 1, and so on.

\n

The value of LastEvaluatedKey returned from a parallel Scan request must be\n used as ExclusiveStartKey with the same segment ID in a subsequent Scan\n operation.

\n

The value for Segment must be greater than or equal to 0, and less than the value\n provided for TotalSegments.

\n

If you provide Segment, you must also provide TotalSegments.

" + "smithy.api#documentation": "

The maximum number of items to evaluate (not necessarily the number of matching items).\n If DynamoDB processes the number of items up to the limit while processing the results,\n it stops the operation and returns the matching values up to that point, and a key in\n LastEvaluatedKey to apply in a subsequent operation, so that you can\n pick up where you left off. Also, if the processed dataset size exceeds 1 MB before\n DynamoDB reaches this limit, it stops the operation and returns the matching values up\n to the limit, and a key in LastEvaluatedKey to apply in a subsequent\n operation to continue the operation. For more information, see Working with Queries in the Amazon DynamoDB Developer\n Guide.

" } }, - "TotalSegments": { - "target": "com.amazonaws.dynamodb#ScanTotalSegments", + "Select": { + "target": "com.amazonaws.dynamodb#Select", "traits": { - "smithy.api#documentation": "

For a parallel Scan request, TotalSegments represents the total number of\n segments into which the Scan operation will be divided. The value of\n TotalSegments corresponds to the number of application workers that will perform the\n parallel scan. For example, if you want to use four application threads to scan a table or an index,\n specify a TotalSegments value of 4.

\n

The value for TotalSegments must be greater than or equal to 1, and less than or equal\n to 1000000. If you specify a TotalSegments value of 1, the Scan operation will\n be sequential rather than parallel.

\n

If you specify TotalSegments, you must also specify Segment.

" + "smithy.api#documentation": "

The attributes to be returned in the\n result. You can retrieve all item attributes, specific item attributes, the count of\n matching items, or in the case of an index, some or all of the attributes projected into\n the index.

\n \n

If neither Select nor AttributesToGet\n are specified, DynamoDB defaults to ALL_ATTRIBUTES when accessing a\n table, and ALL_PROJECTED_ATTRIBUTES when accessing an index. You cannot\n use both Select and AttributesToGet\n together in a single request, unless the value for Select is\n SPECIFIC_ATTRIBUTES. (This usage is equivalent to specifying\n AttributesToGet without any value for\n Select.)

\n \n

If you use the ProjectionExpression parameter, then\n the value for Select can only be\n SPECIFIC_ATTRIBUTES. Any other value for\n Select will return an error.

\n
" } }, "ScanFilter": { @@ -5952,38 +7109,37 @@ "smithy.api#documentation": "

This is a legacy parameter. Use FilterExpression instead. For more information, see\n ScanFilter in the Amazon DynamoDB Developer Guide.

" } }, - "IndexName": { - "target": "com.amazonaws.dynamodb#IndexName", + "ConditionalOperator": { + "target": "com.amazonaws.dynamodb#ConditionalOperator", "traits": { - "smithy.api#documentation": "

The name of a secondary index to scan. This index can be any local secondary index or global secondary index. Note that if you use the IndexName parameter, you must also provide TableName.

" + "smithy.api#documentation": "

This is a legacy parameter. Use FilterExpression instead. For more information, see\n ConditionalOperator in the Amazon DynamoDB Developer Guide.

" } }, - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", + "ExclusiveStartKey": { + "target": "com.amazonaws.dynamodb#Key", "traits": { - "smithy.api#documentation": "

The name of the table containing the requested items; or, if you provide\n IndexName, the name of the table to which that index belongs.

", - "smithy.api#required": {} + "smithy.api#documentation": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

\n

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

\n

In a parallel scan, a\n Scan request that includes ExclusiveStartKey must specify the same segment\n whose previous Scan returned the corresponding value of LastEvaluatedKey.

" } }, - "AttributesToGet": { - "target": "com.amazonaws.dynamodb#AttributeNameList", + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" + }, + "TotalSegments": { + "target": "com.amazonaws.dynamodb#ScanTotalSegments", "traits": { - "smithy.api#documentation": "

This is a legacy parameter. Use ProjectionExpression instead. For more information, see\n AttributesToGet in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

For a parallel Scan request, TotalSegments represents the total number of\n segments into which the Scan operation will be divided. The value of\n TotalSegments corresponds to the number of application workers that will perform the\n parallel scan. For example, if you want to use four application threads to scan a table or an index,\n specify a TotalSegments value of 4.

\n

The value for TotalSegments must be greater than or equal to 1, and less than or equal\n to 1000000. If you specify a TotalSegments value of 1, the Scan operation will\n be sequential rather than parallel.

\n

If you specify TotalSegments, you must also specify Segment.

" } }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "Segment": { + "target": "com.amazonaws.dynamodb#ScanSegment", "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

For a parallel Scan request, Segment identifies an individual segment to be\n scanned by an application worker.

\n

Segment IDs are zero-based, so the first segment is always 0. For example, if you want to\n use four application threads to scan a table or an index, then the first thread specifies a Segment value\n of 0, the second thread specifies 1, and so on.

\n

The value of LastEvaluatedKey returned from a parallel Scan request must be\n used as ExclusiveStartKey with the same segment ID in a subsequent Scan\n operation.

\n

The value for Segment must be greater than or equal to 0, and less than the value\n provided for TotalSegments.

\n

If you provide Segment, you must also provide TotalSegments.

" } }, - "ExclusiveStartKey": { - "target": "com.amazonaws.dynamodb#Key", + "ProjectionExpression": { + "target": "com.amazonaws.dynamodb#ProjectionExpression", "traits": { - "smithy.api#documentation": "

The primary key of the first item that this operation will evaluate. Use the value that was returned for LastEvaluatedKey in the previous operation.

\n

The data type for ExclusiveStartKey must be String, Number or Binary. No set data types are allowed.

\n

In a parallel scan, a\n Scan request that includes ExclusiveStartKey must specify the same segment\n whose previous Scan returned the corresponding value of LastEvaluatedKey.

" + "smithy.api#documentation": "

A string that identifies one or more attributes to retrieve from the specified table or index. These attributes can include scalars, sets, or elements of a JSON document. The attributes in the expression must be separated by commas.

\n

If no attribute names are specified, then all attributes will be returned. If any of the requested attributes are not found, they will not appear in the result.

\n

For more information, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" } }, "FilterExpression": { @@ -5992,16 +7148,22 @@ "smithy.api#documentation": "

A string that contains conditions that DynamoDB applies after the Scan operation, but\n before the data is returned to you. Items that do not satisfy the FilterExpression\n criteria are not returned.

\n \n

A FilterExpression is applied after the items have already been read; the process of\n filtering does not consume any additional read capacity units.

\n
\n

For more information, see\n Filter Expressions in the Amazon DynamoDB Developer Guide.

" } }, - "Limit": { - "target": "com.amazonaws.dynamodb#PositiveIntegerObject", + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", "traits": { - "smithy.api#documentation": "

The maximum number of items to evaluate (not necessarily the number of matching items).\n If DynamoDB processes the number of items up to the limit while processing the results,\n it stops the operation and returns the matching values up to that point, and a key in\n LastEvaluatedKey to apply in a subsequent operation, so that you can\n pick up where you left off. Also, if the processed dataset size exceeds 1 MB before\n DynamoDB reaches this limit, it stops the operation and returns the matching values up\n to the limit, and a key in LastEvaluatedKey to apply in a subsequent\n operation to continue the operation. For more information, see Working with Queries in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer Guide). To work around this, you could specify the following for ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information on expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" } }, - "ConditionalOperator": { - "target": "com.amazonaws.dynamodb#ConditionalOperator", + "ExpressionAttributeValues": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeValueMap", "traits": { - "smithy.api#documentation": "

This is a legacy parameter. Use FilterExpression instead. For more information, see\n ConditionalOperator in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

One or more values that can be substituted in an expression.

\n

Use the : (colon) character in an expression to\n dereference an attribute value. For example, suppose that you wanted to check whether\n the value of the ProductStatus attribute was one of the following:

\n

\n Available | Backordered | Discontinued\n

\n

You would first need to specify ExpressionAttributeValues as follows:

\n

\n { \":avail\":{\"S\":\"Available\"}, \":back\":{\"S\":\"Backordered\"}, \":disc\":{\"S\":\"Discontinued\"} }\n

\n

You could then use these values in an expression, such as this:

\n

\n ProductStatus IN (:avail, :back, :disc)\n

\n

For more information on expression attribute values, see Condition Expressions in the Amazon DynamoDB Developer\n Guide.

" + } + }, + "ConsistentRead": { + "target": "com.amazonaws.dynamodb#ConsistentRead", + "traits": { + "smithy.api#documentation": "

A Boolean value that determines the read consistency model during the scan:

\n \n

The default setting for ConsistentRead is false.

\n

The ConsistentRead parameter is not supported on global secondary indexes. If you scan a global secondary index with ConsistentRead set to true, you will receive a ValidationException.

" } } }, @@ -6012,6 +7174,12 @@ "com.amazonaws.dynamodb#ScanOutput": { "type": "structure", "members": { + "Items": { + "target": "com.amazonaws.dynamodb#ItemList", + "traits": { + "smithy.api#documentation": "

An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.

" + } + }, "Count": { "target": "com.amazonaws.dynamodb#Integer", "traits": { @@ -6024,22 +7192,16 @@ "smithy.api#documentation": "

The number of items evaluated, before any ScanFilter is applied. A high\n ScannedCount value with few, or no, Count results indicates an inefficient\n Scan operation. For more information, see Count and ScannedCount in the\n Amazon DynamoDB Developer Guide.

\n

If you did not use a filter in the request, then ScannedCount is the same as\n Count.

" } }, - "ConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ConsumedCapacity", - "traits": { - "smithy.api#documentation": "

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

" - } - }, "LastEvaluatedKey": { "target": "com.amazonaws.dynamodb#Key", "traits": { "smithy.api#documentation": "

The primary key of the item where the operation stopped, inclusive of the previous\n result set. Use this value to start a new operation, excluding this value in the new\n request.

\n

If LastEvaluatedKey is empty, then the \"last page\" of results\n has been processed and there is no more data to be retrieved.

\n

If LastEvaluatedKey is not empty, it does not necessarily mean\n that there is more data in the result set. The only way to know when you have reached\n the end of the result set is when LastEvaluatedKey is\n empty.

" } }, - "Items": { - "target": "com.amazonaws.dynamodb#ItemList", + "ConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ConsumedCapacity", "traits": { - "smithy.api#documentation": "

An array of item attributes that match the scan criteria. Each element in this array consists of an attribute name and the value for that attribute.

" + "smithy.api#documentation": "

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

" } } }, @@ -6112,11 +7274,16 @@ "smithy.api#required": {} } }, - "TableCreationDateTime": { - "target": "com.amazonaws.dynamodb#TableCreationDateTime", + "TableArn": { + "target": "com.amazonaws.dynamodb#TableArn", "traits": { - "smithy.api#documentation": "

Time when the source table was created.

", - "smithy.api#required": {} + "smithy.api#documentation": "

ARN of the table for which backup was created.

" + } + }, + "TableSizeBytes": { + "target": "com.amazonaws.dynamodb#Long", + "traits": { + "smithy.api#documentation": "

Size of the table in bytes. Note that this is an approximate value.

" } }, "KeySchema": { @@ -6126,16 +7293,11 @@ "smithy.api#required": {} } }, - "ItemCount": { - "target": "com.amazonaws.dynamodb#ItemCount", - "traits": { - "smithy.api#documentation": "

Number of items in the table. Note that this is an approximate value.

" - } - }, - "TableArn": { - "target": "com.amazonaws.dynamodb#TableArn", + "TableCreationDateTime": { + "target": "com.amazonaws.dynamodb#TableCreationDateTime", "traits": { - "smithy.api#documentation": "

ARN of the table for which backup was created.

" + "smithy.api#documentation": "

Time when the source table was created.

", + "smithy.api#required": {} } }, "ProvisionedThroughput": { @@ -6145,16 +7307,16 @@ "smithy.api#required": {} } }, - "BillingMode": { - "target": "com.amazonaws.dynamodb#BillingMode", + "ItemCount": { + "target": "com.amazonaws.dynamodb#ItemCount", "traits": { - "smithy.api#documentation": "

Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

\n " + "smithy.api#documentation": "

Number of items in the table. Note that this is an approximate value.

" } }, - "TableSizeBytes": { - "target": "com.amazonaws.dynamodb#Long", + "BillingMode": { + "target": "com.amazonaws.dynamodb#BillingMode", "traits": { - "smithy.api#documentation": "

Size of the table in bytes. Note that this is an approximate value.

" + "smithy.api#documentation": "

Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.

\n " } } }, @@ -6165,22 +7327,16 @@ "com.amazonaws.dynamodb#SourceTableFeatureDetails": { "type": "structure", "members": { - "TimeToLiveDescription": { - "target": "com.amazonaws.dynamodb#TimeToLiveDescription", - "traits": { - "smithy.api#documentation": "

Time to Live settings on the table when the backup was created.

" - } - }, "LocalSecondaryIndexes": { "target": "com.amazonaws.dynamodb#LocalSecondaryIndexes", "traits": { "smithy.api#documentation": "

Represents the LSI properties for the table when the backup was created. It includes the IndexName, KeySchema and Projection for the LSIs on the table at the time of backup.

" } }, - "SSEDescription": { - "target": "com.amazonaws.dynamodb#SSEDescription", + "GlobalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexes", "traits": { - "smithy.api#documentation": "

The description of the server-side encryption status on the table when the backup was created.

" + "smithy.api#documentation": "

Represents the GSI properties for the table when the backup was created. It includes the\n IndexName, KeySchema, Projection, and ProvisionedThroughput for the GSIs on the table at\n the time of backup.

" } }, "StreamDescription": { @@ -6189,10 +7345,16 @@ "smithy.api#documentation": "

Stream settings on the table when the backup was created.

" } }, - "GlobalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexes", + "TimeToLiveDescription": { + "target": "com.amazonaws.dynamodb#TimeToLiveDescription", "traits": { - "smithy.api#documentation": "

Represents the GSI properties for the table when the backup was created. It includes the\n IndexName, KeySchema, Projection, and ProvisionedThroughput for the GSIs on the table at\n the time of backup.

" + "smithy.api#documentation": "

Time to Live settings on the table when the backup was created.

" + } + }, + "SSEDescription": { + "target": "com.amazonaws.dynamodb#SSEDescription", + "traits": { + "smithy.api#documentation": "

The description of the server-side encryption status on the table when the backup was created.

" } } }, @@ -6285,6 +7447,12 @@ "com.amazonaws.dynamodb#TableAutoScalingDescription": { "type": "structure", "members": { + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", + "traits": { + "smithy.api#documentation": "

The name of the table.

" + } + }, "TableStatus": { "target": "com.amazonaws.dynamodb#TableStatus", "traits": { @@ -6296,12 +7464,6 @@ "traits": { "smithy.api#documentation": "

Represents replicas of the global table.

" } - }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", - "traits": { - "smithy.api#documentation": "

The name of the table.

" - } } }, "traits": { @@ -6314,46 +7476,34 @@ "com.amazonaws.dynamodb#TableDescription": { "type": "structure", "members": { - "BillingModeSummary": { - "target": "com.amazonaws.dynamodb#BillingModeSummary", - "traits": { - "smithy.api#documentation": "

Contains the details for the read/write capacity mode.

" - } - }, - "TableArn": { - "target": "com.amazonaws.dynamodb#String", - "traits": { - "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the table.

" - } - }, - "SSEDescription": { - "target": "com.amazonaws.dynamodb#SSEDescription", + "AttributeDefinitions": { + "target": "com.amazonaws.dynamodb#AttributeDefinitions", "traits": { - "smithy.api#documentation": "

The description of the server-side encryption status on the specified table.

" + "smithy.api#documentation": "

An array of AttributeDefinition objects. Each of these objects describes one attribute\n in the table and index key schema.

\n

Each AttributeDefinition object in this array is composed of:

\n " } }, - "ArchivalSummary": { - "target": "com.amazonaws.dynamodb#ArchivalSummary", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Contains information about the table archive.

" + "smithy.api#documentation": "

The name of the table.

" } }, - "GlobalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexDescriptionList", + "KeySchema": { + "target": "com.amazonaws.dynamodb#KeySchema", "traits": { - "smithy.api#documentation": "

The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:

\n \n

If the table is in the DELETING state, no information about indexes will be\n returned.

" + "smithy.api#documentation": "

The primary key structure for the table. Each KeySchemaElement consists of:

\n \n

For more information about primary keys, see Primary Key in the\n Amazon DynamoDB Developer Guide.

" } }, - "GlobalTableVersion": { - "target": "com.amazonaws.dynamodb#String", + "TableStatus": { + "target": "com.amazonaws.dynamodb#TableStatus", "traits": { - "smithy.api#documentation": "

Represents the version of global tables in use, if the table is replicated across AWS Regions.

" + "smithy.api#documentation": "

The current state of the table:

\n " } }, - "TableId": { - "target": "com.amazonaws.dynamodb#TableId", + "CreationDateTime": { + "target": "com.amazonaws.dynamodb#Date", "traits": { - "smithy.api#documentation": "

Unique identifier for the table for which the backup was created.

" + "smithy.api#documentation": "

The date and time when the table was created, in UNIX epoch time format.

" } }, "ProvisionedThroughput": { @@ -6362,46 +7512,52 @@ "smithy.api#documentation": "

The provisioned throughput settings for the table, consisting of read and write capacity units, along with data about increases and decreases.

" } }, - "KeySchema": { - "target": "com.amazonaws.dynamodb#KeySchema", + "TableSizeBytes": { + "target": "com.amazonaws.dynamodb#Long", "traits": { - "smithy.api#documentation": "

The primary key structure for the table. Each KeySchemaElement consists of:

\n \n

For more information about primary keys, see Primary Key in the\n Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" } }, - "Replicas": { - "target": "com.amazonaws.dynamodb#ReplicaDescriptionList", + "ItemCount": { + "target": "com.amazonaws.dynamodb#Long", "traits": { - "smithy.api#documentation": "

Represents replicas of the table.

" + "smithy.api#documentation": "

The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" } }, - "TableSizeBytes": { - "target": "com.amazonaws.dynamodb#Long", + "TableArn": { + "target": "com.amazonaws.dynamodb#String", "traits": { - "smithy.api#documentation": "

The total size of the specified table, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" + "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the table.

" } }, - "TableStatus": { - "target": "com.amazonaws.dynamodb#TableStatus", + "TableId": { + "target": "com.amazonaws.dynamodb#TableId", "traits": { - "smithy.api#documentation": "

The current state of the table:

\n " + "smithy.api#documentation": "

Unique identifier for the table for which the backup was created.

" } }, - "StreamSpecification": { - "target": "com.amazonaws.dynamodb#StreamSpecification", + "BillingModeSummary": { + "target": "com.amazonaws.dynamodb#BillingModeSummary", "traits": { - "smithy.api#documentation": "

The current DynamoDB Streams configuration for the table.

" + "smithy.api#documentation": "

Contains the details for the read/write capacity mode.

" } }, - "RestoreSummary": { - "target": "com.amazonaws.dynamodb#RestoreSummary", + "LocalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#LocalSecondaryIndexDescriptionList", "traits": { - "smithy.api#documentation": "

Contains details for the restore.

" + "smithy.api#documentation": "

Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:

\n \n

If the table is in the DELETING state, no information about indexes will be\n returned.

" } }, - "AttributeDefinitions": { - "target": "com.amazonaws.dynamodb#AttributeDefinitions", + "GlobalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexDescriptionList", "traits": { - "smithy.api#documentation": "

An array of AttributeDefinition objects. Each of these objects describes one attribute\n in the table and index key schema.

\n

Each AttributeDefinition object in this array is composed of:

\n " + "smithy.api#documentation": "

The global secondary indexes, if any, on the table. Each index is scoped to a given partition key value. Each element is composed of:

\n \n

If the table is in the DELETING state, no information about indexes will be\n returned.

" + } + }, + "StreamSpecification": { + "target": "com.amazonaws.dynamodb#StreamSpecification", + "traits": { + "smithy.api#documentation": "

The current DynamoDB Streams configuration for the table.

" } }, "LatestStreamLabel": { @@ -6416,28 +7572,34 @@ "smithy.api#documentation": "

The Amazon Resource Name (ARN) that uniquely identifies the latest stream for this table.

" } }, - "LocalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#LocalSecondaryIndexDescriptionList", + "GlobalTableVersion": { + "target": "com.amazonaws.dynamodb#String", "traits": { - "smithy.api#documentation": "

Represents one or more local secondary indexes on the table. Each index is scoped to a given partition key value. Tables with one or more local secondary indexes are subject to an item collection size limit, where the amount of data within a given item collection cannot exceed 10 GB. Each element is composed of:

\n \n

If the table is in the DELETING state, no information about indexes will be\n returned.

" + "smithy.api#documentation": "

Represents the version of global tables in use, if the table is replicated across AWS Regions.

" } }, - "CreationDateTime": { - "target": "com.amazonaws.dynamodb#Date", + "Replicas": { + "target": "com.amazonaws.dynamodb#ReplicaDescriptionList", "traits": { - "smithy.api#documentation": "

The date and time when the table was created, in UNIX epoch time format.

" + "smithy.api#documentation": "

Represents replicas of the table.

" } }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", + "RestoreSummary": { + "target": "com.amazonaws.dynamodb#RestoreSummary", "traits": { - "smithy.api#documentation": "

The name of the table.

" + "smithy.api#documentation": "

Contains details for the restore.

" } }, - "ItemCount": { - "target": "com.amazonaws.dynamodb#Long", + "SSEDescription": { + "target": "com.amazonaws.dynamodb#SSEDescription", "traits": { - "smithy.api#documentation": "

The number of items in the specified table. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

" + "smithy.api#documentation": "

The description of the server-side encryption status on the specified table.

" + } + }, + "ArchivalSummary": { + "target": "com.amazonaws.dynamodb#ArchivalSummary", + "traits": { + "smithy.api#documentation": "

Contains information about the table archive.

" } } }, @@ -6591,17 +7753,17 @@ "com.amazonaws.dynamodb#TagResourceInput": { "type": "structure", "members": { - "Tags": { - "target": "com.amazonaws.dynamodb#TagList", + "ResourceArn": { + "target": "com.amazonaws.dynamodb#ResourceArnString", "traits": { - "smithy.api#documentation": "

The tags to be assigned to the Amazon DynamoDB resource.

", + "smithy.api#documentation": "

Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).

", "smithy.api#required": {} } }, - "ResourceArn": { - "target": "com.amazonaws.dynamodb#ResourceArnString", + "Tags": { + "target": "com.amazonaws.dynamodb#TagList", "traits": { - "smithy.api#documentation": "

Identifies the Amazon DynamoDB resource to which tags should be added. This value is an Amazon Resource Name (ARN).

", + "smithy.api#documentation": "

The tags to be assigned to the Amazon DynamoDB resource.

", "smithy.api#required": {} } } @@ -6660,17 +7822,17 @@ "com.amazonaws.dynamodb#TimeToLiveSpecification": { "type": "structure", "members": { - "AttributeName": { - "target": "com.amazonaws.dynamodb#TimeToLiveAttributeName", + "Enabled": { + "target": "com.amazonaws.dynamodb#TimeToLiveEnabled", "traits": { - "smithy.api#documentation": "

The name of the TTL attribute used to store the expiration time for items in the\n table.

", + "smithy.api#documentation": "

Indicates whether TTL is to be enabled (true) or disabled (false) on the table.

", "smithy.api#required": {} } }, - "Enabled": { - "target": "com.amazonaws.dynamodb#TimeToLiveEnabled", + "AttributeName": { + "target": "com.amazonaws.dynamodb#TimeToLiveAttributeName", "traits": { - "smithy.api#documentation": "

Indicates whether TTL is to be enabled (true) or disabled (false) on the table.

", + "smithy.api#documentation": "

The name of the TTL attribute used to store the expiration time for items in the\n table.

", "smithy.api#required": {} } } @@ -6778,23 +7940,29 @@ "com.amazonaws.dynamodb#TransactGetItemsOutput": { "type": "structure", "members": { - "Responses": { - "target": "com.amazonaws.dynamodb#ItemResponseList", - "traits": { - "smithy.api#documentation": "

An ordered array of up to 25 ItemResponse objects, each of which corresponds\n to the TransactGetItem object in the same position in the\n TransactItems array. Each ItemResponse object\n contains a Map of the name-value pairs that are the projected attributes of\n the requested item.

\n

If a requested item could not be retrieved, the corresponding ItemResponse\n object is Null, or if the requested item has no projected attributes, the corresponding\n ItemResponse object is an empty Map.

" - } - }, "ConsumedCapacity": { "target": "com.amazonaws.dynamodb#ConsumedCapacityMultiple", "traits": { "smithy.api#documentation": "

If the ReturnConsumedCapacity value was TOTAL,\n this is an array of ConsumedCapacity objects, one for each table\n addressed by TransactGetItem objects in the TransactItems\n parameter. These ConsumedCapacity objects report the read-capacity\n units consumed by the TransactGetItems call in that table.

" } + }, + "Responses": { + "target": "com.amazonaws.dynamodb#ItemResponseList", + "traits": { + "smithy.api#documentation": "

An ordered array of up to 25 ItemResponse objects, each of which corresponds\n to the TransactGetItem object in the same position in the\n TransactItems array. Each ItemResponse object\n contains a Map of the name-value pairs that are the projected attributes of\n the requested item.

\n

If a requested item could not be retrieved, the corresponding ItemResponse\n object is Null, or if the requested item has no projected attributes, the corresponding\n ItemResponse object is an empty Map.

" + } } } }, "com.amazonaws.dynamodb#TransactWriteItem": { "type": "structure", "members": { + "ConditionCheck": { + "target": "com.amazonaws.dynamodb#ConditionCheck", + "traits": { + "smithy.api#documentation": "

A request to perform a check item operation.

" + } + }, "Put": { "target": "com.amazonaws.dynamodb#Put", "traits": { @@ -6807,12 +7975,6 @@ "smithy.api#documentation": "

A request to perform a DeleteItem operation.

" } }, - "ConditionCheck": { - "target": "com.amazonaws.dynamodb#ConditionCheck", - "traits": { - "smithy.api#documentation": "

A request to perform a check item operation.

" - } - }, "Update": { "target": "com.amazonaws.dynamodb#Update", "traits": { @@ -6877,59 +8039,59 @@ "com.amazonaws.dynamodb#TransactWriteItemsInput": { "type": "structure", "members": { - "ReturnItemCollectionMetrics": { - "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", + "TransactItems": { + "target": "com.amazonaws.dynamodb#TransactWriteItemList", "traits": { - "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to\n SIZE, the response includes statistics about item collections (if any), that\n were modified during the operation and are returned in the response.\n If set to NONE (the default), no statistics are returned.\n

" + "smithy.api#documentation": "

An ordered array of up to 25 TransactWriteItem objects, each of which\n contains a ConditionCheck, Put, Update, or\n Delete object. These can operate on items in different tables, but the\n tables must reside in the same AWS account and Region, and no two of them can operate on\n the same item.

", + "smithy.api#required": {} } }, "ReturnConsumedCapacity": { "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" }, + "ReturnItemCollectionMetrics": { + "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", + "traits": { + "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to\n SIZE, the response includes statistics about item collections (if any), that\n were modified during the operation and are returned in the response.\n If set to NONE (the default), no statistics are returned.\n

" + } + }, "ClientRequestToken": { "target": "com.amazonaws.dynamodb#ClientRequestToken", "traits": { "smithy.api#documentation": "

Providing a ClientRequestToken makes the call to TransactWriteItems\n idempotent, meaning that multiple identical calls have the same effect as one single call.

\n

Although multiple identical calls using the same client request token produce the same\n result on the server (no side effects), the responses to the calls might not be the\n same. If the ReturnConsumedCapacity> parameter is set, then the initial\n TransactWriteItems call returns the amount of write capacity units\n consumed in making the changes. Subsequent TransactWriteItems calls with\n the same client token return the number of read capacity units consumed in reading the\n item.

\n

A client request token is valid for 10 minutes after the first request that uses it is\n completed. After 10 minutes, any request with the same client token is treated as a new\n request. Do not resubmit the same request with the same client token for more than 10\n minutes, or the result might not be idempotent.

\n

If you submit a request with the same client token but a change in other parameters\n within the 10-minute idempotency window, DynamoDB returns an\n IdempotentParameterMismatch exception.

", "smithy.api#idempotencyToken": {} } - }, - "TransactItems": { - "target": "com.amazonaws.dynamodb#TransactWriteItemList", - "traits": { - "smithy.api#documentation": "

An ordered array of up to 25 TransactWriteItem objects, each of which\n contains a ConditionCheck, Put, Update, or\n Delete object. These can operate on items in different tables, but the\n tables must reside in the same AWS account and Region, and no two of them can operate on\n the same item.

", - "smithy.api#required": {} - } } } }, "com.amazonaws.dynamodb#TransactWriteItemsOutput": { "type": "structure", "members": { - "ItemCollectionMetrics": { - "target": "com.amazonaws.dynamodb#ItemCollectionMetricsPerTable", - "traits": { - "smithy.api#documentation": "

A list of tables that were processed by TransactWriteItems and, for each\n table, information about any item collections that were affected by individual\n UpdateItem, PutItem, or DeleteItem\n operations.

" - } - }, "ConsumedCapacity": { "target": "com.amazonaws.dynamodb#ConsumedCapacityMultiple", "traits": { "smithy.api#documentation": "

The capacity units consumed by the entire TransactWriteItems\n operation. The values of the list are ordered according to\n the ordering of the TransactItems request parameter.\n

" } + }, + "ItemCollectionMetrics": { + "target": "com.amazonaws.dynamodb#ItemCollectionMetricsPerTable", + "traits": { + "smithy.api#documentation": "

A list of tables that were processed by TransactWriteItems and, for each\n table, information about any item collections that were affected by individual\n UpdateItem, PutItem, or DeleteItem\n operations.

" + } } } }, "com.amazonaws.dynamodb#TransactionCanceledException": { "type": "structure", "members": { + "Message": { + "target": "com.amazonaws.dynamodb#ErrorMessage" + }, "CancellationReasons": { "target": "com.amazonaws.dynamodb#CancellationReasonList", "traits": { "smithy.api#documentation": "

A list of cancellation reasons.

" } - }, - "Message": { - "target": "com.amazonaws.dynamodb#ErrorMessage" } }, "traits": { @@ -7009,6 +8171,13 @@ "com.amazonaws.dynamodb#Update": { "type": "structure", "members": { + "Key": { + "target": "com.amazonaws.dynamodb#Key", + "traits": { + "smithy.api#documentation": "

The primary key of the item to be updated. Each element consists of\n an attribute name and a value for that attribute.

", + "smithy.api#required": {} + } + }, "UpdateExpression": { "target": "com.amazonaws.dynamodb#UpdateExpression", "traits": { @@ -7016,23 +8185,23 @@ "smithy.api#required": {} } }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression.

" + "smithy.api#documentation": "

Name of the table for the UpdateItem request.

", + "smithy.api#required": {} } }, - "ReturnValuesOnConditionCheckFailure": { - "target": "com.amazonaws.dynamodb#ReturnValuesOnConditionCheckFailure", + "ConditionExpression": { + "target": "com.amazonaws.dynamodb#ConditionExpression", "traits": { - "smithy.api#documentation": "

Use ReturnValuesOnConditionCheckFailure to\n get the item attributes if the Update condition fails.\n For ReturnValuesOnConditionCheckFailure, the valid\n values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.

" + "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional update to\n succeed.

" } }, - "Key": { - "target": "com.amazonaws.dynamodb#Key", + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", "traits": { - "smithy.api#documentation": "

The primary key of the item to be updated. Each element consists of\n an attribute name and a value for that attribute.

", - "smithy.api#required": {} + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression.

" } }, "ExpressionAttributeValues": { @@ -7041,17 +8210,10 @@ "smithy.api#documentation": "

One or more values that can be substituted in an expression.

" } }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", - "traits": { - "smithy.api#documentation": "

Name of the table for the UpdateItem request.

", - "smithy.api#required": {} - } - }, - "ConditionExpression": { - "target": "com.amazonaws.dynamodb#ConditionExpression", + "ReturnValuesOnConditionCheckFailure": { + "target": "com.amazonaws.dynamodb#ReturnValuesOnConditionCheckFailure", "traits": { - "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional update to\n succeed.

" + "smithy.api#documentation": "

Use ReturnValuesOnConditionCheckFailure to\n get the item attributes if the Update condition fails.\n For ReturnValuesOnConditionCheckFailure, the valid\n values are: NONE, ALL_OLD, UPDATED_OLD, ALL_NEW, UPDATED_NEW.

" } } }, @@ -7138,10 +8300,10 @@ "com.amazonaws.dynamodb#UpdateContributorInsightsInput": { "type": "structure", "members": { - "ContributorInsightsAction": { - "target": "com.amazonaws.dynamodb#ContributorInsightsAction", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Represents the contributor insights action.

", + "smithy.api#documentation": "

The name of the table.

", "smithy.api#required": {} } }, @@ -7151,10 +8313,10 @@ "smithy.api#documentation": "

The global secondary index name, if applicable.

" } }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", + "ContributorInsightsAction": { + "target": "com.amazonaws.dynamodb#ContributorInsightsAction", "traits": { - "smithy.api#documentation": "

The name of the table.

", + "smithy.api#documentation": "

Represents the contributor insights action.

", "smithy.api#required": {} } } @@ -7169,17 +8331,17 @@ "smithy.api#documentation": "

The name of the table.

" } }, - "ContributorInsightsStatus": { - "target": "com.amazonaws.dynamodb#ContributorInsightsStatus", - "traits": { - "smithy.api#documentation": "

The status of contributor insights

" - } - }, "IndexName": { "target": "com.amazonaws.dynamodb#IndexName", "traits": { "smithy.api#documentation": "

The name of the global secondary index, if applicable.

" } + }, + "ContributorInsightsStatus": { + "target": "com.amazonaws.dynamodb#ContributorInsightsStatus", + "traits": { + "smithy.api#documentation": "

The status of contributor insights

" + } } } }, @@ -7189,17 +8351,17 @@ "com.amazonaws.dynamodb#UpdateGlobalSecondaryIndexAction": { "type": "structure", "members": { - "ProvisionedThroughput": { - "target": "com.amazonaws.dynamodb#ProvisionedThroughput", + "IndexName": { + "target": "com.amazonaws.dynamodb#IndexName", "traits": { - "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

", + "smithy.api#documentation": "

The name of the global secondary index to be updated.

", "smithy.api#required": {} } }, - "IndexName": { - "target": "com.amazonaws.dynamodb#IndexName", + "ProvisionedThroughput": { + "target": "com.amazonaws.dynamodb#ProvisionedThroughput", "traits": { - "smithy.api#documentation": "

The name of the global secondary index to be updated.

", + "smithy.api#documentation": "

Represents the provisioned throughput settings for the specified global secondary index.

\n

For current minimum and maximum provisioned throughput values, see Service, Account, and Table Quotas in the Amazon DynamoDB Developer Guide.

", "smithy.api#required": {} } } @@ -7308,22 +8470,11 @@ "com.amazonaws.dynamodb#UpdateGlobalTableSettingsInput": { "type": "structure", "members": { - "GlobalTableProvisionedWriteCapacityUnits": { - "target": "com.amazonaws.dynamodb#PositiveLongObject", - "traits": { - "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.\n

" - } - }, - "GlobalTableGlobalSecondaryIndexSettingsUpdate": { - "target": "com.amazonaws.dynamodb#GlobalTableGlobalSecondaryIndexSettingsUpdateList", - "traits": { - "smithy.api#documentation": "

Represents the settings of a global secondary index for a global table that will be modified.

" - } - }, - "ReplicaSettingsUpdate": { - "target": "com.amazonaws.dynamodb#ReplicaSettingsUpdateList", + "GlobalTableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Represents the settings for a global table in a Region that will be modified.

" + "smithy.api#documentation": "

The name of the global table

", + "smithy.api#required": {} } }, "GlobalTableBillingMode": { @@ -7332,17 +8483,28 @@ "smithy.api#documentation": "

The billing mode of the global table. If GlobalTableBillingMode is not specified, the global table defaults to PROVISIONED capacity billing mode.

\n " } }, + "GlobalTableProvisionedWriteCapacityUnits": { + "target": "com.amazonaws.dynamodb#PositiveLongObject", + "traits": { + "smithy.api#documentation": "

The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException.\n

" + } + }, "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate": { "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate", "traits": { "smithy.api#documentation": "

Auto scaling settings for managing provisioned write capacity for the global\n table.

" } }, - "GlobalTableName": { - "target": "com.amazonaws.dynamodb#TableName", + "GlobalTableGlobalSecondaryIndexSettingsUpdate": { + "target": "com.amazonaws.dynamodb#GlobalTableGlobalSecondaryIndexSettingsUpdateList", "traits": { - "smithy.api#documentation": "

The name of the global table

", - "smithy.api#required": {} + "smithy.api#documentation": "

Represents the settings of a global secondary index for a global table that will be modified.

" + } + }, + "ReplicaSettingsUpdate": { + "target": "com.amazonaws.dynamodb#ReplicaSettingsUpdateList", + "traits": { + "smithy.api#documentation": "

Represents the settings for a global table in a Region that will be modified.

" } } } @@ -7350,17 +8512,17 @@ "com.amazonaws.dynamodb#UpdateGlobalTableSettingsOutput": { "type": "structure", "members": { - "ReplicaSettings": { - "target": "com.amazonaws.dynamodb#ReplicaSettingsDescriptionList", - "traits": { - "smithy.api#documentation": "

The Region-specific settings for the global table.

" - } - }, "GlobalTableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { "smithy.api#documentation": "

The name of the global table.

" } + }, + "ReplicaSettings": { + "target": "com.amazonaws.dynamodb#ReplicaSettingsDescriptionList", + "traits": { + "smithy.api#documentation": "

The Region-specific settings for the global table.

" + } } } }, @@ -7405,22 +8567,30 @@ "com.amazonaws.dynamodb#UpdateItemInput": { "type": "structure", "members": { - "ReturnValues": { - "target": "com.amazonaws.dynamodb#ReturnValue", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Use ReturnValues if you want to get the item attributes as they appear\n before or after they are updated. For UpdateItem, the valid values\n are:

\n \n

There is no additional cost associated with requesting a return value aside from the\n small network and processing overhead of receiving a larger response. No read capacity\n units are consumed.

\n

The values returned are strongly consistent.

" + "smithy.api#documentation": "

The name of the table containing the item to update.

", + "smithy.api#required": {} } }, - "UpdateExpression": { - "target": "com.amazonaws.dynamodb#UpdateExpression", + "Key": { + "target": "com.amazonaws.dynamodb#Key", "traits": { - "smithy.api#documentation": "

An expression that defines one or more attributes to be updated, the action to be\n performed on them, and new values for them.

\n

The following action values are available for UpdateExpression.

\n \n

You can have many actions in a single expression, such as the following: SET a=:value1,\n b=:value2 DELETE :value3, :value4, :value5\n

\n

For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

\n

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", + "smithy.api#required": {} } }, - "ExpressionAttributeNames": { - "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", + "AttributeUpdates": { + "target": "com.amazonaws.dynamodb#AttributeUpdates", "traits": { - "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly\n in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer\n Guide.) To work around this, you could specify the following for\n ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information about expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

This is a legacy parameter. Use UpdateExpression instead. For more information, see\n AttributeUpdates in the Amazon DynamoDB Developer Guide.

" + } + }, + "Expected": { + "target": "com.amazonaws.dynamodb#ExpectedAttributeMap", + "traits": { + "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n Expected in the Amazon DynamoDB Developer Guide.

" } }, "ConditionalOperator": { @@ -7429,45 +8599,37 @@ "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n ConditionalOperator in the Amazon DynamoDB Developer Guide.

" } }, - "ConditionExpression": { - "target": "com.amazonaws.dynamodb#ConditionExpression", + "ReturnValues": { + "target": "com.amazonaws.dynamodb#ReturnValue", "traits": { - "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional update to succeed.

\n

An expression can contain any of the following:

\n \n

For more information about condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer\n Guide.

" + "smithy.api#documentation": "

Use ReturnValues if you want to get the item attributes as they appear\n before or after they are updated. For UpdateItem, the valid values\n are:

\n \n

There is no additional cost associated with requesting a return value aside from the\n small network and processing overhead of receiving a larger response. No read capacity\n units are consumed.

\n

The values returned are strongly consistent.

" } }, - "AttributeUpdates": { - "target": "com.amazonaws.dynamodb#AttributeUpdates", - "traits": { - "smithy.api#documentation": "

This is a legacy parameter. Use UpdateExpression instead. For more information, see\n AttributeUpdates in the Amazon DynamoDB Developer Guide.

" - } + "ReturnConsumedCapacity": { + "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" }, - "Expected": { - "target": "com.amazonaws.dynamodb#ExpectedAttributeMap", + "ReturnItemCollectionMetrics": { + "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", "traits": { - "smithy.api#documentation": "

This is a legacy parameter. Use ConditionExpression instead. For more information, see\n Expected in the Amazon DynamoDB Developer Guide.

" + "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during\n the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" } }, - "ReturnConsumedCapacity": { - "target": "com.amazonaws.dynamodb#ReturnConsumedCapacity" - }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", + "UpdateExpression": { + "target": "com.amazonaws.dynamodb#UpdateExpression", "traits": { - "smithy.api#documentation": "

The name of the table containing the item to update.

", - "smithy.api#required": {} + "smithy.api#documentation": "

An expression that defines one or more attributes to be updated, the action to be\n performed on them, and new values for them.

\n

The following action values are available for UpdateExpression.

\n \n

You can have many actions in a single expression, such as the following: SET a=:value1,\n b=:value2 DELETE :value3, :value4, :value5\n

\n

For more information on update expressions, see Modifying Items and Attributes in the Amazon DynamoDB Developer Guide.

" } }, - "Key": { - "target": "com.amazonaws.dynamodb#Key", + "ConditionExpression": { + "target": "com.amazonaws.dynamodb#ConditionExpression", "traits": { - "smithy.api#documentation": "

The primary key of the item to be updated. Each element consists of an attribute name and a value for that attribute.

\n

For the primary key, you must provide all of the attributes. For example, with a simple primary key, you only need to provide a value for the partition key. For a composite primary key, you must provide values for both the partition key and the sort key.

", - "smithy.api#required": {} + "smithy.api#documentation": "

A condition that must be satisfied in order for a conditional update to succeed.

\n

An expression can contain any of the following:

\n \n

For more information about condition expressions, see Specifying Conditions in the Amazon DynamoDB Developer\n Guide.

" } }, - "ReturnItemCollectionMetrics": { - "target": "com.amazonaws.dynamodb#ReturnItemCollectionMetrics", + "ExpressionAttributeNames": { + "target": "com.amazonaws.dynamodb#ExpressionAttributeNameMap", "traits": { - "smithy.api#documentation": "

Determines whether item collection metrics are returned. If set to SIZE, the response includes statistics about item collections, if any, that were modified during\n the operation are returned in the response. If set to NONE (the default), no statistics are returned.

" + "smithy.api#documentation": "

One or more substitution tokens for attribute names in an expression. The following are some use cases for using ExpressionAttributeNames:

\n \n

Use the # character in an expression to dereference an attribute name. For example, consider the following attribute name:

\n \n

The name of this attribute conflicts with a reserved word, so it cannot be used directly\n in an expression. (For the complete list of reserved words, see Reserved Words in the Amazon DynamoDB Developer\n Guide.) To work around this, you could specify the following for\n ExpressionAttributeNames:

\n \n

You could then use this substitution in an expression, as in this example:

\n \n \n

Tokens that begin with the : character are expression attribute values, which are placeholders for the actual value at runtime.

\n
\n

For more information about expression attribute names, see Specifying Item Attributes in the Amazon DynamoDB Developer\n Guide.

" } }, "ExpressionAttributeValues": { @@ -7490,17 +8652,17 @@ "smithy.api#documentation": "

A map of attribute values as they appear before or after the UpdateItem\n operation, as determined by the ReturnValues parameter.

\n

The Attributes map is only present if ReturnValues was\n specified as something other than NONE in the request. Each element\n represents one attribute.

" } }, - "ItemCollectionMetrics": { - "target": "com.amazonaws.dynamodb#ItemCollectionMetrics", - "traits": { - "smithy.api#documentation": "

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

\n

Each ItemCollectionMetrics\n element consists of:

\n " - } - }, "ConsumedCapacity": { "target": "com.amazonaws.dynamodb#ConsumedCapacity", "traits": { "smithy.api#documentation": "

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

" } + }, + "ItemCollectionMetrics": { + "target": "com.amazonaws.dynamodb#ItemCollectionMetrics", + "traits": { + "smithy.api#documentation": "

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

\n

Each ItemCollectionMetrics\n element consists of:

\n " + } } }, "traits": { @@ -7517,10 +8679,10 @@ "smithy.api#required": {} } }, - "GlobalSecondaryIndexes": { - "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexList", + "KMSMasterKeyId": { + "target": "com.amazonaws.dynamodb#KMSMasterKeyId", "traits": { - "smithy.api#documentation": "

Replica-specific global secondary index settings.

" + "smithy.api#documentation": "

The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption.\n To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias\n ARN. Note that you should only provide this parameter if the key is different from\n the default DynamoDB KMS master key alias/aws/dynamodb.

" } }, "ProvisionedThroughputOverride": { @@ -7529,10 +8691,10 @@ "smithy.api#documentation": "

Replica-specific provisioned throughput. If not specified, uses the source table's\n provisioned throughput settings.

" } }, - "KMSMasterKeyId": { - "target": "com.amazonaws.dynamodb#KMSMasterKeyId", + "GlobalSecondaryIndexes": { + "target": "com.amazonaws.dynamodb#ReplicaGlobalSecondaryIndexList", "traits": { - "smithy.api#documentation": "

The AWS KMS customer master key (CMK) of the replica that should be used for AWS KMS encryption.\n To specify a CMK, use its key ID, Amazon Resource Name (ARN), alias name, or alias\n ARN. Note that you should only provide this parameter if the key is different from\n the default DynamoDB KMS master key alias/aws/dynamodb.

" + "smithy.api#documentation": "

Replica-specific global secondary index settings.

" } } }, @@ -7572,6 +8734,12 @@ "com.amazonaws.dynamodb#UpdateTableInput": { "type": "structure", "members": { + "AttributeDefinitions": { + "target": "com.amazonaws.dynamodb#AttributeDefinitions", + "traits": { + "smithy.api#documentation": "

An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

" + } + }, "TableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { @@ -7579,16 +8747,28 @@ "smithy.api#required": {} } }, + "BillingMode": { + "target": "com.amazonaws.dynamodb#BillingMode", + "traits": { + "smithy.api#documentation": "

Controls how you are charged for read and write throughput and how you manage capacity. \n When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial\n provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes \n over the past 30 minutes.

\n " + } + }, + "ProvisionedThroughput": { + "target": "com.amazonaws.dynamodb#ProvisionedThroughput", + "traits": { + "smithy.api#documentation": "

The new provisioned throughput settings for the specified table or index.

" + } + }, "GlobalSecondaryIndexUpdates": { "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexUpdateList", "traits": { "smithy.api#documentation": "

An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:

\n \n

You can create or delete only one global secondary index per UpdateTable operation.

\n

For more information, see Managing Global Secondary\n Indexes in the Amazon DynamoDB Developer Guide.

" } }, - "AttributeDefinitions": { - "target": "com.amazonaws.dynamodb#AttributeDefinitions", + "StreamSpecification": { + "target": "com.amazonaws.dynamodb#StreamSpecification", "traits": { - "smithy.api#documentation": "

An array of attributes that describe the key schema for the table and indexes. If you are adding a new global secondary index to the table, AttributeDefinitions must include the key element(s) of the new index.

" + "smithy.api#documentation": "

Represents the DynamoDB Streams configuration for the table.

\n \n

You receive a ResourceInUseException if you try to enable a stream on a\n table that already has a stream, or if you try to disable a stream on a table that\n doesn't have a stream.

\n
" } }, "SSESpecification": { @@ -7597,29 +8777,11 @@ "smithy.api#documentation": "

The new server-side encryption settings for the specified table.

" } }, - "BillingMode": { - "target": "com.amazonaws.dynamodb#BillingMode", - "traits": { - "smithy.api#documentation": "

Controls how you are charged for read and write throughput and how you manage capacity. \n When switching from pay-per-request to provisioned capacity, initial provisioned capacity values must be set. The initial\n provisioned capacity values are estimated based on the consumed read and write capacity of your table and global secondary indexes \n over the past 30 minutes.

\n " - } - }, "ReplicaUpdates": { "target": "com.amazonaws.dynamodb#ReplicationGroupUpdateList", "traits": { "smithy.api#documentation": "

A list of replica update actions (create, delete, or update) for the table.

\n \n

This property only applies to Version 2019.11.21 of global tables.

\n
" } - }, - "ProvisionedThroughput": { - "target": "com.amazonaws.dynamodb#ProvisionedThroughput", - "traits": { - "smithy.api#documentation": "

The new provisioned throughput settings for the specified table or index.

" - } - }, - "StreamSpecification": { - "target": "com.amazonaws.dynamodb#StreamSpecification", - "traits": { - "smithy.api#documentation": "

Represents the DynamoDB Streams configuration for the table.

\n \n

You receive a ResourceInUseException if you try to enable a stream on a\n table that already has a stream, or if you try to disable a stream on a table that\n doesn't have a stream.

\n
" - } } }, "traits": { @@ -7669,6 +8831,12 @@ "com.amazonaws.dynamodb#UpdateTableReplicaAutoScalingInput": { "type": "structure", "members": { + "GlobalSecondaryIndexUpdates": { + "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexAutoScalingUpdateList", + "traits": { + "smithy.api#documentation": "

Represents the auto scaling settings of the global secondary indexes of the replica\n to be updated.

" + } + }, "TableName": { "target": "com.amazonaws.dynamodb#TableName", "traits": { @@ -7679,12 +8847,6 @@ "ProvisionedWriteCapacityAutoScalingUpdate": { "target": "com.amazonaws.dynamodb#AutoScalingSettingsUpdate" }, - "GlobalSecondaryIndexUpdates": { - "target": "com.amazonaws.dynamodb#GlobalSecondaryIndexAutoScalingUpdateList", - "traits": { - "smithy.api#documentation": "

Represents the auto scaling settings of the global secondary indexes of the replica\n to be updated.

" - } - }, "ReplicaUpdates": { "target": "com.amazonaws.dynamodb#ReplicaAutoScalingUpdateList", "traits": { @@ -7736,17 +8898,17 @@ "com.amazonaws.dynamodb#UpdateTimeToLiveInput": { "type": "structure", "members": { - "TimeToLiveSpecification": { - "target": "com.amazonaws.dynamodb#TimeToLiveSpecification", + "TableName": { + "target": "com.amazonaws.dynamodb#TableName", "traits": { - "smithy.api#documentation": "

Represents the settings used to enable or disable Time to Live for the specified table.

", + "smithy.api#documentation": "

The name of the table to be configured.

", "smithy.api#required": {} } }, - "TableName": { - "target": "com.amazonaws.dynamodb#TableName", + "TimeToLiveSpecification": { + "target": "com.amazonaws.dynamodb#TimeToLiveSpecification", "traits": { - "smithy.api#documentation": "

The name of the table to be configured.

", + "smithy.api#documentation": "

Represents the settings used to enable or disable Time to Live for the specified table.

", "smithy.api#required": {} } } @@ -7769,17 +8931,17 @@ "com.amazonaws.dynamodb#WriteRequest": { "type": "structure", "members": { - "DeleteRequest": { - "target": "com.amazonaws.dynamodb#DeleteRequest", - "traits": { - "smithy.api#documentation": "

A request to perform a DeleteItem operation.

" - } - }, "PutRequest": { "target": "com.amazonaws.dynamodb#PutRequest", "traits": { "smithy.api#documentation": "

A request to perform a PutItem operation.

" } + }, + "DeleteRequest": { + "target": "com.amazonaws.dynamodb#DeleteRequest", + "traits": { + "smithy.api#documentation": "

A request to perform a DeleteItem operation.

" + } } }, "traits": { diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/lang/RustTypes.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/lang/RustTypes.kt index d050a7f28..c17ddebc8 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/lang/RustTypes.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/lang/RustTypes.kt @@ -41,6 +41,11 @@ sealed class RustType { override val name: kotlin.String = "Vec" } + data class Slice(val member: RustType) : RustType() { + override val name: kotlin.String + get() = "" + } + data class HashMap(val key: RustType, val value: RustType) : RustType() { // TODO: assert that underneath, the member is a String override val name: kotlin.String = "HashMap" @@ -76,6 +81,7 @@ fun RustType.render(): String = when (this) { is RustType.Integer -> this.name is RustType.String -> this.name is RustType.Vec -> "${this.name}<${this.member.render()}>" + is RustType.Slice -> "[${this.member.render()}]" is RustType.HashMap -> "${this.name}<${this.key.render()}, ${this.value.render()}>" is RustType.HashSet -> "${this.name}<${this.member.render()}>" is RustType.Reference -> "&${this.lifetime?.let { "'$it" } ?: ""} ${this.value.render()}" diff --git a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/JsonSerializerSymbolProvider.kt b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/JsonSerializerSymbolProvider.kt index 1cecdc994..09bf0edc6 100644 --- a/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/JsonSerializerSymbolProvider.kt +++ b/codegen/src/main/kotlin/software/amazon/smithy/rust/codegen/smithy/protocols/JsonSerializerSymbolProvider.kt @@ -139,7 +139,13 @@ class JsonSerializerSymbolProvider( targetType: RustType, body: RustWriter.() -> Unit ) { - val ref = RustType.Reference(lifetime = null, value = targetType) + // Convert Vec to `[T]` when present. This is needed to avoid + // Clippy complaining (and is also better in general). + val sliceToVec = when (targetType) { + is RustType.Vec -> RustType.Slice(targetType.member) + else -> targetType + } + val ref = RustType.Reference(lifetime = null, value = sliceToVec) val newSymbol = symbol.toBuilder().rustType(ref).build() rustWriter.rustBlock( "pub fn $functionName(_inp: \$T, _serializer: S) -> " + -- GitLab