Skip to main content

app_monitors

Creates, updates, deletes or gets an app_monitor resource or lists app_monitors in a region

Overview

Nameapp_monitors
TypeResource
DescriptionResource Type definition for AWS::RUM::AppMonitor
Idawscc.rum.app_monitors

Fields

NameDatatypeDescription
idstringThe unique ID of the new app monitor.
namestringA name for the app monitor
domainstringThe top-level internet domain name for which your application has administrative authority. The CreateAppMonitor requires either the domain or the domain list.
domain_listarrayThe top-level internet domain names for which your application has administrative authority. The CreateAppMonitor requires either the domain or the domain list.
cw_log_enabledbooleanData collected by RUM is kept by RUM for 30 days and then deleted. This parameter specifies whether RUM sends a copy of this telemetry data to CWLlong in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur CWLlong charges. If you omit this parameter, the default is false
tagsarrayAssigns one or more tags (key-value pairs) to the app monitor. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to AWS and are interpreted strictly as strings of characters.You can associate as many as 50 tags with an app monitor.
app_monitor_configurationobjectAppMonitor configuration
custom_eventsobjectAppMonitor custom events configuration
resource_policyobjectA structure that defines resource policy attached to your app monitor.
deobfuscation_configurationobjectA structure that contains the configuration for how an app monitor can deobfuscate stack traces.
regionstringAWS region.

For more information, see AWS::RUM::AppMonitor.

Methods

NameResourceAccessible byRequired Params
create_resourceapp_monitorsINSERTName, region
delete_resourceapp_monitorsDELETEIdentifier, region
update_resourceapp_monitorsUPDATEIdentifier, PatchDocument, region
list_resourcesapp_monitors_list_onlySELECTregion
get_resourceapp_monitorsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual app_monitor.

SELECT
region,
id,
name,
domain,
domain_list,
cw_log_enabled,
tags,
app_monitor_configuration,
custom_events,
resource_policy,
deobfuscation_configuration
FROM awscc.rum.app_monitors
WHERE
region = 'us-east-1' AND
Identifier = '{{ name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.rum.app_monitors (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.rum.app_monitors
SET PatchDocument = string('{{ {
"Domain": domain,
"DomainList": domain_list,
"CwLogEnabled": cw_log_enabled,
"Tags": tags,
"AppMonitorConfiguration": app_monitor_configuration,
"CustomEvents": custom_events,
"ResourcePolicy": resource_policy,
"DeobfuscationConfiguration": deobfuscation_configuration
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.rum.app_monitors
WHERE
Identifier = '{{ name }}' AND
region = 'us-east-1';

Permissions

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

rum:GetAppMonitor,
rum:CreateAppMonitor,
dynamodb:GetItem,
dynamodb:PutItem,
s3:GetObject,
s3:PutObject,
s3:GetObjectAcl,
s3:DoesObjectExist,
logs:CreateLogDelivery,
logs:CreateLogGroup,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
logs:PutRetentionPolicy,
rum:TagResource,
rum:ListTagsForResource,
cognito-identity:DescribeIdentityPool,
iam:GetRole,
iam:CreateServiceLinkedRole,
iam:PassRole,
rum:PutRumMetricsDestination,
rum:BatchCreateRumMetricDefinitions,
rum:ListRumMetricsDestinations,
rum:BatchGetRumMetricDefinitions,
rum:GetResourcePolicy,
rum:PutResourcePolicy