ElementalInference / Paginator / ListScheduleActions
ListScheduleActions¶
- class ElementalInference.Paginator.ListScheduleActions¶
paginator = client.get_paginator('list_schedule_actions')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
ElementalInference.Client.list_schedule_actions().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( id='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
id (string) –
[REQUIRED]
The ID of the feed that you want to query.
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
NextTokenwill 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
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'scheduleActions': [ { 'actionName': 'string', 'startConfiguration': { 'fixedModeScheduleActionStartSettings': { 'scheduledAt': datetime(2015, 1, 1) } }, 'operations': [ { 'updateOutputStatus': { 'outputName': 'string', 'status': 'ENABLED'|'DISABLED' }, 'updateClippingDataSourceConfiguration': { 'outputName': 'string', 'dataSourceConfiguration': { 'fixtureId': 'string' } }, 'removeClippingDataSourceConfiguration': { 'outputName': 'string' } }, ], 'status': 'PENDING'|'COMPLETED'|'FAILED', 'error': { 'errorCode': 'INVALID_ACTION_TARGET'|'INTERNAL_ERROR', 'errorMessage': 'string' } }, ], 'NextToken': 'string' }
Response Structure
(dict) –
scheduleActions (list) –
A list of the schedule actions on the feed.
(dict) –
Describes one schedule action on a feed, including the changes it makes and whether it has run yet. Elemental Inference returns this structure in the ListScheduleActions operation.
actionName (string) –
The name of the schedule action. The name is unique within the feed.
startConfiguration (dict) –
Specifies when the action runs.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
fixedModeScheduleActionStartSettings. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
fixedModeScheduleActionStartSettings (dict) –
The start settings type for an action that runs once, at a fixed time.
scheduledAt (datetime) –
The UTC time at which the action runs. Specify the time in whole seconds. For the range of times that you can specify, see the AWS Elemental Inference User Guide.
This time is approximate. The change can take a few minutes to take effect on the media that the feed is processing.
operations (list) –
The configuration changes that the action makes to the feed.
(dict) –
Holds one typed configuration change that a schedule action makes to a feed. Each operation must contain exactly one property.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
updateOutputStatus,updateClippingDataSourceConfiguration,removeClippingDataSourceConfiguration. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
updateOutputStatus (dict) –
The operation type that enables or disables an output.
outputName (string) –
The name of the output that you want to enable or disable. The output must exist in the feed when you create the action.
status (string) –
Specifies whether the output is enabled or disabled after the action runs.
updateClippingDataSourceConfiguration (dict) –
The operation type that attaches a game to an event clipping output.
outputName (string) –
The name of the output that you want to attach the game to.
dataSourceConfiguration (dict) –
The game that you want to attach to the output.
fixtureId (string) –
The ID of the fixture whose event data you want Elemental Inference to map onto this clipping output. The fixture should be the sports event in the source media that the feed is processing.
To obtain this ID, use the SearchFixtures operation to find the fixture, then use the fixtureId from the matching FixtureSummary.
removeClippingDataSourceConfiguration (dict) –
The operation type that removes the game from an event clipping output.
outputName (string) –
The name of the output that you want to remove the game from.
status (string) –
The status of the action. Valid values are the following:
PENDING
The action is waiting for its scheduled time.
COMPLETED
Elemental Inference applied all the action’s operations to the feed.
FAILED
Elemental Inference couldn’t apply the action.
error (dict) –
A description of why the action failed. Elemental Inference returns this property only when the status is FAILED.
errorCode (string) –
The type of failure. Valid values are the following:
INVALID_ACTION_TARGET
The action referred to something that didn’t exist or wasn’t valid at the scheduled time, for example an output that you deleted.
INTERNAL_ERROR
An unexpected error prevented the action from completing.
errorMessage (string) –
A description of the failure.
NextToken (string) –
A token to resume pagination.