Skip to main content

applications

Creates, updates, deletes or gets an application resource or lists applications in a region

Overview

Nameapplications
TypeResource
DescriptionResource schema for AWS::IoTFleetHub::Application
Idaws.iotfleethub.applications

Fields

NameDatatypeDescription
application_idstringThe ID of the application.
application_arnstringThe ARN of the application.
application_namestringApplication Name, should be between 1 and 256 characters.
application_descriptionstringApplication Description, should be between 1 and 2048 characters.
application_urlstringThe URL of the application.
application_statestringThe current state of the application.
application_creation_dateintegerWhen the Application was created
application_last_update_dateintegerWhen the Application was last updated
role_arnstringThe ARN of the role that the web application assumes when it interacts with AWS IoT Core. For more info on configuring this attribute, see https://docs.aws.amazon.com/iot/latest/apireference/API_iotfleethub_CreateApplication.html#API_iotfleethub_CreateApplication_RequestSyntax
sso_client_idstringThe AWS SSO application generated client ID (used with AWS SSO APIs).
error_messagestringA message indicating why Create or Delete Application failed.
tagsarrayA list of key-value pairs that contain metadata for the application.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicationName, RoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all applications in a region.

SELECT
region,
application_id,
application_arn,
application_name,
application_description,
application_url,
application_state,
application_creation_date,
application_last_update_date,
role_arn,
sso_client_id,
error_message,
tags
FROM aws.iotfleethub.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
application_id,
application_arn,
application_name,
application_description,
application_url,
application_state,
application_creation_date,
application_last_update_date,
role_arn,
sso_client_id,
error_message,
tags
FROM aws.iotfleethub.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationId>';

INSERT example

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

/*+ create */
INSERT INTO aws.iotfleethub.applications (
ApplicationName,
RoleArn,
region
)
SELECT
'{{ ApplicationName }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.iotfleethub.applications
WHERE data__Identifier = '<ApplicationId>'
AND region = 'us-east-1';

Permissions

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

Create

iotfleethub:CreateApplication,
iotfleethub:TagResource,
iam:PassRole,
sso:CreateManagedApplicationInstance,
sso:DescribeRegisteredRegions

Read

iotfleethub:DescribeApplication

Update

iotfleethub:UpdateApplication,
iotfleethub:DescribeApplication,
iotfleethub:TagResource,
iotfleethub:UntagResource

Delete

iotfleethub:DeleteApplication,
iotfleethub:DescribeApplication,
sso:DeleteManagedApplicationInstance

List

iotfleethub:ListApplications