Interface DynamoUpdateItemProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,TaskStateBaseProps
- All Known Implementing Classes:
DynamoUpdateItemProps.Jsii$Proxy
Example:
Table myTable; DynamoUpdateItem.Builder.create(this, "UpdateItem") .key(Map.of( "MessageId", DynamoAttributeValue.fromString("message-007"))) .table(myTable) .expressionAttributeValues(Map.of( ":val", DynamoAttributeValue.numberFromString(JsonPath.stringAt("$.Item.TotalCount.N")), ":rand", DynamoAttributeValue.fromNumber(20))) .updateExpression("SET TotalCount = :val + :rand") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forDynamoUpdateItemProps
static final class
An implementation forDynamoUpdateItemProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
A condition that must be satisfied in order for a conditional DeleteItem to succeed.One or more substitution tokens for attribute names in an expression.default Map<String,
DynamoAttributeValue> One or more values that can be substituted in an expression.getKey()
Primary key of the item to retrieve.default DynamoConsumedCapacity
Determines the level of detail about provisioned throughput consumption that is returned in the response.default DynamoItemCollectionMetrics
Determines whether item collection metrics are returned.default DynamoReturnValues
Use ReturnValues if you want to get the item attributes as they appeared before they were deleted.getTable()
The name of the table containing the requested item.default String
An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods inherited from interface software.amazon.awscdk.services.stepfunctions.TaskStateBaseProps
getComment, getCredentials, getHeartbeat, getHeartbeatTimeout, getInputPath, getIntegrationPattern, getOutputPath, getResultPath, getResultSelector, getStateName, getTaskTimeout, getTimeout
-
Method Details
-
getKey
Primary key of the item to retrieve.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.
- See Also:
-
getTable
The name of the table containing the requested item. -
getConditionExpression
A condition that must be satisfied in order for a conditional DeleteItem to succeed.Default: - No condition expression
- See Also:
-
getExpressionAttributeNames
One or more substitution tokens for attribute names in an expression.Default: - No expression attribute names
- See Also:
-
getExpressionAttributeValues
@Stability(Stable) @Nullable default Map<String,DynamoAttributeValue> getExpressionAttributeValues()One or more values that can be substituted in an expression.Default: - No expression attribute values
- See Also:
-
getReturnConsumedCapacity
Determines the level of detail about provisioned throughput consumption that is returned in the response.Default: DynamoConsumedCapacity.NONE
- See Also:
-
getReturnItemCollectionMetrics
Determines whether item collection metrics are returned.If set to SIZE, the response includes statistics about item collections, if any, that were modified during the operation are returned in the response. If set to NONE (the default), no statistics are returned.
Default: DynamoItemCollectionMetrics.NONE
-
getReturnValues
Use ReturnValues if you want to get the item attributes as they appeared before they were deleted.Default: DynamoReturnValues.NONE
- See Also:
-
getUpdateExpression
An expression that defines one or more attributes to be updated, the action to be performed on them, and new values for them.Default: - No update expression
- See Also:
-
builder
- Returns:
- a
DynamoUpdateItemProps.Builder
ofDynamoUpdateItemProps
-