Skip to main content

entitlements

Creates, updates, deletes, gets or lists an entitlements resource.

Overview

Nameentitlements
TypeResource
Idaws.mediaconnect.entitlements

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
data_transfer_subscriber_fee_percentintegerPercentage from 0-100 of the data transfer cost to be billed to the subscriber.
entitlement_arnstringThe ARN of the entitlement.
entitlement_namestringThe name of the entitlement.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_entitlementsselectregionmaxResults, nextTokenDisplays a list of all entitlements that have been granted to this account. This request returns 20 results per page.
revoke_flow_entitlementupdateentitlement_arn, flow_arn, regionRevokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.
grant_flow_entitlementsexecflow_arn, regionGrants entitlements to an existing flow.
update_flow_entitlementexecentitlement_arn, flow_arn, regionUpdates an entitlement. You can change an entitlement's description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.

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
entitlement_arnstringThe Amazon Resource Name (ARN) of the entitlement that you want to update.
flow_arnstringThe ARN of the flow that is associated with the entitlement that you want to update.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per API request. For example, you submit a ListEntitlements request with 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 20 results per page.
nextTokenstringThe token that identifies the batch of results that you want to see. For example, you submit a ListEntitlements 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 ListEntitlements request a second time and specify the NextToken value.

SELECT examples

Displays a list of all entitlements that have been granted to this account. This request returns 20 results per page.

SELECT
data_transfer_subscriber_fee_percent,
entitlement_arn,
entitlement_name
FROM aws.mediaconnect.entitlements
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Revokes an entitlement from a flow. Once an entitlement is revoked, the content becomes unavailable to the subscriber and the associated output is removed.

UPDATE aws.mediaconnect.entitlements
SET
-- No updatable properties
WHERE
entitlement_arn = '{{ entitlement_arn }}' --required
AND flow_arn = '{{ flow_arn }}' --required
AND region = '{{ region }}' --required
RETURNING
entitlement_arn,
flow_arn;

Lifecycle Methods

Grants entitlements to an existing flow.

EXEC aws.mediaconnect.entitlements.grant_flow_entitlements
@flow_arn='{{ flow_arn }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Entitlements": "{{ Entitlements }}"
}'
;