Skip to main content

packages

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

Overview

Namepackages
TypeResource
DescriptionCreates a package and storage location in an Amazon S3 access point.
Idawscc.panorama.packages

Fields

NameDatatypeDescription
package_namestringA name for the package.
package_idstring
arnstring
storage_locationobjectA storage location.
created_timeinteger
tagsarrayTags for the package.
regionstringAWS region.

For more information, see AWS::Panorama::Package.

Methods

NameResourceAccessible byRequired Params
create_resourcepackagesINSERTPackageName, region
delete_resourcepackagesDELETEIdentifier, region
update_resourcepackagesUPDATEIdentifier, PatchDocument, region
list_resourcespackages_list_onlySELECTregion
get_resourcepackagesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual package.

SELECT
region,
package_name,
package_id,
arn,
storage_location,
created_time,
tags
FROM awscc.panorama.packages
WHERE
region = 'us-east-1' AND
Identifier = '{{ package_id }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.panorama.packages
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ package_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.panorama.packages
WHERE
Identifier = '{{ package_id }}' AND
region = 'us-east-1';

Permissions

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

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