Skip to main content

assets

Creates, updates, deletes, gets or lists an assets resource.

Overview

Nameassets
TypeResource
Idaws.mediapackage_vod.assets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN of the Asset.
created_atstringThe time the Asset was initially submitted for Ingest.
egress_endpointsarrayThe list of egress endpoints available for the Asset.
idstringThe unique identifier for the Asset.
packaging_group_idstringThe ID of the PackagingGroup for the Asset.
resource_idstringThe resource ID to include in SPEKE key requests.
source_arnstringARN of the source object in S3.
source_role_arnstringThe IAM role_arn used to access the source S3 bucket.
tagsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_assetselectid, regionReturns a description of a MediaPackage VOD Asset resource.
list_assetsselectregionmaxResults, nextToken, packagingGroupIdReturns a collection of MediaPackage VOD Asset resources.
create_assetinsertregion, PackagingGroupId, SourceArn, SourceRoleArnCreates a new MediaPackage VOD Asset resource.
delete_assetdeleteid, regionDeletes an existing MediaPackage VOD Asset 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.

NameDatatypeDescription
idstringThe ID of the MediaPackage VOD Asset resource to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerUpper bound on number of records to return.
nextTokenstringA token used to resume pagination from the end of a previous request.
packagingGroupIdstringReturns Assets associated with the specified PackagingGroup.

SELECT examples

Returns a description of a MediaPackage VOD Asset resource.

SELECT
arn,
created_at,
egress_endpoints,
id,
packaging_group_id,
resource_id,
source_arn,
source_role_arn,
tags
FROM aws.mediapackage_vod.assets
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new MediaPackage VOD Asset resource.

INSERT INTO aws.mediapackage_vod.assets (
Id,
PackagingGroupId,
ResourceId,
SourceArn,
SourceRoleArn,
Tags,
region
)
SELECT
'{{ Id }}',
'{{ PackagingGroupId }}' /* required */,
'{{ ResourceId }}',
'{{ SourceArn }}' /* required */,
'{{ SourceRoleArn }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
arn,
created_at,
egress_endpoints,
id,
packaging_group_id,
resource_id,
source_arn,
source_role_arn,
tags
;

DELETE examples

Deletes an existing MediaPackage VOD Asset resource.

DELETE FROM aws.mediapackage_vod.assets
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;