openapi: 3.0.0 info: version: 2017-09-30 x-release: v4 title: Amazon Kinesis Video Streams description:
x-logo: url: https://twitter.com/awscloud/profile_image?size=original backgroundColor: "#FFFFFF" termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: kinesisvideo x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/kinesisvideo-2017-09-30.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-direct: true x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: https://docs.aws.amazon.com/kinesisvideo/ security: - hmac: [] paths: /createStream: post: operationId: CreateStream description: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.
The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
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.
type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 256 MediaType: description: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.
This parameter is
optional; the default value is null (or empty
in JSON).
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.
type: string minLength: 1 maxLength: 2048 DataRetentionInHours: description: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.
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.
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.
StreamName or the
StreamARN. "
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/DescribeStreamOutput"
"480":
description: InvalidArgumentException
content:
application/json:
schema:
$ref: "#/components/schemas/InvalidArgumentException"
"481":
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: "#/components/schemas/ResourceNotFoundException"
"482":
description: ClientLimitExceededException
content:
application/json:
schema:
$ref: "#/components/schemas/ClientLimitExceededException"
"483":
description: NotAuthorizedException
content:
application/json:
schema:
$ref: "#/components/schemas/NotAuthorizedException"
requestBody:
content:
application/json:
schema:
type: object
properties:
StreamName:
description: The name of the stream.
type: string
pattern: "[a-zA-Z0-9_.-]+"
minLength: 1
maxLength: 256
StreamARN:
description: The Amazon Resource Name (ARN) of the stream.
type: string
pattern: arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
minLength: 1
maxLength: 1024
required: true
parameters:
- $ref: "#/components/parameters/X-Amz-Content-Sha256"
- $ref: "#/components/parameters/X-Amz-Date"
- $ref: "#/components/parameters/X-Amz-Algorithm"
- $ref: "#/components/parameters/X-Amz-Credential"
- $ref: "#/components/parameters/X-Amz-Security-Token"
- $ref: "#/components/parameters/X-Amz-Signature"
- $ref: "#/components/parameters/X-Amz-SignedHeaders"
/getDataEndpoint:
post:
operationId: GetDataEndpoint
description: 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.
StreamARN in the request.
type: string
pattern: "[a-zA-Z0-9_.-]+"
minLength: 1
maxLength: 256
StreamARN:
description: "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. "
type: string
pattern: arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
minLength: 1
maxLength: 1024
APIName:
description: The name of the API action for which to get an endpoint.
type: string
enum:
- PUT_MEDIA
- GET_MEDIA
- LIST_FRAGMENTS
- GET_MEDIA_FOR_FRAGMENT_LIST
- GET_HLS_STREAMING_SESSION_URL
- GET_DASH_STREAMING_SESSION_URL
required: true
parameters:
- $ref: "#/components/parameters/X-Amz-Content-Sha256"
- $ref: "#/components/parameters/X-Amz-Date"
- $ref: "#/components/parameters/X-Amz-Algorithm"
- $ref: "#/components/parameters/X-Amz-Credential"
- $ref: "#/components/parameters/X-Amz-Security-Token"
- $ref: "#/components/parameters/X-Amz-Signature"
- $ref: "#/components/parameters/X-Amz-SignedHeaders"
/listStreams:
post:
operationId: ListStreams
description: "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. "
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/ListStreamsOutput"
"480":
description: ClientLimitExceededException
content:
application/json:
schema:
$ref: "#/components/schemas/ClientLimitExceededException"
"481":
description: InvalidArgumentException
content:
application/json:
schema:
$ref: "#/components/schemas/InvalidArgumentException"
parameters:
- name: MaxResults
in: query
description: Pagination limit
required: false
schema:
type: string
- name: NextToken
in: query
description: Pagination token
required: false
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
MaxResults:
description: The maximum number of streams to return in the response. The
default is 10,000.
type: integer
minimum: 1
maximum: 10000
NextToken:
description: 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.
type: string
minLength: 0
maxLength: 512
StreamNameCondition:
description: "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. "
type: object
properties:
ComparisonOperator:
$ref: "#/components/schemas/ComparisonOperator"
ComparisonValue:
$ref: "#/components/schemas/StreamName"
required: true
parameters:
- $ref: "#/components/parameters/X-Amz-Content-Sha256"
- $ref: "#/components/parameters/X-Amz-Date"
- $ref: "#/components/parameters/X-Amz-Algorithm"
- $ref: "#/components/parameters/X-Amz-Credential"
- $ref: "#/components/parameters/X-Amz-Security-Token"
- $ref: "#/components/parameters/X-Amz-Signature"
- $ref: "#/components/parameters/X-Amz-SignedHeaders"
/listTagsForStream:
post:
operationId: ListTagsForStream
description: Returns a list of tags associated with the specified stream.
In the request, you must specify either the StreamName
or the StreamARN.
ListTagsForStream call is truncated, the
response includes a token that you can use in the next
request to fetch the next batch of tags.
type: string
minLength: 0
maxLength: 512
StreamARN:
description: The Amazon Resource Name (ARN) of the stream that you want
to list tags for.
type: string
pattern: arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
minLength: 1
maxLength: 1024
StreamName:
description: The name of the stream that you want to list tags for.
type: string
pattern: "[a-zA-Z0-9_.-]+"
minLength: 1
maxLength: 256
required: true
parameters:
- $ref: "#/components/parameters/X-Amz-Content-Sha256"
- $ref: "#/components/parameters/X-Amz-Date"
- $ref: "#/components/parameters/X-Amz-Algorithm"
- $ref: "#/components/parameters/X-Amz-Credential"
- $ref: "#/components/parameters/X-Amz-Security-Token"
- $ref: "#/components/parameters/X-Amz-Signature"
- $ref: "#/components/parameters/X-Amz-SignedHeaders"
/tagStream:
post:
operationId: TagStream
description: 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.
responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/TagStreamOutput" "480": description: ClientLimitExceededException content: application/json: schema: $ref: "#/components/schemas/ClientLimitExceededException" "481": description: InvalidArgumentException content: application/json: schema: $ref: "#/components/schemas/InvalidArgumentException" "482": description: ResourceNotFoundException content: application/json: schema: $ref: "#/components/schemas/ResourceNotFoundException" "483": description: NotAuthorizedException content: application/json: schema: $ref: "#/components/schemas/NotAuthorizedException" "484": description: InvalidResourceFormatException content: application/json: schema: $ref: "#/components/schemas/InvalidResourceFormatException" "485": description: TagsPerResourceExceededLimitException content: application/json: schema: $ref: "#/components/schemas/TagsPerResourceExceededLimitException" requestBody: content: application/json: schema: type: object required: - Tags properties: StreamARN: description: The Amazon Resource Name (ARN) of the resource that you want to add the tag or tags to. type: string pattern: arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ minLength: 1 maxLength: 1024 StreamName: description: The name of the stream that you want to add the tag or tags to. type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 256 Tags: description: A list of tags to associate with the specified stream. Each tag is a key-value pair (the value is optional). type: object minProperties: 1 maxProperties: 50 additionalProperties: $ref: "#/components/schemas/TagValue" required: true parameters: - $ref: "#/components/parameters/X-Amz-Content-Sha256" - $ref: "#/components/parameters/X-Amz-Date" - $ref: "#/components/parameters/X-Amz-Algorithm" - $ref: "#/components/parameters/X-Amz-Credential" - $ref: "#/components/parameters/X-Amz-Security-Token" - $ref: "#/components/parameters/X-Amz-Signature" - $ref: "#/components/parameters/X-Amz-SignedHeaders" /untagStream: post: operationId: UntagStream description: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.
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.
DescribeStream or the ListStreams
API.
type: string
pattern: "[a-zA-Z0-9]+"
minLength: 1
maxLength: 64
Operation:
description: Indicates whether you want to increase or decrease the
retention period.
type: string
enum:
- INCREASE_DATA_RETENTION
- DECREASE_DATA_RETENTION
DataRetentionChangeInHours:
description: The retention period, in hours. The value you specify
replaces the current value. The maximum value for this
parameter is 87600 (ten years).
type: integer
minimum: 1
required: true
parameters:
- $ref: "#/components/parameters/X-Amz-Content-Sha256"
- $ref: "#/components/parameters/X-Amz-Date"
- $ref: "#/components/parameters/X-Amz-Algorithm"
- $ref: "#/components/parameters/X-Amz-Credential"
- $ref: "#/components/parameters/X-Amz-Security-Token"
- $ref: "#/components/parameters/X-Amz-Signature"
- $ref: "#/components/parameters/X-Amz-SignedHeaders"
/updateStream:
post:
operationId: UpdateStream
description: 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.
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.
type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 256 StreamARN: description: The ARN of the stream whose metadata you want to update. type: string pattern: arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ minLength: 1 maxLength: 1024 CurrentVersion: description: The version of the stream whose metadata you want to update. type: string pattern: "[a-zA-Z0-9]+" minLength: 1 maxLength: 64 DeviceName: description:The name of the device that is writing to the stream.
In the current implementation, Kinesis Video Streams does not use this name.
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.
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. "
ListStreamsInput:
type: object
properties:
MaxResults:
$ref: "#/components/schemas/ListStreamsInputLimit"
NextToken:
$ref: "#/components/schemas/NextToken"
StreamNameCondition:
$ref: "#/components/schemas/StreamNameCondition"
StreamInfoList:
type: array
items:
$ref: "#/components/schemas/StreamInfo"
ListTagsForStreamInput:
type: object
properties:
NextToken:
$ref: "#/components/schemas/NextToken"
StreamARN:
$ref: "#/components/schemas/ResourceARN"
StreamName:
$ref: "#/components/schemas/StreamName"
Status:
type: string
enum:
- CREATING
- ACTIVE
- UPDATING
- DELETING
Timestamp:
type: string
format: date-time
TagKeyList:
type: array
items:
$ref: "#/components/schemas/TagKey"
minItems: 1
maxItems: 50
TagStreamInput:
type: object
required:
- Tags
properties:
StreamARN:
$ref: "#/components/schemas/ResourceARN"
StreamName:
$ref: "#/components/schemas/StreamName"
Tags:
$ref: "#/components/schemas/ResourceTags"
UntagStreamInput:
type: object
required:
- TagKeyList
properties:
StreamARN:
$ref: "#/components/schemas/ResourceARN"
StreamName:
$ref: "#/components/schemas/StreamName"
TagKeyList:
$ref: "#/components/schemas/TagKeyList"
UpdateDataRetentionOperation:
type: string
enum:
- INCREASE_DATA_RETENTION
- DECREASE_DATA_RETENTION
UpdateDataRetentionInput:
type: object
required:
- CurrentVersion
- Operation
- DataRetentionChangeInHours
properties:
StreamName:
$ref: "#/components/schemas/StreamName"
StreamARN:
$ref: "#/components/schemas/ResourceARN"
CurrentVersion:
$ref: "#/components/schemas/Version"
Operation:
$ref: "#/components/schemas/UpdateDataRetentionOperation"
DataRetentionChangeInHours:
$ref: "#/components/schemas/DataRetentionChangeInHours"
UpdateStreamInput:
type: object
required:
- CurrentVersion
properties:
StreamName:
$ref: "#/components/schemas/StreamName"
StreamARN:
$ref: "#/components/schemas/ResourceARN"
CurrentVersion:
$ref: "#/components/schemas/Version"
DeviceName:
$ref: "#/components/schemas/DeviceName"
MediaType:
$ref: "#/components/schemas/MediaType"