@aws-sdk/client-rum 3.1076.0 → 3.1078.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 (80) hide show
  1. package/dist-cjs/index.js +31 -205
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/BatchCreateRumMetricDefinitionsCommand.js +2 -14
  4. package/dist-es/commands/BatchDeleteRumMetricDefinitionsCommand.js +2 -14
  5. package/dist-es/commands/BatchGetRumMetricDefinitionsCommand.js +2 -14
  6. package/dist-es/commands/CreateAppMonitorCommand.js +2 -14
  7. package/dist-es/commands/DeleteAppMonitorCommand.js +2 -14
  8. package/dist-es/commands/DeleteResourcePolicyCommand.js +2 -14
  9. package/dist-es/commands/DeleteRumMetricsDestinationCommand.js +2 -14
  10. package/dist-es/commands/GetAppMonitorCommand.js +2 -14
  11. package/dist-es/commands/GetAppMonitorDataCommand.js +2 -14
  12. package/dist-es/commands/GetResourcePolicyCommand.js +2 -14
  13. package/dist-es/commands/ListAppMonitorsCommand.js +2 -14
  14. package/dist-es/commands/ListRumMetricsDestinationsCommand.js +2 -14
  15. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  16. package/dist-es/commands/PutResourcePolicyCommand.js +2 -14
  17. package/dist-es/commands/PutRumEventsCommand.js +2 -14
  18. package/dist-es/commands/PutRumMetricsDestinationCommand.js +2 -14
  19. package/dist-es/commands/TagResourceCommand.js +2 -14
  20. package/dist-es/commands/UntagResourceCommand.js +2 -14
  21. package/dist-es/commands/UpdateAppMonitorCommand.js +2 -14
  22. package/dist-es/commands/UpdateRumMetricDefinitionCommand.js +2 -14
  23. package/dist-es/index.js +1 -0
  24. package/dist-es/runtimeConfig.browser.js +0 -2
  25. package/dist-es/runtimeConfig.js +1 -2
  26. package/dist-es/runtimeConfig.native.js +0 -2
  27. package/dist-es/runtimeConfig.shared.js +2 -0
  28. package/dist-types/commandBuilder.d.ts +18 -0
  29. package/dist-types/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +3 -8
  30. package/dist-types/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +3 -8
  31. package/dist-types/commands/BatchGetRumMetricDefinitionsCommand.d.ts +3 -8
  32. package/dist-types/commands/CreateAppMonitorCommand.d.ts +3 -8
  33. package/dist-types/commands/DeleteAppMonitorCommand.d.ts +3 -8
  34. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +3 -8
  35. package/dist-types/commands/DeleteRumMetricsDestinationCommand.d.ts +3 -8
  36. package/dist-types/commands/GetAppMonitorCommand.d.ts +3 -8
  37. package/dist-types/commands/GetAppMonitorDataCommand.d.ts +3 -8
  38. package/dist-types/commands/GetResourcePolicyCommand.d.ts +3 -8
  39. package/dist-types/commands/ListAppMonitorsCommand.d.ts +3 -8
  40. package/dist-types/commands/ListRumMetricsDestinationsCommand.d.ts +3 -8
  41. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  42. package/dist-types/commands/PutResourcePolicyCommand.d.ts +3 -8
  43. package/dist-types/commands/PutRumEventsCommand.d.ts +3 -8
  44. package/dist-types/commands/PutRumMetricsDestinationCommand.d.ts +3 -8
  45. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  46. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  47. package/dist-types/commands/UpdateAppMonitorCommand.d.ts +3 -8
  48. package/dist-types/commands/UpdateRumMetricDefinitionCommand.d.ts +3 -8
  49. package/dist-types/index.d.ts +1 -0
  50. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  51. package/dist-types/runtimeConfig.d.ts +1 -1
  52. package/dist-types/runtimeConfig.native.d.ts +1 -1
  53. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  54. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  55. package/dist-types/ts3.4/commands/BatchCreateRumMetricDefinitionsCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/BatchDeleteRumMetricDefinitionsCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/BatchGetRumMetricDefinitionsCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/CreateAppMonitorCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/DeleteAppMonitorCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/DeleteRumMetricsDestinationCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/GetAppMonitorCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/GetAppMonitorDataCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/ListAppMonitorsCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/commands/ListRumMetricsDestinationsCommand.d.ts +7 -16
  67. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  68. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +7 -16
  69. package/dist-types/ts3.4/commands/PutRumEventsCommand.d.ts +7 -16
  70. package/dist-types/ts3.4/commands/PutRumMetricsDestinationCommand.d.ts +7 -16
  71. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  72. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  73. package/dist-types/ts3.4/commands/UpdateAppMonitorCommand.d.ts +7 -16
  74. package/dist-types/ts3.4/commands/UpdateRumMetricDefinitionCommand.d.ts +7 -16
  75. package/dist-types/ts3.4/index.d.ts +1 -0
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  79. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  80. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
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");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
7
  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
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultRUMHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -950,6 +952,7 @@ const getRuntimeConfig$1 = (config) => {
950
952
  serviceTarget: "RUM",
951
953
  },
952
954
  serviceId: config?.serviceId ?? "RUM",
955
+ sha256: config?.sha256 ?? Sha256,
953
956
  urlParser: config?.urlParser ?? parseUrl,
954
957
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
955
958
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -983,7 +986,6 @@ const getRuntimeConfig = (config) => {
983
986
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
984
987
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
985
988
  }, config),
986
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
987
989
  streamCollector: config?.streamCollector ?? streamCollector,
988
990
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
989
991
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1071,244 +1073,68 @@ class RUMClient extends Client {
1071
1073
  }
1072
1074
  }
1073
1075
 
1074
- class BatchCreateRumMetricDefinitionsCommand extends Command
1075
- .classBuilder()
1076
- .ep(commonParams)
1077
- .m(function (Command, cs, config, o) {
1078
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1079
- })
1080
- .s("RUM", "BatchCreateRumMetricDefinitions", {})
1081
- .n("RUMClient", "BatchCreateRumMetricDefinitionsCommand")
1082
- .sc(BatchCreateRumMetricDefinitions$)
1083
- .build() {
1076
+ const command = makeBuilder(commonParams, "RUM", "RUMClient", getEndpointPlugin);
1077
+ const _ep0 = {};
1078
+ const _mw0 = (Command, cs, config, o) => [];
1079
+
1080
+ class BatchCreateRumMetricDefinitionsCommand extends command(_ep0, _mw0, "BatchCreateRumMetricDefinitions", BatchCreateRumMetricDefinitions$) {
1084
1081
  }
1085
1082
 
1086
- class BatchDeleteRumMetricDefinitionsCommand extends Command
1087
- .classBuilder()
1088
- .ep(commonParams)
1089
- .m(function (Command, cs, config, o) {
1090
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1091
- })
1092
- .s("RUM", "BatchDeleteRumMetricDefinitions", {})
1093
- .n("RUMClient", "BatchDeleteRumMetricDefinitionsCommand")
1094
- .sc(BatchDeleteRumMetricDefinitions$)
1095
- .build() {
1083
+ class BatchDeleteRumMetricDefinitionsCommand extends command(_ep0, _mw0, "BatchDeleteRumMetricDefinitions", BatchDeleteRumMetricDefinitions$) {
1096
1084
  }
1097
1085
 
1098
- class BatchGetRumMetricDefinitionsCommand extends Command
1099
- .classBuilder()
1100
- .ep(commonParams)
1101
- .m(function (Command, cs, config, o) {
1102
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1103
- })
1104
- .s("RUM", "BatchGetRumMetricDefinitions", {})
1105
- .n("RUMClient", "BatchGetRumMetricDefinitionsCommand")
1106
- .sc(BatchGetRumMetricDefinitions$)
1107
- .build() {
1086
+ class BatchGetRumMetricDefinitionsCommand extends command(_ep0, _mw0, "BatchGetRumMetricDefinitions", BatchGetRumMetricDefinitions$) {
1108
1087
  }
1109
1088
 
1110
- class CreateAppMonitorCommand extends Command
1111
- .classBuilder()
1112
- .ep(commonParams)
1113
- .m(function (Command, cs, config, o) {
1114
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1115
- })
1116
- .s("RUM", "CreateAppMonitor", {})
1117
- .n("RUMClient", "CreateAppMonitorCommand")
1118
- .sc(CreateAppMonitor$)
1119
- .build() {
1089
+ class CreateAppMonitorCommand extends command(_ep0, _mw0, "CreateAppMonitor", CreateAppMonitor$) {
1120
1090
  }
1121
1091
 
1122
- class DeleteAppMonitorCommand extends Command
1123
- .classBuilder()
1124
- .ep(commonParams)
1125
- .m(function (Command, cs, config, o) {
1126
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1127
- })
1128
- .s("RUM", "DeleteAppMonitor", {})
1129
- .n("RUMClient", "DeleteAppMonitorCommand")
1130
- .sc(DeleteAppMonitor$)
1131
- .build() {
1092
+ class DeleteAppMonitorCommand extends command(_ep0, _mw0, "DeleteAppMonitor", DeleteAppMonitor$) {
1132
1093
  }
1133
1094
 
1134
- class DeleteResourcePolicyCommand extends Command
1135
- .classBuilder()
1136
- .ep(commonParams)
1137
- .m(function (Command, cs, config, o) {
1138
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1139
- })
1140
- .s("RUM", "DeleteResourcePolicy", {})
1141
- .n("RUMClient", "DeleteResourcePolicyCommand")
1142
- .sc(DeleteResourcePolicy$)
1143
- .build() {
1095
+ class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
1144
1096
  }
1145
1097
 
1146
- class DeleteRumMetricsDestinationCommand extends Command
1147
- .classBuilder()
1148
- .ep(commonParams)
1149
- .m(function (Command, cs, config, o) {
1150
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1151
- })
1152
- .s("RUM", "DeleteRumMetricsDestination", {})
1153
- .n("RUMClient", "DeleteRumMetricsDestinationCommand")
1154
- .sc(DeleteRumMetricsDestination$)
1155
- .build() {
1098
+ class DeleteRumMetricsDestinationCommand extends command(_ep0, _mw0, "DeleteRumMetricsDestination", DeleteRumMetricsDestination$) {
1156
1099
  }
1157
1100
 
1158
- class GetAppMonitorCommand extends Command
1159
- .classBuilder()
1160
- .ep(commonParams)
1161
- .m(function (Command, cs, config, o) {
1162
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1163
- })
1164
- .s("RUM", "GetAppMonitor", {})
1165
- .n("RUMClient", "GetAppMonitorCommand")
1166
- .sc(GetAppMonitor$)
1167
- .build() {
1101
+ class GetAppMonitorCommand extends command(_ep0, _mw0, "GetAppMonitor", GetAppMonitor$) {
1168
1102
  }
1169
1103
 
1170
- class GetAppMonitorDataCommand extends Command
1171
- .classBuilder()
1172
- .ep(commonParams)
1173
- .m(function (Command, cs, config, o) {
1174
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1175
- })
1176
- .s("RUM", "GetAppMonitorData", {})
1177
- .n("RUMClient", "GetAppMonitorDataCommand")
1178
- .sc(GetAppMonitorData$)
1179
- .build() {
1104
+ class GetAppMonitorDataCommand extends command(_ep0, _mw0, "GetAppMonitorData", GetAppMonitorData$) {
1180
1105
  }
1181
1106
 
1182
- class GetResourcePolicyCommand extends Command
1183
- .classBuilder()
1184
- .ep(commonParams)
1185
- .m(function (Command, cs, config, o) {
1186
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1187
- })
1188
- .s("RUM", "GetResourcePolicy", {})
1189
- .n("RUMClient", "GetResourcePolicyCommand")
1190
- .sc(GetResourcePolicy$)
1191
- .build() {
1107
+ class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
1192
1108
  }
1193
1109
 
1194
- class ListAppMonitorsCommand extends Command
1195
- .classBuilder()
1196
- .ep(commonParams)
1197
- .m(function (Command, cs, config, o) {
1198
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1199
- })
1200
- .s("RUM", "ListAppMonitors", {})
1201
- .n("RUMClient", "ListAppMonitorsCommand")
1202
- .sc(ListAppMonitors$)
1203
- .build() {
1110
+ class ListAppMonitorsCommand extends command(_ep0, _mw0, "ListAppMonitors", ListAppMonitors$) {
1204
1111
  }
1205
1112
 
1206
- class ListRumMetricsDestinationsCommand extends Command
1207
- .classBuilder()
1208
- .ep(commonParams)
1209
- .m(function (Command, cs, config, o) {
1210
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1211
- })
1212
- .s("RUM", "ListRumMetricsDestinations", {})
1213
- .n("RUMClient", "ListRumMetricsDestinationsCommand")
1214
- .sc(ListRumMetricsDestinations$)
1215
- .build() {
1113
+ class ListRumMetricsDestinationsCommand extends command(_ep0, _mw0, "ListRumMetricsDestinations", ListRumMetricsDestinations$) {
1216
1114
  }
1217
1115
 
1218
- class ListTagsForResourceCommand extends Command
1219
- .classBuilder()
1220
- .ep(commonParams)
1221
- .m(function (Command, cs, config, o) {
1222
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1223
- })
1224
- .s("RUM", "ListTagsForResource", {})
1225
- .n("RUMClient", "ListTagsForResourceCommand")
1226
- .sc(ListTagsForResource$)
1227
- .build() {
1116
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
1228
1117
  }
1229
1118
 
1230
- class PutResourcePolicyCommand extends Command
1231
- .classBuilder()
1232
- .ep(commonParams)
1233
- .m(function (Command, cs, config, o) {
1234
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1235
- })
1236
- .s("RUM", "PutResourcePolicy", {})
1237
- .n("RUMClient", "PutResourcePolicyCommand")
1238
- .sc(PutResourcePolicy$)
1239
- .build() {
1119
+ class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
1240
1120
  }
1241
1121
 
1242
- class PutRumEventsCommand extends Command
1243
- .classBuilder()
1244
- .ep(commonParams)
1245
- .m(function (Command, cs, config, o) {
1246
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1247
- })
1248
- .s("RUM", "PutRumEvents", {})
1249
- .n("RUMClient", "PutRumEventsCommand")
1250
- .sc(PutRumEvents$)
1251
- .build() {
1122
+ class PutRumEventsCommand extends command(_ep0, _mw0, "PutRumEvents", PutRumEvents$) {
1252
1123
  }
1253
1124
 
1254
- class PutRumMetricsDestinationCommand extends Command
1255
- .classBuilder()
1256
- .ep(commonParams)
1257
- .m(function (Command, cs, config, o) {
1258
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1259
- })
1260
- .s("RUM", "PutRumMetricsDestination", {})
1261
- .n("RUMClient", "PutRumMetricsDestinationCommand")
1262
- .sc(PutRumMetricsDestination$)
1263
- .build() {
1125
+ class PutRumMetricsDestinationCommand extends command(_ep0, _mw0, "PutRumMetricsDestination", PutRumMetricsDestination$) {
1264
1126
  }
1265
1127
 
1266
- class TagResourceCommand extends Command
1267
- .classBuilder()
1268
- .ep(commonParams)
1269
- .m(function (Command, cs, config, o) {
1270
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1271
- })
1272
- .s("RUM", "TagResource", {})
1273
- .n("RUMClient", "TagResourceCommand")
1274
- .sc(TagResource$)
1275
- .build() {
1128
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
1276
1129
  }
1277
1130
 
1278
- class UntagResourceCommand extends Command
1279
- .classBuilder()
1280
- .ep(commonParams)
1281
- .m(function (Command, cs, config, o) {
1282
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1283
- })
1284
- .s("RUM", "UntagResource", {})
1285
- .n("RUMClient", "UntagResourceCommand")
1286
- .sc(UntagResource$)
1287
- .build() {
1131
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
1288
1132
  }
1289
1133
 
1290
- class UpdateAppMonitorCommand extends Command
1291
- .classBuilder()
1292
- .ep(commonParams)
1293
- .m(function (Command, cs, config, o) {
1294
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1295
- })
1296
- .s("RUM", "UpdateAppMonitor", {})
1297
- .n("RUMClient", "UpdateAppMonitorCommand")
1298
- .sc(UpdateAppMonitor$)
1299
- .build() {
1134
+ class UpdateAppMonitorCommand extends command(_ep0, _mw0, "UpdateAppMonitor", UpdateAppMonitor$) {
1300
1135
  }
1301
1136
 
1302
- class UpdateRumMetricDefinitionCommand extends Command
1303
- .classBuilder()
1304
- .ep(commonParams)
1305
- .m(function (Command, cs, config, o) {
1306
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1307
- })
1308
- .s("RUM", "UpdateRumMetricDefinition", {})
1309
- .n("RUMClient", "UpdateRumMetricDefinitionCommand")
1310
- .sc(UpdateRumMetricDefinition$)
1311
- .build() {
1137
+ class UpdateRumMetricDefinitionCommand extends command(_ep0, _mw0, "UpdateRumMetricDefinition", UpdateRumMetricDefinition$) {
1312
1138
  }
1313
1139
 
1314
1140
  const paginateBatchGetRumMetricDefinitions = createPaginator(RUMClient, BatchGetRumMetricDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "RUM", "RUMClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { BatchCreateRumMetricDefinitions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchCreateRumMetricDefinitionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "BatchCreateRumMetricDefinitions", {})
13
- .n("RUMClient", "BatchCreateRumMetricDefinitionsCommand")
14
- .sc(BatchCreateRumMetricDefinitions$)
15
- .build() {
3
+ export class BatchCreateRumMetricDefinitionsCommand extends command(_ep0, _mw0, "BatchCreateRumMetricDefinitions", BatchCreateRumMetricDefinitions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { BatchDeleteRumMetricDefinitions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchDeleteRumMetricDefinitionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "BatchDeleteRumMetricDefinitions", {})
13
- .n("RUMClient", "BatchDeleteRumMetricDefinitionsCommand")
14
- .sc(BatchDeleteRumMetricDefinitions$)
15
- .build() {
3
+ export class BatchDeleteRumMetricDefinitionsCommand extends command(_ep0, _mw0, "BatchDeleteRumMetricDefinitions", BatchDeleteRumMetricDefinitions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { BatchGetRumMetricDefinitions$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BatchGetRumMetricDefinitionsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "BatchGetRumMetricDefinitions", {})
13
- .n("RUMClient", "BatchGetRumMetricDefinitionsCommand")
14
- .sc(BatchGetRumMetricDefinitions$)
15
- .build() {
3
+ export class BatchGetRumMetricDefinitionsCommand extends command(_ep0, _mw0, "BatchGetRumMetricDefinitions", BatchGetRumMetricDefinitions$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateAppMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateAppMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "CreateAppMonitor", {})
13
- .n("RUMClient", "CreateAppMonitorCommand")
14
- .sc(CreateAppMonitor$)
15
- .build() {
3
+ export class CreateAppMonitorCommand extends command(_ep0, _mw0, "CreateAppMonitor", CreateAppMonitor$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteAppMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteAppMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "DeleteAppMonitor", {})
13
- .n("RUMClient", "DeleteAppMonitorCommand")
14
- .sc(DeleteAppMonitor$)
15
- .build() {
3
+ export class DeleteAppMonitorCommand extends command(_ep0, _mw0, "DeleteAppMonitor", DeleteAppMonitor$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "DeleteResourcePolicy", {})
13
- .n("RUMClient", "DeleteResourcePolicyCommand")
14
- .sc(DeleteResourcePolicy$)
15
- .build() {
3
+ export class DeleteResourcePolicyCommand extends command(_ep0, _mw0, "DeleteResourcePolicy", DeleteResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteRumMetricsDestination$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteRumMetricsDestinationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "DeleteRumMetricsDestination", {})
13
- .n("RUMClient", "DeleteRumMetricsDestinationCommand")
14
- .sc(DeleteRumMetricsDestination$)
15
- .build() {
3
+ export class DeleteRumMetricsDestinationCommand extends command(_ep0, _mw0, "DeleteRumMetricsDestination", DeleteRumMetricsDestination$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetAppMonitor$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAppMonitorCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "GetAppMonitor", {})
13
- .n("RUMClient", "GetAppMonitorCommand")
14
- .sc(GetAppMonitor$)
15
- .build() {
3
+ export class GetAppMonitorCommand extends command(_ep0, _mw0, "GetAppMonitor", GetAppMonitor$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetAppMonitorData$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetAppMonitorDataCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "GetAppMonitorData", {})
13
- .n("RUMClient", "GetAppMonitorDataCommand")
14
- .sc(GetAppMonitorData$)
15
- .build() {
3
+ export class GetAppMonitorDataCommand extends command(_ep0, _mw0, "GetAppMonitorData", GetAppMonitorData$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "GetResourcePolicy", {})
13
- .n("RUMClient", "GetResourcePolicyCommand")
14
- .sc(GetResourcePolicy$)
15
- .build() {
3
+ export class GetResourcePolicyCommand extends command(_ep0, _mw0, "GetResourcePolicy", GetResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListAppMonitors$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListAppMonitorsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "ListAppMonitors", {})
13
- .n("RUMClient", "ListAppMonitorsCommand")
14
- .sc(ListAppMonitors$)
15
- .build() {
3
+ export class ListAppMonitorsCommand extends command(_ep0, _mw0, "ListAppMonitors", ListAppMonitors$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListRumMetricsDestinations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRumMetricsDestinationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "ListRumMetricsDestinations", {})
13
- .n("RUMClient", "ListRumMetricsDestinationsCommand")
14
- .sc(ListRumMetricsDestinations$)
15
- .build() {
3
+ export class ListRumMetricsDestinationsCommand extends command(_ep0, _mw0, "ListRumMetricsDestinations", ListRumMetricsDestinations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "ListTagsForResource", {})
13
- .n("RUMClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutResourcePolicy$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutResourcePolicyCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "PutResourcePolicy", {})
13
- .n("RUMClient", "PutResourcePolicyCommand")
14
- .sc(PutResourcePolicy$)
15
- .build() {
3
+ export class PutResourcePolicyCommand extends command(_ep0, _mw0, "PutResourcePolicy", PutResourcePolicy$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutRumEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutRumEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "PutRumEvents", {})
13
- .n("RUMClient", "PutRumEventsCommand")
14
- .sc(PutRumEvents$)
15
- .build() {
3
+ export class PutRumEventsCommand extends command(_ep0, _mw0, "PutRumEvents", PutRumEvents$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { PutRumMetricsDestination$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class PutRumMetricsDestinationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("RUM", "PutRumMetricsDestination", {})
13
- .n("RUMClient", "PutRumMetricsDestinationCommand")
14
- .sc(PutRumMetricsDestination$)
15
- .build() {
3
+ export class PutRumMetricsDestinationCommand extends command(_ep0, _mw0, "PutRumMetricsDestination", PutRumMetricsDestination$) {
16
4
  }