packages
Creates, updates, deletes or gets a package
resource or lists packages
in a region
Overview
Name | packages |
Type | Resource |
Description | Schema for Package CloudFormation Resource |
Id | aws.panorama.packages |
Fields
Name | Datatype | Description |
---|---|---|
package_name | string | |
package_id | string | |
arn | string | |
storage_location | object | |
created_time | integer | |
tags | array | |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | PackageName, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.panorama.packages (
PackageName,
region
)
SELECT
'{{ PackageName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.panorama.packages (
PackageName,
StorageLocation,
Tags,
region
)
SELECT
'{{ PackageName }}',
'{{ StorageLocation }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: package
props:
- name: PackageName
value: '{{ PackageName }}'
- name: StorageLocation
value:
Bucket: '{{ Bucket }}'
RepoPrefixLocation: '{{ RepoPrefixLocation }}'
GeneratedPrefixLocation: '{{ GeneratedPrefixLocation }}'
BinaryPrefixLocation: '{{ BinaryPrefixLocation }}'
ManifestPrefixLocation: '{{ ManifestPrefixLocation }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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