UpdateFlowEntitlement
Updates an entitlement. You can change an entitlement's description, subscribers, and encryption. If you change the subscribers, the service will remove the outputs that are are used by the subscribers that are removed.
Request Syntax
PUT /v1/flows/flowArn
/entitlements/entitlementArn
HTTP/1.1
Content-type: application/json
{
"description": "string
",
"encryption": {
"algorithm": "string
",
"constantInitializationVector": "string
",
"deviceId": "string
",
"keyType": "string
",
"region": "string
",
"resourceId": "string
",
"roleArn": "string
",
"secretArn": "string
",
"url": "string
"
},
"entitlementStatus": "string
",
"subscribers": [ "string
" ]
}
URI Request Parameters
The request uses the following URI parameters.
- entitlementArn
-
The Amazon Resource Name (ARN) of the entitlement that you want to update.
Pattern:
arn:.+:mediaconnect.+:entitlement:.+
Required: Yes
- flowArn
-
The ARN of the flow that is associated with the entitlement that you want to update.
Pattern:
arn:.+:mediaconnect.+:flow:.+
Required: Yes
Request Body
The request accepts the following data in JSON format.
- description
-
A description of the entitlement. This description appears only on the MediaConnect console and will not be seen by the subscriber or end user.
Type: String
Required: No
- encryption
-
The type of encryption that will be used on the output associated with this entitlement. Allowable encryption types: static-key, speke.
Type: UpdateEncryption object
Required: No
- entitlementStatus
-
An indication of whether you want to enable the entitlement to allow access, or disable it to stop streaming content to the subscriber’s flow temporarily. If you don’t specify the
entitlementStatus
field in your request, MediaConnect leaves the value unchanged.Type: String
Valid Values:
ENABLED | DISABLED
Required: No
- subscribers
-
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.
Type: Array of strings
Required: No
Response Syntax
HTTP/1.1 202
Content-type: application/json
{
"entitlement": {
"dataTransferSubscriberFeePercent": number,
"description": "string",
"encryption": {
"algorithm": "string",
"constantInitializationVector": "string",
"deviceId": "string",
"keyType": "string",
"region": "string",
"resourceId": "string",
"roleArn": "string",
"secretArn": "string",
"url": "string"
},
"entitlementArn": "string",
"entitlementStatus": "string",
"name": "string",
"subscribers": [ "string" ]
},
"flowArn": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 202 response.
The following data is returned in JSON format by the service.
- entitlement
-
The new configuration of the entitlement that you updated.
Type: Entitlement object
- flowArn
-
The ARN of the flow that this entitlement was granted on.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
- BadRequestException
-
This exception is thrown if the request contains a semantic error. The precise meaning depends on the API, and is documented in the error message.
HTTP Status Code: 400
- ForbiddenException
-
You do not have sufficient access to perform this action.
HTTP Status Code: 403
- InternalServerErrorException
-
The server encountered an internal error and is unable to complete the request.
HTTP Status Code: 500
- NotFoundException
-
One or more of the resources in the request does not exist in the system.
HTTP Status Code: 404
- ServiceUnavailableException
-
The service is currently unavailable or busy.
HTTP Status Code: 503
- TooManyRequestsException
-
The request was denied due to request throttling.
HTTP Status Code: 429
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: