public static final class CfnAlarmModel.DynamoDBProperty.Builder
extends java.lang.Object
CfnAlarmModel.DynamoDBProperty
Constructor and Description |
---|
Builder() |
public CfnAlarmModel.DynamoDBProperty.Builder hashKeyField(java.lang.String hashKeyField)
CfnAlarmModel.DynamoDBProperty.getHashKeyField()
hashKeyField
- The name of the hash key (also called the partition key). This parameter is required.
The hashKeyField
value must match the partition key of the target DynamoDB table.this
public CfnAlarmModel.DynamoDBProperty.Builder hashKeyValue(java.lang.String hashKeyValue)
CfnAlarmModel.DynamoDBProperty.getHashKeyValue()
hashKeyValue
- The value of the hash key (also called the partition key). This parameter is required.this
public CfnAlarmModel.DynamoDBProperty.Builder tableName(java.lang.String tableName)
CfnAlarmModel.DynamoDBProperty.getTableName()
tableName
- The name of the DynamoDB table. This parameter is required.
The tableName
value must match the table name of the target DynamoDB table.this
public CfnAlarmModel.DynamoDBProperty.Builder hashKeyType(java.lang.String hashKeyType)
CfnAlarmModel.DynamoDBProperty.getHashKeyType()
hashKeyType
- The data type for the hash key (also called the partition key). You can specify the following values:.
'STRING'
- The hash key is a string.'NUMBER'
- The hash key is a number.
If you don't specify hashKeyType
, the default value is 'STRING'
.
this
public CfnAlarmModel.DynamoDBProperty.Builder operation(java.lang.String operation)
CfnAlarmModel.DynamoDBProperty.getOperation()
operation
- The type of operation to perform. You can specify the following values:.
'INSERT'
- Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key.'UPDATE'
- Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.'DELETE'
- Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key.
If you don't specify this parameter, AWS IoT Events triggers the 'INSERT'
operation.
this
public CfnAlarmModel.DynamoDBProperty.Builder payload(IResolvable payload)
CfnAlarmModel.DynamoDBProperty.getPayload()
payload
- Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression
.this
public CfnAlarmModel.DynamoDBProperty.Builder payload(CfnAlarmModel.PayloadProperty payload)
CfnAlarmModel.DynamoDBProperty.getPayload()
payload
- Information needed to configure the payload.
By default, AWS IoT Events generates a standard payload in JSON for any action. This action payload contains all attribute-value pairs that have the information about the detector model instance and the event triggered the action. To configure the action payload, you can use contentExpression
.this
public CfnAlarmModel.DynamoDBProperty.Builder payloadField(java.lang.String payloadField)
CfnAlarmModel.DynamoDBProperty.getPayloadField()
payloadField
- The name of the DynamoDB column that receives the action payload.
If you don't specify this parameter, the name of the DynamoDB column is payload
.this
public CfnAlarmModel.DynamoDBProperty.Builder rangeKeyField(java.lang.String rangeKeyField)
CfnAlarmModel.DynamoDBProperty.getRangeKeyField()
rangeKeyField
- The name of the range key (also called the sort key).
The rangeKeyField
value must match the sort key of the target DynamoDB table.this
public CfnAlarmModel.DynamoDBProperty.Builder rangeKeyType(java.lang.String rangeKeyType)
CfnAlarmModel.DynamoDBProperty.getRangeKeyType()
rangeKeyType
- The data type for the range key (also called the sort key), You can specify the following values:.
'STRING'
- The range key is a string.'NUMBER'
- The range key is number.
If you don't specify rangeKeyField
, the default value is 'STRING'
.
this
public CfnAlarmModel.DynamoDBProperty.Builder rangeKeyValue(java.lang.String rangeKeyValue)
CfnAlarmModel.DynamoDBProperty.getRangeKeyValue()
rangeKeyValue
- The value of the range key (also called the sort key).this
public CfnAlarmModel.DynamoDBProperty build()
CfnAlarmModel.DynamoDBProperty
java.lang.NullPointerException
- if any required attribute was not provided