2026/07/09 - Amazon Interactive Video Service - 4 updated api methods
Changes adds support for AWS IVS ad configuration APIs to allow for a postRollConfiguration object on the ad configuration resource
{'postRollConfiguration': {'durationSeconds': 'integer', 'enabled': 'boolean'}}
Response {'adConfiguration': {'postRollConfiguration': {'durationSeconds': 'integer',
'enabled': 'boolean'}}}
Creates a new ad configuration to be used for server-side ad insertion.
See also: AWS API Documentation
Request Syntax
client.create_ad_configuration(
name='string',
mediaTailorPlaybackConfigurations=[
{
'playbackConfigurationArn': 'string'
},
],
postRollConfiguration={
'durationSeconds': 123,
'enabled': True|False
},
tags={
'string': 'string'
}
)
string
Ad configuration name. Defaults to “”.
list
[REQUIRED]
List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.
(dict) --
Object specifying a configuration for integration with an AWS Elemental MediaTailor (EMT).
playbackConfigurationArn (string) --
ARN of the customer-created EMT PlaybackConfiguration resource in the same region and account.
dict
Configuration for the post-roll ad break to use for this ad configuration. Default: disabled ( enabled set to false, durationSeconds set to 15).
durationSeconds (integer) -- [REQUIRED]
Duration of the post-roll ad break, in seconds.
enabled (boolean) -- [REQUIRED]
Whether the post-roll ad configuration is enabled.
dict
Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
(string) --
(string) --
dict
Response Syntax
{
'adConfiguration': {
'arn': 'string',
'name': 'string',
'mediaTailorPlaybackConfigurations': [
{
'playbackConfigurationArn': 'string'
},
],
'postRollConfiguration': {
'durationSeconds': 123,
'enabled': True|False
},
'tags': {
'string': 'string'
}
}
}
Response Structure
(dict) --
adConfiguration (dict) --
arn (string) --
Ad configuration ARN.
name (string) --
Ad configuration name. Defaults to “”.
mediaTailorPlaybackConfigurations (list) --
List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.
(dict) --
Object specifying a configuration for integration with an AWS Elemental MediaTailor (EMT).
playbackConfigurationArn (string) --
ARN of the customer-created EMT PlaybackConfiguration resource in the same region and account.
postRollConfiguration (dict) --
Configuration for the post-roll ad break to use for this ad configuration.
durationSeconds (integer) --
Duration of the post-roll ad break, in seconds.
enabled (boolean) --
Whether the post-roll ad configuration is enabled.
tags (dict) --
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
(string) --
(string) --
{'adConfiguration': {'postRollConfiguration': {'durationSeconds': 'integer',
'enabled': 'boolean'}}}
Gets the ad configuration represented by the specified ARN.
See also: AWS API Documentation
Request Syntax
client.get_ad_configuration(
arn='string'
)
string
[REQUIRED]
ARN of the ad configuration to be retrieved.
dict
Response Syntax
{
'adConfiguration': {
'arn': 'string',
'name': 'string',
'mediaTailorPlaybackConfigurations': [
{
'playbackConfigurationArn': 'string'
},
],
'postRollConfiguration': {
'durationSeconds': 123,
'enabled': True|False
},
'tags': {
'string': 'string'
}
}
}
Response Structure
(dict) --
adConfiguration (dict) --
arn (string) --
Ad configuration ARN.
name (string) --
Ad configuration name. Defaults to “”.
mediaTailorPlaybackConfigurations (list) --
List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.
(dict) --
Object specifying a configuration for integration with an AWS Elemental MediaTailor (EMT).
playbackConfigurationArn (string) --
ARN of the customer-created EMT PlaybackConfiguration resource in the same region and account.
postRollConfiguration (dict) --
Configuration for the post-roll ad break to use for this ad configuration.
durationSeconds (integer) --
Duration of the post-roll ad break, in seconds.
enabled (boolean) --
Whether the post-roll ad configuration is enabled.
tags (dict) --
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
(string) --
(string) --
{'adConfigurations': {'postRollConfiguration': {'durationSeconds': 'integer',
'enabled': 'boolean'}}}
Gets summary information about all ad configurations in your account, in the AWS region where the API request is processed.
See also: AWS API Documentation
Request Syntax
client.list_ad_configurations(
nextToken='string',
maxResults=123
)
string
The first ad configuration to retrieve. This is used for pagination; see the nextToken response field.
integer
Maximum number of ad configurations to return. Default: your service quota or 100, whichever is smaller.
dict
Response Syntax
{
'adConfigurations': [
{
'arn': 'string',
'name': 'string',
'mediaTailorPlaybackConfigurations': [
{
'playbackConfigurationArn': 'string'
},
],
'postRollConfiguration': {
'durationSeconds': 123,
'enabled': True|False
},
'tags': {
'string': 'string'
}
},
],
'nextToken': 'string'
}
Response Structure
(dict) --
adConfigurations (list) --
List of the matching ad configurations.
(dict) --
Summary information about an ad configuration.
arn (string) --
Ad configuration ARN.
name (string) --
Ad configuration name. Defaults to “”.
mediaTailorPlaybackConfigurations (list) --
List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.
(dict) --
Object specifying a configuration for integration with an AWS Elemental MediaTailor (EMT).
playbackConfigurationArn (string) --
ARN of the customer-created EMT PlaybackConfiguration resource in the same region and account.
postRollConfiguration (dict) --
Configuration for the post-roll ad break to use for this ad configuration.
durationSeconds (integer) --
Duration of the post-roll ad break, in seconds.
enabled (boolean) --
Whether the post-roll ad configuration is enabled.
tags (dict) --
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
(string) --
(string) --
nextToken (string) --
If there are more ad configurations than maxResults, use nextToken in the request to get the next set.
{'postRollConfiguration': {'durationSeconds': 'integer', 'enabled': 'boolean'}}
Response {'adConfiguration': {'postRollConfiguration': {'durationSeconds': 'integer',
'enabled': 'boolean'}}}
Updates a specified ad configuration.
See also: AWS API Documentation
Request Syntax
client.update_ad_configuration(
arn='string',
name='string',
mediaTailorPlaybackConfigurations=[
{
'playbackConfigurationArn': 'string'
},
],
postRollConfiguration={
'durationSeconds': 123,
'enabled': True|False
}
)
string
[REQUIRED]
ARN of the ad configuration to be updated.
string
Ad configuration name. The value does not need to be unique.
list
List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.
(dict) --
Object specifying a configuration for integration with an AWS Elemental MediaTailor (EMT).
playbackConfigurationArn (string) --
ARN of the customer-created EMT PlaybackConfiguration resource in the same region and account.
dict
Configuration for the post-roll ad break to use for this ad configuration.
durationSeconds (integer) -- [REQUIRED]
Duration of the post-roll ad break, in seconds.
enabled (boolean) -- [REQUIRED]
Whether the post-roll ad configuration is enabled.
dict
Response Syntax
{
'adConfiguration': {
'arn': 'string',
'name': 'string',
'mediaTailorPlaybackConfigurations': [
{
'playbackConfigurationArn': 'string'
},
],
'postRollConfiguration': {
'durationSeconds': 123,
'enabled': True|False
},
'tags': {
'string': 'string'
}
}
}
Response Structure
(dict) --
adConfiguration (dict) --
Object specifying the updated ad configuration.
arn (string) --
Ad configuration ARN.
name (string) --
Ad configuration name. Defaults to “”.
mediaTailorPlaybackConfigurations (list) --
List of integration configurations with MediaTailor resources. The first item in the list is the default playback configuration used for the ad configuration. To select a different configuration per viewing session, see Generate and Sign IVS Playback Tokens.
(dict) --
Object specifying a configuration for integration with an AWS Elemental MediaTailor (EMT).
playbackConfigurationArn (string) --
ARN of the customer-created EMT PlaybackConfiguration resource in the same region and account.
postRollConfiguration (dict) --
Configuration for the post-roll ad break to use for this ad configuration.
durationSeconds (integer) --
Duration of the post-roll ad break, in seconds.
enabled (boolean) --
Whether the post-roll ad configuration is enabled.
tags (dict) --
Tags attached to the resource. Array of 1-50 maps, each of the form string:string (key:value). See Best practices and strategies in Tagging Amazon Web Services Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is documented there.
(string) --
(string) --