@aws-sdk/client-rum 3.211.0 → 3.213.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,7 +13,6 @@ AWS SDK for JavaScript RUM Client for Node.js, Browser and React Native.
13
13
  your web application performance from actual user sessions in real time. The data collected includes page load
14
14
  times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and
15
15
  also see breakdowns by the browsers and devices that your customers use.</p>
16
-
17
16
  <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch
18
17
  RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error
19
18
  messages, stack traces, and user sessions. You can also use RUM to
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListTagsForResourceRequestFilterSensitiveLog = exports.UpdateRumMetricDefinitionResponseFilterSensitiveLog = exports.UpdateRumMetricDefinitionRequestFilterSensitiveLog = exports.UpdateAppMonitorResponseFilterSensitiveLog = exports.UpdateAppMonitorRequestFilterSensitiveLog = exports.PutRumMetricsDestinationResponseFilterSensitiveLog = exports.PutRumMetricsDestinationRequestFilterSensitiveLog = exports.ListRumMetricsDestinationsResponseFilterSensitiveLog = exports.MetricDestinationSummaryFilterSensitiveLog = exports.ListRumMetricsDestinationsRequestFilterSensitiveLog = exports.ListAppMonitorsResponseFilterSensitiveLog = exports.AppMonitorSummaryFilterSensitiveLog = exports.ListAppMonitorsRequestFilterSensitiveLog = exports.GetAppMonitorDataResponseFilterSensitiveLog = exports.GetAppMonitorDataRequestFilterSensitiveLog = exports.TimeRangeFilterSensitiveLog = exports.QueryFilterFilterSensitiveLog = exports.GetAppMonitorResponseFilterSensitiveLog = exports.GetAppMonitorRequestFilterSensitiveLog = exports.DeleteRumMetricsDestinationResponseFilterSensitiveLog = exports.DeleteRumMetricsDestinationRequestFilterSensitiveLog = exports.DeleteAppMonitorResponseFilterSensitiveLog = exports.DeleteAppMonitorRequestFilterSensitiveLog = exports.CreateAppMonitorResponseFilterSensitiveLog = exports.CreateAppMonitorRequestFilterSensitiveLog = exports.BatchGetRumMetricDefinitionsResponseFilterSensitiveLog = exports.BatchGetRumMetricDefinitionsRequestFilterSensitiveLog = exports.BatchDeleteRumMetricDefinitionsResponseFilterSensitiveLog = exports.BatchDeleteRumMetricDefinitionsErrorFilterSensitiveLog = exports.BatchDeleteRumMetricDefinitionsRequestFilterSensitiveLog = exports.BatchCreateRumMetricDefinitionsResponseFilterSensitiveLog = exports.MetricDefinitionFilterSensitiveLog = exports.BatchCreateRumMetricDefinitionsErrorFilterSensitiveLog = exports.BatchCreateRumMetricDefinitionsRequestFilterSensitiveLog = exports.MetricDefinitionRequestFilterSensitiveLog = exports.AppMonitorDetailsFilterSensitiveLog = exports.AppMonitorFilterSensitiveLog = exports.DataStorageFilterSensitiveLog = exports.CwLogFilterSensitiveLog = exports.AppMonitorConfigurationFilterSensitiveLog = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.MetricDestination = exports.StateEnum = exports.Telemetry = exports.AccessDeniedException = void 0;
4
- exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.PutRumEventsResponseFilterSensitiveLog = exports.PutRumEventsRequestFilterSensitiveLog = exports.UserDetailsFilterSensitiveLog = exports.RumEventFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = void 0;
3
+ exports.UpdateRumMetricDefinitionRequestFilterSensitiveLog = exports.UpdateAppMonitorResponseFilterSensitiveLog = exports.UpdateAppMonitorRequestFilterSensitiveLog = exports.PutRumMetricsDestinationResponseFilterSensitiveLog = exports.PutRumMetricsDestinationRequestFilterSensitiveLog = exports.ListRumMetricsDestinationsResponseFilterSensitiveLog = exports.MetricDestinationSummaryFilterSensitiveLog = exports.ListRumMetricsDestinationsRequestFilterSensitiveLog = exports.ListAppMonitorsResponseFilterSensitiveLog = exports.AppMonitorSummaryFilterSensitiveLog = exports.ListAppMonitorsRequestFilterSensitiveLog = exports.GetAppMonitorDataResponseFilterSensitiveLog = exports.GetAppMonitorDataRequestFilterSensitiveLog = exports.TimeRangeFilterSensitiveLog = exports.QueryFilterFilterSensitiveLog = exports.GetAppMonitorResponseFilterSensitiveLog = exports.GetAppMonitorRequestFilterSensitiveLog = exports.DeleteRumMetricsDestinationResponseFilterSensitiveLog = exports.DeleteRumMetricsDestinationRequestFilterSensitiveLog = exports.DeleteAppMonitorResponseFilterSensitiveLog = exports.DeleteAppMonitorRequestFilterSensitiveLog = exports.CreateAppMonitorResponseFilterSensitiveLog = exports.CreateAppMonitorRequestFilterSensitiveLog = exports.BatchGetRumMetricDefinitionsResponseFilterSensitiveLog = exports.BatchGetRumMetricDefinitionsRequestFilterSensitiveLog = exports.BatchDeleteRumMetricDefinitionsResponseFilterSensitiveLog = exports.BatchDeleteRumMetricDefinitionsErrorFilterSensitiveLog = exports.BatchDeleteRumMetricDefinitionsRequestFilterSensitiveLog = exports.BatchCreateRumMetricDefinitionsResponseFilterSensitiveLog = exports.MetricDefinitionFilterSensitiveLog = exports.BatchCreateRumMetricDefinitionsErrorFilterSensitiveLog = exports.BatchCreateRumMetricDefinitionsRequestFilterSensitiveLog = exports.MetricDefinitionRequestFilterSensitiveLog = exports.AppMonitorDetailsFilterSensitiveLog = exports.AppMonitorFilterSensitiveLog = exports.DataStorageFilterSensitiveLog = exports.CwLogFilterSensitiveLog = exports.CustomEventsFilterSensitiveLog = exports.AppMonitorConfigurationFilterSensitiveLog = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.MetricDestination = exports.StateEnum = exports.CustomEventsStatus = exports.Telemetry = exports.AccessDeniedException = void 0;
4
+ exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.PutRumEventsResponseFilterSensitiveLog = exports.PutRumEventsRequestFilterSensitiveLog = exports.UserDetailsFilterSensitiveLog = exports.RumEventFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.UpdateRumMetricDefinitionResponseFilterSensitiveLog = void 0;
5
5
  const RUMServiceException_1 = require("./RUMServiceException");
6
6
  class AccessDeniedException extends RUMServiceException_1.RUMServiceException {
7
7
  constructor(opts) {
@@ -22,6 +22,11 @@ var Telemetry;
22
22
  Telemetry["HTTP"] = "http";
23
23
  Telemetry["PERFORMANCE"] = "performance";
24
24
  })(Telemetry = exports.Telemetry || (exports.Telemetry = {}));
25
+ var CustomEventsStatus;
26
+ (function (CustomEventsStatus) {
27
+ CustomEventsStatus["DISABLED"] = "DISABLED";
28
+ CustomEventsStatus["ENABLED"] = "ENABLED";
29
+ })(CustomEventsStatus = exports.CustomEventsStatus || (exports.CustomEventsStatus = {}));
25
30
  var StateEnum;
26
31
  (function (StateEnum) {
27
32
  StateEnum["ACTIVE"] = "ACTIVE";
@@ -127,6 +132,10 @@ const AppMonitorConfigurationFilterSensitiveLog = (obj) => ({
127
132
  ...obj,
128
133
  });
129
134
  exports.AppMonitorConfigurationFilterSensitiveLog = AppMonitorConfigurationFilterSensitiveLog;
135
+ const CustomEventsFilterSensitiveLog = (obj) => ({
136
+ ...obj,
137
+ });
138
+ exports.CustomEventsFilterSensitiveLog = CustomEventsFilterSensitiveLog;
130
139
  const CwLogFilterSensitiveLog = (obj) => ({
131
140
  ...obj,
132
141
  });
@@ -92,6 +92,9 @@ const serializeAws_restJson1CreateAppMonitorCommand = async (input, context) =>
92
92
  ...(input.AppMonitorConfiguration != null && {
93
93
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
94
94
  }),
95
+ ...(input.CustomEvents != null && {
96
+ CustomEvents: serializeAws_restJson1CustomEvents(input.CustomEvents, context),
97
+ }),
95
98
  ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
96
99
  ...(input.Domain != null && { Domain: input.Domain }),
97
100
  ...(input.Name != null && { Name: input.Name }),
@@ -365,6 +368,9 @@ const serializeAws_restJson1UpdateAppMonitorCommand = async (input, context) =>
365
368
  ...(input.AppMonitorConfiguration != null && {
366
369
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
367
370
  }),
371
+ ...(input.CustomEvents != null && {
372
+ CustomEvents: serializeAws_restJson1CustomEvents(input.CustomEvents, context),
373
+ }),
368
374
  ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
369
375
  ...(input.Domain != null && { Domain: input.Domain }),
370
376
  });
@@ -1326,15 +1332,18 @@ const serializeAws_restJson1AppMonitorDetails = (input, context) => {
1326
1332
  ...(input.version != null && { version: input.version }),
1327
1333
  };
1328
1334
  };
1335
+ const serializeAws_restJson1CustomEvents = (input, context) => {
1336
+ return {
1337
+ ...(input.Status != null && { Status: input.Status }),
1338
+ };
1339
+ };
1329
1340
  const serializeAws_restJson1DimensionKeysMap = (input, context) => {
1330
1341
  return Object.entries(input).reduce((acc, [key, value]) => {
1331
1342
  if (value === null) {
1332
1343
  return acc;
1333
1344
  }
1334
- return {
1335
- ...acc,
1336
- [key]: value,
1337
- };
1345
+ acc[key] = value;
1346
+ return acc;
1338
1347
  }, {});
1339
1348
  };
1340
1349
  const serializeAws_restJson1FavoritePages = (input, context) => {
@@ -1410,10 +1419,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
1410
1419
  if (value === null) {
1411
1420
  return acc;
1412
1421
  }
1413
- return {
1414
- ...acc,
1415
- [key]: value,
1416
- };
1422
+ acc[key] = value;
1423
+ return acc;
1417
1424
  }, {});
1418
1425
  };
1419
1426
  const serializeAws_restJson1Telemetries = (input, context) => {
@@ -1441,6 +1448,7 @@ const deserializeAws_restJson1AppMonitor = (output, context) => {
1441
1448
  ? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
1442
1449
  : undefined,
1443
1450
  Created: (0, smithy_client_1.expectString)(output.Created),
1451
+ CustomEvents: output.CustomEvents != null ? deserializeAws_restJson1CustomEvents(output.CustomEvents, context) : undefined,
1444
1452
  DataStorage: output.DataStorage != null ? deserializeAws_restJson1DataStorage(output.DataStorage, context) : undefined,
1445
1453
  Domain: (0, smithy_client_1.expectString)(output.Domain),
1446
1454
  Id: (0, smithy_client_1.expectString)(output.Id),
@@ -1521,6 +1529,11 @@ const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsErrors = (output, c
1521
1529
  });
1522
1530
  return retVal;
1523
1531
  };
1532
+ const deserializeAws_restJson1CustomEvents = (output, context) => {
1533
+ return {
1534
+ Status: (0, smithy_client_1.expectString)(output.Status),
1535
+ };
1536
+ };
1524
1537
  const deserializeAws_restJson1CwLog = (output, context) => {
1525
1538
  return {
1526
1539
  CwLogEnabled: (0, smithy_client_1.expectBoolean)(output.CwLogEnabled),
@@ -1537,10 +1550,8 @@ const deserializeAws_restJson1DimensionKeysMap = (output, context) => {
1537
1550
  if (value === null) {
1538
1551
  return acc;
1539
1552
  }
1540
- return {
1541
- ...acc,
1542
- [key]: (0, smithy_client_1.expectString)(value),
1543
- };
1553
+ acc[key] = (0, smithy_client_1.expectString)(value);
1554
+ return acc;
1544
1555
  }, {});
1545
1556
  };
1546
1557
  const deserializeAws_restJson1EventDataList = (output, context) => {
@@ -1644,10 +1655,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1644
1655
  if (value === null) {
1645
1656
  return acc;
1646
1657
  }
1647
- return {
1648
- ...acc,
1649
- [key]: (0, smithy_client_1.expectString)(value),
1650
- };
1658
+ acc[key] = (0, smithy_client_1.expectString)(value);
1659
+ return acc;
1651
1660
  }, {});
1652
1661
  };
1653
1662
  const deserializeAws_restJson1Telemetries = (output, context) => {
@@ -17,6 +17,11 @@ export var Telemetry;
17
17
  Telemetry["HTTP"] = "http";
18
18
  Telemetry["PERFORMANCE"] = "performance";
19
19
  })(Telemetry || (Telemetry = {}));
20
+ export var CustomEventsStatus;
21
+ (function (CustomEventsStatus) {
22
+ CustomEventsStatus["DISABLED"] = "DISABLED";
23
+ CustomEventsStatus["ENABLED"] = "ENABLED";
24
+ })(CustomEventsStatus || (CustomEventsStatus = {}));
20
25
  export var StateEnum;
21
26
  (function (StateEnum) {
22
27
  StateEnum["ACTIVE"] = "ACTIVE";
@@ -115,6 +120,9 @@ export class ValidationException extends __BaseException {
115
120
  export const AppMonitorConfigurationFilterSensitiveLog = (obj) => ({
116
121
  ...obj,
117
122
  });
123
+ export const CustomEventsFilterSensitiveLog = (obj) => ({
124
+ ...obj,
125
+ });
118
126
  export const CwLogFilterSensitiveLog = (obj) => ({
119
127
  ...obj,
120
128
  });
@@ -86,6 +86,9 @@ export const serializeAws_restJson1CreateAppMonitorCommand = async (input, conte
86
86
  ...(input.AppMonitorConfiguration != null && {
87
87
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
88
88
  }),
89
+ ...(input.CustomEvents != null && {
90
+ CustomEvents: serializeAws_restJson1CustomEvents(input.CustomEvents, context),
91
+ }),
89
92
  ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
90
93
  ...(input.Domain != null && { Domain: input.Domain }),
91
94
  ...(input.Name != null && { Name: input.Name }),
@@ -347,6 +350,9 @@ export const serializeAws_restJson1UpdateAppMonitorCommand = async (input, conte
347
350
  ...(input.AppMonitorConfiguration != null && {
348
351
  AppMonitorConfiguration: serializeAws_restJson1AppMonitorConfiguration(input.AppMonitorConfiguration, context),
349
352
  }),
353
+ ...(input.CustomEvents != null && {
354
+ CustomEvents: serializeAws_restJson1CustomEvents(input.CustomEvents, context),
355
+ }),
350
356
  ...(input.CwLogEnabled != null && { CwLogEnabled: input.CwLogEnabled }),
351
357
  ...(input.Domain != null && { Domain: input.Domain }),
352
358
  });
@@ -1289,15 +1295,18 @@ const serializeAws_restJson1AppMonitorDetails = (input, context) => {
1289
1295
  ...(input.version != null && { version: input.version }),
1290
1296
  };
1291
1297
  };
1298
+ const serializeAws_restJson1CustomEvents = (input, context) => {
1299
+ return {
1300
+ ...(input.Status != null && { Status: input.Status }),
1301
+ };
1302
+ };
1292
1303
  const serializeAws_restJson1DimensionKeysMap = (input, context) => {
1293
1304
  return Object.entries(input).reduce((acc, [key, value]) => {
1294
1305
  if (value === null) {
1295
1306
  return acc;
1296
1307
  }
1297
- return {
1298
- ...acc,
1299
- [key]: value,
1300
- };
1308
+ acc[key] = value;
1309
+ return acc;
1301
1310
  }, {});
1302
1311
  };
1303
1312
  const serializeAws_restJson1FavoritePages = (input, context) => {
@@ -1373,10 +1382,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
1373
1382
  if (value === null) {
1374
1383
  return acc;
1375
1384
  }
1376
- return {
1377
- ...acc,
1378
- [key]: value,
1379
- };
1385
+ acc[key] = value;
1386
+ return acc;
1380
1387
  }, {});
1381
1388
  };
1382
1389
  const serializeAws_restJson1Telemetries = (input, context) => {
@@ -1404,6 +1411,7 @@ const deserializeAws_restJson1AppMonitor = (output, context) => {
1404
1411
  ? deserializeAws_restJson1AppMonitorConfiguration(output.AppMonitorConfiguration, context)
1405
1412
  : undefined,
1406
1413
  Created: __expectString(output.Created),
1414
+ CustomEvents: output.CustomEvents != null ? deserializeAws_restJson1CustomEvents(output.CustomEvents, context) : undefined,
1407
1415
  DataStorage: output.DataStorage != null ? deserializeAws_restJson1DataStorage(output.DataStorage, context) : undefined,
1408
1416
  Domain: __expectString(output.Domain),
1409
1417
  Id: __expectString(output.Id),
@@ -1484,6 +1492,11 @@ const deserializeAws_restJson1BatchDeleteRumMetricDefinitionsErrors = (output, c
1484
1492
  });
1485
1493
  return retVal;
1486
1494
  };
1495
+ const deserializeAws_restJson1CustomEvents = (output, context) => {
1496
+ return {
1497
+ Status: __expectString(output.Status),
1498
+ };
1499
+ };
1487
1500
  const deserializeAws_restJson1CwLog = (output, context) => {
1488
1501
  return {
1489
1502
  CwLogEnabled: __expectBoolean(output.CwLogEnabled),
@@ -1500,10 +1513,8 @@ const deserializeAws_restJson1DimensionKeysMap = (output, context) => {
1500
1513
  if (value === null) {
1501
1514
  return acc;
1502
1515
  }
1503
- return {
1504
- ...acc,
1505
- [key]: __expectString(value),
1506
- };
1516
+ acc[key] = __expectString(value);
1517
+ return acc;
1507
1518
  }, {});
1508
1519
  };
1509
1520
  const deserializeAws_restJson1EventDataList = (output, context) => {
@@ -1607,10 +1618,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
1607
1618
  if (value === null) {
1608
1619
  return acc;
1609
1620
  }
1610
- return {
1611
- ...acc,
1612
- [key]: __expectString(value),
1613
- };
1621
+ acc[key] = __expectString(value);
1622
+ return acc;
1614
1623
  }, {});
1615
1624
  };
1616
1625
  const deserializeAws_restJson1Telemetries = (output, context) => {
@@ -22,7 +22,6 @@ import { RUMClient } from "./RUMClient";
22
22
  * your web application performance from actual user sessions in real time. The data collected includes page load
23
23
  * times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and
24
24
  * also see breakdowns by the browsers and devices that your customers use.</p>
25
- *
26
25
  * <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch
27
26
  * RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error
28
27
  * messages, stack traces, and user sessions. You can also use RUM to
@@ -44,7 +43,6 @@ export declare class RUM extends RUMClient {
44
43
  * Extended metrics that you can send to CloudWatch and CloudWatch Evidently</a>.</p>
45
44
  * <p>The maximum number of metric definitions that you can specify in one
46
45
  * <code>BatchCreateRumMetricDefinitions</code> operation is 200.</p>
47
- *
48
46
  * <p>The maximum number of metric definitions that one destination can contain is 2000.</p>
49
47
  * <p>Extended metrics sent are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension
50
48
  * value counts as a custom metric. For more information, see
@@ -144,7 +144,6 @@ export interface RUMClientResolvedConfig extends RUMClientResolvedConfigType {
144
144
  * your web application performance from actual user sessions in real time. The data collected includes page load
145
145
  * times, client-side errors, and user behavior. When you view this data, you can see it all aggregated together and
146
146
  * also see breakdowns by the browsers and devices that your customers use.</p>
147
- *
148
147
  * <p>You can use the collected data to quickly identify and debug client-side performance issues. CloudWatch
149
148
  * RUM helps you visualize anomalies in your application performance and find relevant debugging data such as error
150
149
  * messages, stack traces, and user sessions. You can also use RUM to
@@ -22,7 +22,6 @@ export interface BatchCreateRumMetricDefinitionsCommandOutput extends BatchCreat
22
22
  * Extended metrics that you can send to CloudWatch and CloudWatch Evidently</a>.</p>
23
23
  * <p>The maximum number of metric definitions that you can specify in one
24
24
  * <code>BatchCreateRumMetricDefinitions</code> operation is 200.</p>
25
- *
26
25
  * <p>The maximum number of metric definitions that one destination can contain is 2000.</p>
27
26
  * <p>Extended metrics sent are charged as CloudWatch custom metrics. Each combination of additional dimension name and dimension
28
27
  * value counts as a custom metric. For more information, see
@@ -41,7 +41,6 @@ export interface AppMonitorConfiguration {
41
41
  ExcludedPages?: string[];
42
42
  /**
43
43
  * <p>If this app monitor is to collect data from only certain pages in your application, this structure lists those pages. </p>
44
- *
45
44
  * <p>You can't include both <code>ExcludedPages</code> and <code>IncludedPages</code> in the same operation.</p>
46
45
  */
47
46
  IncludedPages?: string[];
@@ -100,6 +99,20 @@ export interface AppMonitorConfiguration {
100
99
  */
101
100
  EnableXRay?: boolean;
102
101
  }
102
+ export declare enum CustomEventsStatus {
103
+ DISABLED = "DISABLED",
104
+ ENABLED = "ENABLED"
105
+ }
106
+ /**
107
+ * <p>A structure that contains information about custom events for this app monitor.</p>
108
+ */
109
+ export interface CustomEvents {
110
+ /**
111
+ * <p>Specifies whether this app monitor allows the web client to define and send
112
+ * custom events. The default is for custom events to be <code>DISABLED</code>.</p>
113
+ */
114
+ Status?: CustomEventsStatus | string;
115
+ }
103
116
  /**
104
117
  * <p>A structure that contains the information about whether the app monitor stores copies of the data
105
118
  * that RUM collects in CloudWatch Logs. If it does, this structure also contains the name of the log group.</p>
@@ -174,6 +187,13 @@ export interface AppMonitor {
174
187
  * the telemetry data that RUM collects using CloudWatch Logs.</p>
175
188
  */
176
189
  DataStorage?: DataStorage;
190
+ /**
191
+ * <p>Specifies whether this app monitor allows the web client to define and send
192
+ * custom events.</p>
193
+ * <p>For more information about custom events, see
194
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html">Send custom events</a>.</p>
195
+ */
196
+ CustomEvents?: CustomEvents;
177
197
  }
178
198
  /**
179
199
  * <p>A structure that contains information about the RUM app monitor.</p>
@@ -406,7 +426,6 @@ export interface MetricDefinitionRequest {
406
426
  * </p>
407
427
  * </li>
408
428
  * </ul>
409
- *
410
429
  * <p> All dimensions listed in this field
411
430
  * must also be included in <code>EventPattern</code>.</p>
412
431
  */
@@ -767,7 +786,6 @@ export interface CreateAppMonitorRequest {
767
786
  * permissions by granting a user
768
787
  * permission to access or change only resources with certain tag values.</p>
769
788
  * <p>Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.</p>
770
- *
771
789
  * <p>You can associate as many as 50 tags with an app monitor.</p>
772
790
  * <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>
773
791
  */
@@ -790,6 +808,13 @@ export interface CreateAppMonitorRequest {
790
808
  * <p>If you omit this parameter, the default is <code>false</code>.</p>
791
809
  */
792
810
  CwLogEnabled?: boolean;
811
+ /**
812
+ * <p>Specifies whether this app monitor allows the web client to define and send
813
+ * custom events. If you omit this parameter, custom events are <code>DISABLED</code>.</p>
814
+ * <p>For more information about custom events, see
815
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html">Send custom events</a>.</p>
816
+ */
817
+ CustomEvents?: CustomEvents;
793
818
  }
794
819
  export interface CreateAppMonitorResponse {
795
820
  /**
@@ -1060,6 +1085,13 @@ export interface UpdateAppMonitorRequest {
1060
1085
  * Amazon CloudWatch Logs charges.</p>
1061
1086
  */
1062
1087
  CwLogEnabled?: boolean;
1088
+ /**
1089
+ * <p>Specifies whether this app monitor allows the web client to define and send
1090
+ * custom events. The default is for custom events to be <code>DISABLED</code>.</p>
1091
+ * <p>For more information about custom events, see
1092
+ * <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-custom-events.html">Send custom events</a>.</p>
1093
+ */
1094
+ CustomEvents?: CustomEvents;
1063
1095
  }
1064
1096
  export interface UpdateAppMonitorResponse {
1065
1097
  }
@@ -1203,6 +1235,10 @@ export interface UntagResourceResponse {
1203
1235
  * @internal
1204
1236
  */
1205
1237
  export declare const AppMonitorConfigurationFilterSensitiveLog: (obj: AppMonitorConfiguration) => any;
1238
+ /**
1239
+ * @internal
1240
+ */
1241
+ export declare const CustomEventsFilterSensitiveLog: (obj: CustomEvents) => any;
1206
1242
  /**
1207
1243
  * @internal
1208
1244
  */
@@ -26,6 +26,13 @@ export interface AppMonitorConfiguration {
26
26
  Telemetries?: (Telemetry | string)[];
27
27
  EnableXRay?: boolean;
28
28
  }
29
+ export declare enum CustomEventsStatus {
30
+ DISABLED = "DISABLED",
31
+ ENABLED = "ENABLED",
32
+ }
33
+ export interface CustomEvents {
34
+ Status?: CustomEventsStatus | string;
35
+ }
29
36
  export interface CwLog {
30
37
  CwLogEnabled?: boolean;
31
38
  CwLogGroup?: string;
@@ -48,6 +55,7 @@ export interface AppMonitor {
48
55
  State?: StateEnum | string;
49
56
  AppMonitorConfiguration?: AppMonitorConfiguration;
50
57
  DataStorage?: DataStorage;
58
+ CustomEvents?: CustomEvents;
51
59
  }
52
60
  export interface AppMonitorDetails {
53
61
  name?: string;
@@ -172,6 +180,7 @@ export interface CreateAppMonitorRequest {
172
180
  Tags?: Record<string, string>;
173
181
  AppMonitorConfiguration?: AppMonitorConfiguration;
174
182
  CwLogEnabled?: boolean;
183
+ CustomEvents?: CustomEvents;
175
184
  }
176
185
  export interface CreateAppMonitorResponse {
177
186
  Id?: string;
@@ -252,6 +261,7 @@ export interface UpdateAppMonitorRequest {
252
261
  Domain?: string;
253
262
  AppMonitorConfiguration?: AppMonitorConfiguration;
254
263
  CwLogEnabled?: boolean;
264
+ CustomEvents?: CustomEvents;
255
265
  }
256
266
  export interface UpdateAppMonitorResponse {}
257
267
  export interface UpdateRumMetricDefinitionRequest {
@@ -301,6 +311,7 @@ export interface UntagResourceResponse {}
301
311
  export declare const AppMonitorConfigurationFilterSensitiveLog: (
302
312
  obj: AppMonitorConfiguration
303
313
  ) => any;
314
+ export declare const CustomEventsFilterSensitiveLog: (obj: CustomEvents) => any;
304
315
  export declare const CwLogFilterSensitiveLog: (obj: CwLog) => any;
305
316
  export declare const DataStorageFilterSensitiveLog: (obj: DataStorage) => any;
306
317
  export declare const AppMonitorFilterSensitiveLog: (obj: AppMonitor) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rum",
3
3
  "description": "AWS SDK for JavaScript Rum Client for Node.js, Browser and React Native",
4
- "version": "3.211.0",
4
+ "version": "3.213.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,36 +19,36 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.211.0",
23
- "@aws-sdk/config-resolver": "3.209.0",
24
- "@aws-sdk/credential-provider-node": "3.211.0",
25
- "@aws-sdk/fetch-http-handler": "3.208.0",
26
- "@aws-sdk/hash-node": "3.208.0",
27
- "@aws-sdk/invalid-dependency": "3.208.0",
28
- "@aws-sdk/middleware-content-length": "3.208.0",
29
- "@aws-sdk/middleware-endpoint": "3.208.0",
30
- "@aws-sdk/middleware-host-header": "3.208.0",
31
- "@aws-sdk/middleware-logger": "3.208.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.208.0",
33
- "@aws-sdk/middleware-retry": "3.209.0",
34
- "@aws-sdk/middleware-serde": "3.208.0",
35
- "@aws-sdk/middleware-signing": "3.208.0",
36
- "@aws-sdk/middleware-stack": "3.208.0",
37
- "@aws-sdk/middleware-user-agent": "3.208.0",
38
- "@aws-sdk/node-config-provider": "3.209.0",
39
- "@aws-sdk/node-http-handler": "3.208.0",
40
- "@aws-sdk/protocol-http": "3.208.0",
41
- "@aws-sdk/smithy-client": "3.209.0",
42
- "@aws-sdk/types": "3.208.0",
43
- "@aws-sdk/url-parser": "3.208.0",
22
+ "@aws-sdk/client-sts": "3.213.0",
23
+ "@aws-sdk/config-resolver": "3.212.0",
24
+ "@aws-sdk/credential-provider-node": "3.212.0",
25
+ "@aws-sdk/fetch-http-handler": "3.212.0",
26
+ "@aws-sdk/hash-node": "3.212.0",
27
+ "@aws-sdk/invalid-dependency": "3.212.0",
28
+ "@aws-sdk/middleware-content-length": "3.212.0",
29
+ "@aws-sdk/middleware-endpoint": "3.212.0",
30
+ "@aws-sdk/middleware-host-header": "3.212.0",
31
+ "@aws-sdk/middleware-logger": "3.212.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
33
+ "@aws-sdk/middleware-retry": "3.212.0",
34
+ "@aws-sdk/middleware-serde": "3.212.0",
35
+ "@aws-sdk/middleware-signing": "3.212.0",
36
+ "@aws-sdk/middleware-stack": "3.212.0",
37
+ "@aws-sdk/middleware-user-agent": "3.212.0",
38
+ "@aws-sdk/node-config-provider": "3.212.0",
39
+ "@aws-sdk/node-http-handler": "3.212.0",
40
+ "@aws-sdk/protocol-http": "3.212.0",
41
+ "@aws-sdk/smithy-client": "3.212.0",
42
+ "@aws-sdk/types": "3.212.0",
43
+ "@aws-sdk/url-parser": "3.212.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.209.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.209.0",
49
- "@aws-sdk/util-endpoints": "3.211.0",
50
- "@aws-sdk/util-user-agent-browser": "3.208.0",
51
- "@aws-sdk/util-user-agent-node": "3.209.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.212.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
49
+ "@aws-sdk/util-endpoints": "3.212.0",
50
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
51
+ "@aws-sdk/util-user-agent-node": "3.212.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
53
  "@aws-sdk/util-utf8-node": "3.208.0",
54
54
  "tslib": "^2.3.1"