@aws-sdk/client-ram 3.54.1 → 3.55.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 (52) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/RAMClient.js +13 -13
  3. package/dist-cjs/commands/AcceptResourceShareInvitationCommand.js +3 -3
  4. package/dist-cjs/commands/AssociateResourceShareCommand.js +3 -3
  5. package/dist-cjs/commands/AssociateResourceSharePermissionCommand.js +3 -3
  6. package/dist-cjs/commands/CreateResourceShareCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteResourceShareCommand.js +3 -3
  8. package/dist-cjs/commands/DisassociateResourceShareCommand.js +3 -3
  9. package/dist-cjs/commands/DisassociateResourceSharePermissionCommand.js +3 -3
  10. package/dist-cjs/commands/EnableSharingWithAwsOrganizationCommand.js +3 -3
  11. package/dist-cjs/commands/GetPermissionCommand.js +3 -3
  12. package/dist-cjs/commands/GetResourcePoliciesCommand.js +3 -3
  13. package/dist-cjs/commands/GetResourceShareAssociationsCommand.js +3 -3
  14. package/dist-cjs/commands/GetResourceShareInvitationsCommand.js +3 -3
  15. package/dist-cjs/commands/GetResourceSharesCommand.js +3 -3
  16. package/dist-cjs/commands/ListPendingInvitationResourcesCommand.js +3 -3
  17. package/dist-cjs/commands/ListPermissionVersionsCommand.js +3 -3
  18. package/dist-cjs/commands/ListPermissionsCommand.js +3 -3
  19. package/dist-cjs/commands/ListPrincipalsCommand.js +3 -3
  20. package/dist-cjs/commands/ListResourceSharePermissionsCommand.js +3 -3
  21. package/dist-cjs/commands/ListResourceTypesCommand.js +3 -3
  22. package/dist-cjs/commands/ListResourcesCommand.js +3 -3
  23. package/dist-cjs/commands/PromoteResourceShareCreatedFromPolicyCommand.js +3 -3
  24. package/dist-cjs/commands/RejectResourceShareInvitationCommand.js +3 -3
  25. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  26. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  27. package/dist-cjs/commands/UpdateResourceShareCommand.js +3 -3
  28. package/dist-cjs/endpoints.js +1 -1
  29. package/dist-cjs/protocols/Aws_restJson1.js +181 -181
  30. package/dist-cjs/runtimeConfig.browser.js +4 -4
  31. package/dist-cjs/runtimeConfig.js +9 -9
  32. package/dist-cjs/runtimeConfig.native.js +1 -1
  33. package/dist-es/RAM.js +25 -25
  34. package/dist-es/pagination/GetResourcePoliciesPaginator.js +4 -4
  35. package/dist-es/pagination/GetResourceShareAssociationsPaginator.js +4 -4
  36. package/dist-es/pagination/GetResourceShareInvitationsPaginator.js +4 -4
  37. package/dist-es/pagination/GetResourceSharesPaginator.js +4 -4
  38. package/dist-es/pagination/ListPendingInvitationResourcesPaginator.js +4 -4
  39. package/dist-es/pagination/ListPermissionVersionsPaginator.js +4 -4
  40. package/dist-es/pagination/ListPermissionsPaginator.js +4 -4
  41. package/dist-es/pagination/ListPrincipalsPaginator.js +4 -4
  42. package/dist-es/pagination/ListResourceSharePermissionsPaginator.js +4 -4
  43. package/dist-es/pagination/ListResourceTypesPaginator.js +4 -4
  44. package/dist-es/pagination/ListResourcesPaginator.js +4 -4
  45. package/dist-es/protocols/Aws_restJson1.js +25 -25
  46. package/dist-types/RAM.d.ts +3 -3
  47. package/dist-types/commands/ListResourcesCommand.d.ts +1 -1
  48. package/dist-types/commands/PromoteResourceShareCreatedFromPolicyCommand.d.ts +2 -2
  49. package/dist-types/models/models_0.d.ts +12 -11
  50. package/dist-types/runtimeConfig.native.d.ts +2 -2
  51. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  52. package/package.json +34 -34
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- 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 }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- 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),
34
- 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 }),
35
- 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),
36
- 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),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- 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),
45
- 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),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
package/dist-es/RAM.js CHANGED
@@ -37,7 +37,7 @@ var RAM = (function (_super) {
37
37
  }
38
38
  else if (typeof cb === "function") {
39
39
  if (typeof optionsOrCb !== "object")
40
- throw new Error("Expect http options but get " + typeof optionsOrCb);
40
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
41
41
  this.send(command, optionsOrCb || {}, cb);
42
42
  }
43
43
  else {
@@ -51,7 +51,7 @@ var RAM = (function (_super) {
51
51
  }
52
52
  else if (typeof cb === "function") {
53
53
  if (typeof optionsOrCb !== "object")
54
- throw new Error("Expect http options but get " + typeof optionsOrCb);
54
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
55
55
  this.send(command, optionsOrCb || {}, cb);
56
56
  }
57
57
  else {
@@ -65,7 +65,7 @@ var RAM = (function (_super) {
65
65
  }
66
66
  else if (typeof cb === "function") {
67
67
  if (typeof optionsOrCb !== "object")
68
- throw new Error("Expect http options but get " + typeof optionsOrCb);
68
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
69
69
  this.send(command, optionsOrCb || {}, cb);
70
70
  }
71
71
  else {
@@ -79,7 +79,7 @@ var RAM = (function (_super) {
79
79
  }
80
80
  else if (typeof cb === "function") {
81
81
  if (typeof optionsOrCb !== "object")
82
- throw new Error("Expect http options but get " + typeof optionsOrCb);
82
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
83
83
  this.send(command, optionsOrCb || {}, cb);
84
84
  }
85
85
  else {
@@ -93,7 +93,7 @@ var RAM = (function (_super) {
93
93
  }
94
94
  else if (typeof cb === "function") {
95
95
  if (typeof optionsOrCb !== "object")
96
- throw new Error("Expect http options but get " + typeof optionsOrCb);
96
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
97
97
  this.send(command, optionsOrCb || {}, cb);
98
98
  }
99
99
  else {
@@ -107,7 +107,7 @@ var RAM = (function (_super) {
107
107
  }
108
108
  else if (typeof cb === "function") {
109
109
  if (typeof optionsOrCb !== "object")
110
- throw new Error("Expect http options but get " + typeof optionsOrCb);
110
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
111
  this.send(command, optionsOrCb || {}, cb);
112
112
  }
113
113
  else {
@@ -121,7 +121,7 @@ var RAM = (function (_super) {
121
121
  }
122
122
  else if (typeof cb === "function") {
123
123
  if (typeof optionsOrCb !== "object")
124
- throw new Error("Expect http options but get " + typeof optionsOrCb);
124
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
125
  this.send(command, optionsOrCb || {}, cb);
126
126
  }
127
127
  else {
@@ -135,7 +135,7 @@ var RAM = (function (_super) {
135
135
  }
136
136
  else if (typeof cb === "function") {
137
137
  if (typeof optionsOrCb !== "object")
138
- throw new Error("Expect http options but get " + typeof optionsOrCb);
138
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
139
  this.send(command, optionsOrCb || {}, cb);
140
140
  }
141
141
  else {
@@ -149,7 +149,7 @@ var RAM = (function (_super) {
149
149
  }
150
150
  else if (typeof cb === "function") {
151
151
  if (typeof optionsOrCb !== "object")
152
- throw new Error("Expect http options but get " + typeof optionsOrCb);
152
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
153
  this.send(command, optionsOrCb || {}, cb);
154
154
  }
155
155
  else {
@@ -163,7 +163,7 @@ var RAM = (function (_super) {
163
163
  }
164
164
  else if (typeof cb === "function") {
165
165
  if (typeof optionsOrCb !== "object")
166
- throw new Error("Expect http options but get " + typeof optionsOrCb);
166
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
167
  this.send(command, optionsOrCb || {}, cb);
168
168
  }
169
169
  else {
@@ -177,7 +177,7 @@ var RAM = (function (_super) {
177
177
  }
178
178
  else if (typeof cb === "function") {
179
179
  if (typeof optionsOrCb !== "object")
180
- throw new Error("Expect http options but get " + typeof optionsOrCb);
180
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
181
181
  this.send(command, optionsOrCb || {}, cb);
182
182
  }
183
183
  else {
@@ -191,7 +191,7 @@ var RAM = (function (_super) {
191
191
  }
192
192
  else if (typeof cb === "function") {
193
193
  if (typeof optionsOrCb !== "object")
194
- throw new Error("Expect http options but get " + typeof optionsOrCb);
194
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
195
195
  this.send(command, optionsOrCb || {}, cb);
196
196
  }
197
197
  else {
@@ -205,7 +205,7 @@ var RAM = (function (_super) {
205
205
  }
206
206
  else if (typeof cb === "function") {
207
207
  if (typeof optionsOrCb !== "object")
208
- throw new Error("Expect http options but get " + typeof optionsOrCb);
208
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
209
209
  this.send(command, optionsOrCb || {}, cb);
210
210
  }
211
211
  else {
@@ -219,7 +219,7 @@ var RAM = (function (_super) {
219
219
  }
220
220
  else if (typeof cb === "function") {
221
221
  if (typeof optionsOrCb !== "object")
222
- throw new Error("Expect http options but get " + typeof optionsOrCb);
222
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
223
223
  this.send(command, optionsOrCb || {}, cb);
224
224
  }
225
225
  else {
@@ -233,7 +233,7 @@ var RAM = (function (_super) {
233
233
  }
234
234
  else if (typeof cb === "function") {
235
235
  if (typeof optionsOrCb !== "object")
236
- throw new Error("Expect http options but get " + typeof optionsOrCb);
236
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
237
237
  this.send(command, optionsOrCb || {}, cb);
238
238
  }
239
239
  else {
@@ -247,7 +247,7 @@ var RAM = (function (_super) {
247
247
  }
248
248
  else if (typeof cb === "function") {
249
249
  if (typeof optionsOrCb !== "object")
250
- throw new Error("Expect http options but get " + typeof optionsOrCb);
250
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
251
251
  this.send(command, optionsOrCb || {}, cb);
252
252
  }
253
253
  else {
@@ -261,7 +261,7 @@ var RAM = (function (_super) {
261
261
  }
262
262
  else if (typeof cb === "function") {
263
263
  if (typeof optionsOrCb !== "object")
264
- throw new Error("Expect http options but get " + typeof optionsOrCb);
264
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
265
265
  this.send(command, optionsOrCb || {}, cb);
266
266
  }
267
267
  else {
@@ -275,7 +275,7 @@ var RAM = (function (_super) {
275
275
  }
276
276
  else if (typeof cb === "function") {
277
277
  if (typeof optionsOrCb !== "object")
278
- throw new Error("Expect http options but get " + typeof optionsOrCb);
278
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
279
279
  this.send(command, optionsOrCb || {}, cb);
280
280
  }
281
281
  else {
@@ -289,7 +289,7 @@ var RAM = (function (_super) {
289
289
  }
290
290
  else if (typeof cb === "function") {
291
291
  if (typeof optionsOrCb !== "object")
292
- throw new Error("Expect http options but get " + typeof optionsOrCb);
292
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
293
293
  this.send(command, optionsOrCb || {}, cb);
294
294
  }
295
295
  else {
@@ -303,7 +303,7 @@ var RAM = (function (_super) {
303
303
  }
304
304
  else if (typeof cb === "function") {
305
305
  if (typeof optionsOrCb !== "object")
306
- throw new Error("Expect http options but get " + typeof optionsOrCb);
306
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
307
307
  this.send(command, optionsOrCb || {}, cb);
308
308
  }
309
309
  else {
@@ -317,7 +317,7 @@ var RAM = (function (_super) {
317
317
  }
318
318
  else if (typeof cb === "function") {
319
319
  if (typeof optionsOrCb !== "object")
320
- throw new Error("Expect http options but get " + typeof optionsOrCb);
320
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
321
321
  this.send(command, optionsOrCb || {}, cb);
322
322
  }
323
323
  else {
@@ -331,7 +331,7 @@ var RAM = (function (_super) {
331
331
  }
332
332
  else if (typeof cb === "function") {
333
333
  if (typeof optionsOrCb !== "object")
334
- throw new Error("Expect http options but get " + typeof optionsOrCb);
334
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
335
335
  this.send(command, optionsOrCb || {}, cb);
336
336
  }
337
337
  else {
@@ -345,7 +345,7 @@ var RAM = (function (_super) {
345
345
  }
346
346
  else if (typeof cb === "function") {
347
347
  if (typeof optionsOrCb !== "object")
348
- throw new Error("Expect http options but get " + typeof optionsOrCb);
348
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
349
349
  this.send(command, optionsOrCb || {}, cb);
350
350
  }
351
351
  else {
@@ -359,7 +359,7 @@ var RAM = (function (_super) {
359
359
  }
360
360
  else if (typeof cb === "function") {
361
361
  if (typeof optionsOrCb !== "object")
362
- throw new Error("Expect http options but get " + typeof optionsOrCb);
362
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
363
363
  this.send(command, optionsOrCb || {}, cb);
364
364
  }
365
365
  else {
@@ -373,7 +373,7 @@ var RAM = (function (_super) {
373
373
  }
374
374
  else if (typeof cb === "function") {
375
375
  if (typeof optionsOrCb !== "object")
376
- throw new Error("Expect http options but get " + typeof optionsOrCb);
376
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
377
377
  this.send(command, optionsOrCb || {}, cb);
378
378
  }
379
379
  else {
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new GetResourcePoliciesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new GetResourcePoliciesCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.getResourcePolicies.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.getResourcePolicies.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateGetResourcePolicies(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceShareAssociationsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceShareAssociationsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.getResourceShareAssociations.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.getResourceShareAssociations.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateGetResourceShareAssociations(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceShareInvitationsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceShareInvitationsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.getResourceShareInvitations.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.getResourceShareInvitations.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateGetResourceShareInvitations(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceSharesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new GetResourceSharesCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.getResourceShares.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.getResourceShares.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateGetResourceShares(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListPendingInvitationResourcesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListPendingInvitationResourcesCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listPendingInvitationResources.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listPendingInvitationResources.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListPendingInvitationResources(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListPermissionVersionsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListPermissionVersionsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listPermissionVersions.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listPermissionVersions.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListPermissionVersions(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListPermissionsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListPermissionsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listPermissions.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listPermissions.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListPermissions(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListPrincipalsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListPrincipalsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listPrincipals.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listPrincipals.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListPrincipals(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListResourceSharePermissionsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListResourceSharePermissionsCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listResourceSharePermissions.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listResourceSharePermissions.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListResourceSharePermissions(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof RAM)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof RAMClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];