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
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:32:04.671Z")
@Stability(Stable)
public class CfnStream
extends CfnResource
implements IInspectable, 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") .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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnStream
.static interface
Enables or updates server-side encryption using an AWS KMS key for a specified stream.static interface
Specifies 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnStream
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnStream
(software.amazon.jsii.JsiiObjectRef objRef) CfnStream
(software.constructs.Construct scope, String id, CfnStreamProps props) -
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()
Tag Manager which manages the tags for this resource.An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
The name of the Kinesis stream.void
setRetentionPeriodHours
(Number value) The number of hours for the data records that are stored in shards to remain accessible.void
setShardCount
(Number value) The number of shards that the stream uses.void
setStreamEncryption
(IResolvable value) When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.void
When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.void
setStreamModeDetails
(IResolvable value) Specifies the capacity mode to which you want to set your data stream.void
Specifies the capacity mode to which you want to set your data stream.void
setTagsRaw
(List<CfnTag> value) An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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 software.constructs.Construct scope, @NotNull String id, @Nullable CfnStreamProps props) - 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
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. -
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. -
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.
-