@aws-sdk/client-rum 3.44.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.
Files changed (108) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +211 -0
  4. package/dist-cjs/RUM.js +157 -0
  5. package/dist-cjs/RUMClient.js +35 -0
  6. package/dist-cjs/commands/CreateAppMonitorCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteAppMonitorCommand.js +36 -0
  8. package/dist-cjs/commands/GetAppMonitorCommand.js +36 -0
  9. package/dist-cjs/commands/GetAppMonitorDataCommand.js +36 -0
  10. package/dist-cjs/commands/ListAppMonitorsCommand.js +36 -0
  11. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  12. package/dist-cjs/commands/PutRumEventsCommand.js +36 -0
  13. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  14. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  15. package/dist-cjs/commands/UpdateAppMonitorCommand.js +36 -0
  16. package/dist-cjs/commands/index.js +13 -0
  17. package/dist-cjs/endpoints.js +130 -0
  18. package/dist-cjs/index.js +8 -0
  19. package/dist-cjs/models/index.js +4 -0
  20. package/dist-cjs/models/models_0.js +237 -0
  21. package/dist-cjs/pagination/GetAppMonitorDataPaginator.js +35 -0
  22. package/dist-cjs/pagination/Interfaces.js +2 -0
  23. package/dist-cjs/pagination/ListAppMonitorsPaginator.js +35 -0
  24. package/dist-cjs/pagination/index.js +6 -0
  25. package/dist-cjs/protocols/Aws_restJson1.js +1502 -0
  26. package/dist-cjs/runtimeConfig.browser.js +40 -0
  27. package/dist-cjs/runtimeConfig.js +44 -0
  28. package/dist-cjs/runtimeConfig.native.js +16 -0
  29. package/dist-cjs/runtimeConfig.shared.js +17 -0
  30. package/dist-es/RUM.js +160 -0
  31. package/dist-es/RUMClient.js +37 -0
  32. package/dist-es/commands/CreateAppMonitorCommand.js +39 -0
  33. package/dist-es/commands/DeleteAppMonitorCommand.js +39 -0
  34. package/dist-es/commands/GetAppMonitorCommand.js +39 -0
  35. package/dist-es/commands/GetAppMonitorDataCommand.js +39 -0
  36. package/dist-es/commands/ListAppMonitorsCommand.js +39 -0
  37. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  38. package/dist-es/commands/PutRumEventsCommand.js +39 -0
  39. package/dist-es/commands/TagResourceCommand.js +39 -0
  40. package/dist-es/commands/UntagResourceCommand.js +39 -0
  41. package/dist-es/commands/UpdateAppMonitorCommand.js +39 -0
  42. package/dist-es/commands/index.js +10 -0
  43. package/dist-es/endpoints.js +126 -0
  44. package/dist-es/index.js +5 -0
  45. package/dist-es/models/index.js +1 -0
  46. package/dist-es/models/models_0.js +161 -0
  47. package/dist-es/pagination/GetAppMonitorDataPaginator.js +74 -0
  48. package/dist-es/pagination/Interfaces.js +1 -0
  49. package/dist-es/pagination/ListAppMonitorsPaginator.js +74 -0
  50. package/dist-es/pagination/index.js +3 -0
  51. package/dist-es/protocols/Aws_restJson1.js +1652 -0
  52. package/dist-es/runtimeConfig.browser.js +17 -0
  53. package/dist-es/runtimeConfig.js +21 -0
  54. package/dist-es/runtimeConfig.native.js +8 -0
  55. package/dist-es/runtimeConfig.shared.js +13 -0
  56. package/dist-types/RUM.d.ts +120 -0
  57. package/dist-types/RUMClient.d.ts +158 -0
  58. package/dist-types/commands/CreateAppMonitorCommand.d.ts +43 -0
  59. package/dist-types/commands/DeleteAppMonitorCommand.d.ts +35 -0
  60. package/dist-types/commands/GetAppMonitorCommand.d.ts +35 -0
  61. package/dist-types/commands/GetAppMonitorDataCommand.d.ts +36 -0
  62. package/dist-types/commands/ListAppMonitorsCommand.d.ts +35 -0
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  64. package/dist-types/commands/PutRumEventsCommand.d.ts +38 -0
  65. package/dist-types/commands/TagResourceCommand.d.ts +48 -0
  66. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  67. package/dist-types/commands/UpdateAppMonitorCommand.d.ts +45 -0
  68. package/dist-types/commands/index.d.ts +10 -0
  69. package/dist-types/endpoints.d.ts +2 -0
  70. package/dist-types/index.d.ts +5 -0
  71. package/dist-types/models/index.d.ts +1 -0
  72. package/dist-types/models/models_0.d.ts +824 -0
  73. package/dist-types/pagination/GetAppMonitorDataPaginator.d.ts +4 -0
  74. package/dist-types/pagination/Interfaces.d.ts +6 -0
  75. package/dist-types/pagination/ListAppMonitorsPaginator.d.ts +4 -0
  76. package/dist-types/pagination/index.d.ts +3 -0
  77. package/dist-types/protocols/Aws_restJson1.d.ts +32 -0
  78. package/dist-types/runtimeConfig.browser.d.ts +39 -0
  79. package/dist-types/runtimeConfig.d.ts +39 -0
  80. package/dist-types/runtimeConfig.native.d.ts +38 -0
  81. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  82. package/dist-types/ts3.4/RUM.d.ts +55 -0
  83. package/dist-types/ts3.4/RUMClient.d.ts +81 -0
  84. package/dist-types/ts3.4/commands/CreateAppMonitorCommand.d.ts +17 -0
  85. package/dist-types/ts3.4/commands/DeleteAppMonitorCommand.d.ts +17 -0
  86. package/dist-types/ts3.4/commands/GetAppMonitorCommand.d.ts +17 -0
  87. package/dist-types/ts3.4/commands/GetAppMonitorDataCommand.d.ts +17 -0
  88. package/dist-types/ts3.4/commands/ListAppMonitorsCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/PutRumEventsCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/UpdateAppMonitorCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  95. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  96. package/dist-types/ts3.4/index.d.ts +5 -0
  97. package/dist-types/ts3.4/models/index.d.ts +1 -0
  98. package/dist-types/ts3.4/models/models_0.d.ts +455 -0
  99. package/dist-types/ts3.4/pagination/GetAppMonitorDataPaginator.d.ts +4 -0
  100. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  101. package/dist-types/ts3.4/pagination/ListAppMonitorsPaginator.d.ts +4 -0
  102. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  103. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +32 -0
  104. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +37 -0
  105. package/dist-types/ts3.4/runtimeConfig.d.ts +37 -0
  106. package/dist-types/ts3.4/runtimeConfig.native.d.ts +36 -0
  107. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  108. package/package.json +94 -0
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
8
+ const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
9
+ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
+ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
+ const util_base64_browser_1 = require("@aws-sdk/util-base64-browser");
12
+ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
+ const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const getRuntimeConfig = (config) => {
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
+ const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
+ return {
20
+ ...clientSharedValues,
21
+ ...config,
22
+ runtime: "browser",
23
+ base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
+ base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
+ bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
26
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
32
+ sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
+ streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
38
+ };
39
+ };
40
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const client_sts_1 = require("@aws-sdk/client-sts");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
8
+ const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
9
+ const hash_node_1 = require("@aws-sdk/hash-node");
10
+ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
11
+ const node_config_provider_1 = require("@aws-sdk/node-config-provider");
12
+ const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
+ const util_base64_node_1 = require("@aws-sdk/util-base64-node");
14
+ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
+ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const getRuntimeConfig = (config) => {
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
+ smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
+ return {
24
+ ...clientSharedValues,
25
+ ...config,
26
+ runtime: "node",
27
+ base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
+ base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
+ bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
30
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
31
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
34
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
+ sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
+ streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
42
+ };
43
+ };
44
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ var _a;
8
+ const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
9
+ return {
10
+ ...browserDefaults,
11
+ ...config,
12
+ runtime: "react-native",
13
+ sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256,
14
+ };
15
+ };
16
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const url_parser_1 = require("@aws-sdk/url-parser");
5
+ const endpoints_1 = require("./endpoints");
6
+ const getRuntimeConfig = (config) => {
7
+ var _a, _b, _c, _d, _e;
8
+ return ({
9
+ apiVersion: "2018-05-10",
10
+ disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
11
+ logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
12
+ regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider,
13
+ serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "RUM",
14
+ urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
15
+ });
16
+ };
17
+ exports.getRuntimeConfig = getRuntimeConfig;
package/dist-es/RUM.js ADDED
@@ -0,0 +1,160 @@
1
+ import { __extends } from "tslib";
2
+ import { CreateAppMonitorCommand, } from "./commands/CreateAppMonitorCommand";
3
+ import { DeleteAppMonitorCommand, } from "./commands/DeleteAppMonitorCommand";
4
+ import { GetAppMonitorCommand, } from "./commands/GetAppMonitorCommand";
5
+ import { GetAppMonitorDataCommand, } from "./commands/GetAppMonitorDataCommand";
6
+ import { ListAppMonitorsCommand, } from "./commands/ListAppMonitorsCommand";
7
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
8
+ import { PutRumEventsCommand, } from "./commands/PutRumEventsCommand";
9
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
10
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
11
+ import { UpdateAppMonitorCommand, } from "./commands/UpdateAppMonitorCommand";
12
+ import { RUMClient } from "./RUMClient";
13
+ var RUM = (function (_super) {
14
+ __extends(RUM, _super);
15
+ function RUM() {
16
+ return _super !== null && _super.apply(this, arguments) || this;
17
+ }
18
+ RUM.prototype.createAppMonitor = function (args, optionsOrCb, cb) {
19
+ var command = new CreateAppMonitorCommand(args);
20
+ if (typeof optionsOrCb === "function") {
21
+ this.send(command, optionsOrCb);
22
+ }
23
+ else if (typeof cb === "function") {
24
+ if (typeof optionsOrCb !== "object")
25
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
26
+ this.send(command, optionsOrCb || {}, cb);
27
+ }
28
+ else {
29
+ return this.send(command, optionsOrCb);
30
+ }
31
+ };
32
+ RUM.prototype.deleteAppMonitor = function (args, optionsOrCb, cb) {
33
+ var command = new DeleteAppMonitorCommand(args);
34
+ if (typeof optionsOrCb === "function") {
35
+ this.send(command, optionsOrCb);
36
+ }
37
+ else if (typeof cb === "function") {
38
+ if (typeof optionsOrCb !== "object")
39
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
40
+ this.send(command, optionsOrCb || {}, cb);
41
+ }
42
+ else {
43
+ return this.send(command, optionsOrCb);
44
+ }
45
+ };
46
+ RUM.prototype.getAppMonitor = function (args, optionsOrCb, cb) {
47
+ var command = new GetAppMonitorCommand(args);
48
+ if (typeof optionsOrCb === "function") {
49
+ this.send(command, optionsOrCb);
50
+ }
51
+ else if (typeof cb === "function") {
52
+ if (typeof optionsOrCb !== "object")
53
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
54
+ this.send(command, optionsOrCb || {}, cb);
55
+ }
56
+ else {
57
+ return this.send(command, optionsOrCb);
58
+ }
59
+ };
60
+ RUM.prototype.getAppMonitorData = function (args, optionsOrCb, cb) {
61
+ var command = new GetAppMonitorDataCommand(args);
62
+ if (typeof optionsOrCb === "function") {
63
+ this.send(command, optionsOrCb);
64
+ }
65
+ else if (typeof cb === "function") {
66
+ if (typeof optionsOrCb !== "object")
67
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
68
+ this.send(command, optionsOrCb || {}, cb);
69
+ }
70
+ else {
71
+ return this.send(command, optionsOrCb);
72
+ }
73
+ };
74
+ RUM.prototype.listAppMonitors = function (args, optionsOrCb, cb) {
75
+ var command = new ListAppMonitorsCommand(args);
76
+ if (typeof optionsOrCb === "function") {
77
+ this.send(command, optionsOrCb);
78
+ }
79
+ else if (typeof cb === "function") {
80
+ if (typeof optionsOrCb !== "object")
81
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
82
+ this.send(command, optionsOrCb || {}, cb);
83
+ }
84
+ else {
85
+ return this.send(command, optionsOrCb);
86
+ }
87
+ };
88
+ RUM.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
89
+ var command = new ListTagsForResourceCommand(args);
90
+ if (typeof optionsOrCb === "function") {
91
+ this.send(command, optionsOrCb);
92
+ }
93
+ else if (typeof cb === "function") {
94
+ if (typeof optionsOrCb !== "object")
95
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
96
+ this.send(command, optionsOrCb || {}, cb);
97
+ }
98
+ else {
99
+ return this.send(command, optionsOrCb);
100
+ }
101
+ };
102
+ RUM.prototype.putRumEvents = function (args, optionsOrCb, cb) {
103
+ var command = new PutRumEventsCommand(args);
104
+ if (typeof optionsOrCb === "function") {
105
+ this.send(command, optionsOrCb);
106
+ }
107
+ else if (typeof cb === "function") {
108
+ if (typeof optionsOrCb !== "object")
109
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
110
+ this.send(command, optionsOrCb || {}, cb);
111
+ }
112
+ else {
113
+ return this.send(command, optionsOrCb);
114
+ }
115
+ };
116
+ RUM.prototype.tagResource = function (args, optionsOrCb, cb) {
117
+ var command = new TagResourceCommand(args);
118
+ if (typeof optionsOrCb === "function") {
119
+ this.send(command, optionsOrCb);
120
+ }
121
+ else if (typeof cb === "function") {
122
+ if (typeof optionsOrCb !== "object")
123
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
124
+ this.send(command, optionsOrCb || {}, cb);
125
+ }
126
+ else {
127
+ return this.send(command, optionsOrCb);
128
+ }
129
+ };
130
+ RUM.prototype.untagResource = function (args, optionsOrCb, cb) {
131
+ var command = new UntagResourceCommand(args);
132
+ if (typeof optionsOrCb === "function") {
133
+ this.send(command, optionsOrCb);
134
+ }
135
+ else if (typeof cb === "function") {
136
+ if (typeof optionsOrCb !== "object")
137
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
138
+ this.send(command, optionsOrCb || {}, cb);
139
+ }
140
+ else {
141
+ return this.send(command, optionsOrCb);
142
+ }
143
+ };
144
+ RUM.prototype.updateAppMonitor = function (args, optionsOrCb, cb) {
145
+ var command = new UpdateAppMonitorCommand(args);
146
+ if (typeof optionsOrCb === "function") {
147
+ this.send(command, optionsOrCb);
148
+ }
149
+ else if (typeof cb === "function") {
150
+ if (typeof optionsOrCb !== "object")
151
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
152
+ this.send(command, optionsOrCb || {}, cb);
153
+ }
154
+ else {
155
+ return this.send(command, optionsOrCb);
156
+ }
157
+ };
158
+ return RUM;
159
+ }(RUMClient));
160
+ export { RUM };
@@ -0,0 +1,37 @@
1
+ import { __extends } from "tslib";
2
+ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
+ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
+ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
+ import { Client as __Client, } from "@aws-sdk/smithy-client";
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var RUMClient = (function (_super) {
12
+ __extends(RUMClient, _super);
13
+ function RUMClient(configuration) {
14
+ var _this = this;
15
+ var _config_0 = __getRuntimeConfig(configuration);
16
+ var _config_1 = resolveRegionConfig(_config_0);
17
+ var _config_2 = resolveEndpointsConfig(_config_1);
18
+ var _config_3 = resolveRetryConfig(_config_2);
19
+ var _config_4 = resolveHostHeaderConfig(_config_3);
20
+ var _config_5 = resolveAwsAuthConfig(_config_4);
21
+ var _config_6 = resolveUserAgentConfig(_config_5);
22
+ _this = _super.call(this, _config_6) || this;
23
+ _this.config = _config_6;
24
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
25
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
28
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
+ return _this;
31
+ }
32
+ RUMClient.prototype.destroy = function () {
33
+ _super.prototype.destroy.call(this);
34
+ };
35
+ return RUMClient;
36
+ }(__Client));
37
+ export { RUMClient };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateAppMonitorRequest, CreateAppMonitorResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1CreateAppMonitorCommand, serializeAws_restJson1CreateAppMonitorCommand, } from "../protocols/Aws_restJson1";
6
+ var CreateAppMonitorCommand = (function (_super) {
7
+ __extends(CreateAppMonitorCommand, _super);
8
+ function CreateAppMonitorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateAppMonitorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "CreateAppMonitorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateAppMonitorRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateAppMonitorResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateAppMonitorCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1CreateAppMonitorCommand(input, context);
33
+ };
34
+ CreateAppMonitorCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1CreateAppMonitorCommand(output, context);
36
+ };
37
+ return CreateAppMonitorCommand;
38
+ }($Command));
39
+ export { CreateAppMonitorCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DeleteAppMonitorRequest, DeleteAppMonitorResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1DeleteAppMonitorCommand, serializeAws_restJson1DeleteAppMonitorCommand, } from "../protocols/Aws_restJson1";
6
+ var DeleteAppMonitorCommand = (function (_super) {
7
+ __extends(DeleteAppMonitorCommand, _super);
8
+ function DeleteAppMonitorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteAppMonitorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "DeleteAppMonitorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteAppMonitorRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DeleteAppMonitorResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteAppMonitorCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DeleteAppMonitorCommand(input, context);
33
+ };
34
+ DeleteAppMonitorCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DeleteAppMonitorCommand(output, context);
36
+ };
37
+ return DeleteAppMonitorCommand;
38
+ }($Command));
39
+ export { DeleteAppMonitorCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetAppMonitorRequest, GetAppMonitorResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetAppMonitorCommand, serializeAws_restJson1GetAppMonitorCommand, } from "../protocols/Aws_restJson1";
6
+ var GetAppMonitorCommand = (function (_super) {
7
+ __extends(GetAppMonitorCommand, _super);
8
+ function GetAppMonitorCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetAppMonitorCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "GetAppMonitorCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetAppMonitorRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetAppMonitorResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetAppMonitorCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetAppMonitorCommand(input, context);
33
+ };
34
+ GetAppMonitorCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetAppMonitorCommand(output, context);
36
+ };
37
+ return GetAppMonitorCommand;
38
+ }($Command));
39
+ export { GetAppMonitorCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetAppMonitorDataRequest, GetAppMonitorDataResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetAppMonitorDataCommand, serializeAws_restJson1GetAppMonitorDataCommand, } from "../protocols/Aws_restJson1";
6
+ var GetAppMonitorDataCommand = (function (_super) {
7
+ __extends(GetAppMonitorDataCommand, _super);
8
+ function GetAppMonitorDataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetAppMonitorDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "GetAppMonitorDataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetAppMonitorDataRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetAppMonitorDataResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetAppMonitorDataCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetAppMonitorDataCommand(input, context);
33
+ };
34
+ GetAppMonitorDataCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetAppMonitorDataCommand(output, context);
36
+ };
37
+ return GetAppMonitorDataCommand;
38
+ }($Command));
39
+ export { GetAppMonitorDataCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListAppMonitorsRequest, ListAppMonitorsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListAppMonitorsCommand, serializeAws_restJson1ListAppMonitorsCommand, } from "../protocols/Aws_restJson1";
6
+ var ListAppMonitorsCommand = (function (_super) {
7
+ __extends(ListAppMonitorsCommand, _super);
8
+ function ListAppMonitorsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListAppMonitorsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "ListAppMonitorsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListAppMonitorsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListAppMonitorsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListAppMonitorsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListAppMonitorsCommand(input, context);
33
+ };
34
+ ListAppMonitorsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListAppMonitorsCommand(output, context);
36
+ };
37
+ return ListAppMonitorsCommand;
38
+ }($Command));
39
+ export { ListAppMonitorsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1ListTagsForResourceCommand, serializeAws_restJson1ListTagsForResourceCommand, } from "../protocols/Aws_restJson1";
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1ListTagsForResourceCommand(input, context);
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { PutRumEventsRequest, PutRumEventsResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1PutRumEventsCommand, serializeAws_restJson1PutRumEventsCommand, } from "../protocols/Aws_restJson1";
6
+ var PutRumEventsCommand = (function (_super) {
7
+ __extends(PutRumEventsCommand, _super);
8
+ function PutRumEventsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ PutRumEventsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "PutRumEventsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: PutRumEventsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: PutRumEventsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ PutRumEventsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1PutRumEventsCommand(input, context);
33
+ };
34
+ PutRumEventsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1PutRumEventsCommand(output, context);
36
+ };
37
+ return PutRumEventsCommand;
38
+ }($Command));
39
+ export { PutRumEventsCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1TagResourceCommand, serializeAws_restJson1TagResourceCommand, } from "../protocols/Aws_restJson1";
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RUMClient";
18
+ var commandName = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1TagResourceCommand(input, context);
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1TagResourceCommand(output, context);
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };