policies
Creates, updates, deletes, gets or lists a policies resource.
Overview
| Name | policies |
| Type | Resource |
| Id | aws.mediaconvert.policies |
Fields
The following fields are returned by SELECT queries:
- get_policy
| Name | Datatype | Description |
|---|---|---|
http_inputs | string | Allow or disallow jobs that specify HTTP inputs. (ALLOWED, DISALLOWED) |
https_inputs | string | Allow or disallow jobs that specify HTTPS inputs. (ALLOWED, DISALLOWED) |
s3_inputs | string | Allow or disallow jobs that specify Amazon S3 inputs. (ALLOWED, DISALLOWED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_policy | select | region | Retrieve the JSON for your policy. | |
put_policy | replace | region | 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 | |
delete_policy | delete | region | Permanently delete a policy that you created. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_policy
Retrieve the JSON for your policy.
SELECT
http_inputs,
https_inputs,
s3_inputs
FROM aws.mediaconvert.policies
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_policy
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
REPLACE aws.mediaconvert.policies
SET
Policy = '{{ Policy }}'
WHERE
region = '{{ region }}' --required
RETURNING
policy;
DELETE examples
- delete_policy
Permanently delete a policy that you created.
DELETE FROM aws.mediaconvert.policies
WHERE region = '{{ region }}' --required
;