# Source: https://docs.datadoghq.com/ddsql_reference/data_directory/aws/aws.kinesis_stream.dataset.md

---
title: Kinesis Data Stream
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Kinesis Data Stream
---

# Kinesis Data Stream

Kinesis Data Stream is an AWS service that enables real-time collection and processing of large streams of data. It allows you to capture, store, and analyze data records from sources such as application logs, IoT devices, or clickstreams. Data is ingested in shards, which determine throughput capacity, and can be consumed by multiple applications simultaneously for analytics, monitoring, or machine learning.

```
aws.kinesis_stream
```

## Fields

| Title                     | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Description |
| ------------------------- | ---- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                      | core | string     |
| account_id                | core | string     |
| consumer_count            | core | int64      | The number of enhanced fan-out consumers registered with the stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| encryption_type           | core | string     | The encryption type used. This value is one of the following: <ul> <li> <code>KMS</code> </li> <li> <code>NONE</code> </li> </ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| enhanced_monitoring       | core | json       | Represents the current enhanced monitoring settings of the stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| key_id                    | core | string     | The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by "alias/".You can also use a master key owned by Kinesis Data Streams by specifying the alias <code>aws/kinesis</code>. <ul> <li> Key ARN example: <code>arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012</code> </li> <li> Alias ARN example: <code> arn:aws:kms:us-east-1:123456789012:alias/MyAliasName</code> </li> <li> Globally unique key ID example: <code>12345678-1234-1234-1234-123456789012</code> </li> <li> Alias name example: <code>alias/MyAliasName</code> </li> <li> Master key owned by Kinesis Data Streams: <code>alias/aws/kinesis</code> </li> </ul>                             |
| open_shard_count          | core | int64      | The number of open shards in the stream.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| retention_period_hours    | core | int64      | The current retention period, in hours.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| stream_arn                | core | string     | The Amazon Resource Name (ARN) for the stream being described.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| stream_creation_timestamp | core | timestamp  | The approximate time that the stream was created.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| stream_mode_details       | core | json       | Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an <b>on-demand</b> ycapacity mode and a <b>provisioned</b> capacity mode for your data streams.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| stream_name               | core | string     | The name of the stream being described.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| stream_status             | core | string     | The current status of the stream being described. The stream status is one of the following states: <ul> <li> <code>CREATING</code> - The stream is being created. Kinesis Data Streams immediately returns and sets <code>StreamStatus</code> to <code>CREATING</code>. </li> <li> <code>DELETING</code> - The stream is being deleted. The specified stream is in the <code>DELETING</code> state until Kinesis Data Streams completes the deletion. </li> <li> <code>ACTIVE</code> - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an <code>ACTIVE</code> stream. </li> <li> <code>UPDATING</code> - Shards in the stream are being merged or split. Read and write operations continue to work while the stream is in the <code>UPDATING</code> state. </li> </ul> |
| tags                      | core | hstore_csv |