Skip to main content

package_versions

Creates, updates, deletes or gets a package_version resource or lists package_versions in a region

Overview

Namepackage_versions
TypeResource
DescriptionSchema for PackageVersion Resource Type
Idaws.panorama.package_versions

Fields

NameDatatypeDescription
owner_accountstring
package_idstring
package_arnstring
package_versionstring
patch_versionstring
mark_latestboolean
is_latest_patchboolean
package_namestring
statusstring
status_descriptionstring
registered_timeinteger
updated_latest_patch_versionstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTPackageId, PackageVersion, PatchVersion, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual package_version.

SELECT
region,
owner_account,
package_id,
package_arn,
package_version,
patch_version,
mark_latest,
is_latest_patch,
package_name,
status,
status_description,
registered_time,
updated_latest_patch_version
FROM aws.panorama.package_versions
WHERE region = 'us-east-1' AND data__Identifier = '<PackageId>|<PackageVersion>|<PatchVersion>';

INSERT example

Use the following StackQL query and manifest file to create a new package_version resource, using stack-deploy.

/*+ create */
INSERT INTO aws.panorama.package_versions (
PackageId,
PackageVersion,
PatchVersion,
region
)
SELECT
'{{ PackageId }}',
'{{ PackageVersion }}',
'{{ PatchVersion }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.panorama.package_versions
WHERE data__Identifier = '<PackageId|PackageVersion|PatchVersion>'
AND region = 'us-east-1';

Permissions

To operate on the package_versions resource, the following permissions are required:

Create

panorama:RegisterPackageVersion,
panorama:DescribePackageVersion,
s3:ListBucket,
s3:PutObject,
s3:GetObject,
s3:GetObjectVersion

Read

panorama:DescribePackageVersion,
s3:ListBucket,
s3:GetObject,
s3:GetObjectVersion

Update

panorama:DescribePackageVersion,
panorama:RegisterPackageVersion,
s3:ListBucket,
s3:PutObject,
s3:GetObject,
s3:GetObjectVersion

Delete

panorama:DeregisterPackageVersion,
panorama:DescribePackageVersion,
s3:DeleteObject,
s3:DeleteObjectVersion,
s3:DeleteObjectVersionTagging,
s3:ListBucket,
s3:GetObject,
s3:GetObjectVersion