@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) |
<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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
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 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()
.
DynamoKeyType
public 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()
.
DynamoKeyType
public String rangeKeyField()
The range key name.
public String rangeKeyValue()
The range key value.
public 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()
.
DynamoKeyType
public 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()
.
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()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.