{
  "version":"2.0",
  "metadata":{
    "apiVersion":"2018-05-10",
    "auth":["aws.auth#sigv4"],
    "endpointPrefix":"rum",
    "protocol":"rest-json",
    "protocols":["rest-json"],
    "serviceFullName":"CloudWatch RUM",
    "serviceId":"RUM",
    "signatureVersion":"v4",
    "signingName":"rum",
    "uid":"rum-2018-05-10"
  },
  "operations":{
    "BatchCreateRumMetricDefinitions":{
      "name":"BatchCreateRumMetricDefinitions",
      "http":{
        "method":"POST",
        "requestUri":"/rummetrics/{AppMonitorName}/metrics",
        "responseCode":200
      },
      "input":{"shape":"BatchCreateRumMetricDefinitionsRequest"},
      "output":{"shape":"BatchCreateRumMetricDefinitionsResponse"},
      "errors":[
        {"shape":"ConflictException"},
        {"shape":"ServiceQuotaExceededException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Specifies the extended metrics and custom metrics that you want a CloudWatch RUM app monitor to send to a destination. Valid destinations include CloudWatch and Evidently.</p> <p>By default, RUM app monitors send some metrics to CloudWatch. These default metrics are listed in <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-metrics.html\">CloudWatch metrics that you can collect with CloudWatch RUM</a>.</p> <p>In addition to these default metrics, you can choose to send extended metrics, custom metrics, or both.</p> <ul> <li> <p>Extended metrics let you send metrics with additional dimensions that aren't included in the default metrics. You can also send extended metrics to both Evidently and CloudWatch. The valid dimension names for the additional dimensions for extended metrics are <code>BrowserName</code>, <code>CountryCode</code>, <code>DeviceType</code>, <code>FileType</code>, <code>OSName</code>, and <code>PageId</code>. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-vended-metrics.html\"> Extended metrics that you can send to CloudWatch and CloudWatch Evidently</a>.</p> </li> <li> <p>Custom metrics are metrics that you define. You can send custom metrics to CloudWatch. CloudWatch Evidently, or both. With custom metrics, you can use any metric name and namespace. To derive the metrics, you can use any custom events, built-in events, custom attributes, or default attributes. </p> <p>You can't send custom metrics to the <code>AWS/RUM</code> namespace. You must send custom metrics to a custom namespace that you define. The namespace that you use can't start with <code>AWS/</code>. CloudWatch RUM prepends <code>RUM/CustomMetrics/</code> to the custom namespace that you define, so the final namespace for your metrics in CloudWatch is <code>RUM/CustomMetrics/<i>your-custom-namespace</i> </code>.</p> </li> </ul> <p>The maximum number of metric definitions that you can specify in one <code>BatchCreateRumMetricDefinitions</code> operation is 200.</p> <p>The maximum number of metric definitions that one destination can contain is 2000.</p> <p>Extended metrics sent to CloudWatch and RUM custom metrics are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension value counts as a custom metric. For more information, see <a href=\"https://aws.amazon.com/cloudwatch/pricing/\">Amazon CloudWatch Pricing</a>.</p> <p>You must have already created a destination for the metrics before you send them. For more information, see <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html\">PutRumMetricsDestination</a>.</p> <p>If some metric definitions specified in a <code>BatchCreateRumMetricDefinitions</code> operations are not valid, those metric definitions fail and return errors, but all valid metric definitions in the same operation still succeed.</p>",
      "idempotent":true
    },
    "BatchDeleteRumMetricDefinitions":{
      "name":"BatchDeleteRumMetricDefinitions",
      "http":{
        "method":"DELETE",
        "requestUri":"/rummetrics/{AppMonitorName}/metrics",
        "responseCode":200
      },
      "input":{"shape":"BatchDeleteRumMetricDefinitionsRequest"},
      "output":{"shape":"BatchDeleteRumMetricDefinitionsResponse"},
      "errors":[
        {"shape":"ConflictException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Removes the specified metrics from being sent to an extended metrics destination.</p> <p>If some metric definition IDs specified in a <code>BatchDeleteRumMetricDefinitions</code> operations are not valid, those metric definitions fail and return errors, but all valid metric definition IDs in the same operation are still deleted.</p> <p>The maximum number of metric definitions that you can specify in one <code>BatchDeleteRumMetricDefinitions</code> operation is 200.</p>",
      "idempotent":true
    },
    "BatchGetRumMetricDefinitions":{
      "name":"BatchGetRumMetricDefinitions",
      "http":{
        "method":"GET",
        "requestUri":"/rummetrics/{AppMonitorName}/metrics",
        "responseCode":200
      },
      "input":{"shape":"BatchGetRumMetricDefinitionsRequest"},
      "output":{"shape":"BatchGetRumMetricDefinitionsResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Retrieves the list of metrics and dimensions that a RUM app monitor is sending to a single destination.</p>",
      "readonly":true
    },
    "CreateAppMonitor":{
      "name":"CreateAppMonitor",
      "http":{
        "method":"POST",
        "requestUri":"/appmonitor",
        "responseCode":200
      },
      "input":{"shape":"CreateAppMonitorRequest"},
      "output":{"shape":"CreateAppMonitorResponse"},
      "errors":[
        {"shape":"ConflictException"},
        {"shape":"ServiceQuotaExceededException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>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.</p> <p>You use this operation only to create a new app monitor. To update an existing app monitor, use <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_UpdateAppMonitor.html\">UpdateAppMonitor</a> instead.</p> <p>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 <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html\">How do I find a code snippet that I've already generated?</a> </p>",
      "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":"<p>Deletes an existing app monitor. This immediately stops the collection of data.</p>",
      "idempotent":true
    },
    "DeleteResourcePolicy":{
      "name":"DeleteResourcePolicy",
      "http":{
        "method":"DELETE",
        "requestUri":"/appmonitor/{Name}/policy",
        "responseCode":200
      },
      "input":{"shape":"DeleteResourcePolicyRequest"},
      "output":{"shape":"DeleteResourcePolicyResponse"},
      "errors":[
        {"shape":"InvalidPolicyRevisionIdException"},
        {"shape":"ConflictException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"PolicyNotFoundException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Removes the association of a resource-based policy from an app monitor.</p>",
      "idempotent":true
    },
    "DeleteRumMetricsDestination":{
      "name":"DeleteRumMetricsDestination",
      "http":{
        "method":"DELETE",
        "requestUri":"/rummetrics/{AppMonitorName}/metricsdestination",
        "responseCode":200
      },
      "input":{"shape":"DeleteRumMetricsDestinationRequest"},
      "output":{"shape":"DeleteRumMetricsDestinationResponse"},
      "errors":[
        {"shape":"ConflictException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Deletes a destination for CloudWatch RUM extended metrics, so that the specified app monitor stops sending extended metrics to that destination.</p>",
      "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":"<p>Retrieves the complete configuration information for one app monitor.</p>",
      "readonly":true
    },
    "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":"<p>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.</p>",
      "readonly":true
    },
    "GetResourcePolicy":{
      "name":"GetResourcePolicy",
      "http":{
        "method":"GET",
        "requestUri":"/appmonitor/{Name}/policy",
        "responseCode":200
      },
      "input":{"shape":"GetResourcePolicyRequest"},
      "output":{"shape":"GetResourcePolicyResponse"},
      "errors":[
        {"shape":"ConflictException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"PolicyNotFoundException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Use this operation to retrieve information about a resource-based policy that is attached to an app monitor.</p>",
      "readonly":true
    },
    "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":"<p>Returns a list of the Amazon CloudWatch RUM app monitors in the account.</p>",
      "readonly":true
    },
    "ListRumMetricsDestinations":{
      "name":"ListRumMetricsDestinations",
      "http":{
        "method":"GET",
        "requestUri":"/rummetrics/{AppMonitorName}/metricsdestination",
        "responseCode":200
      },
      "input":{"shape":"ListRumMetricsDestinationsRequest"},
      "output":{"shape":"ListRumMetricsDestinationsResponse"},
      "errors":[
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Returns a list of destinations that you have created to receive RUM extended metrics, for the specified app monitor.</p> <p>For more information about extended metrics, see <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_AddRumMetrcs.html\">AddRumMetrics</a>.</p>",
      "readonly":true
    },
    "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":"<p>Displays the tags associated with a CloudWatch RUM resource.</p>",
      "readonly":true
    },
    "PutResourcePolicy":{
      "name":"PutResourcePolicy",
      "http":{
        "method":"PUT",
        "requestUri":"/appmonitor/{Name}/policy",
        "responseCode":200
      },
      "input":{"shape":"PutResourcePolicyRequest"},
      "output":{"shape":"PutResourcePolicyResponse"},
      "errors":[
        {"shape":"PolicySizeLimitExceededException"},
        {"shape":"InvalidPolicyRevisionIdException"},
        {"shape":"ConflictException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"MalformedPolicyDocumentException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Use this operation to assign a resource-based policy to a CloudWatch RUM app monitor to control access to it. Each app monitor can have one resource-based policy. The maximum size of the policy is 4 KB. To learn more about using resource policies with RUM, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html\">Using resource-based policies with CloudWatch RUM</a>.</p>",
      "idempotent":true
    },
    "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":"<p>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 <code>PutRumEvents</code> operations to send this data to RUM.</p> <p>Each <code>PutRumEvents</code> operation can send a batch of events from one user session.</p>",
      "endpoint":{"hostPrefix":"dataplane."}
    },
    "PutRumMetricsDestination":{
      "name":"PutRumMetricsDestination",
      "http":{
        "method":"POST",
        "requestUri":"/rummetrics/{AppMonitorName}/metricsdestination",
        "responseCode":200
      },
      "input":{"shape":"PutRumMetricsDestinationRequest"},
      "output":{"shape":"PutRumMetricsDestinationResponse"},
      "errors":[
        {"shape":"ConflictException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>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.</p> <p>For more information about extended metrics, see <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchCreateRumMetricDefinitions.html\">BatchCreateRumMetricDefinitions</a>.</p>",
      "idempotent":true
    },
    "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":"<p>Assigns one or more tags (key-value pairs) to the specified CloudWatch RUM resource. Currently, the only resources that can be tagged app monitors.</p> <p>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.</p> <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p> <p>You can use the <code>TagResource</code> 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.</p> <p>You can associate as many as 50 tags with a resource.</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>",
      "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":"<p>Removes one or more tags from the specified resource.</p>",
      "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":"<p>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.</p> <p>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 <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_TagResource.html\">TagResource</a>.</p> <p>To create a new app monitor, use <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_CreateAppMonitor.html\">CreateAppMonitor</a>.</p> <p>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 <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-find-code-snippet.html\">How do I find a code snippet that I've already generated?</a> </p>"
    },
    "UpdateRumMetricDefinition":{
      "name":"UpdateRumMetricDefinition",
      "http":{
        "method":"PATCH",
        "requestUri":"/rummetrics/{AppMonitorName}/metrics",
        "responseCode":200
      },
      "input":{"shape":"UpdateRumMetricDefinitionRequest"},
      "output":{"shape":"UpdateRumMetricDefinitionResponse"},
      "errors":[
        {"shape":"ConflictException"},
        {"shape":"ServiceQuotaExceededException"},
        {"shape":"ResourceNotFoundException"},
        {"shape":"InternalServerException"},
        {"shape":"ValidationException"},
        {"shape":"ThrottlingException"},
        {"shape":"AccessDeniedException"}
      ],
      "documentation":"<p>Modifies one existing metric definition for CloudWatch RUM extended metrics. For more information about extended metrics, see <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchCreateRumMetricsDefinitions.html\">BatchCreateRumMetricsDefinitions</a>.</p>",
      "idempotent":true
    }
  },
  "shapes":{
    "AccessDeniedException":{
      "type":"structure",
      "required":["message"],
      "members":{
        "message":{"shape":"String"}
      },
      "documentation":"<p>You don't have sufficient permissions to perform this action.</p>",
      "error":{
        "httpStatusCode":403,
        "senderFault":true
      },
      "exception":true
    },
    "Alias":{
      "type":"string",
      "max":255,
      "min":1
    },
    "AppMonitor":{
      "type":"structure",
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor.</p>"
        },
        "Domain":{
          "shape":"AppMonitorDomain",
          "documentation":"<p>The top-level internet domain name for which your application has administrative authority.</p>"
        },
        "DomainList":{
          "shape":"AppMonitorDomainList",
          "documentation":"<p> List the domain names for which your application has administrative authority. </p>"
        },
        "Id":{
          "shape":"AppMonitorId",
          "documentation":"<p>The unique ID of this app monitor.</p>"
        },
        "Created":{
          "shape":"ISOTimestampString",
          "documentation":"<p>The date and time that this app monitor was created.</p>"
        },
        "LastModified":{
          "shape":"ISOTimestampString",
          "documentation":"<p>The date and time of the most recent changes to this app monitor's configuration.</p>"
        },
        "Tags":{
          "shape":"TagMap",
          "documentation":"<p>The list of tag keys and values associated with this app monitor.</p>"
        },
        "State":{
          "shape":"StateEnum",
          "documentation":"<p>The current state of the app monitor.</p>"
        },
        "AppMonitorConfiguration":{
          "shape":"AppMonitorConfiguration",
          "documentation":"<p>A structure that contains much of the configuration data for the app monitor.</p>"
        },
        "DataStorage":{
          "shape":"DataStorage",
          "documentation":"<p>A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM collects using CloudWatch Logs.</p>"
        },
        "CustomEvents":{
          "shape":"CustomEvents",
          "documentation":"<p>Specifies whether this app monitor allows the web client to define and send custom events.</p> <p>For more information about custom events, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html\">Send custom events</a>.</p>"
        },
        "DeobfuscationConfiguration":{
          "shape":"DeobfuscationConfiguration",
          "documentation":"<p> A structure that contains the configuration for how an app monitor can deobfuscate stack traces. </p>"
        },
        "Platform":{
          "shape":"AppMonitorPlatform",
          "documentation":"<p>The platform type for this app monitor. Valid values are <code>Web</code> for web applications , <code>Android</code> for Android applications, and <code>iOS</code> for IOS applications.</p>"
        }
      },
      "documentation":"<p>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.</p>"
    },
    "AppMonitorConfiguration":{
      "type":"structure",
      "members":{
        "IdentityPoolId":{
          "shape":"IdentityPoolId",
          "documentation":"<p>The ID of the Amazon Cognito identity pool that is used to authorize the sending of data to RUM.</p>"
        },
        "ExcludedPages":{
          "shape":"Pages",
          "documentation":"<p>A list of URLs in your website or application to exclude from RUM data collection.</p> <p>You can't include both <code>ExcludedPages</code> and <code>IncludedPages</code> in the same operation.</p>"
        },
        "IncludedPages":{
          "shape":"Pages",
          "documentation":"<p>If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. </p> <p>You can't include both <code>ExcludedPages</code> and <code>IncludedPages</code> in the same operation.</p>"
        },
        "FavoritePages":{
          "shape":"FavoritePages",
          "documentation":"<p>A list of pages in your application that are to be displayed with a \"favorite\" icon in the CloudWatch RUM console.</p>"
        },
        "SessionSampleRate":{
          "shape":"SessionSampleRate",
          "documentation":"<p>Specifies the portion of user sessions to use for RUM data collection. Choosing a higher portion gives you more data but also incurs more costs.</p> <p>The range for this value is 0 to 1 inclusive. Setting this to 1 means that 100% of user sessions are sampled, and setting it to 0.1 means that 10% of user sessions are sampled.</p> <p>If you omit this parameter, the default of 0.1 is used, and 10% of sessions will be sampled.</p>"
        },
        "GuestRoleArn":{
          "shape":"Arn",
          "documentation":"<p>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.</p> <note> <p>It is possible that an app monitor does not have a value for <code>GuestRoleArn</code>. For example, this can happen when you use the console to create an app monitor and you allow CloudWatch RUM to create a new identity pool for Authorization. In this case, <code>GuestRoleArn</code> is not present in the <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_GetAppMonitor.html\">GetAppMonitor</a> response because it is not stored by the service.</p> <p>If this issue affects you, you can take one of the following steps:</p> <ul> <li> <p>Use the Cloud Development Kit (CDK) to create an identity pool and the associated IAM role, and use that for your app monitor.</p> </li> <li> <p>Make a separate <a href=\"https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetIdentityPoolRoles.html\">GetIdentityPoolRoles</a> call to Amazon Cognito to retrieve the <code>GuestRoleArn</code>.</p> </li> </ul> </note>"
        },
        "AllowCookies":{
          "shape":"Boolean",
          "documentation":"<p>If you set this to <code>true</code>, 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.</p>"
        },
        "Telemetries":{
          "shape":"Telemetries",
          "documentation":"<p>An array that lists the types of telemetry data that this app monitor is to collect.</p> <ul> <li> <p> <code>errors</code> indicates that RUM collects data about unhandled JavaScript errors raised by your application.</p> </li> <li> <p> <code>performance</code> indicates that RUM collects performance data about how your application and its resources are loaded and rendered. This includes Core Web Vitals.</p> </li> <li> <p> <code>http</code> indicates that RUM collects data about HTTP errors thrown by your application.</p> </li> </ul>"
        },
        "EnableXRay":{
          "shape":"Boolean",
          "documentation":"<p>If you set this to <code>true</code>, 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 <a href=\"https://docs.aws.amazon.com/xray/latest/devguide/aws-xray.html\">What is X-Ray?</a> </p>"
        }
      },
      "documentation":"<p>This structure contains much of the configuration data for the app monitor.</p>"
    },
    "AppMonitorDetails":{
      "type":"structure",
      "members":{
        "name":{
          "shape":"String",
          "documentation":"<p>The name of the app monitor.</p>"
        },
        "id":{
          "shape":"String",
          "documentation":"<p>The unique ID of the app monitor.</p>"
        },
        "version":{
          "shape":"String",
          "documentation":"<p>The version of the app monitor.</p>"
        }
      },
      "documentation":"<p>A structure that contains information about the RUM app monitor.</p>"
    },
    "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\\.\\*-]{4,253}$)(?!.*\\.-)(?!.*-\\.)(?!.*\\.\\.)(?!.*[^\\.]{64,})^(\\*\\.)?(?![-\\.\\*])[^\\*]{1,}\\.(\\*|(?!.*--)(?=.*[a-zA-Z])[^\\*]{1,}[^\\*-])"
    },
    "AppMonitorDomainList":{
      "type":"list",
      "member":{"shape":"AppMonitorDomain"},
      "max":5,
      "min":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]+"
    },
    "AppMonitorPlatform":{
      "type":"string",
      "enum":[
        "Web",
        "Android",
        "iOS"
      ]
    },
    "AppMonitorSummary":{
      "type":"structure",
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of this app monitor.</p>"
        },
        "Id":{
          "shape":"AppMonitorId",
          "documentation":"<p>The unique ID of this app monitor.</p>"
        },
        "Created":{
          "shape":"ISOTimestampString",
          "documentation":"<p>The date and time that the app monitor was created.</p>"
        },
        "LastModified":{
          "shape":"ISOTimestampString",
          "documentation":"<p>The date and time of the most recent changes to this app monitor's configuration.</p>"
        },
        "State":{
          "shape":"StateEnum",
          "documentation":"<p>The current state of this app monitor.</p>"
        },
        "Platform":{
          "shape":"AppMonitorPlatform",
          "documentation":"<p>The platform type for this app monitor. Valid values are <code>Web</code> for web applications, <code>Android</code> for Android applications, and <code>iOS</code> for IOS applications.</p>"
        }
      },
      "documentation":"<p>A structure that includes some data about app monitors and their settings.</p>"
    },
    "AppMonitorSummaryList":{
      "type":"list",
      "member":{"shape":"AppMonitorSummary"}
    },
    "Arn":{
      "type":"string",
      "pattern":".*arn:[^:]*:[^:]*:[^:]*:[^:]*:.*"
    },
    "BatchCreateRumMetricDefinitionsError":{
      "type":"structure",
      "required":[
        "MetricDefinition",
        "ErrorCode",
        "ErrorMessage"
      ],
      "members":{
        "MetricDefinition":{
          "shape":"MetricDefinitionRequest",
          "documentation":"<p>The metric definition that caused this error.</p>"
        },
        "ErrorCode":{
          "shape":"String",
          "documentation":"<p>The error code.</p>"
        },
        "ErrorMessage":{
          "shape":"String",
          "documentation":"<p>The error message for this metric definition.</p>"
        }
      },
      "documentation":"<p>A structure that defines one error caused by a <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchCreateRumMetricsDefinitions.html\">BatchCreateRumMetricsDefinitions</a> operation.</p>"
    },
    "BatchCreateRumMetricDefinitionsErrors":{
      "type":"list",
      "member":{"shape":"BatchCreateRumMetricDefinitionsError"}
    },
    "BatchCreateRumMetricDefinitionsRequest":{
      "type":"structure",
      "required":[
        "AppMonitorName",
        "Destination",
        "MetricDefinitions"
      ],
      "members":{
        "AppMonitorName":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the CloudWatch RUM app monitor that is to send the metrics.</p>",
          "location":"uri",
          "locationName":"AppMonitorName"
        },
        "Destination":{
          "shape":"MetricDestination",
          "documentation":"<p>The destination to send the metrics to. Valid values are <code>CloudWatch</code> and <code>Evidently</code>. If you specify <code>Evidently</code>, 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.</p>"
        },
        "DestinationArn":{
          "shape":"DestinationArn",
          "documentation":"<p>This parameter is required if <code>Destination</code> is <code>Evidently</code>. If <code>Destination</code> is <code>CloudWatch</code>, do not use this parameter.</p> <p>This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html\">PutRumMetricsDestination</a>.</p>"
        },
        "MetricDefinitions":{
          "shape":"MetricDefinitionsRequest",
          "documentation":"<p>An array of structures which define the metrics that you want to send.</p>"
        }
      }
    },
    "BatchCreateRumMetricDefinitionsResponse":{
      "type":"structure",
      "required":["Errors"],
      "members":{
        "Errors":{
          "shape":"BatchCreateRumMetricDefinitionsErrors",
          "documentation":"<p>An array of error objects, if the operation caused any errors.</p>"
        },
        "MetricDefinitions":{
          "shape":"MetricDefinitions",
          "documentation":"<p>An array of structures that define the extended metrics.</p>"
        }
      }
    },
    "BatchDeleteRumMetricDefinitionsError":{
      "type":"structure",
      "required":[
        "MetricDefinitionId",
        "ErrorCode",
        "ErrorMessage"
      ],
      "members":{
        "MetricDefinitionId":{
          "shape":"MetricDefinitionId",
          "documentation":"<p>The ID of the metric definition that caused this error.</p>"
        },
        "ErrorCode":{
          "shape":"String",
          "documentation":"<p>The error code.</p>"
        },
        "ErrorMessage":{
          "shape":"String",
          "documentation":"<p>The error message for this metric definition.</p>"
        }
      },
      "documentation":"<p>A structure that defines one error caused by a <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_BatchDeleteRumMetricsDefinitions.html\">BatchCreateRumMetricsDefinitions</a> operation.</p>"
    },
    "BatchDeleteRumMetricDefinitionsErrors":{
      "type":"list",
      "member":{"shape":"BatchDeleteRumMetricDefinitionsError"}
    },
    "BatchDeleteRumMetricDefinitionsRequest":{
      "type":"structure",
      "required":[
        "AppMonitorName",
        "Destination",
        "MetricDefinitionIds"
      ],
      "members":{
        "AppMonitorName":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the CloudWatch RUM app monitor that is sending these metrics.</p>",
          "location":"uri",
          "locationName":"AppMonitorName"
        },
        "Destination":{
          "shape":"MetricDestination",
          "documentation":"<p>Defines the destination where you want to stop sending the specified metrics. Valid values are <code>CloudWatch</code> and <code>Evidently</code>. If you specify <code>Evidently</code>, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.</p>",
          "location":"querystring",
          "locationName":"destination"
        },
        "DestinationArn":{
          "shape":"DestinationArn",
          "documentation":"<p>This parameter is required if <code>Destination</code> is <code>Evidently</code>. If <code>Destination</code> is <code>CloudWatch</code>, do not use this parameter. </p> <p>This parameter specifies the ARN of the Evidently experiment that was receiving the metrics that are being deleted.</p>",
          "location":"querystring",
          "locationName":"destinationArn"
        },
        "MetricDefinitionIds":{
          "shape":"MetricDefinitionIds",
          "documentation":"<p>An array of structures which define the metrics that you want to stop sending.</p>",
          "location":"querystring",
          "locationName":"metricDefinitionIds"
        }
      }
    },
    "BatchDeleteRumMetricDefinitionsResponse":{
      "type":"structure",
      "required":["Errors"],
      "members":{
        "Errors":{
          "shape":"BatchDeleteRumMetricDefinitionsErrors",
          "documentation":"<p>An array of error objects, if the operation caused any errors.</p>"
        },
        "MetricDefinitionIds":{
          "shape":"MetricDefinitionIds",
          "documentation":"<p>The IDs of the metric definitions that were deleted.</p>"
        }
      }
    },
    "BatchGetRumMetricDefinitionsRequest":{
      "type":"structure",
      "required":[
        "AppMonitorName",
        "Destination"
      ],
      "members":{
        "AppMonitorName":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the CloudWatch RUM app monitor that is sending the metrics.</p>",
          "location":"uri",
          "locationName":"AppMonitorName"
        },
        "Destination":{
          "shape":"MetricDestination",
          "documentation":"<p>The type of destination that you want to view metrics for. Valid values are <code>CloudWatch</code> and <code>Evidently</code>.</p>",
          "location":"querystring",
          "locationName":"destination"
        },
        "DestinationArn":{
          "shape":"DestinationArn",
          "documentation":"<p>This parameter is required if <code>Destination</code> is <code>Evidently</code>. If <code>Destination</code> is <code>CloudWatch</code>, do not use this parameter.</p> <p>This parameter specifies the ARN of the Evidently experiment that corresponds to the destination.</p>",
          "location":"querystring",
          "locationName":"destinationArn"
        },
        "MaxResults":{
          "shape":"MaxResultsInteger",
          "documentation":"<p>The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.</p> <p>To retrieve the remaining results, make another call with the returned <code>NextToken</code> value. </p>",
          "location":"querystring",
          "locationName":"maxResults"
        },
        "NextToken":{
          "shape":"String",
          "documentation":"<p>Use the token returned by the previous operation to request the next page of results.</p>",
          "location":"querystring",
          "locationName":"nextToken"
        }
      }
    },
    "BatchGetRumMetricDefinitionsResponse":{
      "type":"structure",
      "members":{
        "MetricDefinitions":{
          "shape":"MetricDefinitions",
          "documentation":"<p>An array of structures that display information about the metrics that are sent by the specified app monitor to the specified destination.</p>"
        },
        "NextToken":{
          "shape":"String",
          "documentation":"<p>A token that you can use in a subsequent operation to retrieve the next set of results.</p>"
        }
      }
    },
    "Boolean":{
      "type":"boolean",
      "box":true
    },
    "ConflictException":{
      "type":"structure",
      "required":[
        "message",
        "resourceName"
      ],
      "members":{
        "message":{"shape":"String"},
        "resourceName":{
          "shape":"String",
          "documentation":"<p>The name of the resource that is associated with the error.</p>"
        },
        "resourceType":{
          "shape":"String",
          "documentation":"<p>The type of the resource that is associated with the error.</p>"
        }
      },
      "documentation":"<p>This operation attempted to create a resource that already exists.</p>",
      "error":{
        "httpStatusCode":409,
        "senderFault":true
      },
      "exception":true
    },
    "CreateAppMonitorRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>A name for the app monitor.</p>"
        },
        "Domain":{
          "shape":"AppMonitorDomain",
          "documentation":"<p>The top-level internet domain name for which your application has administrative authority.</p>"
        },
        "DomainList":{
          "shape":"AppMonitorDomainList",
          "documentation":"<p> List the domain names for which your application has administrative authority. The <code>CreateAppMonitor</code> requires either the domain or the domain list. </p>"
        },
        "Tags":{
          "shape":"TagMap",
          "documentation":"<p>Assigns one or more tags (key-value pairs) to the app monitor.</p> <p>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.</p> <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p> <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>"
        },
        "AppMonitorConfiguration":{
          "shape":"AppMonitorConfiguration",
          "documentation":"<p>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 <code>AppMonitorConfiguration</code>, you must set up your own authorization method. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html\">Authorize your application to send data to Amazon Web Services</a>.</p> <p>If you omit this argument, the sample rate used for RUM is set to 10% of the user sessions.</p>"
        },
        "CwLogEnabled":{
          "shape":"Boolean",
          "documentation":"<p>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.</p> <p>If you omit this parameter, the default is <code>false</code>.</p>"
        },
        "CustomEvents":{
          "shape":"CustomEvents",
          "documentation":"<p>Specifies whether this app monitor allows the web client to define and send custom events. If you omit this parameter, custom events are <code>DISABLED</code>.</p> <p>For more information about custom events, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html\">Send custom events</a>.</p>"
        },
        "DeobfuscationConfiguration":{
          "shape":"DeobfuscationConfiguration",
          "documentation":"<p> A structure that contains the configuration for how an app monitor can deobfuscate stack traces. </p>"
        },
        "Platform":{
          "shape":"AppMonitorPlatform",
          "documentation":"<p>The platform type for the app monitor. Valid values are <code>Web</code> for web applications, <code>Android</code> for Android applications, and <code>iOS</code> for IOS applications. If you omit this parameter, the default is <code>Web</code>.</p>"
        }
      }
    },
    "CreateAppMonitorResponse":{
      "type":"structure",
      "members":{
        "Id":{
          "shape":"AppMonitorId",
          "documentation":"<p>The unique ID of the new app monitor.</p>"
        }
      }
    },
    "CustomEvents":{
      "type":"structure",
      "members":{
        "Status":{
          "shape":"CustomEventsStatus",
          "documentation":"<p>Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be <code>DISABLED</code>.</p>"
        }
      },
      "documentation":"<p>A structure that contains information about custom events for this app monitor.</p>"
    },
    "CustomEventsStatus":{
      "type":"string",
      "enum":[
        "ENABLED",
        "DISABLED"
      ]
    },
    "CwLog":{
      "type":"structure",
      "members":{
        "CwLogEnabled":{
          "shape":"Boolean",
          "documentation":"<p>Indicated whether the app monitor stores copies of the data that RUM collects in CloudWatch Logs.</p>"
        },
        "CwLogGroup":{
          "shape":"String",
          "documentation":"<p>The name of the log group where the copies are stored.</p>"
        }
      },
      "documentation":"<p>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.</p>"
    },
    "DataStorage":{
      "type":"structure",
      "members":{
        "CwLog":{
          "shape":"CwLog",
          "documentation":"<p>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.</p>"
        }
      },
      "documentation":"<p>A structure that contains information about whether this app monitor stores a copy of the telemetry data that RUM collects using CloudWatch Logs.</p>"
    },
    "DeleteAppMonitorRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor to delete.</p>",
          "location":"uri",
          "locationName":"Name"
        }
      }
    },
    "DeleteAppMonitorResponse":{
      "type":"structure",
      "members":{}
    },
    "DeleteResourcePolicyRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The app monitor that you want to remove the resource policy from.</p>",
          "location":"uri",
          "locationName":"Name"
        },
        "PolicyRevisionId":{
          "shape":"PolicyRevisionId",
          "documentation":"<p>Specifies a specific policy revision to delete. Provide a <code>PolicyRevisionId</code> to ensure an atomic delete operation. If the revision ID that you provide doesn't match the latest policy revision ID, the request will be rejected with an <code>InvalidPolicyRevisionIdException</code> error.</p>",
          "location":"querystring",
          "locationName":"policyRevisionId"
        }
      }
    },
    "DeleteResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "PolicyRevisionId":{
          "shape":"PolicyRevisionId",
          "documentation":"<p>The revision ID of the policy that was removed, if it had one.</p>"
        }
      }
    },
    "DeleteRumMetricsDestinationRequest":{
      "type":"structure",
      "required":[
        "AppMonitorName",
        "Destination"
      ],
      "members":{
        "AppMonitorName":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor that is sending metrics to the destination that you want to delete.</p>",
          "location":"uri",
          "locationName":"AppMonitorName"
        },
        "Destination":{
          "shape":"MetricDestination",
          "documentation":"<p>The type of destination to delete. Valid values are <code>CloudWatch</code> and <code>Evidently</code>.</p>",
          "location":"querystring",
          "locationName":"destination"
        },
        "DestinationArn":{
          "shape":"DestinationArn",
          "documentation":"<p>This parameter is required if <code>Destination</code> is <code>Evidently</code>. If <code>Destination</code> is <code>CloudWatch</code>, do not use this parameter. This parameter specifies the ARN of the Evidently experiment that corresponds to the destination to delete.</p>",
          "location":"querystring",
          "locationName":"destinationArn"
        }
      }
    },
    "DeleteRumMetricsDestinationResponse":{
      "type":"structure",
      "members":{}
    },
    "DeobfuscationConfiguration":{
      "type":"structure",
      "members":{
        "JavaScriptSourceMaps":{
          "shape":"JavaScriptSourceMaps",
          "documentation":"<p> A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps. </p>"
        }
      },
      "documentation":"<p> A structure that contains the configuration for how an app monitor can deobfuscate stack traces. </p>"
    },
    "DeobfuscationS3Uri":{
      "type":"string",
      "max":1024,
      "min":1,
      "pattern":"s3://[a-z0-9][-.a-z0-9]{1,62}(?:/[-!_*'().a-z0-9A-Z]+(?:/[-!_*'().a-z0-9A-Z]+)*)?/?"
    },
    "DeobfuscationStatus":{
      "type":"string",
      "enum":[
        "ENABLED",
        "DISABLED"
      ]
    },
    "DestinationArn":{
      "type":"string",
      "max":2048,
      "min":0,
      "pattern":".*arn:[^:]*:[^:]*:[^:]*:[^:]*:.*"
    },
    "DimensionKey":{
      "type":"string",
      "max":280,
      "min":1
    },
    "DimensionKeysMap":{
      "type":"map",
      "key":{"shape":"DimensionKey"},
      "value":{"shape":"DimensionName"},
      "max":29,
      "min":0
    },
    "DimensionName":{
      "type":"string",
      "max":255,
      "min":1,
      "pattern":"(?!:).*[^\\s].*"
    },
    "EventData":{"type":"string"},
    "EventDataList":{
      "type":"list",
      "member":{"shape":"EventData"}
    },
    "EventPattern":{
      "type":"string",
      "max":4000,
      "min":0
    },
    "FavoritePages":{
      "type":"list",
      "member":{"shape":"String"},
      "max":50,
      "min":0
    },
    "GetAppMonitorDataRequest":{
      "type":"structure",
      "required":[
        "Name",
        "TimeRange"
      ],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor that collected the data that you want to retrieve.</p>",
          "location":"uri",
          "locationName":"Name"
        },
        "TimeRange":{
          "shape":"TimeRange",
          "documentation":"<p>A structure that defines the time range that you want to retrieve results from.</p>"
        },
        "Filters":{
          "shape":"QueryFilters",
          "documentation":"<p>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.</p>"
        },
        "MaxResults":{
          "shape":"MaxQueryResults",
          "documentation":"<p>The maximum number of results to return in one operation. </p>"
        },
        "NextToken":{
          "shape":"Token",
          "documentation":"<p>Use the token returned by the previous operation to request the next page of results.</p>"
        }
      }
    },
    "GetAppMonitorDataResponse":{
      "type":"structure",
      "members":{
        "Events":{
          "shape":"EventDataList",
          "documentation":"<p>The events that RUM collected that match your request.</p>"
        },
        "NextToken":{
          "shape":"Token",
          "documentation":"<p>A token that you can use in a subsequent operation to retrieve the next set of results.</p>"
        }
      }
    },
    "GetAppMonitorRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The app monitor to retrieve information for.</p>",
          "location":"uri",
          "locationName":"Name"
        }
      }
    },
    "GetAppMonitorResponse":{
      "type":"structure",
      "members":{
        "AppMonitor":{
          "shape":"AppMonitor",
          "documentation":"<p>A structure containing all the configuration information for the app monitor.</p>"
        }
      }
    },
    "GetResourcePolicyRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor that is associated with the resource-based policy that you want to view.</p>",
          "location":"uri",
          "locationName":"Name"
        }
      }
    },
    "GetResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "PolicyDocument":{
          "shape":"String",
          "documentation":"<p>The JSON policy document that you requested.</p>"
        },
        "PolicyRevisionId":{
          "shape":"PolicyRevisionId",
          "documentation":"<p>The revision ID information for this version of the policy document that you requested.</p>"
        }
      }
    },
    "ISOTimestampString":{
      "type":"string",
      "max":19,
      "min":19
    },
    "IamRoleArn":{
      "type":"string",
      "pattern":".*arn:[^:]*:[^:]*:[^:]*:[^:]*:.*"
    },
    "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":"<p>The value of a parameter in the request caused an error.</p>",
          "location":"header",
          "locationName":"Retry-After"
        }
      },
      "documentation":"<p>Internal service exception.</p>",
      "error":{"httpStatusCode":500},
      "exception":true,
      "fault":true,
      "retryable":{"throttling":false}
    },
    "InvalidPolicyRevisionIdException":{
      "type":"structure",
      "required":["message"],
      "members":{
        "message":{"shape":"String"}
      },
      "documentation":"<p>The policy revision ID that you provided doeesn't match the latest policy revision ID.</p>",
      "error":{
        "httpStatusCode":400,
        "senderFault":true
      },
      "exception":true
    },
    "JavaScriptSourceMaps":{
      "type":"structure",
      "required":["Status"],
      "members":{
        "Status":{
          "shape":"DeobfuscationStatus",
          "documentation":"<p> Specifies whether JavaScript error stack traces should be unminified for this app monitor. The default is for JavaScript error stack trace unminification to be <code>DISABLED</code>. </p>"
        },
        "S3Uri":{
          "shape":"DeobfuscationS3Uri",
          "documentation":"<p> The S3Uri of the bucket or folder that stores the source map files. It is required if status is ENABLED. </p>"
        }
      },
      "documentation":"<p> A structure that contains the configuration for how an app monitor can unminify JavaScript error stack traces using source maps. </p>"
    },
    "JsonValue":{"type":"string"},
    "ListAppMonitorsRequest":{
      "type":"structure",
      "members":{
        "MaxResults":{
          "shape":"MaxResultsInteger",
          "documentation":"<p>The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.</p>",
          "location":"querystring",
          "locationName":"maxResults"
        },
        "NextToken":{
          "shape":"String",
          "documentation":"<p>Use the token returned by the previous operation to request the next page of results.</p>",
          "location":"querystring",
          "locationName":"nextToken"
        }
      }
    },
    "ListAppMonitorsResponse":{
      "type":"structure",
      "members":{
        "NextToken":{
          "shape":"String",
          "documentation":"<p>A token that you can use in a subsequent operation to retrieve the next set of results.</p>"
        },
        "AppMonitorSummaries":{
          "shape":"AppMonitorSummaryList",
          "documentation":"<p>An array of structures that contain information about the returned app monitors.</p>"
        }
      }
    },
    "ListRumMetricsDestinationsRequest":{
      "type":"structure",
      "required":["AppMonitorName"],
      "members":{
        "AppMonitorName":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor associated with the destinations that you want to retrieve.</p>",
          "location":"uri",
          "locationName":"AppMonitorName"
        },
        "MaxResults":{
          "shape":"MaxResultsInteger",
          "documentation":"<p>The maximum number of results to return in one operation. The default is 50. The maximum that you can specify is 100.</p> <p>To retrieve the remaining results, make another call with the returned <code>NextToken</code> value. </p>",
          "location":"querystring",
          "locationName":"maxResults"
        },
        "NextToken":{
          "shape":"String",
          "documentation":"<p>Use the token returned by the previous operation to request the next page of results.</p>",
          "location":"querystring",
          "locationName":"nextToken"
        }
      }
    },
    "ListRumMetricsDestinationsResponse":{
      "type":"structure",
      "members":{
        "Destinations":{
          "shape":"MetricDestinationSummaryList",
          "documentation":"<p>The list of CloudWatch RUM extended metrics destinations associated with the app monitor that you specified.</p>"
        },
        "NextToken":{
          "shape":"String",
          "documentation":"<p>A token that you can use in a subsequent operation to retrieve the next set of results.</p>"
        }
      }
    },
    "ListTagsForResourceRequest":{
      "type":"structure",
      "required":["ResourceArn"],
      "members":{
        "ResourceArn":{
          "shape":"Arn",
          "documentation":"<p>The ARN of the resource that you want to see the tags of.</p>",
          "location":"uri",
          "locationName":"ResourceArn"
        }
      }
    },
    "ListTagsForResourceResponse":{
      "type":"structure",
      "required":[
        "ResourceArn",
        "Tags"
      ],
      "members":{
        "ResourceArn":{
          "shape":"Arn",
          "documentation":"<p>The ARN of the resource that you are viewing.</p>"
        },
        "Tags":{
          "shape":"TagMap",
          "documentation":"<p>The list of tag keys and values associated with the resource you specified.</p>"
        }
      }
    },
    "MalformedPolicyDocumentException":{
      "type":"structure",
      "required":["message"],
      "members":{
        "message":{"shape":"String"}
      },
      "documentation":"<p>The policy document that you specified is not formatted correctly.</p>",
      "error":{
        "httpStatusCode":400,
        "senderFault":true
      },
      "exception":true
    },
    "MaxQueryResults":{
      "type":"integer",
      "max":100,
      "min":0
    },
    "MaxResultsInteger":{
      "type":"integer",
      "box":true,
      "max":100,
      "min":1
    },
    "MetricDefinition":{
      "type":"structure",
      "required":[
        "MetricDefinitionId",
        "Name"
      ],
      "members":{
        "MetricDefinitionId":{
          "shape":"MetricDefinitionId",
          "documentation":"<p>The ID of this metric definition.</p>"
        },
        "Name":{
          "shape":"MetricName",
          "documentation":"<p>The name of the metric that is defined in this structure.</p>"
        },
        "ValueKey":{
          "shape":"ValueKey",
          "documentation":"<p>The field within the event object that the metric value is sourced from.</p>"
        },
        "UnitLabel":{
          "shape":"UnitLabel",
          "documentation":"<p>Use this field only if you are sending this metric to CloudWatch. It defines the CloudWatch metric unit that this metric is measured in. </p>"
        },
        "DimensionKeys":{
          "shape":"DimensionKeysMap",
          "documentation":"<p>This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch The value of this field is used only if the metric destination is <code>CloudWatch</code>. If the metric destination is <code>Evidently</code>, the value of <code>DimensionKeys</code> is ignored.</p>"
        },
        "EventPattern":{
          "shape":"EventPattern",
          "documentation":"<p>The pattern that defines the metric. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination.</p> <p>If the metrics destination is <code>CloudWatch</code> and the event also matches a value in <code>DimensionKeys</code>, then the metric is published with the specified dimensions. </p>"
        },
        "Namespace":{
          "shape":"Namespace",
          "documentation":"<p>If this metric definition is for a custom metric instead of an extended metric, this field displays the metric namespace that the custom metric is published to.</p>"
        }
      },
      "documentation":"<p>A structure that displays the definition of one extended metric that RUM sends to CloudWatch or CloudWatch Evidently. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-vended-metrics.html\"> Additional metrics that you can send to CloudWatch and CloudWatch Evidently</a>.</p>"
    },
    "MetricDefinitionId":{
      "type":"string",
      "max":255,
      "min":1
    },
    "MetricDefinitionIds":{
      "type":"list",
      "member":{"shape":"MetricDefinitionId"}
    },
    "MetricDefinitionRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"MetricName",
          "documentation":"<p>The name for the metric that is defined in this structure. For custom metrics, you can specify any name that you like. For extended metrics, valid values are the following:</p> <ul> <li> <p> <code>PerformanceNavigationDuration</code> </p> </li> <li> <p> <code>PerformanceResourceDuration </code> </p> </li> <li> <p> <code>NavigationSatisfiedTransaction</code> </p> </li> <li> <p> <code>NavigationToleratedTransaction</code> </p> </li> <li> <p> <code>NavigationFrustratedTransaction</code> </p> </li> <li> <p> <code>WebVitalsCumulativeLayoutShift</code> </p> </li> <li> <p> <code>WebVitalsFirstInputDelay</code> </p> </li> <li> <p> <code>WebVitalsLargestContentfulPaint</code> </p> </li> <li> <p> <code>JsErrorCount</code> </p> </li> <li> <p> <code>HttpErrorCount</code> </p> </li> <li> <p> <code>SessionCount</code> </p> </li> </ul>"
        },
        "ValueKey":{
          "shape":"ValueKey",
          "documentation":"<p>The field within the event object that the metric value is sourced from.</p> <p>If you omit this field, a hardcoded value of 1 is pushed as the metric value. This is useful if you want to count the number of events that the filter catches. </p> <p>If this metric is sent to CloudWatch Evidently, this field will be passed to Evidently raw. Evidently will handle data extraction from the event.</p>"
        },
        "UnitLabel":{
          "shape":"UnitLabel",
          "documentation":"<p>The CloudWatch metric unit to use for this metric. If you omit this field, the metric is recorded with no unit.</p>"
        },
        "DimensionKeys":{
          "shape":"DimensionKeysMap",
          "documentation":"<p>Use this field only if you are sending the metric to CloudWatch.</p> <p>This field is a map of field paths to dimension names. It defines the dimensions to associate with this metric in CloudWatch. For extended metrics, valid values for the entries in this field are the following:</p> <ul> <li> <p> <code>\"metadata.pageId\": \"PageId\"</code> </p> </li> <li> <p> <code>\"metadata.browserName\": \"BrowserName\"</code> </p> </li> <li> <p> <code>\"metadata.deviceType\": \"DeviceType\"</code> </p> </li> <li> <p> <code>\"metadata.osName\": \"OSName\"</code> </p> </li> <li> <p> <code>\"metadata.countryCode\": \"CountryCode\"</code> </p> </li> <li> <p> <code>\"event_details.fileType\": \"FileType\"</code> </p> </li> </ul> <p> For both extended metrics and custom metrics, all dimensions listed in this field must also be included in <code>EventPattern</code>.</p>"
        },
        "EventPattern":{
          "shape":"EventPattern",
          "documentation":"<p>The pattern that defines the metric, specified as a JSON object. RUM checks events that happen in a user's session against the pattern, and events that match the pattern are sent to the metric destination.</p> <p>When you define extended metrics, the metric definition is not valid if <code>EventPattern</code> is omitted.</p> <p>Example event patterns:</p> <ul> <li> <p> <code>'{ \"event_type\": [\"com.amazon.rum.js_error_event\"], \"metadata\": { \"browserName\": [ \"Chrome\", \"Safari\" ], } }'</code> </p> </li> <li> <p> <code>'{ \"event_type\": [\"com.amazon.rum.performance_navigation_event\"], \"metadata\": { \"browserName\": [ \"Chrome\", \"Firefox\" ] }, \"event_details\": { \"duration\": [{ \"numeric\": [ \"&lt;\", 2000 ] }] } }'</code> </p> </li> <li> <p> <code>'{ \"event_type\": [\"com.amazon.rum.performance_navigation_event\"], \"metadata\": { \"browserName\": [ \"Chrome\", \"Safari\" ], \"countryCode\": [ \"US\" ] }, \"event_details\": { \"duration\": [{ \"numeric\": [ \"&gt;=\", 2000, \"&lt;\", 8000 ] }] } }'</code> </p> </li> </ul> <p>If the metrics destination is <code>CloudWatch</code> and the event also matches a value in <code>DimensionKeys</code>, then the metric is published with the specified dimensions. </p>"
        },
        "Namespace":{
          "shape":"Namespace",
          "documentation":"<p>If this structure is for a custom metric instead of an extended metrics, use this parameter to define the metric namespace for that custom metric. Do not specify this parameter if this structure is for an extended metric.</p> <p>You cannot use any string that starts with <code>AWS/</code> for your namespace.</p>"
        }
      },
      "documentation":"<p>Use this structure to define one extended metric or custom metric that RUM will send to CloudWatch or CloudWatch Evidently. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-and-extended-metrics.html\"> Custom metrics and extended metrics that you can send to CloudWatch and CloudWatch Evidently</a>.</p> <p>This structure is validated differently for extended metrics and custom metrics. For extended metrics that are sent to the <code>AWS/RUM</code> namespace, the following validations apply:</p> <ul> <li> <p>The <code>Namespace</code> parameter must be omitted or set to <code>AWS/RUM</code>.</p> </li> <li> <p>Only certain combinations of values for <code>Name</code>, <code>ValueKey</code>, and <code>EventPattern</code> are valid. In addition to what is displayed in the following list, the <code>EventPattern</code> can also include information used by the <code>DimensionKeys</code> field.</p> <ul> <li> <p>If <code>Name</code> is <code>PerformanceNavigationDuration</code>, then <code>ValueKey</code>must be <code>event_details.duration</code> and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.performance_navigation_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>PerformanceResourceDuration</code>, then <code>ValueKey</code>must be <code>event_details.duration</code> and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.performance_resource_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>NavigationSatisfiedTransaction</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{ \"event_type\": [\"com.amazon.rum.performance_navigation_event\"], \"event_details\": { \"duration\": [{ \"numeric\": [\"&gt;\",2000] }] } }</code> </p> </li> <li> <p>If <code>Name</code> is <code>NavigationToleratedTransaction</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{ \"event_type\": [\"com.amazon.rum.performance_navigation_event\"], \"event_details\": { \"duration\": [{ \"numeric\": [\"&gt;=\",2000,\"&lt;\"8000] }] } }</code> </p> </li> <li> <p>If <code>Name</code> is <code>NavigationFrustratedTransaction</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{ \"event_type\": [\"com.amazon.rum.performance_navigation_event\"], \"event_details\": { \"duration\": [{ \"numeric\": [\"&gt;=\",8000] }] } }</code> </p> </li> <li> <p>If <code>Name</code> is <code>WebVitalsCumulativeLayoutShift</code>, then <code>ValueKey</code>must be <code>event_details.value</code> and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.cumulative_layout_shift_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>WebVitalsFirstInputDelay</code>, then <code>ValueKey</code>must be <code>event_details.value</code> and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.first_input_delay_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>WebVitalsLargestContentfulPaint</code>, then <code>ValueKey</code>must be <code>event_details.value</code> and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.largest_contentful_paint_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>JsErrorCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.js_error_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>HttpErrorCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.http_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>SessionCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.session_start_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>PageViewCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{\"event_type\":[\"com.amazon.rum.page_view_event\"]}</code> </p> </li> <li> <p>If <code>Name</code> is <code>Http4xxCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{\"event_type\": [\"com.amazon.rum.http_event\"],\"event_details\":{\"response\":{\"status\":[{\"numeric\":[\"&gt;=\",400,\"&lt;\",500]}]}}} }</code> </p> </li> <li> <p>If <code>Name</code> is <code>Http5xxCount</code>, then <code>ValueKey</code>must be null and the <code>EventPattern</code> must include <code>{\"event_type\": [\"com.amazon.rum.http_event\"],\"event_details\":{\"response\":{\"status\":[{\"numeric\":[\"&gt;=\",500,\"&lt;=\",599]}]}}} }</code> </p> </li> </ul> </li> </ul> <p>For custom metrics, the following validation rules apply:</p> <ul> <li> <p>The namespace can't be omitted and can't be <code>AWS/RUM</code>. You can use the <code>AWS/RUM</code> namespace only for extended metrics.</p> </li> <li> <p>All dimensions listed in the <code>DimensionKeys</code> field must be present in the value of <code>EventPattern</code>.</p> </li> <li> <p>The values that you specify for <code>ValueKey</code>, <code>EventPattern</code>, and <code>DimensionKeys</code> must be fields in RUM events, so all first-level keys in these fields must be one of the keys in the list later in this section.</p> </li> <li> <p>If you set a value for <code>EventPattern</code>, it must be a JSON object.</p> </li> <li> <p>For every non-empty <code>event_details</code>, there must be a non-empty <code>event_type</code>.</p> </li> <li> <p>If <code>EventPattern</code> contains an <code>event_details</code> field, it must also contain an <code>event_type</code>. For every built-in <code>event_type</code> that you use, you must use a value for <code>event_details</code> that corresponds to that <code>event_type</code>. For information about event details that correspond to event types, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-datacollected.html#CloudWatch-RUM-datacollected-eventDetails\"> RUM event details</a>.</p> </li> <li> <p>In <code>EventPattern</code>, any JSON array must contain only one value.</p> </li> </ul> <p>Valid key values for first-level keys in the <code>ValueKey</code>, <code>EventPattern</code>, and <code>DimensionKeys</code> fields:</p> <ul> <li> <p> <code>account_id</code> </p> </li> <li> <p> <code>application_Id</code> </p> </li> <li> <p> <code>application_version</code> </p> </li> <li> <p> <code>application_name</code> </p> </li> <li> <p> <code>batch_id</code> </p> </li> <li> <p> <code>event_details</code> </p> </li> <li> <p> <code>event_id</code> </p> </li> <li> <p> <code>event_interaction</code> </p> </li> <li> <p> <code>event_timestamp</code> </p> </li> <li> <p> <code>event_type</code> </p> </li> <li> <p> <code>event_version</code> </p> </li> <li> <p> <code>log_stream</code> </p> </li> <li> <p> <code>metadata</code> </p> </li> <li> <p> <code>sessionId</code> </p> </li> <li> <p> <code>user_details</code> </p> </li> <li> <p> <code>userId</code> </p> </li> </ul>"
    },
    "MetricDefinitions":{
      "type":"list",
      "member":{"shape":"MetricDefinition"}
    },
    "MetricDefinitionsRequest":{
      "type":"list",
      "member":{"shape":"MetricDefinitionRequest"}
    },
    "MetricDestination":{
      "type":"string",
      "enum":[
        "CloudWatch",
        "Evidently"
      ]
    },
    "MetricDestinationSummary":{
      "type":"structure",
      "members":{
        "Destination":{
          "shape":"MetricDestination",
          "documentation":"<p>Specifies whether the destination is <code>CloudWatch</code> or <code>Evidently</code>.</p>"
        },
        "DestinationArn":{
          "shape":"DestinationArn",
          "documentation":"<p>If the destination is <code>Evidently</code>, this specifies the ARN of the Evidently experiment that receives the metrics.</p>"
        },
        "IamRoleArn":{
          "shape":"IamRoleArn",
          "documentation":"<p>This field appears only when the destination is <code>Evidently</code>. It specifies the ARN of the IAM role that is used to write to the Evidently experiment that receives the metrics.</p>"
        }
      },
      "documentation":"<p>A structure that displays information about one destination that CloudWatch RUM sends extended metrics to.</p>"
    },
    "MetricDestinationSummaryList":{
      "type":"list",
      "member":{"shape":"MetricDestinationSummary"}
    },
    "MetricName":{
      "type":"string",
      "max":255,
      "min":1
    },
    "Namespace":{
      "type":"string",
      "max":237,
      "min":1,
      "pattern":".*[a-zA-Z0-9-._/#:]+"
    },
    "Pages":{
      "type":"list",
      "member":{"shape":"Url"},
      "max":50,
      "min":0
    },
    "PolicyNotFoundException":{
      "type":"structure",
      "required":["message"],
      "members":{
        "message":{"shape":"String"}
      },
      "documentation":"<p>The resource-based policy doesn't exist on this app monitor.</p>",
      "error":{
        "httpStatusCode":404,
        "senderFault":true
      },
      "exception":true
    },
    "PolicyRevisionId":{
      "type":"string",
      "max":255,
      "min":1
    },
    "PolicySizeLimitExceededException":{
      "type":"structure",
      "required":["message"],
      "members":{
        "message":{"shape":"String"}
      },
      "documentation":"<p>The policy document is too large. The limit is 4 KB.</p>",
      "error":{
        "httpStatusCode":400,
        "senderFault":true
      },
      "exception":true
    },
    "PutResourcePolicyRequest":{
      "type":"structure",
      "required":[
        "Name",
        "PolicyDocument"
      ],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor that you want to apply this resource-based policy to. To find the names of your app monitors, you can use the <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_ListAppMonitors.html\">ListAppMonitors</a> operation.</p>",
          "location":"uri",
          "locationName":"Name"
        },
        "PolicyDocument":{
          "shape":"String",
          "documentation":"<p>The JSON to use as the resource policy. The document can be up to 4 KB in size. For more information about the contents and syntax for this policy, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html\">Using resource-based policies with CloudWatch RUM</a>.</p>"
        },
        "PolicyRevisionId":{
          "shape":"PolicyRevisionId",
          "documentation":"<p>A string value that you can use to conditionally update your policy. You can provide the revision ID of your existing policy to make mutating requests against that policy.</p> <p>When you assign a policy revision ID, then later requests about that policy will be rejected with an <code>InvalidPolicyRevisionIdException</code> error if they don't provide the correct current revision ID.</p>"
        }
      }
    },
    "PutResourcePolicyResponse":{
      "type":"structure",
      "members":{
        "PolicyDocument":{
          "shape":"String",
          "documentation":"<p>The JSON policy document that you specified.</p>"
        },
        "PolicyRevisionId":{
          "shape":"PolicyRevisionId",
          "documentation":"<p>The policy revision ID information that you specified.</p>"
        }
      }
    },
    "PutRumEventsRequest":{
      "type":"structure",
      "required":[
        "Id",
        "BatchId",
        "AppMonitorDetails",
        "UserDetails",
        "RumEvents"
      ],
      "members":{
        "Id":{
          "shape":"PutRumEventsRequestIdString",
          "documentation":"<p>The ID of the app monitor that is sending this data.</p>",
          "location":"uri",
          "locationName":"Id"
        },
        "BatchId":{
          "shape":"PutRumEventsRequestBatchIdString",
          "documentation":"<p>A unique identifier for this batch of RUM event data.</p>"
        },
        "AppMonitorDetails":{
          "shape":"AppMonitorDetails",
          "documentation":"<p>A structure that contains information about the app monitor that collected this telemetry information.</p>"
        },
        "UserDetails":{
          "shape":"UserDetails",
          "documentation":"<p>A structure that contains information about the user session that this batch of events was collected from.</p>"
        },
        "RumEvents":{
          "shape":"RumEventList",
          "documentation":"<p>An array of structures that contain the telemetry event data.</p>"
        },
        "Alias":{
          "shape":"Alias",
          "documentation":"<p>If the app monitor uses a resource-based policy that requires <code>PutRumEvents</code> requests to specify a certain alias, specify that alias here. This alias will be compared to the <code>rum:alias</code> context key in the resource-based policy. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html\">Using resource-based policies with CloudWatch RUM</a>.</p>"
        }
      }
    },
    "PutRumEventsRequestBatchIdString":{
      "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}"
    },
    "PutRumEventsRequestIdString":{
      "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}"
    },
    "PutRumEventsResponse":{
      "type":"structure",
      "members":{}
    },
    "PutRumMetricsDestinationRequest":{
      "type":"structure",
      "required":[
        "AppMonitorName",
        "Destination"
      ],
      "members":{
        "AppMonitorName":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the CloudWatch RUM app monitor that will send the metrics.</p>",
          "location":"uri",
          "locationName":"AppMonitorName"
        },
        "Destination":{
          "shape":"MetricDestination",
          "documentation":"<p>Defines the destination to send the metrics to. Valid values are <code>CloudWatch</code> and <code>Evidently</code>. If you specify <code>Evidently</code>, you must also specify the ARN of the CloudWatchEvidently experiment that is to be the destination and an IAM role that has permission to write to the experiment.</p>"
        },
        "DestinationArn":{
          "shape":"DestinationArn",
          "documentation":"<p>Use this parameter only if <code>Destination</code> is <code>Evidently</code>. This parameter specifies the ARN of the Evidently experiment that will receive the extended metrics.</p>"
        },
        "IamRoleArn":{
          "shape":"IamRoleArn",
          "documentation":"<p>This parameter is required if <code>Destination</code> is <code>Evidently</code>. If <code>Destination</code> is <code>CloudWatch</code>, don't use this parameter.</p> <p>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.</p> <p>If you specify this parameter, you must be signed on to a role that has <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_passrole.html\">PassRole</a> permissions attached to it, to allow the role to be passed. The <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/auth-and-access-control-cw.html#managed-policies-cloudwatch-RUM\"> CloudWatchAmazonCloudWatchRUMFullAccess</a> policy doesn't include <code>PassRole</code> permissions.</p>"
        }
      }
    },
    "PutRumMetricsDestinationResponse":{
      "type":"structure",
      "members":{}
    },
    "QueryFilter":{
      "type":"structure",
      "members":{
        "Name":{
          "shape":"QueryFilterKey",
          "documentation":"<p>The name of a key to search for. The filter returns only the events that match the <code>Name</code> and <code>Values</code> that you specify. </p> <p>Valid values for <code>Name</code> are <code>Browser</code> | <code>Device</code> | <code>Country</code> | <code>Page</code> | <code>OS</code> | <code>EventType</code> | <code>Invert</code> </p>"
        },
        "Values":{
          "shape":"QueryFilterValueList",
          "documentation":"<p>The values of the <code>Name</code> that are to be be included in the returned results.</p>"
        }
      },
      "documentation":"<p>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 <code>QueryFilter</code> structures.</p> <p>For example, you could specify <code>Browser</code> as the <code>Name</code> and specify <code>Chrome,Firefox</code> as the <code>Values</code> to return events generated only from those browsers.</p> <p>Specifying <code>Invert</code> as the <code>Name</code> works as a \"not equal to\" filter. For example, specify <code>Invert</code> as the <code>Name</code> and specify <code>Chrome</code> as the value to return all events except events from user sessions with the Chrome browser.</p>"
    },
    "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":"<p>The name of the resource that is associated with the error.</p>"
        },
        "resourceType":{
          "shape":"String",
          "documentation":"<p>The type of the resource that is associated with the error.</p>"
        }
      },
      "documentation":"<p>Resource not found.</p>",
      "error":{
        "httpStatusCode":404,
        "senderFault":true
      },
      "exception":true
    },
    "RumEvent":{
      "type":"structure",
      "required":[
        "id",
        "timestamp",
        "type",
        "details"
      ],
      "members":{
        "id":{
          "shape":"RumEventIdString",
          "documentation":"<p>A unique ID for this event.</p>"
        },
        "timestamp":{
          "shape":"Timestamp",
          "documentation":"<p>The exact time that this event occurred.</p>"
        },
        "type":{
          "shape":"String",
          "documentation":"<p>The JSON schema that denotes the type of event this is, such as a page load or a new session.</p>"
        },
        "metadata":{
          "shape":"JsonValue",
          "documentation":"<p>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.</p>",
          "jsonvalue":true
        },
        "details":{
          "shape":"JsonValue",
          "documentation":"<p>A string containing details about the event.</p>",
          "jsonvalue":true
        }
      },
      "documentation":"<p>A structure that contains the information for one performance event that RUM collects from a user session with your application.</p>"
    },
    "RumEventIdString":{
      "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}"
    },
    "RumEventList":{
      "type":"list",
      "member":{"shape":"RumEvent"}
    },
    "ServiceQuotaExceededException":{
      "type":"structure",
      "required":["message"],
      "members":{
        "message":{"shape":"String"}
      },
      "documentation":"<p>This request exceeds a service quota.</p>",
      "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":"<p>The ARN of the CloudWatch RUM resource that you're adding tags to.</p>",
          "location":"uri",
          "locationName":"ResourceArn"
        },
        "Tags":{
          "shape":"TagMap",
          "documentation":"<p>The list of key-value pairs to associate with the resource.</p>"
        }
      }
    },
    "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"},
        "serviceCode":{
          "shape":"String",
          "documentation":"<p>The ID of the service that is associated with the error.</p>"
        },
        "quotaCode":{
          "shape":"String",
          "documentation":"<p>The ID of the service quota that was exceeded.</p>"
        },
        "retryAfterSeconds":{
          "shape":"Integer",
          "documentation":"<p>The value of a parameter in the request caused an error.</p>",
          "location":"header",
          "locationName":"Retry-After"
        }
      },
      "documentation":"<p>The request was throttled because of quota limits.</p>",
      "error":{
        "httpStatusCode":429,
        "senderFault":true
      },
      "exception":true,
      "retryable":{"throttling":true}
    },
    "TimeRange":{
      "type":"structure",
      "required":["After"],
      "members":{
        "After":{
          "shape":"QueryTimestamp",
          "documentation":"<p>The beginning of the time range to retrieve performance events from.</p>"
        },
        "Before":{
          "shape":"QueryTimestamp",
          "documentation":"<p>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.</p>"
        }
      },
      "documentation":"<p>A structure that defines the time range that you want to retrieve results from.</p>"
    },
    "Timestamp":{"type":"timestamp"},
    "Token":{"type":"string"},
    "UnitLabel":{
      "type":"string",
      "max":256,
      "min":1
    },
    "UntagResourceRequest":{
      "type":"structure",
      "required":[
        "ResourceArn",
        "TagKeys"
      ],
      "members":{
        "ResourceArn":{
          "shape":"Arn",
          "documentation":"<p>The ARN of the CloudWatch RUM resource that you're removing tags from.</p>",
          "location":"uri",
          "locationName":"ResourceArn"
        },
        "TagKeys":{
          "shape":"TagKeyList",
          "documentation":"<p>The list of tag keys to remove from the resource.</p>",
          "location":"querystring",
          "locationName":"tagKeys"
        }
      }
    },
    "UntagResourceResponse":{
      "type":"structure",
      "members":{}
    },
    "UpdateAppMonitorRequest":{
      "type":"structure",
      "required":["Name"],
      "members":{
        "Name":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the app monitor to update.</p>",
          "location":"uri",
          "locationName":"Name"
        },
        "Domain":{
          "shape":"AppMonitorDomain",
          "documentation":"<p>The top-level internet domain name for which your application has administrative authority.</p>"
        },
        "DomainList":{
          "shape":"AppMonitorDomainList",
          "documentation":"<p> List the domain names for which your application has administrative authority. The <code>UpdateAppMonitor</code> allows either the domain or the domain list. </p>"
        },
        "AppMonitorConfiguration":{
          "shape":"AppMonitorConfiguration",
          "documentation":"<p>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 <code>AppMonitorConfiguration</code>, you must set up your own authorization method. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-get-started-authorization.html\">Authorize your application to send data to Amazon Web Services</a>.</p>"
        },
        "CwLogEnabled":{
          "shape":"Boolean",
          "documentation":"<p>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.</p>"
        },
        "CustomEvents":{
          "shape":"CustomEvents",
          "documentation":"<p>Specifies whether this app monitor allows the web client to define and send custom events. The default is for custom events to be <code>DISABLED</code>.</p> <p>For more information about custom events, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html\">Send custom events</a>.</p>"
        },
        "DeobfuscationConfiguration":{
          "shape":"DeobfuscationConfiguration",
          "documentation":"<p> A structure that contains the configuration for how an app monitor can deobfuscate stack traces. </p>"
        }
      }
    },
    "UpdateAppMonitorResponse":{
      "type":"structure",
      "members":{}
    },
    "UpdateRumMetricDefinitionRequest":{
      "type":"structure",
      "required":[
        "AppMonitorName",
        "Destination",
        "MetricDefinition",
        "MetricDefinitionId"
      ],
      "members":{
        "AppMonitorName":{
          "shape":"AppMonitorName",
          "documentation":"<p>The name of the CloudWatch RUM app monitor that sends these metrics.</p>",
          "location":"uri",
          "locationName":"AppMonitorName"
        },
        "Destination":{
          "shape":"MetricDestination",
          "documentation":"<p>The destination to send the metrics to. Valid values are <code>CloudWatch</code> and <code>Evidently</code>. If you specify <code>Evidently</code>, 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.</p>"
        },
        "DestinationArn":{
          "shape":"DestinationArn",
          "documentation":"<p>This parameter is required if <code>Destination</code> is <code>Evidently</code>. If <code>Destination</code> is <code>CloudWatch</code>, do not use this parameter.</p> <p>This parameter specifies the ARN of the Evidently experiment that is to receive the metrics. You must have already defined this experiment as a valid destination. For more information, see <a href=\"https://docs.aws.amazon.com/cloudwatchrum/latest/APIReference/API_PutRumMetricsDestination.html\">PutRumMetricsDestination</a>.</p>"
        },
        "MetricDefinition":{
          "shape":"MetricDefinitionRequest",
          "documentation":"<p>A structure that contains the new definition that you want to use for this metric.</p>"
        },
        "MetricDefinitionId":{
          "shape":"MetricDefinitionId",
          "documentation":"<p>The ID of the metric definition to update.</p>"
        }
      }
    },
    "UpdateRumMetricDefinitionResponse":{
      "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":{
        "userId":{
          "shape":"UserDetailsUserIdString",
          "documentation":"<p>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.</p>"
        },
        "sessionId":{
          "shape":"UserDetailsSessionIdString",
          "documentation":"<p>The session ID that the performance events are from.</p>"
        }
      },
      "documentation":"<p>A structure that contains information about the user session that this batch of events was collected from.</p>"
    },
    "UserDetailsSessionIdString":{
      "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}"
    },
    "UserDetailsUserIdString":{
      "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}"
    },
    "ValidationException":{
      "type":"structure",
      "required":["message"],
      "members":{
        "message":{"shape":"String"}
      },
      "documentation":"<p>One of the arguments for the request is not valid.</p>",
      "error":{
        "httpStatusCode":400,
        "senderFault":true
      },
      "exception":true
    },
    "ValueKey":{
      "type":"string",
      "max":280,
      "min":1
    }
  },
  "documentation":"<p>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> <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>"
}
