{ "version":"2.0", "metadata":{ "apiVersion":"2020-07-14", "endpointPrefix":"ivs", "protocol":"rest-json", "serviceAbbreviation":"Amazon IVS", "serviceFullName":"Amazon Interactive Video Service", "serviceId":"ivs", "signatureVersion":"v4", "signingName":"ivs", "uid":"ivs-2020-07-14" }, "operations":{ "BatchGetChannel":{ "name":"BatchGetChannel", "http":{ "method":"POST", "requestUri":"/BatchGetChannel" }, "input":{"shape":"BatchGetChannelRequest"}, "output":{"shape":"BatchGetChannelResponse"}, "documentation":"

Performs GetChannel on multiple ARNs simultaneously.

" }, "BatchGetStreamKey":{ "name":"BatchGetStreamKey", "http":{ "method":"POST", "requestUri":"/BatchGetStreamKey" }, "input":{"shape":"BatchGetStreamKeyRequest"}, "output":{"shape":"BatchGetStreamKeyResponse"}, "documentation":"

Performs GetStreamKey on multiple ARNs simultaneously.

" }, "CreateChannel":{ "name":"CreateChannel", "http":{ "method":"POST", "requestUri":"/CreateChannel" }, "input":{"shape":"CreateChannelRequest"}, "output":{"shape":"CreateChannelResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"PendingVerification"} ], "documentation":"

Creates a new channel and an associated stream key to start streaming.

" }, "CreateRecordingConfiguration":{ "name":"CreateRecordingConfiguration", "http":{ "method":"POST", "requestUri":"/CreateRecordingConfiguration" }, "input":{"shape":"CreateRecordingConfigurationRequest"}, "output":{"shape":"CreateRecordingConfigurationResponse"}, "errors":[ {"shape":"AccessDeniedException"}, {"shape":"ConflictException"}, {"shape":"InternalServerException"}, {"shape":"PendingVerification"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"ValidationException"} ], "documentation":"

Creates a new recording configuration, used to enable recording to Amazon S3.

Known issue: In the us-east-1 region, if you use the AWS CLI to create a recording configuration, it returns success even if the S3 bucket is in a different region. In this case, the state of the recording configuration is CREATE_FAILED (instead of ACTIVE). (In other regions, the CLI correctly returns failure if the bucket is in a different region.)

Workaround: Ensure that your S3 bucket is in the same region as the recording configuration. If you create a recording configuration in a different region as your S3 bucket, delete that recording configuration and create a new one with an S3 bucket from the correct region.

" }, "CreateStreamKey":{ "name":"CreateStreamKey", "http":{ "method":"POST", "requestUri":"/CreateStreamKey" }, "input":{"shape":"CreateStreamKeyRequest"}, "output":{"shape":"CreateStreamKeyResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"PendingVerification"} ], "documentation":"

Creates a stream key, used to initiate a stream, for the specified channel ARN.

Note that CreateChannel creates a stream key. If you subsequently use CreateStreamKey on the same channel, it will fail because a stream key already exists and there is a limit of 1 stream key per channel. To reset the stream key on a channel, use DeleteStreamKey and then CreateStreamKey.

" }, "DeleteChannel":{ "name":"DeleteChannel", "http":{ "method":"POST", "requestUri":"/DeleteChannel", "responseCode":204 }, "input":{"shape":"DeleteChannelRequest"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ConflictException"}, {"shape":"PendingVerification"} ], "documentation":"

Deletes the specified channel and its associated stream keys.

If you try to delete a live channel, you will get an error (409 ConflictException). To delete a channel that is live, call StopStream, wait for the Amazon EventBridge \"Stream End\" event (to verify that the stream's state was changed from Live to Offline), then call DeleteChannel. (See Using EventBridge with Amazon IVS.)

" }, "DeletePlaybackKeyPair":{ "name":"DeletePlaybackKeyPair", "http":{ "method":"POST", "requestUri":"/DeletePlaybackKeyPair" }, "input":{"shape":"DeletePlaybackKeyPairRequest"}, "output":{"shape":"DeletePlaybackKeyPairResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"PendingVerification"} ], "documentation":"

Deletes a specified authorization key pair. This invalidates future viewer tokens generated using the key pair’s privateKey. For more information, see Setting Up Private Channels in the Amazon IVS User Guide.

" }, "DeleteRecordingConfiguration":{ "name":"DeleteRecordingConfiguration", "http":{ "method":"POST", "requestUri":"/DeleteRecordingConfiguration" }, "input":{"shape":"DeleteRecordingConfigurationRequest"}, "errors":[ {"shape":"AccessDeniedException"}, {"shape":"ConflictException"}, {"shape":"InternalServerException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"} ], "documentation":"

Deletes the recording configuration for the specified ARN.

If you try to delete a recording configuration that is associated with a channel, you will get an error (409 ConflictException). To avoid this, for all channels that reference the recording configuration, first use UpdateChannel to set the recordingConfigurationArn field to an empty string, then use DeleteRecordingConfiguration.

" }, "DeleteStreamKey":{ "name":"DeleteStreamKey", "http":{ "method":"POST", "requestUri":"/DeleteStreamKey", "responseCode":204 }, "input":{"shape":"DeleteStreamKeyRequest"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"PendingVerification"} ], "documentation":"

Deletes the stream key for the specified ARN, so it can no longer be used to stream.

" }, "GetChannel":{ "name":"GetChannel", "http":{ "method":"POST", "requestUri":"/GetChannel" }, "input":{"shape":"GetChannelRequest"}, "output":{"shape":"GetChannelResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Gets the channel configuration for the specified channel ARN. See also BatchGetChannel.

" }, "GetPlaybackKeyPair":{ "name":"GetPlaybackKeyPair", "http":{ "method":"POST", "requestUri":"/GetPlaybackKeyPair" }, "input":{"shape":"GetPlaybackKeyPairRequest"}, "output":{"shape":"GetPlaybackKeyPairResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Gets a specified playback authorization key pair and returns the arn and fingerprint. The privateKey held by the caller can be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the Amazon IVS User Guide.

" }, "GetRecordingConfiguration":{ "name":"GetRecordingConfiguration", "http":{ "method":"POST", "requestUri":"/GetRecordingConfiguration" }, "input":{"shape":"GetRecordingConfigurationRequest"}, "output":{"shape":"GetRecordingConfigurationResponse"}, "errors":[ {"shape":"AccessDeniedException"}, {"shape":"InternalServerException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"} ], "documentation":"

Gets the recording configuration for the specified ARN.

" }, "GetStream":{ "name":"GetStream", "http":{ "method":"POST", "requestUri":"/GetStream" }, "input":{"shape":"GetStreamRequest"}, "output":{"shape":"GetStreamResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ChannelNotBroadcasting"} ], "documentation":"

Gets information about the active (live) stream on a specified channel.

" }, "GetStreamKey":{ "name":"GetStreamKey", "http":{ "method":"POST", "requestUri":"/GetStreamKey" }, "input":{"shape":"GetStreamKeyRequest"}, "output":{"shape":"GetStreamKeyResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Gets stream-key information for a specified ARN.

" }, "ImportPlaybackKeyPair":{ "name":"ImportPlaybackKeyPair", "http":{ "method":"POST", "requestUri":"/ImportPlaybackKeyPair" }, "input":{"shape":"ImportPlaybackKeyPairRequest"}, "output":{"shape":"ImportPlaybackKeyPairResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"ConflictException"}, {"shape":"AccessDeniedException"}, {"shape":"ServiceQuotaExceededException"}, {"shape":"PendingVerification"} ], "documentation":"

Imports the public portion of a new key pair and returns its arn and fingerprint. The privateKey can then be used to generate viewer authorization tokens, to grant viewers access to private channels. For more information, see Setting Up Private Channels in the Amazon IVS User Guide.

" }, "ListChannels":{ "name":"ListChannels", "http":{ "method":"POST", "requestUri":"/ListChannels" }, "input":{"shape":"ListChannelsRequest"}, "output":{"shape":"ListChannelsResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ConflictException"} ], "documentation":"

Gets summary information about all channels in your account, in the AWS region where the API request is processed. This list can be filtered to match a specified name or recording-configuration ARN. Filters are mutually exclusive and cannot be used together. If you try to use both filters, you will get an error (409 ConflictException).

" }, "ListPlaybackKeyPairs":{ "name":"ListPlaybackKeyPairs", "http":{ "method":"POST", "requestUri":"/ListPlaybackKeyPairs" }, "input":{"shape":"ListPlaybackKeyPairsRequest"}, "output":{"shape":"ListPlaybackKeyPairsResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], "documentation":"

Gets summary information about playback key pairs. For more information, see Setting Up Private Channels in the Amazon IVS User Guide.

" }, "ListRecordingConfigurations":{ "name":"ListRecordingConfigurations", "http":{ "method":"POST", "requestUri":"/ListRecordingConfigurations" }, "input":{"shape":"ListRecordingConfigurationsRequest"}, "output":{"shape":"ListRecordingConfigurationsResponse"}, "errors":[ {"shape":"AccessDeniedException"}, {"shape":"InternalServerException"}, {"shape":"ValidationException"} ], "documentation":"

Gets summary information about all recording configurations in your account, in the AWS region where the API request is processed.

" }, "ListStreamKeys":{ "name":"ListStreamKeys", "http":{ "method":"POST", "requestUri":"/ListStreamKeys" }, "input":{"shape":"ListStreamKeysRequest"}, "output":{"shape":"ListStreamKeysResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Gets summary information about stream keys for the specified channel.

" }, "ListStreams":{ "name":"ListStreams", "http":{ "method":"POST", "requestUri":"/ListStreams" }, "input":{"shape":"ListStreamsRequest"}, "output":{"shape":"ListStreamsResponse"}, "errors":[ {"shape":"AccessDeniedException"} ], "documentation":"

Gets summary information about live streams in your account, in the AWS region where the API request is processed.

" }, "ListTagsForResource":{ "name":"ListTagsForResource", "http":{ "method":"GET", "requestUri":"/tags/{resourceArn}" }, "input":{"shape":"ListTagsForResourceRequest"}, "output":{"shape":"ListTagsForResourceResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Gets information about AWS tags for the specified ARN.

" }, "PutMetadata":{ "name":"PutMetadata", "http":{ "method":"POST", "requestUri":"/PutMetadata" }, "input":{"shape":"PutMetadataRequest"}, "errors":[ {"shape":"ThrottlingException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ChannelNotBroadcasting"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"} ], "documentation":"

Inserts metadata into the active stream of the specified channel. A maximum of 5 requests per second per channel is allowed, each with a maximum 1 KB payload. (If 5 TPS is not sufficient for your needs, we recommend batching your data into a single PutMetadata call.) Also see Embedding Metadata within a Video Stream in the Amazon IVS User Guide.

" }, "StopStream":{ "name":"StopStream", "http":{ "method":"POST", "requestUri":"/StopStream" }, "input":{"shape":"StopStreamRequest"}, "output":{"shape":"StopStreamResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ChannelNotBroadcasting"}, {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"StreamUnavailable"} ], "documentation":"

Disconnects the incoming RTMPS stream for the specified channel. Can be used in conjunction with DeleteStreamKey to prevent further streaming to a channel.

Many streaming client-software libraries automatically reconnect a dropped RTMPS session, so to stop the stream permanently, you may want to first revoke the streamKey attached to the channel.

" }, "TagResource":{ "name":"TagResource", "http":{ "method":"POST", "requestUri":"/tags/{resourceArn}" }, "input":{"shape":"TagResourceRequest"}, "output":{"shape":"TagResourceResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Adds or updates tags for the AWS resource with the specified ARN.

" }, "UntagResource":{ "name":"UntagResource", "http":{ "method":"DELETE", "requestUri":"/tags/{resourceArn}" }, "input":{"shape":"UntagResourceRequest"}, "output":{"shape":"UntagResourceResponse"}, "errors":[ {"shape":"InternalServerException"}, {"shape":"ValidationException"}, {"shape":"ResourceNotFoundException"} ], "documentation":"

Removes tags from the resource with the specified ARN.

" }, "UpdateChannel":{ "name":"UpdateChannel", "http":{ "method":"POST", "requestUri":"/UpdateChannel" }, "input":{"shape":"UpdateChannelRequest"}, "output":{"shape":"UpdateChannelResponse"}, "errors":[ {"shape":"ValidationException"}, {"shape":"AccessDeniedException"}, {"shape":"ResourceNotFoundException"}, {"shape":"ConflictException"}, {"shape":"PendingVerification"} ], "documentation":"

Updates a channel's configuration. This does not affect an ongoing stream of this channel. You must stop and restart the stream for the changes to take effect.

" } }, "shapes":{ "AccessDeniedException":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

User does not have sufficient access to perform this action.

" } }, "error":{"httpStatusCode":403}, "exception":true }, "BatchError":{ "type":"structure", "members":{ "arn":{ "shape":"ResourceArn", "documentation":"

Channel ARN.

" }, "code":{ "shape":"errorCode", "documentation":"

Error code.

" }, "message":{ "shape":"errorMessage", "documentation":"

Error message, determined by the application.

" } }, "documentation":"

Error related to a specific channel, specified by its ARN.

" }, "BatchErrors":{ "type":"list", "member":{"shape":"BatchError"} }, "BatchGetChannelRequest":{ "type":"structure", "required":["arns"], "members":{ "arns":{ "shape":"ChannelArnList", "documentation":"

Array of ARNs, one per channel.

" } } }, "BatchGetChannelResponse":{ "type":"structure", "members":{ "channels":{"shape":"Channels"}, "errors":{ "shape":"BatchErrors", "documentation":"

Each error object is related to a specific ARN in the request.

" } } }, "BatchGetStreamKeyRequest":{ "type":"structure", "required":["arns"], "members":{ "arns":{ "shape":"StreamKeyArnList", "documentation":"

Array of ARNs, one per channel.

" } } }, "BatchGetStreamKeyResponse":{ "type":"structure", "members":{ "streamKeys":{"shape":"StreamKeys"}, "errors":{"shape":"BatchErrors"} } }, "Boolean":{"type":"boolean"}, "Channel":{ "type":"structure", "members":{ "arn":{ "shape":"ChannelArn", "documentation":"

Channel ARN.

" }, "name":{ "shape":"ChannelName", "documentation":"

Channel name.

" }, "latencyMode":{ "shape":"ChannelLatencyMode", "documentation":"

Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers. Default: LOW. (Note: In the Amazon IVS console, LOW and NORMAL correspond to Ultra-low and Standard, respectively.)

" }, "type":{ "shape":"ChannelType", "documentation":"

Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. Valid values:

" }, "recordingConfigurationArn":{ "shape":"ChannelRecordingConfigurationArn", "documentation":"

Recording-configuration ARN. A value other than an empty string indicates that recording is enabled. Default: \"\" (empty string, recording is disabled).

" }, "ingestEndpoint":{ "shape":"IngestEndpoint", "documentation":"

Channel ingest endpoint, part of the definition of an ingest server, used when you set up streaming software.

" }, "playbackUrl":{ "shape":"PlaybackURL", "documentation":"

Channel playback URL.

" }, "authorized":{ "shape":"IsAuthorized", "documentation":"

Whether the channel is private (enabled for playback authorization). Default: false.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

Object specifying a channel.

" }, "ChannelArn":{ "type":"string", "max":128, "min":1, "pattern":"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+$" }, "ChannelArnList":{ "type":"list", "member":{"shape":"ChannelArn"}, "max":50, "min":1 }, "ChannelLatencyMode":{ "type":"string", "enum":[ "NORMAL", "LOW" ] }, "ChannelList":{ "type":"list", "member":{"shape":"ChannelSummary"} }, "ChannelName":{ "type":"string", "max":128, "min":0, "pattern":"^[a-zA-Z0-9-_]*$" }, "ChannelNotBroadcasting":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

The stream is offline for the given channel ARN.

" } }, "error":{"httpStatusCode":404}, "exception":true }, "ChannelRecordingConfigurationArn":{ "type":"string", "max":128, "min":0, "pattern":"^$|^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$" }, "ChannelSummary":{ "type":"structure", "members":{ "arn":{ "shape":"ChannelArn", "documentation":"

Channel ARN.

" }, "name":{ "shape":"ChannelName", "documentation":"

Channel name.

" }, "latencyMode":{ "shape":"ChannelLatencyMode", "documentation":"

Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers. Default: LOW. (Note: In the Amazon IVS console, LOW and NORMAL correspond to Ultra-low and Standard, respectively.)

" }, "authorized":{ "shape":"IsAuthorized", "documentation":"

Whether the channel is private (enabled for playback authorization). Default: false.

" }, "recordingConfigurationArn":{ "shape":"ChannelRecordingConfigurationArn", "documentation":"

Recording-configuration ARN. A value other than an empty string indicates that recording is enabled. Default: \"\" (empty string, recording is disabled).

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

Summary information about a channel.

" }, "ChannelType":{ "type":"string", "enum":[ "BASIC", "STANDARD" ] }, "Channels":{ "type":"list", "member":{"shape":"Channel"} }, "ConflictException":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

Updating or deleting a resource can cause an inconsistent state.

" } }, "error":{"httpStatusCode":409}, "exception":true }, "CreateChannelRequest":{ "type":"structure", "members":{ "name":{ "shape":"ChannelName", "documentation":"

Channel name.

" }, "latencyMode":{ "shape":"ChannelLatencyMode", "documentation":"

Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, LOW and NORMAL correspond to Ultra-low and Standard, respectively.) Default: LOW.

" }, "type":{ "shape":"ChannelType", "documentation":"

Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. Valid values:

" }, "authorized":{ "shape":"Boolean", "documentation":"

Whether the channel is private (enabled for playback authorization). Default: false.

" }, "recordingConfigurationArn":{ "shape":"ChannelRecordingConfigurationArn", "documentation":"

Recording-configuration ARN. Default: \"\" (empty string, recording is disabled).

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

Array of 1-50 maps, each of the form string:string (key:value).

" } } }, "CreateChannelResponse":{ "type":"structure", "members":{ "channel":{"shape":"Channel"}, "streamKey":{"shape":"StreamKey"} } }, "CreateRecordingConfigurationRequest":{ "type":"structure", "required":["destinationConfiguration"], "members":{ "name":{ "shape":"RecordingConfigurationName", "documentation":"

An arbitrary string (a nickname) that helps the customer identify that resource. The value does not need to be unique.

" }, "destinationConfiguration":{ "shape":"DestinationConfiguration", "documentation":"

A complex type that contains a destination configuration for where recorded video will be stored.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } } }, "CreateRecordingConfigurationResponse":{ "type":"structure", "members":{ "recordingConfiguration":{"shape":"RecordingConfiguration"} } }, "CreateStreamKeyRequest":{ "type":"structure", "required":["channelArn"], "members":{ "channelArn":{ "shape":"ChannelArn", "documentation":"

ARN of the channel for which to create the stream key.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } } }, "CreateStreamKeyResponse":{ "type":"structure", "members":{ "streamKey":{ "shape":"StreamKey", "documentation":"

Stream key used to authenticate an RTMPS stream for ingestion.

" } } }, "DeleteChannelRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"ChannelArn", "documentation":"

ARN of the channel to be deleted.

" } } }, "DeletePlaybackKeyPairRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"PlaybackKeyPairArn", "documentation":"

ARN of the key pair to be deleted.

" } } }, "DeletePlaybackKeyPairResponse":{ "type":"structure", "members":{ } }, "DeleteRecordingConfigurationRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"RecordingConfigurationArn", "documentation":"

ARN of the recording configuration to be deleted.

" } } }, "DeleteStreamKeyRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"StreamKeyArn", "documentation":"

ARN of the stream key to be deleted.

" } } }, "DestinationConfiguration":{ "type":"structure", "members":{ "s3":{ "shape":"S3DestinationConfiguration", "documentation":"

An S3 destination configuration where recorded videos will be stored.

" } }, "documentation":"

A complex type that describes a location where recorded videos will be stored. Each member represents a type of destination configuration. For recording, you define one and only one type of destination configuration.

" }, "GetChannelRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"ChannelArn", "documentation":"

ARN of the channel for which the configuration is to be retrieved.

" } } }, "GetChannelResponse":{ "type":"structure", "members":{ "channel":{"shape":"Channel"} } }, "GetPlaybackKeyPairRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"PlaybackKeyPairArn", "documentation":"

ARN of the key pair to be returned.

" } } }, "GetPlaybackKeyPairResponse":{ "type":"structure", "members":{ "keyPair":{"shape":"PlaybackKeyPair"} } }, "GetRecordingConfigurationRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"RecordingConfigurationArn", "documentation":"

ARN of the recording configuration to be retrieved.

" } } }, "GetRecordingConfigurationResponse":{ "type":"structure", "members":{ "recordingConfiguration":{"shape":"RecordingConfiguration"} } }, "GetStreamKeyRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"StreamKeyArn", "documentation":"

ARN for the stream key to be retrieved.

" } } }, "GetStreamKeyResponse":{ "type":"structure", "members":{ "streamKey":{"shape":"StreamKey"} } }, "GetStreamRequest":{ "type":"structure", "required":["channelArn"], "members":{ "channelArn":{ "shape":"ChannelArn", "documentation":"

Channel ARN for stream to be accessed.

" } } }, "GetStreamResponse":{ "type":"structure", "members":{ "stream":{"shape":"Stream"} } }, "ImportPlaybackKeyPairRequest":{ "type":"structure", "required":["publicKeyMaterial"], "members":{ "publicKeyMaterial":{ "shape":"PlaybackPublicKeyMaterial", "documentation":"

The public portion of a customer-generated key pair.

" }, "name":{ "shape":"PlaybackKeyPairName", "documentation":"

An arbitrary string (a nickname) assigned to a playback key pair that helps the customer identify that resource. The value does not need to be unique.

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

Any tags provided with the request are added to the playback key pair tags.

" } } }, "ImportPlaybackKeyPairResponse":{ "type":"structure", "members":{ "keyPair":{"shape":"PlaybackKeyPair"} } }, "IngestEndpoint":{"type":"string"}, "InternalServerException":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

Unexpected error during processing of request.

" } }, "error":{"httpStatusCode":500}, "exception":true }, "IsAuthorized":{"type":"boolean"}, "ListChannelsRequest":{ "type":"structure", "members":{ "filterByName":{ "shape":"ChannelName", "documentation":"

Filters the channel list to match the specified name.

" }, "filterByRecordingConfigurationArn":{ "shape":"ChannelRecordingConfigurationArn", "documentation":"

Filters the channel list to match the specified recording-configuration ARN.

" }, "nextToken":{ "shape":"PaginationToken", "documentation":"

The first channel to retrieve. This is used for pagination; see the nextToken response field.

" }, "maxResults":{ "shape":"MaxChannelResults", "documentation":"

Maximum number of channels to return. Default: 50.

" } } }, "ListChannelsResponse":{ "type":"structure", "required":["channels"], "members":{ "channels":{ "shape":"ChannelList", "documentation":"

List of the matching channels.

" }, "nextToken":{ "shape":"PaginationToken", "documentation":"

If there are more channels than maxResults, use nextToken in the request to get the next set.

" } } }, "ListPlaybackKeyPairsRequest":{ "type":"structure", "members":{ "nextToken":{ "shape":"PaginationToken", "documentation":"

Maximum number of key pairs to return.

" }, "maxResults":{ "shape":"MaxPlaybackKeyPairResults", "documentation":"

The first key pair to retrieve. This is used for pagination; see the nextToken response field. Default: 50.

" } } }, "ListPlaybackKeyPairsResponse":{ "type":"structure", "required":["keyPairs"], "members":{ "keyPairs":{ "shape":"PlaybackKeyPairList", "documentation":"

List of key pairs.

" }, "nextToken":{ "shape":"PaginationToken", "documentation":"

If there are more key pairs than maxResults, use nextToken in the request to get the next set.

" } } }, "ListRecordingConfigurationsRequest":{ "type":"structure", "members":{ "nextToken":{ "shape":"PaginationToken", "documentation":"

The first recording configuration to retrieve. This is used for pagination; see the nextToken response field.

" }, "maxResults":{ "shape":"MaxRecordingConfigurationResults", "documentation":"

Maximum number of recording configurations to return. Default: 50.

" } } }, "ListRecordingConfigurationsResponse":{ "type":"structure", "required":["recordingConfigurations"], "members":{ "recordingConfigurations":{ "shape":"RecordingConfigurationList", "documentation":"

List of the matching recording configurations.

" }, "nextToken":{ "shape":"PaginationToken", "documentation":"

If there are more recording configurations than maxResults, use nextToken in the request to get the next set.

" } } }, "ListStreamKeysRequest":{ "type":"structure", "required":["channelArn"], "members":{ "channelArn":{ "shape":"ChannelArn", "documentation":"

Channel ARN used to filter the list.

" }, "nextToken":{ "shape":"PaginationToken", "documentation":"

The first stream key to retrieve. This is used for pagination; see the nextToken response field.

" }, "maxResults":{ "shape":"MaxStreamKeyResults", "documentation":"

Maximum number of streamKeys to return. Default: 50.

" } } }, "ListStreamKeysResponse":{ "type":"structure", "required":["streamKeys"], "members":{ "streamKeys":{ "shape":"StreamKeyList", "documentation":"

List of stream keys.

" }, "nextToken":{ "shape":"PaginationToken", "documentation":"

If there are more stream keys than maxResults, use nextToken in the request to get the next set.

" } } }, "ListStreamsRequest":{ "type":"structure", "members":{ "nextToken":{ "shape":"PaginationToken", "documentation":"

The first stream to retrieve. This is used for pagination; see the nextToken response field.

" }, "maxResults":{ "shape":"MaxStreamResults", "documentation":"

Maximum number of streams to return. Default: 50.

" } } }, "ListStreamsResponse":{ "type":"structure", "required":["streams"], "members":{ "streams":{ "shape":"StreamList", "documentation":"

List of streams.

" }, "nextToken":{ "shape":"PaginationToken", "documentation":"

If there are more streams than maxResults, use nextToken in the request to get the next set.

" } } }, "ListTagsForResourceRequest":{ "type":"structure", "required":["resourceArn"], "members":{ "resourceArn":{ "shape":"ResourceArn", "documentation":"

The ARN of the resource to be retrieved.

", "location":"uri", "locationName":"resourceArn" }, "nextToken":{ "shape":"String", "documentation":"

The first tag to retrieve. This is used for pagination; see the nextToken response field.

" }, "maxResults":{ "shape":"MaxTagResults", "documentation":"

Maximum number of tags to return. Default: 50.

" } } }, "ListTagsForResourceResponse":{ "type":"structure", "required":["tags"], "members":{ "tags":{"shape":"Tags"}, "nextToken":{ "shape":"String", "documentation":"

If there are more tags than maxResults, use nextToken in the request to get the next set.

" } } }, "MaxChannelResults":{ "type":"integer", "max":50, "min":1 }, "MaxPlaybackKeyPairResults":{ "type":"integer", "max":50, "min":1 }, "MaxRecordingConfigurationResults":{ "type":"integer", "max":50, "min":1 }, "MaxStreamKeyResults":{ "type":"integer", "max":50, "min":1 }, "MaxStreamResults":{ "type":"integer", "max":50, "min":1 }, "MaxTagResults":{ "type":"integer", "max":50, "min":1 }, "PaginationToken":{ "type":"string", "max":500, "min":0 }, "PendingVerification":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

Your account is pending verification.

" } }, "error":{"httpStatusCode":403}, "exception":true }, "PlaybackKeyPair":{ "type":"structure", "members":{ "arn":{ "shape":"PlaybackKeyPairArn", "documentation":"

Key-pair ARN.

" }, "name":{ "shape":"PlaybackKeyPairName", "documentation":"

An arbitrary string (a nickname) assigned to a playback key pair that helps the customer identify that resource. The value does not need to be unique.

" }, "fingerprint":{ "shape":"PlaybackKeyPairFingerprint", "documentation":"

Key-pair identifier.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

A key pair used to sign and validate a playback authorization token.

" }, "PlaybackKeyPairArn":{ "type":"string", "max":128, "min":1, "pattern":"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:playback-key/[a-zA-Z0-9-]+$" }, "PlaybackKeyPairFingerprint":{"type":"string"}, "PlaybackKeyPairList":{ "type":"list", "member":{"shape":"PlaybackKeyPairSummary"} }, "PlaybackKeyPairName":{ "type":"string", "max":128, "min":0, "pattern":"^[a-zA-Z0-9-_]*$" }, "PlaybackKeyPairSummary":{ "type":"structure", "members":{ "arn":{ "shape":"PlaybackKeyPairArn", "documentation":"

Key-pair ARN.

" }, "name":{ "shape":"PlaybackKeyPairName", "documentation":"

An arbitrary string (a nickname) assigned to a playback key pair that helps the customer identify that resource. The value does not need to be unique.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

Summary information about a playback key pair.

" }, "PlaybackPublicKeyMaterial":{"type":"string"}, "PlaybackURL":{"type":"string"}, "PutMetadataRequest":{ "type":"structure", "required":[ "channelArn", "metadata" ], "members":{ "channelArn":{ "shape":"ChannelArn", "documentation":"

ARN of the channel into which metadata is inserted. This channel must have an active stream.

" }, "metadata":{ "shape":"StreamMetadata", "documentation":"

Metadata to insert into the stream. Maximum: 1 KB per request.

" } } }, "RecordingConfiguration":{ "type":"structure", "required":[ "arn", "destinationConfiguration", "state" ], "members":{ "arn":{ "shape":"RecordingConfigurationArn", "documentation":"

Recording-configuration ARN.

" }, "name":{ "shape":"RecordingConfigurationName", "documentation":"

An arbitrary string (a nickname) assigned to a recording configuration that helps the customer identify that resource. The value does not need to be unique.

" }, "destinationConfiguration":{ "shape":"DestinationConfiguration", "documentation":"

A complex type that contains information about where recorded video will be stored.

" }, "state":{ "shape":"RecordingConfigurationState", "documentation":"

Indicates the current state of the recording configuration. When the state is ACTIVE, the configuration is ready for recording a channel stream.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

An object representing a configuration to record a channel stream.

" }, "RecordingConfigurationArn":{ "type":"string", "max":128, "min":0, "pattern":"^arn:aws:ivs:[a-z0-9-]+:[0-9]+:recording-configuration/[a-zA-Z0-9-]+$" }, "RecordingConfigurationList":{ "type":"list", "member":{"shape":"RecordingConfigurationSummary"} }, "RecordingConfigurationName":{ "type":"string", "max":128, "min":0, "pattern":"^[a-zA-Z0-9-_]*$" }, "RecordingConfigurationState":{ "type":"string", "enum":[ "CREATING", "CREATE_FAILED", "ACTIVE" ] }, "RecordingConfigurationSummary":{ "type":"structure", "required":[ "arn", "destinationConfiguration", "state" ], "members":{ "arn":{ "shape":"RecordingConfigurationArn", "documentation":"

Recording-configuration ARN.

" }, "name":{ "shape":"RecordingConfigurationName", "documentation":"

An arbitrary string (a nickname) assigned to a recording configuration that helps the customer identify that resource. The value does not need to be unique.

" }, "destinationConfiguration":{ "shape":"DestinationConfiguration", "documentation":"

A complex type that contains information about where recorded video will be stored.

" }, "state":{ "shape":"RecordingConfigurationState", "documentation":"

Indicates the current state of the recording configuration. When the state is ACTIVE, the configuration is ready for recording a channel stream.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

Summary information about a RecordingConfiguration.

" }, "ResourceArn":{ "type":"string", "max":128, "min":1, "pattern":"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:[a-z-]/[a-zA-Z0-9-]+$" }, "ResourceNotFoundException":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

Request references a resource which does not exist.

" } }, "error":{"httpStatusCode":404}, "exception":true }, "S3DestinationBucketName":{ "type":"string", "max":63, "min":3, "pattern":"^[a-z0-9-.]+$" }, "S3DestinationConfiguration":{ "type":"structure", "required":["bucketName"], "members":{ "bucketName":{ "shape":"S3DestinationBucketName", "documentation":"

Location (S3 bucket name) where recorded videos will be stored.

" } }, "documentation":"

A complex type that describes an S3 location where recorded videos will be stored.

" }, "ServiceQuotaExceededException":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

Request would cause a service quota to be exceeded.

" } }, "error":{"httpStatusCode":402}, "exception":true }, "StopStreamRequest":{ "type":"structure", "required":["channelArn"], "members":{ "channelArn":{ "shape":"ChannelArn", "documentation":"

ARN of the channel for which the stream is to be stopped.

" } } }, "StopStreamResponse":{ "type":"structure", "members":{ } }, "Stream":{ "type":"structure", "members":{ "channelArn":{ "shape":"ChannelArn", "documentation":"

Channel ARN for the stream.

" }, "playbackUrl":{ "shape":"PlaybackURL", "documentation":"

URL of the master playlist, required by the video player to play the HLS stream.

" }, "startTime":{ "shape":"StreamStartTime", "documentation":"

ISO-8601 formatted timestamp of the stream’s start.

" }, "state":{ "shape":"StreamState", "documentation":"

The stream’s state.

" }, "health":{ "shape":"StreamHealth", "documentation":"

The stream’s health.

" }, "viewerCount":{ "shape":"StreamViewerCount", "documentation":"

Number of current viewers of the stream. A value of -1 indicates that the request timed out; in this case, retry.

" } }, "documentation":"

Specifies a live video stream that has been ingested and distributed.

" }, "StreamHealth":{ "type":"string", "enum":[ "HEALTHY", "STARVING", "UNKNOWN" ] }, "StreamKey":{ "type":"structure", "members":{ "arn":{ "shape":"StreamKeyArn", "documentation":"

Stream-key ARN.

" }, "value":{ "shape":"StreamKeyValue", "documentation":"

Stream-key value.

" }, "channelArn":{ "shape":"ChannelArn", "documentation":"

Channel ARN for the stream.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

Object specifying a stream key.

" }, "StreamKeyArn":{ "type":"string", "max":128, "min":1, "pattern":"^arn:aws:[is]vs:[a-z0-9-]+:[0-9]+:stream-key/[a-zA-Z0-9-]+$" }, "StreamKeyArnList":{ "type":"list", "member":{"shape":"StreamKeyArn"}, "max":50, "min":1 }, "StreamKeyList":{ "type":"list", "member":{"shape":"StreamKeySummary"} }, "StreamKeySummary":{ "type":"structure", "members":{ "arn":{ "shape":"StreamKeyArn", "documentation":"

Stream-key ARN.

" }, "channelArn":{ "shape":"ChannelArn", "documentation":"

Channel ARN for the stream.

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

Array of 1-50 maps, each of the form string:string (key:value).

" } }, "documentation":"

Summary information about a stream key.

" }, "StreamKeyValue":{"type":"string"}, "StreamKeys":{ "type":"list", "member":{"shape":"StreamKey"} }, "StreamList":{ "type":"list", "member":{"shape":"StreamSummary"} }, "StreamMetadata":{ "type":"string", "min":1 }, "StreamStartTime":{ "type":"timestamp", "timestampFormat":"iso8601" }, "StreamState":{ "type":"string", "enum":[ "LIVE", "OFFLINE" ] }, "StreamSummary":{ "type":"structure", "members":{ "channelArn":{ "shape":"ChannelArn", "documentation":"

Channel ARN for the stream.

" }, "state":{ "shape":"StreamState", "documentation":"

The stream’s state.

" }, "health":{ "shape":"StreamHealth", "documentation":"

The stream’s health.

" }, "viewerCount":{ "shape":"StreamViewerCount", "documentation":"

Number of current viewers of the stream. A value of -1 indicates that the request timed out; in this case, retry.

" }, "startTime":{ "shape":"StreamStartTime", "documentation":"

ISO-8601 formatted timestamp of the stream’s start.

" } }, "documentation":"

Summary information about a stream.

" }, "StreamUnavailable":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

The stream is temporarily unavailable.

" } }, "error":{"httpStatusCode":503}, "exception":true }, "StreamViewerCount":{"type":"long"}, "String":{"type":"string"}, "TagKey":{ "type":"string", "max":128, "min":1 }, "TagKeyList":{ "type":"list", "member":{"shape":"TagKey"}, "max":50, "min":0 }, "TagResourceRequest":{ "type":"structure", "required":[ "resourceArn", "tags" ], "members":{ "resourceArn":{ "shape":"ResourceArn", "documentation":"

ARN of the resource for which tags are to be added or updated.

", "location":"uri", "locationName":"resourceArn" }, "tags":{ "shape":"Tags", "documentation":"

Array of tags to be added or updated.

" } } }, "TagResourceResponse":{ "type":"structure", "members":{ } }, "TagValue":{ "type":"string", "max":256 }, "Tags":{ "type":"map", "key":{"shape":"TagKey"}, "value":{"shape":"TagValue"}, "max":50, "min":0 }, "ThrottlingException":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

Request was denied due to request throttling.

" } }, "error":{"httpStatusCode":429}, "exception":true }, "UntagResourceRequest":{ "type":"structure", "required":[ "resourceArn", "tagKeys" ], "members":{ "resourceArn":{ "shape":"ResourceArn", "documentation":"

ARN of the resource for which tags are to be removed.

", "location":"uri", "locationName":"resourceArn" }, "tagKeys":{ "shape":"TagKeyList", "documentation":"

Array of tags to be removed.

", "location":"querystring", "locationName":"tagKeys" } } }, "UntagResourceResponse":{ "type":"structure", "members":{ } }, "UpdateChannelRequest":{ "type":"structure", "required":["arn"], "members":{ "arn":{ "shape":"ChannelArn", "documentation":"

ARN of the channel to be updated.

" }, "name":{ "shape":"ChannelName", "documentation":"

Channel name.

" }, "latencyMode":{ "shape":"ChannelLatencyMode", "documentation":"

Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use LOW for near-real-time interaction with viewers. (Note: In the Amazon IVS console, LOW and NORMAL correspond to Ultra-low and Standard, respectively.)

" }, "type":{ "shape":"ChannelType", "documentation":"

Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately. Valid values:

" }, "authorized":{ "shape":"Boolean", "documentation":"

Whether the channel is private (enabled for playback authorization).

" }, "recordingConfigurationArn":{ "shape":"ChannelRecordingConfigurationArn", "documentation":"

Recording-configuration ARN. If this is set to an empty string, recording is disabled. A value other than an empty string indicates that recording is enabled

" } } }, "UpdateChannelResponse":{ "type":"structure", "members":{ "channel":{"shape":"Channel"} } }, "ValidationException":{ "type":"structure", "members":{ "exceptionMessage":{ "shape":"errorMessage", "documentation":"

The input fails to satisfy the constraints specified by an AWS service.

" } }, "error":{"httpStatusCode":400}, "exception":true }, "errorCode":{"type":"string"}, "errorMessage":{"type":"string"} }, "documentation":"

Introduction

The Amazon Interactive Video Service (IVS) API is REST compatible, using a standard HTTP API and an AWS EventBridge event stream for responses. JSON is used for both requests and responses, including errors.

The API is an AWS regional service, currently in these regions: us-west-2, us-east-1, and eu-west-1.

All API request parameters and URLs are case sensitive.

For a summary of notable documentation changes in each release, see Document History.

Service Endpoints

The following are the Amazon IVS service endpoints (all HTTPS):

Region name: US West (Oregon)

Region name: US East (Virginia)

Region name: EU West (Dublin)

Allowed Header Values

Resources

The following resources contain information about your IVS live stream (see Getting Started with Amazon IVS):

Tagging

A tag is a metadata label that you assign to an AWS resource. A tag comprises a key and a value, both set by you. For example, you might set a tag as topic:nature to label a particular video category. See Tagging AWS Resources for more information, including restrictions that apply to tags.

Tags can help you identify and organize your AWS resources. For example, you can use the same tag for different resources to indicate that they are related. You can also use tags to manage access (see Access Tags).

The Amazon IVS API has these tag-related endpoints: TagResource, UntagResource, and ListTagsForResource. The following resources support tagging: Channels, Stream Keys, Playback Key Pairs, and Recording Configurations.

Authentication versus Authorization

Note the differences between these concepts:

Authentication

All Amazon IVS API requests must be authenticated with a signature. The AWS Command-Line Interface (CLI) and Amazon IVS Player SDKs take care of signing the underlying API calls for you. However, if your application calls the Amazon IVS API directly, it’s your responsibility to sign the requests.

You generate a signature using valid AWS credentials that have permission to perform the requested action. For example, you must sign PutMetadata requests with a signature generated from an IAM user account that has the ivs:PutMetadata permission.

For more information:

Channel Endpoints

StreamKey Endpoints

Stream Endpoints

PlaybackKeyPair Endpoints

For more information, see Setting Up Private Channels in the Amazon IVS User Guide.

RecordingConfiguration Endpoints

AWS Tags Endpoints

" }