Skip to main content

feeds

Creates, updates, deletes, gets or lists a feeds resource.

Overview

Namefeeds
TypeResource
Idaws.elementalinference.feeds

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the feed. (pattern: <code>[a-z0-9]{19}</code>)
namestringThe name of the feed. (pattern: <code>[a-zA-Z0-9]([a-zA-Z0-9-_]{0,126}[a-zA-Z0-9])?</code>)
arnstringThe ARN of the feed.
associationobjectInformation about the resource that is associated with the feed. It's possible that there is no associated resource. This is not an error.
data_endpointsarrayThe dataEndpoints of the feed.
outputsarrayAn array of the outputs in the feed.
statusstringThe status of the feed. (CREATING, AVAILABLE, ACTIVE, UPDATING, DELETING, DELETED, ARCHIVED)
tagsobjectA list of the tags, if any, for the feed.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_feedselectid, regionRetrieves information about the specified feed.
list_feedsselectregionmaxResults, nextTokenDisplays a list of feeds that belong to this AWS account.
create_feedinsertregion, name, outputsCreates 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.
associate_feedupdateid, region, associatedResourceName, outputsAssociates 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.
update_feedupdateid, region, name, outputsUpdates 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.
disassociate_feedupdateid, region, associatedResourceNameReleases the resource (the source media) that is associated with this feed. The outputs in the feed become DISABLED.
delete_feeddeleteid, regionDeletes 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the feed.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe 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.
nextTokenstringThe 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.

SELECT examples

Retrieves information about the specified feed.

SELECT
id,
name,
arn,
association,
data_endpoints,
outputs,
status,
tags
FROM aws.elementalinference.feeds
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.elementalinference.feeds (
name,
accessRoleArn,
outputs,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ accessRoleArn }}',
'{{ outputs }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
arn,
association,
data_endpoints,
outputs,
status,
tags
;

UPDATE examples

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.

UPDATE aws.elementalinference.feeds
SET
associatedResourceName = '{{ associatedResourceName }}',
outputs = '{{ outputs }}',
dryRun = {{ dryRun }}
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
AND associatedResourceName = '{{ associatedResourceName }}' --required
AND outputs = '{{ outputs }}' --required
RETURNING
id,
arn;

DELETE examples

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.

DELETE FROM aws.elementalinference.feeds
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;