Skip to main content

applications

Creates, updates, deletes, gets or lists an applications resource.

Overview

Nameapplications
TypeResource
Idaws.iotsitewise.applications

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier for the application (pattern: <code>[a-z0-9-]{36}</code>)
namestringName of the application (pattern: <code>[A-Za-z0-9](?:[A-Za-z0-9 .()-]*[A-Za-z0-9.()-])?</code>)
arnstringARN of the application (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:/_.]+$</code>)
created_atstring (date-time)Timestamp when the application was created
descriptionstringDescription of the application (pattern: <code>[a-zA-Z0-9_-]+</code>)
dns_subdomainstringDNS subdomain for the application (pattern: <code>[a-z0-9]([a-z0-9-]*[a-z0-9])?</code>)
idc_application_arnstringIdentity Center Application ARN associated with this application (pattern: <code>^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:/_.]+$</code>)
statusstringCurrent status of the application (CREATING, ACTIVE, DELETING)
updated_atstring (date-time)Timestamp when the application was last updated
workspace_namestringName of the workspace this application belongs to (pattern: <code>^[a-zA-Z0-9_-]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_applicationselectworkspace_name, id, regionRetrieves Application details based on the ID
list_applicationsselectregionmaxResults, nextTokenRetrieves a paginated list of existing applications
create_applicationinsertregion, idcInstanceArn, workspaceName, nameCreates a new application for the workspace and IdC application provided
delete_applicationdeleteworkspace_name, id, regionDeletes an application by ID

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringID of the Application to delete
regionstringAWS region (default: us-east-1)
workspace_namestringName of the workspace to associate with the underlying Application
maxResultsintegerMaximum number of results to return
nextTokenstringNext Page Token

SELECT examples

Retrieves Application details based on the ID

SELECT
id,
name,
arn,
created_at,
description,
dns_subdomain,
idc_application_arn,
status,
updated_at,
workspace_name
FROM aws.iotsitewise.applications
WHERE workspace_name = '{{ workspace_name }}' -- required
AND id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new application for the workspace and IdC application provided

INSERT INTO aws.iotsitewise.applications (
clientToken,
idcInstanceArn,
workspaceName,
name,
description,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ idcInstanceArn }}' /* required */,
'{{ workspaceName }}' /* required */,
'{{ name }}' /* required */,
'{{ description }}',
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
arn,
dns_subdomain,
status
;

DELETE examples

Deletes an application by ID

DELETE FROM aws.iotsitewise.applications
WHERE workspace_name = '{{ workspace_name }}' --required
AND id = '{{ id }}' --required
AND region = '{{ region }}' --required
;