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.

responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/CreateStreamOutput" "480": description: AccountStreamLimitExceededException content: application/json: schema: $ref: "#/components/schemas/AccountStreamLimitExceededException" "481": description: DeviceStreamLimitExceededException content: application/json: schema: $ref: "#/components/schemas/DeviceStreamLimitExceededException" "482": description: ResourceInUseException content: application/json: schema: $ref: "#/components/schemas/ResourceInUseException" "483": description: InvalidDeviceException content: application/json: schema: $ref: "#/components/schemas/InvalidDeviceException" "484": description: InvalidArgumentException content: application/json: schema: $ref: "#/components/schemas/InvalidArgumentException" "485": description: ClientLimitExceededException content: application/json: schema: $ref: "#/components/schemas/ClientLimitExceededException" "486": description: TagsPerResourceExceededLimitException content: application/json: schema: $ref: "#/components/schemas/TagsPerResourceExceededLimitException" requestBody: content: application/json: schema: type: object required: - StreamName properties: 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.

type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 128 StreamName: description:

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).

type: string pattern: "[\\w\\-\\.\\+]+/[\\w\\-\\.\\+]+(,[\\w\\-\\.\\+]+/[\\w\\-\\.\ \\+]+)*" minLength: 1 maxLength: 128 KmsKeyId: description:

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.

type: integer minimum: 0 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" /deleteStream: post: operationId: DeleteStream description:

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.

responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/DeleteStreamOutput" "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: VersionMismatchException content: application/json: schema: $ref: "#/components/schemas/VersionMismatchException" requestBody: content: application/json: schema: type: object required: - StreamARN properties: StreamARN: description: "The Amazon Resource Name (ARN) of the stream that you want to delete. " 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: "

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.

" type: string pattern: "[a-zA-Z0-9]+" minLength: 1 maxLength: 64 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" /describeStream: post: operationId: DescribeStream description: "Returns the most current information about the specified stream. You must specify either the 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.

responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/GetDataEndpointOutput" "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 required: - APIName properties: StreamName: description: 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. 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.

responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/ListTagsForStreamOutput" "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" requestBody: content: application/json: schema: type: object properties: NextToken: description: 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. 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.

responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/UntagStreamOutput" "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" requestBody: content: application/json: schema: type: object required: - TagKeyList properties: StreamARN: description: The Amazon Resource Name (ARN) of the stream that you want to remove tags from. 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 remove tags from. type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 256 TagKeyList: description: A list of the keys of the tags that you want to remove. type: array items: $ref: "#/components/schemas/TagKey" minItems: 1 maxItems: 50 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" /updateDataRetention: post: operationId: UpdateDataRetention description:

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:

responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/UpdateDataRetentionOutput" "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: ResourceInUseException content: application/json: schema: $ref: "#/components/schemas/ResourceInUseException" "484": description: NotAuthorizedException content: application/json: schema: $ref: "#/components/schemas/NotAuthorizedException" "485": description: VersionMismatchException content: application/json: schema: $ref: "#/components/schemas/VersionMismatchException" requestBody: content: application/json: schema: type: object required: - CurrentVersion - Operation - DataRetentionChangeInHours properties: StreamName: description: The name of the stream whose retention period you want to change. type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 256 StreamARN: description: The Amazon Resource Name (ARN) of the stream whose retention period you want to change. 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 retention period you want to change. To get the version, call either the 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.

responses: "200": description: Success content: application/json: schema: $ref: "#/components/schemas/UpdateStreamOutput" "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: ResourceInUseException content: application/json: schema: $ref: "#/components/schemas/ResourceInUseException" "484": description: NotAuthorizedException content: application/json: schema: $ref: "#/components/schemas/NotAuthorizedException" "485": description: VersionMismatchException content: application/json: schema: $ref: "#/components/schemas/VersionMismatchException" requestBody: content: application/json: schema: type: object required: - CurrentVersion properties: StreamName: description:

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.

type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 128 MediaType: description:

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.

type: string pattern: "[\\w\\-\\.\\+]+/[\\w\\-\\.\\+]+(,[\\w\\-\\.\\+]+/[\\w\\-\\.\ \\+]+)*" minLength: 1 maxLength: 128 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" servers: - url: http://kinesisvideo.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The Kinesis Video multi-region endpoint - url: https://kinesisvideo.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-south-1 - sa-east-1 default: us-east-1 description: The Kinesis Video multi-region endpoint - url: http://kinesisvideo.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Kinesis Video endpoint for China (Beijing) and China (Ningxia) - url: https://kinesisvideo.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Kinesis Video endpoint for China (Beijing) and China (Ningxia) components: parameters: X-Amz-Content-Sha256: name: X-Amz-Content-Sha256 in: header required: false schema: type: string X-Amz-Date: name: X-Amz-Date in: header required: false schema: type: string X-Amz-Algorithm: name: X-Amz-Algorithm in: header required: false schema: type: string X-Amz-Credential: name: X-Amz-Credential in: header required: false schema: type: string X-Amz-Security-Token: name: X-Amz-Security-Token in: header required: false schema: type: string X-Amz-Signature: name: X-Amz-Signature in: header required: false schema: type: string X-Amz-SignedHeaders: name: X-Amz-SignedHeaders in: header required: false schema: type: string securitySchemes: hmac: type: apiKey name: Authorization in: header description: Amazon Signature authorization v4 x-amazon-apigateway-authtype: awsSigv4 schemas: CreateStreamOutput: type: object properties: StreamARN: $ref: "#/components/schemas/ResourceARN" TagValue: type: string minLength: 0 maxLength: 256 AccountStreamLimitExceededException: {} DeviceStreamLimitExceededException: {} ResourceInUseException: {} InvalidDeviceException: {} InvalidArgumentException: {} ClientLimitExceededException: {} TagsPerResourceExceededLimitException: {} DeleteStreamOutput: type: object properties: {} ResourceNotFoundException: {} NotAuthorizedException: {} VersionMismatchException: {} DescribeStreamOutput: type: object properties: StreamInfo: $ref: "#/components/schemas/StreamInfo" GetDataEndpointOutput: type: object properties: DataEndpoint: $ref: "#/components/schemas/DataEndpoint" ListStreamsOutput: type: object properties: StreamInfoList: $ref: "#/components/schemas/StreamInfoList" NextToken: $ref: "#/components/schemas/NextToken" ComparisonOperator: type: string enum: - BEGINS_WITH StreamName: type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 256 ListTagsForStreamOutput: type: object properties: NextToken: $ref: "#/components/schemas/NextToken" Tags: $ref: "#/components/schemas/ResourceTags" InvalidResourceFormatException: {} TagStreamOutput: type: object properties: {} UntagStreamOutput: type: object properties: {} TagKey: type: string minLength: 1 maxLength: 128 UpdateDataRetentionOutput: type: object properties: {} UpdateStreamOutput: type: object properties: {} APIName: type: string enum: - PUT_MEDIA - GET_MEDIA - LIST_FRAGMENTS - GET_MEDIA_FOR_FRAGMENT_LIST - GET_HLS_STREAMING_SESSION_URL - GET_DASH_STREAMING_SESSION_URL DeviceName: type: string pattern: "[a-zA-Z0-9_.-]+" minLength: 1 maxLength: 128 MediaType: type: string pattern: "[\\w\\-\\.\\+]+/[\\w\\-\\.\\+]+(,[\\w\\-\\.\\+]+/[\\w\\-\\.\\+]+)*" minLength: 1 maxLength: 128 KmsKeyId: type: string minLength: 1 maxLength: 2048 DataRetentionInHours: type: integer minimum: 0 ResourceTags: type: object minProperties: 1 maxProperties: 50 additionalProperties: $ref: "#/components/schemas/TagValue" CreateStreamInput: type: object required: - StreamName properties: DeviceName: $ref: "#/components/schemas/DeviceName" StreamName: $ref: "#/components/schemas/StreamName" MediaType: $ref: "#/components/schemas/MediaType" KmsKeyId: $ref: "#/components/schemas/KmsKeyId" DataRetentionInHours: $ref: "#/components/schemas/DataRetentionInHours" Tags: $ref: "#/components/schemas/ResourceTags" ResourceARN: type: string pattern: arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+ minLength: 1 maxLength: 1024 DataEndpoint: type: string DataRetentionChangeInHours: type: integer minimum: 1 Version: type: string pattern: "[a-zA-Z0-9]+" minLength: 1 maxLength: 64 DeleteStreamInput: type: object required: - StreamARN properties: StreamARN: $ref: "#/components/schemas/ResourceARN" CurrentVersion: $ref: "#/components/schemas/Version" DescribeStreamInput: type: object properties: StreamName: $ref: "#/components/schemas/StreamName" StreamARN: $ref: "#/components/schemas/ResourceARN" StreamInfo: type: object properties: DeviceName: $ref: "#/components/schemas/DeviceName" StreamName: $ref: "#/components/schemas/StreamName" StreamARN: $ref: "#/components/schemas/ResourceARN" MediaType: $ref: "#/components/schemas/MediaType" KmsKeyId: $ref: "#/components/schemas/KmsKeyId" Version: $ref: "#/components/schemas/Version" Status: $ref: "#/components/schemas/Status" CreationTime: $ref: "#/components/schemas/Timestamp" DataRetentionInHours: $ref: "#/components/schemas/DataRetentionInHours" description: An object describing a Kinesis video stream. GetDataEndpointInput: type: object required: - APIName properties: StreamName: $ref: "#/components/schemas/StreamName" StreamARN: $ref: "#/components/schemas/ResourceARN" APIName: $ref: "#/components/schemas/APIName" ListStreamsInputLimit: type: integer minimum: 1 maximum: 10000 NextToken: type: string minLength: 0 maxLength: 512 StreamNameCondition: type: object properties: ComparisonOperator: $ref: "#/components/schemas/ComparisonOperator" ComparisonValue: $ref: "#/components/schemas/StreamName" 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. " 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"