Skip to main content

rum_metrics_destinations

Creates, updates, deletes, gets or lists a rum_metrics_destinations resource.

Overview

Namerum_metrics_destinations
TypeResource
Idaws.rum.rum_metrics_destinations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
destinationstringSpecifies whether the destination is CloudWatch or Evidently. (CloudWatch, Evidently)
destination_arnstringIf the destination is Evidently, this specifies the ARN of the Evidently experiment that receives the metrics. (pattern: <code>.arn:[^:]:[^:]:[^:]:[^:]:.</code>)
iam_role_arnstringThis field appears only when the destination is Evidently. It specifies the ARN of the IAM role that is used to write to the Evidently experiment that receives the metrics. (pattern: <code>.arn:[^:]:[^:]:[^:]:[^:]:.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_rum_metrics_destinationsselectapp_monitor_name, regionmaxResults, nextTokenReturns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor. For more information about extended metrics, see AddRumMetrics.
put_rum_metrics_destinationreplaceapp_monitor_name, regionCreates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment. For more information about extended metrics, see BatchCreateRumMetricDefinitions.
delete_rum_metrics_destinationdeleteapp_monitor_name, destination, regiondestinationArnDeletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination.

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
app_monitor_namestringThe name of the app monitor that is sending metrics to the destination that you want to delete.
destinationstringThe type of destination to delete. Valid values are CloudWatch and Evidently.
regionstringAWS region (default: us-east-1)
destinationArnstringThis parameter is required if Destination is Evidently. If Destination is CloudWatch, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination to delete.
maxResultsintegerThe maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100. To retrieve the remaining results, make another call with the returned NextToken value.
nextTokenstringUse the token returned by the previous operation to request the next page of results.

SELECT examples

Returns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor. For more information about extended metrics, see AddRumMetrics.

SELECT
destination,
destination_arn,
iam_role_arn
FROM aws.rum.rum_metrics_destinations
WHERE app_monitor_name = '{{ app_monitor_name }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

REPLACE examples

Creates or updates a destination to receive extended metrics from CloudWatch RUM. You can send extended metrics to CloudWatch or to a CloudWatch Evidently experiment. For more information about extended metrics, see BatchCreateRumMetricDefinitions.

REPLACE aws.rum.rum_metrics_destinations
SET
Destination = '{{ Destination }}',
DestinationArn = '{{ DestinationArn }}',
IamRoleArn = '{{ IamRoleArn }}'
WHERE
app_monitor_name = '{{ app_monitor_name }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination.

DELETE FROM aws.rum.rum_metrics_destinations
WHERE app_monitor_name = '{{ app_monitor_name }}' --required
AND destination = '{{ destination }}' --required
AND region = '{{ region }}' --required
AND destinationArn = '{{ destinationArn }}'
;