diff --git a/.changes/next-release/feature-CloudWatchRUM-66e7735.json b/.changes/next-release/feature-CloudWatchRUM-66e7735.json new file mode 100644 index 000000000000..d91fd4efc076 --- /dev/null +++ b/.changes/next-release/feature-CloudWatchRUM-66e7735.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "CloudWatch RUM", + "contributor": "", + "description": "This is the first public release of CloudWatch RUM" +} diff --git a/services/rum/pom.xml b/services/rum/pom.xml new file mode 100644 index 000000000000..c809cb55d574 --- /dev/null +++ b/services/rum/pom.xml @@ -0,0 +1,60 @@ + + + + + 4.0.0 + + software.amazon.awssdk + services + 2.17.92-SNAPSHOT + + rum + AWS Java SDK :: Services :: RUM + The AWS Java SDK for RUM module holds the client classes that are used for + communicating with RUM. + + https://aws.amazon.com/sdkforjava + + + + org.apache.maven.plugins + maven-jar-plugin + + + + software.amazon.awssdk.services.rum + + + + + + + + + + software.amazon.awssdk + protocol-core + ${awsjavasdk.version} + + + software.amazon.awssdk + aws-json-protocol + ${awsjavasdk.version} + + + diff --git a/services/rum/src/main/resources/codegen-resources/paginators-1.json b/services/rum/src/main/resources/codegen-resources/paginators-1.json new file mode 100644 index 000000000000..cf26166d6b4a --- /dev/null +++ b/services/rum/src/main/resources/codegen-resources/paginators-1.json @@ -0,0 +1,16 @@ +{ + "pagination": { + "GetAppMonitorData": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "Events" + }, + "ListAppMonitors": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "MaxResults", + "result_key": "AppMonitorSummaries" + } + } +} diff --git a/services/rum/src/main/resources/codegen-resources/service-2.json b/services/rum/src/main/resources/codegen-resources/service-2.json new file mode 100644 index 000000000000..fb7b7a750a56 --- /dev/null +++ b/services/rum/src/main/resources/codegen-resources/service-2.json @@ -0,0 +1,999 @@ +{ + "version":"2.0", + "metadata":{ + "apiVersion":"2018-05-10", + "endpointPrefix":"rum", + "jsonVersion":"1.1", + "protocol":"rest-json", + "serviceFullName":"CloudWatch RUM", + "serviceId":"RUM", + "signatureVersion":"v4", + "signingName":"rum", + "uid":"rum-2018-05-10" + }, + "operations":{ + "CreateAppMonitor":{ + "name":"CreateAppMonitor", + "http":{ + "method":"POST", + "requestUri":"/appmonitor", + "responseCode":200 + }, + "input":{"shape":"CreateAppMonitorRequest"}, + "output":{"shape":"CreateAppMonitorResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Creates a Amazon CloudWatch RUM app monitor, which collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior.

You use this operation only to create a new app monitor. To update an existing app monitor, use UpdateAppMonitor instead.

After you create an app monitor, sign in to the CloudWatch RUM console to get the JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?

", + "idempotent":true + }, + "DeleteAppMonitor":{ + "name":"DeleteAppMonitor", + "http":{ + "method":"DELETE", + "requestUri":"/appmonitor/{Name}", + "responseCode":200 + }, + "input":{"shape":"DeleteAppMonitorRequest"}, + "output":{"shape":"DeleteAppMonitorResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Deletes an existing app monitor. This immediately stops the collection of data.

", + "idempotent":true + }, + "GetAppMonitor":{ + "name":"GetAppMonitor", + "http":{ + "method":"GET", + "requestUri":"/appmonitor/{Name}", + "responseCode":200 + }, + "input":{"shape":"GetAppMonitorRequest"}, + "output":{"shape":"GetAppMonitorResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Retrieves the complete configuration information for one app monitor.

" + }, + "GetAppMonitorData":{ + "name":"GetAppMonitorData", + "http":{ + "method":"POST", + "requestUri":"/appmonitor/{Name}/data", + "responseCode":200 + }, + "input":{"shape":"GetAppMonitorDataRequest"}, + "output":{"shape":"GetAppMonitorDataResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Retrieves the raw performance events that RUM has collected from your web application, so that you can do your own processing or analysis of this data.

" + }, + "ListAppMonitors":{ + "name":"ListAppMonitors", + "http":{ + "method":"POST", + "requestUri":"/appmonitors", + "responseCode":200 + }, + "input":{"shape":"ListAppMonitorsRequest"}, + "output":{"shape":"ListAppMonitorsResponse"}, + "errors":[ + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Returns a list of the Amazon CloudWatch RUM app monitors in the account.

" + }, + "ListTagsForResource":{ + "name":"ListTagsForResource", + "http":{ + "method":"GET", + "requestUri":"/tags/{ResourceArn}", + "responseCode":200 + }, + "input":{"shape":"ListTagsForResourceRequest"}, + "output":{"shape":"ListTagsForResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"} + ], + "documentation":"

Displays the tags associated with a CloudWatch RUM resource.

" + }, + "PutRumEvents":{ + "name":"PutRumEvents", + "http":{ + "method":"POST", + "requestUri":"/appmonitors/{Id}/", + "responseCode":200 + }, + "input":{"shape":"PutRumEventsRequest"}, + "output":{"shape":"PutRumEventsResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code snippet that RUM generates for you to add to your application includes PutRumEvents operations to send this data to RUM.

Each PutRumEvents operation can send a batch of events from one user session.

", + "endpoint":{"hostPrefix":"dataplane."} + }, + "TagResource":{ + "name":"TagResource", + "http":{ + "method":"POST", + "requestUri":"/tags/{ResourceArn}", + "responseCode":200 + }, + "input":{"shape":"TagResourceRequest"}, + "output":{"shape":"TagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"} + ], + "documentation":"

Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently, the only resources that can be tagged app monitors.

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 Amazon Web Services and are interpreted strictly as strings of characters.

You can use the TagResource action with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.

You can associate as many as 50 tags with a resource.

For more information, see Tagging Amazon Web Services resources.

", + "idempotent":true + }, + "UntagResource":{ + "name":"UntagResource", + "http":{ + "method":"DELETE", + "requestUri":"/tags/{ResourceArn}", + "responseCode":200 + }, + "input":{"shape":"UntagResourceRequest"}, + "output":{"shape":"UntagResourceResponse"}, + "errors":[ + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"} + ], + "documentation":"

Removes one or more tags from the specified resource.

", + "idempotent":true + }, + "UpdateAppMonitor":{ + "name":"UpdateAppMonitor", + "http":{ + "method":"PATCH", + "requestUri":"/appmonitor/{Name}", + "responseCode":200 + }, + "input":{"shape":"UpdateAppMonitorRequest"}, + "output":{"shape":"UpdateAppMonitorResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"InternalServerException"}, + {"shape":"ValidationException"}, + {"shape":"ThrottlingException"}, + {"shape":"AccessDeniedException"} + ], + "documentation":"

Updates the configuration of an existing app monitor. When you use this operation, only the parts of the app monitor configuration that you specify in this operation are changed. For any parameters that you omit, the existing values are kept.

You can't use this operation to change the tags of an existing app monitor. To change the tags of an existing app monitor, use TagResource.

To create a new app monitor, use CreateAppMonitor.

After you update an app monitor, sign in to the CloudWatch RUM console to get the updated JavaScript code snippet to add to your web application. For more information, see How do I find a code snippet that I've already generated?

" + } + }, + "shapes":{ + "AccessDeniedException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

You don't have sufficient permissions to perform this action.

", + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "AppMonitor":{ + "type":"structure", + "members":{ + "AppMonitorConfiguration":{ + "shape":"AppMonitorConfiguration", + "documentation":"

A structure that contains much of the configuration data for the app monitor.

" + }, + "Created":{ + "shape":"ISOTimestampString", + "documentation":"

The date and time that this app monitor was created.

" + }, + "DataStorage":{ + "shape":"DataStorage", + "documentation":"

A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM collects using CloudWatch Logs.

" + }, + "Domain":{ + "shape":"AppMonitorDomain", + "documentation":"

The top-level internet domain name for which your application has administrative authority.

" + }, + "Id":{ + "shape":"AppMonitorId", + "documentation":"

The unique ID of this app monitor.

" + }, + "LastModified":{ + "shape":"ISOTimestampString", + "documentation":"

The date and time of the most recent changes to this app monitor's configuration.

" + }, + "Name":{ + "shape":"AppMonitorName", + "documentation":"

The name of the app monitor.

" + }, + "State":{ + "shape":"StateEnum", + "documentation":"

The current state of the app monitor.

" + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

The list of tag keys and values associated with this app monitor.

" + } + }, + "documentation":"

A RUM app monitor collects telemetry data from your application and sends that data to RUM. The data includes performance and reliability information such as page load time, client-side errors, and user behavior.

" + }, + "AppMonitorConfiguration":{ + "type":"structure", + "members":{ + "AllowCookies":{ + "shape":"Boolean", + "documentation":"

If you set this to true, the RUM web client sets two cookies, a session cookie and a user cookie. The cookies allow the RUM web client to collect data relating to the number of users an application has and the behavior of the application across a sequence of events. Cookies are stored in the top-level domain of the current page.

" + }, + "EnableXRay":{ + "shape":"Boolean", + "documentation":"

If you set this to true, RUM enables X-Ray tracing for the user sessions that RUM samples. RUM adds an X-Ray trace header to allowed HTTP requests. It also records an X-Ray segment for allowed HTTP requests. You can see traces and segments from these user sessions in the X-Ray console and the CloudWatch ServiceLens console. For more information, see What is X-Ray?

" + }, + "ExcludedPages":{ + "shape":"Pages", + "documentation":"

A list of URLs in your website or application to exclude from RUM data collection.

You can't include both ExcludedPages and IncludedPages in the same operation.

" + }, + "FavoritePages":{ + "shape":"FavoritePages", + "documentation":"

A list of pages in the CloudWatch RUM console that are to be displayed with a \"favorite\" icon.

" + }, + "GuestRoleArn":{ + "shape":"Arn", + "documentation":"

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

" + }, + "IdentityPoolId":{ + "shape":"IdentityPoolId", + "documentation":"

The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM.

" + }, + "IncludedPages":{ + "shape":"Pages", + "documentation":"

If this app monitor is to collect data from only certain pages in your application, this structure lists those pages.

 <p>You can't include both <code>ExcludedPages</code> and <code>IncludedPages</code> in the same operation.</p> 
" + }, + "SessionSampleRate":{ + "shape":"SessionSampleRate", + "documentation":"

Specifies the percentage of user sessions to use for RUM data collection. Choosing a higher percentage gives you more data but also incurs more costs.

The number you specify is the percentage of user sessions that will be used.

If you omit this parameter, the default of 10 is used.

" + }, + "Telemetries":{ + "shape":"Telemetries", + "documentation":"

An array that lists the types of telemetry data that this app monitor is to collect.

" + } + }, + "documentation":"

This structure contains much of the configuration data for the app monitor.

" + }, + "AppMonitorDetails":{ + "type":"structure", + "members":{ + "id":{ + "shape":"String", + "documentation":"

The unique ID of the app monitor.

" + }, + "name":{ + "shape":"String", + "documentation":"

The name of the app monitor.

" + }, + "version":{ + "shape":"String", + "documentation":"

The version of the app monitor.

" + } + }, + "documentation":"

A structure that contains information about the RUM app monitor.

" + }, + "AppMonitorDomain":{ + "type":"string", + "max":253, + "min":1, + "pattern":"^(localhost)|^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(?![-.])([A-Za-z0-9-\\.\\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))|^(\\*\\.)(?![-.])([A-Za-z0-9-\\.\\-]{0,63})((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))\\.(?![-])[A-Za-z-0-9]{1,63}((?![-])([a-zA-Z0-9]{1}|^[a-zA-Z0-9]{0,1}))" + }, + "AppMonitorId":{ + "type":"string", + "max":36, + "min":36, + "pattern":"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + }, + "AppMonitorName":{ + "type":"string", + "max":255, + "min":1, + "pattern":"^(?!\\.)[\\.\\-_#A-Za-z0-9]+$" + }, + "AppMonitorSummary":{ + "type":"structure", + "members":{ + "Created":{ + "shape":"ISOTimestampString", + "documentation":"

The date and time that the app monitor was created.

" + }, + "Id":{ + "shape":"AppMonitorId", + "documentation":"

The unique ID of this app monitor.

" + }, + "LastModified":{ + "shape":"ISOTimestampString", + "documentation":"

The date and time of the most recent changes to this app monitor's configuration.

" + }, + "Name":{ + "shape":"AppMonitorName", + "documentation":"

The name of this app monitor.

" + }, + "State":{ + "shape":"StateEnum", + "documentation":"

The current state of this app monitor.

" + } + }, + "documentation":"

A structure that includes some data about app monitors and their settings.

" + }, + "AppMonitorSummaryList":{ + "type":"list", + "member":{"shape":"AppMonitorSummary"} + }, + "Arn":{ + "type":"string", + "pattern":"arn:[^:]*:[^:]*:[^:]*:[^:]*:.*" + }, + "Boolean":{ + "type":"boolean", + "box":true + }, + "ConflictException":{ + "type":"structure", + "required":[ + "message", + "resourceName" + ], + "members":{ + "message":{"shape":"String"}, + "resourceName":{ + "shape":"String", + "documentation":"

The name of the resource that is associated with the error.

" + }, + "resourceType":{ + "shape":"String", + "documentation":"

The type of the resource that is associated with the error.

" + } + }, + "documentation":"

This operation attempted to create a resource that already exists.

", + "error":{ + "httpStatusCode":409, + "senderFault":true + }, + "exception":true + }, + "CreateAppMonitorRequest":{ + "type":"structure", + "required":[ + "Domain", + "Name" + ], + "members":{ + "AppMonitorConfiguration":{ + "shape":"AppMonitorConfiguration", + "documentation":"

A structure that contains much of the configuration data for the app monitor. If you are using 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 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.

" + }, + "CwLogEnabled":{ + "shape":"Boolean", + "documentation":"

Data 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 Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.

If you omit this parameter, the default is false.

" + }, + "Domain":{ + "shape":"AppMonitorDomain", + "documentation":"

The top-level internet domain name for which your application has administrative authority.

" + }, + "Name":{ + "shape":"AppMonitorName", + "documentation":"

A name for the app monitor.

" + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

Assigns 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 Amazon Web Services and are interpreted strictly as strings of characters.

 <p>You can associate as many as 50 tags with an app monitor.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a>.</p> 
" + } + } + }, + "CreateAppMonitorResponse":{ + "type":"structure", + "members":{ + "Id":{ + "shape":"AppMonitorId", + "documentation":"

The unique ID of the new app monitor.

" + } + } + }, + "CwLog":{ + "type":"structure", + "members":{ + "CwLogEnabled":{ + "shape":"Boolean", + "documentation":"

Indicated whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs.

" + }, + "CwLogGroup":{ + "shape":"String", + "documentation":"

The name of the log group where the copies are stored.

" + } + }, + "documentation":"

A structure that contains the information about whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs. If it does, this structure also contains the name of the log group.

" + }, + "DataStorage":{ + "type":"structure", + "members":{ + "CwLog":{ + "shape":"CwLog", + "documentation":"

A structure that contains the information about whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs. If it does, this structure also contains the name of the log group.

" + } + }, + "documentation":"

A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM collects using CloudWatch Logs.

" + }, + "DeleteAppMonitorRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"AppMonitorName", + "documentation":"

The name of the app monitor to delete.

", + "location":"uri", + "locationName":"Name" + } + } + }, + "DeleteAppMonitorResponse":{ + "type":"structure", + "members":{ + } + }, + "EventData":{"type":"string"}, + "EventDataList":{ + "type":"list", + "member":{"shape":"EventData"} + }, + "FavoritePages":{ + "type":"list", + "member":{"shape":"String"}, + "max":50, + "min":0 + }, + "GetAppMonitorDataRequest":{ + "type":"structure", + "required":[ + "Name", + "TimeRange" + ], + "members":{ + "Filters":{ + "shape":"QueryFilters", + "documentation":"

An array of structures that you can use to filter the results to those that match one or more sets of key-value pairs that you specify.

" + }, + "MaxResults":{ + "shape":"MaxQueryResults", + "documentation":"

The maximum number of results to return in one operation.

" + }, + "Name":{ + "shape":"AppMonitorName", + "documentation":"

The name of the app monitor that collected the data that you want to retrieve.

", + "location":"uri", + "locationName":"Name" + }, + "NextToken":{ + "shape":"Token", + "documentation":"

Use the token returned by the previous operation to request the next page of results.

" + }, + "TimeRange":{ + "shape":"TimeRange", + "documentation":"

A structure that defines the time range that you want to retrieve results from.

" + } + } + }, + "GetAppMonitorDataResponse":{ + "type":"structure", + "members":{ + "Events":{ + "shape":"EventDataList", + "documentation":"

The events that RUM collected that match your request.

" + }, + "NextToken":{ + "shape":"Token", + "documentation":"

A token that you can use in a subsequent operation to retrieve the next set of results.

" + } + } + }, + "GetAppMonitorRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "Name":{ + "shape":"AppMonitorName", + "documentation":"

The app monitor to retrieve information for.

", + "location":"uri", + "locationName":"Name" + } + } + }, + "GetAppMonitorResponse":{ + "type":"structure", + "members":{ + "AppMonitor":{ + "shape":"AppMonitor", + "documentation":"

A structure containing all the configuration information for the app monitor.

" + } + } + }, + "ISOTimestampString":{ + "type":"string", + "max":19, + "min":19, + "pattern":"/d{4}-[01]/d-[0-3]/dT[0-2]/d:[0-5]/d:[0-5]/d/./d+([+-][0-2]/d:[0-5]/d|Z)" + }, + "IdentityPoolId":{ + "type":"string", + "max":55, + "min":1, + "pattern":"[\\w-]+:[0-9a-f-]+" + }, + "Integer":{ + "type":"integer", + "box":true + }, + "InternalServerException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "retryAfterSeconds":{ + "shape":"Integer", + "documentation":"

The value of a parameter in the request caused an error.

", + "location":"header", + "locationName":"Retry-After" + } + }, + "documentation":"

Internal service exception.

", + "error":{"httpStatusCode":500}, + "exception":true, + "fault":true, + "retryable":{"throttling":false} + }, + "JsonValue":{"type":"string"}, + "ListAppMonitorsRequest":{ + "type":"structure", + "members":{ + "MaxResults":{ + "shape":"Integer", + "documentation":"

The maximum number of results to return in one operation.

", + "location":"querystring", + "locationName":"maxResults" + }, + "NextToken":{ + "shape":"String", + "documentation":"

Use the token returned by the previous operation to request the next page of results.

", + "location":"querystring", + "locationName":"nextToken" + } + } + }, + "ListAppMonitorsResponse":{ + "type":"structure", + "members":{ + "AppMonitorSummaries":{ + "shape":"AppMonitorSummaryList", + "documentation":"

An array of structures that contain information about the returned app monitors.

" + }, + "NextToken":{ + "shape":"String", + "documentation":"

A token that you can use in a subsequent operation to retrieve the next set of results.

" + } + } + }, + "ListTagsForResourceRequest":{ + "type":"structure", + "required":["ResourceArn"], + "members":{ + "ResourceArn":{ + "shape":"Arn", + "documentation":"

The ARN of the resource that you want to see the tags of.

", + "location":"uri", + "locationName":"ResourceArn" + } + } + }, + "ListTagsForResourceResponse":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{ + "shape":"Arn", + "documentation":"

The ARN of the resource that you are viewing.

" + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

The list of tag keys and values associated with the resource you specified.

" + } + } + }, + "MaxQueryResults":{ + "type":"integer", + "max":100, + "min":0 + }, + "Pages":{ + "type":"list", + "member":{"shape":"Url"}, + "max":50, + "min":0 + }, + "PutRumEventsRequest":{ + "type":"structure", + "required":[ + "AppMonitorDetails", + "BatchId", + "Id", + "RumEvents", + "UserDetails" + ], + "members":{ + "AppMonitorDetails":{ + "shape":"AppMonitorDetails", + "documentation":"

A structure that contains information about the app monitor that collected this telemetry information.

" + }, + "BatchId":{ + "shape":"String", + "documentation":"

A unique identifier for this batch of RUM event data.

" + }, + "Id":{ + "shape":"AppMonitorId", + "documentation":"

The ID of the app monitor that is sending this data.

", + "location":"uri", + "locationName":"Id" + }, + "RumEvents":{ + "shape":"RumEventList", + "documentation":"

An array of structures that contain the telemetry event data.

" + }, + "UserDetails":{ + "shape":"UserDetails", + "documentation":"

A structure that contains information about the user session that this batch of events was collected from.

" + } + } + }, + "PutRumEventsResponse":{ + "type":"structure", + "members":{ + } + }, + "QueryFilter":{ + "type":"structure", + "members":{ + "Name":{ + "shape":"QueryFilterKey", + "documentation":"

The name of a key to search for. The filter returns only the events that match the Name and Values that you specify.

Valid values for Name are Browser | Device | Country | Page | OS | EventType | Invert

" + }, + "Values":{ + "shape":"QueryFilterValueList", + "documentation":"

The values of the Name that are to be be included in the returned results.

" + } + }, + "documentation":"

A structure that defines a key and values that you can use to filter the results. The only performance events that are returned are those that have values matching the ones that you specify in one of your QueryFilter structures.

For example, you could specify Browser as the Name and specify Chrome,Firefox as the Values to return events generated only from those browsers.

Specifying Invert as the Name works as a \"not equal to\" filter. For example, specify Invert as the Name and specify Chrome as the value to return all events except events from user sessions with the Chrome browser.

" + }, + "QueryFilterKey":{"type":"string"}, + "QueryFilterValue":{"type":"string"}, + "QueryFilterValueList":{ + "type":"list", + "member":{"shape":"QueryFilterValue"} + }, + "QueryFilters":{ + "type":"list", + "member":{"shape":"QueryFilter"} + }, + "QueryTimestamp":{"type":"long"}, + "ResourceNotFoundException":{ + "type":"structure", + "required":[ + "message", + "resourceName" + ], + "members":{ + "message":{"shape":"String"}, + "resourceName":{ + "shape":"String", + "documentation":"

The name of the resource that is associated with the error.

" + }, + "resourceType":{ + "shape":"String", + "documentation":"

The type of the resource that is associated with the error.

" + } + }, + "documentation":"

Resource not found.

", + "error":{ + "httpStatusCode":404, + "senderFault":true + }, + "exception":true + }, + "RumEvent":{ + "type":"structure", + "required":[ + "details", + "id", + "timestamp", + "type" + ], + "members":{ + "details":{ + "shape":"JsonValue", + "documentation":"

A string containing details about the event.

", + "jsonvalue":true + }, + "id":{ + "shape":"String", + "documentation":"

A unique ID for this event.

" + }, + "metadata":{ + "shape":"JsonValue", + "documentation":"

Metadata about this event, which contains a JSON serialization of the identity of the user for this session. The user information comes from information such as the HTTP user-agent request header and document interface.

", + "jsonvalue":true + }, + "timestamp":{ + "shape":"Timestamp", + "documentation":"

The exact time that this event occurred.

" + }, + "type":{ + "shape":"String", + "documentation":"

The JSON schema that denotes the type of event this is, such as a page load or a new session.

" + } + }, + "documentation":"

A structure that contains the information for one performance event that RUM collects from a user session with your application.

" + }, + "RumEventList":{ + "type":"list", + "member":{"shape":"RumEvent"} + }, + "ServiceQuotaExceededException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

This request exceeds a service quota.

", + "error":{ + "httpStatusCode":402, + "senderFault":true + }, + "exception":true + }, + "SessionSampleRate":{ + "type":"double", + "max":1, + "min":0 + }, + "StateEnum":{ + "type":"string", + "enum":[ + "CREATED", + "DELETING", + "ACTIVE" + ] + }, + "String":{"type":"string"}, + "TagKey":{ + "type":"string", + "max":128, + "min":1, + "pattern":"^(?!aws:)[a-zA-Z+-=._:/]+$" + }, + "TagKeyList":{ + "type":"list", + "member":{"shape":"TagKey"}, + "max":50, + "min":0 + }, + "TagMap":{ + "type":"map", + "key":{"shape":"TagKey"}, + "value":{"shape":"TagValue"} + }, + "TagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "Tags" + ], + "members":{ + "ResourceArn":{ + "shape":"Arn", + "documentation":"

The ARN of the CloudWatch RUM resource that you're adding tags to.

", + "location":"uri", + "locationName":"ResourceArn" + }, + "Tags":{ + "shape":"TagMap", + "documentation":"

The list of key-value pairs to associate with the resource.

" + } + } + }, + "TagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "TagValue":{ + "type":"string", + "max":256, + "min":0 + }, + "Telemetries":{ + "type":"list", + "member":{"shape":"Telemetry"} + }, + "Telemetry":{ + "type":"string", + "enum":[ + "errors", + "performance", + "http" + ] + }, + "ThrottlingException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"}, + "quotaCode":{ + "shape":"String", + "documentation":"

The ID of the service quota that was exceeded.

" + }, + "retryAfterSeconds":{ + "shape":"Integer", + "documentation":"

The value of a parameter in the request caused an error.

", + "location":"header", + "locationName":"Retry-After" + }, + "serviceCode":{ + "shape":"String", + "documentation":"

The ID of the service that is associated with the error.

" + } + }, + "documentation":"

The request was throttled because of quota limits.

", + "error":{ + "httpStatusCode":429, + "senderFault":true + }, + "exception":true, + "retryable":{"throttling":true} + }, + "TimeRange":{ + "type":"structure", + "required":["After"], + "members":{ + "After":{ + "shape":"QueryTimestamp", + "documentation":"

The beginning of the time range to retrieve performance events from.

" + }, + "Before":{ + "shape":"QueryTimestamp", + "documentation":"

The end of the time range to retrieve performance events from. If you omit this, the time range extends to the time that this operation is performed.

" + } + }, + "documentation":"

A structure that defines the time range that you want to retrieve results from.

" + }, + "Timestamp":{"type":"timestamp"}, + "Token":{"type":"string"}, + "UntagResourceRequest":{ + "type":"structure", + "required":[ + "ResourceArn", + "TagKeys" + ], + "members":{ + "ResourceArn":{ + "shape":"Arn", + "documentation":"

The ARN of the CloudWatch RUM resource that you're removing tags from.

", + "location":"uri", + "locationName":"ResourceArn" + }, + "TagKeys":{ + "shape":"TagKeyList", + "documentation":"

The list of tag keys to remove from the resource.

", + "location":"querystring", + "locationName":"tagKeys" + } + } + }, + "UntagResourceResponse":{ + "type":"structure", + "members":{ + } + }, + "UpdateAppMonitorRequest":{ + "type":"structure", + "required":["Name"], + "members":{ + "AppMonitorConfiguration":{ + "shape":"AppMonitorConfiguration", + "documentation":"

A structure that contains much of the configuration data for the app monitor. If you are using 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 to send data to Amazon Web Services.

" + }, + "CwLogEnabled":{ + "shape":"Boolean", + "documentation":"

Data 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 Amazon CloudWatch Logs in your account. This enables you to keep the telemetry data for more than 30 days, but it does incur Amazon CloudWatch Logs charges.

" + }, + "Domain":{ + "shape":"AppMonitorDomain", + "documentation":"

The top-level internet domain name for which your application has administrative authority.

" + }, + "Name":{ + "shape":"AppMonitorName", + "documentation":"

The name of the app monitor to update.

", + "location":"uri", + "locationName":"Name" + } + } + }, + "UpdateAppMonitorResponse":{ + "type":"structure", + "members":{ + } + }, + "Url":{ + "type":"string", + "max":1260, + "min":1, + "pattern":"https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)" + }, + "UserDetails":{ + "type":"structure", + "members":{ + "sessionId":{ + "shape":"String", + "documentation":"

The session ID that the performance events are from.

" + }, + "userId":{ + "shape":"String", + "documentation":"

The ID of the user for this user session. This ID is generated by RUM and does not include any personally identifiable information about the user.

" + } + }, + "documentation":"

A structure that contains information about the user session that this batch of events was collected from.

" + }, + "ValidationException":{ + "type":"structure", + "required":["message"], + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

One of the arguments for the request is not valid.

", + "error":{ + "httpStatusCode":400, + "senderFault":true + }, + "exception":true + } + }, + "documentation":"

With Amazon CloudWatch RUM, you can perform real-user monitoring to collect client-side data about your web application performance from actual user sessions in real time. The data collected includes page load times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and also see breakdowns by the browsers and devices that your customers use.

 <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error messages, stack traces, and user sessions. You can also use RUM to understand the range of end-user impact including the number of users, geolocations, and browsers used.</p> 
" +}