IVS

Client

class IVS.Client

A low-level client representing Amazon Interactive Video Service (IVS)

Introduction

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

The API is an Amazon Web Services regional service. For a list of supported regions and Amazon IVS HTTPS service endpoints, see the Amazon IVS page in the Amazon Web Services General Reference .

  • All API request parameters and URLs are case sensitive. *

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

<p> <b>Allowed Header Values</b> </p> <ul> <li> <p> <code> <b>Accept:</b> </code> application/json</p> </li> <li> <p> <code> <b>Accept-Encoding:</b> </code> gzip, deflate</p> </li> <li> <p> <code> <b>Content-Type:</b> </code>application/json</p> </li> </ul> <p> <b>Resources</b> </p> <p>The following resources contain information about your IVS live stream (see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/getting-started.html"> Getting Started with Amazon IVS</a>):</p> <ul> <li> <p>Channel Stores configuration data related to your live stream. You first create a channel and then use the channel’s stream key to start your live stream. See the Channel endpoints for more information. </p> </li> <li> <p>Stream key An identifier assigned by Amazon IVS when you create a channel, which is then used to authorize streaming. See the StreamKey endpoints for more information. <i> <b>Treat the stream key like a secret, since it allows anyone to stream to the channel.</b> </i> </p> </li> <li> <p>Playback key pair Video playback may be restricted using playback-authorization tokens, which use public-key encryption. A playback key pair is the public-private pair of keys used to sign and validate the playback-authorization token. See the PlaybackKeyPair endpoints for more information.</p> </li> <li> <p>Recording configuration Stores configuration related to recording a live stream and where to store the recorded content. Multiple channels can reference the same recording configuration. See the Recording Configuration endpoints for more information.</p> </li> </ul> <p> <b>Tagging</b> </p> <p>A <i>tag</i> is a metadata label that you assign to an Amazon Web Services resource. A tag comprises a <i>key</i> and a <i>value</i>, both set by you. For example, you might set a tag as <code>topic:nature</code> to label a particular video category. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services Resources</a> for more information, including restrictions that apply to tags.</p> <p>Tags can help you identify and organize your Amazon Web Services 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 <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_tags.html"> Access Tags</a>). </p> <p>The Amazon IVS API has these tag-related endpoints: <a>TagResource</a>, <a>UntagResource</a>, and <a>ListTagsForResource</a>. The following resources support tagging: Channels, Stream Keys, Playback Key Pairs, and Recording Configurations.</p> <p>At most 50 tags can be applied to a resource. </p> <p> <b>Authentication versus Authorization</b> </p> <p>Note the differences between these concepts:</p> <ul> <li> <p> <i>Authentication</i> is about verifying identity. You need to be authenticated to sign Amazon IVS API requests.</p> </li> <li> <p> <i>Authorization</i> is about granting permissions. You need to be authorized to view <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Amazon IVS private channels</a>. (Private channels are channels that are enabled for "playback authorization.")</p> </li> </ul> <p> <b>Authentication</b> </p> <p>All Amazon IVS API requests must be authenticated with a signature. The Amazon Web Services 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.</p> <p>You generate a signature using valid Amazon Web Services 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 <code>ivs:PutMetadata</code> permission.</p> <p>For more information:</p> <ul> <li> <p>Authentication and generating signatures See <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon Web Services General Reference</i>.</p> </li> <li> <p>Managing Amazon IVS permissions See <a href="https://docs.aws.amazon.com/ivs/latest/userguide/security-iam.html">Identity and Access Management</a> on the Security page of the <i>Amazon IVS User Guide</i>.</p> </li> </ul> <p> <b>Channel Endpoints</b> </p> <ul> <li> <p> <a>CreateChannel</a> Creates a new channel and an associated stream key to start streaming.</p> </li> <li> <p> <a>GetChannel</a> Gets the channel configuration for the specified channel ARN (Amazon Resource Name).</p> </li> <li> <p> <a>BatchGetChannel</a> Performs <a>GetChannel</a> on multiple ARNs simultaneously.</p> </li> <li> <p> <a>ListChannels</a> Gets summary information about all channels in your account, in the Amazon Web Services 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 Conflict Exception).</p> </li> <li> <p> <a>UpdateChannel</a> 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.</p> </li> <li> <p> <a>DeleteChannel</a> Deletes the specified channel.</p> </li> </ul> <p> <b>StreamKey Endpoints</b> </p> <ul> <li> <p> <a>CreateStreamKey</a> Creates a stream key, used to initiate a stream, for the specified channel ARN.</p> </li> <li> <p> <a>GetStreamKey</a> Gets stream key information for the specified ARN.</p> </li> <li> <p> <a>BatchGetStreamKey</a> Performs <a>GetStreamKey</a> on multiple ARNs simultaneously.</p> </li> <li> <p> <a>ListStreamKeys</a> Gets summary information about stream keys for the specified channel.</p> </li> <li> <p> <a>DeleteStreamKey</a> Deletes the stream key for the specified ARN, so it can no longer be used to stream.</p> </li> </ul> <p> <b>Stream Endpoints</b> </p> <ul> <li> <p> <a>GetStream</a> Gets information about the active (live) stream on a specified channel.</p> </li> <li> <p> <a>ListStreams</a> Gets summary information about live streams in your account, in the Amazon Web Services region where the API request is processed.</p> </li> <li> <p> <a>StopStream</a> Disconnects the incoming RTMPS stream for the specified channel. Can be used in conjunction with <a>DeleteStreamKey</a> to prevent further streaming to a channel.</p> </li> <li> <p> <a>PutMetadata</a> Inserts metadata into the active stream of the specified channel. At most 5 requests per second per channel are 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.) At most 155 requests per second per account are allowed.</p> </li> </ul> <p> <b>PlaybackKeyPair Endpoints</b> </p> <p>For more information, see <a href="https://docs.aws.amazon.com/ivs/latest/userguide/private-channels.html">Setting Up Private Channels</a> in the <i>Amazon IVS User Guide</i>.</p> <ul> <li> <p> <a>ImportPlaybackKeyPair</a> Imports the public portion of a new key pair and returns its <code>arn</code> and <code>fingerprint</code>. The <code>privateKey</code> can then be used to generate viewer authorization tokens, to grant viewers access to private channels (channels enabled for playback authorization).</p> </li> <li> <p> <a>GetPlaybackKeyPair</a> Gets a specified playback authorization key pair and returns the <code>arn</code> and <code>fingerprint</code>. The <code>privateKey</code> held by the caller can be used to generate viewer authorization tokens, to grant viewers access to private channels.</p> </li> <li> <p> <a>ListPlaybackKeyPairs</a> Gets summary information about playback key pairs.</p> </li> <li> <p> <a>DeletePlaybackKeyPair</a> Deletes a specified authorization key pair. This invalidates future viewer tokens generated using the key pair’s <code>privateKey</code>.</p> </li> </ul> <p> <b>RecordingConfiguration Endpoints</b> </p> <ul> <li> <p> <a>CreateRecordingConfiguration</a> Creates a new recording configuration, used to enable recording to Amazon S3.</p> </li> <li> <p> <a>GetRecordingConfiguration</a> Gets the recording-configuration metadata for the specified ARN.</p> </li> <li> <p> <a>ListRecordingConfigurations</a> Gets summary information about all recording configurations in your account, in the Amazon Web Services region where the API request is processed.</p> </li> <li> <p> <a>DeleteRecordingConfiguration</a> Deletes the recording configuration for the specified ARN.</p> </li> </ul> <p> <b>Amazon Web Services Tags Endpoints</b> </p> <ul> <li> <p> <a>TagResource</a> Adds or updates tags for the Amazon Web Services resource with the specified ARN.</p> </li> <li> <p> <a>UntagResource</a> Removes tags from the resource with the specified ARN.</p> </li> <li> <p> <a>ListTagsForResource</a> Gets information about Amazon Web Services tags for the specified ARN.</p> </li> </ul>

client = session.create_client('ivs')

These are the available methods:

batch_get_channel(**kwargs)

Performs GetChannel on multiple ARNs simultaneously.

See also: AWS API Documentation

Request Syntax

response = client.batch_get_channel(
    arns=[
        'string',
    ]
)
Parameters
arns (list) --

[REQUIRED]

Array of ARNs, one per channel.

  • (string) --
Return type
dict
Returns
Response Syntax
{
    'channels': [
        {
            'arn': 'string',
            'authorized': True|False,
            'ingestEndpoint': 'string',
            'latencyMode': 'NORMAL'|'LOW',
            'name': 'string',
            'playbackUrl': 'string',
            'recordingConfigurationArn': 'string',
            'tags': {
                'string': 'string'
            },
            'type': 'BASIC'|'STANDARD'
        },
    ],
    'errors': [
        {
            'arn': 'string',
            'code': 'string',
            'message': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • channels (list) --
      • (dict) --

        Object specifying a channel.

        • arn (string) --

          Channel ARN.

        • authorized (boolean) --

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

        • ingestEndpoint (string) --

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

        • latencyMode (string) --

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

        • name (string) --

          Channel name.

        • playbackUrl (string) --

          Channel playback URL.

        • recordingConfigurationArn (string) --

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

        • tags (dict) --

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

          • (string) --
            • (string) --
        • type (string) --

          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:

          • STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.
          • BASIC : Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.
    • errors (list) --

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

      • (dict) --

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

        • arn (string) --

          Channel ARN.

        • code (string) --

          Error code.

        • message (string) --

          Error message, determined by the application.

batch_get_stream_key(**kwargs)

Performs GetStreamKey on multiple ARNs simultaneously.

See also: AWS API Documentation

Request Syntax

response = client.batch_get_stream_key(
    arns=[
        'string',
    ]
)
Parameters
arns (list) --

[REQUIRED]

Array of ARNs, one per channel.

  • (string) --
Return type
dict
Returns
Response Syntax
{
    'errors': [
        {
            'arn': 'string',
            'code': 'string',
            'message': 'string'
        },
    ],
    'streamKeys': [
        {
            'arn': 'string',
            'channelArn': 'string',
            'tags': {
                'string': 'string'
            },
            'value': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • errors (list) --
      • (dict) --

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

        • arn (string) --

          Channel ARN.

        • code (string) --

          Error code.

        • message (string) --

          Error message, determined by the application.

    • streamKeys (list) --
      • (dict) --

        Object specifying a stream key.

        • arn (string) --

          Stream-key ARN.

        • channelArn (string) --

          Channel ARN for the stream.

        • tags (dict) --

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

          • (string) --
            • (string) --
        • value (string) --

          Stream-key value.

can_paginate(operation_name)

Check if an operation can be paginated.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Returns
True if the operation can be paginated, False otherwise.
create_channel(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.create_channel(
    authorized=True|False,
    latencyMode='NORMAL'|'LOW',
    name='string',
    recordingConfigurationArn='string',
    tags={
        'string': 'string'
    },
    type='BASIC'|'STANDARD'
)
Parameters
  • authorized (boolean) -- Whether the channel is private (enabled for playback authorization). Default: false .
  • latencyMode (string) -- 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 .
  • name (string) -- Channel name.
  • recordingConfigurationArn (string) -- Recording-configuration ARN. Default: "" (empty string, recording is disabled).
  • tags (dict) --

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

    • (string) --
      • (string) --
  • type (string) --

    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:

    • STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.
    • BASIC : Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.
Return type

dict

Returns

Response Syntax

{
    'channel': {
        'arn': 'string',
        'authorized': True|False,
        'ingestEndpoint': 'string',
        'latencyMode': 'NORMAL'|'LOW',
        'name': 'string',
        'playbackUrl': 'string',
        'recordingConfigurationArn': 'string',
        'tags': {
            'string': 'string'
        },
        'type': 'BASIC'|'STANDARD'
    },
    'streamKey': {
        'arn': 'string',
        'channelArn': 'string',
        'tags': {
            'string': 'string'
        },
        'value': 'string'
    }
}

Response Structure

  • (dict) --

    • channel (dict) --

      • arn (string) --

        Channel ARN.

      • authorized (boolean) --

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

      • ingestEndpoint (string) --

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

      • latencyMode (string) --

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

      • name (string) --

        Channel name.

      • playbackUrl (string) --

        Channel playback URL.

      • recordingConfigurationArn (string) --

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

      • tags (dict) --

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

        • (string) --
          • (string) --
      • type (string) --

        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:

        • STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.
        • BASIC : Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.
    • streamKey (dict) --

      • arn (string) --

        Stream-key ARN.

      • channelArn (string) --

        Channel ARN for the stream.

      • tags (dict) --

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

        • (string) --
          • (string) --
      • value (string) --

        Stream-key value.

Exceptions

create_recording_configuration(**kwargs)

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

Known issue: In the us-east-1 region, if you use the Amazon Web Services 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.

See also: AWS API Documentation

Request Syntax

response = client.create_recording_configuration(
    destinationConfiguration={
        's3': {
            'bucketName': 'string'
        }
    },
    name='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • destinationConfiguration (dict) --

    [REQUIRED]

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

    • s3 (dict) --

      An S3 destination configuration where recorded videos will be stored.

      • bucketName (string) -- [REQUIRED]

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

  • name (string) -- Recording-configuration name. The value does not need to be unique.
  • tags (dict) --

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

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'recordingConfiguration': {
        'arn': 'string',
        'destinationConfiguration': {
            's3': {
                'bucketName': 'string'
            }
        },
        'name': 'string',
        'state': 'CREATING'|'CREATE_FAILED'|'ACTIVE',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • recordingConfiguration (dict) --

      • arn (string) --

        Recording-configuration ARN.

      • destinationConfiguration (dict) --

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

        • s3 (dict) --

          An S3 destination configuration where recorded videos will be stored.

          • bucketName (string) --

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

      • name (string) --

        Recording-configuration name. The value does not need to be unique.

      • state (string) --

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

      • tags (dict) --

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

        • (string) --
          • (string) --

Exceptions

create_stream_key(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.create_stream_key(
    channelArn='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • channelArn (string) --

    [REQUIRED]

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

  • tags (dict) --

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

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'streamKey': {
        'arn': 'string',
        'channelArn': 'string',
        'tags': {
            'string': 'string'
        },
        'value': 'string'
    }
}

Response Structure

  • (dict) --

    • streamKey (dict) --

      Stream key used to authenticate an RTMPS stream for ingestion.

      • arn (string) --

        Stream-key ARN.

      • channelArn (string) --

        Channel ARN for the stream.

      • tags (dict) --

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

        • (string) --
          • (string) --
      • value (string) --

        Stream-key value.

Exceptions

delete_channel(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.delete_channel(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

ARN of the channel to be deleted.

Returns
None

Exceptions

delete_playback_key_pair(**kwargs)

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 .

See also: AWS API Documentation

Request Syntax

response = client.delete_playback_key_pair(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

ARN of the key pair to be deleted.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

delete_recording_configuration(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.delete_recording_configuration(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

ARN of the recording configuration to be deleted.

Returns
None

Exceptions

delete_stream_key(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.delete_stream_key(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

ARN of the stream key to be deleted.

Returns
None

Exceptions

generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)

Generate a presigned url given a client, its method, and arguments

Parameters
  • ClientMethod (string) -- The client method to presign for
  • Params (dict) -- The parameters normally passed to ClientMethod.
  • ExpiresIn (int) -- The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds)
  • HttpMethod (string) -- The http method to use on the generated url. By default, the http method is whatever is used in the method's model.
Returns

The presigned url

get_channel(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.get_channel(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

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

Return type
dict
Returns
Response Syntax
{
    'channel': {
        'arn': 'string',
        'authorized': True|False,
        'ingestEndpoint': 'string',
        'latencyMode': 'NORMAL'|'LOW',
        'name': 'string',
        'playbackUrl': 'string',
        'recordingConfigurationArn': 'string',
        'tags': {
            'string': 'string'
        },
        'type': 'BASIC'|'STANDARD'
    }
}

Response Structure

  • (dict) --
    • channel (dict) --
      • arn (string) --

        Channel ARN.

      • authorized (boolean) --

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

      • ingestEndpoint (string) --

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

      • latencyMode (string) --

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

      • name (string) --

        Channel name.

      • playbackUrl (string) --

        Channel playback URL.

      • recordingConfigurationArn (string) --

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

      • tags (dict) --

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

        • (string) --
          • (string) --
      • type (string) --

        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:

        • STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.
        • BASIC : Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.

Exceptions

get_paginator(operation_name)

Create a paginator for an operation.

Parameters
operation_name (string) -- The operation name. This is the same name as the method name on the client. For example, if the method name is create_foo, and you'd normally invoke the operation as client.create_foo(**kwargs), if the create_foo operation can be paginated, you can use the call client.get_paginator("create_foo").
Raises OperationNotPageableError
Raised if the operation is not pageable. You can use the client.can_paginate method to check if an operation is pageable.
Return type
L{botocore.paginate.Paginator}
Returns
A paginator object.
get_playback_key_pair(**kwargs)

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 .

See also: AWS API Documentation

Request Syntax

response = client.get_playback_key_pair(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

ARN of the key pair to be returned.

Return type
dict
Returns
Response Syntax
{
    'keyPair': {
        'arn': 'string',
        'fingerprint': 'string',
        'name': 'string',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --
    • keyPair (dict) --
      • arn (string) --

        Key-pair ARN.

      • fingerprint (string) --

        Key-pair identifier.

      • name (string) --

        Playback-key-pair name. The value does not need to be unique.

      • tags (dict) --

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

        • (string) --
          • (string) --

Exceptions

get_recording_configuration(**kwargs)

Gets the recording configuration for the specified ARN.

See also: AWS API Documentation

Request Syntax

response = client.get_recording_configuration(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

ARN of the recording configuration to be retrieved.

Return type
dict
Returns
Response Syntax
{
    'recordingConfiguration': {
        'arn': 'string',
        'destinationConfiguration': {
            's3': {
                'bucketName': 'string'
            }
        },
        'name': 'string',
        'state': 'CREATING'|'CREATE_FAILED'|'ACTIVE',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --
    • recordingConfiguration (dict) --
      • arn (string) --

        Recording-configuration ARN.

      • destinationConfiguration (dict) --

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

        • s3 (dict) --

          An S3 destination configuration where recorded videos will be stored.

          • bucketName (string) --

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

      • name (string) --

        Recording-configuration name. The value does not need to be unique.

      • state (string) --

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

      • tags (dict) --

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

        • (string) --
          • (string) --

Exceptions

get_stream(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.get_stream(
    channelArn='string'
)
Parameters
channelArn (string) --

[REQUIRED]

Channel ARN for stream to be accessed.

Return type
dict
Returns
Response Syntax
{
    'stream': {
        'channelArn': 'string',
        'health': 'HEALTHY'|'STARVING'|'UNKNOWN',
        'playbackUrl': 'string',
        'startTime': datetime(2015, 1, 1),
        'state': 'LIVE'|'OFFLINE',
        'viewerCount': 123
    }
}

Response Structure

  • (dict) --
    • stream (dict) --
      • channelArn (string) --

        Channel ARN for the stream.

      • health (string) --

        The stream’s health.

      • playbackUrl (string) --

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

      • startTime (datetime) --

        Time of the stream’s start. This is an ISO 8601 timestamp returned as a string.

      • state (string) --

        The stream’s state.

      • viewerCount (integer) --

        A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.

Exceptions

get_stream_key(**kwargs)

Gets stream-key information for a specified ARN.

See also: AWS API Documentation

Request Syntax

response = client.get_stream_key(
    arn='string'
)
Parameters
arn (string) --

[REQUIRED]

ARN for the stream key to be retrieved.

Return type
dict
Returns
Response Syntax
{
    'streamKey': {
        'arn': 'string',
        'channelArn': 'string',
        'tags': {
            'string': 'string'
        },
        'value': 'string'
    }
}

Response Structure

  • (dict) --
    • streamKey (dict) --
      • arn (string) --

        Stream-key ARN.

      • channelArn (string) --

        Channel ARN for the stream.

      • tags (dict) --

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

        • (string) --
          • (string) --
      • value (string) --

        Stream-key value.

Exceptions

get_waiter(waiter_name)

Returns an object that can wait for some condition.

Parameters
waiter_name (str) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters.
Returns
The specified waiter object.
Return type
botocore.waiter.Waiter
import_playback_key_pair(**kwargs)

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 .

See also: AWS API Documentation

Request Syntax

response = client.import_playback_key_pair(
    name='string',
    publicKeyMaterial='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • name (string) -- Playback-key-pair name. The value does not need to be unique.
  • publicKeyMaterial (string) --

    [REQUIRED]

    The public portion of a customer-generated key pair.

  • tags (dict) --

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

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{
    'keyPair': {
        'arn': 'string',
        'fingerprint': 'string',
        'name': 'string',
        'tags': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • keyPair (dict) --

      • arn (string) --

        Key-pair ARN.

      • fingerprint (string) --

        Key-pair identifier.

      • name (string) --

        Playback-key-pair name. The value does not need to be unique.

      • tags (dict) --

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

        • (string) --
          • (string) --

Exceptions

list_channels(**kwargs)

Gets summary information about all channels in your account, in the Amazon Web Services 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).

See also: AWS API Documentation

Request Syntax

response = client.list_channels(
    filterByName='string',
    filterByRecordingConfigurationArn='string',
    maxResults=123,
    nextToken='string'
)
Parameters
  • filterByName (string) -- Filters the channel list to match the specified name.
  • filterByRecordingConfigurationArn (string) -- Filters the channel list to match the specified recording-configuration ARN.
  • maxResults (integer) -- Maximum number of channels to return. Default: 50.
  • nextToken (string) -- The first channel to retrieve. This is used for pagination; see the nextToken response field.
Return type

dict

Returns

Response Syntax

{
    'channels': [
        {
            'arn': 'string',
            'authorized': True|False,
            'latencyMode': 'NORMAL'|'LOW',
            'name': 'string',
            'recordingConfigurationArn': 'string',
            'tags': {
                'string': 'string'
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • channels (list) --

      List of the matching channels.

      • (dict) --

        Summary information about a channel.

        • arn (string) --

          Channel ARN.

        • authorized (boolean) --

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

        • latencyMode (string) --

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

        • name (string) --

          Channel name.

        • recordingConfigurationArn (string) --

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

        • tags (dict) --

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

          • (string) --
            • (string) --
    • nextToken (string) --

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

Exceptions

list_playback_key_pairs(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.list_playback_key_pairs(
    maxResults=123,
    nextToken='string'
)
Parameters
  • maxResults (integer) -- The first key pair to retrieve. This is used for pagination; see the nextToken response field. Default: 50.
  • nextToken (string) -- Maximum number of key pairs to return.
Return type

dict

Returns

Response Syntax

{
    'keyPairs': [
        {
            'arn': 'string',
            'name': 'string',
            'tags': {
                'string': 'string'
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • keyPairs (list) --

      List of key pairs.

      • (dict) --

        Summary information about a playback key pair.

        • arn (string) --

          Key-pair ARN.

        • name (string) --

          Playback-key-pair name. The value does not need to be unique.

        • tags (dict) --

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

          • (string) --
            • (string) --
    • nextToken (string) --

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

Exceptions

list_recording_configurations(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.list_recording_configurations(
    maxResults=123,
    nextToken='string'
)
Parameters
  • maxResults (integer) -- Maximum number of recording configurations to return. Default: 50.
  • nextToken (string) -- The first recording configuration to retrieve. This is used for pagination; see the nextToken response field.
Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'recordingConfigurations': [
        {
            'arn': 'string',
            'destinationConfiguration': {
                's3': {
                    'bucketName': 'string'
                }
            },
            'name': 'string',
            'state': 'CREATING'|'CREATE_FAILED'|'ACTIVE',
            'tags': {
                'string': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

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

    • recordingConfigurations (list) --

      List of the matching recording configurations.

      • (dict) --

        Summary information about a RecordingConfiguration.

        • arn (string) --

          Recording-configuration ARN.

        • destinationConfiguration (dict) --

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

          • s3 (dict) --

            An S3 destination configuration where recorded videos will be stored.

            • bucketName (string) --

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

        • name (string) --

          Recording-configuration name. The value does not need to be unique.

        • state (string) --

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

        • tags (dict) --

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

          • (string) --
            • (string) --

Exceptions

list_stream_keys(**kwargs)

Gets summary information about stream keys for the specified channel.

See also: AWS API Documentation

Request Syntax

response = client.list_stream_keys(
    channelArn='string',
    maxResults=123,
    nextToken='string'
)
Parameters
  • channelArn (string) --

    [REQUIRED]

    Channel ARN used to filter the list.

  • maxResults (integer) -- Maximum number of streamKeys to return. Default: 50.
  • nextToken (string) -- The first stream key to retrieve. This is used for pagination; see the nextToken response field.
Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'streamKeys': [
        {
            'arn': 'string',
            'channelArn': 'string',
            'tags': {
                'string': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

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

    • streamKeys (list) --

      List of stream keys.

      • (dict) --

        Summary information about a stream key.

        • arn (string) --

          Stream-key ARN.

        • channelArn (string) --

          Channel ARN for the stream.

        • tags (dict) --

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

          • (string) --
            • (string) --

Exceptions

list_streams(**kwargs)

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

See also: AWS API Documentation

Request Syntax

response = client.list_streams(
    maxResults=123,
    nextToken='string'
)
Parameters
  • maxResults (integer) -- Maximum number of streams to return. Default: 50.
  • nextToken (string) -- The first stream to retrieve. This is used for pagination; see the nextToken response field.
Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'streams': [
        {
            'channelArn': 'string',
            'health': 'HEALTHY'|'STARVING'|'UNKNOWN',
            'startTime': datetime(2015, 1, 1),
            'state': 'LIVE'|'OFFLINE',
            'viewerCount': 123
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

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

    • streams (list) --

      List of streams.

      • (dict) --

        Summary information about a stream.

        • channelArn (string) --

          Channel ARN for the stream.

        • health (string) --

          The stream’s health.

        • startTime (datetime) --

          Time of the stream’s start. This is an ISO 8601 timestamp returned as a string.

        • state (string) --

          The stream’s state.

        • viewerCount (integer) --

          A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.

Exceptions

list_tags_for_resource(**kwargs)

Gets information about Amazon Web Services tags for the specified ARN.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    resourceArn='string'
)
Parameters
resourceArn (string) --

[REQUIRED]

The ARN of the resource to be retrieved.

Return type
dict
Returns
Response Syntax
{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --
    • tags (dict) --
      • (string) --
        • (string) --

Exceptions

put_metadata(**kwargs)

Inserts metadata into the active stream of the specified channel. At most 5 requests per second per channel are 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.) At most 155 requests per second per account are allowed. Also see Embedding Metadata within a Video Stream in the Amazon IVS User Guide .

See also: AWS API Documentation

Request Syntax

response = client.put_metadata(
    channelArn='string',
    metadata='string'
)
Parameters
  • channelArn (string) --

    [REQUIRED]

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

  • metadata (string) --

    [REQUIRED]

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

Returns

None

Exceptions

stop_stream(**kwargs)

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

Note

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.

See also: AWS API Documentation

Request Syntax

response = client.stop_stream(
    channelArn='string'
)
Parameters
channelArn (string) --

[REQUIRED]

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

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

tag_resource(**kwargs)

Adds or updates tags for the Amazon Web Services resource with the specified ARN.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

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

  • tags (dict) --

    [REQUIRED]

    Array of tags to be added or updated.

    • (string) --
      • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

untag_resource(**kwargs)

Removes tags from the resource with the specified ARN.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
Parameters
  • resourceArn (string) --

    [REQUIRED]

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

  • tagKeys (list) --

    [REQUIRED]

    Array of tags to be removed.

    • (string) --
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

update_channel(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.update_channel(
    arn='string',
    authorized=True|False,
    latencyMode='NORMAL'|'LOW',
    name='string',
    recordingConfigurationArn='string',
    type='BASIC'|'STANDARD'
)
Parameters
  • arn (string) --

    [REQUIRED]

    ARN of the channel to be updated.

  • authorized (boolean) -- Whether the channel is private (enabled for playback authorization).
  • latencyMode (string) -- 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.)
  • name (string) -- Channel name.
  • recordingConfigurationArn (string) -- 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
  • type (string) --

    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:

    • STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.
    • BASIC : Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.
Return type

dict

Returns

Response Syntax

{
    'channel': {
        'arn': 'string',
        'authorized': True|False,
        'ingestEndpoint': 'string',
        'latencyMode': 'NORMAL'|'LOW',
        'name': 'string',
        'playbackUrl': 'string',
        'recordingConfigurationArn': 'string',
        'tags': {
            'string': 'string'
        },
        'type': 'BASIC'|'STANDARD'
    }
}

Response Structure

  • (dict) --

    • channel (dict) --

      Object specifying a channel.

      • arn (string) --

        Channel ARN.

      • authorized (boolean) --

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

      • ingestEndpoint (string) --

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

      • latencyMode (string) --

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

      • name (string) --

        Channel name.

      • playbackUrl (string) --

        Channel playback URL.

      • recordingConfigurationArn (string) --

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

      • tags (dict) --

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

        • (string) --
          • (string) --
      • type (string) --

        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:

        • STANDARD : Multiple qualities are generated from the original input, to automatically give viewers the best experience for their devices and network conditions. Resolution can be up to 1080p and bitrate can be up to 8.5 Mbps. Audio is transcoded only for renditions 360p and below; above that, audio is passed through.
        • BASIC : Amazon IVS delivers the original input to viewers. The viewer’s video-quality choice is limited to the original input. Resolution can be up to 480p and bitrate can be up to 1.5 Mbps.

Exceptions

Client Exceptions

Client exceptions are available on a client instance via the exceptions property. For more detailed instructions and examples on the exact usage of client exceptions, see the error handling user guide.

The available client exceptions are:

class IVS.Client.exceptions.AccessDeniedException

Example

try:
  ...
except client.exceptions.AccessDeniedException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      User does not have sufficient access to perform this action.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.ChannelNotBroadcasting

Example

try:
  ...
except client.exceptions.ChannelNotBroadcasting as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      The stream is offline for the given channel ARN.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.ConflictException

Example

try:
  ...
except client.exceptions.ConflictException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      Updating or deleting a resource can cause an inconsistent state.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.InternalServerException

Example

try:
  ...
except client.exceptions.InternalServerException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      Unexpected error during processing of request.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.PendingVerification

Example

try:
  ...
except client.exceptions.PendingVerification as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      Your account is pending verification.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.ResourceNotFoundException

Example

try:
  ...
except client.exceptions.ResourceNotFoundException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      Request references a resource which does not exist.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.ServiceQuotaExceededException

Example

try:
  ...
except client.exceptions.ServiceQuotaExceededException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      Request would cause a service quota to be exceeded.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.StreamUnavailable

Example

try:
  ...
except client.exceptions.StreamUnavailable as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      The stream is temporarily unavailable.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.ThrottlingException

Example

try:
  ...
except client.exceptions.ThrottlingException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      Request was denied due to request throttling.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class IVS.Client.exceptions.ValidationException

Example

try:
  ...
except client.exceptions.ValidationException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'exceptionMessage': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    • exceptionMessage (string) --

      The input fails to satisfy the constraints specified by an Amazon Web Services service.

    • Error (dict) -- Normalized access to common exception attributes.

      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.

Paginators

The available paginators are:

class IVS.Paginator.ListChannels
paginator = client.get_paginator('list_channels')
paginate(**kwargs)

Creates an iterator that will paginate through responses from IVS.Client.list_channels().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    filterByName='string',
    filterByRecordingConfigurationArn='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • filterByName (string) -- Filters the channel list to match the specified name.
  • filterByRecordingConfigurationArn (string) -- Filters the channel list to match the specified recording-configuration ARN.
  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'channels': [
        {
            'arn': 'string',
            'authorized': True|False,
            'latencyMode': 'NORMAL'|'LOW',
            'name': 'string',
            'recordingConfigurationArn': 'string',
            'tags': {
                'string': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • channels (list) --

      List of the matching channels.

      • (dict) --

        Summary information about a channel.

        • arn (string) --

          Channel ARN.

        • authorized (boolean) --

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

        • latencyMode (string) --

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

        • name (string) --

          Channel name.

        • recordingConfigurationArn (string) --

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

        • tags (dict) --

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

          • (string) --
            • (string) --
    • NextToken (string) --

      A token to resume pagination.

class IVS.Paginator.ListPlaybackKeyPairs
paginator = client.get_paginator('list_playback_key_pairs')
paginate(**kwargs)

Creates an iterator that will paginate through responses from IVS.Client.list_playback_key_pairs().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
PaginationConfig (dict) --

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) --

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) --

    The size of each page.

  • StartingToken (string) --

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type
dict
Returns
Response Syntax
{
    'keyPairs': [
        {
            'arn': 'string',
            'name': 'string',
            'tags': {
                'string': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • keyPairs (list) --

      List of key pairs.

      • (dict) --

        Summary information about a playback key pair.

        • arn (string) --

          Key-pair ARN.

        • name (string) --

          Playback-key-pair name. The value does not need to be unique.

        • tags (dict) --

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

          • (string) --
            • (string) --
    • NextToken (string) --

      A token to resume pagination.

class IVS.Paginator.ListRecordingConfigurations
paginator = client.get_paginator('list_recording_configurations')
paginate(**kwargs)

Creates an iterator that will paginate through responses from IVS.Client.list_recording_configurations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
PaginationConfig (dict) --

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) --

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) --

    The size of each page.

  • StartingToken (string) --

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type
dict
Returns
Response Syntax
{
    'recordingConfigurations': [
        {
            'arn': 'string',
            'destinationConfiguration': {
                's3': {
                    'bucketName': 'string'
                }
            },
            'name': 'string',
            'state': 'CREATING'|'CREATE_FAILED'|'ACTIVE',
            'tags': {
                'string': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • recordingConfigurations (list) --

      List of the matching recording configurations.

      • (dict) --

        Summary information about a RecordingConfiguration.

        • arn (string) --

          Recording-configuration ARN.

        • destinationConfiguration (dict) --

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

          • s3 (dict) --

            An S3 destination configuration where recorded videos will be stored.

            • bucketName (string) --

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

        • name (string) --

          Recording-configuration name. The value does not need to be unique.

        • state (string) --

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

        • tags (dict) --

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

          • (string) --
            • (string) --
    • NextToken (string) --

      A token to resume pagination.

class IVS.Paginator.ListStreamKeys
paginator = client.get_paginator('list_stream_keys')
paginate(**kwargs)

Creates an iterator that will paginate through responses from IVS.Client.list_stream_keys().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    channelArn='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
  • channelArn (string) --

    [REQUIRED]

    Channel ARN used to filter the list.

  • PaginationConfig (dict) --

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) --

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) --

      The size of each page.

    • StartingToken (string) --

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type

dict

Returns

Response Syntax

{
    'streamKeys': [
        {
            'arn': 'string',
            'channelArn': 'string',
            'tags': {
                'string': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • streamKeys (list) --

      List of stream keys.

      • (dict) --

        Summary information about a stream key.

        • arn (string) --

          Stream-key ARN.

        • channelArn (string) --

          Channel ARN for the stream.

        • tags (dict) --

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

          • (string) --
            • (string) --
    • NextToken (string) --

      A token to resume pagination.

class IVS.Paginator.ListStreams
paginator = client.get_paginator('list_streams')
paginate(**kwargs)

Creates an iterator that will paginate through responses from IVS.Client.list_streams().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters
PaginationConfig (dict) --

A dictionary that provides parameters to control pagination.

  • MaxItems (integer) --

    The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

  • PageSize (integer) --

    The size of each page.

  • StartingToken (string) --

    A token to specify where to start paginating. This is the NextToken from a previous response.

Return type
dict
Returns
Response Syntax
{
    'streams': [
        {
            'channelArn': 'string',
            'health': 'HEALTHY'|'STARVING'|'UNKNOWN',
            'startTime': datetime(2015, 1, 1),
            'state': 'LIVE'|'OFFLINE',
            'viewerCount': 123
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • streams (list) --

      List of streams.

      • (dict) --

        Summary information about a stream.

        • channelArn (string) --

          Channel ARN for the stream.

        • health (string) --

          The stream’s health.

        • startTime (datetime) --

          Time of the stream’s start. This is an ISO 8601 timestamp returned as a string.

        • state (string) --

          The stream’s state.

        • viewerCount (integer) --

          A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.

    • NextToken (string) --

      A token to resume pagination.