Interface DynamoDBv2Action.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DynamoDBv2Action.Builder,
,DynamoDBv2Action> SdkBuilder<DynamoDBv2Action.Builder,
,DynamoDBv2Action> SdkPojo
- Enclosing class:
DynamoDBv2Action
-
Method Summary
Modifier and TypeMethodDescriptiondefault DynamoDBv2Action.Builder
putItem
(Consumer<PutItemInput.Builder> putItem) Specifies the DynamoDB table to which the message data will be written.putItem
(PutItemInput putItem) Specifies the DynamoDB table to which the message data will be written.The ARN of the IAM role that grants access to the DynamoDB table.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
roleArn
The ARN of the IAM role that grants access to the DynamoDB table.
- Parameters:
roleArn
- The ARN of the IAM role that grants access to the DynamoDB table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
putItem
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }
Each attribute in the message payload will be written to a separate column in the DynamoDB database.
- Parameters:
putItem
- Specifies the DynamoDB table to which the message data will be written. For example:{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }
Each attribute in the message payload will be written to a separate column in the DynamoDB database.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
putItem
Specifies the DynamoDB table to which the message data will be written. For example:
{ "dynamoDBv2": { "roleArn": "aws:iam:12341251:my-role" "putItem": { "tableName": "my-table" } } }
Each attribute in the message payload will be written to a separate column in the DynamoDB database.
This is a convenience method that creates an instance of thePutItemInput.Builder
avoiding the need to create one manually viaPutItemInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toputItem(PutItemInput)
.- Parameters:
putItem
- a consumer that will call methods onPutItemInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-