diff --git a/clients/client-rum/src/commands/BatchCreateRumMetricDefinitionsCommand.ts b/clients/client-rum/src/commands/BatchCreateRumMetricDefinitionsCommand.ts index c7f43936f91e9..9e85725c361dd 100644 --- a/clients/client-rum/src/commands/BatchCreateRumMetricDefinitionsCommand.ts +++ b/clients/client-rum/src/commands/BatchCreateRumMetricDefinitionsCommand.ts @@ -38,22 +38,23 @@ export interface BatchCreateRumMetricDefinitionsCommandOutput *

By default, RUM app monitors send some metrics to CloudWatch. These default metrics * are listed in CloudWatch metrics that you can collect * with CloudWatch RUM.

- *

In addition to these default metrics, you can choose to send extended metrics or custom metrics or both.

+ *

In addition to these default metrics, you can choose to send extended metrics, custom + * metrics, or both.

* - *

If the metrics destination' - * is CloudWatch and the event - * also matches a value in DimensionKeys, then the metric is published with the specified dimensions.

+ *

If the metrics destination is CloudWatch and the event also matches a value + * in DimensionKeys, then the metric is published with the specified dimensions.

*/ EventPattern?: string; @@ -755,10 +792,11 @@ export interface BatchCreateRumMetricDefinitionsRequest { /** * @public - *

The destination to send the metrics to. Valid values are CloudWatch and Evidently. If - * you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment - * that will receive - * the metrics and an IAM role that has permission to write to the experiment.

+ *

The destination to send the metrics to. Valid values are CloudWatch and + * Evidently. If you specify Evidently, you must also specify the + * Amazon Resource Name (ARN) of the CloudWatchEvidently experiment that will receive + * the metrics and an IAM role that has permission to write to the + * experiment.

*/ Destination: MetricDestination | undefined; @@ -1233,7 +1271,7 @@ export interface CreateAppMonitorRequest { * Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the * Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own * authorization method. For more information, see - * Authorize your application + * Authorize your application * to send data to Amazon Web Services.

*

If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions.

*/ @@ -1617,10 +1655,15 @@ export interface PutRumMetricsDestinationRequest { /** * @public *

This parameter is required if Destination is Evidently. If Destination is - * CloudWatch, do not use this parameter.

+ * CloudWatch, don't use this parameter.

*

This parameter specifies * the ARN of an IAM role that RUM will assume to write to the Evidently * experiment that you are sending metrics to. This role must have permission to write to that experiment.

+ *

If you specify this parameter, you must be signed on to a role that has PassRole permissions attached to it, to allow + * the role to be passed. The + * CloudWatchAmazonCloudWatchRUMFullAccess + * policy doesn't include PassRole + * permissions.

*/ IamRoleArn?: string; } @@ -1652,7 +1695,7 @@ export interface UpdateAppMonitorRequest { * Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the * Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own * authorization method. For more information, see - * Authorize your application + * Authorize your application * to send data to Amazon Web Services.

*/ AppMonitorConfiguration?: AppMonitorConfiguration; diff --git a/codegen/sdk-codegen/aws-models/rum.json b/codegen/sdk-codegen/aws-models/rum.json index 4727d278e73f7..6f5c3c765633b 100644 --- a/codegen/sdk-codegen/aws-models/rum.json +++ b/codegen/sdk-codegen/aws-models/rum.json @@ -122,7 +122,7 @@ "GuestRoleArn": { "target": "com.amazonaws.rum#Arn", "traits": { - "smithy.api#documentation": "

The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool \n that is used to authorize the sending of data to RUM.

" + "smithy.api#documentation": "

The ARN of the guest IAM role that is attached to the Amazon Cognito identity pool \n that is used to authorize the sending of data to RUM.

\n \n

It is possible that an app monitor does not have a value for GuestRoleArn. For example, \n this can happen when you use the console to create an app monitor and you allow CloudWatch RUM to \n create a new identity pool for Authorization. In this case, GuestRoleArn is not present in the \n GetAppMonitor\n response because it is not stored by the service.

\n

If this issue affects you, you can take one of the following steps:

\n \n
" } }, "AllowCookies": { @@ -340,7 +340,7 @@ } ], "traits": { - "smithy.api#documentation": "

Specifies the extended metrics and custom metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid\n destinations include CloudWatch and Evidently.

\n

By default, RUM app monitors send some metrics to CloudWatch. These default metrics\n are listed in CloudWatch metrics that you can collect \n with CloudWatch RUM.

\n

In addition to these default metrics, you can choose to send extended metrics or custom metrics or both.

\n \n

The maximum number of metric definitions that you can specify in one \n BatchCreateRumMetricDefinitions operation is 200.

\n

The maximum number of metric definitions that one destination can contain is 2000.

\n

Extended metrics sent to CloudWatch and RUM custom metrics are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension\n value counts as a custom metric. For more information, see \n Amazon CloudWatch Pricing.

\n

You must have\n already created a destination for the metrics before you send them. For more information, see \n PutRumMetricsDestination.

\n

If some metric definitions specified in a BatchCreateRumMetricDefinitions operations are not valid,\n those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.

", + "smithy.api#documentation": "

Specifies the extended metrics and custom metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid\n destinations include CloudWatch and Evidently.

\n

By default, RUM app monitors send some metrics to CloudWatch. These default metrics\n are listed in CloudWatch metrics that you can collect \n with CloudWatch RUM.

\n

In addition to these default metrics, you can choose to send extended metrics, custom\n metrics, or both.

\n \n

The maximum number of metric definitions that you can specify in one \n BatchCreateRumMetricDefinitions operation is 200.

\n

The maximum number of metric definitions that one destination can contain is 2000.

\n

Extended metrics sent to CloudWatch and RUM custom metrics are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension\n value counts as a custom metric. For more information, see \n Amazon CloudWatch Pricing.

\n

You must have\n already created a destination for the metrics before you send them. For more information, see \n PutRumMetricsDestination.

\n

If some metric definitions specified in a BatchCreateRumMetricDefinitions operations are not valid,\n those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.

", "smithy.api#externalDocumentation": { "API Reference": "https://docs.aws.amazon.com/rum/latest/developerguide/BatchCreateRumMetricDefinitions.html" }, @@ -402,7 +402,7 @@ "Destination": { "target": "com.amazonaws.rum#MetricDestination", "traits": { - "smithy.api#documentation": "

The destination to send the metrics to. Valid values are CloudWatch and Evidently. If\n you specify Evidently, you must also specify the ARN of the CloudWatchEvidently experiment \n that will receive\n the metrics and an IAM role that has permission to write to the experiment.

", + "smithy.api#documentation": "

The destination to send the metrics to. Valid values are CloudWatch and\n Evidently. If you specify Evidently, you must also specify the\n Amazon Resource Name (ARN) of the CloudWatchEvidently experiment that will receive\n the metrics and an IAM role that has permission to write to the\n experiment.

", "smithy.api#required": {} } }, @@ -770,7 +770,7 @@ "AppMonitorConfiguration": { "target": "com.amazonaws.rum#AppMonitorConfiguration", "traits": { - "smithy.api#documentation": "

A structure that contains much of the configuration data for the app monitor. If you are using \n Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the \n Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own \n authorization method. For more information, see \n Authorize your application\n to send data to Amazon Web Services.

\n

If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions.

" + "smithy.api#documentation": "

A structure that contains much of the configuration data for the app monitor. If you are using \n Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the \n Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own \n authorization method. For more information, see \n Authorize your application\n to send data to Amazon Web Services.

\n

If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions.

" } }, "CwLogEnabled": { @@ -1588,7 +1588,7 @@ "ValueKey": { "target": "com.amazonaws.rum#ValueKey", "traits": { - "smithy.api#documentation": "

The field within the event object that the metric value is sourced from.

\n

If you omit this field, a hardcoded value of 1 is pushed as the metric value. This is useful if you\n just want to count the number of events that the filter catches.

\n

If this metric is sent to CloudWatch Evidently, this field will be passed to Evidently raw and Evidently \n will handle data extraction from the event.

" + "smithy.api#documentation": "

The field within the event object that the metric value is sourced from.

\n

If you omit this field, a hardcoded value of 1 is pushed as the metric value. This is\n useful if you want to count the number of events that the filter catches.

\n

If this metric is sent to CloudWatch Evidently, this field will be passed to\n Evidently raw. Evidently will handle data extraction from the event.

" } }, "UnitLabel": { @@ -1606,7 +1606,7 @@ "EventPattern": { "target": "com.amazonaws.rum#EventPattern", "traits": { - "smithy.api#documentation": "

The pattern that defines the metric, specified as a JSON object. RUM checks events that happen in a user's session\n against the pattern, and events that match the pattern are sent to the metric destination.

\n

When you define extended metrics, the metric definition is not valid if EventPattern\n is omitted.

\n

Example event patterns:

\n \n

If the metrics destination'\n is CloudWatch and the event\n also matches a value in DimensionKeys, then the metric is published with the specified dimensions.

" + "smithy.api#documentation": "

The pattern that defines the metric, specified as a JSON object. RUM checks events that happen in a user's session\n against the pattern, and events that match the pattern are sent to the metric destination.

\n

When you define extended metrics, the metric definition is not valid if EventPattern\n is omitted.

\n

Example event patterns:

\n \n

If the metrics destination is CloudWatch and the event also matches a value\n in DimensionKeys, then the metric is published with the specified dimensions.

" } }, "Namespace": { @@ -1617,7 +1617,7 @@ } }, "traits": { - "smithy.api#documentation": "

Use this structure to define one extended metric or custom metric that RUM will send\n to CloudWatch or CloudWatch Evidently. For more information, see \n \n Additional metrics that you can send to CloudWatch and CloudWatch Evidently.

\n

This structure is validated differently for extended metrics and custom metrics. For extended metrics\n that are sent to the AWS/RUM namespace, the following validations apply:

\n \n

For custom metrics, the following validation rules apply:

\n \n

Valid key values for first-level keys in the ValueKey, EventPattern, and \n DimensionKeys fields:

\n " + "smithy.api#documentation": "

Use this structure to define one extended metric or custom metric that RUM will send\n to CloudWatch or CloudWatch Evidently. For more information, see \n \n Custom metrics and extended metrics that you can send to CloudWatch and CloudWatch Evidently.

\n

This structure is validated differently for extended metrics and custom metrics. For extended metrics\n that are sent to the AWS/RUM namespace, the following validations apply:

\n \n

For custom metrics, the following validation rules apply:

\n \n

Valid key values for first-level keys in the ValueKey, EventPattern, and \n DimensionKeys fields:

\n " } }, "com.amazonaws.rum#MetricDefinitions": { @@ -1871,7 +1871,7 @@ "IamRoleArn": { "target": "com.amazonaws.rum#IamRoleArn", "traits": { - "smithy.api#documentation": "

This parameter is required if Destination is Evidently. If Destination is \n CloudWatch, do not use this parameter.

\n

This parameter specifies\n the ARN of an IAM role that RUM will assume to write to the Evidently \n experiment that you are sending metrics to. This role must have permission to write to that experiment.

" + "smithy.api#documentation": "

This parameter is required if Destination is Evidently. If Destination is \n CloudWatch, don't use this parameter.

\n

This parameter specifies\n the ARN of an IAM role that RUM will assume to write to the Evidently \n experiment that you are sending metrics to. This role must have permission to write to that experiment.

\n

If you specify this parameter, you must be signed on to a role that has PassRole permissions attached to it, to allow\n the role to be passed. The \n CloudWatchAmazonCloudWatchRUMFullAccess\n policy doesn't include PassRole\n permissions.

" } } } @@ -3159,7 +3159,7 @@ "AppMonitorConfiguration": { "target": "com.amazonaws.rum#AppMonitorConfiguration", "traits": { - "smithy.api#documentation": "

A structure that contains much of the configuration data for the app monitor. If you are using \n Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the \n Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own \n authorization method. For more information, see \n Authorize your application\n to send data to Amazon Web Services.

" + "smithy.api#documentation": "

A structure that contains much of the configuration data for the app monitor. If you are using \n Amazon Cognito for authorization, you must include this structure in your request, and it must include the ID of the \n Amazon Cognito identity pool to use for authorization. If you don't include AppMonitorConfiguration, you must set up your own \n authorization method. For more information, see \n Authorize your application\n to send data to Amazon Web Services.

" } }, "CwLogEnabled": {