# CfnStreamProps

Properties for defining a `CfnStream`.

Used as props by: [CfnStream](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisvideo.CfnStream.html)

- Source: Generated at build time
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesisvideo as kinesisvideo } from 'aws-cdk-lib';
const cfnStreamProps: kinesisvideo.CfnStreamProps = {
  dataRetentionInHours: 123,
  deviceName: 'deviceName',
  kmsKeyId: 'kmsKeyId',
  mediaType: 'mediaType',
  name: 'name',
  streamStorageConfiguration: {
    defaultStorageTier: 'defaultStorageTier',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kinesisvideo as kinesisvideo

cfn_stream_props = kinesisvideo.CfnStreamProps(
    data_retention_in_hours=123,
    device_name="deviceName",
    kms_key_id="kmsKeyId",
    media_type="mediaType",
    name="name",
    stream_storage_configuration=kinesisvideo.CfnStream.StreamStorageConfigurationProperty(
        default_storage_tier="defaultStorageTier"
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kinesisvideo.*;

CfnStreamProps cfnStreamProps = CfnStreamProps.builder()
        .dataRetentionInHours(123)
        .deviceName("deviceName")
        .kmsKeyId("kmsKeyId")
        .mediaType("mediaType")
        .name("name")
        .streamStorageConfiguration(StreamStorageConfigurationProperty.builder()
                .defaultStorageTier("defaultStorageTier")
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.KinesisVideo;

var cfnStreamProps = new CfnStreamProps {
    DataRetentionInHours = 123,
    DeviceName = "deviceName",
    KmsKeyId = "kmsKeyId",
    MediaType = "mediaType",
    Name = "name",
    StreamStorageConfiguration = new StreamStorageConfigurationProperty {
        DefaultStorageTier = "defaultStorageTier"
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnStreamProps := &CfnStreamProps{
	DataRetentionInHours: jsii.Number(123),
	DeviceName: jsii.String("deviceName"),
	KmsKeyId: jsii.String("kmsKeyId"),
	MediaType: jsii.String("mediaType"),
	Name: jsii.String("name"),
	StreamStorageConfiguration: &StreamStorageConfigurationProperty{
		DefaultStorageTier: jsii.String("defaultStorageTier"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `dataRetentionInHours`: number — How long the stream retains data, in hours.

- `deviceName`: string — The name of the device that is associated with the stream.

- `kmsKeyId`: string — The ID of the AWS Key Management Service ( AWS ) key that Kinesis Video Streams uses to encrypt data on the stream.

- `mediaType`: string — The `MediaType` of the stream.

- `name`: string — The name of the stream.

- `streamStorageConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnStream.StreamStorageConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_kinesisvideo.CfnStream.StreamStorageConfigurationProperty.html) — The configuration for stream storage, including the default storage tier for stream data.

  This configuration determines how stream data is stored and accessed, with different tiers offering varying levels of performance and cost optimization.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs to apply to this resource.

  For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
