{ "version":"2.0", "metadata":{ "apiVersion":"2017-09-30", "endpointPrefix":"kinesisvideo", "protocol":"rest-json", "serviceAbbreviation":"Kinesis Video", "serviceFullName":"Amazon Kinesis Video Streams", "serviceId":"Kinesis Video", "signatureVersion":"v4", "uid":"kinesisvideo-2017-09-30" }, "operations":{ "CreateStream":{ "name":"CreateStream", "http":{ "method":"POST", "requestUri":"/createStream" }, "input":{"shape":"CreateStreamInput"}, "output":{"shape":"CreateStreamOutput"}, "errors":[ {"shape":"AccountStreamLimitExceededException"}, {"shape":"DeviceStreamLimitExceededException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidDeviceException"}, {"shape":"InvalidArgumentException"}, {"shape":"ClientLimitExceededException"} ], "documentation":"

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.

" }, "DeleteStream":{ "name":"DeleteStream", "http":{ "method":"POST", "requestUri":"/deleteStream" }, "input":{"shape":"DeleteStreamInput"}, "output":{"shape":"DeleteStreamOutput"}, "errors":[ {"shape":"ClientLimitExceededException"}, {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"NotAuthorizedException"} ], "documentation":"

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.

" }, "DescribeStream":{ "name":"DescribeStream", "http":{ "method":"POST", "requestUri":"/describeStream" }, "input":{"shape":"DescribeStreamInput"}, "output":{"shape":"DescribeStreamOutput"}, "errors":[ {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ClientLimitExceededException"}, {"shape":"NotAuthorizedException"} ], "documentation":"

Returns the most current information about the specified stream. You must specify either the StreamName or the StreamARN.

" }, "GetDataEndpoint":{ "name":"GetDataEndpoint", "http":{ "method":"POST", "requestUri":"/getDataEndpoint" }, "input":{"shape":"GetDataEndpointInput"}, "output":{"shape":"GetDataEndpointOutput"}, "errors":[ {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ClientLimitExceededException"}, {"shape":"NotAuthorizedException"} ], "documentation":"

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.

" }, "ListStreams":{ "name":"ListStreams", "http":{ "method":"POST", "requestUri":"/listStreams" }, "input":{"shape":"ListStreamsInput"}, "output":{"shape":"ListStreamsOutput"}, "errors":[ {"shape":"ClientLimitExceededException"}, {"shape":"InvalidArgumentException"} ], "documentation":"

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.

" }, "ListTagsForStream":{ "name":"ListTagsForStream", "http":{ "method":"POST", "requestUri":"/listTagsForStream" }, "input":{"shape":"ListTagsForStreamInput"}, "output":{"shape":"ListTagsForStreamOutput"}, "errors":[ {"shape":"ClientLimitExceededException"}, {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"NotAuthorizedException"}, {"shape":"InvalidResourceFormatException"} ], "documentation":"

Returns a list of tags associated with the specified stream.

In the request, you must specify either the StreamName or the StreamARN.

" }, "TagStream":{ "name":"TagStream", "http":{ "method":"POST", "requestUri":"/tagStream" }, "input":{"shape":"TagStreamInput"}, "output":{"shape":"TagStreamOutput"}, "errors":[ {"shape":"ClientLimitExceededException"}, {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"NotAuthorizedException"}, {"shape":"InvalidResourceFormatException"}, {"shape":"TagsPerResourceExceededLimitException"} ], "documentation":"

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.

" }, "UntagStream":{ "name":"UntagStream", "http":{ "method":"POST", "requestUri":"/untagStream" }, "input":{"shape":"UntagStreamInput"}, "output":{"shape":"UntagStreamOutput"}, "errors":[ {"shape":"ClientLimitExceededException"}, {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"NotAuthorizedException"}, {"shape":"InvalidResourceFormatException"} ], "documentation":"

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.

" }, "UpdateDataRetention":{ "name":"UpdateDataRetention", "http":{ "method":"POST", "requestUri":"/updateDataRetention" }, "input":{"shape":"UpdateDataRetentionInput"}, "output":{"shape":"UpdateDataRetentionOutput"}, "errors":[ {"shape":"ClientLimitExceededException"}, {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"NotAuthorizedException"}, {"shape":"VersionMismatchException"} ], "documentation":"

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:

" }, "UpdateStream":{ "name":"UpdateStream", "http":{ "method":"POST", "requestUri":"/updateStream" }, "input":{"shape":"UpdateStreamInput"}, "output":{"shape":"UpdateStreamOutput"}, "errors":[ {"shape":"ClientLimitExceededException"}, {"shape":"InvalidArgumentException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"NotAuthorizedException"}, {"shape":"VersionMismatchException"} ], "documentation":"

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.

" } }, "shapes":{ "APIName":{ "type":"string", "enum":[ "PUT_MEDIA", "GET_MEDIA", "LIST_FRAGMENTS", "GET_MEDIA_FOR_FRAGMENT_LIST", "GET_HLS_STREAMING_SESSION_URL" ] }, "AccountStreamLimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The number of streams created for the account is too high.

", "error":{"httpStatusCode":400}, "exception":true }, "ClientLimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Kinesis Video Streams has throttled the request because you have exceeded the limit of allowed client calls. Try making the call later.

", "error":{"httpStatusCode":400}, "exception":true }, "ComparisonOperator":{ "type":"string", "enum":["BEGINS_WITH"] }, "CreateStreamInput":{ "type":"structure", "required":["StreamName"], "members":{ "DeviceName":{ "shape":"DeviceName", "documentation":"

The name of the device that is writing to the stream.

In the current implementation, Kinesis Video Streams does not use this name.

" }, "StreamName":{ "shape":"StreamName", "documentation":"

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.

" }, "MediaType":{ "shape":"MediaType", "documentation":"

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.

To play video on the console, the media must be H.264 encoded, and you need to specify this video type in this parameter as video/h264.

This parameter is optional; the default value is null (or empty in JSON).

" }, "KmsKeyId":{ "shape":"KmsKeyId", "documentation":"

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.

" }, "DataRetentionInHours":{ "shape":"DataRetentionInHours", "documentation":"

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.

" } } }, "CreateStreamOutput":{ "type":"structure", "members":{ "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the stream.

" } } }, "DataEndpoint":{"type":"string"}, "DataRetentionChangeInHours":{ "type":"integer", "min":1 }, "DataRetentionInHours":{ "type":"integer", "min":0 }, "DeleteStreamInput":{ "type":"structure", "required":["StreamARN"], "members":{ "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the stream that you want to delete.

" }, "CurrentVersion":{ "shape":"Version", "documentation":"

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.

" } } }, "DeleteStreamOutput":{ "type":"structure", "members":{ } }, "DescribeStreamInput":{ "type":"structure", "members":{ "StreamName":{ "shape":"StreamName", "documentation":"

The name of the stream.

" }, "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the stream.

" } } }, "DescribeStreamOutput":{ "type":"structure", "members":{ "StreamInfo":{ "shape":"StreamInfo", "documentation":"

An object that describes the stream.

" } } }, "DeviceName":{ "type":"string", "max":128, "min":1, "pattern":"[a-zA-Z0-9_.-]+" }, "DeviceStreamLimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Not implemented.

", "error":{"httpStatusCode":400}, "exception":true }, "ErrorMessage":{"type":"string"}, "GetDataEndpointInput":{ "type":"structure", "required":["APIName"], "members":{ "StreamName":{ "shape":"StreamName", "documentation":"

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.

" }, "StreamARN":{ "shape":"ResourceARN", "documentation":"

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.

" }, "APIName":{ "shape":"APIName", "documentation":"

The name of the API action for which to get an endpoint.

" } } }, "GetDataEndpointOutput":{ "type":"structure", "members":{ "DataEndpoint":{ "shape":"DataEndpoint", "documentation":"

The endpoint value. To read data from the stream or to write data to it, specify this endpoint in your application.

" } } }, "InvalidArgumentException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The value for this input parameter is invalid.

", "error":{"httpStatusCode":400}, "exception":true }, "InvalidDeviceException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Not implemented.

", "error":{"httpStatusCode":400}, "exception":true }, "InvalidResourceFormatException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The format of the StreamARN is invalid.

", "error":{"httpStatusCode":400}, "exception":true }, "KmsKeyId":{ "type":"string", "max":2048, "min":1 }, "ListStreamsInput":{ "type":"structure", "members":{ "MaxResults":{ "shape":"ListStreamsInputLimit", "documentation":"

The maximum number of streams to return in the response. The default is 10,000.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

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.

" }, "StreamNameCondition":{ "shape":"StreamNameCondition", "documentation":"

Optional: Returns only streams that satisfy a specific condition. Currently, you can specify only the prefix of a stream name as a condition.

" } } }, "ListStreamsInputLimit":{ "type":"integer", "max":10000, "min":1 }, "ListStreamsOutput":{ "type":"structure", "members":{ "StreamInfoList":{ "shape":"StreamInfoList", "documentation":"

An array of StreamInfo objects.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

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.

" } } }, "ListTagsForStreamInput":{ "type":"structure", "members":{ "NextToken":{ "shape":"NextToken", "documentation":"

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.

" }, "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the stream that you want to list tags for.

" }, "StreamName":{ "shape":"StreamName", "documentation":"

The name of the stream that you want to list tags for.

" } } }, "ListTagsForStreamOutput":{ "type":"structure", "members":{ "NextToken":{ "shape":"NextToken", "documentation":"

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.

" }, "Tags":{ "shape":"ResourceTags", "documentation":"

A map of tag keys and values associated with the specified stream.

" } } }, "MediaType":{ "type":"string", "max":128, "min":1, "pattern":"[\\w\\-\\.\\+]+/[\\w\\-\\.\\+]+" }, "NextToken":{ "type":"string", "max":512, "min":0 }, "NotAuthorizedException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The caller is not authorized to perform this operation.

", "error":{"httpStatusCode":401}, "exception":true }, "ResourceARN":{ "type":"string", "max":1024, "min":1, "pattern":"arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+" }, "ResourceInUseException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The stream is currently not available for this operation.

", "error":{"httpStatusCode":400}, "exception":true }, "ResourceNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

Amazon Kinesis Video Streams can't find the stream that you specified.

", "error":{"httpStatusCode":404}, "exception":true }, "ResourceTags":{ "type":"map", "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"}, "max":50, "min":1 }, "Status":{ "type":"string", "enum":[ "CREATING", "ACTIVE", "UPDATING", "DELETING" ] }, "StreamInfo":{ "type":"structure", "members":{ "DeviceName":{ "shape":"DeviceName", "documentation":"

The name of the device that is associated with the stream.

" }, "StreamName":{ "shape":"StreamName", "documentation":"

The name of the stream.

" }, "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the stream.

" }, "MediaType":{ "shape":"MediaType", "documentation":"

The MediaType of the stream.

" }, "KmsKeyId":{ "shape":"KmsKeyId", "documentation":"

The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.

" }, "Version":{ "shape":"Version", "documentation":"

The version of the stream.

" }, "Status":{ "shape":"Status", "documentation":"

The status of the stream.

" }, "CreationTime":{ "shape":"Timestamp", "documentation":"

A time stamp that indicates when the stream was created.

" }, "DataRetentionInHours":{ "shape":"DataRetentionInHours", "documentation":"

How long the stream retains data, in hours.

" } }, "documentation":"

An object describing a Kinesis video stream.

" }, "StreamInfoList":{ "type":"list", "member":{"shape":"StreamInfo"} }, "StreamName":{ "type":"string", "max":256, "min":1, "pattern":"[a-zA-Z0-9_.-]+" }, "StreamNameCondition":{ "type":"structure", "members":{ "ComparisonOperator":{ "shape":"ComparisonOperator", "documentation":"

A comparison operator. Currently, you can specify only the BEGINS_WITH operator, which finds streams whose names start with a given prefix.

" }, "ComparisonValue":{ "shape":"StreamName", "documentation":"

A value to compare.

" } }, "documentation":"

Specifies the condition that streams must satisfy to be returned when you list streams (see the ListStreams API). A condition has a comparison operation and a value. Currently, you can specify only the BEGINS_WITH operator, which finds streams whose names start with a given prefix.

" }, "TagKey":{ "type":"string", "max":128, "min":1 }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, "max":50, "min":1 }, "TagStreamInput":{ "type":"structure", "required":["Tags"], "members":{ "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to.

" }, "StreamName":{ "shape":"StreamName", "documentation":"

The name of the stream that you want to add the tag or tags to.

" }, "Tags":{ "shape":"ResourceTags", "documentation":"

A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional).

" } } }, "TagStreamOutput":{ "type":"structure", "members":{ } }, "TagValue":{ "type":"string", "max":256, "min":0 }, "TagsPerResourceExceededLimitException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

You have exceeded the limit of tags that you can associate with the resource. Kinesis video streams support up to 50 tags.

", "error":{"httpStatusCode":400}, "exception":true }, "Timestamp":{"type":"timestamp"}, "UntagStreamInput":{ "type":"structure", "required":["TagKeyList"], "members":{ "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the stream that you want to remove tags from.

" }, "StreamName":{ "shape":"StreamName", "documentation":"

The name of the stream that you want to remove tags from.

" }, "TagKeyList":{ "shape":"TagKeyList", "documentation":"

A list of the keys of the tags that you want to remove.

" } } }, "UntagStreamOutput":{ "type":"structure", "members":{ } }, "UpdateDataRetentionInput":{ "type":"structure", "required":[ "CurrentVersion", "Operation", "DataRetentionChangeInHours" ], "members":{ "StreamName":{ "shape":"StreamName", "documentation":"

The name of the stream whose retention period you want to change.

" }, "StreamARN":{ "shape":"ResourceARN", "documentation":"

The Amazon Resource Name (ARN) of the stream whose retention period you want to change.

" }, "CurrentVersion":{ "shape":"Version", "documentation":"

The version of the stream whose retention period you want to change. To get the version, call either the DescribeStream or the ListStreams API.

" }, "Operation":{ "shape":"UpdateDataRetentionOperation", "documentation":"

Indicates whether you want to increase or decrease the retention period.

" }, "DataRetentionChangeInHours":{ "shape":"DataRetentionChangeInHours", "documentation":"

The retention period, in hours. The value you specify replaces the current value.

" } } }, "UpdateDataRetentionOperation":{ "type":"string", "enum":[ "INCREASE_DATA_RETENTION", "DECREASE_DATA_RETENTION" ] }, "UpdateDataRetentionOutput":{ "type":"structure", "members":{ } }, "UpdateStreamInput":{ "type":"structure", "required":["CurrentVersion"], "members":{ "StreamName":{ "shape":"StreamName", "documentation":"

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.

" }, "StreamARN":{ "shape":"ResourceARN", "documentation":"

The ARN of the stream whose metadata you want to update.

" }, "CurrentVersion":{ "shape":"Version", "documentation":"

The version of the stream whose metadata you want to update.

" }, "DeviceName":{ "shape":"DeviceName", "documentation":"

The name of the device that is writing to the stream.

In the current implementation, Kinesis Video Streams does not use this name.

" }, "MediaType":{ "shape":"MediaType", "documentation":"

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.

" } } }, "UpdateStreamOutput":{ "type":"structure", "members":{ } }, "Version":{ "type":"string", "max":64, "min":1, "pattern":"[a-zA-Z0-9]+" }, "VersionMismatchException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The stream version that you specified is not the latest version. To get the latest version, use the DescribeStream API.

", "error":{"httpStatusCode":400}, "exception":true } }, "documentation":"

" }