Class CfnStream
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Kinesis::Stream.
Creates a Kinesis stream that captures and transports data records that are emitted from data sources. For information about creating streams, see CreateStream in the Amazon Kinesis 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.kinesis.*;
CfnStream cfnStream = CfnStream.Builder.create(this, "MyCfnStream")
.name("name")
.retentionPeriodHours(123)
.shardCount(123)
.streamEncryption(StreamEncryptionProperty.builder()
.encryptionType("encryptionType")
.keyId("keyId")
.build())
.streamModeDetails(StreamModeDetailsProperty.builder()
.streamMode("streamMode")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnStream.static interfaceEnables or updates server-side encryption using an AWS KMS key for a specified stream.static interfaceSpecifies the capacity mode to which you want to set your data stream.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a newAWS::Kinesis::Stream.CfnStream(Construct scope, String id, CfnStreamProps props) Create a newAWS::Kinesis::Stream.protectedCfnStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStream(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon resource name (ARN) of the Kinesis stream, such asarn:aws:kinesis:us-east-2:123456789012:stream/mystream.getName()The name of the Kinesis stream.The number of hours for the data records that are stored in shards to remain accessible.The number of shards that the stream uses.When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.Specifies the capacity mode to which you want to set your data stream.getTags()An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe name of the Kinesis stream.voidsetRetentionPeriodHours(Number value) The number of hours for the data records that are stored in shards to remain accessible.voidsetShardCount(Number value) The number of shards that the stream uses.voidsetStreamEncryption(IResolvable value) When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.voidWhen specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.voidsetStreamModeDetails(IResolvable value) Specifies the capacity mode to which you want to set your data stream.voidSpecifies the capacity mode to which you want to set your data 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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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, @Nullable CfnStreamProps props) Create a newAWS::Kinesis::Stream.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
CfnStream
Create a newAWS::Kinesis::Stream.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon resource name (ARN) of the Kinesis stream, such asarn:aws:kinesis:us-east-2:123456789012:stream/mystream. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.For information about constraints for this property, see Tag Restrictions in the Amazon Kinesis Developer Guide .
-
getName
The name of the Kinesis stream.If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the stream name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
-
setName
The name of the Kinesis stream.If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the stream name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
-
getRetentionPeriodHours
The number of hours for the data records that are stored in shards to remain accessible.The default value is 24. For more information about the stream retention period, see Changing the Data Retention Period in the Amazon Kinesis Developer Guide.
-
setRetentionPeriodHours
The number of hours for the data records that are stored in shards to remain accessible.The default value is 24. For more information about the stream retention period, see Changing the Data Retention Period in the Amazon Kinesis Developer Guide.
-
getShardCount
The number of shards that the stream uses.For greater provisioned throughput, increase the number of shards.
-
setShardCount
The number of shards that the stream uses.For greater provisioned throughput, increase the number of shards.
-
getStreamEncryption
When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.Removing this property from your stack template and updating your stack disables encryption.
-
setStreamEncryption
@Stability(Stable) public void setStreamEncryption(@Nullable CfnStream.StreamEncryptionProperty value) When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.Removing this property from your stack template and updating your stack disables encryption.
-
setStreamEncryption
When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.Removing this property from your stack template and updating your stack disables encryption.
-
getStreamModeDetails
Specifies the capacity mode to which you want to set your data stream.Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
-
setStreamModeDetails
Specifies the capacity mode to which you want to set your data stream.Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
-
setStreamModeDetails
@Stability(Stable) public void setStreamModeDetails(@Nullable CfnStream.StreamModeDetailsProperty value) Specifies the capacity mode to which you want to set your data stream.Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
-