Skip to main content

packaging_groups

Creates, updates, deletes or gets a packaging_group resource or lists packaging_groups in a region

Overview

Namepackaging_groups
TypeResource
DescriptionResource schema for AWS::MediaPackage::PackagingGroup
Idaws.mediapackage.packaging_groups

Fields

NameDatatypeDescription
idstringThe ID of the PackagingGroup.
arnstringThe ARN of the PackagingGroup.
domain_namestringThe fully qualified domain name for Assets in the PackagingGroup.
authorizationobjectCDN Authorization
tagsarrayA collection of tags associated with a resource
egress_access_logsobjectThe configuration parameters for egress access logging.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__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.

/*+ create */
INSERT INTO aws.mediapackage.packaging_groups (
Id,
region
)
SELECT
'{{ Id }}',
'{{ region }}';

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