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
Idawscc.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.

For more information, see AWS::MediaConnect::FlowEntitlement.

Methods

NameResourceAccessible byRequired Params
create_resourceflow_entitlementsINSERTFlowArn, Name, Subscribers, Description, region
delete_resourceflow_entitlementsDELETEIdentifier, region
update_resourceflow_entitlementsUPDATEIdentifier, PatchDocument, region
list_resourcesflow_entitlements_list_onlySELECTregion
get_resourceflow_entitlementsSELECTIdentifier, region

SELECT examples

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 awscc.mediaconnect.flow_entitlements
WHERE
region = 'us-east-1' AND
Identifier = '{{ entitlement_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.mediaconnect.flow_entitlements (
FlowArn,
Description,
Name,
Subscribers,
region
)
SELECT
'{{ flow_arn }}',
'{{ description }}',
'{{ name }}',
'{{ subscribers }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.mediaconnect.flow_entitlements
SET PatchDocument = string('{{ {
"FlowArn": flow_arn,
"Description": description,
"Encryption": encryption,
"EntitlementStatus": entitlement_status,
"Subscribers": subscribers
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ entitlement_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.mediaconnect.flow_entitlements
WHERE
Identifier = '{{ entitlement_arn }}' AND
region = 'us-east-1';

Permissions

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

iam:PassRole,
mediaconnect:GrantFlowEntitlements