Skip to main content

applications

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

Overview

Nameapplications
TypeResource
DescriptionResource Type definition for AWS::ApplicationInsights::Application
Idawscc.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.
sns_notification_arnstringApplication Insights sends notifications to this SNS topic whenever there is a problem update in the associated application.
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.

For more information, see AWS::ApplicationInsights::Application.

Methods

NameResourceAccessible byRequired Params
create_resourceapplicationsINSERTResourceGroupName, region
delete_resourceapplicationsDELETEIdentifier, region
update_resourceapplicationsUPDATEIdentifier, PatchDocument, region
list_resourcesapplications_list_onlySELECTregion
get_resourceapplicationsSELECTIdentifier, region

SELECT examples

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,
sns_notification_arn,
tags,
custom_components,
log_pattern_sets,
auto_configuration_enabled,
component_monitoring_settings,
grouping_type,
attach_missing_permission
FROM awscc.applicationinsights.applications
WHERE
region = 'us-east-1' AND
Identifier = '{{ application_arn }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.applicationinsights.applications
SET PatchDocument = string('{{ {
"CWEMonitorEnabled": cwe_monitor_enabled,
"OpsCenterEnabled": ops_center_enabled,
"OpsItemSNSTopicArn": ops_item_sns_topic_arn,
"SNSNotificationArn": sns_notification_arn,
"Tags": tags,
"CustomComponents": custom_components,
"LogPatternSets": log_pattern_sets,
"AutoConfigurationEnabled": auto_configuration_enabled,
"ComponentMonitoringSettings": component_monitoring_settings,
"AttachMissingPermission": attach_missing_permission
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.applicationinsights.applications
WHERE
Identifier = '{{ application_arn }}' AND
region = 'us-east-1';

Permissions

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

applicationinsights:CreateApplication,
applicationinsights:Describe*,
applicationinsights:CreateComponent,
applicationinsights:CreateLogPattern,
applicationinsights:UpdateComponentConfiguration,
applicationinsights:ListComponents,
applicationinsights:TagResource,
ec2:Describe*,
rds:Describe*,
sqs:ListQueues,
elasticloadbalancing:Describe*,
autoscaling:DescribeAutoScalingGroups,
lambda:ListFunctions,
dynamodb:ListTables,
s3:ListAllMyBuckets,
sns:ListTopics,
states:ListStateMachines,
apigateway:GET,
ecs:List*,
ecs:DescribeTaskDefinition,
eks:List*,
fsx:DescribeFileSystems,
route53:List*,
route53resolver:List*,
logs:DescribeLogGroups,
resource-explorer:ListResources,
elasticfilesystem:DescribeFileSystems