Class CfnStreamMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.qldb.mixins.CfnStreamMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamMixinProps>
- Enclosing interface:
CfnStreamMixinProps
@Stability(Stable)
public static final class CfnStreamMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamMixinProps>
A builder for
CfnStreamMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.exclusiveEndTime(String exclusiveEndTime) Sets the value ofCfnStreamMixinProps.getExclusiveEndTime()inclusiveStartTime(String inclusiveStartTime) Sets the value ofCfnStreamMixinProps.getInclusiveStartTime()kinesisConfiguration(IResolvable kinesisConfiguration) Sets the value ofCfnStreamMixinProps.getKinesisConfiguration()kinesisConfiguration(CfnStreamPropsMixin.KinesisConfigurationProperty kinesisConfiguration) Sets the value ofCfnStreamMixinProps.getKinesisConfiguration()ledgerName(String ledgerName) Sets the value ofCfnStreamMixinProps.getLedgerName()Sets the value ofCfnStreamMixinProps.getRoleArn()streamName(String streamName) Sets the value ofCfnStreamMixinProps.getStreamName()Sets the value ofCfnStreamMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exclusiveEndTime
Sets the value ofCfnStreamMixinProps.getExclusiveEndTime()- Parameters:
exclusiveEndTime- The exclusive date and time that specifies when the stream ends. If you don't define this parameter, the stream runs indefinitely until you cancel it.The
ExclusiveEndTimemust be inISO 8601date and time format and in Universal Coordinated Time (UTC). For example:2019-06-13T21:36:34Z.- Returns:
this
-
inclusiveStartTime
Sets the value ofCfnStreamMixinProps.getInclusiveStartTime()- Parameters:
inclusiveStartTime- The inclusive start date and time from which to start streaming journal data. This parameter must be inISO 8601date and time format and in Universal Coordinated Time (UTC). For example:2019-06-13T21:36:34Z.The
InclusiveStartTimecannot be in the future and must be beforeExclusiveEndTime.If you provide an
InclusiveStartTimethat is before the ledger'sCreationDateTime, QLDB effectively defaults it to the ledger'sCreationDateTime.- Returns:
this
-
kinesisConfiguration
@Stability(Stable) public CfnStreamMixinProps.Builder kinesisConfiguration(IResolvable kinesisConfiguration) Sets the value ofCfnStreamMixinProps.getKinesisConfiguration()- Parameters:
kinesisConfiguration- The configuration settings of the Kinesis Data Streams destination for your stream request.- Returns:
this
-
kinesisConfiguration
@Stability(Stable) public CfnStreamMixinProps.Builder kinesisConfiguration(CfnStreamPropsMixin.KinesisConfigurationProperty kinesisConfiguration) Sets the value ofCfnStreamMixinProps.getKinesisConfiguration()- Parameters:
kinesisConfiguration- The configuration settings of the Kinesis Data Streams destination for your stream request.- Returns:
this
-
ledgerName
Sets the value ofCfnStreamMixinProps.getLedgerName()- Parameters:
ledgerName- The name of the ledger.- Returns:
this
-
roleArn
Sets the value ofCfnStreamMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that grants QLDB permissions for a journal stream to write data records to a Kinesis Data Streams resource. To pass a role to QLDB when requesting a journal stream, you must have permissions to perform theiam:PassRoleaction on the IAM role resource. This is required for all journal stream requests.- Returns:
this
-
streamName
Sets the value ofCfnStreamMixinProps.getStreamName()- Parameters:
streamName- The name that you want to assign to the QLDB journal stream. User-defined names can help identify and indicate the purpose of a stream.Your stream name must be unique among other active streams for a given ledger. Stream names have the same naming constraints as ledger names, as defined in Quotas in Amazon QLDB in the Amazon QLDB Developer Guide .
- Returns:
this
-
tags
Sets the value ofCfnStreamMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStreamMixinProps>- Returns:
- a new instance of
CfnStreamMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-