@aws-sdk/client-serverlessapplicationrepository 3.54.0 → 3.56.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 (29) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/ServerlessApplicationRepositoryClient.js +13 -13
  3. package/dist-cjs/commands/CreateApplicationCommand.js +3 -3
  4. package/dist-cjs/commands/CreateApplicationVersionCommand.js +3 -3
  5. package/dist-cjs/commands/CreateCloudFormationChangeSetCommand.js +3 -3
  6. package/dist-cjs/commands/CreateCloudFormationTemplateCommand.js +3 -3
  7. package/dist-cjs/commands/DeleteApplicationCommand.js +3 -3
  8. package/dist-cjs/commands/GetApplicationCommand.js +3 -3
  9. package/dist-cjs/commands/GetApplicationPolicyCommand.js +3 -3
  10. package/dist-cjs/commands/GetCloudFormationTemplateCommand.js +3 -3
  11. package/dist-cjs/commands/ListApplicationDependenciesCommand.js +3 -3
  12. package/dist-cjs/commands/ListApplicationVersionsCommand.js +3 -3
  13. package/dist-cjs/commands/ListApplicationsCommand.js +3 -3
  14. package/dist-cjs/commands/PutApplicationPolicyCommand.js +3 -3
  15. package/dist-cjs/commands/UnshareApplicationCommand.js +3 -3
  16. package/dist-cjs/commands/UpdateApplicationCommand.js +3 -3
  17. package/dist-cjs/endpoints.js +1 -1
  18. package/dist-cjs/protocols/Aws_restJson1.js +153 -153
  19. package/dist-cjs/runtimeConfig.browser.js +4 -4
  20. package/dist-cjs/runtimeConfig.js +9 -9
  21. package/dist-cjs/runtimeConfig.native.js +1 -1
  22. package/dist-es/ServerlessApplicationRepository.js +14 -14
  23. package/dist-es/pagination/ListApplicationDependenciesPaginator.js +4 -4
  24. package/dist-es/pagination/ListApplicationVersionsPaginator.js +4 -4
  25. package/dist-es/pagination/ListApplicationsPaginator.js +4 -4
  26. package/dist-es/protocols/Aws_restJson1.js +14 -14
  27. package/dist-types/runtimeConfig.native.d.ts +2 -2
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
  29. 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,
@@ -26,7 +26,7 @@ var ServerlessApplicationRepository = (function (_super) {
26
26
  }
27
27
  else if (typeof cb === "function") {
28
28
  if (typeof optionsOrCb !== "object")
29
- throw new Error("Expect http options but get " + typeof optionsOrCb);
29
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
30
30
  this.send(command, optionsOrCb || {}, cb);
31
31
  }
32
32
  else {
@@ -40,7 +40,7 @@ var ServerlessApplicationRepository = (function (_super) {
40
40
  }
41
41
  else if (typeof cb === "function") {
42
42
  if (typeof optionsOrCb !== "object")
43
- throw new Error("Expect http options but get " + typeof optionsOrCb);
43
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
44
44
  this.send(command, optionsOrCb || {}, cb);
45
45
  }
46
46
  else {
@@ -54,7 +54,7 @@ var ServerlessApplicationRepository = (function (_super) {
54
54
  }
55
55
  else if (typeof cb === "function") {
56
56
  if (typeof optionsOrCb !== "object")
57
- throw new Error("Expect http options but get " + typeof optionsOrCb);
57
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
58
58
  this.send(command, optionsOrCb || {}, cb);
59
59
  }
60
60
  else {
@@ -68,7 +68,7 @@ var ServerlessApplicationRepository = (function (_super) {
68
68
  }
69
69
  else if (typeof cb === "function") {
70
70
  if (typeof optionsOrCb !== "object")
71
- throw new Error("Expect http options but get " + typeof optionsOrCb);
71
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
72
72
  this.send(command, optionsOrCb || {}, cb);
73
73
  }
74
74
  else {
@@ -82,7 +82,7 @@ var ServerlessApplicationRepository = (function (_super) {
82
82
  }
83
83
  else if (typeof cb === "function") {
84
84
  if (typeof optionsOrCb !== "object")
85
- throw new Error("Expect http options but get " + typeof optionsOrCb);
85
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
86
86
  this.send(command, optionsOrCb || {}, cb);
87
87
  }
88
88
  else {
@@ -96,7 +96,7 @@ var ServerlessApplicationRepository = (function (_super) {
96
96
  }
97
97
  else if (typeof cb === "function") {
98
98
  if (typeof optionsOrCb !== "object")
99
- throw new Error("Expect http options but get " + typeof optionsOrCb);
99
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
100
100
  this.send(command, optionsOrCb || {}, cb);
101
101
  }
102
102
  else {
@@ -110,7 +110,7 @@ var ServerlessApplicationRepository = (function (_super) {
110
110
  }
111
111
  else if (typeof cb === "function") {
112
112
  if (typeof optionsOrCb !== "object")
113
- throw new Error("Expect http options but get " + typeof optionsOrCb);
113
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
114
114
  this.send(command, optionsOrCb || {}, cb);
115
115
  }
116
116
  else {
@@ -124,7 +124,7 @@ var ServerlessApplicationRepository = (function (_super) {
124
124
  }
125
125
  else if (typeof cb === "function") {
126
126
  if (typeof optionsOrCb !== "object")
127
- throw new Error("Expect http options but get " + typeof optionsOrCb);
127
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
128
128
  this.send(command, optionsOrCb || {}, cb);
129
129
  }
130
130
  else {
@@ -138,7 +138,7 @@ var ServerlessApplicationRepository = (function (_super) {
138
138
  }
139
139
  else if (typeof cb === "function") {
140
140
  if (typeof optionsOrCb !== "object")
141
- throw new Error("Expect http options but get " + typeof optionsOrCb);
141
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
142
142
  this.send(command, optionsOrCb || {}, cb);
143
143
  }
144
144
  else {
@@ -152,7 +152,7 @@ var ServerlessApplicationRepository = (function (_super) {
152
152
  }
153
153
  else if (typeof cb === "function") {
154
154
  if (typeof optionsOrCb !== "object")
155
- throw new Error("Expect http options but get " + typeof optionsOrCb);
155
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
156
156
  this.send(command, optionsOrCb || {}, cb);
157
157
  }
158
158
  else {
@@ -166,7 +166,7 @@ var ServerlessApplicationRepository = (function (_super) {
166
166
  }
167
167
  else if (typeof cb === "function") {
168
168
  if (typeof optionsOrCb !== "object")
169
- throw new Error("Expect http options but get " + typeof optionsOrCb);
169
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
170
170
  this.send(command, optionsOrCb || {}, cb);
171
171
  }
172
172
  else {
@@ -180,7 +180,7 @@ var ServerlessApplicationRepository = (function (_super) {
180
180
  }
181
181
  else if (typeof cb === "function") {
182
182
  if (typeof optionsOrCb !== "object")
183
- throw new Error("Expect http options but get " + typeof optionsOrCb);
183
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
184
184
  this.send(command, optionsOrCb || {}, cb);
185
185
  }
186
186
  else {
@@ -194,7 +194,7 @@ var ServerlessApplicationRepository = (function (_super) {
194
194
  }
195
195
  else if (typeof cb === "function") {
196
196
  if (typeof optionsOrCb !== "object")
197
- throw new Error("Expect http options but get " + typeof optionsOrCb);
197
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
198
198
  this.send(command, optionsOrCb || {}, cb);
199
199
  }
200
200
  else {
@@ -208,7 +208,7 @@ var ServerlessApplicationRepository = (function (_super) {
208
208
  }
209
209
  else if (typeof cb === "function") {
210
210
  if (typeof optionsOrCb !== "object")
211
- throw new Error("Expect http options but get " + typeof optionsOrCb);
211
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
212
212
  this.send(command, optionsOrCb || {}, cb);
213
213
  }
214
214
  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 ListApplicationDependenciesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationDependenciesCommand(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.listApplicationDependencies.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listApplicationDependencies.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 paginateListApplicationDependencies(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxItems"] = config.pageSize;
50
50
  if (!(config.client instanceof ServerlessApplicationRepository)) 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 ServerlessApplicationRepositoryClient)) 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 ListApplicationVersionsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationVersionsCommand(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.listApplicationVersions.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listApplicationVersions.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 paginateListApplicationVersions(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxItems"] = config.pageSize;
50
50
  if (!(config.client instanceof ServerlessApplicationRepository)) 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 ServerlessApplicationRepositoryClient)) 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 ListApplicationsCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationsCommand(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.listApplications.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listApplications.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 paginateListApplications(config, input) {
48
48
  input.NextToken = token;
49
49
  input["MaxItems"] = config.pageSize;
50
50
  if (!(config.client instanceof ServerlessApplicationRepository)) 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 ServerlessApplicationRepositoryClient)) 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];
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
13
13
  headers = {
14
14
  "content-type": "application/json",
15
15
  };
16
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
16
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
17
17
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author !== undefined && input.Author !== null && { author: input.Author })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.HomePageUrl !== undefined && input.HomePageUrl !== null && { homePageUrl: input.HomePageUrl })), (input.Labels !== undefined &&
18
18
  input.Labels !== null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.LicenseBody !== undefined && input.LicenseBody !== null && { licenseBody: input.LicenseBody })), (input.LicenseUrl !== undefined && input.LicenseUrl !== null && { licenseUrl: input.LicenseUrl })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.ReadmeBody !== undefined && input.ReadmeBody !== null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl })), (input.SemanticVersion !== undefined &&
19
19
  input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })), (input.SourceCodeArchiveUrl !== undefined &&
@@ -40,7 +40,7 @@ export var serializeAws_restJson1CreateApplicationVersionCommand = function (inp
40
40
  headers = {
41
41
  "content-type": "application/json",
42
42
  };
43
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
43
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
44
44
  "/applications/{ApplicationId}/versions/{SemanticVersion}";
45
45
  if (input.ApplicationId !== undefined) {
46
46
  labelValue = input.ApplicationId;
@@ -86,7 +86,7 @@ export var serializeAws_restJson1CreateCloudFormationChangeSetCommand = function
86
86
  headers = {
87
87
  "content-type": "application/json",
88
88
  };
89
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/changesets";
89
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/changesets";
90
90
  if (input.ApplicationId !== undefined) {
91
91
  labelValue = input.ApplicationId;
92
92
  if (labelValue.length <= 0) {
@@ -137,7 +137,7 @@ export var serializeAws_restJson1CreateCloudFormationTemplateCommand = function
137
137
  headers = {
138
138
  "content-type": "application/json",
139
139
  };
140
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/templates";
140
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/templates";
141
141
  if (input.ApplicationId !== undefined) {
142
142
  labelValue = input.ApplicationId;
143
143
  if (labelValue.length <= 0) {
@@ -170,7 +170,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
170
170
  case 1:
171
171
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
172
172
  headers = {};
173
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
173
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
174
174
  if (input.ApplicationId !== undefined) {
175
175
  labelValue = input.ApplicationId;
176
176
  if (labelValue.length <= 0) {
@@ -201,7 +201,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
201
201
  case 1:
202
202
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
203
203
  headers = {};
204
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
204
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
205
205
  if (input.ApplicationId !== undefined) {
206
206
  labelValue = input.ApplicationId;
207
207
  if (labelValue.length <= 0) {
@@ -234,7 +234,7 @@ export var serializeAws_restJson1GetApplicationPolicyCommand = function (input,
234
234
  case 1:
235
235
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
236
236
  headers = {};
237
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/policy";
237
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/policy";
238
238
  if (input.ApplicationId !== undefined) {
239
239
  labelValue = input.ApplicationId;
240
240
  if (labelValue.length <= 0) {
@@ -265,7 +265,7 @@ export var serializeAws_restJson1GetCloudFormationTemplateCommand = function (in
265
265
  case 1:
266
266
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
267
267
  headers = {};
268
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
268
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
269
269
  "/applications/{ApplicationId}/templates/{TemplateId}";
270
270
  if (input.ApplicationId !== undefined) {
271
271
  labelValue = input.ApplicationId;
@@ -307,7 +307,7 @@ export var serializeAws_restJson1ListApplicationDependenciesCommand = function (
307
307
  case 1:
308
308
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
309
309
  headers = {};
310
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
310
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
311
311
  "/applications/{ApplicationId}/dependencies";
312
312
  if (input.ApplicationId !== undefined) {
313
313
  labelValue = input.ApplicationId;
@@ -341,7 +341,7 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
341
341
  case 1:
342
342
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
343
343
  headers = {};
344
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
344
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
345
345
  query = __assign(__assign({}, (input.MaxItems !== undefined && { maxItems: input.MaxItems.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
346
346
  return [2, new __HttpRequest({
347
347
  protocol: protocol,
@@ -364,7 +364,7 @@ export var serializeAws_restJson1ListApplicationVersionsCommand = function (inpu
364
364
  case 1:
365
365
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
366
366
  headers = {};
367
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/versions";
367
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/versions";
368
368
  if (input.ApplicationId !== undefined) {
369
369
  labelValue = input.ApplicationId;
370
370
  if (labelValue.length <= 0) {
@@ -399,7 +399,7 @@ export var serializeAws_restJson1PutApplicationPolicyCommand = function (input,
399
399
  headers = {
400
400
  "content-type": "application/json",
401
401
  };
402
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/policy";
402
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/policy";
403
403
  if (input.ApplicationId !== undefined) {
404
404
  labelValue = input.ApplicationId;
405
405
  if (labelValue.length <= 0) {
@@ -436,7 +436,7 @@ export var serializeAws_restJson1UnshareApplicationCommand = function (input, co
436
436
  headers = {
437
437
  "content-type": "application/json",
438
438
  };
439
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/unshare";
439
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}/unshare";
440
440
  if (input.ApplicationId !== undefined) {
441
441
  labelValue = input.ApplicationId;
442
442
  if (labelValue.length <= 0) {
@@ -471,7 +471,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
471
471
  headers = {
472
472
  "content-type": "application/json",
473
473
  };
474
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
474
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{ApplicationId}";
475
475
  if (input.ApplicationId !== undefined) {
476
476
  labelValue = input.ApplicationId;
477
477
  if (labelValue.length <= 0) {
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: ServerlessApplicationRepositoryC
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: ServerlessApplicationRepositoryC
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-serverlessapplicationrepository",
3
3
  "description": "AWS SDK for JavaScript Serverlessapplicationrepository Client for Node.js, Browser and React Native",
4
- "version": "3.54.0",
4
+ "version": "3.56.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,47 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.54.0",
22
- "@aws-sdk/config-resolver": "3.54.0",
23
- "@aws-sdk/credential-provider-node": "3.54.0",
24
- "@aws-sdk/fetch-http-handler": "3.54.0",
25
- "@aws-sdk/hash-node": "3.54.0",
26
- "@aws-sdk/invalid-dependency": "3.54.0",
27
- "@aws-sdk/middleware-content-length": "3.54.0",
28
- "@aws-sdk/middleware-host-header": "3.54.0",
29
- "@aws-sdk/middleware-logger": "3.54.0",
30
- "@aws-sdk/middleware-retry": "3.54.0",
31
- "@aws-sdk/middleware-serde": "3.54.0",
32
- "@aws-sdk/middleware-signing": "3.54.0",
33
- "@aws-sdk/middleware-stack": "3.54.0",
34
- "@aws-sdk/middleware-user-agent": "3.54.0",
35
- "@aws-sdk/node-config-provider": "3.54.0",
36
- "@aws-sdk/node-http-handler": "3.54.0",
37
- "@aws-sdk/protocol-http": "3.54.0",
38
- "@aws-sdk/smithy-client": "3.54.0",
39
- "@aws-sdk/types": "3.54.0",
40
- "@aws-sdk/url-parser": "3.54.0",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
- "@aws-sdk/util-user-agent-browser": "3.54.0",
48
- "@aws-sdk/util-user-agent-node": "3.54.0",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.56.0",
22
+ "@aws-sdk/config-resolver": "3.56.0",
23
+ "@aws-sdk/credential-provider-node": "3.56.0",
24
+ "@aws-sdk/fetch-http-handler": "3.55.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.55.0",
28
+ "@aws-sdk/middleware-host-header": "3.55.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.56.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.56.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.55.0",
35
+ "@aws-sdk/node-config-provider": "3.56.0",
36
+ "@aws-sdk/node-http-handler": "3.55.0",
37
+ "@aws-sdk/protocol-http": "3.55.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.55.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.56.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.55.0",
48
+ "@aws-sdk/util-user-agent-node": "3.56.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.55.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"