aws.kinesis.Stream
Explore with Pulumi AI
Provides a Kinesis Stream resource. Amazon Kinesis is a managed service that scales elastically for real-time processing of streaming big data.
For more details, see the Amazon Kinesis Documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const testStream = new aws.kinesis.Stream("test_stream", {
    name: "kinesis-test",
    shardCount: 1,
    retentionPeriod: 48,
    shardLevelMetrics: [
        "IncomingBytes",
        "OutgoingBytes",
    ],
    streamModeDetails: {
        streamMode: "PROVISIONED",
    },
    tags: {
        Environment: "test",
    },
});
import pulumi
import pulumi_aws as aws
test_stream = aws.kinesis.Stream("test_stream",
    name="kinesis-test",
    shard_count=1,
    retention_period=48,
    shard_level_metrics=[
        "IncomingBytes",
        "OutgoingBytes",
    ],
    stream_mode_details={
        "stream_mode": "PROVISIONED",
    },
    tags={
        "Environment": "test",
    })
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kinesis"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kinesis.NewStream(ctx, "test_stream", &kinesis.StreamArgs{
			Name:            pulumi.String("kinesis-test"),
			ShardCount:      pulumi.Int(1),
			RetentionPeriod: pulumi.Int(48),
			ShardLevelMetrics: pulumi.StringArray{
				pulumi.String("IncomingBytes"),
				pulumi.String("OutgoingBytes"),
			},
			StreamModeDetails: &kinesis.StreamStreamModeDetailsArgs{
				StreamMode: pulumi.String("PROVISIONED"),
			},
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("test"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var testStream = new Aws.Kinesis.Stream("test_stream", new()
    {
        Name = "kinesis-test",
        ShardCount = 1,
        RetentionPeriod = 48,
        ShardLevelMetrics = new[]
        {
            "IncomingBytes",
            "OutgoingBytes",
        },
        StreamModeDetails = new Aws.Kinesis.Inputs.StreamStreamModeDetailsArgs
        {
            StreamMode = "PROVISIONED",
        },
        Tags = 
        {
            { "Environment", "test" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kinesis.Stream;
import com.pulumi.aws.kinesis.StreamArgs;
import com.pulumi.aws.kinesis.inputs.StreamStreamModeDetailsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var testStream = new Stream("testStream", StreamArgs.builder()
            .name("kinesis-test")
            .shardCount(1)
            .retentionPeriod(48)
            .shardLevelMetrics(            
                "IncomingBytes",
                "OutgoingBytes")
            .streamModeDetails(StreamStreamModeDetailsArgs.builder()
                .streamMode("PROVISIONED")
                .build())
            .tags(Map.of("Environment", "test"))
            .build());
    }
}
resources:
  testStream:
    type: aws:kinesis:Stream
    name: test_stream
    properties:
      name: kinesis-test
      shardCount: 1
      retentionPeriod: 48
      shardLevelMetrics:
        - IncomingBytes
        - OutgoingBytes
      streamModeDetails:
        streamMode: PROVISIONED
      tags:
        Environment: test
Create Stream Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Stream(name: string, args?: StreamArgs, opts?: CustomResourceOptions);@overload
def Stream(resource_name: str,
           args: Optional[StreamArgs] = None,
           opts: Optional[ResourceOptions] = None)
@overload
def Stream(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           arn: Optional[str] = None,
           encryption_type: Optional[str] = None,
           enforce_consumer_deletion: Optional[bool] = None,
           kms_key_id: Optional[str] = None,
           name: Optional[str] = None,
           retention_period: Optional[int] = None,
           shard_count: Optional[int] = None,
           shard_level_metrics: Optional[Sequence[str]] = None,
           stream_mode_details: Optional[StreamStreamModeDetailsArgs] = None,
           tags: Optional[Mapping[str, str]] = None)func NewStream(ctx *Context, name string, args *StreamArgs, opts ...ResourceOption) (*Stream, error)public Stream(string name, StreamArgs? args = null, CustomResourceOptions? opts = null)
public Stream(String name, StreamArgs args)
public Stream(String name, StreamArgs args, CustomResourceOptions options)
type: aws:kinesis:Stream
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StreamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StreamArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StreamArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StreamArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StreamArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var streamResource = new Aws.Kinesis.Stream("streamResource", new()
{
    Arn = "string",
    EncryptionType = "string",
    EnforceConsumerDeletion = false,
    KmsKeyId = "string",
    Name = "string",
    RetentionPeriod = 0,
    ShardCount = 0,
    ShardLevelMetrics = new[]
    {
        "string",
    },
    StreamModeDetails = new Aws.Kinesis.Inputs.StreamStreamModeDetailsArgs
    {
        StreamMode = "string",
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := kinesis.NewStream(ctx, "streamResource", &kinesis.StreamArgs{
	Arn:                     pulumi.String("string"),
	EncryptionType:          pulumi.String("string"),
	EnforceConsumerDeletion: pulumi.Bool(false),
	KmsKeyId:                pulumi.String("string"),
	Name:                    pulumi.String("string"),
	RetentionPeriod:         pulumi.Int(0),
	ShardCount:              pulumi.Int(0),
	ShardLevelMetrics: pulumi.StringArray{
		pulumi.String("string"),
	},
	StreamModeDetails: &kinesis.StreamStreamModeDetailsArgs{
		StreamMode: pulumi.String("string"),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var streamResource = new Stream("streamResource", StreamArgs.builder()
    .arn("string")
    .encryptionType("string")
    .enforceConsumerDeletion(false)
    .kmsKeyId("string")
    .name("string")
    .retentionPeriod(0)
    .shardCount(0)
    .shardLevelMetrics("string")
    .streamModeDetails(StreamStreamModeDetailsArgs.builder()
        .streamMode("string")
        .build())
    .tags(Map.of("string", "string"))
    .build());
stream_resource = aws.kinesis.Stream("streamResource",
    arn="string",
    encryption_type="string",
    enforce_consumer_deletion=False,
    kms_key_id="string",
    name="string",
    retention_period=0,
    shard_count=0,
    shard_level_metrics=["string"],
    stream_mode_details={
        "stream_mode": "string",
    },
    tags={
        "string": "string",
    })
const streamResource = new aws.kinesis.Stream("streamResource", {
    arn: "string",
    encryptionType: "string",
    enforceConsumerDeletion: false,
    kmsKeyId: "string",
    name: "string",
    retentionPeriod: 0,
    shardCount: 0,
    shardLevelMetrics: ["string"],
    streamModeDetails: {
        streamMode: "string",
    },
    tags: {
        string: "string",
    },
});
type: aws:kinesis:Stream
properties:
    arn: string
    encryptionType: string
    enforceConsumerDeletion: false
    kmsKeyId: string
    name: string
    retentionPeriod: 0
    shardCount: 0
    shardLevelMetrics:
        - string
    streamModeDetails:
        streamMode: string
    tags:
        string: string
Stream Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Stream resource accepts the following input properties:
- Arn string
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- EncryptionType string
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- EnforceConsumer boolDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- KmsKey stringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- Name string
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- RetentionPeriod int
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- int
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- List<string>
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- StreamMode StreamDetails Stream Mode Details 
- Indicates the capacity mode of the data stream. Detailed below.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Arn string
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- EncryptionType string
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- EnforceConsumer boolDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- KmsKey stringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- Name string
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- RetentionPeriod int
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- int
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- []string
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- StreamMode StreamDetails Stream Mode Details Args 
- Indicates the capacity mode of the data stream. Detailed below.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- arn String
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryptionType String
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforceConsumer BooleanDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kmsKey StringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name String
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retentionPeriod Integer
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- Integer
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- List<String>
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- streamMode StreamDetails Stream Mode Details 
- Indicates the capacity mode of the data stream. Detailed below.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- arn string
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryptionType string
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforceConsumer booleanDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kmsKey stringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name string
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retentionPeriod number
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- number
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- string[]
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- streamMode StreamDetails Stream Mode Details 
- Indicates the capacity mode of the data stream. Detailed below.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- arn str
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryption_type str
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforce_consumer_ booldeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kms_key_ strid 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name str
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retention_period int
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- int
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- Sequence[str]
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- stream_mode_ Streamdetails Stream Mode Details Args 
- Indicates the capacity mode of the data stream. Detailed below.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- arn String
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryptionType String
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforceConsumer BooleanDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kmsKey StringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name String
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retentionPeriod Number
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- Number
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- List<String>
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- streamMode Property MapDetails 
- Indicates the capacity mode of the data stream. Detailed below.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
Outputs
All input properties are implicitly available as output properties. Additionally, the Stream resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Id string
- The provider-assigned unique ID for this managed resource.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- id string
- The provider-assigned unique ID for this managed resource.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- id str
- The provider-assigned unique ID for this managed resource.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- id String
- The provider-assigned unique ID for this managed resource.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Look up Existing Stream Resource
Get an existing Stream resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: StreamState, opts?: CustomResourceOptions): Stream@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        encryption_type: Optional[str] = None,
        enforce_consumer_deletion: Optional[bool] = None,
        kms_key_id: Optional[str] = None,
        name: Optional[str] = None,
        retention_period: Optional[int] = None,
        shard_count: Optional[int] = None,
        shard_level_metrics: Optional[Sequence[str]] = None,
        stream_mode_details: Optional[StreamStreamModeDetailsArgs] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None) -> Streamfunc GetStream(ctx *Context, name string, id IDInput, state *StreamState, opts ...ResourceOption) (*Stream, error)public static Stream Get(string name, Input<string> id, StreamState? state, CustomResourceOptions? opts = null)public static Stream get(String name, Output<String> id, StreamState state, CustomResourceOptions options)resources:  _:    type: aws:kinesis:Stream    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- EncryptionType string
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- EnforceConsumer boolDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- KmsKey stringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- Name string
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- RetentionPeriod int
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- ShardCount int
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- ShardLevel List<string>Metrics 
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- StreamMode StreamDetails Stream Mode Details 
- Indicates the capacity mode of the data stream. Detailed below.
- Dictionary<string, string>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- Arn string
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- EncryptionType string
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- EnforceConsumer boolDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- KmsKey stringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- Name string
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- RetentionPeriod int
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- ShardCount int
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- ShardLevel []stringMetrics 
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- StreamMode StreamDetails Stream Mode Details Args 
- Indicates the capacity mode of the data stream. Detailed below.
- map[string]string
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryptionType String
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforceConsumer BooleanDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kmsKey StringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name String
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retentionPeriod Integer
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- shardCount Integer
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- shardLevel List<String>Metrics 
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- streamMode StreamDetails Stream Mode Details 
- Indicates the capacity mode of the data stream. Detailed below.
- Map<String,String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn string
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryptionType string
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforceConsumer booleanDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kmsKey stringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name string
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retentionPeriod number
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- shardCount number
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- shardLevel string[]Metrics 
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- streamMode StreamDetails Stream Mode Details 
- Indicates the capacity mode of the data stream. Detailed below.
- {[key: string]: string}
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn str
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryption_type str
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforce_consumer_ booldeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kms_key_ strid 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name str
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retention_period int
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- shard_count int
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- shard_level_ Sequence[str]metrics 
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- stream_mode_ Streamdetails Stream Mode Details Args 
- Indicates the capacity mode of the data stream. Detailed below.
- Mapping[str, str]
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
- arn String
- The Amazon Resource Name (ARN) specifying the Stream (same as id)
- encryptionType String
- The encryption type to use. The only acceptable values are NONEorKMS. The default value isNONE.
- enforceConsumer BooleanDeletion 
- A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false.
- kmsKey StringId 
- The GUID for the customer-managed KMS key to use for encryption. You can also use a Kinesis-owned master key by specifying the alias alias/aws/kinesis.
- name String
- A name to identify the stream. This is unique to the AWS account and region the Stream is created in.
- retentionPeriod Number
- Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
- shardCount Number
- The number of shards that the stream will use. If the stream_modeisPROVISIONED, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
- shardLevel List<String>Metrics 
- A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
- streamMode Property MapDetails 
- Indicates the capacity mode of the data stream. Detailed below.
- Map<String>
- A map of tags to assign to the resource. If configured with a provider default_tagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider default_tagsconfiguration block.
Supporting Types
StreamStreamModeDetails, StreamStreamModeDetailsArgs        
- StreamMode string
- Specifies the capacity mode of the stream. Must be either PROVISIONEDorON_DEMAND.
- StreamMode string
- Specifies the capacity mode of the stream. Must be either PROVISIONEDorON_DEMAND.
- streamMode String
- Specifies the capacity mode of the stream. Must be either PROVISIONEDorON_DEMAND.
- streamMode string
- Specifies the capacity mode of the stream. Must be either PROVISIONEDorON_DEMAND.
- stream_mode str
- Specifies the capacity mode of the stream. Must be either PROVISIONEDorON_DEMAND.
- streamMode String
- Specifies the capacity mode of the stream. Must be either PROVISIONEDorON_DEMAND.
Import
Using pulumi import, import Kinesis Streams using the name. For example:
$ pulumi import aws:kinesis/stream:Stream test_stream pulumi-kinesis-test
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.