MediaConnect / Client / update_flow_entitlement

update_flow_entitlement#

MediaConnect.Client.update_flow_entitlement(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.update_flow_entitlement(
    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'
    },
    EntitlementArn='string',
    EntitlementStatus='ENABLED'|'DISABLED',
    FlowArn='string',
    Subscribers=[
        'string',
    ]
)
Parameters:
  • 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 (dict) –

    The type of encryption that will be used on the output associated with this entitlement. Allowable encryption types: static-key, speke.

    • 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) – [REQUIRED] The ARN of the entitlement that you want to update.

  • EntitlementStatus (string) – 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.

  • FlowArn (string) – [REQUIRED] The flow that is associated with the entitlement that you want to update.

  • 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) –

Return type:

dict

Returns:

Response Syntax

{
    'Entitlement': {
        'DataTransferSubscriberFeePercent': 123,
        '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'
        },
        'EntitlementArn': 'string',
        'EntitlementStatus': 'ENABLED'|'DISABLED',
        'Name': 'string',
        'Subscribers': [
            'string',
        ]
    },
    'FlowArn': 'string'
}

Response Structure

  • (dict) – AWS Elemental MediaConnect updated the entitlement successfully.

    • Entitlement (dict) – The new configuration of the entitlement that you updated.

      • 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 (dict) – 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 this entitlement was granted on.

Exceptions

  • MediaConnect.Client.exceptions.BadRequestException

  • MediaConnect.Client.exceptions.InternalServerErrorException

  • MediaConnect.Client.exceptions.ForbiddenException

  • MediaConnect.Client.exceptions.NotFoundException

  • MediaConnect.Client.exceptions.ServiceUnavailableException

  • MediaConnect.Client.exceptions.TooManyRequestsException