1---2name: amazon-kinesis-video-streams3description: Amazon Kinesis Video Streams API skill. Use when working with Amazon Kinesis Video Streams for createSignalingChannel, createStream, deleteEdgeConfiguration. Covers 30 endpoints.4---5
6# Amazon Kinesis Video Streams
7API version: 2017-09-30
8
9## Auth
10AWS SigV4
11
12## Base URL
13Not specified.
14
15## Setup
161. Configure auth: AWS SigV4
173. POST /createSignalingChannel -- create first createSignalingChannel
18
19## Endpoints
20
2130 endpoints across 30 groups. See references/api-spec.lap for full details.
22
23### createSignalingChannel
24| Method | Path | Description |
25|--------|------|-------------|
26| POST | /createSignalingChannel | Creates a signaling channel. CreateSignalingChannel is an asynchronous operation. |
27
28### createStream
29| Method | Path | Description |
30|--------|------|-------------|
31| POST | /createStream | Creates a new Kinesis video stream. When you create a new stream, Kinesis Video Streams assigns it a version number. When you change the stream's metadata, Kinesis Video Streams updates the version. CreateStream is an asynchronous operation. For information about how the service works, see How it Works. You must have permissions for the KinesisVideo:CreateStream action. |
32
33### deleteEdgeConfiguration
34| Method | Path | Description |
35|--------|------|-------------|
36| POST | /deleteEdgeConfiguration | An asynchronous API that deletes a stream’s existing edge configuration, as well as the corresponding media from the Edge Agent. When you invoke this API, the sync status is set to DELETING. A deletion process starts, in which active edge jobs are stopped and all media is deleted from the edge device. The time to delete varies, depending on the total amount of stored media. If the deletion process fails, the sync status changes to DELETE_FAILED. You will need to re-try the deletion. When the deletion process has completed successfully, the edge configuration is no longer accessible. |
37
38### deleteSignalingChannel
39| Method | Path | Description |
40|--------|------|-------------|
41| POST | /deleteSignalingChannel | Deletes a specified signaling channel. DeleteSignalingChannel is an asynchronous operation. If you don't specify the channel's current version, the most recent version is deleted. |
42
43### deleteStream
44| Method | Path | Description |
45|--------|------|-------------|
46| POST | /deleteStream | Deletes a Kinesis video stream and the data contained in the stream. This method marks the stream for deletion, and makes the data in the stream inaccessible immediately. To ensure that you have the latest version of the stream before deleting it, you can specify the stream version. Kinesis Video Streams assigns a version to each stream. When you update a stream, Kinesis Video Streams assigns a new version number. To get the latest stream version, use the DescribeStream API. This operation requires permission for the KinesisVideo:DeleteStream action. |
47
48### describeEdgeConfiguration
49| Method | Path | Description |
50|--------|------|-------------|
51| POST | /describeEdgeConfiguration | Describes a stream’s edge configuration that was set using the StartEdgeConfigurationUpdate API and the latest status of the edge agent's recorder and uploader jobs. Use this API to get the status of the configuration to determine if the configuration is in sync with the Edge Agent. Use this API to evaluate the health of the Edge Agent. |
52
53### describeImageGenerationConfiguration
54| Method | Path | Description |
55|--------|------|-------------|
56| POST | /describeImageGenerationConfiguration | Gets the ImageGenerationConfiguration for a given Kinesis video stream. |
57
58### describeMappedResourceConfiguration
59| Method | Path | Description |
60|--------|------|-------------|
61| POST | /describeMappedResourceConfiguration | Returns the most current information about the stream. The streamName or streamARN should be provided in the input. |
62
63### describeMediaStorageConfiguration
64| Method | Path | Description |
65|--------|------|-------------|
66| POST | /describeMediaStorageConfiguration | Returns the most current information about the channel. Specify the ChannelName or ChannelARN in the input. |
67
68### describeNotificationConfiguration
69| Method | Path | Description |
70|--------|------|-------------|
71| POST | /describeNotificationConfiguration | Gets the NotificationConfiguration for a given Kinesis video stream. |
72
73### describeSignalingChannel
74| Method | Path | Description |
75|--------|------|-------------|
76| POST | /describeSignalingChannel | Returns the most current information about the signaling channel. You must specify either the name or the Amazon Resource Name (ARN) of the channel that you want to describe. |
77
78### describeStream
79| Method | Path | Description |
80|--------|------|-------------|
81| POST | /describeStream | Returns the most current information about the specified stream. You must specify either the StreamName or the StreamARN. |
82
83### getDataEndpoint
84| Method | Path | Description |
85|--------|------|-------------|
86| POST | /getDataEndpoint | Gets an endpoint for a specified stream for either reading or writing. Use this endpoint in your application to read from the specified stream (using the GetMedia or GetMediaForFragmentList operations) or write to it (using the PutMedia operation). The returned endpoint does not have the API name appended. The client needs to add the API name to the returned endpoint. In the request, specify the stream either by StreamName or StreamARN. |
87
88### getSignalingChannelEndpoint
89| Method | Path | Description |
90|--------|------|-------------|
91| POST | /getSignalingChannelEndpoint | Provides an endpoint for the specified signaling channel to send and receive messages. This API uses the SingleMasterChannelEndpointConfiguration input parameter, which consists of the Protocols and Role properties. Protocols is used to determine the communication mechanism. For example, if you specify WSS as the protocol, this API produces a secure websocket endpoint. If you specify HTTPS as the protocol, this API generates an HTTPS endpoint. Role determines the messaging permissions. A MASTER role results in this API generating an endpoint that a client can use to communicate with any of the viewers on the channel. A VIEWER role results in this API generating an endpoint that a client can use to communicate only with a MASTER. |
92
93### listEdgeAgentConfigurations
94| Method | Path | Description |
95|--------|------|-------------|
96| POST | /listEdgeAgentConfigurations | Returns an array of edge configurations associated with the specified Edge Agent. In the request, you must specify the Edge Agent HubDeviceArn. |
97
98### listSignalingChannels
99| Method | Path | Description |
100|--------|------|-------------|
101| POST | /listSignalingChannels | Returns an array of ChannelInfo objects. Each object describes a signaling channel. To retrieve only those channels that satisfy a specific condition, you can specify a ChannelNameCondition. |
102
103### listStreams
104| Method | Path | Description |
105|--------|------|-------------|
106| POST | /listStreams | Returns an array of StreamInfo objects. Each object describes a stream. To retrieve only streams that satisfy a specific condition, you can specify a StreamNameCondition. |
107
108### ListTagsForResource
109| Method | Path | Description |
110|--------|------|-------------|
111| POST | /ListTagsForResource | Returns a list of tags associated with the specified signaling channel. |
112
113### listTagsForStream
114| Method | Path | Description |
115|--------|------|-------------|
116| POST | /listTagsForStream | Returns a list of tags associated with the specified stream. In the request, you must specify either the StreamName or the StreamARN. |
117
118### startEdgeConfigurationUpdate
119| Method | Path | Description |
120|--------|------|-------------|
121| POST | /startEdgeConfigurationUpdate | An asynchronous API that updates a stream’s existing edge configuration. The Kinesis Video Stream will sync the stream’s edge configuration with the Edge Agent IoT Greengrass component that runs on an IoT Hub Device, setup at your premise. The time to sync can vary and depends on the connectivity of the Hub Device. The SyncStatus will be updated as the edge configuration is acknowledged, and synced with the Edge Agent. If this API is invoked for the first time, a new edge configuration will be created for the stream, and the sync status will be set to SYNCING. You will have to wait for the sync status to reach a terminal state such as: IN_SYNC, or SYNC_FAILED, before using this API again. If you invoke this API during the syncing process, a ResourceInUseException will be thrown. The connectivity of the stream’s edge configuration and the Edge Agent will be retried for 15 minutes. After 15 minutes, the status will transition into the SYNC_FAILED state. To move an edge configuration from one device to another, use DeleteEdgeConfiguration to delete the current edge configuration. You can then invoke StartEdgeConfigurationUpdate with an updated Hub Device ARN. |
122
123### TagResource
124| Method | Path | Description |
125|--------|------|-------------|
126| POST | /TagResource | Adds one or more tags to a signaling channel. A tag is a key-value pair (the value is optional) that you can define and assign to Amazon Web Services resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the Billing and Cost Management and Cost Management User Guide. |
127
128### tagStream
129| Method | Path | Description |
130|--------|------|-------------|
131| POST | /tagStream | Adds one or more tags to a stream. A tag is a key-value pair (the value is optional) that you can define and assign to Amazon Web Services resources. If you specify a tag that already exists, the tag value is replaced with the value that you specify in the request. For more information, see Using Cost Allocation Tags in the Billing and Cost Management and Cost Management User Guide. You must provide either the StreamName or the StreamARN. This operation requires permission for the KinesisVideo:TagStream action. A Kinesis video stream can support up to 50 tags. |
132
133### UntagResource
134| Method | Path | Description |
135|--------|------|-------------|
136| POST | /UntagResource | Removes one or more tags from a signaling channel. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored. |
137
138### untagStream
139| Method | Path | Description |
140|--------|------|-------------|
141| POST | /untagStream | Removes one or more tags from a stream. In the request, specify only a tag key or keys; don't specify the value. If you specify a tag key that does not exist, it's ignored. In the request, you must provide the StreamName or StreamARN. |
142
143### updateDataRetention
144| Method | Path | Description |
145|--------|------|-------------|
146| POST | /updateDataRetention | Increases or decreases the stream's data retention period by the value that you specify. To indicate whether you want to increase or decrease the data retention period, specify the Operation parameter in the request body. In the request, you must specify either the StreamName or the StreamARN. This operation requires permission for the KinesisVideo:UpdateDataRetention action. Changing the data retention period affects the data in the stream as follows: If the data retention period is increased, existing data is retained for the new retention period. For example, if the data retention period is increased from one hour to seven hours, all existing data is retained for seven hours. If the data retention period is decreased, existing data is retained for the new retention period. For example, if the data retention period is decreased from seven hours to one hour, all existing data is retained for one hour, and any data older than one hour is deleted immediately. |
147
148### updateImageGenerationConfiguration
149| Method | Path | Description |
150|--------|------|-------------|
151| POST | /updateImageGenerationConfiguration | Updates the StreamInfo and ImageProcessingConfiguration fields. |
152
153### updateMediaStorageConfiguration
154| Method | Path | Description |
155|--------|------|-------------|
156| POST | /updateMediaStorageConfiguration | Associates a SignalingChannel to a stream to store the media. There are two signaling modes that you can specify : If StorageStatus is enabled, the data will be stored in the StreamARN provided. In order for WebRTC Ingestion to work, the stream must have data retention enabled. If StorageStatus is disabled, no data will be stored, and the StreamARN parameter will not be needed. If StorageStatus is enabled, direct peer-to-peer (master-viewer) connections no longer occur. Peers connect directly to the storage session. You must call the JoinStorageSession API to trigger an SDP offer send and establish a connection between a peer and the storage session. |
157
158### updateNotificationConfiguration
159| Method | Path | Description |
160|--------|------|-------------|
161| POST | /updateNotificationConfiguration | Updates the notification information for a stream. |
162
163### updateSignalingChannel
164| Method | Path | Description |
165|--------|------|-------------|
166| POST | /updateSignalingChannel | Updates the existing signaling channel. This is an asynchronous operation and takes time to complete. If the MessageTtlSeconds value is updated (either increased or reduced), it only applies to new messages sent via this channel after it's been updated. Existing messages are still expired as per the previous MessageTtlSeconds value. |
167
168### updateStream
169| Method | Path | Description |
170|--------|------|-------------|
171| POST | /updateStream | Updates stream metadata, such as the device name and media type. You must provide the stream name or the Amazon Resource Name (ARN) of the stream. To make sure that you have the latest version of the stream before updating it, you can specify the stream version. Kinesis Video Streams assigns a version to each stream. When you update a stream, Kinesis Video Streams assigns a new version number. To get the latest stream version, use the DescribeStream API. UpdateStream is an asynchronous operation, and takes time to complete. |
172
173## Common Questions
174
175Match user requests to endpoints in references/api-spec.lap. Key patterns:
176- "Create a createSignalingChannel?" -> POST /createSignalingChannel
177- "Create a createStream?" -> POST /createStream
178- "Create a deleteEdgeConfiguration?" -> POST /deleteEdgeConfiguration
179- "Create a deleteSignalingChannel?" -> POST /deleteSignalingChannel
180- "Create a deleteStream?" -> POST /deleteStream
181- "Create a describeEdgeConfiguration?" -> POST /describeEdgeConfiguration
182- "Create a describeImageGenerationConfiguration?" -> POST /describeImageGenerationConfiguration
183- "Create a describeMappedResourceConfiguration?" -> POST /describeMappedResourceConfiguration
184- "Create a describeMediaStorageConfiguration?" -> POST /describeMediaStorageConfiguration
185- "Create a describeNotificationConfiguration?" -> POST /describeNotificationConfiguration
186- "Create a describeSignalingChannel?" -> POST /describeSignalingChannel
187- "Create a describeStream?" -> POST /describeStream
188- "Create a getDataEndpoint?" -> POST /getDataEndpoint
189- "Create a getSignalingChannelEndpoint?" -> POST /getSignalingChannelEndpoint
190- "Create a listEdgeAgentConfiguration?" -> POST /listEdgeAgentConfigurations
191- "Create a listSignalingChannel?" -> POST /listSignalingChannels
192- "Create a listStream?" -> POST /listStreams
193- "Create a ListTagsForResource?" -> POST /ListTagsForResource
194- "Create a listTagsForStream?" -> POST /listTagsForStream
195- "Create a startEdgeConfigurationUpdate?" -> POST /startEdgeConfigurationUpdate
196- "Create a TagResource?" -> POST /TagResource
197- "Create a tagStream?" -> POST /tagStream
198- "Create a UntagResource?" -> POST /UntagResource
199- "Create a untagStream?" -> POST /untagStream
200- "Create a updateDataRetention?" -> POST /updateDataRetention
201- "Create a updateImageGenerationConfiguration?" -> POST /updateImageGenerationConfiguration
202- "Create a updateMediaStorageConfiguration?" -> POST /updateMediaStorageConfiguration
203- "Create a updateNotificationConfiguration?" -> POST /updateNotificationConfiguration
204- "Create a updateSignalingChannel?" -> POST /updateSignalingChannel
205- "Create a updateStream?" -> POST /updateStream
206- "How to authenticate?" -> See Auth section
207
208## Response Tips
209- Check response schemas in references/api-spec.lap for field details
210- Create/update endpoints typically return the created/updated object
211
212## References
213- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas
214
215> Generated from the official API spec by [LAP](https://lap.sh)