CmdID

CmdID / aws / aws mediaconnect

aws mediaconnect grant-flow-entitlements

Grants entitlements to an existing flow. AWS CLI reference

1 example 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To grant an entitlement on a flow

The following grant-flow-entitlements example grants an entitlement to the specified existing flow to share your content with another AWS account.

aws mediaconnect grant-flow-entitlements --flow-arn arn:aws:mediaconnect:us-west-2:123456789012:flow:1-23aBC45dEF67hiJ8-12AbC34DE5fG:BaseballGame --entitlements Description='For AnyCompany',Encryption={"Algorithm=aes128,KeyType=static-key,RoleArn=arn:aws:iam::123456789012:role/MediaConnect-ASM,SecretArn=arn:aws:secretsmanager:us-west-2:123456789012:secret:mySecret1"},Name=AnyCompany_Entitlement,Subscribers=123456789111 Description='For Example Corp',Name=ExampleCorp,Subscribers=123456789222Identify
--flow-arnThe Amazon Resource Name (ARN) of the flow that you want to grant entitlements on.
--entitlementsThe list of entitlements that you want to grant.
Its output
{
    "Entitlements": [
        {
            "Name": "AnyCompany_Entitlement",
            "EntitlementArn": "arn:aws:mediaconnect:us-west-2:123456789012:entitlement:1-11aa22bb11aa22bb-3333cccc4444:AnyCompany_Entitlement",
            "Subscribers": [
                "123456789111"
            ],
            "Description": "For AnyCompany",
            "Encryption": {
                "SecretArn": "arn:aws:secretsmanager:us-west-2:123456789012:secret:mySecret1",
                "Algorithm": "aes128",
                "RoleArn": "arn:aws:iam::123456789012:role/MediaConnect-ASM",
                "KeyType": "static-key"
            }
        },
        {
            "Name": "ExampleCorp",
            "EntitlementArn": "arn:aws:mediaconnect:us-west-2:123456789012:entitlement:1-3333cccc4444dddd-1111aaaa2222:ExampleCorp",
            "Subscribers": [
                "123456789222"
            ],
            "Description": "For Example Corp"
        }
    ],
    "FlowArn": "arn:aws:mediaconnect:us-west-2:123456789012:flow:1-23aBC45dEF67hiJ8-12AbC34DE5fG:BaseballGame"
}

For more information, see Granting an Entitlement on a Flow in the AWS Elemental MediaConnect User Guide.

Options

2 in the AWS CLI reference
--entitlementsThe list of entitlements that you want to grant.
--flow-arnThe Amazon Resource Name (ARN) of the flow that you want to grant entitlements on.