@Stability(value=Stable) public static final class CfnAlarmModel.DynamoDBProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnAlarmModel.DynamoDBProperty>
CfnAlarmModel.DynamoDBProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder hashKeyField(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@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder hashKeyValue(String hashKeyValue)
CfnAlarmModel.DynamoDBProperty.getHashKeyValue()hashKeyValue - The value of the hash key (also called the partition key). This parameter is required.this@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder tableName(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@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder hashKeyType(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@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder operation(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@Stability(value=Stable) 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@Stability(value=Stable) 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@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder payloadField(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@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder rangeKeyField(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@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder rangeKeyType(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@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty.Builder rangeKeyValue(String rangeKeyValue)
CfnAlarmModel.DynamoDBProperty.getRangeKeyValue()rangeKeyValue - The value of the range key (also called the sort key).this@Stability(value=Stable) public CfnAlarmModel.DynamoDBProperty build()
build in interface software.amazon.jsii.Builder<CfnAlarmModel.DynamoDBProperty>CfnAlarmModel.DynamoDBPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.