[ aws . mediaconnect ]
Grants entitlements to an existing flow.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
grant-flow-entitlements
--entitlements <value>
--flow-arn <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--entitlements
(list)
The list of entitlements that you want to grant.(structure)
The entitlements that you want to grant on a flow.
DataTransferSubscriberFeePercent -> (integer)
Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
Description -> (string)
A description of the entitlement. This description appears only on the AWS Elemental MediaConnect console and will not be seen by the subscriber or end user.
Encryption -> (structure)
The type of encryption that will be used on the output that is associated with this entitlement.
Algorithm -> (string)
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
ConstantInitializationVector -> (string)
A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
DeviceId -> (string)
The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
KeyType -> (string)
The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
Region -> (string)
The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
ResourceId -> (string)
An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
RoleArn -> (string)
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
SecretArn -> (string)
The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
Url -> (string)
The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.
EntitlementStatus -> (string)
An indication of whether the new entitlement should be enabled or disabled as soon as it is created. If you don’t specify the entitlementStatus field in your request, MediaConnect sets it to ENABLED.
Name -> (string)
The name of the entitlement. This value must be unique within the current flow.
Subscribers -> (list)
The AWS account IDs that you want to share your content with. The receiving accounts (subscribers) will be allowed to create their own flows using your content as the source.
(string)
Shorthand Syntax:
DataTransferSubscriberFeePercent=integer,Description=string,Encryption={Algorithm=string,ConstantInitializationVector=string,DeviceId=string,KeyType=string,Region=string,ResourceId=string,RoleArn=string,SecretArn=string,Url=string},EntitlementStatus=string,Name=string,Subscribers=string,string ...
JSON Syntax:
[
{
"DataTransferSubscriberFeePercent": integer,
"Description": "string",
"Encryption": {
"Algorithm": "aes128"|"aes192"|"aes256",
"ConstantInitializationVector": "string",
"DeviceId": "string",
"KeyType": "speke"|"static-key"|"srt-password",
"Region": "string",
"ResourceId": "string",
"RoleArn": "string",
"SecretArn": "string",
"Url": "string"
},
"EntitlementStatus": "ENABLED"|"DISABLED",
"Name": "string",
"Subscribers": ["string", ...]
}
...
]
--flow-arn
(string)
The flow that you want to grant entitlements on.
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
See ‘aws help’ for descriptions of global parameters.
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-east-1:111122223333:flow:1-23aBC45dEF67hiJ8-12AbC34DE5fG:BaseballGame \
--entitlements Description='For AnyCompany',Encryption={"Algorithm=aes128,KeyType=static-key,RoleArn=arn:aws:iam::111122223333:role/MediaConnect-ASM,SecretArn=arn:aws:secretsmanager:us-west-2:111122223333:secret:mySecret1"},Name=AnyCompany_Entitlement,Subscribers=444455556666 Description='For Example Corp',Name=ExampleCorp,Subscribers=777788889999
Output:
{
"Entitlements": [
{
"Name": "AnyCompany_Entitlement",
"EntitlementArn": "arn:aws:mediaconnect:us-west-2:111122223333:entitlement:1-11aa22bb11aa22bb-3333cccc4444:AnyCompany_Entitlement",
"Subscribers": [
"444455556666"
],
"Description": "For AnyCompany",
"Encryption": {
"SecretArn": "arn:aws:secretsmanager:us-west-2:111122223333:secret:mySecret1",
"Algorithm": "aes128",
"RoleArn": "arn:aws:iam::111122223333:role/MediaConnect-ASM",
"KeyType": "static-key"
}
},
{
"Name": "ExampleCorp",
"EntitlementArn": "arn:aws:mediaconnect:us-west-2:111122223333:entitlement:1-3333cccc4444dddd-1111aaaa2222:ExampleCorp",
"Subscribers": [
"777788889999"
],
"Description": "For Example Corp"
}
],
"FlowArn": "arn:aws:mediaconnect:us-east-1:111122223333:flow:1-23aBC45dEF67hiJ8-12AbC34DE5fG:BaseballGame"
}
For more information, see Granting an Entitlement on a Flow in the AWS Elemental MediaConnect User Guide.
Entitlements -> (list)
The entitlements that were just granted.
(structure)
The settings for a flow entitlement.
DataTransferSubscriberFeePercent -> (integer)
Percentage from 0-100 of the data transfer cost to be billed to the subscriber.
Description -> (string)
A description of the entitlement.
Encryption -> (structure)
The type of encryption that will be used on the output that is associated with this entitlement.
Algorithm -> (string)
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
ConstantInitializationVector -> (string)
A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
DeviceId -> (string)
The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
KeyType -> (string)
The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
Region -> (string)
The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
ResourceId -> (string)
An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
RoleArn -> (string)
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
SecretArn -> (string)
The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
Url -> (string)
The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.
EntitlementArn -> (string)
The ARN of the entitlement.
EntitlementStatus -> (string)
An indication of whether the entitlement is enabled.
Name -> (string)
The name of the entitlement.
Subscribers -> (list)
The 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.
(string)
FlowArn -> (string)
The ARN of the flow that these entitlements were granted to.