UNPKG

41.8 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class KinesisVideo extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: KinesisVideo.Types.ClientConfiguration)
13 config: Config & KinesisVideo.Types.ClientConfiguration;
14 /**
15 * Creates a signaling channel. CreateSignalingChannel is an asynchronous operation.
16 */
17 createSignalingChannel(params: KinesisVideo.Types.CreateSignalingChannelInput, callback?: (err: AWSError, data: KinesisVideo.Types.CreateSignalingChannelOutput) => void): Request<KinesisVideo.Types.CreateSignalingChannelOutput, AWSError>;
18 /**
19 * Creates a signaling channel. CreateSignalingChannel is an asynchronous operation.
20 */
21 createSignalingChannel(callback?: (err: AWSError, data: KinesisVideo.Types.CreateSignalingChannelOutput) => void): Request<KinesisVideo.Types.CreateSignalingChannelOutput, AWSError>;
22 /**
23 * 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.
24 */
25 createStream(params: KinesisVideo.Types.CreateStreamInput, callback?: (err: AWSError, data: KinesisVideo.Types.CreateStreamOutput) => void): Request<KinesisVideo.Types.CreateStreamOutput, AWSError>;
26 /**
27 * 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.
28 */
29 createStream(callback?: (err: AWSError, data: KinesisVideo.Types.CreateStreamOutput) => void): Request<KinesisVideo.Types.CreateStreamOutput, AWSError>;
30 /**
31 * 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.
32 */
33 deleteSignalingChannel(params: KinesisVideo.Types.DeleteSignalingChannelInput, callback?: (err: AWSError, data: KinesisVideo.Types.DeleteSignalingChannelOutput) => void): Request<KinesisVideo.Types.DeleteSignalingChannelOutput, AWSError>;
34 /**
35 * 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.
36 */
37 deleteSignalingChannel(callback?: (err: AWSError, data: KinesisVideo.Types.DeleteSignalingChannelOutput) => void): Request<KinesisVideo.Types.DeleteSignalingChannelOutput, AWSError>;
38 /**
39 * 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.
40 */
41 deleteStream(params: KinesisVideo.Types.DeleteStreamInput, callback?: (err: AWSError, data: KinesisVideo.Types.DeleteStreamOutput) => void): Request<KinesisVideo.Types.DeleteStreamOutput, AWSError>;
42 /**
43 * 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.
44 */
45 deleteStream(callback?: (err: AWSError, data: KinesisVideo.Types.DeleteStreamOutput) => void): Request<KinesisVideo.Types.DeleteStreamOutput, AWSError>;
46 /**
47 * Returns the most current information about the signaling channel. You must specify either the name or the ARN of the channel that you want to describe.
48 */
49 describeSignalingChannel(params: KinesisVideo.Types.DescribeSignalingChannelInput, callback?: (err: AWSError, data: KinesisVideo.Types.DescribeSignalingChannelOutput) => void): Request<KinesisVideo.Types.DescribeSignalingChannelOutput, AWSError>;
50 /**
51 * Returns the most current information about the signaling channel. You must specify either the name or the ARN of the channel that you want to describe.
52 */
53 describeSignalingChannel(callback?: (err: AWSError, data: KinesisVideo.Types.DescribeSignalingChannelOutput) => void): Request<KinesisVideo.Types.DescribeSignalingChannelOutput, AWSError>;
54 /**
55 * Returns the most current information about the specified stream. You must specify either the StreamName or the StreamARN.
56 */
57 describeStream(params: KinesisVideo.Types.DescribeStreamInput, callback?: (err: AWSError, data: KinesisVideo.Types.DescribeStreamOutput) => void): Request<KinesisVideo.Types.DescribeStreamOutput, AWSError>;
58 /**
59 * Returns the most current information about the specified stream. You must specify either the StreamName or the StreamARN.
60 */
61 describeStream(callback?: (err: AWSError, data: KinesisVideo.Types.DescribeStreamOutput) => void): Request<KinesisVideo.Types.DescribeStreamOutput, AWSError>;
62 /**
63 * 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.
64 */
65 getDataEndpoint(params: KinesisVideo.Types.GetDataEndpointInput, callback?: (err: AWSError, data: KinesisVideo.Types.GetDataEndpointOutput) => void): Request<KinesisVideo.Types.GetDataEndpointOutput, AWSError>;
66 /**
67 * 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.
68 */
69 getDataEndpoint(callback?: (err: AWSError, data: KinesisVideo.Types.GetDataEndpointOutput) => void): Request<KinesisVideo.Types.GetDataEndpointOutput, AWSError>;
70 /**
71 * 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, specifying WSS as the protocol, results in this API producing a secure websocket endpoint, and specifying HTTPS as the protocol, results in this API generating 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.
72 */
73 getSignalingChannelEndpoint(params: KinesisVideo.Types.GetSignalingChannelEndpointInput, callback?: (err: AWSError, data: KinesisVideo.Types.GetSignalingChannelEndpointOutput) => void): Request<KinesisVideo.Types.GetSignalingChannelEndpointOutput, AWSError>;
74 /**
75 * 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, specifying WSS as the protocol, results in this API producing a secure websocket endpoint, and specifying HTTPS as the protocol, results in this API generating 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.
76 */
77 getSignalingChannelEndpoint(callback?: (err: AWSError, data: KinesisVideo.Types.GetSignalingChannelEndpointOutput) => void): Request<KinesisVideo.Types.GetSignalingChannelEndpointOutput, AWSError>;
78 /**
79 * 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.
80 */
81 listSignalingChannels(params: KinesisVideo.Types.ListSignalingChannelsInput, callback?: (err: AWSError, data: KinesisVideo.Types.ListSignalingChannelsOutput) => void): Request<KinesisVideo.Types.ListSignalingChannelsOutput, AWSError>;
82 /**
83 * 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.
84 */
85 listSignalingChannels(callback?: (err: AWSError, data: KinesisVideo.Types.ListSignalingChannelsOutput) => void): Request<KinesisVideo.Types.ListSignalingChannelsOutput, AWSError>;
86 /**
87 * 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.
88 */
89 listStreams(params: KinesisVideo.Types.ListStreamsInput, callback?: (err: AWSError, data: KinesisVideo.Types.ListStreamsOutput) => void): Request<KinesisVideo.Types.ListStreamsOutput, AWSError>;
90 /**
91 * 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.
92 */
93 listStreams(callback?: (err: AWSError, data: KinesisVideo.Types.ListStreamsOutput) => void): Request<KinesisVideo.Types.ListStreamsOutput, AWSError>;
94 /**
95 * Returns a list of tags associated with the specified signaling channel.
96 */
97 listTagsForResource(params: KinesisVideo.Types.ListTagsForResourceInput, callback?: (err: AWSError, data: KinesisVideo.Types.ListTagsForResourceOutput) => void): Request<KinesisVideo.Types.ListTagsForResourceOutput, AWSError>;
98 /**
99 * Returns a list of tags associated with the specified signaling channel.
100 */
101 listTagsForResource(callback?: (err: AWSError, data: KinesisVideo.Types.ListTagsForResourceOutput) => void): Request<KinesisVideo.Types.ListTagsForResourceOutput, AWSError>;
102 /**
103 * Returns a list of tags associated with the specified stream. In the request, you must specify either the StreamName or the StreamARN.
104 */
105 listTagsForStream(params: KinesisVideo.Types.ListTagsForStreamInput, callback?: (err: AWSError, data: KinesisVideo.Types.ListTagsForStreamOutput) => void): Request<KinesisVideo.Types.ListTagsForStreamOutput, AWSError>;
106 /**
107 * Returns a list of tags associated with the specified stream. In the request, you must specify either the StreamName or the StreamARN.
108 */
109 listTagsForStream(callback?: (err: AWSError, data: KinesisVideo.Types.ListTagsForStreamOutput) => void): Request<KinesisVideo.Types.ListTagsForStreamOutput, AWSError>;
110 /**
111 * 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 AWS 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 AWS Billing and Cost Management User Guide.
112 */
113 tagResource(params: KinesisVideo.Types.TagResourceInput, callback?: (err: AWSError, data: KinesisVideo.Types.TagResourceOutput) => void): Request<KinesisVideo.Types.TagResourceOutput, AWSError>;
114 /**
115 * 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 AWS 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 AWS Billing and Cost Management User Guide.
116 */
117 tagResource(callback?: (err: AWSError, data: KinesisVideo.Types.TagResourceOutput) => void): Request<KinesisVideo.Types.TagResourceOutput, AWSError>;
118 /**
119 * 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 AWS 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 AWS Billing and Cost Management User Guide. You must provide either the StreamName or the StreamARN. This operation requires permission for the KinesisVideo:TagStream action. Kinesis video streams support up to 50 tags.
120 */
121 tagStream(params: KinesisVideo.Types.TagStreamInput, callback?: (err: AWSError, data: KinesisVideo.Types.TagStreamOutput) => void): Request<KinesisVideo.Types.TagStreamOutput, AWSError>;
122 /**
123 * 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 AWS 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 AWS Billing and Cost Management User Guide. You must provide either the StreamName or the StreamARN. This operation requires permission for the KinesisVideo:TagStream action. Kinesis video streams support up to 50 tags.
124 */
125 tagStream(callback?: (err: AWSError, data: KinesisVideo.Types.TagStreamOutput) => void): Request<KinesisVideo.Types.TagStreamOutput, AWSError>;
126 /**
127 * 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.
128 */
129 untagResource(params: KinesisVideo.Types.UntagResourceInput, callback?: (err: AWSError, data: KinesisVideo.Types.UntagResourceOutput) => void): Request<KinesisVideo.Types.UntagResourceOutput, AWSError>;
130 /**
131 * 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.
132 */
133 untagResource(callback?: (err: AWSError, data: KinesisVideo.Types.UntagResourceOutput) => void): Request<KinesisVideo.Types.UntagResourceOutput, AWSError>;
134 /**
135 * 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.
136 */
137 untagStream(params: KinesisVideo.Types.UntagStreamInput, callback?: (err: AWSError, data: KinesisVideo.Types.UntagStreamOutput) => void): Request<KinesisVideo.Types.UntagStreamOutput, AWSError>;
138 /**
139 * 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.
140 */
141 untagStream(callback?: (err: AWSError, data: KinesisVideo.Types.UntagStreamOutput) => void): Request<KinesisVideo.Types.UntagStreamOutput, AWSError>;
142 /**
143 * 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. The retention period that you specify replaces the current value. 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.
144 */
145 updateDataRetention(params: KinesisVideo.Types.UpdateDataRetentionInput, callback?: (err: AWSError, data: KinesisVideo.Types.UpdateDataRetentionOutput) => void): Request<KinesisVideo.Types.UpdateDataRetentionOutput, AWSError>;
146 /**
147 * 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. The retention period that you specify replaces the current value. 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.
148 */
149 updateDataRetention(callback?: (err: AWSError, data: KinesisVideo.Types.UpdateDataRetentionOutput) => void): Request<KinesisVideo.Types.UpdateDataRetentionOutput, AWSError>;
150 /**
151 * 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), then it only applies to new messages sent via this channel after it's been updated. Existing messages are still expire as per the previous MessageTtlSeconds value.
152 */
153 updateSignalingChannel(params: KinesisVideo.Types.UpdateSignalingChannelInput, callback?: (err: AWSError, data: KinesisVideo.Types.UpdateSignalingChannelOutput) => void): Request<KinesisVideo.Types.UpdateSignalingChannelOutput, AWSError>;
154 /**
155 * 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), then it only applies to new messages sent via this channel after it's been updated. Existing messages are still expire as per the previous MessageTtlSeconds value.
156 */
157 updateSignalingChannel(callback?: (err: AWSError, data: KinesisVideo.Types.UpdateSignalingChannelOutput) => void): Request<KinesisVideo.Types.UpdateSignalingChannelOutput, AWSError>;
158 /**
159 * 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.
160 */
161 updateStream(params: KinesisVideo.Types.UpdateStreamInput, callback?: (err: AWSError, data: KinesisVideo.Types.UpdateStreamOutput) => void): Request<KinesisVideo.Types.UpdateStreamOutput, AWSError>;
162 /**
163 * 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.
164 */
165 updateStream(callback?: (err: AWSError, data: KinesisVideo.Types.UpdateStreamOutput) => void): Request<KinesisVideo.Types.UpdateStreamOutput, AWSError>;
166}
167declare namespace KinesisVideo {
168 export type APIName = "PUT_MEDIA"|"GET_MEDIA"|"LIST_FRAGMENTS"|"GET_MEDIA_FOR_FRAGMENT_LIST"|"GET_HLS_STREAMING_SESSION_URL"|"GET_DASH_STREAMING_SESSION_URL"|string;
169 export interface ChannelInfo {
170 /**
171 * The name of the signaling channel.
172 */
173 ChannelName?: ChannelName;
174 /**
175 * The ARN of the signaling channel.
176 */
177 ChannelARN?: ResourceARN;
178 /**
179 * The type of the signaling channel.
180 */
181 ChannelType?: ChannelType;
182 /**
183 * Current status of the signaling channel.
184 */
185 ChannelStatus?: Status;
186 /**
187 * The time at which the signaling channel was created.
188 */
189 CreationTime?: Timestamp;
190 /**
191 * A structure that contains the configuration for the SINGLE_MASTER channel type.
192 */
193 SingleMasterConfiguration?: SingleMasterConfiguration;
194 /**
195 * The current version of the signaling channel.
196 */
197 Version?: Version;
198 }
199 export type ChannelInfoList = ChannelInfo[];
200 export type ChannelName = string;
201 export interface ChannelNameCondition {
202 /**
203 * A comparison operator. Currently, you can only specify the BEGINS_WITH operator, which finds signaling channels whose names begin with a given prefix.
204 */
205 ComparisonOperator?: ComparisonOperator;
206 /**
207 * A value to compare.
208 */
209 ComparisonValue?: ChannelName;
210 }
211 export type ChannelProtocol = "WSS"|"HTTPS"|string;
212 export type ChannelRole = "MASTER"|"VIEWER"|string;
213 export type ChannelType = "SINGLE_MASTER"|string;
214 export type ComparisonOperator = "BEGINS_WITH"|string;
215 export interface CreateSignalingChannelInput {
216 /**
217 * A name for the signaling channel that you are creating. It must be unique for each account and region.
218 */
219 ChannelName: ChannelName;
220 /**
221 * A type of the signaling channel that you are creating. Currently, SINGLE_MASTER is the only supported channel type.
222 */
223 ChannelType?: ChannelType;
224 /**
225 * A structure containing the configuration for the SINGLE_MASTER channel type.
226 */
227 SingleMasterConfiguration?: SingleMasterConfiguration;
228 /**
229 * A set of tags (key/value pairs) that you want to associate with this channel.
230 */
231 Tags?: TagOnCreateList;
232 }
233 export interface CreateSignalingChannelOutput {
234 /**
235 * The ARN of the created channel.
236 */
237 ChannelARN?: ResourceARN;
238 }
239 export interface CreateStreamInput {
240 /**
241 * The name of the device that is writing to the stream. In the current implementation, Kinesis Video Streams does not use this name.
242 */
243 DeviceName?: DeviceName;
244 /**
245 * A name for the stream that you are creating. The stream name is an identifier for the stream, and must be unique for each account and region.
246 */
247 StreamName: StreamName;
248 /**
249 * The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types. If you choose to specify the MediaType, see Naming Requirements for guidelines. Example valid values include "video/h264" and "video/h264,audio/aac". This parameter is optional; the default value is null (or empty in JSON).
250 */
251 MediaType?: MediaType;
252 /**
253 * The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo) is used. For more information, see DescribeKey.
254 */
255 KmsKeyId?: KmsKeyId;
256 /**
257 * The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. The default value is 0, indicating that the stream does not persist data. When the DataRetentionInHours value is 0, consumers can still consume the fragments that remain in the service host buffer, which has a retention time limit of 5 minutes and a retention memory limit of 200 MB. Fragments are removed from the buffer when either limit is reached.
258 */
259 DataRetentionInHours?: DataRetentionInHours;
260 /**
261 * A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
262 */
263 Tags?: ResourceTags;
264 }
265 export interface CreateStreamOutput {
266 /**
267 * The Amazon Resource Name (ARN) of the stream.
268 */
269 StreamARN?: ResourceARN;
270 }
271 export type DataEndpoint = string;
272 export type DataRetentionChangeInHours = number;
273 export type DataRetentionInHours = number;
274 export interface DeleteSignalingChannelInput {
275 /**
276 * The ARN of the signaling channel that you want to delete.
277 */
278 ChannelARN: ResourceARN;
279 /**
280 * The current version of the signaling channel that you want to delete. You can obtain the current version by invoking the DescribeSignalingChannel or ListSignalingChannels APIs.
281 */
282 CurrentVersion?: Version;
283 }
284 export interface DeleteSignalingChannelOutput {
285 }
286 export interface DeleteStreamInput {
287 /**
288 * The Amazon Resource Name (ARN) of the stream that you want to delete.
289 */
290 StreamARN: ResourceARN;
291 /**
292 * Optional: The version of the stream that you want to delete. Specify the version as a safeguard to ensure that your are deleting the correct stream. To get the stream version, use the DescribeStream API. If not specified, only the CreationTime is checked before deleting the stream.
293 */
294 CurrentVersion?: Version;
295 }
296 export interface DeleteStreamOutput {
297 }
298 export interface DescribeSignalingChannelInput {
299 /**
300 * The name of the signaling channel that you want to describe.
301 */
302 ChannelName?: ChannelName;
303 /**
304 * The ARN of the signaling channel that you want to describe.
305 */
306 ChannelARN?: ResourceARN;
307 }
308 export interface DescribeSignalingChannelOutput {
309 /**
310 * A structure that encapsulates the specified signaling channel's metadata and properties.
311 */
312 ChannelInfo?: ChannelInfo;
313 }
314 export interface DescribeStreamInput {
315 /**
316 * The name of the stream.
317 */
318 StreamName?: StreamName;
319 /**
320 * The Amazon Resource Name (ARN) of the stream.
321 */
322 StreamARN?: ResourceARN;
323 }
324 export interface DescribeStreamOutput {
325 /**
326 * An object that describes the stream.
327 */
328 StreamInfo?: StreamInfo;
329 }
330 export type DeviceName = string;
331 export interface GetDataEndpointInput {
332 /**
333 * The name of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamARN in the request.
334 */
335 StreamName?: StreamName;
336 /**
337 * The Amazon Resource Name (ARN) of the stream that you want to get the endpoint for. You must specify either this parameter or a StreamName in the request.
338 */
339 StreamARN?: ResourceARN;
340 /**
341 * The name of the API action for which to get an endpoint.
342 */
343 APIName: APIName;
344 }
345 export interface GetDataEndpointOutput {
346 /**
347 * The endpoint value. To read data from the stream or to write data to it, specify this endpoint in your application.
348 */
349 DataEndpoint?: DataEndpoint;
350 }
351 export interface GetSignalingChannelEndpointInput {
352 /**
353 * The ARN of the signalling channel for which you want to get an endpoint.
354 */
355 ChannelARN: ResourceARN;
356 /**
357 * A structure containing the endpoint configuration for the SINGLE_MASTER channel type.
358 */
359 SingleMasterChannelEndpointConfiguration?: SingleMasterChannelEndpointConfiguration;
360 }
361 export interface GetSignalingChannelEndpointOutput {
362 /**
363 * A list of endpoints for the specified signaling channel.
364 */
365 ResourceEndpointList?: ResourceEndpointList;
366 }
367 export type KmsKeyId = string;
368 export type ListOfProtocols = ChannelProtocol[];
369 export interface ListSignalingChannelsInput {
370 /**
371 * The maximum number of channels to return in the response. The default is 500.
372 */
373 MaxResults?: ListStreamsInputLimit;
374 /**
375 * If you specify this parameter, when the result of a ListSignalingChannels operation is truncated, the call returns the NextToken in the response. To get another batch of channels, provide this token in your next request.
376 */
377 NextToken?: NextToken;
378 /**
379 * Optional: Returns only the channels that satisfy a specific condition.
380 */
381 ChannelNameCondition?: ChannelNameCondition;
382 }
383 export interface ListSignalingChannelsOutput {
384 /**
385 * An array of ChannelInfo objects.
386 */
387 ChannelInfoList?: ChannelInfoList;
388 /**
389 * If the response is truncated, the call returns this element with a token. To get the next batch of streams, use this token in your next request.
390 */
391 NextToken?: NextToken;
392 }
393 export interface ListStreamsInput {
394 /**
395 * The maximum number of streams to return in the response. The default is 10,000.
396 */
397 MaxResults?: ListStreamsInputLimit;
398 /**
399 * If you specify this parameter, when the result of a ListStreams operation is truncated, the call returns the NextToken in the response. To get another batch of streams, provide this token in your next request.
400 */
401 NextToken?: NextToken;
402 /**
403 * Optional: Returns only streams that satisfy a specific condition. Currently, you can specify only the prefix of a stream name as a condition.
404 */
405 StreamNameCondition?: StreamNameCondition;
406 }
407 export type ListStreamsInputLimit = number;
408 export interface ListStreamsOutput {
409 /**
410 * An array of StreamInfo objects.
411 */
412 StreamInfoList?: StreamInfoList;
413 /**
414 * If the response is truncated, the call returns this element with a token. To get the next batch of streams, use this token in your next request.
415 */
416 NextToken?: NextToken;
417 }
418 export interface ListTagsForResourceInput {
419 /**
420 * If you specify this parameter and the result of a ListTagsForResource call is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags.
421 */
422 NextToken?: NextToken;
423 /**
424 * The ARN of the signaling channel for which you want to list tags.
425 */
426 ResourceARN: ResourceARN;
427 }
428 export interface ListTagsForResourceOutput {
429 /**
430 * If you specify this parameter and the result of a ListTagsForResource call is truncated, the response includes a token that you can use in the next request to fetch the next set of tags.
431 */
432 NextToken?: NextToken;
433 /**
434 * A map of tag keys and values associated with the specified signaling channel.
435 */
436 Tags?: ResourceTags;
437 }
438 export interface ListTagsForStreamInput {
439 /**
440 * If you specify this parameter and the result of a ListTagsForStream call is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags.
441 */
442 NextToken?: NextToken;
443 /**
444 * The Amazon Resource Name (ARN) of the stream that you want to list tags for.
445 */
446 StreamARN?: ResourceARN;
447 /**
448 * The name of the stream that you want to list tags for.
449 */
450 StreamName?: StreamName;
451 }
452 export interface ListTagsForStreamOutput {
453 /**
454 * If you specify this parameter and the result of a ListTags call is truncated, the response includes a token that you can use in the next request to fetch the next set of tags.
455 */
456 NextToken?: NextToken;
457 /**
458 * A map of tag keys and values associated with the specified stream.
459 */
460 Tags?: ResourceTags;
461 }
462 export type MediaType = string;
463 export type MessageTtlSeconds = number;
464 export type NextToken = string;
465 export type ResourceARN = string;
466 export type ResourceEndpoint = string;
467 export type ResourceEndpointList = ResourceEndpointListItem[];
468 export interface ResourceEndpointListItem {
469 /**
470 * The protocol of the signaling channel returned by the GetSignalingChannelEndpoint API.
471 */
472 Protocol?: ChannelProtocol;
473 /**
474 * The endpoint of the signaling channel returned by the GetSignalingChannelEndpoint API.
475 */
476 ResourceEndpoint?: ResourceEndpoint;
477 }
478 export type ResourceTags = {[key: string]: TagValue};
479 export interface SingleMasterChannelEndpointConfiguration {
480 /**
481 * This property is used to determine the nature of communication over this SINGLE_MASTER signaling channel. If WSS is specified, this API returns a websocket endpoint. If HTTPS is specified, this API returns an HTTPS endpoint.
482 */
483 Protocols?: ListOfProtocols;
484 /**
485 * This property is used to determine messaging permissions in this SINGLE_MASTER signaling channel. If MASTER is specified, this API returns an endpoint that a client can use to receive offers from and send answers to any of the viewers on this signaling channel. If VIEWER is specified, this API returns an endpoint that a client can use only to send offers to another MASTER client on this signaling channel.
486 */
487 Role?: ChannelRole;
488 }
489 export interface SingleMasterConfiguration {
490 /**
491 * The period of time a signaling channel retains underlivered messages before they are discarded.
492 */
493 MessageTtlSeconds?: MessageTtlSeconds;
494 }
495 export type Status = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|string;
496 export interface StreamInfo {
497 /**
498 * The name of the device that is associated with the stream.
499 */
500 DeviceName?: DeviceName;
501 /**
502 * The name of the stream.
503 */
504 StreamName?: StreamName;
505 /**
506 * The Amazon Resource Name (ARN) of the stream.
507 */
508 StreamARN?: ResourceARN;
509 /**
510 * The MediaType of the stream.
511 */
512 MediaType?: MediaType;
513 /**
514 * The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
515 */
516 KmsKeyId?: KmsKeyId;
517 /**
518 * The version of the stream.
519 */
520 Version?: Version;
521 /**
522 * The status of the stream.
523 */
524 Status?: Status;
525 /**
526 * A time stamp that indicates when the stream was created.
527 */
528 CreationTime?: Timestamp;
529 /**
530 * How long the stream retains data, in hours.
531 */
532 DataRetentionInHours?: DataRetentionInHours;
533 }
534 export type StreamInfoList = StreamInfo[];
535 export type StreamName = string;
536 export interface StreamNameCondition {
537 /**
538 * A comparison operator. Currently, you can specify only the BEGINS_WITH operator, which finds streams whose names start with a given prefix.
539 */
540 ComparisonOperator?: ComparisonOperator;
541 /**
542 * A value to compare.
543 */
544 ComparisonValue?: StreamName;
545 }
546 export interface Tag {
547 /**
548 * The key of the tag that is associated with the specified signaling channel.
549 */
550 Key: TagKey;
551 /**
552 * The value of the tag that is associated with the specified signaling channel.
553 */
554 Value: TagValue;
555 }
556 export type TagKey = string;
557 export type TagKeyList = TagKey[];
558 export type TagList = Tag[];
559 export type TagOnCreateList = Tag[];
560 export interface TagResourceInput {
561 /**
562 * The ARN of the signaling channel to which you want to add tags.
563 */
564 ResourceARN: ResourceARN;
565 /**
566 * A list of tags to associate with the specified signaling channel. Each tag is a key-value pair.
567 */
568 Tags: TagList;
569 }
570 export interface TagResourceOutput {
571 }
572 export interface TagStreamInput {
573 /**
574 * The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.
575 */
576 StreamARN?: ResourceARN;
577 /**
578 * The name of the stream that you want to add the tag or tags to.
579 */
580 StreamName?: StreamName;
581 /**
582 * A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).
583 */
584 Tags: ResourceTags;
585 }
586 export interface TagStreamOutput {
587 }
588 export type TagValue = string;
589 export type Timestamp = Date;
590 export interface UntagResourceInput {
591 /**
592 * The ARN of the signaling channel from which you want to remove tags.
593 */
594 ResourceARN: ResourceARN;
595 /**
596 * A list of the keys of the tags that you want to remove.
597 */
598 TagKeyList: TagKeyList;
599 }
600 export interface UntagResourceOutput {
601 }
602 export interface UntagStreamInput {
603 /**
604 * The Amazon Resource Name (ARN) of the stream that you want to remove tags from.
605 */
606 StreamARN?: ResourceARN;
607 /**
608 * The name of the stream that you want to remove tags from.
609 */
610 StreamName?: StreamName;
611 /**
612 * A list of the keys of the tags that you want to remove.
613 */
614 TagKeyList: TagKeyList;
615 }
616 export interface UntagStreamOutput {
617 }
618 export interface UpdateDataRetentionInput {
619 /**
620 * The name of the stream whose retention period you want to change.
621 */
622 StreamName?: StreamName;
623 /**
624 * The Amazon Resource Name (ARN) of the stream whose retention period you want to change.
625 */
626 StreamARN?: ResourceARN;
627 /**
628 * The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.
629 */
630 CurrentVersion: Version;
631 /**
632 * Indicates whether you want to increase or decrease the retention period.
633 */
634 Operation: UpdateDataRetentionOperation;
635 /**
636 * The retention period, in hours. The value you specify replaces the current value. The maximum value for this parameter is 87600 (ten years).
637 */
638 DataRetentionChangeInHours: DataRetentionChangeInHours;
639 }
640 export type UpdateDataRetentionOperation = "INCREASE_DATA_RETENTION"|"DECREASE_DATA_RETENTION"|string;
641 export interface UpdateDataRetentionOutput {
642 }
643 export interface UpdateSignalingChannelInput {
644 /**
645 * The ARN of the signaling channel that you want to update.
646 */
647 ChannelARN: ResourceARN;
648 /**
649 * The current version of the signaling channel that you want to update.
650 */
651 CurrentVersion: Version;
652 /**
653 * The structure containing the configuration for the SINGLE_MASTER type of the signaling channel that you want to update.
654 */
655 SingleMasterConfiguration?: SingleMasterConfiguration;
656 }
657 export interface UpdateSignalingChannelOutput {
658 }
659 export interface UpdateStreamInput {
660 /**
661 * The name of the stream whose metadata you want to update. The stream name is an identifier for the stream, and must be unique for each account and region.
662 */
663 StreamName?: StreamName;
664 /**
665 * The ARN of the stream whose metadata you want to update.
666 */
667 StreamARN?: ResourceARN;
668 /**
669 * The version of the stream whose metadata you want to update.
670 */
671 CurrentVersion: Version;
672 /**
673 * The name of the device that is writing to the stream. In the current implementation, Kinesis Video Streams does not use this name.
674 */
675 DeviceName?: DeviceName;
676 /**
677 * The stream's media type. Use MediaType to specify the type of content that the stream contains to the consumers of the stream. For more information about media types, see Media Types. If you choose to specify the MediaType, see Naming Requirements. To play video on the console, you must specify the correct video type. For example, if the video in the stream is H.264, specify video/h264 as the MediaType.
678 */
679 MediaType?: MediaType;
680 }
681 export interface UpdateStreamOutput {
682 }
683 export type Version = string;
684 /**
685 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
686 */
687 export type apiVersion = "2017-09-30"|"latest"|string;
688 export interface ClientApiVersions {
689 /**
690 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
691 */
692 apiVersion?: apiVersion;
693 }
694 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
695 /**
696 * Contains interfaces for use with the KinesisVideo client.
697 */
698 export import Types = KinesisVideo;
699}
700export = KinesisVideo;