{ "smithy": "2.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.kinesisvideomedia#AWSAcuityInletService": { "type": "service", "version": "2017-09-30", "operations": [ { "target": "com.amazonaws.kinesisvideomedia#GetMedia" } ], "traits": { "aws.api#service": { "sdkId": "Kinesis Video Media", "arnNamespace": "kinesisvideo", "cloudFormationName": "KinesisVideoMedia", "cloudTrailEventSource": "kinesisvideomedia.amazonaws.com", "endpointPrefix": "kinesisvideo" }, "aws.auth#sigv4": { "name": "kinesisvideo" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

", "smithy.api#title": "Amazon Kinesis Video Streams Media", "smithy.rules#endpointBdd": { "version": "1.1", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] }, { "fn": "isSet", "argv": [ { "ref": "Region" } ] }, { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" }, { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] }, true ] }, { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "results": [ { "conditions": [], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "endpoint": { "url": "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" }, { "conditions": [], "endpoint": { "url": "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ], "root": 2, "nodeCount": 13, "nodes": "/////wAAAAH/////AAAAAAAAAAwAAAADAAAAAQAAAAQF9eELAAAAAgAAAAUF9eELAAAAAwAAAAgAAAAGAAAABAAAAAcF9eEKAAAABQX14QgF9eEJAAAABAAAAAoAAAAJAAAABgX14QYF9eEHAAAABQAAAAsF9eEFAAAABgX14QQF9eEFAAAAAwX14QEAAAANAAAABAX14QIF9eED" }, "smithy.rules#endpointRuleSet": { "version": "1.0", "parameters": { "Region": { "builtIn": "AWS::Region", "required": false, "documentation": "The AWS region used to dispatch the request.", "type": "string" }, "UseDualStack": { "builtIn": "AWS::UseDualStack", "required": true, "default": false, "documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.", "type": "boolean" }, "UseFIPS": { "builtIn": "AWS::UseFIPS", "required": true, "default": false, "documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.", "type": "boolean" }, "Endpoint": { "builtIn": "SDK::Endpoint", "required": false, "documentation": "Override the endpoint used to send this request", "type": "string" } }, "rules": [ { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Endpoint" } ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "error": "Invalid Configuration: FIPS and custom endpoint are not supported", "type": "error" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "error": "Invalid Configuration: Dualstack and custom endpoint are not supported", "type": "error" }, { "conditions": [], "endpoint": { "url": { "ref": "Endpoint" }, "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [ { "fn": "isSet", "argv": [ { "ref": "Region" } ] } ], "rules": [ { "conditions": [ { "fn": "aws.partition", "argv": [ { "ref": "Region" } ], "assign": "PartitionResult" } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] }, { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] } ] }, { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS and DualStack are enabled, but this partition does not support one or both", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseFIPS" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsFIPS" ] }, true ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "FIPS is enabled but this partition does not support FIPS", "type": "error" } ], "type": "tree" }, { "conditions": [ { "fn": "booleanEquals", "argv": [ { "ref": "UseDualStack" }, true ] } ], "rules": [ { "conditions": [ { "fn": "booleanEquals", "argv": [ true, { "fn": "getAttr", "argv": [ { "ref": "PartitionResult" }, "supportsDualStack" ] } ] } ], "rules": [ { "conditions": [], "endpoint": { "url": "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" }, { "conditions": [], "error": "DualStack is enabled but this partition does not support DualStack", "type": "error" } ], "type": "tree" }, { "conditions": [], "endpoint": { "url": "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, "type": "endpoint" } ], "type": "tree" } ], "type": "tree" }, { "conditions": [], "error": "Invalid Configuration: Missing Region", "type": "error" } ] }, "smithy.rules#endpointTests": { "testCases": [ { "documentation": "For region af-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.af-south-1.amazonaws.com" } }, "params": { "Region": "af-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.ap-east-1.amazonaws.com" } }, "params": { "Region": "ap-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.ap-northeast-1.amazonaws.com" } }, "params": { "Region": "ap-northeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-northeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.ap-northeast-2.amazonaws.com" } }, "params": { "Region": "ap-northeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-south-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.ap-south-1.amazonaws.com" } }, "params": { "Region": "ap-south-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.ap-southeast-1.amazonaws.com" } }, "params": { "Region": "ap-southeast-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ap-southeast-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.ap-southeast-2.amazonaws.com" } }, "params": { "Region": "ap-southeast-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region ca-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.ca-central-1.amazonaws.com" } }, "params": { "Region": "ca-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-central-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.eu-central-1.amazonaws.com" } }, "params": { "Region": "eu-central-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.eu-west-1.amazonaws.com" } }, "params": { "Region": "eu-west-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.eu-west-2.amazonaws.com" } }, "params": { "Region": "eu-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region eu-west-3 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.eu-west-3.amazonaws.com" } }, "params": { "Region": "eu-west-3", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region sa-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.sa-east-1.amazonaws.com" } }, "params": { "Region": "sa-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-east-2.amazonaws.com" } }, "params": { "Region": "us-east-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-west-2 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-west-2.amazonaws.com" } }, "params": { "Region": "us-west-2", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.us-east-1.amazonaws.com" } }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-east-1.api.aws" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://kinesisvideo.cn-north-1.api.amazonwebservices.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region cn-north-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.cn-north-1.amazonaws.com.cn" } }, "params": { "Region": "cn-north-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack enabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack enabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-gov-east-1.api.aws" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": true } }, { "documentation": "For region us-gov-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-gov-east-1.amazonaws.com" } }, "params": { "Region": "us-gov-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-iso-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-iso-east-1.c2s.ic.gov" } }, "params": { "Region": "us-iso-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS enabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo-fips.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": true, "UseDualStack": false } }, { "documentation": "For region us-isob-east-1 with FIPS disabled and DualStack disabled", "expect": { "endpoint": { "url": "https://kinesisvideo.us-isob-east-1.sc2s.sgov.gov" } }, "params": { "Region": "us-isob-east-1", "UseFIPS": false, "UseDualStack": false } }, { "documentation": "For custom endpoint with region set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with region not set and fips disabled and dualstack disabled", "expect": { "endpoint": { "url": "https://example.com" } }, "params": { "UseFIPS": false, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips enabled and dualstack disabled", "expect": { "error": "Invalid Configuration: FIPS and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": true, "UseDualStack": false, "Endpoint": "https://example.com" } }, { "documentation": "For custom endpoint with fips disabled and dualstack enabled", "expect": { "error": "Invalid Configuration: Dualstack and custom endpoint are not supported" }, "params": { "Region": "us-east-1", "UseFIPS": false, "UseDualStack": true, "Endpoint": "https://example.com" } }, { "documentation": "Missing region", "expect": { "error": "Invalid Configuration: Missing Region" } } ], "version": "1.0" } } }, "com.amazonaws.kinesisvideomedia#ClientLimitExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideomedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

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

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideomedia#ConnectionLimitExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideomedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

Kinesis Video Streams has throttled the request because you have exceeded the limit of\n allowed client connections.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideomedia#ContentType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[a-zA-Z0-9_\\.\\-]+$" } }, "com.amazonaws.kinesisvideomedia#ContinuationToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[a-zA-Z0-9_\\.\\-]+$" } }, "com.amazonaws.kinesisvideomedia#ErrorMessage": { "type": "string" }, "com.amazonaws.kinesisvideomedia#FragmentNumberString": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[0-9]+$" } }, "com.amazonaws.kinesisvideomedia#GetMedia": { "type": "operation", "input": { "target": "com.amazonaws.kinesisvideomedia#GetMediaInput" }, "output": { "target": "com.amazonaws.kinesisvideomedia#GetMediaOutput" }, "errors": [ { "target": "com.amazonaws.kinesisvideomedia#ClientLimitExceededException" }, { "target": "com.amazonaws.kinesisvideomedia#ConnectionLimitExceededException" }, { "target": "com.amazonaws.kinesisvideomedia#InvalidArgumentException" }, { "target": "com.amazonaws.kinesisvideomedia#InvalidEndpointException" }, { "target": "com.amazonaws.kinesisvideomedia#NotAuthorizedException" }, { "target": "com.amazonaws.kinesisvideomedia#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Use this API to retrieve media content from a Kinesis video stream. In the request,\n you identify the stream name or stream Amazon Resource Name (ARN), and the starting chunk.\n Kinesis Video Streams then returns a stream of chunks in order by fragment number.

\n \n

You must first call the GetDataEndpoint API to get an endpoint. Then\n send the GetMedia requests to this endpoint using the --endpoint-url parameter.\n

\n
\n

When you put media data (fragments) on a stream, Kinesis Video Streams stores each\n incoming fragment and related metadata in what is called a \"chunk.\" For more information, see\n PutMedia. The GetMedia API returns a stream of these chunks starting\n from the chunk that you specify in the request.

\n

The following limits apply when using the GetMedia API:

\n \n\n \n

If an error is thrown after invoking a Kinesis Video Streams media API, in addition to\n the HTTP status code and the response body, it includes the following pieces of information:

\n \n

Both the HTTP status code and the ErrorType header can be utilized to make programmatic\n decisions about whether errors are retry-able and under what conditions, as well as provide\n information on what actions the client programmer might need to take in order to\n successfully try again.

\n

For more information, see the Errors section at the\n bottom of this topic, as well as Common Errors.

\n
", "smithy.api#http": { "method": "POST", "uri": "/getMedia", "code": 200 } } }, "com.amazonaws.kinesisvideomedia#GetMediaInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesisvideomedia#StreamName", "traits": { "smithy.api#documentation": "

The Kinesis video stream name from where you want to get the media content. If you\n don't specify the streamName, you must specify the\n streamARN.

" } }, "StreamARN": { "target": "com.amazonaws.kinesisvideomedia#ResourceARN", "traits": { "smithy.api#documentation": "

The ARN of the stream from where you want to get the media content. If you don't\n specify the streamARN, you must specify the streamName.

" } }, "StartSelector": { "target": "com.amazonaws.kinesisvideomedia#StartSelector", "traits": { "smithy.api#documentation": "

Identifies the starting chunk to get from the specified stream.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#input": {} } }, "com.amazonaws.kinesisvideomedia#GetMediaOutput": { "type": "structure", "members": { "ContentType": { "target": "com.amazonaws.kinesisvideomedia#ContentType", "traits": { "smithy.api#documentation": "

The content type of the requested media.

", "smithy.api#httpHeader": "Content-Type" } }, "Payload": { "target": "com.amazonaws.kinesisvideomedia#Payload", "traits": { "smithy.api#default": "", "smithy.api#documentation": "

The payload Kinesis Video Streams returns is a sequence of chunks from the specified\n stream. For information about the chunks, see . The\n chunks that Kinesis Video Streams returns in the GetMedia call also include the\n following additional Matroska (MKV) tags:

\n \n

The following tags will be present if an error occurs:

\n \n

The error codes are as follows:

\n ", "smithy.api#httpPayload": {} } } }, "traits": { "smithy.api#output": {} } }, "com.amazonaws.kinesisvideomedia#InvalidArgumentException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideomedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The value for this input parameter is invalid.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideomedia#InvalidEndpointException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideomedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

Status Code: 400, Caller used wrong endpoint to write data to a stream. On receiving\n such an exception, the user must call GetDataEndpoint with\n AccessMode set to \"READ\" and use the endpoint Kinesis Video returns in the next\n GetMedia call.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideomedia#NotAuthorizedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideomedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

Status Code: 403, The caller is not authorized to perform an operation on the given\n stream, or the token has expired.

", "smithy.api#error": "client", "smithy.api#httpError": 401 } }, "com.amazonaws.kinesisvideomedia#Payload": { "type": "blob", "traits": { "smithy.api#streaming": {} } }, "com.amazonaws.kinesisvideomedia#ResourceARN": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1024 }, "smithy.api#pattern": "^arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+$" } }, "com.amazonaws.kinesisvideomedia#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideomedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

Status Code: 404, The stream with the given name does not exist.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.kinesisvideomedia#StartSelector": { "type": "structure", "members": { "StartSelectorType": { "target": "com.amazonaws.kinesisvideomedia#StartSelectorType", "traits": { "smithy.api#documentation": "

Identifies the fragment on the Kinesis video stream where you want to start getting the\n data from.

\n \n \n

If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the\n startSelectorType, you don't provide any additional information in the\n startSelector.

\n
", "smithy.api#required": {} } }, "AfterFragmentNumber": { "target": "com.amazonaws.kinesisvideomedia#FragmentNumberString", "traits": { "smithy.api#documentation": "

Specifies the fragment number from where you want the GetMedia API to\n start returning the fragments.

" } }, "StartTimestamp": { "target": "com.amazonaws.kinesisvideomedia#Timestamp", "traits": { "smithy.api#documentation": "

A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the\n SERVER_TIMESTAMP as the startSelectorType. The GetMedia API then\n starts with the chunk containing the fragment that has the specified timestamp.

" } }, "ContinuationToken": { "target": "com.amazonaws.kinesisvideomedia#ContinuationToken", "traits": { "smithy.api#documentation": "

Continuation token that Kinesis Video Streams returned in the previous\n GetMedia response. The GetMedia API then starts with the chunk\n identified by the continuation token.

" } } }, "traits": { "smithy.api#documentation": "

Identifies the chunk on the Kinesis video stream where you want the\n GetMedia API to start returning media data. You have the following options to\n identify the starting chunk:

\n " } }, "com.amazonaws.kinesisvideomedia#StartSelectorType": { "type": "enum", "members": { "FRAGMENT_NUMBER": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "FRAGMENT_NUMBER" } }, "SERVER_TIMESTAMP": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "SERVER_TIMESTAMP" } }, "PRODUCER_TIMESTAMP": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "PRODUCER_TIMESTAMP" } }, "NOW": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "NOW" } }, "EARLIEST": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "EARLIEST" } }, "CONTINUATION_TOKEN": { "target": "smithy.api#Unit", "traits": { "smithy.api#enumValue": "CONTINUATION_TOKEN" } } } }, "com.amazonaws.kinesisvideomedia#StreamName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": "^[a-zA-Z0-9_.-]+$" } }, "com.amazonaws.kinesisvideomedia#Timestamp": { "type": "timestamp" } } }