Skip to main content

flow_entitlements

Creates, updates, deletes or gets a flow_entitlement resource or lists flow_entitlements in a region

Overview

Nameflow_entitlements
TypeResource
DescriptionResource schema for AWS::MediaConnect::FlowEntitlement
Idaws.mediaconnect.flow_entitlements

Fields

NameDatatypeDescription
flow_arnstringThe ARN of the flow.
entitlement_arnstringThe ARN of the entitlement.
data_transfer_subscriber_fee_percentintegerPercentage from 0-100 of the data transfer cost to be billed to the subscriber.
descriptionstringA description of the entitlement.
encryptionobjectThe type of encryption that will be used on the output that is associated with this entitlement.
entitlement_statusstringAn indication of whether the entitlement is enabled.
namestringThe name of the entitlement.
subscribersarrayThe AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flow using your content as the source.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTFlowArn, Name, Subscribers, Description, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all flow_entitlements in a region.

SELECT
region,
flow_arn,
entitlement_arn,
data_transfer_subscriber_fee_percent,
description,
encryption,
entitlement_status,
name,
subscribers
FROM aws.mediaconnect.flow_entitlements
WHERE region = 'us-east-1';

Gets all properties from an individual flow_entitlement.

SELECT
region,
flow_arn,
entitlement_arn,
data_transfer_subscriber_fee_percent,
description,
encryption,
entitlement_status,
name,
subscribers
FROM aws.mediaconnect.flow_entitlements
WHERE region = 'us-east-1' AND data__Identifier = '<EntitlementArn>';

INSERT example

Use the following StackQL query and manifest file to create a new flow_entitlement resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediaconnect.flow_entitlements (
FlowArn,
Description,
Name,
Subscribers,
region
)
SELECT
'{{ FlowArn }}',
'{{ Description }}',
'{{ Name }}',
'{{ Subscribers }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediaconnect.flow_entitlements
WHERE data__Identifier = '<EntitlementArn>'
AND region = 'us-east-1';

Permissions

To operate on the flow_entitlements resource, the following permissions are required:

Create

iam:PassRole,
mediaconnect:GrantFlowEntitlements

Read

mediaconnect:DescribeFlow

Update

mediaconnect:DescribeFlow,
mediaconnect:UpdateFlowEntitlement

Delete

mediaconnect:DescribeFlow,
mediaconnect:RevokeFlowEntitlement

List

mediaconnect:DescribeFlow