Class CfnStream
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.kinesis.CfnStream
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IStreamRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:38.789Z")
@Stability(Stable)
public class CfnStream
extends CfnResource
implements IInspectable, IStreamRef, ITaggable
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")
.desiredShardLevelMetrics(List.of("desiredShardLevelMetrics"))
.maxRecordSizeInKiB(123)
.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()))
.warmThroughputMiBps(123)
.build();
- See Also:
-
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.static interfaceRepresents the warm throughput configuration on the stream.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.kinesis.IStreamRef
IStreamRef.Jsii$Default, IStreamRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStream(software.amazon.jsii.JsiiObjectRef objRef) Create a newAWS::Kinesis::Stream.CfnStream(software.constructs.Construct scope, String id, CfnStreamProps props) Create a newAWS::Kinesis::Stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForStream(IStreamRef resource) static IStreamReffromStreamArn(software.constructs.Construct scope, String id, String arn) Creates a new IStreamRef from an ARN.static IStreamReffromStreamName(software.constructs.Construct scope, String id, String streamName) Creates a new IStreamRef from a streamName.The Amazon resource name (ARN) of the Kinesis stream, such asarn:aws:kinesis:us-east-2:123456789012:stream/mystream.Warm throughput configuration details for the stream.A list of shard-level metrics in properties to enable enhanced monitoring mode.The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.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.A reference to a Stream resource.getTags()Tag Manager which manages the tags for this resource.An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.The target warm throughput in MB/s that the stream should be scaled to handle.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnStream.renderProperties(Map<String, Object> props) voidsetDesiredShardLevelMetrics(List<String> value) A list of shard-level metrics in properties to enable enhanced monitoring mode.voidsetMaxRecordSizeInKiB(Number value) The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.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.voidsetTagsRaw(List<CfnTag> value) An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.voidsetWarmThroughputMiBps(Number value) The target warm throughput in MB/s that the stream should be scaled to handle.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnStreamProps props) Create a newAWS::Kinesis::Stream.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnStream
@Stability(Stable) public CfnStream(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::Kinesis::Stream.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
arnForStream
- Parameters:
resource- This parameter is required.
-
fromStreamArn
@Stability(Stable) @NotNull public static IStreamRef fromStreamArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IStreamRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromStreamName
@Stability(Stable) @NotNull public static IStreamRef fromStreamName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String streamName) Creates a new IStreamRef from a streamName.- Parameters:
scope- This parameter is required.id- This parameter is required.streamName- This parameter is required.
-
isCfnStream
Checks whether the given object is a CfnStream.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
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. -
getAttrWarmThroughputObject
Warm throughput configuration details for the stream.Only present for ON_DEMAND streams.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getStreamRef
A reference to a Stream resource.- Specified by:
getStreamRefin interfaceIStreamRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDesiredShardLevelMetrics
A list of shard-level metrics in properties to enable enhanced monitoring mode. -
setDesiredShardLevelMetrics
A list of shard-level metrics in properties to enable enhanced monitoring mode. -
getMaxRecordSizeInKiB
The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream. -
setMaxRecordSizeInKiB
The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream. -
getName
The name of the Kinesis stream. -
setName
The name of the Kinesis stream. -
getRetentionPeriodHours
The number of hours for the data records that are stored in shards to remain accessible. -
setRetentionPeriodHours
The number of hours for the data records that are stored in shards to remain accessible. -
getShardCount
The number of shards that the stream uses. -
setShardCount
The number of shards that the stream uses. -
getStreamEncryption
When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.Returns union: either
IResolvableorCfnStream.StreamEncryptionProperty -
setStreamEncryption
When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream. -
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. -
getStreamModeDetails
Specifies the capacity mode to which you want to set your data stream.Returns union: either
IResolvableorCfnStream.StreamModeDetailsProperty -
setStreamModeDetails
Specifies the capacity mode to which you want to set your data stream. -
setStreamModeDetails
@Stability(Stable) public void setStreamModeDetails(@Nullable CfnStream.StreamModeDetailsProperty value) Specifies the capacity mode to which you want to set your data stream. -
getTagsRaw
An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream. -
setTagsRaw
An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream. -
getWarmThroughputMiBps
The target warm throughput in MB/s that the stream should be scaled to handle. -
setWarmThroughputMiBps
The target warm throughput in MB/s that the stream should be scaled to handle.
-