Class CfnStream
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::QLDB::Stream
.
The AWS::QLDB::Stream
resource specifies a journal stream for a given Amazon Quantum Ledger Database (Amazon QLDB) ledger. The stream captures every document revision that is committed to the ledger's journal and delivers the data to a specified Amazon Kinesis Data Streams resource.
For more information, see StreamJournalToKinesis in the Amazon QLDB API Reference .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.qldb.*; CfnStream cfnStream = CfnStream.Builder.create(this, "MyCfnStream") .inclusiveStartTime("inclusiveStartTime") .kinesisConfiguration(KinesisConfigurationProperty.builder() .aggregationEnabled(false) .streamArn("streamArn") .build()) .ledgerName("ledgerName") .roleArn("roleArn") .streamName("streamName") // the properties below are optional .exclusiveEndTime("exclusiveEndTime") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnStream
.static interface
The configuration settings of the Amazon Kinesis Data Streams destination for an Amazon QLDB journal stream.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the QLDB journal stream.The unique ID that QLDB assigns to each QLDB journal stream.The exclusive date and time that specifies when the stream ends.The inclusive start date and time from which to start streaming journal data.The configuration settings of the Kinesis Data Streams destination for your stream request.The name of the ledger.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.The name that you want to assign to the QLDB journal stream.getTags()
An array of key-value pairs to apply to this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setExclusiveEndTime
(String value) The exclusive date and time that specifies when the stream ends.void
setInclusiveStartTime
(String value) The inclusive start date and time from which to start streaming journal data.void
The configuration settings of the Kinesis Data Streams destination for your stream request.void
The configuration settings of the Kinesis Data Streams destination for your stream request.void
setLedgerName
(String value) The name of the ledger.void
setRoleArn
(String value) 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.void
setStreamName
(String value) The name that you want to assign to the QLDB journal stream.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnStream
protected CfnStream(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStream
protected CfnStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStream
@Stability(Stable) public CfnStream(@NotNull Construct scope, @NotNull String id, @NotNull CfnStreamProps props) Create a newAWS::QLDB::Stream
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the QLDB journal stream.For example:
arn:aws:qldb:us-east-1:123456789012:stream/exampleLedger/IiPT4brpZCqCq3f4MTHbYy
. -
getAttrId
The unique ID that QLDB assigns to each QLDB journal stream.For example:
IiPT4brpZCqCq3f4MTHbYy
. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getInclusiveStartTime
The inclusive start date and time from which to start streaming journal data.This parameter must be in
ISO 8601
date and time format and in Universal Coordinated Time (UTC). For example:2019-06-13T21:36:34Z
.The
InclusiveStartTime
cannot be in the future and must be beforeExclusiveEndTime
.If you provide an
InclusiveStartTime
that is before the ledger'sCreationDateTime
, QLDB effectively defaults it to the ledger'sCreationDateTime
. -
setInclusiveStartTime
The inclusive start date and time from which to start streaming journal data.This parameter must be in
ISO 8601
date and time format and in Universal Coordinated Time (UTC). For example:2019-06-13T21:36:34Z
.The
InclusiveStartTime
cannot be in the future and must be beforeExclusiveEndTime
.If you provide an
InclusiveStartTime
that is before the ledger'sCreationDateTime
, QLDB effectively defaults it to the ledger'sCreationDateTime
. -
getKinesisConfiguration
The configuration settings of the Kinesis Data Streams destination for your stream request. -
setKinesisConfiguration
The configuration settings of the Kinesis Data Streams destination for your stream request. -
setKinesisConfiguration
@Stability(Stable) public void setKinesisConfiguration(@NotNull CfnStream.KinesisConfigurationProperty value) The configuration settings of the Kinesis Data Streams destination for your stream request. -
getLedgerName
The name of the ledger. -
setLedgerName
The name of the ledger. -
getRoleArn
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 the
iam:PassRole
action on the IAM role resource. This is required for all journal stream requests. -
setRoleArn
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 the
iam:PassRole
action on the IAM role resource. This is required for all journal stream requests. -
getStreamName
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 .
-
setStreamName
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 .
-
getExclusiveEndTime
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
ExclusiveEndTime
must be inISO 8601
date and time format and in Universal Coordinated Time (UTC). For example:2019-06-13T21:36:34Z
. -
setExclusiveEndTime
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
ExclusiveEndTime
must be inISO 8601
date and time format and in Universal Coordinated Time (UTC). For example:2019-06-13T21:36:34Z
.
-