@aws-sdk/client-amplify 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.
- package/CHANGELOG.md +24 -0
- package/dist-cjs/AmplifyClient.js +13 -13
- package/dist-cjs/commands/CreateAppCommand.js +3 -3
- package/dist-cjs/commands/CreateBackendEnvironmentCommand.js +3 -3
- package/dist-cjs/commands/CreateBranchCommand.js +3 -3
- package/dist-cjs/commands/CreateDeploymentCommand.js +3 -3
- package/dist-cjs/commands/CreateDomainAssociationCommand.js +3 -3
- package/dist-cjs/commands/CreateWebhookCommand.js +3 -3
- package/dist-cjs/commands/DeleteAppCommand.js +3 -3
- package/dist-cjs/commands/DeleteBackendEnvironmentCommand.js +3 -3
- package/dist-cjs/commands/DeleteBranchCommand.js +3 -3
- package/dist-cjs/commands/DeleteDomainAssociationCommand.js +3 -3
- package/dist-cjs/commands/DeleteJobCommand.js +3 -3
- package/dist-cjs/commands/DeleteWebhookCommand.js +3 -3
- package/dist-cjs/commands/GenerateAccessLogsCommand.js +3 -3
- package/dist-cjs/commands/GetAppCommand.js +3 -3
- package/dist-cjs/commands/GetArtifactUrlCommand.js +3 -3
- package/dist-cjs/commands/GetBackendEnvironmentCommand.js +3 -3
- package/dist-cjs/commands/GetBranchCommand.js +3 -3
- package/dist-cjs/commands/GetDomainAssociationCommand.js +3 -3
- package/dist-cjs/commands/GetJobCommand.js +3 -3
- package/dist-cjs/commands/GetWebhookCommand.js +3 -3
- package/dist-cjs/commands/ListAppsCommand.js +3 -3
- package/dist-cjs/commands/ListArtifactsCommand.js +3 -3
- package/dist-cjs/commands/ListBackendEnvironmentsCommand.js +3 -3
- package/dist-cjs/commands/ListBranchesCommand.js +3 -3
- package/dist-cjs/commands/ListDomainAssociationsCommand.js +3 -3
- package/dist-cjs/commands/ListJobsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListWebhooksCommand.js +3 -3
- package/dist-cjs/commands/StartDeploymentCommand.js +3 -3
- package/dist-cjs/commands/StartJobCommand.js +3 -3
- package/dist-cjs/commands/StopJobCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateAppCommand.js +3 -3
- package/dist-cjs/commands/UpdateBranchCommand.js +3 -3
- package/dist-cjs/commands/UpdateDomainAssociationCommand.js +3 -3
- package/dist-cjs/commands/UpdateWebhookCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +265 -265
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Amplify.js +37 -37
- package/dist-es/protocols/Aws_restJson1.js +37 -37
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateAppCommand = function (input, context) {
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = ""
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps";
|
|
17
17
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken })), (input.autoBranchCreationConfig !== undefined &&
|
|
18
18
|
input.autoBranchCreationConfig !== null && {
|
|
19
19
|
autoBranchCreationConfig: serializeAws_restJson1AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
@@ -53,7 +53,7 @@ export var serializeAws_restJson1CreateBackendEnvironmentCommand = function (inp
|
|
|
53
53
|
headers = {
|
|
54
54
|
"content-type": "application/json",
|
|
55
55
|
};
|
|
56
|
-
resolvedPath = ""
|
|
56
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/backendenvironments";
|
|
57
57
|
if (input.appId !== undefined) {
|
|
58
58
|
labelValue = input.appId;
|
|
59
59
|
if (labelValue.length <= 0) {
|
|
@@ -89,7 +89,7 @@ export var serializeAws_restJson1CreateBranchCommand = function (input, context)
|
|
|
89
89
|
headers = {
|
|
90
90
|
"content-type": "application/json",
|
|
91
91
|
};
|
|
92
|
-
resolvedPath = ""
|
|
92
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches";
|
|
93
93
|
if (input.appId !== undefined) {
|
|
94
94
|
labelValue = input.appId;
|
|
95
95
|
if (labelValue.length <= 0) {
|
|
@@ -134,7 +134,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
|
|
|
134
134
|
headers = {
|
|
135
135
|
"content-type": "application/json",
|
|
136
136
|
};
|
|
137
|
-
resolvedPath = ""
|
|
137
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
138
138
|
"/apps/{appId}/branches/{branchName}/deployments";
|
|
139
139
|
if (input.appId !== undefined) {
|
|
140
140
|
labelValue = input.appId;
|
|
@@ -180,7 +180,7 @@ export var serializeAws_restJson1CreateDomainAssociationCommand = function (inpu
|
|
|
180
180
|
headers = {
|
|
181
181
|
"content-type": "application/json",
|
|
182
182
|
};
|
|
183
|
-
resolvedPath = ""
|
|
183
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains";
|
|
184
184
|
if (input.appId !== undefined) {
|
|
185
185
|
labelValue = input.appId;
|
|
186
186
|
if (labelValue.length <= 0) {
|
|
@@ -222,7 +222,7 @@ export var serializeAws_restJson1CreateWebhookCommand = function (input, context
|
|
|
222
222
|
headers = {
|
|
223
223
|
"content-type": "application/json",
|
|
224
224
|
};
|
|
225
|
-
resolvedPath = ""
|
|
225
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/webhooks";
|
|
226
226
|
if (input.appId !== undefined) {
|
|
227
227
|
labelValue = input.appId;
|
|
228
228
|
if (labelValue.length <= 0) {
|
|
@@ -254,7 +254,7 @@ export var serializeAws_restJson1DeleteAppCommand = function (input, context) {
|
|
|
254
254
|
case 1:
|
|
255
255
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
256
256
|
headers = {};
|
|
257
|
-
resolvedPath = ""
|
|
257
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}";
|
|
258
258
|
if (input.appId !== undefined) {
|
|
259
259
|
labelValue = input.appId;
|
|
260
260
|
if (labelValue.length <= 0) {
|
|
@@ -285,7 +285,7 @@ export var serializeAws_restJson1DeleteBackendEnvironmentCommand = function (inp
|
|
|
285
285
|
case 1:
|
|
286
286
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
287
287
|
headers = {};
|
|
288
|
-
resolvedPath = ""
|
|
288
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
289
289
|
"/apps/{appId}/backendenvironments/{environmentName}";
|
|
290
290
|
if (input.appId !== undefined) {
|
|
291
291
|
labelValue = input.appId;
|
|
@@ -327,7 +327,7 @@ export var serializeAws_restJson1DeleteBranchCommand = function (input, context)
|
|
|
327
327
|
case 1:
|
|
328
328
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
329
329
|
headers = {};
|
|
330
|
-
resolvedPath = ""
|
|
330
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}";
|
|
331
331
|
if (input.appId !== undefined) {
|
|
332
332
|
labelValue = input.appId;
|
|
333
333
|
if (labelValue.length <= 0) {
|
|
@@ -368,7 +368,7 @@ export var serializeAws_restJson1DeleteDomainAssociationCommand = function (inpu
|
|
|
368
368
|
case 1:
|
|
369
369
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
370
370
|
headers = {};
|
|
371
|
-
resolvedPath = ""
|
|
371
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains/{domainName}";
|
|
372
372
|
if (input.appId !== undefined) {
|
|
373
373
|
labelValue = input.appId;
|
|
374
374
|
if (labelValue.length <= 0) {
|
|
@@ -409,7 +409,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
409
409
|
case 1:
|
|
410
410
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
411
411
|
headers = {};
|
|
412
|
-
resolvedPath = ""
|
|
412
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
413
413
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}";
|
|
414
414
|
if (input.appId !== undefined) {
|
|
415
415
|
labelValue = input.appId;
|
|
@@ -461,7 +461,7 @@ export var serializeAws_restJson1DeleteWebhookCommand = function (input, context
|
|
|
461
461
|
case 1:
|
|
462
462
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
463
463
|
headers = {};
|
|
464
|
-
resolvedPath = ""
|
|
464
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/webhooks/{webhookId}";
|
|
465
465
|
if (input.webhookId !== undefined) {
|
|
466
466
|
labelValue = input.webhookId;
|
|
467
467
|
if (labelValue.length <= 0) {
|
|
@@ -494,7 +494,7 @@ export var serializeAws_restJson1GenerateAccessLogsCommand = function (input, co
|
|
|
494
494
|
headers = {
|
|
495
495
|
"content-type": "application/json",
|
|
496
496
|
};
|
|
497
|
-
resolvedPath = ""
|
|
497
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/accesslogs";
|
|
498
498
|
if (input.appId !== undefined) {
|
|
499
499
|
labelValue = input.appId;
|
|
500
500
|
if (labelValue.length <= 0) {
|
|
@@ -528,7 +528,7 @@ export var serializeAws_restJson1GetAppCommand = function (input, context) { ret
|
|
|
528
528
|
case 1:
|
|
529
529
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
530
530
|
headers = {};
|
|
531
|
-
resolvedPath = ""
|
|
531
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}";
|
|
532
532
|
if (input.appId !== undefined) {
|
|
533
533
|
labelValue = input.appId;
|
|
534
534
|
if (labelValue.length <= 0) {
|
|
@@ -559,7 +559,7 @@ export var serializeAws_restJson1GetArtifactUrlCommand = function (input, contex
|
|
|
559
559
|
case 1:
|
|
560
560
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
561
561
|
headers = {};
|
|
562
|
-
resolvedPath = ""
|
|
562
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/artifacts/{artifactId}";
|
|
563
563
|
if (input.artifactId !== undefined) {
|
|
564
564
|
labelValue = input.artifactId;
|
|
565
565
|
if (labelValue.length <= 0) {
|
|
@@ -590,7 +590,7 @@ export var serializeAws_restJson1GetBackendEnvironmentCommand = function (input,
|
|
|
590
590
|
case 1:
|
|
591
591
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
592
592
|
headers = {};
|
|
593
|
-
resolvedPath = ""
|
|
593
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
594
594
|
"/apps/{appId}/backendenvironments/{environmentName}";
|
|
595
595
|
if (input.appId !== undefined) {
|
|
596
596
|
labelValue = input.appId;
|
|
@@ -632,7 +632,7 @@ export var serializeAws_restJson1GetBranchCommand = function (input, context) {
|
|
|
632
632
|
case 1:
|
|
633
633
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
634
634
|
headers = {};
|
|
635
|
-
resolvedPath = ""
|
|
635
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}";
|
|
636
636
|
if (input.appId !== undefined) {
|
|
637
637
|
labelValue = input.appId;
|
|
638
638
|
if (labelValue.length <= 0) {
|
|
@@ -673,7 +673,7 @@ export var serializeAws_restJson1GetDomainAssociationCommand = function (input,
|
|
|
673
673
|
case 1:
|
|
674
674
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
675
675
|
headers = {};
|
|
676
|
-
resolvedPath = ""
|
|
676
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains/{domainName}";
|
|
677
677
|
if (input.appId !== undefined) {
|
|
678
678
|
labelValue = input.appId;
|
|
679
679
|
if (labelValue.length <= 0) {
|
|
@@ -714,7 +714,7 @@ export var serializeAws_restJson1GetJobCommand = function (input, context) { ret
|
|
|
714
714
|
case 1:
|
|
715
715
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
716
716
|
headers = {};
|
|
717
|
-
resolvedPath = ""
|
|
717
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
718
718
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}";
|
|
719
719
|
if (input.appId !== undefined) {
|
|
720
720
|
labelValue = input.appId;
|
|
@@ -766,7 +766,7 @@ export var serializeAws_restJson1GetWebhookCommand = function (input, context) {
|
|
|
766
766
|
case 1:
|
|
767
767
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
768
768
|
headers = {};
|
|
769
|
-
resolvedPath = ""
|
|
769
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/webhooks/{webhookId}";
|
|
770
770
|
if (input.webhookId !== undefined) {
|
|
771
771
|
labelValue = input.webhookId;
|
|
772
772
|
if (labelValue.length <= 0) {
|
|
@@ -797,7 +797,7 @@ export var serializeAws_restJson1ListAppsCommand = function (input, context) { r
|
|
|
797
797
|
case 1:
|
|
798
798
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
799
799
|
headers = {};
|
|
800
|
-
resolvedPath = ""
|
|
800
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps";
|
|
801
801
|
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
802
802
|
return [2, new __HttpRequest({
|
|
803
803
|
protocol: protocol,
|
|
@@ -820,7 +820,7 @@ export var serializeAws_restJson1ListArtifactsCommand = function (input, context
|
|
|
820
820
|
case 1:
|
|
821
821
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
822
822
|
headers = {};
|
|
823
|
-
resolvedPath = ""
|
|
823
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
824
824
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts";
|
|
825
825
|
if (input.appId !== undefined) {
|
|
826
826
|
labelValue = input.appId;
|
|
@@ -874,7 +874,7 @@ export var serializeAws_restJson1ListBackendEnvironmentsCommand = function (inpu
|
|
|
874
874
|
case 1:
|
|
875
875
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
876
876
|
headers = {};
|
|
877
|
-
resolvedPath = ""
|
|
877
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/backendenvironments";
|
|
878
878
|
if (input.appId !== undefined) {
|
|
879
879
|
labelValue = input.appId;
|
|
880
880
|
if (labelValue.length <= 0) {
|
|
@@ -907,7 +907,7 @@ export var serializeAws_restJson1ListBranchesCommand = function (input, context)
|
|
|
907
907
|
case 1:
|
|
908
908
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
909
909
|
headers = {};
|
|
910
|
-
resolvedPath = ""
|
|
910
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches";
|
|
911
911
|
if (input.appId !== undefined) {
|
|
912
912
|
labelValue = input.appId;
|
|
913
913
|
if (labelValue.length <= 0) {
|
|
@@ -940,7 +940,7 @@ export var serializeAws_restJson1ListDomainAssociationsCommand = function (input
|
|
|
940
940
|
case 1:
|
|
941
941
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
942
942
|
headers = {};
|
|
943
|
-
resolvedPath = ""
|
|
943
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains";
|
|
944
944
|
if (input.appId !== undefined) {
|
|
945
945
|
labelValue = input.appId;
|
|
946
946
|
if (labelValue.length <= 0) {
|
|
@@ -973,7 +973,7 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
973
973
|
case 1:
|
|
974
974
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
975
975
|
headers = {};
|
|
976
|
-
resolvedPath = ""
|
|
976
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}/jobs";
|
|
977
977
|
if (input.appId !== undefined) {
|
|
978
978
|
labelValue = input.appId;
|
|
979
979
|
if (labelValue.length <= 0) {
|
|
@@ -1016,7 +1016,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1016
1016
|
case 1:
|
|
1017
1017
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1018
1018
|
headers = {};
|
|
1019
|
-
resolvedPath = ""
|
|
1019
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1020
1020
|
if (input.resourceArn !== undefined) {
|
|
1021
1021
|
labelValue = input.resourceArn;
|
|
1022
1022
|
if (labelValue.length <= 0) {
|
|
@@ -1047,7 +1047,7 @@ export var serializeAws_restJson1ListWebhooksCommand = function (input, context)
|
|
|
1047
1047
|
case 1:
|
|
1048
1048
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1049
1049
|
headers = {};
|
|
1050
|
-
resolvedPath = ""
|
|
1050
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/webhooks";
|
|
1051
1051
|
if (input.appId !== undefined) {
|
|
1052
1052
|
labelValue = input.appId;
|
|
1053
1053
|
if (labelValue.length <= 0) {
|
|
@@ -1082,7 +1082,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
1082
1082
|
headers = {
|
|
1083
1083
|
"content-type": "application/json",
|
|
1084
1084
|
};
|
|
1085
|
-
resolvedPath = ""
|
|
1085
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1086
1086
|
"/apps/{appId}/branches/{branchName}/deployments/start";
|
|
1087
1087
|
if (input.appId !== undefined) {
|
|
1088
1088
|
labelValue = input.appId;
|
|
@@ -1127,7 +1127,7 @@ export var serializeAws_restJson1StartJobCommand = function (input, context) { r
|
|
|
1127
1127
|
headers = {
|
|
1128
1128
|
"content-type": "application/json",
|
|
1129
1129
|
};
|
|
1130
|
-
resolvedPath = ""
|
|
1130
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}/jobs";
|
|
1131
1131
|
if (input.appId !== undefined) {
|
|
1132
1132
|
labelValue = input.appId;
|
|
1133
1133
|
if (labelValue.length <= 0) {
|
|
@@ -1170,7 +1170,7 @@ export var serializeAws_restJson1StopJobCommand = function (input, context) { re
|
|
|
1170
1170
|
case 1:
|
|
1171
1171
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1172
1172
|
headers = {};
|
|
1173
|
-
resolvedPath = ""
|
|
1173
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1174
1174
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop";
|
|
1175
1175
|
if (input.appId !== undefined) {
|
|
1176
1176
|
labelValue = input.appId;
|
|
@@ -1224,7 +1224,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1224
1224
|
headers = {
|
|
1225
1225
|
"content-type": "application/json",
|
|
1226
1226
|
};
|
|
1227
|
-
resolvedPath = ""
|
|
1227
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1228
1228
|
if (input.resourceArn !== undefined) {
|
|
1229
1229
|
labelValue = input.resourceArn;
|
|
1230
1230
|
if (labelValue.length <= 0) {
|
|
@@ -1256,7 +1256,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1256
1256
|
case 1:
|
|
1257
1257
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1258
1258
|
headers = {};
|
|
1259
|
-
resolvedPath = ""
|
|
1259
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1260
1260
|
if (input.resourceArn !== undefined) {
|
|
1261
1261
|
labelValue = input.resourceArn;
|
|
1262
1262
|
if (labelValue.length <= 0) {
|
|
@@ -1291,7 +1291,7 @@ export var serializeAws_restJson1UpdateAppCommand = function (input, context) {
|
|
|
1291
1291
|
headers = {
|
|
1292
1292
|
"content-type": "application/json",
|
|
1293
1293
|
};
|
|
1294
|
-
resolvedPath = ""
|
|
1294
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}";
|
|
1295
1295
|
if (input.appId !== undefined) {
|
|
1296
1296
|
labelValue = input.appId;
|
|
1297
1297
|
if (labelValue.length <= 0) {
|
|
@@ -1341,7 +1341,7 @@ export var serializeAws_restJson1UpdateBranchCommand = function (input, context)
|
|
|
1341
1341
|
headers = {
|
|
1342
1342
|
"content-type": "application/json",
|
|
1343
1343
|
};
|
|
1344
|
-
resolvedPath = ""
|
|
1344
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}";
|
|
1345
1345
|
if (input.appId !== undefined) {
|
|
1346
1346
|
labelValue = input.appId;
|
|
1347
1347
|
if (labelValue.length <= 0) {
|
|
@@ -1396,7 +1396,7 @@ export var serializeAws_restJson1UpdateDomainAssociationCommand = function (inpu
|
|
|
1396
1396
|
headers = {
|
|
1397
1397
|
"content-type": "application/json",
|
|
1398
1398
|
};
|
|
1399
|
-
resolvedPath = ""
|
|
1399
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains/{domainName}";
|
|
1400
1400
|
if (input.appId !== undefined) {
|
|
1401
1401
|
labelValue = input.appId;
|
|
1402
1402
|
if (labelValue.length <= 0) {
|
|
@@ -1448,7 +1448,7 @@ export var serializeAws_restJson1UpdateWebhookCommand = function (input, context
|
|
|
1448
1448
|
headers = {
|
|
1449
1449
|
"content-type": "application/json",
|
|
1450
1450
|
};
|
|
1451
|
-
resolvedPath = ""
|
|
1451
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/webhooks/{webhookId}";
|
|
1452
1452
|
if (input.webhookId !== undefined) {
|
|
1453
1453
|
labelValue = input.webhookId;
|
|
1454
1454
|
if (labelValue.length <= 0) {
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: AmplifyClientConfig) => {
|
|
|
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<
|
|
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
|
|
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: AmplifyClientConfig) => {
|
|
|
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<
|
|
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
|
|
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-amplify",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplify Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
41
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
42
|
-
"@aws-sdk/util-base64-node": "3.
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
51
|
-
"tslib": "^2.3.
|
|
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.
|
|
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.
|
|
61
|
+
"typescript": "~4.6.2"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=12.0.0"
|