Class KinesisPutRecordAction.Builder
java.lang.Object
software.amazon.awscdk.services.iot.actions.alpha.KinesisPutRecordAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KinesisPutRecordAction>
- Enclosing class:
KinesisPutRecordAction
@Stability(Experimental)
public static final class KinesisPutRecordAction.Builder
extends Object
implements software.amazon.jsii.Builder<KinesisPutRecordAction>
(experimental) A fluent builder for
KinesisPutRecordAction
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
partitionKey
(String partitionKey) (experimental) The partition key used to determine to which shard the data is written.(experimental) The IAM role that allows access to AWS service.
-
Method Details
-
create
- Parameters:
stream
- The Kinesis Data stream to which to put records. This parameter is required.- Returns:
- a new instance of
KinesisPutRecordAction.Builder
.
-
role
(experimental) The IAM role that allows access to AWS service.Default: a new role will be created
- Parameters:
role
- The IAM role that allows access to AWS service. This parameter is required.- Returns:
this
-
partitionKey
(experimental) The partition key used to determine to which shard the data is written.The partition key is usually composed of an expression (for example, ${topic()} or ${timestamp()}).
- Parameters:
partitionKey
- The partition key used to determine to which shard the data is written. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KinesisPutRecordAction>
- Returns:
- a newly built instance of
KinesisPutRecordAction
.
-