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::ApplicationInsights::Application
Idaws.applicationinsights.applications

Fields

NameDatatypeDescription
resource_group_namestringThe name of the resource group.
application_arnstringThe ARN of the ApplicationInsights application.
cwe_monitor_enabledbooleanIndicates whether Application Insights can listen to CloudWatch events for the application resources.
ops_center_enabledbooleanWhen set to true, creates opsItems for any problems detected on an application.
ops_item_sns_topic_arnstringThe SNS topic provided to Application Insights that is associated to the created opsItem.
tagsarrayThe tags of Application Insights application.
custom_componentsarrayThe custom grouped components.
log_pattern_setsarrayThe log pattern sets.
auto_configuration_enabledbooleanIf set to true, application will be configured with recommended monitoring configuration.
component_monitoring_settingsarrayThe monitoring settings of the components.
grouping_typestringThe grouping type of the application
attach_missing_permissionbooleanIf set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceGroupName, 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,
resource_group_name,
application_arn,
cwe_monitor_enabled,
ops_center_enabled,
ops_item_sns_topic_arn,
tags,
custom_components,
log_pattern_sets,
auto_configuration_enabled,
component_monitoring_settings,
grouping_type,
attach_missing_permission
FROM aws.applicationinsights.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
resource_group_name,
application_arn,
cwe_monitor_enabled,
ops_center_enabled,
ops_item_sns_topic_arn,
tags,
custom_components,
log_pattern_sets,
auto_configuration_enabled,
component_monitoring_settings,
grouping_type,
attach_missing_permission
FROM aws.applicationinsights.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationARN>';

INSERT example

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

/*+ create */
INSERT INTO aws.applicationinsights.applications (
ResourceGroupName,
region
)
SELECT
'{{ ResourceGroupName }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

*

Read

*

Update

*

Delete

*

List

*