CfnStreamProps Struct
Properties for defining a CfnStream.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_qldb as qldb } from 'aws-cdk-lib';
const cfnStreamProps: qldb.CfnStreamProps = {
inclusiveStartTime: 'inclusiveStartTime',
kinesisConfiguration: {
aggregationEnabled: false,
streamArn: 'streamArn',
},
ledgerName: 'ledgerName',
roleArn: 'roleArn',
streamName: 'streamName',
// the properties below are optional
exclusiveEndTime: 'exclusiveEndTime',
tags: [{
key: 'key',
value: 'value',
}],
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_qldb as qldb
cfn_stream_props = qldb.CfnStreamProps(
inclusive_start_time="inclusiveStartTime",
kinesis_configuration=qldb.CfnStream.KinesisConfigurationProperty(
aggregation_enabled=False,
stream_arn="streamArn"
),
ledger_name="ledgerName",
role_arn="roleArn",
stream_name="streamName",
# the properties below are optional
exclusive_end_time="exclusiveEndTime",
tags=[CfnTag(
key="key",
value="value"
)]
)
// 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.*;
CfnStreamProps cfnStreamProps = CfnStreamProps.builder()
.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();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QLDB;
var cfnStreamProps = new CfnStreamProps {
InclusiveStartTime = "inclusiveStartTime",
KinesisConfiguration = new KinesisConfigurationProperty {
AggregationEnabled = false,
StreamArn = "streamArn"
},
LedgerName = "ledgerName",
RoleArn = "roleArn",
StreamName = "streamName",
// the properties below are optional
ExclusiveEndTime = "exclusiveEndTime",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnStreamProps := &CfnStreamProps{
InclusiveStartTime: jsii.String("inclusiveStartTime"),
KinesisConfiguration: &KinesisConfigurationProperty{
AggregationEnabled: jsii.Boolean(false),
StreamArn: jsii.String("streamArn"),
},
LedgerName: jsii.String("ledgerName"),
RoleArn: jsii.String("roleArn"),
StreamName: jsii.String("streamName"),
// the properties below are optional
ExclusiveEndTime: jsii.String("exclusiveEndTime"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
exclusiveEndTimeoptionalstringexclusive_end_timeoptionalstrexclusiveEndTimeoptionalStringExclusiveEndTimeoptionalstringExclusiveEndTimeoptional*string #If you don't define this parameter, the stream runs indefinitely until you cancel it.
The ExclusiveEndTime must be in ISO 8601 date and time format and in Universal Coordinated Time (UTC). For example: 2019-06-13T21:36:34Z .
inclusiveStartTimestringinclusive_start_timestrinclusiveStartTimeStringInclusiveStartTimestringInclusiveStartTime*string required #notes
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 before ExclusiveEndTime .
If you provide an InclusiveStartTime that is before the ledger's CreationDateTime , QLDB effectively defaults it to the ledger's CreationDateTime .
kinesisConfigurationIResolvable | CfnStream.kinesis_configurationtyping.Union[IResolvable, KinesisConfigurationProperty]kinesisConfigurationIResolvableKinesisConfigurationIResolvableKinesisConfigurationinterface{} required #roleArnstring | IRoleRefrole_arntyping.Union[str, IRoleRef]roleArnStringRoleArnstringRoleArninterface{} required #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.
notes
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 .