@Generated(value="software.amazon.awssdk:codegen") public final class DynamoDBAction extends Object implements SdkPojo, Serializable, 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 and Description |
|---|---|
static interface |
DynamoDBAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DynamoDBAction.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
hashKeyField()
The hash key name.
|
DynamoKeyType |
hashKeyType()
The hash key type.
|
String |
hashKeyTypeAsString()
The hash key type.
|
String |
hashKeyValue()
The hash key value.
|
String |
operation()
The type of operation to be performed.
|
String |
payloadField()
The action payload.
|
String |
rangeKeyField()
The range key name.
|
DynamoKeyType |
rangeKeyType()
The range key type.
|
String |
rangeKeyTypeAsString()
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DynamoDBAction.Builder> |
serializableBuilderClass() |
String |
tableName()
The name of the DynamoDB table.
|
DynamoDBAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String tableName()
The name of the DynamoDB table.
public final String roleArn()
The ARN of the IAM role that grants access to the DynamoDB table.
public final 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 final String hashKeyField()
The hash key name.
public final String hashKeyValue()
The hash key value.
public final DynamoKeyType hashKeyType()
The hash key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version, hashKeyType will
return DynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
hashKeyTypeAsString().
DynamoKeyTypepublic final String hashKeyTypeAsString()
The hash key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version, hashKeyType will
return DynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
hashKeyTypeAsString().
DynamoKeyTypepublic final String rangeKeyField()
The range key name.
public final String rangeKeyValue()
The range key value.
public final DynamoKeyType rangeKeyType()
The range key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version, rangeKeyType will
return DynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
rangeKeyTypeAsString().
DynamoKeyTypepublic final String rangeKeyTypeAsString()
The range key type. Valid values are "STRING" or "NUMBER"
If the service returns an enum value that is not available in the current SDK version, rangeKeyType will
return DynamoKeyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
rangeKeyTypeAsString().
DynamoKeyTypepublic final String payloadField()
The action payload. This name can be customized.
public DynamoDBAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DynamoDBAction.Builder,DynamoDBAction>public static DynamoDBAction.Builder builder()
public static Class<? extends DynamoDBAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.