Class CfnStream

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:18.810Z") @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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon resource name (ARN) of the Kinesis stream, such as arn:aws:kinesis:us-east-2:123456789012:stream/mystream .
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getName

      @Stability(Stable) @Nullable public String getName()
      The name of the Kinesis stream.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      The name of the Kinesis stream.
    • getRetentionPeriodHours

      @Stability(Stable) @Nullable public Number getRetentionPeriodHours()
      The number of hours for the data records that are stored in shards to remain accessible.
    • setRetentionPeriodHours

      @Stability(Stable) public void setRetentionPeriodHours(@Nullable Number value)
      The number of hours for the data records that are stored in shards to remain accessible.
    • getShardCount

      @Stability(Stable) @Nullable public Number getShardCount()
      The number of shards that the stream uses.
    • setShardCount

      @Stability(Stable) public void setShardCount(@Nullable Number value)
      The number of shards that the stream uses.
    • getStreamEncryption

      @Stability(Stable) @Nullable public Object getStreamEncryption()
      When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.
    • setStreamEncryption

      @Stability(Stable) public void setStreamEncryption(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public Object getStreamModeDetails()
      Specifies the capacity mode to which you want to set your data stream.
    • setStreamModeDetails

      @Stability(Stable) public void setStreamModeDetails(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.