StructuredPojo
, ToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>
@Generated("software.amazon.awssdk:codegen") public class DynamoDBAction extends Object implements StructuredPojo, ToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>
Describes an action to write to a DynamoDB table.
The tableName
, hashKeyField
, and rangeKeyField
values must match the values
used when you created the table.
The hashKeyValue
and rangeKeyvalue
fields use a substitution template syntax. These
templates provide data at runtime. The syntax is as follows: ${sql-expression}.
You can specify any valid expression in a WHERE or SELECT clause, including JSON properties, comparisons, calculations, and functions. For example, the following field uses the third level of the topic:
"hashKeyValue": "${topic(3)}"
The following field uses the timestamp:
"rangeKeyValue": "${timestamp()}"
Modifier and Type | Class | Description |
---|---|---|
static interface |
DynamoDBAction.Builder |
Modifier and Type | Method | Description |
---|---|---|
static DynamoDBAction.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
hashKeyField() |
The hash key name.
|
String |
hashKeyType() |
The hash key type.
|
String |
hashKeyValue() |
The hash key value.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
operation() |
The type of operation to be performed.
|
String |
payloadField() |
The action payload.
|
String |
rangeKeyField() |
The range key name.
|
String |
rangeKeyType() |
The range key type.
|
String |
rangeKeyValue() |
The range key value.
|
String |
roleArn() |
The ARN of the IAM role that grants access to the DynamoDB table.
|
static Class<? extends DynamoDBAction.Builder> |
serializableBuilderClass() |
|
String |
tableName() |
The name of the DynamoDB table.
|
DynamoDBAction.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
public String tableName()
The name of the DynamoDB table.
public String roleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
public String operation()
The type of operation to be performed. This follows the substitution template, so it can be
${operation}
, but the substitution must result in one of the following: INSERT
,
UPDATE
, or DELETE
.
${operation}
, but the substitution must result in one of the following: INSERT
,
UPDATE
, or DELETE
.public String hashKeyField()
The hash key name.
public String hashKeyValue()
The hash key value.
public String hashKeyType()
The hash key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public String rangeKeyField()
The range key name.
public String rangeKeyValue()
The range key value.
public String rangeKeyType()
The range key type. Valid values are "STRING" or "NUMBER"
DynamoKeyType
public String payloadField()
The action payload. This name can be customized.
public DynamoDBAction.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>
public static DynamoDBAction.Builder builder()
public static Class<? extends DynamoDBAction.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.