AWS Elemental MediaConvert

2021/10/08 - AWS Elemental MediaConvert - 3 new api methods

Changes  AWS Elemental MediaConvert has added the ability to set account policies which control access restrictions for HTTP, HTTPS, and S3 content sources.

PutPolicy (new) Link ¶

Create or change your policy. For more information about policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html

See also: AWS API Documentation

Request Syntax

client.put_policy(
    Policy={
        'HttpInputs': 'ALLOWED'|'DISALLOWED',
        'HttpsInputs': 'ALLOWED'|'DISALLOWED',
        'S3Inputs': 'ALLOWED'|'DISALLOWED'
    }
)
type Policy

dict

param Policy

[REQUIRED] A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html

  • HttpInputs (string) -- Allow or disallow jobs that specify HTTP inputs.

  • HttpsInputs (string) -- Allow or disallow jobs that specify HTTPS inputs.

  • S3Inputs (string) -- Allow or disallow jobs that specify Amazon S3 inputs.

rtype

dict

returns

Response Syntax

{
    'Policy': {
        'HttpInputs': 'ALLOWED'|'DISALLOWED',
        'HttpsInputs': 'ALLOWED'|'DISALLOWED',
        'S3Inputs': 'ALLOWED'|'DISALLOWED'
    }
}

Response Structure

  • (dict) --

    • Policy (dict) -- A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html

      • HttpInputs (string) -- Allow or disallow jobs that specify HTTP inputs.

      • HttpsInputs (string) -- Allow or disallow jobs that specify HTTPS inputs.

      • S3Inputs (string) -- Allow or disallow jobs that specify Amazon S3 inputs.

DeletePolicy (new) Link ¶

Permanently delete a policy that you created.

See also: AWS API Documentation

Request Syntax

client.delete_policy()
rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

GetPolicy (new) Link ¶

Retrieve the JSON for your policy.

See also: AWS API Documentation

Request Syntax

client.get_policy()
rtype

dict

returns

Response Syntax

{
    'Policy': {
        'HttpInputs': 'ALLOWED'|'DISALLOWED',
        'HttpsInputs': 'ALLOWED'|'DISALLOWED',
        'S3Inputs': 'ALLOWED'|'DISALLOWED'
    }
}

Response Structure

  • (dict) --

    • Policy (dict) -- A policy configures behavior that you allow or disallow for your account. For information about MediaConvert policies, see the user guide at http://docs.aws.amazon.com/mediaconvert/latest/ug/what-is.html

      • HttpInputs (string) -- Allow or disallow jobs that specify HTTP inputs.

      • HttpsInputs (string) -- Allow or disallow jobs that specify HTTPS inputs.

      • S3Inputs (string) -- Allow or disallow jobs that specify Amazon S3 inputs.