Skip to main content

packages

Creates, updates, deletes or gets a package resource or lists packages in a region

Overview

Namepackages
TypeResource
DescriptionSchema for Package CloudFormation Resource
Idaws.panorama.packages

Fields

NameDatatypeDescription
package_namestring
package_idstring
arnstring
storage_locationobject
created_timeinteger
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTPackageName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all packages in a region.

SELECT
region,
package_name,
package_id,
arn,
storage_location,
created_time,
tags
FROM aws.panorama.packages
WHERE region = 'us-east-1';

Gets all properties from an individual package.

SELECT
region,
package_name,
package_id,
arn,
storage_location,
created_time,
tags
FROM aws.panorama.packages
WHERE region = 'us-east-1' AND data__Identifier = '<PackageId>';

INSERT example

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

/*+ create */
INSERT INTO aws.panorama.packages (
PackageName,
region
)
SELECT
'{{ PackageName }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

panorama:CreatePackage,
panorama:ListTagsForResource,
panorama:TagResource,
panorama:DescribePackage,
s3:ListBucket,
s3:PutObject,
s3:GetObject,
s3:GetObjectVersion

Read

panorama:DescribePackage,
panorama:ListTagsForResource,
s3:ListBucket,
s3:GetObject,
s3:GetObjectVersion

Update

panorama:DescribePackage,
panorama:ListTagsForResource,
panorama:TagResource,
panorama:UntagResource,
s3:PutObject,
s3:ListBucket,
s3:GetObject,
s3:GetObjectVersion

List

panorama:ListPackages,
s3:ListBucket,
s3:GetObject,
s3:GetObjectVersion

Delete

panorama:DeletePackage,
panorama:DescribePackage,
s3:DeleteObject,
s3:DeleteObjectVersion,
s3:DeleteObjectVersionTagging,
s3:ListObjects,
s3:ListObjectsV2,
s3:ListBucket,
s3:GetObject,
s3:GetObjectVersion