AWS Elemental Inference 2018-11-14
- Client: Aws\ElementalInference\ElementalInferenceClient
- Service ID: elementalinference
- Version: 2018-11-14
This page describes the parameters and results for the operations of the AWS Elemental Inference (2018-11-14), and shows how to use the Aws\ElementalInference\ElementalInferenceClient object to call the described operations. This documentation is specific to the 2018-11-14 API version of the service.
Operation Summary
Each of the following operations can be created from a client using
$client->getCommand('CommandName'), where "CommandName" is the
name of one of the following operations. Note: a command is a value that
encapsulates an operation and the parameters used to create an HTTP request.
You can also create and send a command immediately using the magic methods
available on a client object: $client->commandName(/* parameters */).
You can send the command asynchronously (returning a promise) by appending the
word "Async" to the operation name: $client->commandNameAsync(/* parameters */).
- AssociateFeed ( array $params = [] )
- Associates a resource with the feed.
- CreateDictionary ( array $params = [] )
- Creates a custom dictionary for improving transcription accuracy.
- CreateFeed ( array $params = [] )
- Creates a feed.
- CreateFunction ( array $params = [] )
- Creates a function.
- CreateQuestionSet ( array $params = [] )
- Creates a question set.
- CreateQuestionSetVersion ( array $params = [] )
- Publishes the DRAFT version of the specified question set as a new version.
- CreateScheduleAction ( array $params = [] )
- Creates a schedule action on a feed.
- DeleteDictionary ( array $params = [] )
- Deletes the specified dictionary.
- DeleteFeed ( array $params = [] )
- Deletes the specified feed.
- DeleteFeedPolicy ( array $params = [] )
- Deletes the resource-based policy attached to the specified feed.
- DeleteFunction ( array $params = [] )
- Deletes a function.
- DeleteQuestionSet ( array $params = [] )
- Deletes the specified question set, including its DRAFT version and all its published versions.
- DeleteQuestionSetVersion ( array $params = [] )
- Deletes a published version of the specified question set.
- DeleteScheduleAction ( array $params = [] )
- Deletes a schedule action from a feed.
- DisassociateFeed ( array $params = [] )
- Releases the resource (the source media) that is associated with this feed.
- ExportDictionaryEntries ( array $params = [] )
- Exports the entries from the specified dictionary.
- GetDictionary ( array $params = [] )
- Retrieves information about the specified dictionary.
- GetFeed ( array $params = [] )
- Retrieves information about the specified feed.
- GetFeedPolicy ( array $params = [] )
- Retrieves the resource-based policy attached to the specified feed.
- GetFixture ( array $params = [] )
- Retrieves information about the specified fixture (a sports event, such as a specific basketball game).
- GetFunction ( array $params = [] )
- Retrieves the details of a function, including its expressions, the media context that Elemental Inference derived from the request expression, and the feeds that currently reference it.
- GetQuestionSet ( array $params = [] )
- Retrieves information about the specified question set at one version.
- ListDictionaries ( array $params = [] )
- Lists the dictionaries in your account.
- ListFeeds ( array $params = [] )
- Displays a list of feeds that belong to this AWS account.
- ListFunctions ( array $params = [] )
- Lists the functions in this account, in this Region.
- ListQuestionSetVersions ( array $params = [] )
- Lists the versions of the specified question set.
- ListQuestionSets ( array $params = [] )
- Lists the question sets in your account.
- ListScheduleActions ( array $params = [] )
- Displays a list of the schedule actions on a feed, including the status of each action and, for a failed action, information about why it failed.
- ListTagsForResource ( array $params = [] )
- List all tags that are on an Elemental Inference resource in the current region.
- PutFeedPolicy ( array $params = [] )
- Attaches or replaces a resource-based policy on the specified feed.
- SearchFixtures ( array $params = [] )
- Searches for the fixtures (sports events, such as a specific basketball game) that are available for a sport in a date window.
- TagResource ( array $params = [] )
- Associates the specified tags to the resource identified by the specified resourceArn in the current region.
- UntagResource ( array $params = [] )
- Deletes specified tags from the specified resource in the current region.
- UpdateDictionary ( array $params = [] )
- Updates the specified dictionary.
- UpdateFeed ( array $params = [] )
- Updates the name and/or outputs in a feed.
- UpdateFunction ( array $params = [] )
- Updates a function.
- UpdateQuestionSet ( array $params = [] )
- Updates the DRAFT version of the specified question set.
Paginators
Paginators handle automatically iterating over paginated API results. Paginators are associated with specific API operations, and they accept the parameters that the corresponding API operation accepts. You can get a paginator from a client class using getPaginator($paginatorName, $operationParameters). This client supports the following paginators:
- ListDictionaries
- ListFeeds
- ListFunctions
- ListQuestionSetVersions
- ListQuestionSets
- ListScheduleActions
- SearchFixtures
Waiters
Waiters allow you to poll a resource until it enters into a desired state. A waiter has a name used to describe what it does, and is associated with an API operation. When creating a waiter, you can provide the API operation parameters associated with the corresponding operation. Waiters can be accessed using the getWaiter($waiterName, $operationParameters) method of a client object. This client supports the following waiters:
| Waiter name | API Operation | Delay | Max Attempts |
|---|---|---|---|
| FeedDeleted | GetFeed | 3 | 40 |
Operations
AssociateFeed
$result = $client->associateFeed([/* ... */]); $promise = $client->associateFeedAsync([/* ... */]);
Associates a resource with the feed. The resource provides the input that Elemental Inference needs in order to perform an Elemental Inference feature, such as cropping video. You always provide the resource by associating it with a feed. You can associate only one resource with each feed. With an association, a specific source media is claiming ownership of the feed.
AssociateFeed is a PATCH operation, which means that you can include only parameters that you want to change. Parameters that you don't include will not be affected by the operation.
Specifically:
-
You can add more outputs to the existing outputs. New outputs will be appended.
-
You can't modify an existing output (for example to change its name). Instead, use UpdateFeed.
-
You can't delete an existing output. Instead, use UpdateFeed.
Also note that you can't change the feed name with AssociateFeed. Instead, use UpdateFeed.
Parameter Syntax
$result = $client->associateFeed([
'associatedResourceName' => '<string>', // REQUIRED
'dryRun' => true || false,
'id' => '<string>', // REQUIRED
'outputs' => [ // REQUIRED
[
'description' => '<string>',
'name' => '<string>', // REQUIRED
'outputConfig' => [ // REQUIRED
'clipping' => [
'callbackMetadata' => '<string>',
'dataSourceConfiguration' => [
'fixtureId' => '<string>', // REQUIRED
],
],
'contextualMetadata' => [
'customQuestions' => [
'scene' => [
'questionSetId' => '<string>', // REQUIRED
'version' => '<string>', // REQUIRED
],
'shot' => [
'questionSetId' => '<string>', // REQUIRED
'version' => '<string>', // REQUIRED
],
],
'extendedAnalysis' => 'ENABLED|DISABLED',
'summaryGeneration' => 'ENABLED|DISABLED',
],
'cropping' => [
'templateGroups' => [
[
'name' => '<string>', // REQUIRED
'templateUris' => ['<string>', ...], // REQUIRED
],
// ...
],
],
'function' => [
'clippingSettings' => [
'outputName' => '<string>', // REQUIRED
],
'contextualMetadataSettings' => [
'outputName' => '<string>', // REQUIRED
],
'frameSettings' => [
'frameSampling' => [ // REQUIRED
'count' => <integer>,
'mode' => 'FIRST|UNIFORM|LAST', // REQUIRED
],
'frameSize' => [
'heightPixels' => <integer>, // REQUIRED
'widthPixels' => <integer>, // REQUIRED
],
],
'functionArn' => '<string>', // REQUIRED
'subtitlingSettings' => [
'outputName' => '<string>', // REQUIRED
],
'trigger' => [ // REQUIRED
'fixedInterval' => [
'intervalSeconds' => <integer>, // REQUIRED
],
'perClip' => [
],
'perScene' => [
],
'perShot' => [
],
],
],
'subtitling' => [
'aspectRatio' => [
'height' => <integer>, // REQUIRED
'width' => <integer>, // REQUIRED
],
'dictionary' => '<string>',
'language' => 'eng|eng-au|eng-gb|eng-us|fra|ita|deu|spa|por|ara', // REQUIRED
'profanityFilter' => 'DISABLED|CENSOR|DROP',
],
],
'status' => 'ENABLED|DISABLED', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- associatedResourceName
-
- Required: Yes
- Type: string
An identifier for the resource. This name must not resemble an ARN.
The resource is the source media that the feed will process. The name you assign should help you to later identify the source media that belongs to the feed. In this way, you will know which source media to push to the feed (using PutMedia).
- dryRun
-
- Type: boolean
Set to true if you want to do a dry run of the associate action.
Elemental Inference will validate that the real request would succeed without actually making any changes. A dry run catches errors such as missing IAM permissions, quota limits exceeded, conflicting outputs, and so on. If the dry run fails, the action returns a 4xx error code. After you've fixed the errors, resubmit the request.
- id
-
- Required: Yes
- Type: string
The ID of the feed.
- outputs
-
- Required: Yes
- Type: Array of CreateOutput structures
An array of one or more outputs that you want to add to this feed now, to supplement any outputs that you specified when you created or updated the feed.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the feed.
- id
-
- Required: Yes
- Type: string
The ID of the feed.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
CreateDictionary
$result = $client->createDictionary([/* ... */]); $promise = $client->createDictionaryAsync([/* ... */]);
Creates a custom dictionary for improving transcription accuracy. A dictionary contains custom words and phrases that the ASR engine might not recognize, such as brand names, technical terms, or proper nouns. You can reference a dictionary when configuring a smart subtitles output.
Parameter Syntax
$result = $client->createDictionary([
'entries' => '<string>',
'language' => 'eng|fra|ita|deu|spa|por|ara', // REQUIRED
'name' => '<string>', // REQUIRED
'tags' => ['<string>', ...],
]);
Parameter Details
Members
- entries
-
- Type: string
The dictionary entries payload. Contains the custom words and phrases for the dictionary. Maximum size is 40,960 characters.
- language
-
- Required: Yes
- Type: string
The language of the dictionary entries. Specify the language using an ISO 639-2/T three-letter code. Supported values:
-
eng – English
-
fra – French
-
ita – Italian
-
deu – German
-
spa – Spanish
-
por – Portuguese
-
ara – Arabic
- name
-
- Required: Yes
- Type: string
A user-friendly name for this dictionary.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Optional tags to associate with the dictionary.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
'language' => 'eng|fra|ita|deu|spa|por|ara',
'name' => '<string>',
'references' => ['<string>', ...],
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
'tags' => ['<string>', ...],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the dictionary.
- id
-
- Required: Yes
- Type: string
A unique ID that Elemental Inference assigns to the dictionary.
- language
-
- Required: Yes
- Type: string
The language of the dictionary.
- name
-
- Required: Yes
- Type: string
The name that you specified in the request.
- references
-
- Type: Array of strings
A list of feed IDs that reference this dictionary.
- status
-
- Required: Yes
- Type: string
The current status of the dictionary. After creation succeeds, the status will be AVAILABLE.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Any tags that you included when you created the dictionary.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
CreateFeed
$result = $client->createFeed([/* ... */]); $promise = $client->createFeedAsync([/* ... */]);
Creates a feed. The feed is the target for the live media stream that is being sent by the calling application. An example of a calling application is AWS Elemental MediaLive.
The key contents of the feed is an array of outputs. Each output represents an Elemental Inference feature. After you create the feed, you must associate a resource with the feed. At that point, you will have a useable feed: resource - feed - output or outputs.
Parameter Syntax
$result = $client->createFeed([
'accessRoleArn' => '<string>',
'name' => '<string>', // REQUIRED
'outputs' => [ // REQUIRED
[
'description' => '<string>',
'name' => '<string>', // REQUIRED
'outputConfig' => [ // REQUIRED
'clipping' => [
'callbackMetadata' => '<string>',
'dataSourceConfiguration' => [
'fixtureId' => '<string>', // REQUIRED
],
],
'contextualMetadata' => [
'customQuestions' => [
'scene' => [
'questionSetId' => '<string>', // REQUIRED
'version' => '<string>', // REQUIRED
],
'shot' => [
'questionSetId' => '<string>', // REQUIRED
'version' => '<string>', // REQUIRED
],
],
'extendedAnalysis' => 'ENABLED|DISABLED',
'summaryGeneration' => 'ENABLED|DISABLED',
],
'cropping' => [
'templateGroups' => [
[
'name' => '<string>', // REQUIRED
'templateUris' => ['<string>', ...], // REQUIRED
],
// ...
],
],
'function' => [
'clippingSettings' => [
'outputName' => '<string>', // REQUIRED
],
'contextualMetadataSettings' => [
'outputName' => '<string>', // REQUIRED
],
'frameSettings' => [
'frameSampling' => [ // REQUIRED
'count' => <integer>,
'mode' => 'FIRST|UNIFORM|LAST', // REQUIRED
],
'frameSize' => [
'heightPixels' => <integer>, // REQUIRED
'widthPixels' => <integer>, // REQUIRED
],
],
'functionArn' => '<string>', // REQUIRED
'subtitlingSettings' => [
'outputName' => '<string>', // REQUIRED
],
'trigger' => [ // REQUIRED
'fixedInterval' => [
'intervalSeconds' => <integer>, // REQUIRED
],
'perClip' => [
],
'perScene' => [
],
'perShot' => [
],
],
],
'subtitling' => [
'aspectRatio' => [
'height' => <integer>, // REQUIRED
'width' => <integer>, // REQUIRED
],
'dictionary' => '<string>',
'language' => 'eng|eng-au|eng-gb|eng-us|fra|ita|deu|spa|por|ara', // REQUIRED
'profanityFilter' => 'DISABLED|CENSOR|DROP',
],
],
'status' => 'ENABLED|DISABLED', // REQUIRED
],
// ...
],
'tags' => ['<string>', ...],
]);
Parameter Details
Members
- accessRoleArn
-
- Type: string
The ARN of an IAM role that Elemental Inference assumes to access resources in your account on your behalf. For example, the smart crop feature uses this role to read graphics-compositing templates from your Amazon S3 bucket. You specify one access role for each feed.
- name
-
- Required: Yes
- Type: string
A user-friendly name for this feed.
- outputs
-
- Required: Yes
- Type: Array of CreateOutput structures
An array of outputs for this feed. Each output represents a specific Elemental Inference feature. For example, there is one output type for the smart crop feature. You must specify at least one output, but you can later add outputs using AssociateFeed, or add, modify, and delete outputs using UpdateFeed.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Optional tags. You can also add tags later, using TagResource.
Result Syntax
[
'accessRoleArn' => '<string>',
'arn' => '<string>',
'association' => [
'associatedResourceName' => '<string>',
],
'dataEndpoints' => ['<string>', ...],
'id' => '<string>',
'name' => '<string>',
'outputs' => [
[
'description' => '<string>',
'fromAssociation' => true || false,
'name' => '<string>',
'outputConfig' => [
'clipping' => [
'callbackMetadata' => '<string>',
'dataSourceConfiguration' => [
'fixtureId' => '<string>',
],
],
'contextualMetadata' => [
'customQuestions' => [
'scene' => [
'questionSetId' => '<string>',
'version' => '<string>',
],
'shot' => [
'questionSetId' => '<string>',
'version' => '<string>',
],
],
'extendedAnalysis' => 'ENABLED|DISABLED',
'summaryGeneration' => 'ENABLED|DISABLED',
],
'cropping' => [
'templateGroups' => [
[
'name' => '<string>',
'templateUris' => ['<string>', ...],
],
// ...
],
],
'function' => [
'clippingSettings' => [
'outputName' => '<string>',
],
'contextualMetadataSettings' => [
'outputName' => '<string>',
],
'frameSettings' => [
'frameSampling' => [
'count' => <integer>,
'mode' => 'FIRST|UNIFORM|LAST',
],
'frameSize' => [
'heightPixels' => <integer>,
'widthPixels' => <integer>,
],
],
'functionArn' => '<string>',
'subtitlingSettings' => [
'outputName' => '<string>',
],
'trigger' => [
'fixedInterval' => [
'intervalSeconds' => <integer>,
],
'perClip' => [
],
'perScene' => [
],
'perShot' => [
],
],
],
'subtitling' => [
'aspectRatio' => [
'height' => <integer>,
'width' => <integer>,
],
'dictionary' => '<string>',
'language' => 'eng|eng-au|eng-gb|eng-us|fra|ita|deu|spa|por|ara',
'profanityFilter' => 'DISABLED|CENSOR|DROP',
],
],
'status' => 'ENABLED|DISABLED',
],
// ...
],
'status' => 'CREATING|AVAILABLE|ACTIVE|UPDATING|DELETING|DELETED|ARCHIVED',
'tags' => ['<string>', ...],
]
Result Details
Members
- accessRoleArn
-
- Type: string
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that you specified in the request. This property is absent if you didn't specify an IAM role.
- arn
-
- Required: Yes
- Type: string
A unique ARN that Elemental Inference assigns to the feed.
- association
-
- Type: FeedAssociation structure
The association for this feed. When you create the feed, this property is empty. You must associate a resource with the feed using AssociateFeed or UpdateFeed.
- dataEndpoints
-
- Required: Yes
- Type: Array of strings
An array of endpoints for the feed. Typically, there is only one endpoint. The feed receives source media at this endpoint (when the calling application calls PutMedia) and returns the resulting metadata to this endpoint (when the calling application calls GetMetadata).
- id
-
- Required: Yes
- Type: string
A unique ID that Elemental Inference assigns to the feed.
- name
-
- Required: Yes
- Type: string
The name that you specified in the request.
- outputs
-
- Required: Yes
- Type: Array of GetOutput structures
Repeats the outputs that you specified in the request.
- status
-
- Required: Yes
- Type: string
The current status of the feed. After creation of the feed has succeeded, the status will be AVAILABLE.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Any tags that you included when you created the feed.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
CreateFunction
$result = $client->createFunction([/* ... */]); $promise = $client->createFunctionAsync([/* ... */]);
Creates a function. A function analyzes a feed by building a request from the feed's media and metadata, optionally sending that request to an Amazon Bedrock model in your account, and publishing the result to the feed's metadata timeline.
A function runs only after you attach it to a feed as a function output. For more information, see Using functions in the AWS Elemental Inference User Guide.
Parameter Syntax
$result = $client->createFunction([
'description' => '<string>',
'eventBridgeDelivery' => 'ENABLED|DISABLED',
'name' => '<string>', // REQUIRED
'requestExpression' => '<string>', // REQUIRED
'responseExpression' => '<string>',
'tags' => ['<string>', ...],
'target' => [ // REQUIRED
'bedrock' => [
'api' => 'INVOKE_MODEL', // REQUIRED
'model' => '<string>', // REQUIRED
],
'passthrough' => [
],
],
]);
Parameter Details
Members
- description
-
- Type: string
The description of the function. Maximum length: 1,024 characters.
- eventBridgeDelivery
-
- Type: string
Specifies whether Elemental Inference also sends this function's results to Amazon EventBridge. Elemental Inference sends a result only when the result is a JSON object with a top-level
eventBridgefield set totrue. It sends the result, unchanged, as a Function Metadata Generated event to the default event bus in your account, after the result is available from GetMetadata. If the result is larger than 64 KB, the event hasresultOmittedset totruein place of the result.Valid values:
-
ENABLED – Elemental Inference sends each marked result as an event.
-
DISABLED (default) – Elemental Inference doesn't send events.
For a Bedrock target, ENABLED requires a response expression, because the model response itself never has a top-level
eventBridgefield. A feed output that runs a function with ENABLED can't use a fixedInterval trigger shorter than 4 seconds. - name
-
- Required: Yes
- Type: string
A name for this function.
- requestExpression
-
- Required: Yes
- Type: string
The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for. Maximum length: 5,120 characters.
When you save the function, Elemental Inference evaluates the expression against sample media and rejects it if the evaluation fails. For a Bedrock target, the result must be a JSON object; Elemental Inference doesn't check that the object is a valid request body for the model. The expression can reference at most one of media.transcript, media.contextual, and media.clip. For a passthrough target, it can't reference media.frames.
- responseExpression
-
- Type: string
The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result. Maximum length: 5,120 characters.
When you save the function, Elemental Inference checks that the expression is valid JSONata. For a passthrough target, it also evaluates the request and response expressions together against sample media, and rejects them if they produce no value.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags to associate with this function.
- target
-
- Required: Yes
- Type: FunctionTarget structure
The destination for the request that the function builds.
Result Syntax
[
'arn' => '<string>',
'contextTypes' => ['<string>', ...],
'description' => '<string>',
'eventBridgeDelivery' => 'ENABLED|DISABLED',
'id' => '<string>',
'name' => '<string>',
'references' => ['<string>', ...],
'requestExpression' => '<string>',
'responseExpression' => '<string>',
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
'tags' => ['<string>', ...],
'target' => [
'bedrock' => [
'api' => 'INVOKE_MODEL',
'model' => '<string>',
],
'passthrough' => [
],
],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the function.
- contextTypes
-
- Type: Array of strings
The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
- description
-
- Type: string
The description of the function.
- eventBridgeDelivery
-
- Type: string
Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level
eventBridgefield set totrueis also sent as a Function Metadata Generated event to the default event bus in your account. - id
-
- Required: Yes
- Type: string
The ID of the function.
- name
-
- Required: Yes
- Type: string
The name of the function.
- references
-
- Type: Array of strings
The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.
- requestExpression
-
- Required: Yes
- Type: string
The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for.
- responseExpression
-
- Type: string
The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result.
- status
-
- Required: Yes
- Type: string
The status of the function. A successful request returns CREATING. The function is ready to use as soon as the request succeeds.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags associated with the function.
- target
-
- Required: Yes
- Type: FunctionTarget structure
The destination for the request that the function builds.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
CreateQuestionSet
$result = $client->createQuestionSet([/* ... */]); $promise = $client->createQuestionSetAsync([/* ... */]);
Creates a question set. Use a question set to get answers about content that's specific to your business, in addition to the built-in contextual metadata classifications. A question set contains your own questions. You ask Elemental Inference these questions about each shot or scene of the media in a contextual metadata output, and Elemental Inference answers each question with scores. To use a question set, reference it in the customQuestions property of the contextual metadata configuration of a feed output.
CreateQuestionSet creates the question set with a DRAFT version that contains the questions in the request. To change DRAFT, use UpdateQuestionSet. To publish DRAFT as a numbered version, use CreateQuestionSetVersion. You can't change a published version.
A question set can contain the following types of questions. You must specify at least one question.
-
yesNo – Elemental Inference answers yes or no.
-
yesNoPerOption – Elemental Inference answers yes or no for each option.
-
chooseOne – Elemental Inference chooses one of the options.
A version can contain up to 100 scored items, where each yesNo question, each option of a yesNoPerOption question, and each chooseOne question counts as one item. The name of each question must be unique across all three types.
Parameter Syntax
$result = $client->createQuestionSet([
'chooseOne' => [
[
'name' => '<string>', // REQUIRED
'options' => [ // REQUIRED
[
'name' => '<string>', // REQUIRED
'text' => '<string>', // REQUIRED
],
// ...
],
'question' => '<string>', // REQUIRED
],
// ...
],
'name' => '<string>', // REQUIRED
'tags' => ['<string>', ...],
'yesNo' => [
[
'name' => '<string>', // REQUIRED
'question' => '<string>', // REQUIRED
],
// ...
],
'yesNoPerOption' => [
[
'name' => '<string>', // REQUIRED
'options' => [ // REQUIRED
[
'name' => '<string>', // REQUIRED
'text' => '<string>', // REQUIRED
],
// ...
],
'question' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- chooseOne
-
- Type: Array of ChooseOneQuestion structures
An array of questions that Elemental Inference answers by choosing one of their options. You can specify up to 10 chooseOne questions. An empty array is the same as omitting this property.
- name
-
- Required: Yes
- Type: string
A user-friendly name for this question set.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Optional tags to associate with the question set. You can also add tags later, using TagResource.
- yesNo
-
- Type: Array of YesNoQuestion structures
An array of questions that Elemental Inference answers with yes or no. You can specify up to 50 yesNo questions. An empty array is the same as omitting this property.
- yesNoPerOption
-
- Type: Array of YesNoPerOptionQuestion structures
An array of questions that you ask about each of their options. Elemental Inference answers yes or no for each option. You can specify up to 10 yesNoPerOption questions. An empty array is the same as omitting this property.
Result Syntax
[
'arn' => '<string>',
'chooseOne' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
'description' => '<string>',
'id' => '<string>',
'latestVersion' => '<string>',
'name' => '<string>',
'references' => ['<string>', ...],
'sha256' => '<string>',
'tags' => ['<string>', ...],
'version' => '<string>',
'yesNo' => [
[
'name' => '<string>',
'question' => '<string>',
],
// ...
],
'yesNoPerOption' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the question set.
- chooseOne
-
- Type: Array of ChooseOneQuestion structures
The chooseOne questions that you specified in the request, in the order that you specified them. Elemental Inference doesn't return this property if the request didn't include any chooseOne questions.
- description
-
- Type: string
The description of the version. Elemental Inference doesn't return this property for CreateQuestionSet, because the DRAFT version has no description.
- id
-
- Required: Yes
- Type: string
A unique ID that Elemental Inference assigns to the question set.
- latestVersion
-
- Type: string
The number of the highest version that you have published for this question set. Elemental Inference doesn't return this property for CreateQuestionSet, because a new question set has no published versions.
- name
-
- Required: Yes
- Type: string
The name that you specified in the request.
- references
-
- Type: Array of strings
A list of feed IDs that reference this version of the question set. For a new question set, the list is empty.
- sha256
-
- Required: Yes
- Type: string
The SHA-256 hash of the DRAFT version, as 64 lowercase hexadecimal characters. The hash covers the name of the question set and its questions. You can specify this value in a CreateQuestionSetVersion request, so that Elemental Inference publishes DRAFT only if it hasn't changed.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Any tags that you included when you created the question set.
- version
-
- Required: Yes
- Type: string
The version that this response describes. For CreateQuestionSet, the version is always DRAFT.
- yesNo
-
- Type: Array of YesNoQuestion structures
The yesNo questions that you specified in the request, in the order that you specified them. Elemental Inference doesn't return this property if the request didn't include any yesNo questions.
- yesNoPerOption
-
- Type: Array of YesNoPerOptionQuestion structures
The yesNoPerOption questions that you specified in the request, in the order that you specified them. Elemental Inference doesn't return this property if the request didn't include any yesNoPerOption questions.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
CreateQuestionSetVersion
$result = $client->createQuestionSetVersion([/* ... */]); $promise = $client->createQuestionSetVersionAsync([/* ... */]);
Publishes the DRAFT version of the specified question set as a new version. The new version has the same name and questions as DRAFT, and you can't change it. DRAFT doesn't change, so you can continue to update it.
Version numbers start at 1, and each new version has the next number. Elemental Inference never reuses a version number, even after you delete that version.
If DRAFT hasn't changed since the latest published version, Elemental Inference doesn't create a version. Instead, it returns the latest version. A change to the name of the question set counts as a change to DRAFT.
A question set can have a limited number of versions. If the question set already has the maximum number of versions, Elemental Inference returns ServiceQuotaExceededException. To free space for a new version, delete a version that you no longer need, or create a new question set.
Parameter Syntax
$result = $client->createQuestionSetVersion([
'description' => '<string>',
'id' => '<string>', // REQUIRED
'sha256' => '<string>',
]);
Parameter Details
Members
- description
-
- Type: string
A description of the new version. You can't change the description after Elemental Inference publishes the version. If DRAFT hasn't changed since the latest version, Elemental Inference ignores this value and returns the latest version with its existing description.
The description can be up to 256 characters. It can contain the letters A-Z and a-z, the digits 0-9, underscores, spaces, and the following characters:
- . ' , @ : ;. - id
-
- Required: Yes
- Type: string
The ID of the question set whose DRAFT version you want to publish.
- sha256
-
- Type: string
The SHA-256 hash of the DRAFT version that you want to publish, as returned by GetQuestionSet or UpdateQuestionSet. If you specify this value, Elemental Inference publishes DRAFT only if its current hash matches. If it doesn't match, because DRAFT changed after you retrieved it, the request fails with ConflictException.
If you don't specify this value, Elemental Inference publishes DRAFT as it is when it receives the request.
Result Syntax
[
'arn' => '<string>',
'chooseOne' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
'description' => '<string>',
'id' => '<string>',
'latestVersion' => '<string>',
'name' => '<string>',
'references' => ['<string>', ...],
'sha256' => '<string>',
'tags' => ['<string>', ...],
'version' => '<string>',
'yesNo' => [
[
'name' => '<string>',
'question' => '<string>',
],
// ...
],
'yesNoPerOption' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the question set.
- chooseOne
-
- Type: Array of ChooseOneQuestion structures
The chooseOne questions in this version. Elemental Inference doesn't return this property if the version has no chooseOne questions.
- description
-
- Type: string
The description of the version. For a new version, this is the description that you specified in the request. If DRAFT hadn't changed since the latest version, this is the description of that existing version. Elemental Inference doesn't return this property if the version has no description.
- id
-
- Required: Yes
- Type: string
The ID of the question set.
- latestVersion
-
- Type: string
The number of the highest version that you have published for this question set. It's the same as version.
- name
-
- Required: Yes
- Type: string
The name of the question set at this version.
- references
-
- Type: Array of strings
A list of feed IDs that reference this version of the question set. For a new version, the list is empty.
- sha256
-
- Required: Yes
- Type: string
The SHA-256 hash of the version, as 64 lowercase hexadecimal characters. It's the same as the hash of the DRAFT version that Elemental Inference published.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Any tags associated with the question set.
- version
-
- Required: Yes
- Type: string
The number of the version that Elemental Inference published. If DRAFT hadn't changed since the latest version, this is the number of that existing version.
- yesNo
-
- Type: Array of YesNoQuestion structures
The yesNo questions in this version. Elemental Inference doesn't return this property if the version has no yesNo questions.
- yesNoPerOption
-
- Type: Array of YesNoPerOptionQuestion structures
The yesNoPerOption questions in this version. Elemental Inference doesn't return this property if the version has no yesNoPerOption questions.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
CreateScheduleAction
$result = $client->createScheduleAction([/* ... */]); $promise = $client->createScheduleActionAsync([/* ... */]);
Creates a schedule action on a feed. A schedule action applies configuration changes to the feed at a time that you specify, in the same way as an UpdateFeed request.
Elemental Inference validates the targets of the action when you create it.
Parameter Syntax
$result = $client->createScheduleAction([
'actionName' => '<string>', // REQUIRED
'id' => '<string>', // REQUIRED
'operations' => [ // REQUIRED
[
'removeClippingDataSourceConfiguration' => [
'outputName' => '<string>', // REQUIRED
],
'updateClippingDataSourceConfiguration' => [
'dataSourceConfiguration' => [ // REQUIRED
'fixtureId' => '<string>', // REQUIRED
],
'outputName' => '<string>', // REQUIRED
],
'updateOutputStatus' => [
'outputName' => '<string>', // REQUIRED
'status' => 'ENABLED|DISABLED', // REQUIRED
],
],
// ...
],
'startConfiguration' => [ // REQUIRED
'fixedModeScheduleActionStartSettings' => [
'scheduledAt' => <integer || string || DateTime>, // REQUIRED
],
],
]);
Parameter Details
Members
- actionName
-
- Required: Yes
- Type: string
A name for the schedule action. The name must be unique within the feed. You can reuse the name of an action that you deleted.
- id
-
- Required: Yes
- Type: string
Specifies the ID of the feed that you want to add the schedule action to.
- operations
-
- Required: Yes
- Type: Array of ScheduleActionOperation structures
Specifies the list of configuration changes that you want to make to the feed. Elemental Inference applies all the operations in an action together, in the order that you specify them. If any operation fails, Elemental Inference doesn't apply any of them.
- startConfiguration
-
- Required: Yes
- Type: ScheduleActionStartConfiguration structure
Specifies when the action runs.
Result Syntax
[
'actionName' => '<string>',
'error' => [
'errorCode' => 'INVALID_ACTION_TARGET|INTERNAL_ERROR',
'errorMessage' => '<string>',
],
'operations' => [
[
'removeClippingDataSourceConfiguration' => [
'outputName' => '<string>',
],
'updateClippingDataSourceConfiguration' => [
'dataSourceConfiguration' => [
'fixtureId' => '<string>',
],
'outputName' => '<string>',
],
'updateOutputStatus' => [
'outputName' => '<string>',
'status' => 'ENABLED|DISABLED',
],
],
// ...
],
'startConfiguration' => [
'fixedModeScheduleActionStartSettings' => [
'scheduledAt' => <DateTime>,
],
],
'status' => 'PENDING|COMPLETED|FAILED',
]
Result Details
Members
- actionName
-
- Required: Yes
- Type: string
The name that you specified.
- error
-
- Type: ScheduleActionError structure
A description of why the action failed. Elemental Inference returns this property only when the status is FAILED.
- operations
-
- Required: Yes
- Type: Array of ScheduleActionOperation structures
The configuration changes that the action makes to the feed.
- startConfiguration
-
- Required: Yes
- Type: ScheduleActionStartConfiguration structure
Specifies when the action runs.
- status
-
- Required: Yes
- Type: string
The status of the action. After you create the action successfully, Elemental Inference sets the status to PENDING.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
DeleteDictionary
$result = $client->deleteDictionary([/* ... */]); $promise = $client->deleteDictionaryAsync([/* ... */]);
Deletes the specified dictionary. You cannot delete a dictionary that is referenced by a feed. You must first remove the dictionary reference from the feed's subtitling configuration.
Parameter Syntax
$result = $client->deleteDictionary([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the dictionary to delete.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the deleted dictionary.
- id
-
- Required: Yes
- Type: string
The ID of the deleted dictionary.
- status
-
- Required: Yes
- Type: string
The status of the dictionary after deletion.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
DeleteFeed
$result = $client->deleteFeed([/* ... */]); $promise = $client->deleteFeedAsync([/* ... */]);
Deletes the specified feed. You can delete the feed at any time. Elemental Inference doesn't block you from deleting a feed when the calling application is calling PutMedia or GetMetadata on that feed, although both these calls will start to fail. For more information about managing inactive feeds, see the Elemental Inference User Guide.
Parameter Syntax
$result = $client->deleteFeed([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the feed.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
'status' => 'CREATING|AVAILABLE|ACTIVE|UPDATING|DELETING|DELETED|ARCHIVED',
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the deleted feed.
- id
-
- Required: Yes
- Type: string
The ID of the deleted feed.
- status
-
- Required: Yes
- Type: string
The current status of the feed. When deletion of the feed has succeeded, the status will be DELETED.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
DeleteFeedPolicy
$result = $client->deleteFeedPolicy([/* ... */]); $promise = $client->deleteFeedPolicyAsync([/* ... */]);
Deletes the resource-based policy attached to the specified feed. After you delete the policy, the operation revokes the cross-account access that the policy granted.
Parameter Syntax
$result = $client->deleteFeedPolicy([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the feed whose policy you want to delete.
Result Syntax
[]
Result Details
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
DeleteFunction
$result = $client->deleteFunction([/* ... */]); $promise = $client->deleteFunctionAsync([/* ... */]);
Deletes a function. If any feed still references the function, the operation returns a ConflictException. A disabled function output still references the function. Use GetFunction to find those feeds, then remove the function output from each one with UpdateFeed, or delete the feed, before retrying.
Deleting a function doesn't delete the metadata that it has already produced.
Parameter Syntax
$result = $client->deleteFunction([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the function.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the function.
- id
-
- Required: Yes
- Type: string
The ID of the function.
- status
-
- Required: Yes
- Type: string
The status of the function. A successful request returns DELETING. Elemental Inference removes the function before it returns the response.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
DeleteQuestionSet
$result = $client->deleteQuestionSet([/* ... */]); $promise = $client->deleteQuestionSetAsync([/* ... */]);
Deletes the specified question set, including its DRAFT version and all its published versions. You can't delete a question set while any feed references any of its versions, including an archived feed. You must first remove the question set from the customQuestions configuration of each feed output that references it, or delete those feeds.
Parameter Syntax
$result = $client->deleteQuestionSet([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the question set to delete.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the deleted question set.
- id
-
- Required: Yes
- Type: string
The ID of the deleted question set.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
DeleteQuestionSetVersion
$result = $client->deleteQuestionSetVersion([/* ... */]); $promise = $client->deleteQuestionSetVersionAsync([/* ... */]);
Deletes a published version of the specified question set. You can't delete a version while a feed references it, including an archived feed. You can't restore a deleted version, and Elemental Inference doesn't reuse its number.
You can't delete the DRAFT version on its own. To delete DRAFT, delete the question set by using DeleteQuestionSet.
Deleting a version doesn't change the latestVersion of the question set, even if you delete the highest version.
Parameter Syntax
$result = $client->deleteQuestionSetVersion([
'id' => '<string>', // REQUIRED
'questionSetVersion' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the question set that contains the version.
- questionSetVersion
-
- Required: Yes
- Type: string
The number of the published version to delete. You can't specify DRAFT.
Result Syntax
[]
Result Details
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
DeleteScheduleAction
$result = $client->deleteScheduleAction([/* ... */]); $promise = $client->deleteScheduleActionAsync([/* ... */]);
Deletes a schedule action from a feed. A deleted action never runs.
You can delete only an action whose status is PENDING. Deleting an action doesn't reverse changes that the action already made to the feed. When you delete or archive a feed, Elemental Inference deletes all the schedule actions on that feed.
Parameter Syntax
$result = $client->deleteScheduleAction([
'actionName' => '<string>', // REQUIRED
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- actionName
-
- Required: Yes
- Type: string
The name of the schedule action that you want to delete.
- id
-
- Required: Yes
- Type: string
The ID of the feed that holds the schedule action.
Result Syntax
[
'actionName' => '<string>',
]
Result Details
Members
- actionName
-
- Required: Yes
- Type: string
The name of the schedule action that Elemental Inference deleted.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
DisassociateFeed
$result = $client->disassociateFeed([/* ... */]); $promise = $client->disassociateFeedAsync([/* ... */]);
Releases the resource (the source media) that is associated with this feed. The outputs in the feed become DISABLED.
Parameter Syntax
$result = $client->disassociateFeed([
'associatedResourceName' => '<string>', // REQUIRED
'dryRun' => true || false,
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- associatedResourceName
-
- Required: Yes
- Type: string
The name of the resource currently associated with the feed.
- dryRun
-
- Type: boolean
Set to true if you want to do a dry run of the disassociate action.
Elemental Inference will validate that the real request would succeed without actually making any changes. A dry run catches errors such as missing IAM permissions. If the dry run fails, the action returns a 4xx error code.
- id
-
- Required: Yes
- Type: string
The ID of the feed where you want to release the resource.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the feed.
- id
-
- Required: Yes
- Type: string
The ID of the feed.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
ExportDictionaryEntries
$result = $client->exportDictionaryEntries([/* ... */]); $promise = $client->exportDictionaryEntriesAsync([/* ... */]);
Exports the entries from the specified dictionary.
Parameter Syntax
$result = $client->exportDictionaryEntries([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the dictionary whose entries you want to export.
Result Syntax
[
'entries' => '<string>',
]
Result Details
Members
- entries
-
- Type: string
The dictionary entries payload.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
GetDictionary
$result = $client->getDictionary([/* ... */]); $promise = $client->getDictionaryAsync([/* ... */]);
Retrieves information about the specified dictionary.
Parameter Syntax
$result = $client->getDictionary([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the dictionary to retrieve.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
'language' => 'eng|fra|ita|deu|spa|por|ara',
'name' => '<string>',
'references' => ['<string>', ...],
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
'tags' => ['<string>', ...],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the dictionary.
- id
-
- Required: Yes
- Type: string
The ID of the dictionary.
- language
-
- Required: Yes
- Type: string
The language of the dictionary.
- name
-
- Required: Yes
- Type: string
The name of the dictionary.
- references
-
- Type: Array of strings
A list of feed IDs that reference this dictionary.
- status
-
- Required: Yes
- Type: string
The current status of the dictionary.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags associated with the dictionary.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
GetFeed
$result = $client->getFeed([/* ... */]); $promise = $client->getFeedAsync([/* ... */]);
Retrieves information about the specified feed.
Parameter Syntax
$result = $client->getFeed([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the feed to query.
Result Syntax
[
'accessRoleArn' => '<string>',
'arn' => '<string>',
'association' => [
'associatedResourceName' => '<string>',
],
'dataEndpoints' => ['<string>', ...],
'id' => '<string>',
'name' => '<string>',
'outputs' => [
[
'description' => '<string>',
'fromAssociation' => true || false,
'name' => '<string>',
'outputConfig' => [
'clipping' => [
'callbackMetadata' => '<string>',
'dataSourceConfiguration' => [
'fixtureId' => '<string>',
],
],
'contextualMetadata' => [
'customQuestions' => [
'scene' => [
'questionSetId' => '<string>',
'version' => '<string>',
],
'shot' => [
'questionSetId' => '<string>',
'version' => '<string>',
],
],
'extendedAnalysis' => 'ENABLED|DISABLED',
'summaryGeneration' => 'ENABLED|DISABLED',
],
'cropping' => [
'templateGroups' => [
[
'name' => '<string>',
'templateUris' => ['<string>', ...],
],
// ...
],
],
'function' => [
'clippingSettings' => [
'outputName' => '<string>',
],
'contextualMetadataSettings' => [
'outputName' => '<string>',
],
'frameSettings' => [
'frameSampling' => [
'count' => <integer>,
'mode' => 'FIRST|UNIFORM|LAST',
],
'frameSize' => [
'heightPixels' => <integer>,
'widthPixels' => <integer>,
],
],
'functionArn' => '<string>',
'subtitlingSettings' => [
'outputName' => '<string>',
],
'trigger' => [
'fixedInterval' => [
'intervalSeconds' => <integer>,
],
'perClip' => [
],
'perScene' => [
],
'perShot' => [
],
],
],
'subtitling' => [
'aspectRatio' => [
'height' => <integer>,
'width' => <integer>,
],
'dictionary' => '<string>',
'language' => 'eng|eng-au|eng-gb|eng-us|fra|ita|deu|spa|por|ara',
'profanityFilter' => 'DISABLED|CENSOR|DROP',
],
],
'status' => 'ENABLED|DISABLED',
],
// ...
],
'status' => 'CREATING|AVAILABLE|ACTIVE|UPDATING|DELETING|DELETED|ARCHIVED',
'tags' => ['<string>', ...],
]
Result Details
Members
- accessRoleArn
-
- Type: string
The Amazon Resource Name (ARN) of an AWS Identity and Access Management (IAM) role that Elemental Inference assumes. Elemental Inference uses this role to access resources in your account on your behalf. This property is absent if the feed doesn't have an IAM role.
- arn
-
- Required: Yes
- Type: string
The ARN of the feed.
- association
-
- Type: FeedAssociation structure
Information about the resource that is associated with the feed. It's possible that there is no associated resource. This is not an error.
- dataEndpoints
-
- Required: Yes
- Type: Array of strings
The dataEndpoints of the feed.
- id
-
- Required: Yes
- Type: string
The ID of the feed.
- name
-
- Required: Yes
- Type: string
The name of the feed.
- outputs
-
- Required: Yes
- Type: Array of GetOutput structures
An array of the outputs in the feed.
- status
-
- Required: Yes
- Type: string
The status of the feed.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
A list of the tags, if any, for the feed.
Errors
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
GetFeedPolicy
$result = $client->getFeedPolicy([/* ... */]); $promise = $client->getFeedPolicyAsync([/* ... */]);
Retrieves the resource-based policy attached to the specified feed.
Parameter Syntax
$result = $client->getFeedPolicy([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the feed whose policy you want to retrieve.
Result Syntax
[
'policy' => '<string>',
]
Result Details
Members
- policy
-
- Required: Yes
- Type: string
The resource-based policy document attached to the feed.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
GetFixture
$result = $client->getFixture([/* ... */]); $promise = $client->getFixtureAsync([/* ... */]);
Retrieves information about the specified fixture (a sports event, such as a specific basketball game). You obtain a fixtureId from SearchFixtures, or from the clipping output of a feed.
Parameter Syntax
$result = $client->getFixture([
'fixtureId' => '<string>', // REQUIRED
]);
Parameter Details
Members
- fixtureId
-
- Required: Yes
- Type: string
The ID of the fixture to retrieve, as returned by SearchFixtures.
Result Syntax
[
'competitors' => [
[
'isHome' => true || false,
'name' => '<string>',
],
// ...
],
'fixtureGroup' => '<string>',
'fixtureId' => '<string>',
'name' => '<string>',
'scheduledStart' => <DateTime>,
'status' => '<string>',
]
Result Details
Members
- competitors
-
- Required: Yes
- Type: Array of Competitor structures
An array of the competitors (the teams or individuals) in the fixture.
- fixtureGroup
-
- Type: string
The group that the fixture belongs to, such as the competition, league, or tournament. The data source doesn't provide this information for every fixture.
- fixtureId
-
- Required: Yes
- Type: string
The ID that you specified in the request.
- name
-
- Required: Yes
- Type: string
The name of the fixture, as provided by the data source. For example, the names of the two competing teams.
- scheduledStart
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The scheduled start time of the fixture, as provided by the data source. The actual start time might differ.
- status
-
- Required: Yes
- Type: string
The status of the fixture in its lifecycle, as provided by the data source. For example, Scheduled or Completed.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ServiceUnavailableException:
The service is temporarily unable to handle the request. Retry the request. If the problem persists, contact AWS Support.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- GatewayTimedOutException:
The request timed out before the service returned a response. This is a temporary condition. Retry the request. If the problem persists, contact AWS Support.
GetFunction
$result = $client->getFunction([/* ... */]); $promise = $client->getFunctionAsync([/* ... */]);
Retrieves the details of a function, including its expressions, the media context that Elemental Inference derived from the request expression, and the feeds that currently reference it.
Parameter Syntax
$result = $client->getFunction([
'id' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the function.
Result Syntax
[
'arn' => '<string>',
'contextTypes' => ['<string>', ...],
'description' => '<string>',
'eventBridgeDelivery' => 'ENABLED|DISABLED',
'id' => '<string>',
'name' => '<string>',
'references' => ['<string>', ...],
'requestExpression' => '<string>',
'responseExpression' => '<string>',
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
'tags' => ['<string>', ...],
'target' => [
'bedrock' => [
'api' => 'INVOKE_MODEL',
'model' => '<string>',
],
'passthrough' => [
],
],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the function.
- contextTypes
-
- Type: Array of strings
The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
- description
-
- Type: string
The description of the function.
- eventBridgeDelivery
-
- Type: string
Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level
eventBridgefield set totrueis also sent as a Function Metadata Generated event to the default event bus in your account. - id
-
- Required: Yes
- Type: string
The ID of the function.
- name
-
- Required: Yes
- Type: string
The name of the function.
- references
-
- Type: Array of strings
The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.
- requestExpression
-
- Required: Yes
- Type: string
The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for.
- responseExpression
-
- Type: string
The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result.
- status
-
- Required: Yes
- Type: string
The status of the function.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags associated with the function.
- target
-
- Required: Yes
- Type: FunctionTarget structure
The destination for the request that the function builds.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
GetQuestionSet
$result = $client->getQuestionSet([/* ... */]); $promise = $client->getQuestionSetAsync([/* ... */]);
Retrieves information about the specified question set at one version. By default, GetQuestionSet returns the DRAFT version. To retrieve a published version, specify questionSetVersion.
Parameter Syntax
$result = $client->getQuestionSet([
'id' => '<string>', // REQUIRED
'questionSetVersion' => '<string>',
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the question set to retrieve.
- questionSetVersion
-
- Type: string
The version of the question set to retrieve: DRAFT or the number of a published version. If you don't specify a version, Elemental Inference returns DRAFT.
Result Syntax
[
'arn' => '<string>',
'chooseOne' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
'description' => '<string>',
'id' => '<string>',
'latestVersion' => '<string>',
'name' => '<string>',
'references' => ['<string>', ...],
'sha256' => '<string>',
'tags' => ['<string>', ...],
'version' => '<string>',
'yesNo' => [
[
'name' => '<string>',
'question' => '<string>',
],
// ...
],
'yesNoPerOption' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the question set.
- chooseOne
-
- Type: Array of ChooseOneQuestion structures
The chooseOne questions in this version. Elemental Inference doesn't return this property if the version has no chooseOne questions.
- description
-
- Type: string
The description that you specified when you published this version. Elemental Inference doesn't return this property for DRAFT, or for a version that you published without a description.
- id
-
- Required: Yes
- Type: string
The ID of the question set.
- latestVersion
-
- Type: string
The number of the highest version that you have published for this question set, even if you have since deleted that version. Elemental Inference doesn't return this property if you haven't published a version.
- name
-
- Required: Yes
- Type: string
The name of the question set at this version. For a published version, this is the name that the question set had when the version was published.
- references
-
- Type: Array of strings
A list of feed IDs that reference this version of the question set. The list doesn't include feeds that reference other versions.
- sha256
-
- Required: Yes
- Type: string
The SHA-256 hash of this version, as 64 lowercase hexadecimal characters. The hash covers the name of the question set and its questions at this version. For DRAFT, you can specify this value in a CreateQuestionSetVersion request, so that Elemental Inference publishes DRAFT only if it hasn't changed.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags associated with the question set.
- version
-
- Required: Yes
- Type: string
The version that this response describes: DRAFT or the number of a published version.
- yesNo
-
- Type: Array of YesNoQuestion structures
The yesNo questions in this version. Elemental Inference doesn't return this property if the version has no yesNo questions.
- yesNoPerOption
-
- Type: Array of YesNoPerOptionQuestion structures
The yesNoPerOption questions in this version. Elemental Inference doesn't return this property if the version has no yesNoPerOption questions.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
ListDictionaries
$result = $client->listDictionaries([/* ... */]); $promise = $client->listDictionariesAsync([/* ... */]);
Lists the dictionaries in your account.
Parameter Syntax
$result = $client->listDictionaries([
'maxResults' => <integer>,
'nextToken' => '<string>',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of results to return per API request. Valid range: 1 to 100.
- nextToken
-
- Type: string
The token that identifies the next batch of results to return.
Result Syntax
[
'dictionaries' => [
[
'arn' => '<string>',
'id' => '<string>',
'language' => 'eng|fra|ita|deu|spa|por|ara',
'name' => '<string>',
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- dictionaries
-
- Required: Yes
- Type: Array of DictionarySummary structures
A list of DictionarySummary objects.
- nextToken
-
- Type: string
The token to use to retrieve the next batch of results.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
ListFeeds
$result = $client->listFeeds([/* ... */]); $promise = $client->listFeedsAsync([/* ... */]);
Displays a list of feeds that belong to this AWS account.
Parameter Syntax
$result = $client->listFeeds([
'maxResults' => <integer>,
'nextToken' => '<string>',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of results to return per API request.
For example, you submit a list request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.)
The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.
Valid Range: Minimum value of 1. Maximum value of 1000.
- nextToken
-
- Type: string
The token that identifies the batch of results that you want to see.
For example, you submit a ListFeeds request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListFeeds request a second time and specify the NextToken value.
Result Syntax
[
'feeds' => [
[
'arn' => '<string>',
'association' => [
'associatedResourceName' => '<string>',
],
'id' => '<string>',
'name' => '<string>',
'status' => 'CREATING|AVAILABLE|ACTIVE|UPDATING|DELETING|DELETED|ARCHIVED',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- feeds
-
- Required: Yes
- Type: Array of FeedSummary structures
A list of FeedSummary objects.
- nextToken
-
- Type: string
The token that identifies the batch of results that you want to see. For example, you submit a list request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the list request a second time and specify the NextToken value.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
ListFunctions
$result = $client->listFunctions([/* ... */]); $promise = $client->listFunctionsAsync([/* ... */]);
Lists the functions in this account, in this Region. Each entry is a summary. To get the expressions of a function, use GetFunction.
Parameter Syntax
$result = $client->listFunctions([
'maxResults' => <integer>,
'nextToken' => '<string>',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of functions to return in one response. Valid range: 1 to 100. The default is 100.
- nextToken
-
- Type: string
The token that identifies the page of results to return. Use the nextToken value from a previous response.
Result Syntax
[
'functions' => [
[
'arn' => '<string>',
'contextTypes' => ['<string>', ...],
'description' => '<string>',
'id' => '<string>',
'name' => '<string>',
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
'target' => [
'bedrock' => [
'api' => 'INVOKE_MODEL',
'model' => '<string>',
],
'passthrough' => [
],
],
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- functions
-
- Required: Yes
- Type: Array of FunctionSummary structures
An array of function summaries.
- nextToken
-
- Type: string
The token to use in a subsequent request to get the next page of results. This field is absent when there are no more results.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
ListQuestionSetVersions
$result = $client->listQuestionSetVersions([/* ... */]); $promise = $client->listQuestionSetVersionsAsync([/* ... */]);
Lists the versions of the specified question set. The list starts with the DRAFT version, followed by the published versions from the highest version number to the lowest. The list doesn't include deleted versions.
The response doesn't include the questions in each version. To retrieve them, use GetQuestionSet and specify questionSetVersion.
Parameter Syntax
$result = $client->listQuestionSetVersions([
'id' => '<string>', // REQUIRED
'maxResults' => <integer>,
'nextToken' => '<string>',
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the question set whose versions you want to list.
- maxResults
-
- Type: int
The maximum number of results to return per API request. Valid range: 1 to 100.
- nextToken
-
- Type: string
The token that identifies the next batch of results to return.
Result Syntax
[
'nextToken' => '<string>',
'versions' => [
[
'description' => '<string>',
'lastModifiedAt' => <DateTime>,
'sha256' => '<string>',
'version' => '<string>',
],
// ...
],
]
Result Details
Members
- nextToken
-
- Type: string
The token to use to retrieve the next batch of results.
- versions
-
- Required: Yes
- Type: Array of QuestionSetVersionSummary structures
A list of QuestionSetVersionSummary objects.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
ListQuestionSets
$result = $client->listQuestionSets([/* ... */]); $promise = $client->listQuestionSetsAsync([/* ... */]);
Lists the question sets in your account. The response doesn't include the questions in each question set. To retrieve them, use GetQuestionSet.
Parameter Syntax
$result = $client->listQuestionSets([
'maxResults' => <integer>,
'nextToken' => '<string>',
]);
Parameter Details
Members
- maxResults
-
- Type: int
The maximum number of results to return per API request. Valid range: 1 to 100.
- nextToken
-
- Type: string
The token that identifies the next batch of results to return.
Result Syntax
[
'nextToken' => '<string>',
'questionSets' => [
[
'arn' => '<string>',
'id' => '<string>',
'latestVersion' => '<string>',
'name' => '<string>',
],
// ...
],
]
Result Details
Members
- nextToken
-
- Type: string
The token to use to retrieve the next batch of results.
- questionSets
-
- Required: Yes
- Type: Array of QuestionSetSummary structures
A list of QuestionSetSummary objects.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
ListScheduleActions
$result = $client->listScheduleActions([/* ... */]); $promise = $client->listScheduleActionsAsync([/* ... */]);
Displays a list of the schedule actions on a feed, including the status of each action and, for a failed action, information about why it failed.
Elemental Inference keeps an action whose status is COMPLETED or FAILED for about 48 hours after its scheduled time, and then deletes it automatically.
Parameter Syntax
$result = $client->listScheduleActions([
'id' => '<string>', // REQUIRED
'maxResults' => <integer>,
'nextToken' => '<string>',
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the feed that you want to query.
- maxResults
-
- Type: int
The maximum number of results to return for each API request. If you don't specify MaxResults, Elemental Inference returns a maximum of 10 results for each page.
- nextToken
-
- Type: string
The token that identifies the batch of results that you want to see. To see the next batch, submit the request a second time and specify the NextToken value that Elemental Inference returned.
Result Syntax
[
'nextToken' => '<string>',
'scheduleActions' => [
[
'actionName' => '<string>',
'error' => [
'errorCode' => 'INVALID_ACTION_TARGET|INTERNAL_ERROR',
'errorMessage' => '<string>',
],
'operations' => [
[
'removeClippingDataSourceConfiguration' => [
'outputName' => '<string>',
],
'updateClippingDataSourceConfiguration' => [
'dataSourceConfiguration' => [
'fixtureId' => '<string>',
],
'outputName' => '<string>',
],
'updateOutputStatus' => [
'outputName' => '<string>',
'status' => 'ENABLED|DISABLED',
],
],
// ...
],
'startConfiguration' => [
'fixedModeScheduleActionStartSettings' => [
'scheduledAt' => <DateTime>,
],
],
'status' => 'PENDING|COMPLETED|FAILED',
],
// ...
],
]
Result Details
Members
- nextToken
-
- Type: string
The token that identifies the next batch of results. Elemental Inference returns it only when more results are available.
- scheduleActions
-
- Required: Yes
- Type: Array of ScheduleAction structures
A list of the schedule actions on the feed.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
ListTagsForResource
$result = $client->listTagsForResource([/* ... */]); $promise = $client->listTagsForResourceAsync([/* ... */]);
List all tags that are on an Elemental Inference resource in the current region.
Parameter Syntax
$result = $client->listTagsForResource([
'resourceArn' => '<string>', // REQUIRED
]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The ARN of the resource whose tags you want to query.
Result Syntax
[
'tags' => ['<string>', ...],
]
Result Details
Members
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
A list of the tags that belong to this resource.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
PutFeedPolicy
$result = $client->putFeedPolicy([/* ... */]); $promise = $client->putFeedPolicyAsync([/* ... */]);
Attaches or replaces a resource-based policy on the specified feed. A resource-based policy grants cross-account access to the feed.
Parameter Syntax
$result = $client->putFeedPolicy([
'id' => '<string>', // REQUIRED
'policy' => '<string>', // REQUIRED
]);
Parameter Details
Members
- id
-
- Required: Yes
- Type: string
The ID of the feed to attach the policy to.
- policy
-
- Required: Yes
- Type: string
The resource-based policy document to attach to the feed.
Result Syntax
[]
Result Details
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
SearchFixtures
$result = $client->searchFixtures([/* ... */]); $promise = $client->searchFixturesAsync([/* ... */]);
Searches for the fixtures (sports events, such as a specific basketball game) that are available for a sport in a date window. Each fixture in the response includes a fixtureId that you specify in the clipping output of a feed, so that Elemental Inference maps the event data for that fixture onto the clipping metadata. This operation is paginated: if there are more fixtures than fit in one page, the response includes a nextToken that you pass in a subsequent request.
Parameter Syntax
$result = $client->searchFixtures([
'endDate' => '<string>',
'filters' => [
[
'name' => 'COMPETITOR', // REQUIRED
'values' => ['<string>', ...], // REQUIRED
],
// ...
],
'maxResults' => <integer>,
'nextToken' => '<string>',
'sport' => 'basketball|american-football', // REQUIRED
'startDate' => '<string>', // REQUIRED
]);
Parameter Details
Members
- endDate
-
- Type: string
The last day of the search window, in UTC. The search includes fixtures that are scheduled on this day. Specify the date in ISO 8601 format, as
YYYY-MM-DD.If you omit this parameter, Elemental Inference searches only the day that you specified in startDate. The window from startDate through endDate must not exceed seven days.
- filters
-
- Type: Array of SearchFilter structures
An array of filters that narrow the results. Each filter applies to one dimension of a fixture, such as the competitor. You can specify up to 10 filters.
A fixture must satisfy every filter in the array in order to appear in the results. Within one filter, a fixture must match at least one of the values.
- maxResults
-
- Type: int
The maximum number of fixtures to return for each API request.
The service might return fewer fixtures than the maxResults value. When more fixtures match the search, the response also includes a nextToken value that you can use to fetch the next batch of results.
- nextToken
-
- Type: string
The token that identifies the batch of results that you want to see.
For example, you submit a SearchFixtures request with maxResults set at 5. The service returns the first batch of results (up to 5) and a nextToken value. To see the next batch of results, you submit the SearchFixtures request a second time, with the same search criteria, and specify the nextToken value.
- sport
-
- Required: Yes
- Type: string
The sport to search for fixtures. Valid values: basketball (search for basketball fixtures), american-football (search for american-football fixtures).
- startDate
-
- Required: Yes
- Type: string
The first day of the search window, in UTC. The search includes fixtures that are scheduled on this day.
Specify the date in ISO 8601 format, as
YYYY-MM-DD. For example, 2026-03-14.
Result Syntax
[
'fixtures' => [
[
'competitors' => [
[
'isHome' => true || false,
'name' => '<string>',
],
// ...
],
'fixtureGroup' => '<string>',
'fixtureId' => '<string>',
'name' => '<string>',
'scheduledStart' => <DateTime>,
'status' => '<string>',
],
// ...
],
'nextToken' => '<string>',
]
Result Details
Members
- fixtures
-
- Required: Yes
- Type: Array of FixtureSummary structures
An array of FixtureSummary objects, one for each fixture that matches the search. The array is empty if no fixtures match.
- nextToken
-
- Type: string
The token that identifies the next batch of results. To see the next batch, submit the SearchFixtures request again, with the same search criteria, and specify this value in nextToken.
This parameter is absent when there are no more results to return.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- ServiceUnavailableException:
The service is temporarily unable to handle the request. Retry the request. If the problem persists, contact AWS Support.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- GatewayTimedOutException:
The request timed out before the service returned a response. This is a temporary condition. Retry the request. If the problem persists, contact AWS Support.
TagResource
$result = $client->tagResource([/* ... */]); $promise = $client->tagResourceAsync([/* ... */]);
Associates the specified tags to the resource identified by the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.
Parameter Syntax
$result = $client->tagResource([
'resourceArn' => '<string>', // REQUIRED
'tags' => ['<string>', ...], // REQUIRED
]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The ARN of the resource where you want to add tags.
- tags
-
- Required: Yes
- Type: Associative array of custom strings keys (TagKey) to strings
A list of tags to add to the resource.
Result Syntax
[]
Result Details
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
UntagResource
$result = $client->untagResource([/* ... */]); $promise = $client->untagResourceAsync([/* ... */]);
Deletes specified tags from the specified resource in the current region.
Parameter Syntax
$result = $client->untagResource([
'resourceArn' => '<string>', // REQUIRED
'tagKeys' => ['<string>', ...], // REQUIRED
]);
Parameter Details
Members
- resourceArn
-
- Required: Yes
- Type: string
The ARN of the resource where you want to delete one or more tags.
- tagKeys
-
- Required: Yes
- Type: Array of strings
The keys of the tags to delete.
Result Syntax
[]
Result Details
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
UpdateDictionary
$result = $client->updateDictionary([/* ... */]); $promise = $client->updateDictionaryAsync([/* ... */]);
Updates the specified dictionary.
Parameter Syntax
$result = $client->updateDictionary([
'entries' => '<string>',
'id' => '<string>', // REQUIRED
'language' => 'eng|fra|ita|deu|spa|por|ara',
'name' => '<string>',
]);
Parameter Details
Members
- entries
-
- Type: string
New dictionary entries. If not specified, the entries are not changed.
- id
-
- Required: Yes
- Type: string
The ID of the dictionary to update.
- language
-
- Type: string
A new language for the dictionary. If not specified, the language is not changed.
- name
-
- Type: string
A new name for the dictionary. If not specified, the name is not changed.
Result Syntax
[
'arn' => '<string>',
'id' => '<string>',
'language' => 'eng|fra|ita|deu|spa|por|ara',
'name' => '<string>',
'references' => ['<string>', ...],
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
'tags' => ['<string>', ...],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the dictionary.
- id
-
- Required: Yes
- Type: string
The ID of the dictionary.
- language
-
- Required: Yes
- Type: string
The updated or original language of the dictionary.
- name
-
- Required: Yes
- Type: string
The updated or original name of the dictionary.
- references
-
- Type: Array of strings
A list of feed IDs that reference this dictionary.
- status
-
- Required: Yes
- Type: string
The current status of the dictionary.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Any tags associated with the dictionary.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
UpdateFeed
$result = $client->updateFeed([/* ... */]); $promise = $client->updateFeedAsync([/* ... */]);
Updates the name and/or outputs in a feed.
UpdateFeed is a PUT operation, which means that the payload that you specify completely overwrites the existing payload.
This means that if you want to touch the array of outputs, you must pass in the full new list. So you must omit outputs you want to delete, and include outputs you want to add or modify.
If you want to patch the array of outputs to make selective additions, use AssociateFeed.
Parameter Syntax
$result = $client->updateFeed([
'accessRoleArn' => '<string>',
'id' => '<string>', // REQUIRED
'name' => '<string>', // REQUIRED
'outputs' => [ // REQUIRED
[
'description' => '<string>',
'fromAssociation' => true || false,
'name' => '<string>', // REQUIRED
'outputConfig' => [ // REQUIRED
'clipping' => [
'callbackMetadata' => '<string>',
'dataSourceConfiguration' => [
'fixtureId' => '<string>', // REQUIRED
],
],
'contextualMetadata' => [
'customQuestions' => [
'scene' => [
'questionSetId' => '<string>', // REQUIRED
'version' => '<string>', // REQUIRED
],
'shot' => [
'questionSetId' => '<string>', // REQUIRED
'version' => '<string>', // REQUIRED
],
],
'extendedAnalysis' => 'ENABLED|DISABLED',
'summaryGeneration' => 'ENABLED|DISABLED',
],
'cropping' => [
'templateGroups' => [
[
'name' => '<string>', // REQUIRED
'templateUris' => ['<string>', ...], // REQUIRED
],
// ...
],
],
'function' => [
'clippingSettings' => [
'outputName' => '<string>', // REQUIRED
],
'contextualMetadataSettings' => [
'outputName' => '<string>', // REQUIRED
],
'frameSettings' => [
'frameSampling' => [ // REQUIRED
'count' => <integer>,
'mode' => 'FIRST|UNIFORM|LAST', // REQUIRED
],
'frameSize' => [
'heightPixels' => <integer>, // REQUIRED
'widthPixels' => <integer>, // REQUIRED
],
],
'functionArn' => '<string>', // REQUIRED
'subtitlingSettings' => [
'outputName' => '<string>', // REQUIRED
],
'trigger' => [ // REQUIRED
'fixedInterval' => [
'intervalSeconds' => <integer>, // REQUIRED
],
'perClip' => [
],
'perScene' => [
],
'perShot' => [
],
],
],
'subtitling' => [
'aspectRatio' => [
'height' => <integer>, // REQUIRED
'width' => <integer>, // REQUIRED
],
'dictionary' => '<string>',
'language' => 'eng|eng-au|eng-gb|eng-us|fra|ita|deu|spa|por|ara', // REQUIRED
'profanityFilter' => 'DISABLED|CENSOR|DROP',
],
],
'status' => 'ENABLED|DISABLED', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- accessRoleArn
-
- Type: string
The ARN of an IAM role that Elemental Inference assumes to access resources in your account on your behalf. You can specify the existing role (to leave it unchanged) or a new role. You specify one access role for each feed.
- id
-
- Required: Yes
- Type: string
The ID of the feed to update.
- name
-
- Required: Yes
- Type: string
Required. You can specify the existing name (to leave it unchanged) or a new name.
- outputs
-
- Required: Yes
- Type: Array of UpdateOutput structures
Required. You can specify the existing array of outputs (to leave outputs unchanged) or you can specify a new array.
Result Syntax
[
'accessRoleArn' => '<string>',
'arn' => '<string>',
'association' => [
'associatedResourceName' => '<string>',
],
'dataEndpoints' => ['<string>', ...],
'id' => '<string>',
'name' => '<string>',
'outputs' => [
[
'description' => '<string>',
'fromAssociation' => true || false,
'name' => '<string>',
'outputConfig' => [
'clipping' => [
'callbackMetadata' => '<string>',
'dataSourceConfiguration' => [
'fixtureId' => '<string>',
],
],
'contextualMetadata' => [
'customQuestions' => [
'scene' => [
'questionSetId' => '<string>',
'version' => '<string>',
],
'shot' => [
'questionSetId' => '<string>',
'version' => '<string>',
],
],
'extendedAnalysis' => 'ENABLED|DISABLED',
'summaryGeneration' => 'ENABLED|DISABLED',
],
'cropping' => [
'templateGroups' => [
[
'name' => '<string>',
'templateUris' => ['<string>', ...],
],
// ...
],
],
'function' => [
'clippingSettings' => [
'outputName' => '<string>',
],
'contextualMetadataSettings' => [
'outputName' => '<string>',
],
'frameSettings' => [
'frameSampling' => [
'count' => <integer>,
'mode' => 'FIRST|UNIFORM|LAST',
],
'frameSize' => [
'heightPixels' => <integer>,
'widthPixels' => <integer>,
],
],
'functionArn' => '<string>',
'subtitlingSettings' => [
'outputName' => '<string>',
],
'trigger' => [
'fixedInterval' => [
'intervalSeconds' => <integer>,
],
'perClip' => [
],
'perScene' => [
],
'perShot' => [
],
],
],
'subtitling' => [
'aspectRatio' => [
'height' => <integer>,
'width' => <integer>,
],
'dictionary' => '<string>',
'language' => 'eng|eng-au|eng-gb|eng-us|fra|ita|deu|spa|por|ara',
'profanityFilter' => 'DISABLED|CENSOR|DROP',
],
],
'status' => 'ENABLED|DISABLED',
],
// ...
],
'status' => 'CREATING|AVAILABLE|ACTIVE|UPDATING|DELETING|DELETED|ARCHIVED',
'tags' => ['<string>', ...],
]
Result Details
Members
- accessRoleArn
-
- Type: string
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role for the feed, after the update. This property is absent if the feed doesn't have an IAM role.
- arn
-
- Required: Yes
- Type: string
The ARN of the feed.
- association
-
- Type: FeedAssociation structure
Information about the resource that is associated with the feed, if any.
- dataEndpoints
-
- Required: Yes
- Type: Array of strings
The data endpoints of the feed.
- id
-
- Required: Yes
- Type: string
The ID of the feed.
- name
-
- Required: Yes
- Type: string
The updated or original name of the feed.
- outputs
-
- Required: Yes
- Type: Array of GetOutput structures
The array of outputs in the feed. You might have left this array unchanged, or you might have changed it.
- status
-
- Required: Yes
- Type: string
The status of the feed.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags associated with the feed.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
- ServiceQuotaExceededException:
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
UpdateFunction
$result = $client->updateFunction([/* ... */]); $promise = $client->updateFunctionAsync([/* ... */]);
Updates a function. Include only the parameters that you want to change; parameters that you don't include aren't affected. Elemental Inference validates the updated expressions in the same way as CreateFunction.
While a feed references the function, you can change only its expressions and its description, and you can set eventBridgeDelivery to DISABLED but not to ENABLED. The request expression must keep referencing the same media context, as reported in contextTypes. Changing an expression changes the behavior of every feed that references the function.
Parameter Syntax
$result = $client->updateFunction([
'description' => '<string>',
'eventBridgeDelivery' => 'ENABLED|DISABLED',
'id' => '<string>', // REQUIRED
'name' => '<string>',
'requestExpression' => '<string>',
'responseExpression' => '<string>',
'target' => [
'bedrock' => [
'api' => 'INVOKE_MODEL', // REQUIRED
'model' => '<string>', // REQUIRED
],
'passthrough' => [
],
],
]);
Parameter Details
Members
- description
-
- Type: string
A new description for the function.
- eventBridgeDelivery
-
- Type: string
Specifies whether Elemental Inference also sends this function's marked results to Amazon EventBridge, as described for CreateFunction. If you omit this parameter, the current value is kept. While a feed references the function, you can change this value to DISABLED, but not to ENABLED.
- id
-
- Required: Yes
- Type: string
The ID of the function.
- name
-
- Type: string
A new name for the function. You can't change the name while the function is referenced by a feed.
- requestExpression
-
- Type: string
A new request expression for the function. Elemental Inference derives contextTypes again from the new expression. While a feed references the function, the new expression must reference the same media context as the current one.
- responseExpression
-
- Type: string
A new response expression for the function. To remove the response expression, specify an empty string. A function with a Bedrock target and eventBridgeDelivery set to ENABLED must keep a response expression.
- target
-
- Type: FunctionTarget structure
A new target for the function. You can't change the target while the function is referenced by a feed.
Result Syntax
[
'arn' => '<string>',
'contextTypes' => ['<string>', ...],
'description' => '<string>',
'eventBridgeDelivery' => 'ENABLED|DISABLED',
'id' => '<string>',
'name' => '<string>',
'references' => ['<string>', ...],
'requestExpression' => '<string>',
'responseExpression' => '<string>',
'status' => 'CREATING|AVAILABLE|REFERENCED|DELETING|DELETED',
'tags' => ['<string>', ...],
'target' => [
'bedrock' => [
'api' => 'INVOKE_MODEL',
'model' => '<string>',
],
'passthrough' => [
],
],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the function.
- contextTypes
-
- Type: Array of strings
The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
- description
-
- Type: string
The description of the function.
- eventBridgeDelivery
-
- Type: string
Indicates whether Elemental Inference also sends this function's results to Amazon EventBridge. With ENABLED, each result that is a JSON object with a top-level
eventBridgefield set totrueis also sent as a Function Metadata Generated event to the default event bus in your account. - id
-
- Required: Yes
- Type: string
The ID of the function.
- name
-
- Required: Yes
- Type: string
The name of the function.
- references
-
- Type: Array of strings
The IDs of the feeds that have a function output, enabled or disabled, that references this function. While this list isn't empty, the function can't be deleted, and its name and target can't be changed.
- requestExpression
-
- Required: Yes
- Type: string
The JSONata expression that builds the request. Elemental Inference evaluates it against the media object of the feed, which holds the media and metadata that the function asked for.
- responseExpression
-
- Type: string
The JSONata expression that selects what to store. Elemental Inference evaluates it against the result as its root: the model response for a Bedrock target, or the output of the request expression for a passthrough target. If a function has no response expression, Elemental Inference stores the entire result.
- status
-
- Required: Yes
- Type: string
The status of the function.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
The tags associated with the function.
- target
-
- Required: Yes
- Type: FunctionTarget structure
The destination for the request that the function builds.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
UpdateQuestionSet
$result = $client->updateQuestionSet([/* ... */]); $promise = $client->updateQuestionSetAsync([/* ... */]);
Updates the DRAFT version of the specified question set. UpdateQuestionSet doesn't create a version and doesn't change published versions. To publish the updated DRAFT as a new version, use CreateQuestionSetVersion.
UpdateQuestionSet replaces questions one type at a time. For each of yesNo, yesNoPerOption, and chooseOne: if you omit the array, DRAFT keeps its questions of that type. If you include the array, it replaces all the questions of that type in DRAFT. If you include an empty array, DRAFT no longer has questions of that type. The updated DRAFT must follow the same rules as in CreateQuestionSet, and Elemental Inference applies those rules to the questions that DRAFT keeps as well as to the questions in the request.
Feeds that reference the DRAFT version use the updated questions. To make sure that the questions for a feed don't change, reference a published version instead.
Parameter Syntax
$result = $client->updateQuestionSet([
'chooseOne' => [
[
'name' => '<string>', // REQUIRED
'options' => [ // REQUIRED
[
'name' => '<string>', // REQUIRED
'text' => '<string>', // REQUIRED
],
// ...
],
'question' => '<string>', // REQUIRED
],
// ...
],
'id' => '<string>', // REQUIRED
'name' => '<string>',
'yesNo' => [
[
'name' => '<string>', // REQUIRED
'question' => '<string>', // REQUIRED
],
// ...
],
'yesNoPerOption' => [
[
'name' => '<string>', // REQUIRED
'options' => [ // REQUIRED
[
'name' => '<string>', // REQUIRED
'text' => '<string>', // REQUIRED
],
// ...
],
'question' => '<string>', // REQUIRED
],
// ...
],
]);
Parameter Details
Members
- chooseOne
-
- Type: Array of ChooseOneQuestion structures
An array of questions that Elemental Inference answers by choosing one of their options, to replace all the chooseOne questions in DRAFT. You can specify up to 10 chooseOne questions. If not specified, the chooseOne questions are not changed. To remove all the chooseOne questions, specify an empty array.
- id
-
- Required: Yes
- Type: string
The ID of the question set to update.
- name
-
- Type: string
A new name for the question set. If not specified, the name is not changed.
- yesNo
-
- Type: Array of YesNoQuestion structures
An array of questions that Elemental Inference answers with yes or no, to replace all the yesNo questions in DRAFT. You can specify up to 50 yesNo questions. If not specified, the yesNo questions are not changed. To remove all the yesNo questions, specify an empty array.
- yesNoPerOption
-
- Type: Array of YesNoPerOptionQuestion structures
An array of questions that you ask about each of their options, to replace all the yesNoPerOption questions in DRAFT. You can specify up to 10 yesNoPerOption questions. If not specified, the yesNoPerOption questions are not changed. To remove all the yesNoPerOption questions, specify an empty array.
Result Syntax
[
'arn' => '<string>',
'chooseOne' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
'description' => '<string>',
'id' => '<string>',
'latestVersion' => '<string>',
'name' => '<string>',
'references' => ['<string>', ...],
'sha256' => '<string>',
'tags' => ['<string>', ...],
'version' => '<string>',
'yesNo' => [
[
'name' => '<string>',
'question' => '<string>',
],
// ...
],
'yesNoPerOption' => [
[
'name' => '<string>',
'options' => [
[
'name' => '<string>',
'text' => '<string>',
],
// ...
],
'question' => '<string>',
],
// ...
],
]
Result Details
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the question set.
- chooseOne
-
- Type: Array of ChooseOneQuestion structures
The chooseOne questions in this version. Elemental Inference doesn't return this property if the version has no chooseOne questions.
- description
-
- Type: string
The description of the version. Elemental Inference doesn't return this property for UpdateQuestionSet, because the DRAFT version has no description.
- id
-
- Required: Yes
- Type: string
The ID of the question set.
- latestVersion
-
- Type: string
The number of the highest version that you have published for this question set, even if you have since deleted that version. Elemental Inference doesn't return this property if you haven't published a version.
- name
-
- Required: Yes
- Type: string
The updated or original name of the question set.
- references
-
- Type: Array of strings
A list of feed IDs that reference the DRAFT version of the question set.
- sha256
-
- Required: Yes
- Type: string
The SHA-256 hash of the DRAFT version after the update, as 64 lowercase hexadecimal characters. The hash covers the name of the question set and its questions, so it changes when you rename the question set. You can specify this value in a CreateQuestionSetVersion request, so that Elemental Inference publishes DRAFT only if it hasn't changed since this update.
- tags
-
- Type: Associative array of custom strings keys (TagKey) to strings
Any tags associated with the question set.
- version
-
- Required: Yes
- Type: string
The version that this response describes. For UpdateQuestionSet, the version is always DRAFT.
- yesNo
-
- Type: Array of YesNoQuestion structures
The yesNo questions in this version. Elemental Inference doesn't return this property if the version has no yesNo questions.
- yesNoPerOption
-
- Type: Array of YesNoPerOptionQuestion structures
The yesNoPerOption questions in this version. Elemental Inference doesn't return this property if the version has no yesNoPerOption questions.
Errors
- ValidationException:
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
- ResourceNotFoundException:
The resource specified in the action doesn't exist.
- InternalServerErrorException:
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
- AccessDeniedException:
You do not have sufficient access to perform this action.
- TooManyRequestException:
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
- ConflictException:
The request could not be completed due to a conflict.
Shapes
AccessDeniedException
Description
You do not have sufficient access to perform this action.
Members
- message
-
- Required: Yes
- Type: string
AspectRatio
Description
The width and height of the output video. Used in SubtitlingConfig to determine subtitle layout.
Members
- height
-
- Required: Yes
- Type: int
The height component of the aspect ratio (for example, 9 in a 16:9 ratio).
- width
-
- Required: Yes
- Type: int
The width component of the aspect ratio (for example, 16 in a 16:9 ratio).
BedrockFunctionTarget
Description
An Amazon Bedrock model to invoke. Elemental Inference invokes the model in your account by assuming the feed's access role, so a feed that runs this function must specify an accessRoleArn. The invocation is subject to your Amazon Bedrock quotas and appears on your bill.
Members
- api
-
- Required: Yes
- Type: string
The Amazon Bedrock API to call. The only valid value is INVOKE_MODEL.
- model
-
- Required: Yes
- Type: string
The model to invoke. Specify one of the following:
-
A model ID.
-
An inference profile ID.
-
The ARN of a custom model.
-
The ARN of a provisioned model.
Elemental Inference invokes the model in the Region of the feed. To use a model in other Regions, specify a cross-Region inference profile ID. A custom or provisioned model must be in the Region of the feed.
The request expression must produce a request body that this model accepts, and the model must accept the kind of media that the request expression references. For example, a text-only model can't accept a request that references media.frames.
ChooseOneQuestion
Description
A question that you ask Elemental Inference, which answers by choosing one of its options. You specify it in the chooseOne array of a question set.
Members
- name
-
- Required: Yes
- Type: string
A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
- options
-
- Required: Yes
- Type: Array of QuestionOption structures
The options that Elemental Inference chooses from. You can specify from 2 to 26 options. The question counts as one item toward the limit of 100 scored items in a version, regardless of how many options it has.
- question
-
- Required: Yes
- Type: string
The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters:
. , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).
ClipTrigger
Description
The perClip trigger, which runs the function each time an event clipping output reports events. Events that the output reports together share one run, and media.clip.events contains all of them. To choose this trigger, set perClip to an empty object.
Specify clippingSettings to name the event clipping output that reports the events. You can't use this trigger with a function that references media.transcript or media.contextual.
Members
ClippingConfig
Description
A type of OutputConfig, used when the output in a feed is for the clip feature.
Members
- callbackMetadata
-
- Type: string
A string that you want Elemental Inference to always include in the event clipping metadata for this output. The string might identify the sports event in the source media, for example.
- dataSourceConfiguration
-
- Type: DataSourceConfiguration structure
The data source to map onto this clipping output. This parameter is optional. When you include this parameter, Elemental Inference reads the event data for the fixture that you specify, and includes that data in the event clipping metadata for this output.
If you omit this parameter, Elemental Inference doesn't map a data source onto this output.
ClippingSettings
Description
The event clipping output on this feed that provides events for a perClip trigger and media.clip for a function. Specify this structure for a perClip trigger, and for a function that references media.clip on a fixedInterval trigger.
If the function output is ENABLED, the output that you name must also be ENABLED.
Members
- outputName
-
- Required: Yes
- Type: string
The name of an ENABLED event clipping output on this feed.
Competitor
Description
Contains information about one competitor in a fixture. It is used in the FixtureSummary that is in the SearchFixtures response.
Members
- isHome
-
- Type: boolean
Specifies whether this competitor is the home side in the fixture. If true, this competitor is the home side. If false, this competitor is the away side.
- name
-
- Type: string
The name of the competitor, as provided by the data source.
ConflictException
Description
The request could not be completed due to a conflict.
Members
- message
-
- Required: Yes
- Type: string
ContextualMetadataConfig
Description
The output configuration settings for the contextual metadata feature. Use this structure when the feed output generates metadata that describes the media content.
Members
- customQuestions
-
- Type: CustomQuestionsConfig structure
The question sets that you ask Elemental Inference about each shot, each scene, or both, in this output.
If you specify customQuestions, you must also set extendedAnalysis to DISABLED. If you omit extendedAnalysis, it defaults to ENABLED, and the request fails.
While a feed references a version of a question set, you can't delete that version or the question set.
- extendedAnalysis
-
- Type: string
Specifies whether Elemental Inference generates extended analysis of the media content for this output. Extended analysis identifies the people, environments, brands, and on-screen text in the media content. This setting is independent of
summaryGeneration.Valid values:
-
ENABLED (default) – Elemental Inference populates the people, environments, brands, and on-screen text fields.
-
DISABLED – Elemental Inference doesn't populate the people, environments, brands, and on-screen text fields.
If you specify
customQuestions, you must set this property to DISABLED. - summaryGeneration
-
- Type: string
Specifies whether Elemental Inference generates a descriptive summary of the media content for this output, along with the objects and actions that it detects. This setting is independent of
extendedAnalysis.Valid values:
-
ENABLED (default) – Elemental Inference populates the summary, objects, and actions fields, along with the IAB taxonomy and GARM suitability classifications.
-
DISABLED – Elemental Inference doesn't populate the summary, objects, and actions fields.
ContextualMetadataSettings
Description
The contextual metadata output on this feed that provides scenes for a perScene trigger and media.contextual for a function. Specify this structure for a perScene trigger, and for a function that references media.contextual on a perShot trigger.
If the function output is ENABLED, the output that you name must also be ENABLED.
Members
- outputName
-
- Required: Yes
- Type: string
The name of an ENABLED contextual metadata output on this feed.
CreateOutput
Description
Contains configuration information about one output in a feed. It is used in the AssociateFeed and the CreateFeed actions.
Members
- description
-
- Type: string
A description for the output.
- name
-
- Required: Yes
- Type: string
A name for the output.
- outputConfig
-
- Required: Yes
- Type: OutputConfig structure
A typed property for an output in a feed. It identifies the action for Elemental Inference to perform. It also provides a repository for the results of that action. For example, CroppingConfig output will contain the metadata for the crop feature.
- status
-
- Required: Yes
- Type: string
The status to assign to the output.
CroppingConfig
Description
A type of OutputConfig, used when the output in a feed is for the crop feature.
Members
- templateGroups
-
- Type: Array of TemplateGroup structures
An array of template groups for the crop output. Each template group provides the graphics-compositing templates that Elemental Inference applies to the cropped video. You can specify from 1 to 4 template groups.
CustomQuestionsConfig
Description
The question sets that you ask Elemental Inference about the media in a contextual metadata output. You must specify at least one of shot or scene. They can reference the same version of the same question set.
Members
- scene
-
- Type: QuestionSetReference structure
The version of a question set to ask Elemental Inference about each scene.
- shot
-
- Type: QuestionSetReference structure
The version of a question set to ask Elemental Inference about each shot.
DataSourceConfiguration
Description
Contains the data source configuration for a clipping output. It identifies the fixture whose event data Elemental Inference maps onto the clipping metadata. It is used in the dataSourceConfiguration property of a ClippingConfig.
Members
- fixtureId
-
- Required: Yes
- Type: 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.
DictionarySummary
Description
Contains summary information about a dictionary. Used in the ListDictionaries response.
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the dictionary.
- id
-
- Required: Yes
- Type: string
The ID of the dictionary.
- language
-
- Required: Yes
- Type: string
The language of the dictionary.
- name
-
- Required: Yes
- Type: string
The name of the dictionary.
- status
-
- Required: Yes
- Type: string
The status of the dictionary.
FeedAssociation
Description
Contains information about the resource that is associated with a feed. It is used in the FeedSummary that is used in the response of a ListFeeds action.
Members
- associatedResourceName
-
- Required: Yes
- Type: string
The name of the associated resource.
FeedSummary
Description
Contains configuration information about a feed. It is used in the ListFeeds response.
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the feed.
- association
-
- Type: FeedAssociation structure
The resource, if any, associated with the feed.
- id
-
- Required: Yes
- Type: string
The ID of the feed.
- name
-
- Required: Yes
- Type: string
The name of the feed
- status
-
- Required: Yes
- Type: string
The status of the feed.
FixedIntervalTrigger
Description
The settings of the fixedInterval trigger, which runs the function once for every intervalSeconds of content. A function that references media.transcript must use this trigger. You can't use this trigger with a function that references media.contextual.
If the function references media.transcript, specify subtitlingSettings. If the function references media.clip, specify clippingSettings. Each run then receives the events that the event clipping output reported during the interval, in media.clip.events.
Members
- intervalSeconds
-
- Required: Yes
- Type: int
The amount of content, in seconds, between runs of the function. Valid range: 1 to 60. For a function with eventBridgeDelivery set to ENABLED, the minimum is 4.
FixedModeScheduleActionStartSettings
Description
Sets the time at which a schedule action runs once. This is a type of ScheduleActionStartConfiguration.
Members
- scheduledAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
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.
FixtureSummary
Description
Contains information about one fixture. It is used in the SearchFixtures response.
Elemental Inference relays the information in this structure from the data source, so that you can identify the fixture that matches your source media.
Members
- competitors
-
- Required: Yes
- Type: Array of Competitor structures
An array of the competitors (the teams or individuals) in the fixture.
- fixtureGroup
-
- Type: string
The group that the fixture belongs to, such as the competition, league, or tournament. The data source doesn't provide this information for every fixture.
- fixtureId
-
- Required: Yes
- Type: string
The ID of the fixture. Specify this ID in the clipping output of a feed, to identify the fixture whose event data you want Elemental Inference to map onto the clipping metadata.
- name
-
- Required: Yes
- Type: string
The name of the fixture, as provided by the data source. For example, the names of the two competing teams.
- scheduledStart
-
- Type: timestamp (string|DateTime or anything parsable by strtotime)
The scheduled start time of the fixture, as provided by the data source. The actual start time might differ.
- status
-
- Required: Yes
- Type: string
The status of the fixture in its lifecycle, as provided by the data source. For example, Scheduled or Completed.
FrameSamplingStrategy
Description
Specifies how Elemental Inference chooses frames from the media of each run, and how many frames it chooses. The media of a run is the interval, shot, scene, or clips that the run covers.
Members
- count
-
- Type: int
The number of frames to send on each run. Valid range: 1 to 64. The default is 1. Each frame adds to the size of the model request and to what the model charges for it.
- mode
-
- Required: Yes
- Type: string
Which frames of the window to send: FIRST (the first frames), UNIFORM (frames spread evenly across the window), or LAST (the last frames).
FrameSettings
Description
The frames that a function receives in media.frames on each run: which frames, how many, and at what size. Elemental Inference applies these settings only to a function that references media.frames.
When you add or change the function output, Elemental Inference estimates the size of the frames and rejects settings whose frames won't fit in one model request. To send more frames in each request, specify a smaller frameSize.
Members
- frameSampling
-
- Required: Yes
- Type: FrameSamplingStrategy structure
The method for choosing which frames to send.
- frameSize
-
- Type: FrameSize structure
The size to resize each frame to. If you omit this structure, frames keep their source size. Smaller frames reduce the size of the model request.
FrameSize
Description
The dimensions, in pixels, of each frame that a function sends. Elemental Inference resizes each frame to exactly this width and height.
Members
- heightPixels
-
- Required: Yes
- Type: int
The height of each frame, in pixels. Valid range: 1 to 720.
- widthPixels
-
- Required: Yes
- Type: int
The width of each frame, in pixels. Valid range: 1 to 1280.
FunctionConfig
Description
The output configuration settings for a function. Use this structure to run a function on this feed. The name of the output is the name that you pass to GetMetadata to read the results.
Include the settings that the function's media context and trigger require. Elemental Inference ignores settings that neither uses. It also rejects settings whose frames are estimated to exceed the size of a single model request.
A feed that has an enabled function output must also have an enabled cropping, clipping, subtitling, or contextual metadata output. A feed that runs a function with a Bedrock target must specify an accessRoleArn.
Members
- clippingSettings
-
- Type: ClippingSettings structure
The event clipping output on this feed to read clips from. Required for a perClip trigger, and for a function that references media.clip.
- contextualMetadataSettings
-
- Type: ContextualMetadataSettings structure
The contextual metadata output on this feed to read scenes and classifications from. Required for a perScene trigger, and for a function that references media.contextual on a perShot trigger.
- frameSettings
-
- Type: FrameSettings structure
The frames to send on each run: how many, which ones, and at what size. Applies to a function that references media.frames. If you omit this structure, Elemental Inference sends the first frame of the window, at its source size.
- functionArn
-
- Required: Yes
- Type: string
The ARN of the function to run. The function must exist in the same account and the same Region as the feed.
- subtitlingSettings
-
- Type: SubtitlingSettings structure
The smart subtitles output on this feed to read the transcript from. Required for a function that references media.transcript.
- trigger
-
- Required: Yes
- Type: Trigger structure
Determines when the function runs.
FunctionSummary
Description
Contains identifying and configuration details for a function, including its name, target, status, and derived media context.
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the function.
- contextTypes
-
- Type: Array of strings
The kinds of media context that this function uses. Elemental Inference derives this field from the media paths that the request expression references; you can't set it. An empty list means that the expression references no media, so Elemental Inference supplies none at run time.
- description
-
- Type: string
The description of the function.
- id
-
- Required: Yes
- Type: string
The ID of the function.
- name
-
- Required: Yes
- Type: string
The name of the function.
- status
-
- Required: Yes
- Type: string
The status of the function.
- target
-
- Type: FunctionTarget structure
The destination for the request that the function builds.
FunctionTarget
Description
The destination for the request that a function builds. Specify exactly one member.
Members
- bedrock
-
- Type: BedrockFunctionTarget structure
Send the request to an Amazon Bedrock model.
- passthrough
-
- Type: PassthroughFunctionTarget structure
Send the request nowhere. Use this target to reshape the metadata that Elemental Inference already produces, with no model invocation and no model charges.
GatewayTimedOutException
Description
The request timed out before the service returned a response. This is a temporary condition. Retry the request. If the problem persists, contact AWS Support.
Members
- message
-
- Required: Yes
- Type: string
GetOutput
Description
Contains configuration information about one output in a feed. It is used in the GetFeed response.
Members
- description
-
- Type: string
The description of the output.
- fromAssociation
-
- Type: boolean
True means that the output was originally created in the feed using AssociateFeed. False means it was created using CreateFeed or UpdateFeed.
You will need this value if you use UpdateFeed to modify the list of outputs in the feed.
- name
-
- Required: Yes
- Type: string
The name of the output.
- outputConfig
-
- Required: Yes
- Type: OutputConfig structure
A typed property for an output in a feed. It identifies the action for Elemental Inference to perform. It also provides a repository for the results of that action. For example, CroppingConfig output will contain the metadata for the crop feature.
- status
-
- Required: Yes
- Type: string
The status of the output.
InternalServerErrorException
Description
An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
Members
- message
-
- Required: Yes
- Type: string
OutputConfig
Description
Contains one typed output. It is used in the CreateOutput, GetOutput, and Update Output structures.
Members
- clipping
-
- Type: ClippingConfig structure
The output config type that applies to the clipping feature.
- contextualMetadata
-
- Type: ContextualMetadataConfig structure
The output config type that applies to the contextual metadata feature.
- cropping
-
- Type: CroppingConfig structure
The output config type that applies to the cropping feature.
- function
-
- Type: FunctionConfig structure
The output config type that applies to a function.
- subtitling
-
- Type: SubtitlingConfig structure
The output config type that applies to the smart subtitling feature.
PassthroughFunctionTarget
Description
A target that invokes nothing. Elemental Inference evaluates your request expression, then evaluates your response expression against that result. If the function has no response expression, Elemental Inference stores the result of the request expression.
A passthrough function can't reference media.frames. It also needs no access role on the feed.
Members
QuestionOption
Description
An option in a yesNoPerOption question or a chooseOne question.
Members
- name
-
- Required: Yes
- Type: string
A name for the option. The name must be unique among the options of the question. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
- text
-
- Required: Yes
- Type: string
The text of the option. The text must be unique among the options of the question, ignoring case. The text can be up to 16 bytes, encoded in UTF-8. It can contain the same characters as the text of a question.
QuestionSetReference
Description
Identifies one version of a question set. You specify it in CustomQuestionsConfig.
Members
- questionSetId
-
- Required: Yes
- Type: string
The ID of the question set. The question set must be in your account.
- version
-
- Required: Yes
- Type: string
The version of the question set: DRAFT or the number of a published version. The version must exist.
If you specify DRAFT, the output uses the current DRAFT questions and picks up changes that you make later by using UpdateQuestionSet. To keep the questions for the output fixed, specify a published version.
QuestionSetSummary
Description
Contains summary information about a question set. Used in the ListQuestionSets response.
Members
- arn
-
- Required: Yes
- Type: string
The ARN of the question set.
- id
-
- Required: Yes
- Type: string
The ID of the question set.
- latestVersion
-
- Type: string
The number of the highest version that you have published for this question set, even if you have since deleted that version. Elemental Inference doesn't return this property if you haven't published a version.
- name
-
- Required: Yes
- Type: string
The name of the question set.
QuestionSetVersionSummary
Description
Contains summary information about one version of a question set. Used in the ListQuestionSetVersions response.
Members
- description
-
- Type: string
The description that you specified when you published this version. Elemental Inference doesn't return this property for DRAFT, or for a version that you published without a description.
- lastModifiedAt
-
- Required: Yes
- Type: timestamp (string|DateTime or anything parsable by strtotime)
For DRAFT, the time when you created the question set or last updated DRAFT. For a published version, the time when you published it.
- sha256
-
- Required: Yes
- Type: string
The SHA-256 hash of this version, as 64 lowercase hexadecimal characters. The hash covers the name of the question set and its questions at this version.
- version
-
- Required: Yes
- Type: string
The version: DRAFT or the number of a published version.
RemoveClippingDataSourceConfiguration
Description
Removes the game from an event clipping output at the action's scheduled time. This is a type of ScheduleActionOperation, and the output must be an event clipping output.
Members
- outputName
-
- Required: Yes
- Type: string
The name of the output that you want to remove the game from.
ResourceNotFoundException
Description
The resource specified in the action doesn't exist.
Members
- message
-
- Required: Yes
- Type: string
SceneTrigger
Description
The perScene trigger, which runs the function once for each scene that a contextual metadata output reports. The function runs after the scene ends, with the media of that scene. To choose this trigger, set perScene to an empty object.
Specify contextualMetadataSettings to name the contextual metadata output that reports the scenes. You can't use this trigger with a function that references media.transcript or media.clip.
Members
ScheduleAction
Description
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.
Members
- actionName
-
- Required: Yes
- Type: string
The name of the schedule action. The name is unique within the feed.
- error
-
- Type: ScheduleActionError structure
A description of why the action failed. Elemental Inference returns this property only when the status is FAILED.
- operations
-
- Required: Yes
- Type: Array of ScheduleActionOperation structures
The configuration changes that the action makes to the feed.
- startConfiguration
-
- Required: Yes
- Type: ScheduleActionStartConfiguration structure
Specifies when the action runs.
- status
-
- Required: Yes
- Type: 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.
ScheduleActionError
Description
Describes the cause of a schedule action failure, including the failure type and a description of what went wrong.
Members
- errorCode
-
- Required: Yes
- Type: 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
-
- Required: Yes
- Type: string
A description of the failure.
ScheduleActionOperation
Description
Holds one typed configuration change that a schedule action makes to a feed. Each operation must contain exactly one property.
Members
- removeClippingDataSourceConfiguration
-
- Type: RemoveClippingDataSourceConfiguration structure
The operation type that removes the game from an event clipping output.
- updateClippingDataSourceConfiguration
-
- Type: UpdateClippingDataSourceConfiguration structure
The operation type that attaches a game to an event clipping output.
- updateOutputStatus
-
- Type: UpdateOutputStatus structure
The operation type that enables or disables an output.
ScheduleActionStartConfiguration
Description
Holds the typed start settings that determine when a schedule action runs. Currently, only fixed mode is supported.
Members
- fixedModeScheduleActionStartSettings
-
- Type: FixedModeScheduleActionStartSettings structure
The start settings type for an action that runs once, at a fixed time.
SearchFilter
Description
A filter for a fixture search. It is used in the filters array of a SearchFixtures request.
Members
- name
-
- Required: Yes
- Type: string
The dimension of the fixture to filter on. Valid values: COMPETITOR.
- values
-
- Required: Yes
- Type: Array of strings
An array of values to match in the dimension that you specified in name. You can specify up to 10 values. A fixture appears in the results if it matches at least one of these values.
ServiceQuotaExceededException
Description
The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
Members
- message
-
- Required: Yes
- Type: string
ServiceUnavailableException
Description
The service is temporarily unable to handle the request. Retry the request. If the problem persists, contact AWS Support.
Members
- message
-
- Required: Yes
- Type: string
ShotTrigger
Description
The perShot trigger, which runs the function once for each shot that Elemental Inference detects in the video. The function runs after the shot ends, with the media of that shot. To choose this trigger, set perShot to an empty object. The feed must have a video input.
You can't use this trigger with a function that references media.transcript or media.clip. If the function references media.contextual, specify contextualMetadataSettings.
Members
SubtitlingConfig
Description
A type of OutputConfig, used when the output in a feed is for the smart subtitling feature. Smart subtitling uses automatic speech recognition (ASR) to generate live TTML subtitles from the audio in your source media.
Members
- aspectRatio
-
- Type: AspectRatio structure
The aspect ratio of the output video, specified as width and height integer values. Elemental Inference uses the aspect ratio to determine subtitle layout and line lengths.
- dictionary
-
- Type: string
The ID of a custom dictionary to improve transcription accuracy for domain-specific terminology. Use the CreateDictionary operation to create a dictionary.
- language
-
- Required: Yes
- Type: string
The language of the audio in the source media. Elemental Inference uses this setting to optimize transcription accuracy. Specify the language using an ISO 639-2/T three-letter code, optionally with a region subtag. Supported values:
-
eng – English
-
eng-au – English (Australia)
-
eng-gb – English (United Kingdom)
-
eng-us – English (United States)
-
fra – French
-
ita – Italian
-
deu – German
-
spa – Spanish
-
por – Portuguese
-
ara – Arabic
- profanityFilter
-
- Type: string
Controls how profanity is handled in the generated subtitles. Valid values: DISABLED (no filtering, default), CENSOR (replace profanity with asterisks), DROP (remove profanity from the transcript).
SubtitlingSettings
Description
The smart subtitles output on this feed that a function reads media.transcript from. Specify this structure for a function that references media.transcript. That function must use a fixedInterval trigger.
If the function output is ENABLED, the output that you name must also be ENABLED.
Members
- outputName
-
- Required: Yes
- Type: string
The name of an ENABLED smart subtitles output on this feed.
TemplateGroup
Description
A named set of graphics-compositing templates used by the crop feature, specified in the templateGroups array of a CroppingConfig.
Members
- name
-
- Required: Yes
- Type: string
A name for the template group.
- templateUris
-
- Required: Yes
- Type: Array of strings
An array of Amazon S3 URIs that point to the graphics-compositing templates for this group. You can specify 1 or 2 URIs. Each URI must be in the form
s3://bucket-name/key. Elemental Inference reads these templates using the IAM role that you specify in accessRoleArn.
TooManyRequestException
Description
The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
Members
- message
-
- Required: Yes
- Type: string
Trigger
Description
Determines when a function runs. Specify exactly one member.
Members
- fixedInterval
-
- Type: FixedIntervalTrigger structure
Run the function at a fixed interval of content. This is the only trigger for a function that references media.transcript. Can't be used with a function that references media.contextual.
- perClip
-
- Type: ClipTrigger structure
Run the function once for each clip that an event clipping output detects. Requires clippingSettings. Can't be used with a function that references media.transcript or media.contextual.
- perScene
-
- Type: SceneTrigger structure
Run the function once for each scene boundary that a contextual metadata output reports. Requires contextualMetadataSettings. Can't be used with a function that references media.transcript or media.clip.
- perShot
-
- Type: ShotTrigger structure
Run the function once for each shot that Elemental Inference detects. Can't be used with a function that references media.transcript or media.clip.
UpdateClippingDataSourceConfiguration
Description
Attaches a game to an event clipping output at the action's scheduled time. This is a type of ScheduleActionOperation, and the output must be an event clipping output.
Members
- dataSourceConfiguration
-
- Required: Yes
- Type: DataSourceConfiguration structure
The game that you want to attach to the output.
- outputName
-
- Required: Yes
- Type: string
The name of the output that you want to attach the game to.
UpdateOutput
Description
Contains configuration information about one output in a feed. It is used in the UpdateFeed action.
Members
- description
-
- Type: string
A description of the output.
- fromAssociation
-
- Type: boolean
Elemental Inference originally sets this parameter to True if this output was created by AssociateFeed or to False if this output was created by CreateFeed or UpdateFeed.
You must not change this value. Therefore, use GetFeed to determine the current value. Then in the UpdateFeed request, if the current value is True, include this parameter with a value of True. If it's False, omit the parameter.
- name
-
- Required: Yes
- Type: string
The name of the output.
- outputConfig
-
- Required: Yes
- Type: OutputConfig structure
A typed property for an output in a feed. It identifies the action for Elemental Inference to perform. It also provides a repository for the results of that action. For example, CroppingConfig output will contain the metadata for the crop feature.
- status
-
- Required: Yes
- Type: string
The status of the output.
UpdateOutputStatus
Description
Enables or disables an output at the action's scheduled time. This is a type of ScheduleActionOperation.
Members
- outputName
-
- Required: Yes
- Type: 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
-
- Required: Yes
- Type: string
Specifies whether the output is enabled or disabled after the action runs.
ValidationException
Description
The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
Members
- message
-
- Required: Yes
- Type: string
YesNoPerOptionQuestion
Description
A question that you ask Elemental Inference separately about each of its options. Elemental Inference answers yes or no for each option. Word the question so that it fits any of the options. For example, ask Is this overlay visible? with one option for each overlay. You specify it in the yesNoPerOption array of a question set.
Members
- name
-
- Required: Yes
- Type: string
A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
- options
-
- Required: Yes
- Type: Array of QuestionOption structures
The options that you ask the question about. You can specify from 1 to 50 options. Each option counts as one item toward the limit of 100 scored items in a version.
- question
-
- Required: Yes
- Type: string
The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters:
. , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).
YesNoQuestion
Description
A question that you ask Elemental Inference, which answers with yes or no. You specify it in the yesNo array of a question set.
Members
- name
-
- Required: Yes
- Type: string
A name for the question. The name must be unique among all the questions in the version, across all question types. The name can be up to 64 characters. It must start with a letter or an underscore, and can contain only the letters A-Z and a-z, the digits 0-9, and underscores.
- question
-
- Required: Yes
- Type: string
The text of the question. The text can be up to 256 bytes, encoded in UTF-8. It can contain letters in any language, combining marks, digits, spaces, and the following characters:
. , ? ! ' " ( ) - : ; / & %, plus the curly apostrophe and quotation marks (U+2019, U+201C, and U+201D).