@aws-sdk/client-rum 3.1075.0 → 3.1077.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/dist-cjs/index.js CHANGED
@@ -1,21 +1,58 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultRUMHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { BatchCreateRumMetricDefinitions$, BatchDeleteRumMetricDefinitions$, BatchGetRumMetricDefinitions$, CreateAppMonitor$, DeleteAppMonitor$, DeleteResourcePolicy$, DeleteRumMetricsDestination$, GetAppMonitor$, GetAppMonitorData$, GetResourcePolicy$, ListAppMonitors$, ListRumMetricsDestinations$, ListTagsForResource$, PutResourcePolicy$, PutRumEvents$, PutRumMetricsDestination$, TagResource$, UntagResource$, UpdateAppMonitor$, UpdateRumMetricDefinition$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { RUMServiceException } = require("./models/RUMServiceException");
18
- exports.RUMServiceException = RUMServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+ const { Sha256 } = require("@smithy/core/checksum");
17
+
18
+ const defaultRUMHttpAuthSchemeParametersProvider = async (config, context, input) => {
19
+ return {
20
+ operation: getSmithyContext(context).operation,
21
+ region: await normalizeProvider(config.region)() || (() => {
22
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
23
+ })(),
24
+ };
25
+ };
26
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
+ return {
28
+ schemeId: "aws.auth#sigv4",
29
+ signingProperties: {
30
+ name: "rum",
31
+ region: authParameters.region,
32
+ },
33
+ propertiesExtractor: (config, context) => ({
34
+ signingProperties: {
35
+ config,
36
+ context,
37
+ },
38
+ }),
39
+ };
40
+ }
41
+ const defaultRUMHttpAuthSchemeProvider = (authParameters) => {
42
+ const options = [];
43
+ switch (authParameters.operation) {
44
+ default: {
45
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
46
+ }
47
+ }
48
+ return options;
49
+ };
50
+ const resolveHttpAuthSchemeConfig = (config) => {
51
+ const config_0 = resolveAwsSdkSigV4Config(config);
52
+ return Object.assign(config_0, {
53
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
54
+ });
55
+ };
19
56
 
20
57
  const resolveClientEndpointParameters = (options) => {
21
58
  return Object.assign(options, {
@@ -31,6 +68,930 @@ const commonParams = {
31
68
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
69
  };
33
70
 
71
+ var version = "3.1076.0";
72
+ var packageInfo = {
73
+ version: version};
74
+
75
+ const k = "ref";
76
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
77
+ const _data = {
78
+ conditions: [
79
+ [c, [g]],
80
+ [c, j],
81
+ ["aws.partition", j, d],
82
+ [e, [{ [k]: "UseFIPS" }, b]],
83
+ [e, [{ [k]: "UseDualStack" }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
85
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
86
+ ],
87
+ results: [
88
+ [a],
89
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
90
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
91
+ [g, i],
92
+ ["https://rum-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
93
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
94
+ ["https://rum-fips.{Region}.{PartitionResult#dnsSuffix}", i],
95
+ [a, "FIPS is enabled but this partition does not support FIPS"],
96
+ ["https://rum.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
97
+ [a, "DualStack is enabled but this partition does not support DualStack"],
98
+ ["https://rum.{Region}.{PartitionResult#dnsSuffix}", i],
99
+ [a, "Invalid Configuration: Missing Region"]
100
+ ]
101
+ };
102
+ const root = 2;
103
+ const r = 100_000_000;
104
+ const nodes = new Int32Array([
105
+ -1, 1, -1,
106
+ 0, 12, 3,
107
+ 1, 4, r + 11,
108
+ 2, 5, r + 11,
109
+ 3, 8, 6,
110
+ 4, 7, r + 10,
111
+ 5, r + 8, r + 9,
112
+ 4, 10, 9,
113
+ 6, r + 6, r + 7,
114
+ 5, 11, r + 5,
115
+ 6, r + 4, r + 5,
116
+ 3, r + 1, 13,
117
+ 4, r + 2, r + 3,
118
+ ]);
119
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
120
+
121
+ const cache = new EndpointCache({
122
+ size: 50,
123
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
124
+ });
125
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
126
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
127
+ endpointParams: endpointParams,
128
+ logger: context.logger,
129
+ }));
130
+ };
131
+ customEndpointFunctions.aws = awsEndpointFunctions;
132
+
133
+ class RUMServiceException extends ServiceException {
134
+ constructor(options) {
135
+ super(options);
136
+ Object.setPrototypeOf(this, RUMServiceException.prototype);
137
+ }
138
+ }
139
+
140
+ class AccessDeniedException extends RUMServiceException {
141
+ name = "AccessDeniedException";
142
+ $fault = "client";
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ }
151
+ }
152
+ class ConflictException extends RUMServiceException {
153
+ name = "ConflictException";
154
+ $fault = "client";
155
+ resourceName;
156
+ resourceType;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConflictException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConflictException.prototype);
164
+ this.resourceName = opts.resourceName;
165
+ this.resourceType = opts.resourceType;
166
+ }
167
+ }
168
+ class InternalServerException extends RUMServiceException {
169
+ name = "InternalServerException";
170
+ $fault = "server";
171
+ $retryable = {};
172
+ retryAfterSeconds;
173
+ constructor(opts) {
174
+ super({
175
+ name: "InternalServerException",
176
+ $fault: "server",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, InternalServerException.prototype);
180
+ this.retryAfterSeconds = opts.retryAfterSeconds;
181
+ }
182
+ }
183
+ class ResourceNotFoundException extends RUMServiceException {
184
+ name = "ResourceNotFoundException";
185
+ $fault = "client";
186
+ resourceName;
187
+ resourceType;
188
+ constructor(opts) {
189
+ super({
190
+ name: "ResourceNotFoundException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
195
+ this.resourceName = opts.resourceName;
196
+ this.resourceType = opts.resourceType;
197
+ }
198
+ }
199
+ class ServiceQuotaExceededException extends RUMServiceException {
200
+ name = "ServiceQuotaExceededException";
201
+ $fault = "client";
202
+ constructor(opts) {
203
+ super({
204
+ name: "ServiceQuotaExceededException",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
209
+ }
210
+ }
211
+ class ThrottlingException extends RUMServiceException {
212
+ name = "ThrottlingException";
213
+ $fault = "client";
214
+ $retryable = {
215
+ throttling: true,
216
+ };
217
+ serviceCode;
218
+ quotaCode;
219
+ retryAfterSeconds;
220
+ constructor(opts) {
221
+ super({
222
+ name: "ThrottlingException",
223
+ $fault: "client",
224
+ ...opts,
225
+ });
226
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
227
+ this.serviceCode = opts.serviceCode;
228
+ this.quotaCode = opts.quotaCode;
229
+ this.retryAfterSeconds = opts.retryAfterSeconds;
230
+ }
231
+ }
232
+ class ValidationException extends RUMServiceException {
233
+ name = "ValidationException";
234
+ $fault = "client";
235
+ constructor(opts) {
236
+ super({
237
+ name: "ValidationException",
238
+ $fault: "client",
239
+ ...opts,
240
+ });
241
+ Object.setPrototypeOf(this, ValidationException.prototype);
242
+ }
243
+ }
244
+ class InvalidPolicyRevisionIdException extends RUMServiceException {
245
+ name = "InvalidPolicyRevisionIdException";
246
+ $fault = "client";
247
+ constructor(opts) {
248
+ super({
249
+ name: "InvalidPolicyRevisionIdException",
250
+ $fault: "client",
251
+ ...opts,
252
+ });
253
+ Object.setPrototypeOf(this, InvalidPolicyRevisionIdException.prototype);
254
+ }
255
+ }
256
+ class PolicyNotFoundException extends RUMServiceException {
257
+ name = "PolicyNotFoundException";
258
+ $fault = "client";
259
+ constructor(opts) {
260
+ super({
261
+ name: "PolicyNotFoundException",
262
+ $fault: "client",
263
+ ...opts,
264
+ });
265
+ Object.setPrototypeOf(this, PolicyNotFoundException.prototype);
266
+ }
267
+ }
268
+ class MalformedPolicyDocumentException extends RUMServiceException {
269
+ name = "MalformedPolicyDocumentException";
270
+ $fault = "client";
271
+ constructor(opts) {
272
+ super({
273
+ name: "MalformedPolicyDocumentException",
274
+ $fault: "client",
275
+ ...opts,
276
+ });
277
+ Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype);
278
+ }
279
+ }
280
+ class PolicySizeLimitExceededException extends RUMServiceException {
281
+ name = "PolicySizeLimitExceededException";
282
+ $fault = "client";
283
+ constructor(opts) {
284
+ super({
285
+ name: "PolicySizeLimitExceededException",
286
+ $fault: "client",
287
+ ...opts,
288
+ });
289
+ Object.setPrototypeOf(this, PolicySizeLimitExceededException.prototype);
290
+ }
291
+ }
292
+
293
+ const _A = "Alias";
294
+ const _AC = "AllowCookies";
295
+ const _ADE = "AccessDeniedException";
296
+ const _AM = "AppMonitor";
297
+ const _AMC = "AppMonitorConfiguration";
298
+ const _AMD = "AppMonitorDetails";
299
+ const _AMN = "AppMonitorName";
300
+ const _AMS = "AppMonitorSummary";
301
+ const _AMSL = "AppMonitorSummaryList";
302
+ const _AMSp = "AppMonitorSummaries";
303
+ const _Af = "After";
304
+ const _B = "Before";
305
+ const _BCRMD = "BatchCreateRumMetricDefinitions";
306
+ const _BCRMDE = "BatchCreateRumMetricDefinitionsError";
307
+ const _BCRMDEa = "BatchCreateRumMetricDefinitionsErrors";
308
+ const _BCRMDR = "BatchCreateRumMetricDefinitionsRequest";
309
+ const _BCRMDRa = "BatchCreateRumMetricDefinitionsResponse";
310
+ const _BDRMD = "BatchDeleteRumMetricDefinitions";
311
+ const _BDRMDE = "BatchDeleteRumMetricDefinitionsError";
312
+ const _BDRMDEa = "BatchDeleteRumMetricDefinitionsErrors";
313
+ const _BDRMDR = "BatchDeleteRumMetricDefinitionsRequest";
314
+ const _BDRMDRa = "BatchDeleteRumMetricDefinitionsResponse";
315
+ const _BGRMD = "BatchGetRumMetricDefinitions";
316
+ const _BGRMDR = "BatchGetRumMetricDefinitionsRequest";
317
+ const _BGRMDRa = "BatchGetRumMetricDefinitionsResponse";
318
+ const _BI = "BatchId";
319
+ const _C = "Created";
320
+ const _CAM = "CreateAppMonitor";
321
+ const _CAMR = "CreateAppMonitorRequest";
322
+ const _CAMRr = "CreateAppMonitorResponse";
323
+ const _CE = "ConflictException";
324
+ const _CEu = "CustomEvents";
325
+ const _CL = "CwLog";
326
+ const _CLE = "CwLogEnabled";
327
+ const _CLG = "CwLogGroup";
328
+ const _D = "Domain";
329
+ const _DA = "DestinationArn";
330
+ const _DAM = "DeleteAppMonitor";
331
+ const _DAMR = "DeleteAppMonitorRequest";
332
+ const _DAMRe = "DeleteAppMonitorResponse";
333
+ const _DC = "DeobfuscationConfiguration";
334
+ const _DK = "DimensionKeys";
335
+ const _DL = "DomainList";
336
+ const _DRMD = "DeleteRumMetricsDestination";
337
+ const _DRMDR = "DeleteRumMetricsDestinationRequest";
338
+ const _DRMDRe = "DeleteRumMetricsDestinationResponse";
339
+ const _DRP = "DeleteResourcePolicy";
340
+ const _DRPR = "DeleteResourcePolicyRequest";
341
+ const _DRPRe = "DeleteResourcePolicyResponse";
342
+ const _DS = "DataStorage";
343
+ const _De = "Destination";
344
+ const _Des = "Destinations";
345
+ const _E = "Errors";
346
+ const _EC = "ErrorCode";
347
+ const _EM = "ErrorMessage";
348
+ const _EP = "ExcludedPages";
349
+ const _EPv = "EventPattern";
350
+ const _EXR = "EnableXRay";
351
+ const _Ev = "Events";
352
+ const _F = "Filters";
353
+ const _FP = "FavoritePages";
354
+ const _GAM = "GetAppMonitor";
355
+ const _GAMD = "GetAppMonitorData";
356
+ const _GAMDR = "GetAppMonitorDataRequest";
357
+ const _GAMDRe = "GetAppMonitorDataResponse";
358
+ const _GAMR = "GetAppMonitorRequest";
359
+ const _GAMRe = "GetAppMonitorResponse";
360
+ const _GRA = "GuestRoleArn";
361
+ const _GRP = "GetResourcePolicy";
362
+ const _GRPR = "GetResourcePolicyRequest";
363
+ const _GRPRe = "GetResourcePolicyResponse";
364
+ const _I = "Id";
365
+ const _IP = "IncludedPages";
366
+ const _IPI = "IdentityPoolId";
367
+ const _IPRIE = "InvalidPolicyRevisionIdException";
368
+ const _IRA = "IamRoleArn";
369
+ const _ISE = "InternalServerException";
370
+ const _JSSM = "JavaScriptSourceMaps";
371
+ const _JV = "JsonValue";
372
+ const _LAM = "ListAppMonitors";
373
+ const _LAMR = "ListAppMonitorsRequest";
374
+ const _LAMRi = "ListAppMonitorsResponse";
375
+ const _LM = "LastModified";
376
+ const _LRMD = "ListRumMetricsDestinations";
377
+ const _LRMDR = "ListRumMetricsDestinationsRequest";
378
+ const _LRMDRi = "ListRumMetricsDestinationsResponse";
379
+ const _LTFR = "ListTagsForResource";
380
+ const _LTFRR = "ListTagsForResourceRequest";
381
+ const _LTFRRi = "ListTagsForResourceResponse";
382
+ const _MD = "MetricDefinition";
383
+ const _MDI = "MetricDefinitionId";
384
+ const _MDIe = "MetricDefinitionIds";
385
+ const _MDR = "MetricDefinitionRequest";
386
+ const _MDRe = "MetricDefinitionsRequest";
387
+ const _MDS = "MetricDestinationSummary";
388
+ const _MDSL = "MetricDestinationSummaryList";
389
+ const _MDe = "MetricDefinitions";
390
+ const _MPDE = "MalformedPolicyDocumentException";
391
+ const _MR = "MaxResults";
392
+ const _N = "Name";
393
+ const _NT = "NextToken";
394
+ const _Na = "Namespace";
395
+ const _P = "Platform";
396
+ const _PD = "PolicyDocument";
397
+ const _PNFE = "PolicyNotFoundException";
398
+ const _PRE = "PutRumEvents";
399
+ const _PRER = "PutRumEventsRequest";
400
+ const _PRERu = "PutRumEventsResponse";
401
+ const _PRI = "PolicyRevisionId";
402
+ const _PRMD = "PutRumMetricsDestination";
403
+ const _PRMDR = "PutRumMetricsDestinationRequest";
404
+ const _PRMDRu = "PutRumMetricsDestinationResponse";
405
+ const _PRP = "PutResourcePolicy";
406
+ const _PRPR = "PutResourcePolicyRequest";
407
+ const _PRPRu = "PutResourcePolicyResponse";
408
+ const _PSLEE = "PolicySizeLimitExceededException";
409
+ const _QF = "QueryFilter";
410
+ const _QFu = "QueryFilters";
411
+ const _RA = "Retry-After";
412
+ const _RAe = "ResourceArn";
413
+ const _RE = "RumEvents";
414
+ const _REL = "RumEventList";
415
+ const _REu = "RumEvent";
416
+ const _RNFE = "ResourceNotFoundException";
417
+ const _S = "State";
418
+ const _SQEE = "ServiceQuotaExceededException";
419
+ const _SSR = "SessionSampleRate";
420
+ const _SU = "S3Uri";
421
+ const _St = "Status";
422
+ const _T = "Tags";
423
+ const _TE = "ThrottlingException";
424
+ const _TK = "TagKeys";
425
+ const _TR = "TimeRange";
426
+ const _TRR = "TagResourceRequest";
427
+ const _TRRa = "TagResourceResponse";
428
+ const _TRa = "TagResource";
429
+ const _Te = "Telemetries";
430
+ const _UAM = "UpdateAppMonitor";
431
+ const _UAMR = "UpdateAppMonitorRequest";
432
+ const _UAMRp = "UpdateAppMonitorResponse";
433
+ const _UD = "UserDetails";
434
+ const _UL = "UnitLabel";
435
+ const _UR = "UntagResource";
436
+ const _URMD = "UpdateRumMetricDefinition";
437
+ const _URMDR = "UpdateRumMetricDefinitionRequest";
438
+ const _URMDRp = "UpdateRumMetricDefinitionResponse";
439
+ const _URR = "UntagResourceRequest";
440
+ const _URRn = "UntagResourceResponse";
441
+ const _V = "Values";
442
+ const _VE = "ValidationException";
443
+ const _VK = "ValueKey";
444
+ const _a = "application/json";
445
+ const _c = "client";
446
+ const _d = "destination";
447
+ const _dA = "destinationArn";
448
+ const _de = "details";
449
+ const _e = "error";
450
+ const _en = "endpoint";
451
+ const _h = "http";
452
+ const _hE = "httpError";
453
+ const _hH = "httpHeader";
454
+ const _hQ = "httpQuery";
455
+ const _i = "id";
456
+ const _m = "message";
457
+ const _mDI = "metricDefinitionIds";
458
+ const _mR = "maxResults";
459
+ const _mT = "mediaType";
460
+ const _me = "metadata";
461
+ const _n = "name";
462
+ const _nT = "nextToken";
463
+ const _pRI = "policyRevisionId";
464
+ const _qC = "quotaCode";
465
+ const _rAS = "retryAfterSeconds";
466
+ const _rN = "resourceName";
467
+ const _rT = "resourceType";
468
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rum";
469
+ const _sC = "serviceCode";
470
+ const _sI = "sessionId";
471
+ const _se = "server";
472
+ const _t = "timestamp";
473
+ const _tK = "tagKeys";
474
+ const _ty = "type";
475
+ const _uI = "userId";
476
+ const _v = "version";
477
+ const n0 = "com.amazonaws.rum";
478
+ const _s_registry = TypeRegistry.for(_s);
479
+ var RUMServiceException$ = [-3, _s, "RUMServiceException", 0, [], []];
480
+ _s_registry.registerError(RUMServiceException$, RUMServiceException);
481
+ const n0_registry = TypeRegistry.for(n0);
482
+ var AccessDeniedException$ = [-3, n0, _ADE,
483
+ { [_e]: _c, [_hE]: 403 },
484
+ [_m],
485
+ [0], 1
486
+ ];
487
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
488
+ var ConflictException$ = [-3, n0, _CE,
489
+ { [_e]: _c, [_hE]: 409 },
490
+ [_m, _rN, _rT],
491
+ [0, 0, 0], 2
492
+ ];
493
+ n0_registry.registerError(ConflictException$, ConflictException);
494
+ var InternalServerException$ = [-3, n0, _ISE,
495
+ { [_e]: _se, [_hE]: 500 },
496
+ [_m, _rAS],
497
+ [0, [1, { [_hH]: _RA }]], 1
498
+ ];
499
+ n0_registry.registerError(InternalServerException$, InternalServerException);
500
+ var InvalidPolicyRevisionIdException$ = [-3, n0, _IPRIE,
501
+ { [_e]: _c, [_hE]: 400 },
502
+ [_m],
503
+ [0], 1
504
+ ];
505
+ n0_registry.registerError(InvalidPolicyRevisionIdException$, InvalidPolicyRevisionIdException);
506
+ var MalformedPolicyDocumentException$ = [-3, n0, _MPDE,
507
+ { [_e]: _c, [_hE]: 400 },
508
+ [_m],
509
+ [0], 1
510
+ ];
511
+ n0_registry.registerError(MalformedPolicyDocumentException$, MalformedPolicyDocumentException);
512
+ var PolicyNotFoundException$ = [-3, n0, _PNFE,
513
+ { [_e]: _c, [_hE]: 404 },
514
+ [_m],
515
+ [0], 1
516
+ ];
517
+ n0_registry.registerError(PolicyNotFoundException$, PolicyNotFoundException);
518
+ var PolicySizeLimitExceededException$ = [-3, n0, _PSLEE,
519
+ { [_e]: _c, [_hE]: 400 },
520
+ [_m],
521
+ [0], 1
522
+ ];
523
+ n0_registry.registerError(PolicySizeLimitExceededException$, PolicySizeLimitExceededException);
524
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
525
+ { [_e]: _c, [_hE]: 404 },
526
+ [_m, _rN, _rT],
527
+ [0, 0, 0], 2
528
+ ];
529
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
530
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
531
+ { [_e]: _c, [_hE]: 402 },
532
+ [_m],
533
+ [0], 1
534
+ ];
535
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
536
+ var ThrottlingException$ = [-3, n0, _TE,
537
+ { [_e]: _c, [_hE]: 429 },
538
+ [_m, _sC, _qC, _rAS],
539
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
540
+ ];
541
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
542
+ var ValidationException$ = [-3, n0, _VE,
543
+ { [_e]: _c, [_hE]: 400 },
544
+ [_m],
545
+ [0], 1
546
+ ];
547
+ n0_registry.registerError(ValidationException$, ValidationException);
548
+ const errorTypeRegistries = [
549
+ _s_registry,
550
+ n0_registry,
551
+ ];
552
+ var JsonValue = [0, n0, _JV, { [_mT]: _a }, 0];
553
+ var AppMonitor$ = [3, n0, _AM,
554
+ 0,
555
+ [_N, _D, _DL, _I, _C, _LM, _T, _S, _AMC, _DS, _CEu, _DC, _P],
556
+ [0, 0, 64 | 0, 0, 0, 0, 128 | 0, 0, () => AppMonitorConfiguration$, () => DataStorage$, () => CustomEvents$, () => DeobfuscationConfiguration$, 0]
557
+ ];
558
+ var AppMonitorConfiguration$ = [3, n0, _AMC,
559
+ 0,
560
+ [_IPI, _EP, _IP, _FP, _SSR, _GRA, _AC, _Te, _EXR],
561
+ [0, 64 | 0, 64 | 0, 64 | 0, 1, 0, 2, 64 | 0, 2]
562
+ ];
563
+ var AppMonitorDetails$ = [3, n0, _AMD,
564
+ 0,
565
+ [_n, _i, _v],
566
+ [0, 0, 0]
567
+ ];
568
+ var AppMonitorSummary$ = [3, n0, _AMS,
569
+ 0,
570
+ [_N, _I, _C, _LM, _S, _P],
571
+ [0, 0, 0, 0, 0, 0]
572
+ ];
573
+ var BatchCreateRumMetricDefinitionsError$ = [3, n0, _BCRMDE,
574
+ 0,
575
+ [_MD, _EC, _EM],
576
+ [() => MetricDefinitionRequest$, 0, 0], 3
577
+ ];
578
+ var BatchCreateRumMetricDefinitionsRequest$ = [3, n0, _BCRMDR,
579
+ 0,
580
+ [_AMN, _De, _MDe, _DA],
581
+ [[0, 1], 0, () => MetricDefinitionsRequest, 0], 3
582
+ ];
583
+ var BatchCreateRumMetricDefinitionsResponse$ = [3, n0, _BCRMDRa,
584
+ 0,
585
+ [_E, _MDe],
586
+ [() => BatchCreateRumMetricDefinitionsErrors, () => MetricDefinitions], 1
587
+ ];
588
+ var BatchDeleteRumMetricDefinitionsError$ = [3, n0, _BDRMDE,
589
+ 0,
590
+ [_MDI, _EC, _EM],
591
+ [0, 0, 0], 3
592
+ ];
593
+ var BatchDeleteRumMetricDefinitionsRequest$ = [3, n0, _BDRMDR,
594
+ 0,
595
+ [_AMN, _De, _MDIe, _DA],
596
+ [[0, 1], [0, { [_hQ]: _d }], [64 | 0, { [_hQ]: _mDI }], [0, { [_hQ]: _dA }]], 3
597
+ ];
598
+ var BatchDeleteRumMetricDefinitionsResponse$ = [3, n0, _BDRMDRa,
599
+ 0,
600
+ [_E, _MDIe],
601
+ [() => BatchDeleteRumMetricDefinitionsErrors, 64 | 0], 1
602
+ ];
603
+ var BatchGetRumMetricDefinitionsRequest$ = [3, n0, _BGRMDR,
604
+ 0,
605
+ [_AMN, _De, _DA, _MR, _NT],
606
+ [[0, 1], [0, { [_hQ]: _d }], [0, { [_hQ]: _dA }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 2
607
+ ];
608
+ var BatchGetRumMetricDefinitionsResponse$ = [3, n0, _BGRMDRa,
609
+ 0,
610
+ [_MDe, _NT],
611
+ [() => MetricDefinitions, 0]
612
+ ];
613
+ var CreateAppMonitorRequest$ = [3, n0, _CAMR,
614
+ 0,
615
+ [_N, _D, _DL, _T, _AMC, _CLE, _CEu, _DC, _P],
616
+ [0, 0, 64 | 0, 128 | 0, () => AppMonitorConfiguration$, 2, () => CustomEvents$, () => DeobfuscationConfiguration$, 0], 1
617
+ ];
618
+ var CreateAppMonitorResponse$ = [3, n0, _CAMRr,
619
+ 0,
620
+ [_I],
621
+ [0]
622
+ ];
623
+ var CustomEvents$ = [3, n0, _CEu,
624
+ 0,
625
+ [_St],
626
+ [0]
627
+ ];
628
+ var CwLog$ = [3, n0, _CL,
629
+ 0,
630
+ [_CLE, _CLG],
631
+ [2, 0]
632
+ ];
633
+ var DataStorage$ = [3, n0, _DS,
634
+ 0,
635
+ [_CL],
636
+ [() => CwLog$]
637
+ ];
638
+ var DeleteAppMonitorRequest$ = [3, n0, _DAMR,
639
+ 0,
640
+ [_N],
641
+ [[0, 1]], 1
642
+ ];
643
+ var DeleteAppMonitorResponse$ = [3, n0, _DAMRe,
644
+ 0,
645
+ [],
646
+ []
647
+ ];
648
+ var DeleteResourcePolicyRequest$ = [3, n0, _DRPR,
649
+ 0,
650
+ [_N, _PRI],
651
+ [[0, 1], [0, { [_hQ]: _pRI }]], 1
652
+ ];
653
+ var DeleteResourcePolicyResponse$ = [3, n0, _DRPRe,
654
+ 0,
655
+ [_PRI],
656
+ [0]
657
+ ];
658
+ var DeleteRumMetricsDestinationRequest$ = [3, n0, _DRMDR,
659
+ 0,
660
+ [_AMN, _De, _DA],
661
+ [[0, 1], [0, { [_hQ]: _d }], [0, { [_hQ]: _dA }]], 2
662
+ ];
663
+ var DeleteRumMetricsDestinationResponse$ = [3, n0, _DRMDRe,
664
+ 0,
665
+ [],
666
+ []
667
+ ];
668
+ var DeobfuscationConfiguration$ = [3, n0, _DC,
669
+ 0,
670
+ [_JSSM],
671
+ [() => JavaScriptSourceMaps$]
672
+ ];
673
+ var GetAppMonitorDataRequest$ = [3, n0, _GAMDR,
674
+ 0,
675
+ [_N, _TR, _F, _MR, _NT],
676
+ [[0, 1], () => TimeRange$, () => QueryFilters, 1, 0], 2
677
+ ];
678
+ var GetAppMonitorDataResponse$ = [3, n0, _GAMDRe,
679
+ 0,
680
+ [_Ev, _NT],
681
+ [64 | 0, 0]
682
+ ];
683
+ var GetAppMonitorRequest$ = [3, n0, _GAMR,
684
+ 0,
685
+ [_N],
686
+ [[0, 1]], 1
687
+ ];
688
+ var GetAppMonitorResponse$ = [3, n0, _GAMRe,
689
+ 0,
690
+ [_AM],
691
+ [() => AppMonitor$]
692
+ ];
693
+ var GetResourcePolicyRequest$ = [3, n0, _GRPR,
694
+ 0,
695
+ [_N],
696
+ [[0, 1]], 1
697
+ ];
698
+ var GetResourcePolicyResponse$ = [3, n0, _GRPRe,
699
+ 0,
700
+ [_PD, _PRI],
701
+ [0, 0]
702
+ ];
703
+ var JavaScriptSourceMaps$ = [3, n0, _JSSM,
704
+ 0,
705
+ [_St, _SU],
706
+ [0, 0], 1
707
+ ];
708
+ var ListAppMonitorsRequest$ = [3, n0, _LAMR,
709
+ 0,
710
+ [_MR, _NT],
711
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
712
+ ];
713
+ var ListAppMonitorsResponse$ = [3, n0, _LAMRi,
714
+ 0,
715
+ [_NT, _AMSp],
716
+ [0, () => AppMonitorSummaryList]
717
+ ];
718
+ var ListRumMetricsDestinationsRequest$ = [3, n0, _LRMDR,
719
+ 0,
720
+ [_AMN, _MR, _NT],
721
+ [[0, 1], [1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]], 1
722
+ ];
723
+ var ListRumMetricsDestinationsResponse$ = [3, n0, _LRMDRi,
724
+ 0,
725
+ [_Des, _NT],
726
+ [() => MetricDestinationSummaryList, 0]
727
+ ];
728
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
729
+ 0,
730
+ [_RAe],
731
+ [[0, 1]], 1
732
+ ];
733
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
734
+ 0,
735
+ [_RAe, _T],
736
+ [0, 128 | 0], 2
737
+ ];
738
+ var MetricDefinition$ = [3, n0, _MD,
739
+ 0,
740
+ [_MDI, _N, _VK, _UL, _DK, _EPv, _Na],
741
+ [0, 0, 0, 0, 128 | 0, 0, 0], 2
742
+ ];
743
+ var MetricDefinitionRequest$ = [3, n0, _MDR,
744
+ 0,
745
+ [_N, _VK, _UL, _DK, _EPv, _Na],
746
+ [0, 0, 0, 128 | 0, 0, 0], 1
747
+ ];
748
+ var MetricDestinationSummary$ = [3, n0, _MDS,
749
+ 0,
750
+ [_De, _DA, _IRA],
751
+ [0, 0, 0]
752
+ ];
753
+ var PutResourcePolicyRequest$ = [3, n0, _PRPR,
754
+ 0,
755
+ [_N, _PD, _PRI],
756
+ [[0, 1], 0, 0], 2
757
+ ];
758
+ var PutResourcePolicyResponse$ = [3, n0, _PRPRu,
759
+ 0,
760
+ [_PD, _PRI],
761
+ [0, 0]
762
+ ];
763
+ var PutRumEventsRequest$ = [3, n0, _PRER,
764
+ 0,
765
+ [_I, _BI, _AMD, _UD, _RE, _A],
766
+ [[0, 1], 0, () => AppMonitorDetails$, () => UserDetails$, [() => RumEventList, 0], 0], 5
767
+ ];
768
+ var PutRumEventsResponse$ = [3, n0, _PRERu,
769
+ 0,
770
+ [],
771
+ []
772
+ ];
773
+ var PutRumMetricsDestinationRequest$ = [3, n0, _PRMDR,
774
+ 0,
775
+ [_AMN, _De, _DA, _IRA],
776
+ [[0, 1], 0, 0, 0], 2
777
+ ];
778
+ var PutRumMetricsDestinationResponse$ = [3, n0, _PRMDRu,
779
+ 0,
780
+ [],
781
+ []
782
+ ];
783
+ var QueryFilter$ = [3, n0, _QF,
784
+ 0,
785
+ [_N, _V],
786
+ [0, 64 | 0]
787
+ ];
788
+ var RumEvent$ = [3, n0, _REu,
789
+ 0,
790
+ [_i, _t, _ty, _de, _me],
791
+ [0, 4, 0, [() => JsonValue, 0], [() => JsonValue, 0]], 4
792
+ ];
793
+ var TagResourceRequest$ = [3, n0, _TRR,
794
+ 0,
795
+ [_RAe, _T],
796
+ [[0, 1], 128 | 0], 2
797
+ ];
798
+ var TagResourceResponse$ = [3, n0, _TRRa,
799
+ 0,
800
+ [],
801
+ []
802
+ ];
803
+ var TimeRange$ = [3, n0, _TR,
804
+ 0,
805
+ [_Af, _B],
806
+ [1, 1], 1
807
+ ];
808
+ var UntagResourceRequest$ = [3, n0, _URR,
809
+ 0,
810
+ [_RAe, _TK],
811
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
812
+ ];
813
+ var UntagResourceResponse$ = [3, n0, _URRn,
814
+ 0,
815
+ [],
816
+ []
817
+ ];
818
+ var UpdateAppMonitorRequest$ = [3, n0, _UAMR,
819
+ 0,
820
+ [_N, _D, _DL, _AMC, _CLE, _CEu, _DC],
821
+ [[0, 1], 0, 64 | 0, () => AppMonitorConfiguration$, 2, () => CustomEvents$, () => DeobfuscationConfiguration$], 1
822
+ ];
823
+ var UpdateAppMonitorResponse$ = [3, n0, _UAMRp,
824
+ 0,
825
+ [],
826
+ []
827
+ ];
828
+ var UpdateRumMetricDefinitionRequest$ = [3, n0, _URMDR,
829
+ 0,
830
+ [_AMN, _De, _MD, _MDI, _DA],
831
+ [[0, 1], 0, () => MetricDefinitionRequest$, 0, 0], 4
832
+ ];
833
+ var UpdateRumMetricDefinitionResponse$ = [3, n0, _URMDRp,
834
+ 0,
835
+ [],
836
+ []
837
+ ];
838
+ var UserDetails$ = [3, n0, _UD,
839
+ 0,
840
+ [_uI, _sI],
841
+ [0, 0]
842
+ ];
843
+ var AppMonitorSummaryList = [1, n0, _AMSL,
844
+ 0, () => AppMonitorSummary$
845
+ ];
846
+ var BatchCreateRumMetricDefinitionsErrors = [1, n0, _BCRMDEa,
847
+ 0, () => BatchCreateRumMetricDefinitionsError$
848
+ ];
849
+ var BatchDeleteRumMetricDefinitionsErrors = [1, n0, _BDRMDEa,
850
+ 0, () => BatchDeleteRumMetricDefinitionsError$
851
+ ];
852
+ var MetricDefinitions = [1, n0, _MDe,
853
+ 0, () => MetricDefinition$
854
+ ];
855
+ var MetricDefinitionsRequest = [1, n0, _MDRe,
856
+ 0, () => MetricDefinitionRequest$
857
+ ];
858
+ var MetricDestinationSummaryList = [1, n0, _MDSL,
859
+ 0, () => MetricDestinationSummary$
860
+ ];
861
+ var QueryFilters = [1, n0, _QFu,
862
+ 0, () => QueryFilter$
863
+ ];
864
+ var RumEventList = [1, n0, _REL,
865
+ 0, [() => RumEvent$,
866
+ 0]
867
+ ];
868
+ var BatchCreateRumMetricDefinitions$ = [9, n0, _BCRMD,
869
+ { [_h]: ["POST", "/rummetrics/{AppMonitorName}/metrics", 200] }, () => BatchCreateRumMetricDefinitionsRequest$, () => BatchCreateRumMetricDefinitionsResponse$
870
+ ];
871
+ var BatchDeleteRumMetricDefinitions$ = [9, n0, _BDRMD,
872
+ { [_h]: ["DELETE", "/rummetrics/{AppMonitorName}/metrics", 200] }, () => BatchDeleteRumMetricDefinitionsRequest$, () => BatchDeleteRumMetricDefinitionsResponse$
873
+ ];
874
+ var BatchGetRumMetricDefinitions$ = [9, n0, _BGRMD,
875
+ { [_h]: ["GET", "/rummetrics/{AppMonitorName}/metrics", 200] }, () => BatchGetRumMetricDefinitionsRequest$, () => BatchGetRumMetricDefinitionsResponse$
876
+ ];
877
+ var CreateAppMonitor$ = [9, n0, _CAM,
878
+ { [_h]: ["POST", "/appmonitor", 200] }, () => CreateAppMonitorRequest$, () => CreateAppMonitorResponse$
879
+ ];
880
+ var DeleteAppMonitor$ = [9, n0, _DAM,
881
+ { [_h]: ["DELETE", "/appmonitor/{Name}", 200] }, () => DeleteAppMonitorRequest$, () => DeleteAppMonitorResponse$
882
+ ];
883
+ var DeleteResourcePolicy$ = [9, n0, _DRP,
884
+ { [_h]: ["DELETE", "/appmonitor/{Name}/policy", 200] }, () => DeleteResourcePolicyRequest$, () => DeleteResourcePolicyResponse$
885
+ ];
886
+ var DeleteRumMetricsDestination$ = [9, n0, _DRMD,
887
+ { [_h]: ["DELETE", "/rummetrics/{AppMonitorName}/metricsdestination", 200] }, () => DeleteRumMetricsDestinationRequest$, () => DeleteRumMetricsDestinationResponse$
888
+ ];
889
+ var GetAppMonitor$ = [9, n0, _GAM,
890
+ { [_h]: ["GET", "/appmonitor/{Name}", 200] }, () => GetAppMonitorRequest$, () => GetAppMonitorResponse$
891
+ ];
892
+ var GetAppMonitorData$ = [9, n0, _GAMD,
893
+ { [_h]: ["POST", "/appmonitor/{Name}/data", 200] }, () => GetAppMonitorDataRequest$, () => GetAppMonitorDataResponse$
894
+ ];
895
+ var GetResourcePolicy$ = [9, n0, _GRP,
896
+ { [_h]: ["GET", "/appmonitor/{Name}/policy", 200] }, () => GetResourcePolicyRequest$, () => GetResourcePolicyResponse$
897
+ ];
898
+ var ListAppMonitors$ = [9, n0, _LAM,
899
+ { [_h]: ["POST", "/appmonitors", 200] }, () => ListAppMonitorsRequest$, () => ListAppMonitorsResponse$
900
+ ];
901
+ var ListRumMetricsDestinations$ = [9, n0, _LRMD,
902
+ { [_h]: ["GET", "/rummetrics/{AppMonitorName}/metricsdestination", 200] }, () => ListRumMetricsDestinationsRequest$, () => ListRumMetricsDestinationsResponse$
903
+ ];
904
+ var ListTagsForResource$ = [9, n0, _LTFR,
905
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
906
+ ];
907
+ var PutResourcePolicy$ = [9, n0, _PRP,
908
+ { [_h]: ["PUT", "/appmonitor/{Name}/policy", 200] }, () => PutResourcePolicyRequest$, () => PutResourcePolicyResponse$
909
+ ];
910
+ var PutRumEvents$ = [9, n0, _PRE,
911
+ { [_en]: ["dataplane."], [_h]: ["POST", "/appmonitors/{Id}/", 200] }, () => PutRumEventsRequest$, () => PutRumEventsResponse$
912
+ ];
913
+ var PutRumMetricsDestination$ = [9, n0, _PRMD,
914
+ { [_h]: ["POST", "/rummetrics/{AppMonitorName}/metricsdestination", 200] }, () => PutRumMetricsDestinationRequest$, () => PutRumMetricsDestinationResponse$
915
+ ];
916
+ var TagResource$ = [9, n0, _TRa,
917
+ { [_h]: ["POST", "/tags/{ResourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
918
+ ];
919
+ var UntagResource$ = [9, n0, _UR,
920
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
921
+ ];
922
+ var UpdateAppMonitor$ = [9, n0, _UAM,
923
+ { [_h]: ["PATCH", "/appmonitor/{Name}", 200] }, () => UpdateAppMonitorRequest$, () => UpdateAppMonitorResponse$
924
+ ];
925
+ var UpdateRumMetricDefinition$ = [9, n0, _URMD,
926
+ { [_h]: ["PATCH", "/rummetrics/{AppMonitorName}/metrics", 200] }, () => UpdateRumMetricDefinitionRequest$, () => UpdateRumMetricDefinitionResponse$
927
+ ];
928
+
929
+ const getRuntimeConfig$1 = (config) => {
930
+ return {
931
+ apiVersion: "2018-05-10",
932
+ base64Decoder: config?.base64Decoder ?? fromBase64,
933
+ base64Encoder: config?.base64Encoder ?? toBase64,
934
+ disableHostPrefix: config?.disableHostPrefix ?? false,
935
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
936
+ extensions: config?.extensions ?? [],
937
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultRUMHttpAuthSchemeProvider,
938
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
939
+ {
940
+ schemeId: "aws.auth#sigv4",
941
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
942
+ signer: new AwsSdkSigV4Signer(),
943
+ },
944
+ ],
945
+ logger: config?.logger ?? new NoOpLogger(),
946
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
947
+ protocolSettings: config?.protocolSettings ?? {
948
+ defaultNamespace: "com.amazonaws.rum",
949
+ errorTypeRegistries,
950
+ version: "2018-05-10",
951
+ serviceTarget: "RUM",
952
+ },
953
+ serviceId: config?.serviceId ?? "RUM",
954
+ sha256: config?.sha256 ?? Sha256,
955
+ urlParser: config?.urlParser ?? parseUrl,
956
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
957
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
958
+ };
959
+ };
960
+
961
+ const getRuntimeConfig = (config) => {
962
+ emitWarningIfUnsupportedVersion(process.version);
963
+ const defaultsMode = resolveDefaultsModeConfig(config);
964
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
965
+ const clientSharedValues = getRuntimeConfig$1(config);
966
+ emitWarningIfUnsupportedVersion$1(process.version);
967
+ const loaderConfig = {
968
+ profile: config?.profile,
969
+ logger: clientSharedValues.logger,
970
+ };
971
+ return {
972
+ ...clientSharedValues,
973
+ ...config,
974
+ runtime: "node",
975
+ defaultsMode,
976
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
977
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
978
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
979
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
980
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
981
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
982
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
983
+ retryMode: config?.retryMode ??
984
+ loadConfig({
985
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
986
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
987
+ }, config),
988
+ streamCollector: config?.streamCollector ?? streamCollector,
989
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
990
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
991
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
992
+ };
993
+ };
994
+
34
995
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
996
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
997
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -419,34 +1380,137 @@ const MetricDestination = {
419
1380
  Evidently: "Evidently",
420
1381
  };
421
1382
 
1383
+ exports.AccessDeniedException = AccessDeniedException;
1384
+ exports.AccessDeniedException$ = AccessDeniedException$;
1385
+ exports.AppMonitor$ = AppMonitor$;
1386
+ exports.AppMonitorConfiguration$ = AppMonitorConfiguration$;
1387
+ exports.AppMonitorDetails$ = AppMonitorDetails$;
422
1388
  exports.AppMonitorPlatform = AppMonitorPlatform;
1389
+ exports.AppMonitorSummary$ = AppMonitorSummary$;
1390
+ exports.BatchCreateRumMetricDefinitions$ = BatchCreateRumMetricDefinitions$;
423
1391
  exports.BatchCreateRumMetricDefinitionsCommand = BatchCreateRumMetricDefinitionsCommand;
1392
+ exports.BatchCreateRumMetricDefinitionsError$ = BatchCreateRumMetricDefinitionsError$;
1393
+ exports.BatchCreateRumMetricDefinitionsRequest$ = BatchCreateRumMetricDefinitionsRequest$;
1394
+ exports.BatchCreateRumMetricDefinitionsResponse$ = BatchCreateRumMetricDefinitionsResponse$;
1395
+ exports.BatchDeleteRumMetricDefinitions$ = BatchDeleteRumMetricDefinitions$;
424
1396
  exports.BatchDeleteRumMetricDefinitionsCommand = BatchDeleteRumMetricDefinitionsCommand;
1397
+ exports.BatchDeleteRumMetricDefinitionsError$ = BatchDeleteRumMetricDefinitionsError$;
1398
+ exports.BatchDeleteRumMetricDefinitionsRequest$ = BatchDeleteRumMetricDefinitionsRequest$;
1399
+ exports.BatchDeleteRumMetricDefinitionsResponse$ = BatchDeleteRumMetricDefinitionsResponse$;
1400
+ exports.BatchGetRumMetricDefinitions$ = BatchGetRumMetricDefinitions$;
425
1401
  exports.BatchGetRumMetricDefinitionsCommand = BatchGetRumMetricDefinitionsCommand;
1402
+ exports.BatchGetRumMetricDefinitionsRequest$ = BatchGetRumMetricDefinitionsRequest$;
1403
+ exports.BatchGetRumMetricDefinitionsResponse$ = BatchGetRumMetricDefinitionsResponse$;
1404
+ exports.ConflictException = ConflictException;
1405
+ exports.ConflictException$ = ConflictException$;
1406
+ exports.CreateAppMonitor$ = CreateAppMonitor$;
426
1407
  exports.CreateAppMonitorCommand = CreateAppMonitorCommand;
1408
+ exports.CreateAppMonitorRequest$ = CreateAppMonitorRequest$;
1409
+ exports.CreateAppMonitorResponse$ = CreateAppMonitorResponse$;
1410
+ exports.CustomEvents$ = CustomEvents$;
427
1411
  exports.CustomEventsStatus = CustomEventsStatus;
1412
+ exports.CwLog$ = CwLog$;
1413
+ exports.DataStorage$ = DataStorage$;
1414
+ exports.DeleteAppMonitor$ = DeleteAppMonitor$;
428
1415
  exports.DeleteAppMonitorCommand = DeleteAppMonitorCommand;
1416
+ exports.DeleteAppMonitorRequest$ = DeleteAppMonitorRequest$;
1417
+ exports.DeleteAppMonitorResponse$ = DeleteAppMonitorResponse$;
1418
+ exports.DeleteResourcePolicy$ = DeleteResourcePolicy$;
429
1419
  exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
1420
+ exports.DeleteResourcePolicyRequest$ = DeleteResourcePolicyRequest$;
1421
+ exports.DeleteResourcePolicyResponse$ = DeleteResourcePolicyResponse$;
1422
+ exports.DeleteRumMetricsDestination$ = DeleteRumMetricsDestination$;
430
1423
  exports.DeleteRumMetricsDestinationCommand = DeleteRumMetricsDestinationCommand;
1424
+ exports.DeleteRumMetricsDestinationRequest$ = DeleteRumMetricsDestinationRequest$;
1425
+ exports.DeleteRumMetricsDestinationResponse$ = DeleteRumMetricsDestinationResponse$;
1426
+ exports.DeobfuscationConfiguration$ = DeobfuscationConfiguration$;
431
1427
  exports.DeobfuscationStatus = DeobfuscationStatus;
1428
+ exports.GetAppMonitor$ = GetAppMonitor$;
432
1429
  exports.GetAppMonitorCommand = GetAppMonitorCommand;
1430
+ exports.GetAppMonitorData$ = GetAppMonitorData$;
433
1431
  exports.GetAppMonitorDataCommand = GetAppMonitorDataCommand;
1432
+ exports.GetAppMonitorDataRequest$ = GetAppMonitorDataRequest$;
1433
+ exports.GetAppMonitorDataResponse$ = GetAppMonitorDataResponse$;
1434
+ exports.GetAppMonitorRequest$ = GetAppMonitorRequest$;
1435
+ exports.GetAppMonitorResponse$ = GetAppMonitorResponse$;
1436
+ exports.GetResourcePolicy$ = GetResourcePolicy$;
434
1437
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1438
+ exports.GetResourcePolicyRequest$ = GetResourcePolicyRequest$;
1439
+ exports.GetResourcePolicyResponse$ = GetResourcePolicyResponse$;
1440
+ exports.InternalServerException = InternalServerException;
1441
+ exports.InternalServerException$ = InternalServerException$;
1442
+ exports.InvalidPolicyRevisionIdException = InvalidPolicyRevisionIdException;
1443
+ exports.InvalidPolicyRevisionIdException$ = InvalidPolicyRevisionIdException$;
1444
+ exports.JavaScriptSourceMaps$ = JavaScriptSourceMaps$;
1445
+ exports.ListAppMonitors$ = ListAppMonitors$;
435
1446
  exports.ListAppMonitorsCommand = ListAppMonitorsCommand;
1447
+ exports.ListAppMonitorsRequest$ = ListAppMonitorsRequest$;
1448
+ exports.ListAppMonitorsResponse$ = ListAppMonitorsResponse$;
1449
+ exports.ListRumMetricsDestinations$ = ListRumMetricsDestinations$;
436
1450
  exports.ListRumMetricsDestinationsCommand = ListRumMetricsDestinationsCommand;
1451
+ exports.ListRumMetricsDestinationsRequest$ = ListRumMetricsDestinationsRequest$;
1452
+ exports.ListRumMetricsDestinationsResponse$ = ListRumMetricsDestinationsResponse$;
1453
+ exports.ListTagsForResource$ = ListTagsForResource$;
437
1454
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1455
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1456
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1457
+ exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
1458
+ exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
1459
+ exports.MetricDefinition$ = MetricDefinition$;
1460
+ exports.MetricDefinitionRequest$ = MetricDefinitionRequest$;
438
1461
  exports.MetricDestination = MetricDestination;
1462
+ exports.MetricDestinationSummary$ = MetricDestinationSummary$;
1463
+ exports.PolicyNotFoundException = PolicyNotFoundException;
1464
+ exports.PolicyNotFoundException$ = PolicyNotFoundException$;
1465
+ exports.PolicySizeLimitExceededException = PolicySizeLimitExceededException;
1466
+ exports.PolicySizeLimitExceededException$ = PolicySizeLimitExceededException$;
1467
+ exports.PutResourcePolicy$ = PutResourcePolicy$;
439
1468
  exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
1469
+ exports.PutResourcePolicyRequest$ = PutResourcePolicyRequest$;
1470
+ exports.PutResourcePolicyResponse$ = PutResourcePolicyResponse$;
1471
+ exports.PutRumEvents$ = PutRumEvents$;
440
1472
  exports.PutRumEventsCommand = PutRumEventsCommand;
1473
+ exports.PutRumEventsRequest$ = PutRumEventsRequest$;
1474
+ exports.PutRumEventsResponse$ = PutRumEventsResponse$;
1475
+ exports.PutRumMetricsDestination$ = PutRumMetricsDestination$;
441
1476
  exports.PutRumMetricsDestinationCommand = PutRumMetricsDestinationCommand;
1477
+ exports.PutRumMetricsDestinationRequest$ = PutRumMetricsDestinationRequest$;
1478
+ exports.PutRumMetricsDestinationResponse$ = PutRumMetricsDestinationResponse$;
1479
+ exports.QueryFilter$ = QueryFilter$;
442
1480
  exports.RUM = RUM;
443
1481
  exports.RUMClient = RUMClient;
1482
+ exports.RUMServiceException = RUMServiceException;
1483
+ exports.RUMServiceException$ = RUMServiceException$;
1484
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1485
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1486
+ exports.RumEvent$ = RumEvent$;
1487
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1488
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
444
1489
  exports.StateEnum = StateEnum;
1490
+ exports.TagResource$ = TagResource$;
445
1491
  exports.TagResourceCommand = TagResourceCommand;
1492
+ exports.TagResourceRequest$ = TagResourceRequest$;
1493
+ exports.TagResourceResponse$ = TagResourceResponse$;
446
1494
  exports.Telemetry = Telemetry;
1495
+ exports.ThrottlingException = ThrottlingException;
1496
+ exports.ThrottlingException$ = ThrottlingException$;
1497
+ exports.TimeRange$ = TimeRange$;
1498
+ exports.UntagResource$ = UntagResource$;
447
1499
  exports.UntagResourceCommand = UntagResourceCommand;
1500
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1501
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1502
+ exports.UpdateAppMonitor$ = UpdateAppMonitor$;
448
1503
  exports.UpdateAppMonitorCommand = UpdateAppMonitorCommand;
1504
+ exports.UpdateAppMonitorRequest$ = UpdateAppMonitorRequest$;
1505
+ exports.UpdateAppMonitorResponse$ = UpdateAppMonitorResponse$;
1506
+ exports.UpdateRumMetricDefinition$ = UpdateRumMetricDefinition$;
449
1507
  exports.UpdateRumMetricDefinitionCommand = UpdateRumMetricDefinitionCommand;
1508
+ exports.UpdateRumMetricDefinitionRequest$ = UpdateRumMetricDefinitionRequest$;
1509
+ exports.UpdateRumMetricDefinitionResponse$ = UpdateRumMetricDefinitionResponse$;
1510
+ exports.UserDetails$ = UserDetails$;
1511
+ exports.ValidationException = ValidationException;
1512
+ exports.ValidationException$ = ValidationException$;
1513
+ exports.errorTypeRegistries = errorTypeRegistries;
450
1514
  exports.paginateBatchGetRumMetricDefinitions = paginateBatchGetRumMetricDefinitions;
451
1515
  exports.paginateGetAppMonitorData = paginateGetAppMonitorData;
452
1516
  exports.paginateListAppMonitors = paginateListAppMonitors;