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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.mediaconnect.flow_entitlements
WHERE
Identifier = '{{ entitlement_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

iam:PassRole,
mediaconnect:GrantFlowEntitlements