Skip to main content

application_instances

Creates, updates, deletes or gets an application_instance resource or lists application_instances in a region

Overview

Nameapplication_instances
TypeResource
DescriptionCreates an application instance and deploys it to a device.
Idawscc.panorama.application_instances

Fields

NameDatatypeDescription
default_runtime_context_device_namestring
statusstring
default_runtime_context_devicestringThe device's ID.
descriptionstringA description for the application instance.
application_instance_id_to_replacestringThe ID of an application instance to replace with the new instance.
created_timeinteger
health_statusstring
manifest_overrides_payloadobjectSetting overrides for the application manifest.
runtime_role_arnstringThe ARN of a runtime role for the application instance.
namestringA name for the application instance.
status_descriptionstring
manifest_payloadobjectThe application's manifest document.
arnstring
tagsarrayTags for the application instance.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceapplication_instancesINSERTManifestPayload, DefaultRuntimeContextDevice, region
delete_resourceapplication_instancesDELETEIdentifier, region
update_resourceapplication_instancesUPDATEIdentifier, PatchDocument, region
list_resourcesapplication_instances_list_onlySELECTregion
get_resourceapplication_instancesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual application_instance.

SELECT
region,
default_runtime_context_device_name,
status,
default_runtime_context_device,
description,
application_instance_id_to_replace,
created_time,
health_status,
manifest_overrides_payload,
last_updated_time,
runtime_role_arn,
name,
application_instance_id,
status_description,
manifest_payload,
arn,
tags
FROM awscc.panorama.application_instances
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_instance_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.panorama.application_instances (
DefaultRuntimeContextDevice,
ManifestPayload,
region
)
SELECT
'{{ default_runtime_context_device }}',
'{{ manifest_payload }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.panorama.application_instances
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_instance_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.panorama.application_instances
WHERE
Identifier = '{{ application_instance_id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

panorama:DescribeApplicationInstance,
panorama:DescribeApplicationInstanceDetails,
panorama:ListTagsForResource,
s3:ListObjects,
s3:GetObject,
s3:GetObjectVersion