packaging_groups
Creates, updates, deletes, gets or lists a packaging_groups resource.
Overview
| Name | packaging_groups |
| Type | Resource |
| Id | aws.mediapackage_vod.packaging_groups |
Fields
The following fields are returned by SELECT queries:
- describe_packaging_group
- list_packaging_groups
| Name | Datatype | Description |
|---|---|---|
approximate_asset_count | integer | The approximate asset count of the PackagingGroup. |
arn | string | The ARN of the PackagingGroup. |
authorization | object | CDN Authorization credentials |
created_at | string | The time the PackagingGroup was created. |
domain_name | string | The fully qualified domain name for Assets in the PackagingGroup. |
egress_access_logs | object | Configure egress access logging. |
id | string | The ID of the PackagingGroup. |
tags | object |
| Name | Datatype | Description |
|---|---|---|
approximate_asset_count | integer | The approximate asset count of the PackagingGroup. |
arn | string | The ARN of the PackagingGroup. |
authorization | object | CDN Authorization credentials |
created_at | string | The time the PackagingGroup was created. |
domain_name | string | The fully qualified domain name for Assets in the PackagingGroup. |
egress_access_logs | object | Configure egress access logging. |
id | string | The ID of the PackagingGroup. |
tags | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_packaging_group | select | id, region | Returns a description of a MediaPackage VOD PackagingGroup resource. | |
list_packaging_groups | select | region | maxResults, nextToken | Returns a collection of MediaPackage VOD PackagingGroup resources. |
create_packaging_group | insert | region | Creates a new MediaPackage VOD PackagingGroup resource. | |
update_packaging_group | update | id, region | Updates a specific packaging group. You can't change the id attribute or any other system-generated attributes. | |
delete_packaging_group | delete | id, region | Deletes a MediaPackage VOD PackagingGroup resource. |
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 |
|---|---|---|
id | string | The ID of the MediaPackage VOD PackagingGroup resource to delete. |
region | string | AWS region (default: us-east-1) |
maxResults | integer | Upper bound on number of records to return. |
nextToken | string | A token used to resume pagination from the end of a previous request. |
SELECT examples
- describe_packaging_group
- list_packaging_groups
Returns a description of a MediaPackage VOD PackagingGroup resource.
SELECT
approximate_asset_count,
arn,
authorization,
created_at,
domain_name,
egress_access_logs,
id,
tags
FROM aws.mediapackage_vod.packaging_groups
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;
Returns a collection of MediaPackage VOD PackagingGroup resources.
SELECT
approximate_asset_count,
arn,
authorization,
created_at,
domain_name,
egress_access_logs,
id,
tags
FROM aws.mediapackage_vod.packaging_groups
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;
INSERT examples
- create_packaging_group
- Manifest
Creates a new MediaPackage VOD PackagingGroup resource.
INSERT INTO aws.mediapackage_vod.packaging_groups (
Authorization,
EgressAccessLogs,
Id,
Tags,
region
)
SELECT
'{{ Authorization }}',
'{{ EgressAccessLogs }}',
'{{ Id }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
authorization,
created_at,
domain_name,
egress_access_logs,
id,
tags
;
# Description fields are for documentation purposes
- name: packaging_groups
props:
- name: region
value: "{{ region }}"
description: Required parameter for the packaging_groups resource.
- name: Authorization
description: |
CDN Authorization credentials
value:
CdnIdentifierSecret: "{{ CdnIdentifierSecret }}"
SecretsRoleArn: "{{ SecretsRoleArn }}"
- name: EgressAccessLogs
description: |
Configure egress access logging.
value:
LogGroupName: "{{ LogGroupName }}"
- name: Id
value: "{{ Id }}"
- name: Tags
value: "{{ Tags }}"
description: |
A collection of tags associated with a resource
UPDATE examples
- update_packaging_group
Updates a specific packaging group. You can't change the id attribute or any other system-generated attributes.
UPDATE aws.mediapackage_vod.packaging_groups
SET
Authorization = '{{ Authorization }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
approximate_asset_count,
arn,
authorization,
created_at,
domain_name,
egress_access_logs,
id,
tags;
DELETE examples
- delete_packaging_group
Deletes a MediaPackage VOD PackagingGroup resource.
DELETE FROM aws.mediapackage_vod.packaging_groups
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;