packaging_groups
Creates, updates, deletes or gets a packaging_group
resource or lists packaging_groups
in a region
Overview
Name | packaging_groups |
Type | Resource |
Description | Resource schema for AWS::MediaPackage::PackagingGroup |
Id | aws.mediapackage.packaging_groups |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The ID of the PackagingGroup. |
arn | string | The ARN of the PackagingGroup. |
domain_name | string | The fully qualified domain name for Assets in the PackagingGroup. |
authorization | object | CDN Authorization |
tags | array | A collection of tags associated with a resource |
egress_access_logs | object | The configuration parameters for egress access logging. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | Id, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all packaging_groups
in a region.
SELECT
region,
id,
arn,
domain_name,
authorization,
tags,
egress_access_logs
FROM aws.mediapackage.packaging_groups
WHERE region = 'us-east-1';
Gets all properties from an individual packaging_group
.
SELECT
region,
id,
arn,
domain_name,
authorization,
tags,
egress_access_logs
FROM aws.mediapackage.packaging_groups
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new packaging_group
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.mediapackage.packaging_groups (
Id,
region
)
SELECT
'{{ Id }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.mediapackage.packaging_groups (
Id,
Authorization,
Tags,
EgressAccessLogs,
region
)
SELECT
'{{ Id }}',
'{{ Authorization }}',
'{{ Tags }}',
'{{ EgressAccessLogs }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: packaging_group
props:
- name: Id
value: '{{ Id }}'
- name: Authorization
value:
CdnIdentifierSecret: '{{ CdnIdentifierSecret }}'
SecretsRoleArn: '{{ SecretsRoleArn }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
- name: EgressAccessLogs
value:
LogGroupName: '{{ LogGroupName }}'
DELETE
example
/*+ delete */
DELETE FROM aws.mediapackage.packaging_groups
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the packaging_groups
resource, the following permissions are required:
Create
mediapackage-vod:CreatePackagingGroup,
mediapackage-vod:DescribePackagingGroup,
mediapackage-vod:TagResource,
mediapackage-vod:ConfigureLogs,
iam:PassRole,
iam:CreateServiceLinkedRole
Read
mediapackage-vod:DescribePackagingGroup
Update
mediapackage-vod:DescribePackagingGroup,
mediapackage-vod:UpdatePackagingGroup,
mediapackage-vod:ConfigureLogs,
mediapackage-vod:TagResource,
iam:PassRole,
iam:CreateServiceLinkedRole
List
mediapackage-vod:ListPackagingGroups
Delete
mediapackage-vod:DescribePackagingGroup,
mediapackage-vod:DeletePackagingGroup