Skip to main content

software_packages

Creates, updates, deletes or gets a software_package resource or lists software_packages in a region

Overview

Namesoftware_packages
TypeResource
Descriptionresource definition
Idaws.iot.software_packages

Fields

NameDatatypeDescription
descriptionstring
package_arnstring
package_namestring
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

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

SELECT examples

Gets all software_packages in a region.

SELECT
region,
description,
package_arn,
package_name,
tags
FROM aws.iot.software_packages
WHERE region = 'us-east-1';

Gets all properties from an individual software_package.

SELECT
region,
description,
package_arn,
package_name,
tags
FROM aws.iot.software_packages
WHERE region = 'us-east-1' AND data__Identifier = '<PackageName>';

INSERT example

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

/*+ create */
INSERT INTO aws.iot.software_packages (
Description,
PackageName,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ PackageName }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iot.software_packages
WHERE data__Identifier = '<PackageName>'
AND region = 'us-east-1';

Permissions

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

Create

iot:CreatePackage,
iot:GetPackage,
iot:TagResource,
iot:GetIndexingConfiguration

Read

iot:GetPackage,
iot:ListTagsForResource

Update

iot:CreatePackage,
iot:UpdatePackage,
iot:GetPackage,
iot:ListTagsForResource,
iot:TagResource,
iot:UntagResource,
iot:GetIndexingConfiguration

Delete

iot:DeletePackage,
iot:DeletePackageVersion,
iot:GetPackage,
iot:GetPackageVersion,
iot:UpdatePackage,
iot:UpdatePackageVersion,
iot:GetIndexingConfiguration,
iot:ListPackageVersions

List

iot:ListPackages