@aws-sdk/client-amplify 3.131.0 → 3.142.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 +33 -0
- package/README.md +1 -1
- package/dist-cjs/commands/CreateAppCommand.js +2 -2
- package/dist-cjs/commands/CreateBackendEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/CreateBranchCommand.js +2 -2
- package/dist-cjs/commands/CreateDeploymentCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/CreateWebhookCommand.js +2 -2
- package/dist-cjs/commands/DeleteAppCommand.js +2 -2
- package/dist-cjs/commands/DeleteBackendEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteBranchCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/DeleteJobCommand.js +2 -2
- package/dist-cjs/commands/DeleteWebhookCommand.js +2 -2
- package/dist-cjs/commands/GenerateAccessLogsCommand.js +2 -2
- package/dist-cjs/commands/GetAppCommand.js +2 -2
- package/dist-cjs/commands/GetArtifactUrlCommand.js +2 -2
- package/dist-cjs/commands/GetBackendEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/GetBranchCommand.js +2 -2
- package/dist-cjs/commands/GetDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/GetJobCommand.js +2 -2
- package/dist-cjs/commands/GetWebhookCommand.js +2 -2
- package/dist-cjs/commands/ListAppsCommand.js +2 -2
- package/dist-cjs/commands/ListArtifactsCommand.js +2 -2
- package/dist-cjs/commands/ListBackendEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/ListBranchesCommand.js +2 -2
- package/dist-cjs/commands/ListDomainAssociationsCommand.js +2 -2
- package/dist-cjs/commands/ListJobsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWebhooksCommand.js +2 -2
- package/dist-cjs/commands/StartDeploymentCommand.js +2 -2
- package/dist-cjs/commands/StartJobCommand.js +2 -2
- package/dist-cjs/commands/StopJobCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateAppCommand.js +2 -2
- package/dist-cjs/commands/UpdateBranchCommand.js +2 -2
- package/dist-cjs/commands/UpdateDomainAssociationCommand.js +2 -2
- package/dist-cjs/commands/UpdateWebhookCommand.js +2 -2
- package/dist-cjs/models/models_0.js +392 -568
- package/dist-cjs/protocols/Aws_restJson1.js +444 -1106
- package/dist-es/commands/CreateAppCommand.js +3 -3
- package/dist-es/commands/CreateBackendEnvironmentCommand.js +3 -3
- package/dist-es/commands/CreateBranchCommand.js +3 -3
- package/dist-es/commands/CreateDeploymentCommand.js +3 -3
- package/dist-es/commands/CreateDomainAssociationCommand.js +3 -3
- package/dist-es/commands/CreateWebhookCommand.js +3 -3
- package/dist-es/commands/DeleteAppCommand.js +3 -3
- package/dist-es/commands/DeleteBackendEnvironmentCommand.js +3 -3
- package/dist-es/commands/DeleteBranchCommand.js +3 -3
- package/dist-es/commands/DeleteDomainAssociationCommand.js +3 -3
- package/dist-es/commands/DeleteJobCommand.js +3 -3
- package/dist-es/commands/DeleteWebhookCommand.js +3 -3
- package/dist-es/commands/GenerateAccessLogsCommand.js +3 -3
- package/dist-es/commands/GetAppCommand.js +3 -3
- package/dist-es/commands/GetArtifactUrlCommand.js +3 -3
- package/dist-es/commands/GetBackendEnvironmentCommand.js +3 -3
- package/dist-es/commands/GetBranchCommand.js +3 -3
- package/dist-es/commands/GetDomainAssociationCommand.js +3 -3
- package/dist-es/commands/GetJobCommand.js +3 -3
- package/dist-es/commands/GetWebhookCommand.js +3 -3
- package/dist-es/commands/ListAppsCommand.js +3 -3
- package/dist-es/commands/ListArtifactsCommand.js +3 -3
- package/dist-es/commands/ListBackendEnvironmentsCommand.js +3 -3
- package/dist-es/commands/ListBranchesCommand.js +3 -3
- package/dist-es/commands/ListDomainAssociationsCommand.js +3 -3
- package/dist-es/commands/ListJobsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWebhooksCommand.js +3 -3
- package/dist-es/commands/StartDeploymentCommand.js +3 -3
- package/dist-es/commands/StartJobCommand.js +3 -3
- package/dist-es/commands/StopJobCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateAppCommand.js +3 -3
- package/dist-es/commands/UpdateBranchCommand.js +3 -3
- package/dist-es/commands/UpdateDomainAssociationCommand.js +3 -3
- package/dist-es/commands/UpdateWebhookCommand.js +3 -3
- package/dist-es/models/models_0.js +94 -358
- package/dist-es/protocols/Aws_restJson1.js +591 -1118
- package/dist-types/models/models_0.d.ts +352 -528
- package/dist-types/ts3.4/models/models_0.d.ts +176 -352
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AmplifyServiceException as __BaseException } from "../models/AmplifyServiceException";
|
|
5
5
|
import { BadRequestException, DependentServiceFailureException, InternalFailureException, LimitExceededException, NotFoundException, ResourceNotFoundException, UnauthorizedException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateAppCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -34,7 +34,7 @@ export var serializeAws_restJson1CreateAppCommand = function (input, context) {
|
|
|
34
34
|
});
|
|
35
35
|
}); };
|
|
36
36
|
export var serializeAws_restJson1CreateBackendEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
37
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
37
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
38
38
|
return __generator(this, function (_c) {
|
|
39
39
|
switch (_c.label) {
|
|
40
40
|
case 0: return [4, context.endpoint()];
|
|
@@ -44,16 +44,7 @@ export var serializeAws_restJson1CreateBackendEnvironmentCommand = function (inp
|
|
|
44
44
|
"content-type": "application/json",
|
|
45
45
|
};
|
|
46
46
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/backendenvironments";
|
|
47
|
-
|
|
48
|
-
labelValue = input.appId;
|
|
49
|
-
if (labelValue.length <= 0) {
|
|
50
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
51
|
-
}
|
|
52
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
56
|
-
}
|
|
47
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
57
48
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.deploymentArtifacts != null && { deploymentArtifacts: input.deploymentArtifacts })), (input.environmentName != null && { environmentName: input.environmentName })), (input.stackName != null && { stackName: input.stackName })));
|
|
58
49
|
return [2, new __HttpRequest({
|
|
59
50
|
protocol: protocol,
|
|
@@ -68,7 +59,7 @@ export var serializeAws_restJson1CreateBackendEnvironmentCommand = function (inp
|
|
|
68
59
|
});
|
|
69
60
|
}); };
|
|
70
61
|
export var serializeAws_restJson1CreateBranchCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
62
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
72
63
|
return __generator(this, function (_c) {
|
|
73
64
|
switch (_c.label) {
|
|
74
65
|
case 0: return [4, context.endpoint()];
|
|
@@ -78,16 +69,7 @@ export var serializeAws_restJson1CreateBranchCommand = function (input, context)
|
|
|
78
69
|
"content-type": "application/json",
|
|
79
70
|
};
|
|
80
71
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches";
|
|
81
|
-
|
|
82
|
-
labelValue = input.appId;
|
|
83
|
-
if (labelValue.length <= 0) {
|
|
84
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
85
|
-
}
|
|
86
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
90
|
-
}
|
|
72
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
91
73
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.backendEnvironmentArn != null && { backendEnvironmentArn: input.backendEnvironmentArn })), (input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials })), (input.branchName != null && { branchName: input.branchName })), (input.buildSpec != null && { buildSpec: input.buildSpec })), (input.description != null && { description: input.description })), (input.displayName != null && { displayName: input.displayName })), (input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth })), (input.enableNotification != null && { enableNotification: input.enableNotification })), (input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables != null && {
|
|
92
74
|
environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
|
|
93
75
|
})), (input.framework != null && { framework: input.framework })), (input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage != null && { stage: input.stage })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.ttl != null && { ttl: input.ttl })));
|
|
@@ -104,7 +86,7 @@ export var serializeAws_restJson1CreateBranchCommand = function (input, context)
|
|
|
104
86
|
});
|
|
105
87
|
}); };
|
|
106
88
|
export var serializeAws_restJson1CreateDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
107
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
89
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
108
90
|
return __generator(this, function (_c) {
|
|
109
91
|
switch (_c.label) {
|
|
110
92
|
case 0: return [4, context.endpoint()];
|
|
@@ -115,26 +97,8 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
|
|
|
115
97
|
};
|
|
116
98
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
117
99
|
"/apps/{appId}/branches/{branchName}/deployments";
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
if (labelValue.length <= 0) {
|
|
121
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
122
|
-
}
|
|
123
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
124
|
-
}
|
|
125
|
-
else {
|
|
126
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
127
|
-
}
|
|
128
|
-
if (input.branchName !== undefined) {
|
|
129
|
-
labelValue = input.branchName;
|
|
130
|
-
if (labelValue.length <= 0) {
|
|
131
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
132
|
-
}
|
|
133
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
137
|
-
}
|
|
100
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
101
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
138
102
|
body = JSON.stringify(__assign({}, (input.fileMap != null && { fileMap: serializeAws_restJson1FileMap(input.fileMap, context) })));
|
|
139
103
|
return [2, new __HttpRequest({
|
|
140
104
|
protocol: protocol,
|
|
@@ -149,7 +113,7 @@ export var serializeAws_restJson1CreateDeploymentCommand = function (input, cont
|
|
|
149
113
|
});
|
|
150
114
|
}); };
|
|
151
115
|
export var serializeAws_restJson1CreateDomainAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
152
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
116
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
153
117
|
return __generator(this, function (_c) {
|
|
154
118
|
switch (_c.label) {
|
|
155
119
|
case 0: return [4, context.endpoint()];
|
|
@@ -159,16 +123,7 @@ export var serializeAws_restJson1CreateDomainAssociationCommand = function (inpu
|
|
|
159
123
|
"content-type": "application/json",
|
|
160
124
|
};
|
|
161
125
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains";
|
|
162
|
-
|
|
163
|
-
labelValue = input.appId;
|
|
164
|
-
if (labelValue.length <= 0) {
|
|
165
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
166
|
-
}
|
|
167
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
171
|
-
}
|
|
126
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
172
127
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.autoSubDomainCreationPatterns != null && {
|
|
173
128
|
autoSubDomainCreationPatterns: serializeAws_restJson1AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
174
129
|
})), (input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole })), (input.domainName != null && { domainName: input.domainName })), (input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain })), (input.subDomainSettings != null && {
|
|
@@ -187,7 +142,7 @@ export var serializeAws_restJson1CreateDomainAssociationCommand = function (inpu
|
|
|
187
142
|
});
|
|
188
143
|
}); };
|
|
189
144
|
export var serializeAws_restJson1CreateWebhookCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
145
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
191
146
|
return __generator(this, function (_c) {
|
|
192
147
|
switch (_c.label) {
|
|
193
148
|
case 0: return [4, context.endpoint()];
|
|
@@ -197,16 +152,7 @@ export var serializeAws_restJson1CreateWebhookCommand = function (input, context
|
|
|
197
152
|
"content-type": "application/json",
|
|
198
153
|
};
|
|
199
154
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/webhooks";
|
|
200
|
-
|
|
201
|
-
labelValue = input.appId;
|
|
202
|
-
if (labelValue.length <= 0) {
|
|
203
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
204
|
-
}
|
|
205
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
209
|
-
}
|
|
155
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
210
156
|
body = JSON.stringify(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.description != null && { description: input.description })));
|
|
211
157
|
return [2, new __HttpRequest({
|
|
212
158
|
protocol: protocol,
|
|
@@ -221,7 +167,7 @@ export var serializeAws_restJson1CreateWebhookCommand = function (input, context
|
|
|
221
167
|
});
|
|
222
168
|
}); };
|
|
223
169
|
export var serializeAws_restJson1DeleteAppCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
224
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
170
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
225
171
|
return __generator(this, function (_c) {
|
|
226
172
|
switch (_c.label) {
|
|
227
173
|
case 0: return [4, context.endpoint()];
|
|
@@ -229,16 +175,7 @@ export var serializeAws_restJson1DeleteAppCommand = function (input, context) {
|
|
|
229
175
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
230
176
|
headers = {};
|
|
231
177
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}";
|
|
232
|
-
|
|
233
|
-
labelValue = input.appId;
|
|
234
|
-
if (labelValue.length <= 0) {
|
|
235
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
236
|
-
}
|
|
237
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
241
|
-
}
|
|
178
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
242
179
|
return [2, new __HttpRequest({
|
|
243
180
|
protocol: protocol,
|
|
244
181
|
hostname: hostname,
|
|
@@ -252,7 +189,7 @@ export var serializeAws_restJson1DeleteAppCommand = function (input, context) {
|
|
|
252
189
|
});
|
|
253
190
|
}); };
|
|
254
191
|
export var serializeAws_restJson1DeleteBackendEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
255
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
192
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
256
193
|
return __generator(this, function (_c) {
|
|
257
194
|
switch (_c.label) {
|
|
258
195
|
case 0: return [4, context.endpoint()];
|
|
@@ -261,26 +198,8 @@ export var serializeAws_restJson1DeleteBackendEnvironmentCommand = function (inp
|
|
|
261
198
|
headers = {};
|
|
262
199
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
263
200
|
"/apps/{appId}/backendenvironments/{environmentName}";
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
if (labelValue.length <= 0) {
|
|
267
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
268
|
-
}
|
|
269
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
270
|
-
}
|
|
271
|
-
else {
|
|
272
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
273
|
-
}
|
|
274
|
-
if (input.environmentName !== undefined) {
|
|
275
|
-
labelValue = input.environmentName;
|
|
276
|
-
if (labelValue.length <= 0) {
|
|
277
|
-
throw new Error("Empty value provided for input HTTP label: environmentName.");
|
|
278
|
-
}
|
|
279
|
-
resolvedPath = resolvedPath.replace("{environmentName}", __extendedEncodeURIComponent(labelValue));
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
throw new Error("No value provided for input HTTP label: environmentName.");
|
|
283
|
-
}
|
|
201
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
202
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
284
203
|
return [2, new __HttpRequest({
|
|
285
204
|
protocol: protocol,
|
|
286
205
|
hostname: hostname,
|
|
@@ -294,7 +213,7 @@ export var serializeAws_restJson1DeleteBackendEnvironmentCommand = function (inp
|
|
|
294
213
|
});
|
|
295
214
|
}); };
|
|
296
215
|
export var serializeAws_restJson1DeleteBranchCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
297
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
216
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
298
217
|
return __generator(this, function (_c) {
|
|
299
218
|
switch (_c.label) {
|
|
300
219
|
case 0: return [4, context.endpoint()];
|
|
@@ -302,26 +221,8 @@ export var serializeAws_restJson1DeleteBranchCommand = function (input, context)
|
|
|
302
221
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
303
222
|
headers = {};
|
|
304
223
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}";
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
if (labelValue.length <= 0) {
|
|
308
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
309
|
-
}
|
|
310
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
314
|
-
}
|
|
315
|
-
if (input.branchName !== undefined) {
|
|
316
|
-
labelValue = input.branchName;
|
|
317
|
-
if (labelValue.length <= 0) {
|
|
318
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
319
|
-
}
|
|
320
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
324
|
-
}
|
|
224
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
225
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
325
226
|
return [2, new __HttpRequest({
|
|
326
227
|
protocol: protocol,
|
|
327
228
|
hostname: hostname,
|
|
@@ -335,7 +236,7 @@ export var serializeAws_restJson1DeleteBranchCommand = function (input, context)
|
|
|
335
236
|
});
|
|
336
237
|
}); };
|
|
337
238
|
export var serializeAws_restJson1DeleteDomainAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
338
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
239
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
339
240
|
return __generator(this, function (_c) {
|
|
340
241
|
switch (_c.label) {
|
|
341
242
|
case 0: return [4, context.endpoint()];
|
|
@@ -343,26 +244,8 @@ export var serializeAws_restJson1DeleteDomainAssociationCommand = function (inpu
|
|
|
343
244
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
344
245
|
headers = {};
|
|
345
246
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains/{domainName}";
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
if (labelValue.length <= 0) {
|
|
349
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
350
|
-
}
|
|
351
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
352
|
-
}
|
|
353
|
-
else {
|
|
354
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
355
|
-
}
|
|
356
|
-
if (input.domainName !== undefined) {
|
|
357
|
-
labelValue = input.domainName;
|
|
358
|
-
if (labelValue.length <= 0) {
|
|
359
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
360
|
-
}
|
|
361
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
365
|
-
}
|
|
247
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
248
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
366
249
|
return [2, new __HttpRequest({
|
|
367
250
|
protocol: protocol,
|
|
368
251
|
hostname: hostname,
|
|
@@ -376,7 +259,7 @@ export var serializeAws_restJson1DeleteDomainAssociationCommand = function (inpu
|
|
|
376
259
|
});
|
|
377
260
|
}); };
|
|
378
261
|
export var serializeAws_restJson1DeleteJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
379
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
262
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
380
263
|
return __generator(this, function (_c) {
|
|
381
264
|
switch (_c.label) {
|
|
382
265
|
case 0: return [4, context.endpoint()];
|
|
@@ -385,36 +268,9 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
385
268
|
headers = {};
|
|
386
269
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
387
270
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}";
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
392
|
-
}
|
|
393
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
397
|
-
}
|
|
398
|
-
if (input.branchName !== undefined) {
|
|
399
|
-
labelValue = input.branchName;
|
|
400
|
-
if (labelValue.length <= 0) {
|
|
401
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
402
|
-
}
|
|
403
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
404
|
-
}
|
|
405
|
-
else {
|
|
406
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
407
|
-
}
|
|
408
|
-
if (input.jobId !== undefined) {
|
|
409
|
-
labelValue = input.jobId;
|
|
410
|
-
if (labelValue.length <= 0) {
|
|
411
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
412
|
-
}
|
|
413
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
414
|
-
}
|
|
415
|
-
else {
|
|
416
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
417
|
-
}
|
|
271
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
272
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
273
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
418
274
|
return [2, new __HttpRequest({
|
|
419
275
|
protocol: protocol,
|
|
420
276
|
hostname: hostname,
|
|
@@ -428,7 +284,7 @@ export var serializeAws_restJson1DeleteJobCommand = function (input, context) {
|
|
|
428
284
|
});
|
|
429
285
|
}); };
|
|
430
286
|
export var serializeAws_restJson1DeleteWebhookCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
431
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
287
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
432
288
|
return __generator(this, function (_c) {
|
|
433
289
|
switch (_c.label) {
|
|
434
290
|
case 0: return [4, context.endpoint()];
|
|
@@ -436,16 +292,7 @@ export var serializeAws_restJson1DeleteWebhookCommand = function (input, context
|
|
|
436
292
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
437
293
|
headers = {};
|
|
438
294
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/webhooks/{webhookId}";
|
|
439
|
-
|
|
440
|
-
labelValue = input.webhookId;
|
|
441
|
-
if (labelValue.length <= 0) {
|
|
442
|
-
throw new Error("Empty value provided for input HTTP label: webhookId.");
|
|
443
|
-
}
|
|
444
|
-
resolvedPath = resolvedPath.replace("{webhookId}", __extendedEncodeURIComponent(labelValue));
|
|
445
|
-
}
|
|
446
|
-
else {
|
|
447
|
-
throw new Error("No value provided for input HTTP label: webhookId.");
|
|
448
|
-
}
|
|
295
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "webhookId", function () { return input.webhookId; }, "{webhookId}", false);
|
|
449
296
|
return [2, new __HttpRequest({
|
|
450
297
|
protocol: protocol,
|
|
451
298
|
hostname: hostname,
|
|
@@ -459,7 +306,7 @@ export var serializeAws_restJson1DeleteWebhookCommand = function (input, context
|
|
|
459
306
|
});
|
|
460
307
|
}); };
|
|
461
308
|
export var serializeAws_restJson1GenerateAccessLogsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
462
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
309
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
463
310
|
return __generator(this, function (_c) {
|
|
464
311
|
switch (_c.label) {
|
|
465
312
|
case 0: return [4, context.endpoint()];
|
|
@@ -469,16 +316,7 @@ export var serializeAws_restJson1GenerateAccessLogsCommand = function (input, co
|
|
|
469
316
|
"content-type": "application/json",
|
|
470
317
|
};
|
|
471
318
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/accesslogs";
|
|
472
|
-
|
|
473
|
-
labelValue = input.appId;
|
|
474
|
-
if (labelValue.length <= 0) {
|
|
475
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
476
|
-
}
|
|
477
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
478
|
-
}
|
|
479
|
-
else {
|
|
480
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
481
|
-
}
|
|
319
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
482
320
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.domainName != null && { domainName: input.domainName })), (input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) })), (input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) })));
|
|
483
321
|
return [2, new __HttpRequest({
|
|
484
322
|
protocol: protocol,
|
|
@@ -493,7 +331,7 @@ export var serializeAws_restJson1GenerateAccessLogsCommand = function (input, co
|
|
|
493
331
|
});
|
|
494
332
|
}); };
|
|
495
333
|
export var serializeAws_restJson1GetAppCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
496
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
334
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
497
335
|
return __generator(this, function (_c) {
|
|
498
336
|
switch (_c.label) {
|
|
499
337
|
case 0: return [4, context.endpoint()];
|
|
@@ -501,16 +339,7 @@ export var serializeAws_restJson1GetAppCommand = function (input, context) { ret
|
|
|
501
339
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
502
340
|
headers = {};
|
|
503
341
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}";
|
|
504
|
-
|
|
505
|
-
labelValue = input.appId;
|
|
506
|
-
if (labelValue.length <= 0) {
|
|
507
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
508
|
-
}
|
|
509
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
510
|
-
}
|
|
511
|
-
else {
|
|
512
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
513
|
-
}
|
|
342
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
514
343
|
return [2, new __HttpRequest({
|
|
515
344
|
protocol: protocol,
|
|
516
345
|
hostname: hostname,
|
|
@@ -524,7 +353,7 @@ export var serializeAws_restJson1GetAppCommand = function (input, context) { ret
|
|
|
524
353
|
});
|
|
525
354
|
}); };
|
|
526
355
|
export var serializeAws_restJson1GetArtifactUrlCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
527
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
356
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
528
357
|
return __generator(this, function (_c) {
|
|
529
358
|
switch (_c.label) {
|
|
530
359
|
case 0: return [4, context.endpoint()];
|
|
@@ -532,16 +361,7 @@ export var serializeAws_restJson1GetArtifactUrlCommand = function (input, contex
|
|
|
532
361
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
533
362
|
headers = {};
|
|
534
363
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/artifacts/{artifactId}";
|
|
535
|
-
|
|
536
|
-
labelValue = input.artifactId;
|
|
537
|
-
if (labelValue.length <= 0) {
|
|
538
|
-
throw new Error("Empty value provided for input HTTP label: artifactId.");
|
|
539
|
-
}
|
|
540
|
-
resolvedPath = resolvedPath.replace("{artifactId}", __extendedEncodeURIComponent(labelValue));
|
|
541
|
-
}
|
|
542
|
-
else {
|
|
543
|
-
throw new Error("No value provided for input HTTP label: artifactId.");
|
|
544
|
-
}
|
|
364
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "artifactId", function () { return input.artifactId; }, "{artifactId}", false);
|
|
545
365
|
return [2, new __HttpRequest({
|
|
546
366
|
protocol: protocol,
|
|
547
367
|
hostname: hostname,
|
|
@@ -555,7 +375,7 @@ export var serializeAws_restJson1GetArtifactUrlCommand = function (input, contex
|
|
|
555
375
|
});
|
|
556
376
|
}); };
|
|
557
377
|
export var serializeAws_restJson1GetBackendEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
558
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
378
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
559
379
|
return __generator(this, function (_c) {
|
|
560
380
|
switch (_c.label) {
|
|
561
381
|
case 0: return [4, context.endpoint()];
|
|
@@ -564,26 +384,8 @@ export var serializeAws_restJson1GetBackendEnvironmentCommand = function (input,
|
|
|
564
384
|
headers = {};
|
|
565
385
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
566
386
|
"/apps/{appId}/backendenvironments/{environmentName}";
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
if (labelValue.length <= 0) {
|
|
570
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
571
|
-
}
|
|
572
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
575
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
576
|
-
}
|
|
577
|
-
if (input.environmentName !== undefined) {
|
|
578
|
-
labelValue = input.environmentName;
|
|
579
|
-
if (labelValue.length <= 0) {
|
|
580
|
-
throw new Error("Empty value provided for input HTTP label: environmentName.");
|
|
581
|
-
}
|
|
582
|
-
resolvedPath = resolvedPath.replace("{environmentName}", __extendedEncodeURIComponent(labelValue));
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
throw new Error("No value provided for input HTTP label: environmentName.");
|
|
586
|
-
}
|
|
387
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
388
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
587
389
|
return [2, new __HttpRequest({
|
|
588
390
|
protocol: protocol,
|
|
589
391
|
hostname: hostname,
|
|
@@ -597,7 +399,7 @@ export var serializeAws_restJson1GetBackendEnvironmentCommand = function (input,
|
|
|
597
399
|
});
|
|
598
400
|
}); };
|
|
599
401
|
export var serializeAws_restJson1GetBranchCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
600
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
402
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
601
403
|
return __generator(this, function (_c) {
|
|
602
404
|
switch (_c.label) {
|
|
603
405
|
case 0: return [4, context.endpoint()];
|
|
@@ -605,26 +407,8 @@ export var serializeAws_restJson1GetBranchCommand = function (input, context) {
|
|
|
605
407
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
606
408
|
headers = {};
|
|
607
409
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}";
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
if (labelValue.length <= 0) {
|
|
611
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
612
|
-
}
|
|
613
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
614
|
-
}
|
|
615
|
-
else {
|
|
616
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
617
|
-
}
|
|
618
|
-
if (input.branchName !== undefined) {
|
|
619
|
-
labelValue = input.branchName;
|
|
620
|
-
if (labelValue.length <= 0) {
|
|
621
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
622
|
-
}
|
|
623
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
624
|
-
}
|
|
625
|
-
else {
|
|
626
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
627
|
-
}
|
|
410
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
411
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
628
412
|
return [2, new __HttpRequest({
|
|
629
413
|
protocol: protocol,
|
|
630
414
|
hostname: hostname,
|
|
@@ -638,7 +422,7 @@ export var serializeAws_restJson1GetBranchCommand = function (input, context) {
|
|
|
638
422
|
});
|
|
639
423
|
}); };
|
|
640
424
|
export var serializeAws_restJson1GetDomainAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
641
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
425
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
642
426
|
return __generator(this, function (_c) {
|
|
643
427
|
switch (_c.label) {
|
|
644
428
|
case 0: return [4, context.endpoint()];
|
|
@@ -646,26 +430,8 @@ export var serializeAws_restJson1GetDomainAssociationCommand = function (input,
|
|
|
646
430
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
647
431
|
headers = {};
|
|
648
432
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains/{domainName}";
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
if (labelValue.length <= 0) {
|
|
652
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
653
|
-
}
|
|
654
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
655
|
-
}
|
|
656
|
-
else {
|
|
657
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
658
|
-
}
|
|
659
|
-
if (input.domainName !== undefined) {
|
|
660
|
-
labelValue = input.domainName;
|
|
661
|
-
if (labelValue.length <= 0) {
|
|
662
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
663
|
-
}
|
|
664
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
668
|
-
}
|
|
433
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
434
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
669
435
|
return [2, new __HttpRequest({
|
|
670
436
|
protocol: protocol,
|
|
671
437
|
hostname: hostname,
|
|
@@ -679,7 +445,7 @@ export var serializeAws_restJson1GetDomainAssociationCommand = function (input,
|
|
|
679
445
|
});
|
|
680
446
|
}); };
|
|
681
447
|
export var serializeAws_restJson1GetJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
682
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
448
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
683
449
|
return __generator(this, function (_c) {
|
|
684
450
|
switch (_c.label) {
|
|
685
451
|
case 0: return [4, context.endpoint()];
|
|
@@ -688,36 +454,9 @@ export var serializeAws_restJson1GetJobCommand = function (input, context) { ret
|
|
|
688
454
|
headers = {};
|
|
689
455
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
690
456
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}";
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
695
|
-
}
|
|
696
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
697
|
-
}
|
|
698
|
-
else {
|
|
699
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
700
|
-
}
|
|
701
|
-
if (input.branchName !== undefined) {
|
|
702
|
-
labelValue = input.branchName;
|
|
703
|
-
if (labelValue.length <= 0) {
|
|
704
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
705
|
-
}
|
|
706
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
707
|
-
}
|
|
708
|
-
else {
|
|
709
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
710
|
-
}
|
|
711
|
-
if (input.jobId !== undefined) {
|
|
712
|
-
labelValue = input.jobId;
|
|
713
|
-
if (labelValue.length <= 0) {
|
|
714
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
715
|
-
}
|
|
716
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
717
|
-
}
|
|
718
|
-
else {
|
|
719
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
720
|
-
}
|
|
457
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
458
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
459
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
721
460
|
return [2, new __HttpRequest({
|
|
722
461
|
protocol: protocol,
|
|
723
462
|
hostname: hostname,
|
|
@@ -731,7 +470,7 @@ export var serializeAws_restJson1GetJobCommand = function (input, context) { ret
|
|
|
731
470
|
});
|
|
732
471
|
}); };
|
|
733
472
|
export var serializeAws_restJson1GetWebhookCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
734
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
473
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
735
474
|
return __generator(this, function (_c) {
|
|
736
475
|
switch (_c.label) {
|
|
737
476
|
case 0: return [4, context.endpoint()];
|
|
@@ -739,16 +478,7 @@ export var serializeAws_restJson1GetWebhookCommand = function (input, context) {
|
|
|
739
478
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
740
479
|
headers = {};
|
|
741
480
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/webhooks/{webhookId}";
|
|
742
|
-
|
|
743
|
-
labelValue = input.webhookId;
|
|
744
|
-
if (labelValue.length <= 0) {
|
|
745
|
-
throw new Error("Empty value provided for input HTTP label: webhookId.");
|
|
746
|
-
}
|
|
747
|
-
resolvedPath = resolvedPath.replace("{webhookId}", __extendedEncodeURIComponent(labelValue));
|
|
748
|
-
}
|
|
749
|
-
else {
|
|
750
|
-
throw new Error("No value provided for input HTTP label: webhookId.");
|
|
751
|
-
}
|
|
481
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "webhookId", function () { return input.webhookId; }, "{webhookId}", false);
|
|
752
482
|
return [2, new __HttpRequest({
|
|
753
483
|
protocol: protocol,
|
|
754
484
|
hostname: hostname,
|
|
@@ -770,7 +500,10 @@ export var serializeAws_restJson1ListAppsCommand = function (input, context) { r
|
|
|
770
500
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
771
501
|
headers = {};
|
|
772
502
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps";
|
|
773
|
-
query =
|
|
503
|
+
query = map({
|
|
504
|
+
nextToken: [, input.nextToken],
|
|
505
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
506
|
+
});
|
|
774
507
|
return [2, new __HttpRequest({
|
|
775
508
|
protocol: protocol,
|
|
776
509
|
hostname: hostname,
|
|
@@ -785,7 +518,7 @@ export var serializeAws_restJson1ListAppsCommand = function (input, context) { r
|
|
|
785
518
|
});
|
|
786
519
|
}); };
|
|
787
520
|
export var serializeAws_restJson1ListArtifactsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
788
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
521
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
789
522
|
return __generator(this, function (_c) {
|
|
790
523
|
switch (_c.label) {
|
|
791
524
|
case 0: return [4, context.endpoint()];
|
|
@@ -794,37 +527,13 @@ export var serializeAws_restJson1ListArtifactsCommand = function (input, context
|
|
|
794
527
|
headers = {};
|
|
795
528
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
796
529
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}/artifacts";
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
804
|
-
else {
|
|
805
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
806
|
-
}
|
|
807
|
-
if (input.branchName !== undefined) {
|
|
808
|
-
labelValue = input.branchName;
|
|
809
|
-
if (labelValue.length <= 0) {
|
|
810
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
811
|
-
}
|
|
812
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
813
|
-
}
|
|
814
|
-
else {
|
|
815
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
816
|
-
}
|
|
817
|
-
if (input.jobId !== undefined) {
|
|
818
|
-
labelValue = input.jobId;
|
|
819
|
-
if (labelValue.length <= 0) {
|
|
820
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
821
|
-
}
|
|
822
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
823
|
-
}
|
|
824
|
-
else {
|
|
825
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
826
|
-
}
|
|
827
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
530
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
531
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
532
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
533
|
+
query = map({
|
|
534
|
+
nextToken: [, input.nextToken],
|
|
535
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
536
|
+
});
|
|
828
537
|
return [2, new __HttpRequest({
|
|
829
538
|
protocol: protocol,
|
|
830
539
|
hostname: hostname,
|
|
@@ -839,7 +548,7 @@ export var serializeAws_restJson1ListArtifactsCommand = function (input, context
|
|
|
839
548
|
});
|
|
840
549
|
}); };
|
|
841
550
|
export var serializeAws_restJson1ListBackendEnvironmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
842
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
551
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
843
552
|
return __generator(this, function (_c) {
|
|
844
553
|
switch (_c.label) {
|
|
845
554
|
case 0: return [4, context.endpoint()];
|
|
@@ -847,17 +556,12 @@ export var serializeAws_restJson1ListBackendEnvironmentsCommand = function (inpu
|
|
|
847
556
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
848
557
|
headers = {};
|
|
849
558
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/backendenvironments";
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
}
|
|
857
|
-
else {
|
|
858
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
859
|
-
}
|
|
860
|
-
query = __assign(__assign(__assign({}, (input.environmentName !== undefined && { environmentName: input.environmentName })), (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
559
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
560
|
+
query = map({
|
|
561
|
+
environmentName: [, input.environmentName],
|
|
562
|
+
nextToken: [, input.nextToken],
|
|
563
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
564
|
+
});
|
|
861
565
|
return [2, new __HttpRequest({
|
|
862
566
|
protocol: protocol,
|
|
863
567
|
hostname: hostname,
|
|
@@ -872,7 +576,7 @@ export var serializeAws_restJson1ListBackendEnvironmentsCommand = function (inpu
|
|
|
872
576
|
});
|
|
873
577
|
}); };
|
|
874
578
|
export var serializeAws_restJson1ListBranchesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
875
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
579
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
876
580
|
return __generator(this, function (_c) {
|
|
877
581
|
switch (_c.label) {
|
|
878
582
|
case 0: return [4, context.endpoint()];
|
|
@@ -880,17 +584,11 @@ export var serializeAws_restJson1ListBranchesCommand = function (input, context)
|
|
|
880
584
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
881
585
|
headers = {};
|
|
882
586
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches";
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
889
|
-
}
|
|
890
|
-
else {
|
|
891
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
892
|
-
}
|
|
893
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
587
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
588
|
+
query = map({
|
|
589
|
+
nextToken: [, input.nextToken],
|
|
590
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
591
|
+
});
|
|
894
592
|
return [2, new __HttpRequest({
|
|
895
593
|
protocol: protocol,
|
|
896
594
|
hostname: hostname,
|
|
@@ -905,7 +603,7 @@ export var serializeAws_restJson1ListBranchesCommand = function (input, context)
|
|
|
905
603
|
});
|
|
906
604
|
}); };
|
|
907
605
|
export var serializeAws_restJson1ListDomainAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
908
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
606
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
909
607
|
return __generator(this, function (_c) {
|
|
910
608
|
switch (_c.label) {
|
|
911
609
|
case 0: return [4, context.endpoint()];
|
|
@@ -913,17 +611,11 @@ export var serializeAws_restJson1ListDomainAssociationsCommand = function (input
|
|
|
913
611
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
914
612
|
headers = {};
|
|
915
613
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains";
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
922
|
-
}
|
|
923
|
-
else {
|
|
924
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
925
|
-
}
|
|
926
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
614
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
615
|
+
query = map({
|
|
616
|
+
nextToken: [, input.nextToken],
|
|
617
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
618
|
+
});
|
|
927
619
|
return [2, new __HttpRequest({
|
|
928
620
|
protocol: protocol,
|
|
929
621
|
hostname: hostname,
|
|
@@ -938,7 +630,7 @@ export var serializeAws_restJson1ListDomainAssociationsCommand = function (input
|
|
|
938
630
|
});
|
|
939
631
|
}); };
|
|
940
632
|
export var serializeAws_restJson1ListJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
941
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
633
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
942
634
|
return __generator(this, function (_c) {
|
|
943
635
|
switch (_c.label) {
|
|
944
636
|
case 0: return [4, context.endpoint()];
|
|
@@ -946,27 +638,12 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
946
638
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
947
639
|
headers = {};
|
|
948
640
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}/jobs";
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
}
|
|
956
|
-
else {
|
|
957
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
958
|
-
}
|
|
959
|
-
if (input.branchName !== undefined) {
|
|
960
|
-
labelValue = input.branchName;
|
|
961
|
-
if (labelValue.length <= 0) {
|
|
962
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
963
|
-
}
|
|
964
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
965
|
-
}
|
|
966
|
-
else {
|
|
967
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
968
|
-
}
|
|
969
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
641
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
642
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
643
|
+
query = map({
|
|
644
|
+
nextToken: [, input.nextToken],
|
|
645
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
646
|
+
});
|
|
970
647
|
return [2, new __HttpRequest({
|
|
971
648
|
protocol: protocol,
|
|
972
649
|
hostname: hostname,
|
|
@@ -981,7 +658,7 @@ export var serializeAws_restJson1ListJobsCommand = function (input, context) { r
|
|
|
981
658
|
});
|
|
982
659
|
}); };
|
|
983
660
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
984
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
661
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
985
662
|
return __generator(this, function (_c) {
|
|
986
663
|
switch (_c.label) {
|
|
987
664
|
case 0: return [4, context.endpoint()];
|
|
@@ -989,16 +666,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
989
666
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
990
667
|
headers = {};
|
|
991
668
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
992
|
-
|
|
993
|
-
labelValue = input.resourceArn;
|
|
994
|
-
if (labelValue.length <= 0) {
|
|
995
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
996
|
-
}
|
|
997
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
998
|
-
}
|
|
999
|
-
else {
|
|
1000
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1001
|
-
}
|
|
669
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1002
670
|
return [2, new __HttpRequest({
|
|
1003
671
|
protocol: protocol,
|
|
1004
672
|
hostname: hostname,
|
|
@@ -1012,7 +680,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1012
680
|
});
|
|
1013
681
|
}); };
|
|
1014
682
|
export var serializeAws_restJson1ListWebhooksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1015
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
683
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1016
684
|
return __generator(this, function (_c) {
|
|
1017
685
|
switch (_c.label) {
|
|
1018
686
|
case 0: return [4, context.endpoint()];
|
|
@@ -1020,17 +688,11 @@ export var serializeAws_restJson1ListWebhooksCommand = function (input, context)
|
|
|
1020
688
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1021
689
|
headers = {};
|
|
1022
690
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/webhooks";
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
1029
|
-
}
|
|
1030
|
-
else {
|
|
1031
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
1032
|
-
}
|
|
1033
|
-
query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
|
|
691
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
692
|
+
query = map({
|
|
693
|
+
nextToken: [, input.nextToken],
|
|
694
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
695
|
+
});
|
|
1034
696
|
return [2, new __HttpRequest({
|
|
1035
697
|
protocol: protocol,
|
|
1036
698
|
hostname: hostname,
|
|
@@ -1045,7 +707,7 @@ export var serializeAws_restJson1ListWebhooksCommand = function (input, context)
|
|
|
1045
707
|
});
|
|
1046
708
|
}); };
|
|
1047
709
|
export var serializeAws_restJson1StartDeploymentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1048
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
710
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1049
711
|
return __generator(this, function (_c) {
|
|
1050
712
|
switch (_c.label) {
|
|
1051
713
|
case 0: return [4, context.endpoint()];
|
|
@@ -1056,26 +718,8 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
1056
718
|
};
|
|
1057
719
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1058
720
|
"/apps/{appId}/branches/{branchName}/deployments/start";
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
if (labelValue.length <= 0) {
|
|
1062
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
1063
|
-
}
|
|
1064
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
1065
|
-
}
|
|
1066
|
-
else {
|
|
1067
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
1068
|
-
}
|
|
1069
|
-
if (input.branchName !== undefined) {
|
|
1070
|
-
labelValue = input.branchName;
|
|
1071
|
-
if (labelValue.length <= 0) {
|
|
1072
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
1073
|
-
}
|
|
1074
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
1075
|
-
}
|
|
1076
|
-
else {
|
|
1077
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
1078
|
-
}
|
|
721
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
722
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
1079
723
|
body = JSON.stringify(__assign(__assign({}, (input.jobId != null && { jobId: input.jobId })), (input.sourceUrl != null && { sourceUrl: input.sourceUrl })));
|
|
1080
724
|
return [2, new __HttpRequest({
|
|
1081
725
|
protocol: protocol,
|
|
@@ -1090,7 +734,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
1090
734
|
});
|
|
1091
735
|
}); };
|
|
1092
736
|
export var serializeAws_restJson1StartJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1093
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
737
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1094
738
|
return __generator(this, function (_c) {
|
|
1095
739
|
switch (_c.label) {
|
|
1096
740
|
case 0: return [4, context.endpoint()];
|
|
@@ -1100,26 +744,8 @@ export var serializeAws_restJson1StartJobCommand = function (input, context) { r
|
|
|
1100
744
|
"content-type": "application/json",
|
|
1101
745
|
};
|
|
1102
746
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}/jobs";
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
if (labelValue.length <= 0) {
|
|
1106
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
1107
|
-
}
|
|
1108
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
1109
|
-
}
|
|
1110
|
-
else {
|
|
1111
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
1112
|
-
}
|
|
1113
|
-
if (input.branchName !== undefined) {
|
|
1114
|
-
labelValue = input.branchName;
|
|
1115
|
-
if (labelValue.length <= 0) {
|
|
1116
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
1117
|
-
}
|
|
1118
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
1119
|
-
}
|
|
1120
|
-
else {
|
|
1121
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
1122
|
-
}
|
|
747
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
748
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
1123
749
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.commitId != null && { commitId: input.commitId })), (input.commitMessage != null && { commitMessage: input.commitMessage })), (input.commitTime != null && { commitTime: Math.round(input.commitTime.getTime() / 1000) })), (input.jobId != null && { jobId: input.jobId })), (input.jobReason != null && { jobReason: input.jobReason })), (input.jobType != null && { jobType: input.jobType })));
|
|
1124
750
|
return [2, new __HttpRequest({
|
|
1125
751
|
protocol: protocol,
|
|
@@ -1134,7 +760,7 @@ export var serializeAws_restJson1StartJobCommand = function (input, context) { r
|
|
|
1134
760
|
});
|
|
1135
761
|
}); };
|
|
1136
762
|
export var serializeAws_restJson1StopJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1137
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
763
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1138
764
|
return __generator(this, function (_c) {
|
|
1139
765
|
switch (_c.label) {
|
|
1140
766
|
case 0: return [4, context.endpoint()];
|
|
@@ -1143,36 +769,9 @@ export var serializeAws_restJson1StopJobCommand = function (input, context) { re
|
|
|
1143
769
|
headers = {};
|
|
1144
770
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1145
771
|
"/apps/{appId}/branches/{branchName}/jobs/{jobId}/stop";
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
1150
|
-
}
|
|
1151
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
1152
|
-
}
|
|
1153
|
-
else {
|
|
1154
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
1155
|
-
}
|
|
1156
|
-
if (input.branchName !== undefined) {
|
|
1157
|
-
labelValue = input.branchName;
|
|
1158
|
-
if (labelValue.length <= 0) {
|
|
1159
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
1160
|
-
}
|
|
1161
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
1162
|
-
}
|
|
1163
|
-
else {
|
|
1164
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
1165
|
-
}
|
|
1166
|
-
if (input.jobId !== undefined) {
|
|
1167
|
-
labelValue = input.jobId;
|
|
1168
|
-
if (labelValue.length <= 0) {
|
|
1169
|
-
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
1170
|
-
}
|
|
1171
|
-
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
1172
|
-
}
|
|
1173
|
-
else {
|
|
1174
|
-
throw new Error("No value provided for input HTTP label: jobId.");
|
|
1175
|
-
}
|
|
772
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
773
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
774
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "jobId", function () { return input.jobId; }, "{jobId}", false);
|
|
1176
775
|
return [2, new __HttpRequest({
|
|
1177
776
|
protocol: protocol,
|
|
1178
777
|
hostname: hostname,
|
|
@@ -1186,7 +785,7 @@ export var serializeAws_restJson1StopJobCommand = function (input, context) { re
|
|
|
1186
785
|
});
|
|
1187
786
|
}); };
|
|
1188
787
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1189
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
788
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1190
789
|
return __generator(this, function (_c) {
|
|
1191
790
|
switch (_c.label) {
|
|
1192
791
|
case 0: return [4, context.endpoint()];
|
|
@@ -1196,16 +795,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1196
795
|
"content-type": "application/json",
|
|
1197
796
|
};
|
|
1198
797
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1199
|
-
|
|
1200
|
-
labelValue = input.resourceArn;
|
|
1201
|
-
if (labelValue.length <= 0) {
|
|
1202
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
1203
|
-
}
|
|
1204
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1205
|
-
}
|
|
1206
|
-
else {
|
|
1207
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1208
|
-
}
|
|
798
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
1209
799
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
1210
800
|
return [2, new __HttpRequest({
|
|
1211
801
|
protocol: protocol,
|
|
@@ -1220,7 +810,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1220
810
|
});
|
|
1221
811
|
}); };
|
|
1222
812
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1223
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
813
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1224
814
|
return __generator(this, function (_c) {
|
|
1225
815
|
switch (_c.label) {
|
|
1226
816
|
case 0: return [4, context.endpoint()];
|
|
@@ -1228,17 +818,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1228
818
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1229
819
|
headers = {};
|
|
1230
820
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
}
|
|
1236
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1237
|
-
}
|
|
1238
|
-
else {
|
|
1239
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
1240
|
-
}
|
|
1241
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
821
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
822
|
+
query = map({
|
|
823
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
824
|
+
});
|
|
1242
825
|
return [2, new __HttpRequest({
|
|
1243
826
|
protocol: protocol,
|
|
1244
827
|
hostname: hostname,
|
|
@@ -1253,7 +836,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1253
836
|
});
|
|
1254
837
|
}); };
|
|
1255
838
|
export var serializeAws_restJson1UpdateAppCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1256
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
839
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1257
840
|
return __generator(this, function (_c) {
|
|
1258
841
|
switch (_c.label) {
|
|
1259
842
|
case 0: return [4, context.endpoint()];
|
|
@@ -1263,16 +846,7 @@ export var serializeAws_restJson1UpdateAppCommand = function (input, context) {
|
|
|
1263
846
|
"content-type": "application/json",
|
|
1264
847
|
};
|
|
1265
848
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}";
|
|
1266
|
-
|
|
1267
|
-
labelValue = input.appId;
|
|
1268
|
-
if (labelValue.length <= 0) {
|
|
1269
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
1270
|
-
}
|
|
1271
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
1272
|
-
}
|
|
1273
|
-
else {
|
|
1274
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
1275
|
-
}
|
|
849
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
1276
850
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accessToken != null && { accessToken: input.accessToken })), (input.autoBranchCreationConfig != null && {
|
|
1277
851
|
autoBranchCreationConfig: serializeAws_restJson1AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
|
|
1278
852
|
})), (input.autoBranchCreationPatterns != null && {
|
|
@@ -1293,7 +867,7 @@ export var serializeAws_restJson1UpdateAppCommand = function (input, context) {
|
|
|
1293
867
|
});
|
|
1294
868
|
}); };
|
|
1295
869
|
export var serializeAws_restJson1UpdateBranchCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1296
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
870
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1297
871
|
return __generator(this, function (_c) {
|
|
1298
872
|
switch (_c.label) {
|
|
1299
873
|
case 0: return [4, context.endpoint()];
|
|
@@ -1303,26 +877,8 @@ export var serializeAws_restJson1UpdateBranchCommand = function (input, context)
|
|
|
1303
877
|
"content-type": "application/json",
|
|
1304
878
|
};
|
|
1305
879
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/branches/{branchName}";
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
if (labelValue.length <= 0) {
|
|
1309
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
1310
|
-
}
|
|
1311
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
1312
|
-
}
|
|
1313
|
-
else {
|
|
1314
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
1315
|
-
}
|
|
1316
|
-
if (input.branchName !== undefined) {
|
|
1317
|
-
labelValue = input.branchName;
|
|
1318
|
-
if (labelValue.length <= 0) {
|
|
1319
|
-
throw new Error("Empty value provided for input HTTP label: branchName.");
|
|
1320
|
-
}
|
|
1321
|
-
resolvedPath = resolvedPath.replace("{branchName}", __extendedEncodeURIComponent(labelValue));
|
|
1322
|
-
}
|
|
1323
|
-
else {
|
|
1324
|
-
throw new Error("No value provided for input HTTP label: branchName.");
|
|
1325
|
-
}
|
|
880
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
881
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "branchName", function () { return input.branchName; }, "{branchName}", false);
|
|
1326
882
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.backendEnvironmentArn != null && { backendEnvironmentArn: input.backendEnvironmentArn })), (input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials })), (input.buildSpec != null && { buildSpec: input.buildSpec })), (input.description != null && { description: input.description })), (input.displayName != null && { displayName: input.displayName })), (input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild })), (input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth })), (input.enableNotification != null && { enableNotification: input.enableNotification })), (input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode })), (input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview })), (input.environmentVariables != null && {
|
|
1327
883
|
environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
|
|
1328
884
|
})), (input.framework != null && { framework: input.framework })), (input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName })), (input.stage != null && { stage: input.stage })), (input.ttl != null && { ttl: input.ttl })));
|
|
@@ -1339,7 +895,7 @@ export var serializeAws_restJson1UpdateBranchCommand = function (input, context)
|
|
|
1339
895
|
});
|
|
1340
896
|
}); };
|
|
1341
897
|
export var serializeAws_restJson1UpdateDomainAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1342
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
898
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1343
899
|
return __generator(this, function (_c) {
|
|
1344
900
|
switch (_c.label) {
|
|
1345
901
|
case 0: return [4, context.endpoint()];
|
|
@@ -1349,26 +905,8 @@ export var serializeAws_restJson1UpdateDomainAssociationCommand = function (inpu
|
|
|
1349
905
|
"content-type": "application/json",
|
|
1350
906
|
};
|
|
1351
907
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/apps/{appId}/domains/{domainName}";
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
if (labelValue.length <= 0) {
|
|
1355
|
-
throw new Error("Empty value provided for input HTTP label: appId.");
|
|
1356
|
-
}
|
|
1357
|
-
resolvedPath = resolvedPath.replace("{appId}", __extendedEncodeURIComponent(labelValue));
|
|
1358
|
-
}
|
|
1359
|
-
else {
|
|
1360
|
-
throw new Error("No value provided for input HTTP label: appId.");
|
|
1361
|
-
}
|
|
1362
|
-
if (input.domainName !== undefined) {
|
|
1363
|
-
labelValue = input.domainName;
|
|
1364
|
-
if (labelValue.length <= 0) {
|
|
1365
|
-
throw new Error("Empty value provided for input HTTP label: domainName.");
|
|
1366
|
-
}
|
|
1367
|
-
resolvedPath = resolvedPath.replace("{domainName}", __extendedEncodeURIComponent(labelValue));
|
|
1368
|
-
}
|
|
1369
|
-
else {
|
|
1370
|
-
throw new Error("No value provided for input HTTP label: domainName.");
|
|
1371
|
-
}
|
|
908
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
909
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "domainName", function () { return input.domainName; }, "{domainName}", false);
|
|
1372
910
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.autoSubDomainCreationPatterns != null && {
|
|
1373
911
|
autoSubDomainCreationPatterns: serializeAws_restJson1AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
|
|
1374
912
|
})), (input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole })), (input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain })), (input.subDomainSettings != null && {
|
|
@@ -1387,7 +925,7 @@ export var serializeAws_restJson1UpdateDomainAssociationCommand = function (inpu
|
|
|
1387
925
|
});
|
|
1388
926
|
}); };
|
|
1389
927
|
export var serializeAws_restJson1UpdateWebhookCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1390
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
928
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
1391
929
|
return __generator(this, function (_c) {
|
|
1392
930
|
switch (_c.label) {
|
|
1393
931
|
case 0: return [4, context.endpoint()];
|
|
@@ -1397,16 +935,7 @@ export var serializeAws_restJson1UpdateWebhookCommand = function (input, context
|
|
|
1397
935
|
"content-type": "application/json",
|
|
1398
936
|
};
|
|
1399
937
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/webhooks/{webhookId}";
|
|
1400
|
-
|
|
1401
|
-
labelValue = input.webhookId;
|
|
1402
|
-
if (labelValue.length <= 0) {
|
|
1403
|
-
throw new Error("Empty value provided for input HTTP label: webhookId.");
|
|
1404
|
-
}
|
|
1405
|
-
resolvedPath = resolvedPath.replace("{webhookId}", __extendedEncodeURIComponent(labelValue));
|
|
1406
|
-
}
|
|
1407
|
-
else {
|
|
1408
|
-
throw new Error("No value provided for input HTTP label: webhookId.");
|
|
1409
|
-
}
|
|
938
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "webhookId", function () { return input.webhookId; }, "{webhookId}", false);
|
|
1410
939
|
body = JSON.stringify(__assign(__assign({}, (input.branchName != null && { branchName: input.branchName })), (input.description != null && { description: input.description })));
|
|
1411
940
|
return [2, new __HttpRequest({
|
|
1412
941
|
protocol: protocol,
|
|
@@ -1428,24 +957,23 @@ export var deserializeAws_restJson1CreateAppCommand = function (output, context)
|
|
|
1428
957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1429
958
|
return [2, deserializeAws_restJson1CreateAppCommandError(output, context)];
|
|
1430
959
|
}
|
|
1431
|
-
contents = {
|
|
960
|
+
contents = map({
|
|
1432
961
|
$metadata: deserializeMetadata(output),
|
|
1433
|
-
|
|
1434
|
-
};
|
|
962
|
+
});
|
|
1435
963
|
_a = __expectNonNull;
|
|
1436
964
|
_b = __expectObject;
|
|
1437
965
|
return [4, parseBody(output.body, context)];
|
|
1438
966
|
case 1:
|
|
1439
967
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1440
|
-
if (data.app
|
|
968
|
+
if (data.app != null) {
|
|
1441
969
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
1442
970
|
}
|
|
1443
|
-
return [2,
|
|
971
|
+
return [2, contents];
|
|
1444
972
|
}
|
|
1445
973
|
});
|
|
1446
974
|
}); };
|
|
1447
975
|
var deserializeAws_restJson1CreateAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1448
|
-
var parsedOutput, _a,
|
|
976
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1449
977
|
var _c;
|
|
1450
978
|
return __generator(this, function (_d) {
|
|
1451
979
|
switch (_d.label) {
|
|
@@ -1482,14 +1010,14 @@ var deserializeAws_restJson1CreateAppCommandError = function (output, context) {
|
|
|
1482
1010
|
case 11: throw _d.sent();
|
|
1483
1011
|
case 12:
|
|
1484
1012
|
parsedBody = parsedOutput.body;
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
$metadata: $metadata,
|
|
1013
|
+
throwDefaultError({
|
|
1014
|
+
output: output,
|
|
1015
|
+
parsedBody: parsedBody,
|
|
1016
|
+
exceptionCtor: __BaseException,
|
|
1017
|
+
errorCode: errorCode,
|
|
1491
1018
|
});
|
|
1492
|
-
|
|
1019
|
+
_d.label = 13;
|
|
1020
|
+
case 13: return [2];
|
|
1493
1021
|
}
|
|
1494
1022
|
});
|
|
1495
1023
|
}); };
|
|
@@ -1501,24 +1029,23 @@ export var deserializeAws_restJson1CreateBackendEnvironmentCommand = function (o
|
|
|
1501
1029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1502
1030
|
return [2, deserializeAws_restJson1CreateBackendEnvironmentCommandError(output, context)];
|
|
1503
1031
|
}
|
|
1504
|
-
contents = {
|
|
1032
|
+
contents = map({
|
|
1505
1033
|
$metadata: deserializeMetadata(output),
|
|
1506
|
-
|
|
1507
|
-
};
|
|
1034
|
+
});
|
|
1508
1035
|
_a = __expectNonNull;
|
|
1509
1036
|
_b = __expectObject;
|
|
1510
1037
|
return [4, parseBody(output.body, context)];
|
|
1511
1038
|
case 1:
|
|
1512
1039
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1513
|
-
if (data.backendEnvironment
|
|
1040
|
+
if (data.backendEnvironment != null) {
|
|
1514
1041
|
contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
|
|
1515
1042
|
}
|
|
1516
|
-
return [2,
|
|
1043
|
+
return [2, contents];
|
|
1517
1044
|
}
|
|
1518
1045
|
});
|
|
1519
1046
|
}); };
|
|
1520
1047
|
var deserializeAws_restJson1CreateBackendEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1521
|
-
var parsedOutput, _a,
|
|
1048
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1522
1049
|
var _c;
|
|
1523
1050
|
return __generator(this, function (_d) {
|
|
1524
1051
|
switch (_d.label) {
|
|
@@ -1555,14 +1082,14 @@ var deserializeAws_restJson1CreateBackendEnvironmentCommandError = function (out
|
|
|
1555
1082
|
case 11: throw _d.sent();
|
|
1556
1083
|
case 12:
|
|
1557
1084
|
parsedBody = parsedOutput.body;
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
$metadata: $metadata,
|
|
1085
|
+
throwDefaultError({
|
|
1086
|
+
output: output,
|
|
1087
|
+
parsedBody: parsedBody,
|
|
1088
|
+
exceptionCtor: __BaseException,
|
|
1089
|
+
errorCode: errorCode,
|
|
1564
1090
|
});
|
|
1565
|
-
|
|
1091
|
+
_d.label = 13;
|
|
1092
|
+
case 13: return [2];
|
|
1566
1093
|
}
|
|
1567
1094
|
});
|
|
1568
1095
|
}); };
|
|
@@ -1574,24 +1101,23 @@ export var deserializeAws_restJson1CreateBranchCommand = function (output, conte
|
|
|
1574
1101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1575
1102
|
return [2, deserializeAws_restJson1CreateBranchCommandError(output, context)];
|
|
1576
1103
|
}
|
|
1577
|
-
contents = {
|
|
1104
|
+
contents = map({
|
|
1578
1105
|
$metadata: deserializeMetadata(output),
|
|
1579
|
-
|
|
1580
|
-
};
|
|
1106
|
+
});
|
|
1581
1107
|
_a = __expectNonNull;
|
|
1582
1108
|
_b = __expectObject;
|
|
1583
1109
|
return [4, parseBody(output.body, context)];
|
|
1584
1110
|
case 1:
|
|
1585
1111
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1586
|
-
if (data.branch
|
|
1112
|
+
if (data.branch != null) {
|
|
1587
1113
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
1588
1114
|
}
|
|
1589
|
-
return [2,
|
|
1115
|
+
return [2, contents];
|
|
1590
1116
|
}
|
|
1591
1117
|
});
|
|
1592
1118
|
}); };
|
|
1593
1119
|
var deserializeAws_restJson1CreateBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1594
|
-
var parsedOutput, _a,
|
|
1120
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1595
1121
|
var _c;
|
|
1596
1122
|
return __generator(this, function (_d) {
|
|
1597
1123
|
switch (_d.label) {
|
|
@@ -1632,14 +1158,14 @@ var deserializeAws_restJson1CreateBranchCommandError = function (output, context
|
|
|
1632
1158
|
case 13: throw _d.sent();
|
|
1633
1159
|
case 14:
|
|
1634
1160
|
parsedBody = parsedOutput.body;
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
$metadata: $metadata,
|
|
1161
|
+
throwDefaultError({
|
|
1162
|
+
output: output,
|
|
1163
|
+
parsedBody: parsedBody,
|
|
1164
|
+
exceptionCtor: __BaseException,
|
|
1165
|
+
errorCode: errorCode,
|
|
1641
1166
|
});
|
|
1642
|
-
|
|
1167
|
+
_d.label = 15;
|
|
1168
|
+
case 15: return [2];
|
|
1643
1169
|
}
|
|
1644
1170
|
});
|
|
1645
1171
|
}); };
|
|
@@ -1651,32 +1177,29 @@ export var deserializeAws_restJson1CreateDeploymentCommand = function (output, c
|
|
|
1651
1177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
1178
|
return [2, deserializeAws_restJson1CreateDeploymentCommandError(output, context)];
|
|
1653
1179
|
}
|
|
1654
|
-
contents = {
|
|
1180
|
+
contents = map({
|
|
1655
1181
|
$metadata: deserializeMetadata(output),
|
|
1656
|
-
|
|
1657
|
-
jobId: undefined,
|
|
1658
|
-
zipUploadUrl: undefined,
|
|
1659
|
-
};
|
|
1182
|
+
});
|
|
1660
1183
|
_a = __expectNonNull;
|
|
1661
1184
|
_b = __expectObject;
|
|
1662
1185
|
return [4, parseBody(output.body, context)];
|
|
1663
1186
|
case 1:
|
|
1664
1187
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1665
|
-
if (data.fileUploadUrls
|
|
1188
|
+
if (data.fileUploadUrls != null) {
|
|
1666
1189
|
contents.fileUploadUrls = deserializeAws_restJson1FileUploadUrls(data.fileUploadUrls, context);
|
|
1667
1190
|
}
|
|
1668
|
-
if (data.jobId
|
|
1191
|
+
if (data.jobId != null) {
|
|
1669
1192
|
contents.jobId = __expectString(data.jobId);
|
|
1670
1193
|
}
|
|
1671
|
-
if (data.zipUploadUrl
|
|
1194
|
+
if (data.zipUploadUrl != null) {
|
|
1672
1195
|
contents.zipUploadUrl = __expectString(data.zipUploadUrl);
|
|
1673
1196
|
}
|
|
1674
|
-
return [2,
|
|
1197
|
+
return [2, contents];
|
|
1675
1198
|
}
|
|
1676
1199
|
});
|
|
1677
1200
|
}); };
|
|
1678
1201
|
var deserializeAws_restJson1CreateDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1679
|
-
var parsedOutput, _a,
|
|
1202
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1680
1203
|
var _c;
|
|
1681
1204
|
return __generator(this, function (_d) {
|
|
1682
1205
|
switch (_d.label) {
|
|
@@ -1709,14 +1232,14 @@ var deserializeAws_restJson1CreateDeploymentCommandError = function (output, con
|
|
|
1709
1232
|
case 9: throw _d.sent();
|
|
1710
1233
|
case 10:
|
|
1711
1234
|
parsedBody = parsedOutput.body;
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
$metadata: $metadata,
|
|
1235
|
+
throwDefaultError({
|
|
1236
|
+
output: output,
|
|
1237
|
+
parsedBody: parsedBody,
|
|
1238
|
+
exceptionCtor: __BaseException,
|
|
1239
|
+
errorCode: errorCode,
|
|
1718
1240
|
});
|
|
1719
|
-
|
|
1241
|
+
_d.label = 11;
|
|
1242
|
+
case 11: return [2];
|
|
1720
1243
|
}
|
|
1721
1244
|
});
|
|
1722
1245
|
}); };
|
|
@@ -1728,24 +1251,23 @@ export var deserializeAws_restJson1CreateDomainAssociationCommand = function (ou
|
|
|
1728
1251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1729
1252
|
return [2, deserializeAws_restJson1CreateDomainAssociationCommandError(output, context)];
|
|
1730
1253
|
}
|
|
1731
|
-
contents = {
|
|
1254
|
+
contents = map({
|
|
1732
1255
|
$metadata: deserializeMetadata(output),
|
|
1733
|
-
|
|
1734
|
-
};
|
|
1256
|
+
});
|
|
1735
1257
|
_a = __expectNonNull;
|
|
1736
1258
|
_b = __expectObject;
|
|
1737
1259
|
return [4, parseBody(output.body, context)];
|
|
1738
1260
|
case 1:
|
|
1739
1261
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1740
|
-
if (data.domainAssociation
|
|
1262
|
+
if (data.domainAssociation != null) {
|
|
1741
1263
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
1742
1264
|
}
|
|
1743
|
-
return [2,
|
|
1265
|
+
return [2, contents];
|
|
1744
1266
|
}
|
|
1745
1267
|
});
|
|
1746
1268
|
}); };
|
|
1747
1269
|
var deserializeAws_restJson1CreateDomainAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
|
-
var parsedOutput, _a,
|
|
1270
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1749
1271
|
var _c;
|
|
1750
1272
|
return __generator(this, function (_d) {
|
|
1751
1273
|
switch (_d.label) {
|
|
@@ -1786,14 +1308,14 @@ var deserializeAws_restJson1CreateDomainAssociationCommandError = function (outp
|
|
|
1786
1308
|
case 13: throw _d.sent();
|
|
1787
1309
|
case 14:
|
|
1788
1310
|
parsedBody = parsedOutput.body;
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
$metadata: $metadata,
|
|
1311
|
+
throwDefaultError({
|
|
1312
|
+
output: output,
|
|
1313
|
+
parsedBody: parsedBody,
|
|
1314
|
+
exceptionCtor: __BaseException,
|
|
1315
|
+
errorCode: errorCode,
|
|
1795
1316
|
});
|
|
1796
|
-
|
|
1317
|
+
_d.label = 15;
|
|
1318
|
+
case 15: return [2];
|
|
1797
1319
|
}
|
|
1798
1320
|
});
|
|
1799
1321
|
}); };
|
|
@@ -1805,24 +1327,23 @@ export var deserializeAws_restJson1CreateWebhookCommand = function (output, cont
|
|
|
1805
1327
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1806
1328
|
return [2, deserializeAws_restJson1CreateWebhookCommandError(output, context)];
|
|
1807
1329
|
}
|
|
1808
|
-
contents = {
|
|
1330
|
+
contents = map({
|
|
1809
1331
|
$metadata: deserializeMetadata(output),
|
|
1810
|
-
|
|
1811
|
-
};
|
|
1332
|
+
});
|
|
1812
1333
|
_a = __expectNonNull;
|
|
1813
1334
|
_b = __expectObject;
|
|
1814
1335
|
return [4, parseBody(output.body, context)];
|
|
1815
1336
|
case 1:
|
|
1816
1337
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1817
|
-
if (data.webhook
|
|
1338
|
+
if (data.webhook != null) {
|
|
1818
1339
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
1819
1340
|
}
|
|
1820
|
-
return [2,
|
|
1341
|
+
return [2, contents];
|
|
1821
1342
|
}
|
|
1822
1343
|
});
|
|
1823
1344
|
}); };
|
|
1824
1345
|
var deserializeAws_restJson1CreateWebhookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1825
|
-
var parsedOutput, _a,
|
|
1346
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1826
1347
|
var _c;
|
|
1827
1348
|
return __generator(this, function (_d) {
|
|
1828
1349
|
switch (_d.label) {
|
|
@@ -1863,14 +1384,14 @@ var deserializeAws_restJson1CreateWebhookCommandError = function (output, contex
|
|
|
1863
1384
|
case 13: throw _d.sent();
|
|
1864
1385
|
case 14:
|
|
1865
1386
|
parsedBody = parsedOutput.body;
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
$metadata: $metadata,
|
|
1387
|
+
throwDefaultError({
|
|
1388
|
+
output: output,
|
|
1389
|
+
parsedBody: parsedBody,
|
|
1390
|
+
exceptionCtor: __BaseException,
|
|
1391
|
+
errorCode: errorCode,
|
|
1872
1392
|
});
|
|
1873
|
-
|
|
1393
|
+
_d.label = 15;
|
|
1394
|
+
case 15: return [2];
|
|
1874
1395
|
}
|
|
1875
1396
|
});
|
|
1876
1397
|
}); };
|
|
@@ -1882,24 +1403,23 @@ export var deserializeAws_restJson1DeleteAppCommand = function (output, context)
|
|
|
1882
1403
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1883
1404
|
return [2, deserializeAws_restJson1DeleteAppCommandError(output, context)];
|
|
1884
1405
|
}
|
|
1885
|
-
contents = {
|
|
1406
|
+
contents = map({
|
|
1886
1407
|
$metadata: deserializeMetadata(output),
|
|
1887
|
-
|
|
1888
|
-
};
|
|
1408
|
+
});
|
|
1889
1409
|
_a = __expectNonNull;
|
|
1890
1410
|
_b = __expectObject;
|
|
1891
1411
|
return [4, parseBody(output.body, context)];
|
|
1892
1412
|
case 1:
|
|
1893
1413
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1894
|
-
if (data.app
|
|
1414
|
+
if (data.app != null) {
|
|
1895
1415
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
1896
1416
|
}
|
|
1897
|
-
return [2,
|
|
1417
|
+
return [2, contents];
|
|
1898
1418
|
}
|
|
1899
1419
|
});
|
|
1900
1420
|
}); };
|
|
1901
1421
|
var deserializeAws_restJson1DeleteAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1902
|
-
var parsedOutput, _a,
|
|
1422
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1903
1423
|
var _c;
|
|
1904
1424
|
return __generator(this, function (_d) {
|
|
1905
1425
|
switch (_d.label) {
|
|
@@ -1936,14 +1456,14 @@ var deserializeAws_restJson1DeleteAppCommandError = function (output, context) {
|
|
|
1936
1456
|
case 11: throw _d.sent();
|
|
1937
1457
|
case 12:
|
|
1938
1458
|
parsedBody = parsedOutput.body;
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
$metadata: $metadata,
|
|
1459
|
+
throwDefaultError({
|
|
1460
|
+
output: output,
|
|
1461
|
+
parsedBody: parsedBody,
|
|
1462
|
+
exceptionCtor: __BaseException,
|
|
1463
|
+
errorCode: errorCode,
|
|
1945
1464
|
});
|
|
1946
|
-
|
|
1465
|
+
_d.label = 13;
|
|
1466
|
+
case 13: return [2];
|
|
1947
1467
|
}
|
|
1948
1468
|
});
|
|
1949
1469
|
}); };
|
|
@@ -1955,24 +1475,23 @@ export var deserializeAws_restJson1DeleteBackendEnvironmentCommand = function (o
|
|
|
1955
1475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1956
1476
|
return [2, deserializeAws_restJson1DeleteBackendEnvironmentCommandError(output, context)];
|
|
1957
1477
|
}
|
|
1958
|
-
contents = {
|
|
1478
|
+
contents = map({
|
|
1959
1479
|
$metadata: deserializeMetadata(output),
|
|
1960
|
-
|
|
1961
|
-
};
|
|
1480
|
+
});
|
|
1962
1481
|
_a = __expectNonNull;
|
|
1963
1482
|
_b = __expectObject;
|
|
1964
1483
|
return [4, parseBody(output.body, context)];
|
|
1965
1484
|
case 1:
|
|
1966
1485
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1967
|
-
if (data.backendEnvironment
|
|
1486
|
+
if (data.backendEnvironment != null) {
|
|
1968
1487
|
contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
|
|
1969
1488
|
}
|
|
1970
|
-
return [2,
|
|
1489
|
+
return [2, contents];
|
|
1971
1490
|
}
|
|
1972
1491
|
});
|
|
1973
1492
|
}); };
|
|
1974
1493
|
var deserializeAws_restJson1DeleteBackendEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1975
|
-
var parsedOutput, _a,
|
|
1494
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1976
1495
|
var _c;
|
|
1977
1496
|
return __generator(this, function (_d) {
|
|
1978
1497
|
switch (_d.label) {
|
|
@@ -2009,14 +1528,14 @@ var deserializeAws_restJson1DeleteBackendEnvironmentCommandError = function (out
|
|
|
2009
1528
|
case 11: throw _d.sent();
|
|
2010
1529
|
case 12:
|
|
2011
1530
|
parsedBody = parsedOutput.body;
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
$metadata: $metadata,
|
|
1531
|
+
throwDefaultError({
|
|
1532
|
+
output: output,
|
|
1533
|
+
parsedBody: parsedBody,
|
|
1534
|
+
exceptionCtor: __BaseException,
|
|
1535
|
+
errorCode: errorCode,
|
|
2018
1536
|
});
|
|
2019
|
-
|
|
1537
|
+
_d.label = 13;
|
|
1538
|
+
case 13: return [2];
|
|
2020
1539
|
}
|
|
2021
1540
|
});
|
|
2022
1541
|
}); };
|
|
@@ -2028,24 +1547,23 @@ export var deserializeAws_restJson1DeleteBranchCommand = function (output, conte
|
|
|
2028
1547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2029
1548
|
return [2, deserializeAws_restJson1DeleteBranchCommandError(output, context)];
|
|
2030
1549
|
}
|
|
2031
|
-
contents = {
|
|
1550
|
+
contents = map({
|
|
2032
1551
|
$metadata: deserializeMetadata(output),
|
|
2033
|
-
|
|
2034
|
-
};
|
|
1552
|
+
});
|
|
2035
1553
|
_a = __expectNonNull;
|
|
2036
1554
|
_b = __expectObject;
|
|
2037
1555
|
return [4, parseBody(output.body, context)];
|
|
2038
1556
|
case 1:
|
|
2039
1557
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2040
|
-
if (data.branch
|
|
1558
|
+
if (data.branch != null) {
|
|
2041
1559
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
2042
1560
|
}
|
|
2043
|
-
return [2,
|
|
1561
|
+
return [2, contents];
|
|
2044
1562
|
}
|
|
2045
1563
|
});
|
|
2046
1564
|
}); };
|
|
2047
1565
|
var deserializeAws_restJson1DeleteBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2048
|
-
var parsedOutput, _a,
|
|
1566
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2049
1567
|
var _c;
|
|
2050
1568
|
return __generator(this, function (_d) {
|
|
2051
1569
|
switch (_d.label) {
|
|
@@ -2082,14 +1600,14 @@ var deserializeAws_restJson1DeleteBranchCommandError = function (output, context
|
|
|
2082
1600
|
case 11: throw _d.sent();
|
|
2083
1601
|
case 12:
|
|
2084
1602
|
parsedBody = parsedOutput.body;
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
$metadata: $metadata,
|
|
1603
|
+
throwDefaultError({
|
|
1604
|
+
output: output,
|
|
1605
|
+
parsedBody: parsedBody,
|
|
1606
|
+
exceptionCtor: __BaseException,
|
|
1607
|
+
errorCode: errorCode,
|
|
2091
1608
|
});
|
|
2092
|
-
|
|
1609
|
+
_d.label = 13;
|
|
1610
|
+
case 13: return [2];
|
|
2093
1611
|
}
|
|
2094
1612
|
});
|
|
2095
1613
|
}); };
|
|
@@ -2101,24 +1619,23 @@ export var deserializeAws_restJson1DeleteDomainAssociationCommand = function (ou
|
|
|
2101
1619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2102
1620
|
return [2, deserializeAws_restJson1DeleteDomainAssociationCommandError(output, context)];
|
|
2103
1621
|
}
|
|
2104
|
-
contents = {
|
|
1622
|
+
contents = map({
|
|
2105
1623
|
$metadata: deserializeMetadata(output),
|
|
2106
|
-
|
|
2107
|
-
};
|
|
1624
|
+
});
|
|
2108
1625
|
_a = __expectNonNull;
|
|
2109
1626
|
_b = __expectObject;
|
|
2110
1627
|
return [4, parseBody(output.body, context)];
|
|
2111
1628
|
case 1:
|
|
2112
1629
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2113
|
-
if (data.domainAssociation
|
|
1630
|
+
if (data.domainAssociation != null) {
|
|
2114
1631
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
2115
1632
|
}
|
|
2116
|
-
return [2,
|
|
1633
|
+
return [2, contents];
|
|
2117
1634
|
}
|
|
2118
1635
|
});
|
|
2119
1636
|
}); };
|
|
2120
1637
|
var deserializeAws_restJson1DeleteDomainAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2121
|
-
var parsedOutput, _a,
|
|
1638
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2122
1639
|
var _c;
|
|
2123
1640
|
return __generator(this, function (_d) {
|
|
2124
1641
|
switch (_d.label) {
|
|
@@ -2155,14 +1672,14 @@ var deserializeAws_restJson1DeleteDomainAssociationCommandError = function (outp
|
|
|
2155
1672
|
case 11: throw _d.sent();
|
|
2156
1673
|
case 12:
|
|
2157
1674
|
parsedBody = parsedOutput.body;
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
$metadata: $metadata,
|
|
1675
|
+
throwDefaultError({
|
|
1676
|
+
output: output,
|
|
1677
|
+
parsedBody: parsedBody,
|
|
1678
|
+
exceptionCtor: __BaseException,
|
|
1679
|
+
errorCode: errorCode,
|
|
2164
1680
|
});
|
|
2165
|
-
|
|
1681
|
+
_d.label = 13;
|
|
1682
|
+
case 13: return [2];
|
|
2166
1683
|
}
|
|
2167
1684
|
});
|
|
2168
1685
|
}); };
|
|
@@ -2174,24 +1691,23 @@ export var deserializeAws_restJson1DeleteJobCommand = function (output, context)
|
|
|
2174
1691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2175
1692
|
return [2, deserializeAws_restJson1DeleteJobCommandError(output, context)];
|
|
2176
1693
|
}
|
|
2177
|
-
contents = {
|
|
1694
|
+
contents = map({
|
|
2178
1695
|
$metadata: deserializeMetadata(output),
|
|
2179
|
-
|
|
2180
|
-
};
|
|
1696
|
+
});
|
|
2181
1697
|
_a = __expectNonNull;
|
|
2182
1698
|
_b = __expectObject;
|
|
2183
1699
|
return [4, parseBody(output.body, context)];
|
|
2184
1700
|
case 1:
|
|
2185
1701
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2186
|
-
if (data.jobSummary
|
|
1702
|
+
if (data.jobSummary != null) {
|
|
2187
1703
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
2188
1704
|
}
|
|
2189
|
-
return [2,
|
|
1705
|
+
return [2, contents];
|
|
2190
1706
|
}
|
|
2191
1707
|
});
|
|
2192
1708
|
}); };
|
|
2193
1709
|
var deserializeAws_restJson1DeleteJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2194
|
-
var parsedOutput, _a,
|
|
1710
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2195
1711
|
var _c;
|
|
2196
1712
|
return __generator(this, function (_d) {
|
|
2197
1713
|
switch (_d.label) {
|
|
@@ -2228,14 +1744,14 @@ var deserializeAws_restJson1DeleteJobCommandError = function (output, context) {
|
|
|
2228
1744
|
case 11: throw _d.sent();
|
|
2229
1745
|
case 12:
|
|
2230
1746
|
parsedBody = parsedOutput.body;
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
$metadata: $metadata,
|
|
1747
|
+
throwDefaultError({
|
|
1748
|
+
output: output,
|
|
1749
|
+
parsedBody: parsedBody,
|
|
1750
|
+
exceptionCtor: __BaseException,
|
|
1751
|
+
errorCode: errorCode,
|
|
2237
1752
|
});
|
|
2238
|
-
|
|
1753
|
+
_d.label = 13;
|
|
1754
|
+
case 13: return [2];
|
|
2239
1755
|
}
|
|
2240
1756
|
});
|
|
2241
1757
|
}); };
|
|
@@ -2247,24 +1763,23 @@ export var deserializeAws_restJson1DeleteWebhookCommand = function (output, cont
|
|
|
2247
1763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2248
1764
|
return [2, deserializeAws_restJson1DeleteWebhookCommandError(output, context)];
|
|
2249
1765
|
}
|
|
2250
|
-
contents = {
|
|
1766
|
+
contents = map({
|
|
2251
1767
|
$metadata: deserializeMetadata(output),
|
|
2252
|
-
|
|
2253
|
-
};
|
|
1768
|
+
});
|
|
2254
1769
|
_a = __expectNonNull;
|
|
2255
1770
|
_b = __expectObject;
|
|
2256
1771
|
return [4, parseBody(output.body, context)];
|
|
2257
1772
|
case 1:
|
|
2258
1773
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2259
|
-
if (data.webhook
|
|
1774
|
+
if (data.webhook != null) {
|
|
2260
1775
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
2261
1776
|
}
|
|
2262
|
-
return [2,
|
|
1777
|
+
return [2, contents];
|
|
2263
1778
|
}
|
|
2264
1779
|
});
|
|
2265
1780
|
}); };
|
|
2266
1781
|
var deserializeAws_restJson1DeleteWebhookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2267
|
-
var parsedOutput, _a,
|
|
1782
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2268
1783
|
var _c;
|
|
2269
1784
|
return __generator(this, function (_d) {
|
|
2270
1785
|
switch (_d.label) {
|
|
@@ -2301,14 +1816,14 @@ var deserializeAws_restJson1DeleteWebhookCommandError = function (output, contex
|
|
|
2301
1816
|
case 11: throw _d.sent();
|
|
2302
1817
|
case 12:
|
|
2303
1818
|
parsedBody = parsedOutput.body;
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
$metadata: $metadata,
|
|
1819
|
+
throwDefaultError({
|
|
1820
|
+
output: output,
|
|
1821
|
+
parsedBody: parsedBody,
|
|
1822
|
+
exceptionCtor: __BaseException,
|
|
1823
|
+
errorCode: errorCode,
|
|
2310
1824
|
});
|
|
2311
|
-
|
|
1825
|
+
_d.label = 13;
|
|
1826
|
+
case 13: return [2];
|
|
2312
1827
|
}
|
|
2313
1828
|
});
|
|
2314
1829
|
}); };
|
|
@@ -2320,24 +1835,23 @@ export var deserializeAws_restJson1GenerateAccessLogsCommand = function (output,
|
|
|
2320
1835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2321
1836
|
return [2, deserializeAws_restJson1GenerateAccessLogsCommandError(output, context)];
|
|
2322
1837
|
}
|
|
2323
|
-
contents = {
|
|
1838
|
+
contents = map({
|
|
2324
1839
|
$metadata: deserializeMetadata(output),
|
|
2325
|
-
|
|
2326
|
-
};
|
|
1840
|
+
});
|
|
2327
1841
|
_a = __expectNonNull;
|
|
2328
1842
|
_b = __expectObject;
|
|
2329
1843
|
return [4, parseBody(output.body, context)];
|
|
2330
1844
|
case 1:
|
|
2331
1845
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2332
|
-
if (data.logUrl
|
|
1846
|
+
if (data.logUrl != null) {
|
|
2333
1847
|
contents.logUrl = __expectString(data.logUrl);
|
|
2334
1848
|
}
|
|
2335
|
-
return [2,
|
|
1849
|
+
return [2, contents];
|
|
2336
1850
|
}
|
|
2337
1851
|
});
|
|
2338
1852
|
}); };
|
|
2339
1853
|
var deserializeAws_restJson1GenerateAccessLogsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2340
|
-
var parsedOutput, _a,
|
|
1854
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2341
1855
|
var _c;
|
|
2342
1856
|
return __generator(this, function (_d) {
|
|
2343
1857
|
switch (_d.label) {
|
|
@@ -2370,14 +1884,14 @@ var deserializeAws_restJson1GenerateAccessLogsCommandError = function (output, c
|
|
|
2370
1884
|
case 9: throw _d.sent();
|
|
2371
1885
|
case 10:
|
|
2372
1886
|
parsedBody = parsedOutput.body;
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
$metadata: $metadata,
|
|
1887
|
+
throwDefaultError({
|
|
1888
|
+
output: output,
|
|
1889
|
+
parsedBody: parsedBody,
|
|
1890
|
+
exceptionCtor: __BaseException,
|
|
1891
|
+
errorCode: errorCode,
|
|
2379
1892
|
});
|
|
2380
|
-
|
|
1893
|
+
_d.label = 11;
|
|
1894
|
+
case 11: return [2];
|
|
2381
1895
|
}
|
|
2382
1896
|
});
|
|
2383
1897
|
}); };
|
|
@@ -2389,24 +1903,23 @@ export var deserializeAws_restJson1GetAppCommand = function (output, context) {
|
|
|
2389
1903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2390
1904
|
return [2, deserializeAws_restJson1GetAppCommandError(output, context)];
|
|
2391
1905
|
}
|
|
2392
|
-
contents = {
|
|
1906
|
+
contents = map({
|
|
2393
1907
|
$metadata: deserializeMetadata(output),
|
|
2394
|
-
|
|
2395
|
-
};
|
|
1908
|
+
});
|
|
2396
1909
|
_a = __expectNonNull;
|
|
2397
1910
|
_b = __expectObject;
|
|
2398
1911
|
return [4, parseBody(output.body, context)];
|
|
2399
1912
|
case 1:
|
|
2400
1913
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2401
|
-
if (data.app
|
|
1914
|
+
if (data.app != null) {
|
|
2402
1915
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
2403
1916
|
}
|
|
2404
|
-
return [2,
|
|
1917
|
+
return [2, contents];
|
|
2405
1918
|
}
|
|
2406
1919
|
});
|
|
2407
1920
|
}); };
|
|
2408
1921
|
var deserializeAws_restJson1GetAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2409
|
-
var parsedOutput, _a,
|
|
1922
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2410
1923
|
var _c;
|
|
2411
1924
|
return __generator(this, function (_d) {
|
|
2412
1925
|
switch (_d.label) {
|
|
@@ -2439,14 +1952,14 @@ var deserializeAws_restJson1GetAppCommandError = function (output, context) { re
|
|
|
2439
1952
|
case 9: throw _d.sent();
|
|
2440
1953
|
case 10:
|
|
2441
1954
|
parsedBody = parsedOutput.body;
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
$metadata: $metadata,
|
|
1955
|
+
throwDefaultError({
|
|
1956
|
+
output: output,
|
|
1957
|
+
parsedBody: parsedBody,
|
|
1958
|
+
exceptionCtor: __BaseException,
|
|
1959
|
+
errorCode: errorCode,
|
|
2448
1960
|
});
|
|
2449
|
-
|
|
1961
|
+
_d.label = 11;
|
|
1962
|
+
case 11: return [2];
|
|
2450
1963
|
}
|
|
2451
1964
|
});
|
|
2452
1965
|
}); };
|
|
@@ -2458,28 +1971,26 @@ export var deserializeAws_restJson1GetArtifactUrlCommand = function (output, con
|
|
|
2458
1971
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2459
1972
|
return [2, deserializeAws_restJson1GetArtifactUrlCommandError(output, context)];
|
|
2460
1973
|
}
|
|
2461
|
-
contents = {
|
|
1974
|
+
contents = map({
|
|
2462
1975
|
$metadata: deserializeMetadata(output),
|
|
2463
|
-
|
|
2464
|
-
artifactUrl: undefined,
|
|
2465
|
-
};
|
|
1976
|
+
});
|
|
2466
1977
|
_a = __expectNonNull;
|
|
2467
1978
|
_b = __expectObject;
|
|
2468
1979
|
return [4, parseBody(output.body, context)];
|
|
2469
1980
|
case 1:
|
|
2470
1981
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2471
|
-
if (data.artifactId
|
|
1982
|
+
if (data.artifactId != null) {
|
|
2472
1983
|
contents.artifactId = __expectString(data.artifactId);
|
|
2473
1984
|
}
|
|
2474
|
-
if (data.artifactUrl
|
|
1985
|
+
if (data.artifactUrl != null) {
|
|
2475
1986
|
contents.artifactUrl = __expectString(data.artifactUrl);
|
|
2476
1987
|
}
|
|
2477
|
-
return [2,
|
|
1988
|
+
return [2, contents];
|
|
2478
1989
|
}
|
|
2479
1990
|
});
|
|
2480
1991
|
}); };
|
|
2481
1992
|
var deserializeAws_restJson1GetArtifactUrlCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2482
|
-
var parsedOutput, _a,
|
|
1993
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2483
1994
|
var _c;
|
|
2484
1995
|
return __generator(this, function (_d) {
|
|
2485
1996
|
switch (_d.label) {
|
|
@@ -2516,14 +2027,14 @@ var deserializeAws_restJson1GetArtifactUrlCommandError = function (output, conte
|
|
|
2516
2027
|
case 11: throw _d.sent();
|
|
2517
2028
|
case 12:
|
|
2518
2029
|
parsedBody = parsedOutput.body;
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
$metadata: $metadata,
|
|
2030
|
+
throwDefaultError({
|
|
2031
|
+
output: output,
|
|
2032
|
+
parsedBody: parsedBody,
|
|
2033
|
+
exceptionCtor: __BaseException,
|
|
2034
|
+
errorCode: errorCode,
|
|
2525
2035
|
});
|
|
2526
|
-
|
|
2036
|
+
_d.label = 13;
|
|
2037
|
+
case 13: return [2];
|
|
2527
2038
|
}
|
|
2528
2039
|
});
|
|
2529
2040
|
}); };
|
|
@@ -2535,24 +2046,23 @@ export var deserializeAws_restJson1GetBackendEnvironmentCommand = function (outp
|
|
|
2535
2046
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2536
2047
|
return [2, deserializeAws_restJson1GetBackendEnvironmentCommandError(output, context)];
|
|
2537
2048
|
}
|
|
2538
|
-
contents = {
|
|
2049
|
+
contents = map({
|
|
2539
2050
|
$metadata: deserializeMetadata(output),
|
|
2540
|
-
|
|
2541
|
-
};
|
|
2051
|
+
});
|
|
2542
2052
|
_a = __expectNonNull;
|
|
2543
2053
|
_b = __expectObject;
|
|
2544
2054
|
return [4, parseBody(output.body, context)];
|
|
2545
2055
|
case 1:
|
|
2546
2056
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2547
|
-
if (data.backendEnvironment
|
|
2057
|
+
if (data.backendEnvironment != null) {
|
|
2548
2058
|
contents.backendEnvironment = deserializeAws_restJson1BackendEnvironment(data.backendEnvironment, context);
|
|
2549
2059
|
}
|
|
2550
|
-
return [2,
|
|
2060
|
+
return [2, contents];
|
|
2551
2061
|
}
|
|
2552
2062
|
});
|
|
2553
2063
|
}); };
|
|
2554
2064
|
var deserializeAws_restJson1GetBackendEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2555
|
-
var parsedOutput, _a,
|
|
2065
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2556
2066
|
var _c;
|
|
2557
2067
|
return __generator(this, function (_d) {
|
|
2558
2068
|
switch (_d.label) {
|
|
@@ -2585,14 +2095,14 @@ var deserializeAws_restJson1GetBackendEnvironmentCommandError = function (output
|
|
|
2585
2095
|
case 9: throw _d.sent();
|
|
2586
2096
|
case 10:
|
|
2587
2097
|
parsedBody = parsedOutput.body;
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
$metadata: $metadata,
|
|
2098
|
+
throwDefaultError({
|
|
2099
|
+
output: output,
|
|
2100
|
+
parsedBody: parsedBody,
|
|
2101
|
+
exceptionCtor: __BaseException,
|
|
2102
|
+
errorCode: errorCode,
|
|
2594
2103
|
});
|
|
2595
|
-
|
|
2104
|
+
_d.label = 11;
|
|
2105
|
+
case 11: return [2];
|
|
2596
2106
|
}
|
|
2597
2107
|
});
|
|
2598
2108
|
}); };
|
|
@@ -2604,24 +2114,23 @@ export var deserializeAws_restJson1GetBranchCommand = function (output, context)
|
|
|
2604
2114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2605
2115
|
return [2, deserializeAws_restJson1GetBranchCommandError(output, context)];
|
|
2606
2116
|
}
|
|
2607
|
-
contents = {
|
|
2117
|
+
contents = map({
|
|
2608
2118
|
$metadata: deserializeMetadata(output),
|
|
2609
|
-
|
|
2610
|
-
};
|
|
2119
|
+
});
|
|
2611
2120
|
_a = __expectNonNull;
|
|
2612
2121
|
_b = __expectObject;
|
|
2613
2122
|
return [4, parseBody(output.body, context)];
|
|
2614
2123
|
case 1:
|
|
2615
2124
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2616
|
-
if (data.branch
|
|
2125
|
+
if (data.branch != null) {
|
|
2617
2126
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
2618
2127
|
}
|
|
2619
|
-
return [2,
|
|
2128
|
+
return [2, contents];
|
|
2620
2129
|
}
|
|
2621
2130
|
});
|
|
2622
2131
|
}); };
|
|
2623
2132
|
var deserializeAws_restJson1GetBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2624
|
-
var parsedOutput, _a,
|
|
2133
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2625
2134
|
var _c;
|
|
2626
2135
|
return __generator(this, function (_d) {
|
|
2627
2136
|
switch (_d.label) {
|
|
@@ -2654,14 +2163,14 @@ var deserializeAws_restJson1GetBranchCommandError = function (output, context) {
|
|
|
2654
2163
|
case 9: throw _d.sent();
|
|
2655
2164
|
case 10:
|
|
2656
2165
|
parsedBody = parsedOutput.body;
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
$metadata: $metadata,
|
|
2166
|
+
throwDefaultError({
|
|
2167
|
+
output: output,
|
|
2168
|
+
parsedBody: parsedBody,
|
|
2169
|
+
exceptionCtor: __BaseException,
|
|
2170
|
+
errorCode: errorCode,
|
|
2663
2171
|
});
|
|
2664
|
-
|
|
2172
|
+
_d.label = 11;
|
|
2173
|
+
case 11: return [2];
|
|
2665
2174
|
}
|
|
2666
2175
|
});
|
|
2667
2176
|
}); };
|
|
@@ -2673,24 +2182,23 @@ export var deserializeAws_restJson1GetDomainAssociationCommand = function (outpu
|
|
|
2673
2182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2674
2183
|
return [2, deserializeAws_restJson1GetDomainAssociationCommandError(output, context)];
|
|
2675
2184
|
}
|
|
2676
|
-
contents = {
|
|
2185
|
+
contents = map({
|
|
2677
2186
|
$metadata: deserializeMetadata(output),
|
|
2678
|
-
|
|
2679
|
-
};
|
|
2187
|
+
});
|
|
2680
2188
|
_a = __expectNonNull;
|
|
2681
2189
|
_b = __expectObject;
|
|
2682
2190
|
return [4, parseBody(output.body, context)];
|
|
2683
2191
|
case 1:
|
|
2684
2192
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2685
|
-
if (data.domainAssociation
|
|
2193
|
+
if (data.domainAssociation != null) {
|
|
2686
2194
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
2687
2195
|
}
|
|
2688
|
-
return [2,
|
|
2196
|
+
return [2, contents];
|
|
2689
2197
|
}
|
|
2690
2198
|
});
|
|
2691
2199
|
}); };
|
|
2692
2200
|
var deserializeAws_restJson1GetDomainAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2693
|
-
var parsedOutput, _a,
|
|
2201
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2694
2202
|
var _c;
|
|
2695
2203
|
return __generator(this, function (_d) {
|
|
2696
2204
|
switch (_d.label) {
|
|
@@ -2723,14 +2231,14 @@ var deserializeAws_restJson1GetDomainAssociationCommandError = function (output,
|
|
|
2723
2231
|
case 9: throw _d.sent();
|
|
2724
2232
|
case 10:
|
|
2725
2233
|
parsedBody = parsedOutput.body;
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
$metadata: $metadata,
|
|
2234
|
+
throwDefaultError({
|
|
2235
|
+
output: output,
|
|
2236
|
+
parsedBody: parsedBody,
|
|
2237
|
+
exceptionCtor: __BaseException,
|
|
2238
|
+
errorCode: errorCode,
|
|
2732
2239
|
});
|
|
2733
|
-
|
|
2240
|
+
_d.label = 11;
|
|
2241
|
+
case 11: return [2];
|
|
2734
2242
|
}
|
|
2735
2243
|
});
|
|
2736
2244
|
}); };
|
|
@@ -2742,24 +2250,23 @@ export var deserializeAws_restJson1GetJobCommand = function (output, context) {
|
|
|
2742
2250
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2743
2251
|
return [2, deserializeAws_restJson1GetJobCommandError(output, context)];
|
|
2744
2252
|
}
|
|
2745
|
-
contents = {
|
|
2253
|
+
contents = map({
|
|
2746
2254
|
$metadata: deserializeMetadata(output),
|
|
2747
|
-
|
|
2748
|
-
};
|
|
2255
|
+
});
|
|
2749
2256
|
_a = __expectNonNull;
|
|
2750
2257
|
_b = __expectObject;
|
|
2751
2258
|
return [4, parseBody(output.body, context)];
|
|
2752
2259
|
case 1:
|
|
2753
2260
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2754
|
-
if (data.job
|
|
2261
|
+
if (data.job != null) {
|
|
2755
2262
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2756
2263
|
}
|
|
2757
|
-
return [2,
|
|
2264
|
+
return [2, contents];
|
|
2758
2265
|
}
|
|
2759
2266
|
});
|
|
2760
2267
|
}); };
|
|
2761
2268
|
var deserializeAws_restJson1GetJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2762
|
-
var parsedOutput, _a,
|
|
2269
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2763
2270
|
var _c;
|
|
2764
2271
|
return __generator(this, function (_d) {
|
|
2765
2272
|
switch (_d.label) {
|
|
@@ -2796,14 +2303,14 @@ var deserializeAws_restJson1GetJobCommandError = function (output, context) { re
|
|
|
2796
2303
|
case 11: throw _d.sent();
|
|
2797
2304
|
case 12:
|
|
2798
2305
|
parsedBody = parsedOutput.body;
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
$metadata: $metadata,
|
|
2306
|
+
throwDefaultError({
|
|
2307
|
+
output: output,
|
|
2308
|
+
parsedBody: parsedBody,
|
|
2309
|
+
exceptionCtor: __BaseException,
|
|
2310
|
+
errorCode: errorCode,
|
|
2805
2311
|
});
|
|
2806
|
-
|
|
2312
|
+
_d.label = 13;
|
|
2313
|
+
case 13: return [2];
|
|
2807
2314
|
}
|
|
2808
2315
|
});
|
|
2809
2316
|
}); };
|
|
@@ -2815,24 +2322,23 @@ export var deserializeAws_restJson1GetWebhookCommand = function (output, context
|
|
|
2815
2322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2816
2323
|
return [2, deserializeAws_restJson1GetWebhookCommandError(output, context)];
|
|
2817
2324
|
}
|
|
2818
|
-
contents = {
|
|
2325
|
+
contents = map({
|
|
2819
2326
|
$metadata: deserializeMetadata(output),
|
|
2820
|
-
|
|
2821
|
-
};
|
|
2327
|
+
});
|
|
2822
2328
|
_a = __expectNonNull;
|
|
2823
2329
|
_b = __expectObject;
|
|
2824
2330
|
return [4, parseBody(output.body, context)];
|
|
2825
2331
|
case 1:
|
|
2826
2332
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2827
|
-
if (data.webhook
|
|
2333
|
+
if (data.webhook != null) {
|
|
2828
2334
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
2829
2335
|
}
|
|
2830
|
-
return [2,
|
|
2336
|
+
return [2, contents];
|
|
2831
2337
|
}
|
|
2832
2338
|
});
|
|
2833
2339
|
}); };
|
|
2834
2340
|
var deserializeAws_restJson1GetWebhookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2835
|
-
var parsedOutput, _a,
|
|
2341
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2836
2342
|
var _c;
|
|
2837
2343
|
return __generator(this, function (_d) {
|
|
2838
2344
|
switch (_d.label) {
|
|
@@ -2869,14 +2375,14 @@ var deserializeAws_restJson1GetWebhookCommandError = function (output, context)
|
|
|
2869
2375
|
case 11: throw _d.sent();
|
|
2870
2376
|
case 12:
|
|
2871
2377
|
parsedBody = parsedOutput.body;
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
$metadata: $metadata,
|
|
2378
|
+
throwDefaultError({
|
|
2379
|
+
output: output,
|
|
2380
|
+
parsedBody: parsedBody,
|
|
2381
|
+
exceptionCtor: __BaseException,
|
|
2382
|
+
errorCode: errorCode,
|
|
2878
2383
|
});
|
|
2879
|
-
|
|
2384
|
+
_d.label = 13;
|
|
2385
|
+
case 13: return [2];
|
|
2880
2386
|
}
|
|
2881
2387
|
});
|
|
2882
2388
|
}); };
|
|
@@ -2888,28 +2394,26 @@ export var deserializeAws_restJson1ListAppsCommand = function (output, context)
|
|
|
2888
2394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2889
2395
|
return [2, deserializeAws_restJson1ListAppsCommandError(output, context)];
|
|
2890
2396
|
}
|
|
2891
|
-
contents = {
|
|
2397
|
+
contents = map({
|
|
2892
2398
|
$metadata: deserializeMetadata(output),
|
|
2893
|
-
|
|
2894
|
-
nextToken: undefined,
|
|
2895
|
-
};
|
|
2399
|
+
});
|
|
2896
2400
|
_a = __expectNonNull;
|
|
2897
2401
|
_b = __expectObject;
|
|
2898
2402
|
return [4, parseBody(output.body, context)];
|
|
2899
2403
|
case 1:
|
|
2900
2404
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2901
|
-
if (data.apps
|
|
2405
|
+
if (data.apps != null) {
|
|
2902
2406
|
contents.apps = deserializeAws_restJson1Apps(data.apps, context);
|
|
2903
2407
|
}
|
|
2904
|
-
if (data.nextToken
|
|
2408
|
+
if (data.nextToken != null) {
|
|
2905
2409
|
contents.nextToken = __expectString(data.nextToken);
|
|
2906
2410
|
}
|
|
2907
|
-
return [2,
|
|
2411
|
+
return [2, contents];
|
|
2908
2412
|
}
|
|
2909
2413
|
});
|
|
2910
2414
|
}); };
|
|
2911
2415
|
var deserializeAws_restJson1ListAppsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2912
|
-
var parsedOutput, _a,
|
|
2416
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2913
2417
|
var _c;
|
|
2914
2418
|
return __generator(this, function (_d) {
|
|
2915
2419
|
switch (_d.label) {
|
|
@@ -2938,14 +2442,14 @@ var deserializeAws_restJson1ListAppsCommandError = function (output, context) {
|
|
|
2938
2442
|
case 7: throw _d.sent();
|
|
2939
2443
|
case 8:
|
|
2940
2444
|
parsedBody = parsedOutput.body;
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
$metadata: $metadata,
|
|
2445
|
+
throwDefaultError({
|
|
2446
|
+
output: output,
|
|
2447
|
+
parsedBody: parsedBody,
|
|
2448
|
+
exceptionCtor: __BaseException,
|
|
2449
|
+
errorCode: errorCode,
|
|
2947
2450
|
});
|
|
2948
|
-
|
|
2451
|
+
_d.label = 9;
|
|
2452
|
+
case 9: return [2];
|
|
2949
2453
|
}
|
|
2950
2454
|
});
|
|
2951
2455
|
}); };
|
|
@@ -2957,28 +2461,26 @@ export var deserializeAws_restJson1ListArtifactsCommand = function (output, cont
|
|
|
2957
2461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2958
2462
|
return [2, deserializeAws_restJson1ListArtifactsCommandError(output, context)];
|
|
2959
2463
|
}
|
|
2960
|
-
contents = {
|
|
2464
|
+
contents = map({
|
|
2961
2465
|
$metadata: deserializeMetadata(output),
|
|
2962
|
-
|
|
2963
|
-
nextToken: undefined,
|
|
2964
|
-
};
|
|
2466
|
+
});
|
|
2965
2467
|
_a = __expectNonNull;
|
|
2966
2468
|
_b = __expectObject;
|
|
2967
2469
|
return [4, parseBody(output.body, context)];
|
|
2968
2470
|
case 1:
|
|
2969
2471
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2970
|
-
if (data.artifacts
|
|
2472
|
+
if (data.artifacts != null) {
|
|
2971
2473
|
contents.artifacts = deserializeAws_restJson1Artifacts(data.artifacts, context);
|
|
2972
2474
|
}
|
|
2973
|
-
if (data.nextToken
|
|
2475
|
+
if (data.nextToken != null) {
|
|
2974
2476
|
contents.nextToken = __expectString(data.nextToken);
|
|
2975
2477
|
}
|
|
2976
|
-
return [2,
|
|
2478
|
+
return [2, contents];
|
|
2977
2479
|
}
|
|
2978
2480
|
});
|
|
2979
2481
|
}); };
|
|
2980
2482
|
var deserializeAws_restJson1ListArtifactsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2981
|
-
var parsedOutput, _a,
|
|
2483
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2982
2484
|
var _c;
|
|
2983
2485
|
return __generator(this, function (_d) {
|
|
2984
2486
|
switch (_d.label) {
|
|
@@ -3011,14 +2513,14 @@ var deserializeAws_restJson1ListArtifactsCommandError = function (output, contex
|
|
|
3011
2513
|
case 9: throw _d.sent();
|
|
3012
2514
|
case 10:
|
|
3013
2515
|
parsedBody = parsedOutput.body;
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
$metadata: $metadata,
|
|
2516
|
+
throwDefaultError({
|
|
2517
|
+
output: output,
|
|
2518
|
+
parsedBody: parsedBody,
|
|
2519
|
+
exceptionCtor: __BaseException,
|
|
2520
|
+
errorCode: errorCode,
|
|
3020
2521
|
});
|
|
3021
|
-
|
|
2522
|
+
_d.label = 11;
|
|
2523
|
+
case 11: return [2];
|
|
3022
2524
|
}
|
|
3023
2525
|
});
|
|
3024
2526
|
}); };
|
|
@@ -3030,28 +2532,26 @@ export var deserializeAws_restJson1ListBackendEnvironmentsCommand = function (ou
|
|
|
3030
2532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3031
2533
|
return [2, deserializeAws_restJson1ListBackendEnvironmentsCommandError(output, context)];
|
|
3032
2534
|
}
|
|
3033
|
-
contents = {
|
|
2535
|
+
contents = map({
|
|
3034
2536
|
$metadata: deserializeMetadata(output),
|
|
3035
|
-
|
|
3036
|
-
nextToken: undefined,
|
|
3037
|
-
};
|
|
2537
|
+
});
|
|
3038
2538
|
_a = __expectNonNull;
|
|
3039
2539
|
_b = __expectObject;
|
|
3040
2540
|
return [4, parseBody(output.body, context)];
|
|
3041
2541
|
case 1:
|
|
3042
2542
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3043
|
-
if (data.backendEnvironments
|
|
2543
|
+
if (data.backendEnvironments != null) {
|
|
3044
2544
|
contents.backendEnvironments = deserializeAws_restJson1BackendEnvironments(data.backendEnvironments, context);
|
|
3045
2545
|
}
|
|
3046
|
-
if (data.nextToken
|
|
2546
|
+
if (data.nextToken != null) {
|
|
3047
2547
|
contents.nextToken = __expectString(data.nextToken);
|
|
3048
2548
|
}
|
|
3049
|
-
return [2,
|
|
2549
|
+
return [2, contents];
|
|
3050
2550
|
}
|
|
3051
2551
|
});
|
|
3052
2552
|
}); };
|
|
3053
2553
|
var deserializeAws_restJson1ListBackendEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3054
|
-
var parsedOutput, _a,
|
|
2554
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3055
2555
|
var _c;
|
|
3056
2556
|
return __generator(this, function (_d) {
|
|
3057
2557
|
switch (_d.label) {
|
|
@@ -3080,14 +2580,14 @@ var deserializeAws_restJson1ListBackendEnvironmentsCommandError = function (outp
|
|
|
3080
2580
|
case 7: throw _d.sent();
|
|
3081
2581
|
case 8:
|
|
3082
2582
|
parsedBody = parsedOutput.body;
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
$metadata: $metadata,
|
|
2583
|
+
throwDefaultError({
|
|
2584
|
+
output: output,
|
|
2585
|
+
parsedBody: parsedBody,
|
|
2586
|
+
exceptionCtor: __BaseException,
|
|
2587
|
+
errorCode: errorCode,
|
|
3089
2588
|
});
|
|
3090
|
-
|
|
2589
|
+
_d.label = 9;
|
|
2590
|
+
case 9: return [2];
|
|
3091
2591
|
}
|
|
3092
2592
|
});
|
|
3093
2593
|
}); };
|
|
@@ -3099,28 +2599,26 @@ export var deserializeAws_restJson1ListBranchesCommand = function (output, conte
|
|
|
3099
2599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3100
2600
|
return [2, deserializeAws_restJson1ListBranchesCommandError(output, context)];
|
|
3101
2601
|
}
|
|
3102
|
-
contents = {
|
|
2602
|
+
contents = map({
|
|
3103
2603
|
$metadata: deserializeMetadata(output),
|
|
3104
|
-
|
|
3105
|
-
nextToken: undefined,
|
|
3106
|
-
};
|
|
2604
|
+
});
|
|
3107
2605
|
_a = __expectNonNull;
|
|
3108
2606
|
_b = __expectObject;
|
|
3109
2607
|
return [4, parseBody(output.body, context)];
|
|
3110
2608
|
case 1:
|
|
3111
2609
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3112
|
-
if (data.branches
|
|
2610
|
+
if (data.branches != null) {
|
|
3113
2611
|
contents.branches = deserializeAws_restJson1Branches(data.branches, context);
|
|
3114
2612
|
}
|
|
3115
|
-
if (data.nextToken
|
|
2613
|
+
if (data.nextToken != null) {
|
|
3116
2614
|
contents.nextToken = __expectString(data.nextToken);
|
|
3117
2615
|
}
|
|
3118
|
-
return [2,
|
|
2616
|
+
return [2, contents];
|
|
3119
2617
|
}
|
|
3120
2618
|
});
|
|
3121
2619
|
}); };
|
|
3122
2620
|
var deserializeAws_restJson1ListBranchesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3123
|
-
var parsedOutput, _a,
|
|
2621
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3124
2622
|
var _c;
|
|
3125
2623
|
return __generator(this, function (_d) {
|
|
3126
2624
|
switch (_d.label) {
|
|
@@ -3149,14 +2647,14 @@ var deserializeAws_restJson1ListBranchesCommandError = function (output, context
|
|
|
3149
2647
|
case 7: throw _d.sent();
|
|
3150
2648
|
case 8:
|
|
3151
2649
|
parsedBody = parsedOutput.body;
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
$metadata: $metadata,
|
|
2650
|
+
throwDefaultError({
|
|
2651
|
+
output: output,
|
|
2652
|
+
parsedBody: parsedBody,
|
|
2653
|
+
exceptionCtor: __BaseException,
|
|
2654
|
+
errorCode: errorCode,
|
|
3158
2655
|
});
|
|
3159
|
-
|
|
2656
|
+
_d.label = 9;
|
|
2657
|
+
case 9: return [2];
|
|
3160
2658
|
}
|
|
3161
2659
|
});
|
|
3162
2660
|
}); };
|
|
@@ -3168,28 +2666,26 @@ export var deserializeAws_restJson1ListDomainAssociationsCommand = function (out
|
|
|
3168
2666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3169
2667
|
return [2, deserializeAws_restJson1ListDomainAssociationsCommandError(output, context)];
|
|
3170
2668
|
}
|
|
3171
|
-
contents = {
|
|
2669
|
+
contents = map({
|
|
3172
2670
|
$metadata: deserializeMetadata(output),
|
|
3173
|
-
|
|
3174
|
-
nextToken: undefined,
|
|
3175
|
-
};
|
|
2671
|
+
});
|
|
3176
2672
|
_a = __expectNonNull;
|
|
3177
2673
|
_b = __expectObject;
|
|
3178
2674
|
return [4, parseBody(output.body, context)];
|
|
3179
2675
|
case 1:
|
|
3180
2676
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3181
|
-
if (data.domainAssociations
|
|
2677
|
+
if (data.domainAssociations != null) {
|
|
3182
2678
|
contents.domainAssociations = deserializeAws_restJson1DomainAssociations(data.domainAssociations, context);
|
|
3183
2679
|
}
|
|
3184
|
-
if (data.nextToken
|
|
2680
|
+
if (data.nextToken != null) {
|
|
3185
2681
|
contents.nextToken = __expectString(data.nextToken);
|
|
3186
2682
|
}
|
|
3187
|
-
return [2,
|
|
2683
|
+
return [2, contents];
|
|
3188
2684
|
}
|
|
3189
2685
|
});
|
|
3190
2686
|
}); };
|
|
3191
2687
|
var deserializeAws_restJson1ListDomainAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3192
|
-
var parsedOutput, _a,
|
|
2688
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3193
2689
|
var _c;
|
|
3194
2690
|
return __generator(this, function (_d) {
|
|
3195
2691
|
switch (_d.label) {
|
|
@@ -3218,14 +2714,14 @@ var deserializeAws_restJson1ListDomainAssociationsCommandError = function (outpu
|
|
|
3218
2714
|
case 7: throw _d.sent();
|
|
3219
2715
|
case 8:
|
|
3220
2716
|
parsedBody = parsedOutput.body;
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
$metadata: $metadata,
|
|
2717
|
+
throwDefaultError({
|
|
2718
|
+
output: output,
|
|
2719
|
+
parsedBody: parsedBody,
|
|
2720
|
+
exceptionCtor: __BaseException,
|
|
2721
|
+
errorCode: errorCode,
|
|
3227
2722
|
});
|
|
3228
|
-
|
|
2723
|
+
_d.label = 9;
|
|
2724
|
+
case 9: return [2];
|
|
3229
2725
|
}
|
|
3230
2726
|
});
|
|
3231
2727
|
}); };
|
|
@@ -3237,28 +2733,26 @@ export var deserializeAws_restJson1ListJobsCommand = function (output, context)
|
|
|
3237
2733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3238
2734
|
return [2, deserializeAws_restJson1ListJobsCommandError(output, context)];
|
|
3239
2735
|
}
|
|
3240
|
-
contents = {
|
|
2736
|
+
contents = map({
|
|
3241
2737
|
$metadata: deserializeMetadata(output),
|
|
3242
|
-
|
|
3243
|
-
nextToken: undefined,
|
|
3244
|
-
};
|
|
2738
|
+
});
|
|
3245
2739
|
_a = __expectNonNull;
|
|
3246
2740
|
_b = __expectObject;
|
|
3247
2741
|
return [4, parseBody(output.body, context)];
|
|
3248
2742
|
case 1:
|
|
3249
2743
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3250
|
-
if (data.jobSummaries
|
|
2744
|
+
if (data.jobSummaries != null) {
|
|
3251
2745
|
contents.jobSummaries = deserializeAws_restJson1JobSummaries(data.jobSummaries, context);
|
|
3252
2746
|
}
|
|
3253
|
-
if (data.nextToken
|
|
2747
|
+
if (data.nextToken != null) {
|
|
3254
2748
|
contents.nextToken = __expectString(data.nextToken);
|
|
3255
2749
|
}
|
|
3256
|
-
return [2,
|
|
2750
|
+
return [2, contents];
|
|
3257
2751
|
}
|
|
3258
2752
|
});
|
|
3259
2753
|
}); };
|
|
3260
2754
|
var deserializeAws_restJson1ListJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3261
|
-
var parsedOutput, _a,
|
|
2755
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3262
2756
|
var _c;
|
|
3263
2757
|
return __generator(this, function (_d) {
|
|
3264
2758
|
switch (_d.label) {
|
|
@@ -3291,14 +2785,14 @@ var deserializeAws_restJson1ListJobsCommandError = function (output, context) {
|
|
|
3291
2785
|
case 9: throw _d.sent();
|
|
3292
2786
|
case 10:
|
|
3293
2787
|
parsedBody = parsedOutput.body;
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
$metadata: $metadata,
|
|
2788
|
+
throwDefaultError({
|
|
2789
|
+
output: output,
|
|
2790
|
+
parsedBody: parsedBody,
|
|
2791
|
+
exceptionCtor: __BaseException,
|
|
2792
|
+
errorCode: errorCode,
|
|
3300
2793
|
});
|
|
3301
|
-
|
|
2794
|
+
_d.label = 11;
|
|
2795
|
+
case 11: return [2];
|
|
3302
2796
|
}
|
|
3303
2797
|
});
|
|
3304
2798
|
}); };
|
|
@@ -3310,24 +2804,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
3310
2804
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3311
2805
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
3312
2806
|
}
|
|
3313
|
-
contents = {
|
|
2807
|
+
contents = map({
|
|
3314
2808
|
$metadata: deserializeMetadata(output),
|
|
3315
|
-
|
|
3316
|
-
};
|
|
2809
|
+
});
|
|
3317
2810
|
_a = __expectNonNull;
|
|
3318
2811
|
_b = __expectObject;
|
|
3319
2812
|
return [4, parseBody(output.body, context)];
|
|
3320
2813
|
case 1:
|
|
3321
2814
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3322
|
-
if (data.tags
|
|
2815
|
+
if (data.tags != null) {
|
|
3323
2816
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
3324
2817
|
}
|
|
3325
|
-
return [2,
|
|
2818
|
+
return [2, contents];
|
|
3326
2819
|
}
|
|
3327
2820
|
});
|
|
3328
2821
|
}); };
|
|
3329
2822
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3330
|
-
var parsedOutput, _a,
|
|
2823
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3331
2824
|
var _c;
|
|
3332
2825
|
return __generator(this, function (_d) {
|
|
3333
2826
|
switch (_d.label) {
|
|
@@ -3356,14 +2849,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
3356
2849
|
case 7: throw _d.sent();
|
|
3357
2850
|
case 8:
|
|
3358
2851
|
parsedBody = parsedOutput.body;
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
$metadata: $metadata,
|
|
2852
|
+
throwDefaultError({
|
|
2853
|
+
output: output,
|
|
2854
|
+
parsedBody: parsedBody,
|
|
2855
|
+
exceptionCtor: __BaseException,
|
|
2856
|
+
errorCode: errorCode,
|
|
3365
2857
|
});
|
|
3366
|
-
|
|
2858
|
+
_d.label = 9;
|
|
2859
|
+
case 9: return [2];
|
|
3367
2860
|
}
|
|
3368
2861
|
});
|
|
3369
2862
|
}); };
|
|
@@ -3375,28 +2868,26 @@ export var deserializeAws_restJson1ListWebhooksCommand = function (output, conte
|
|
|
3375
2868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3376
2869
|
return [2, deserializeAws_restJson1ListWebhooksCommandError(output, context)];
|
|
3377
2870
|
}
|
|
3378
|
-
contents = {
|
|
2871
|
+
contents = map({
|
|
3379
2872
|
$metadata: deserializeMetadata(output),
|
|
3380
|
-
|
|
3381
|
-
webhooks: undefined,
|
|
3382
|
-
};
|
|
2873
|
+
});
|
|
3383
2874
|
_a = __expectNonNull;
|
|
3384
2875
|
_b = __expectObject;
|
|
3385
2876
|
return [4, parseBody(output.body, context)];
|
|
3386
2877
|
case 1:
|
|
3387
2878
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3388
|
-
if (data.nextToken
|
|
2879
|
+
if (data.nextToken != null) {
|
|
3389
2880
|
contents.nextToken = __expectString(data.nextToken);
|
|
3390
2881
|
}
|
|
3391
|
-
if (data.webhooks
|
|
2882
|
+
if (data.webhooks != null) {
|
|
3392
2883
|
contents.webhooks = deserializeAws_restJson1Webhooks(data.webhooks, context);
|
|
3393
2884
|
}
|
|
3394
|
-
return [2,
|
|
2885
|
+
return [2, contents];
|
|
3395
2886
|
}
|
|
3396
2887
|
});
|
|
3397
2888
|
}); };
|
|
3398
2889
|
var deserializeAws_restJson1ListWebhooksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3399
|
-
var parsedOutput, _a,
|
|
2890
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3400
2891
|
var _c;
|
|
3401
2892
|
return __generator(this, function (_d) {
|
|
3402
2893
|
switch (_d.label) {
|
|
@@ -3429,14 +2920,14 @@ var deserializeAws_restJson1ListWebhooksCommandError = function (output, context
|
|
|
3429
2920
|
case 9: throw _d.sent();
|
|
3430
2921
|
case 10:
|
|
3431
2922
|
parsedBody = parsedOutput.body;
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
$metadata: $metadata,
|
|
2923
|
+
throwDefaultError({
|
|
2924
|
+
output: output,
|
|
2925
|
+
parsedBody: parsedBody,
|
|
2926
|
+
exceptionCtor: __BaseException,
|
|
2927
|
+
errorCode: errorCode,
|
|
3438
2928
|
});
|
|
3439
|
-
|
|
2929
|
+
_d.label = 11;
|
|
2930
|
+
case 11: return [2];
|
|
3440
2931
|
}
|
|
3441
2932
|
});
|
|
3442
2933
|
}); };
|
|
@@ -3448,24 +2939,23 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
|
|
|
3448
2939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3449
2940
|
return [2, deserializeAws_restJson1StartDeploymentCommandError(output, context)];
|
|
3450
2941
|
}
|
|
3451
|
-
contents = {
|
|
2942
|
+
contents = map({
|
|
3452
2943
|
$metadata: deserializeMetadata(output),
|
|
3453
|
-
|
|
3454
|
-
};
|
|
2944
|
+
});
|
|
3455
2945
|
_a = __expectNonNull;
|
|
3456
2946
|
_b = __expectObject;
|
|
3457
2947
|
return [4, parseBody(output.body, context)];
|
|
3458
2948
|
case 1:
|
|
3459
2949
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3460
|
-
if (data.jobSummary
|
|
2950
|
+
if (data.jobSummary != null) {
|
|
3461
2951
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
3462
2952
|
}
|
|
3463
|
-
return [2,
|
|
2953
|
+
return [2, contents];
|
|
3464
2954
|
}
|
|
3465
2955
|
});
|
|
3466
2956
|
}); };
|
|
3467
2957
|
var deserializeAws_restJson1StartDeploymentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3468
|
-
var parsedOutput, _a,
|
|
2958
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3469
2959
|
var _c;
|
|
3470
2960
|
return __generator(this, function (_d) {
|
|
3471
2961
|
switch (_d.label) {
|
|
@@ -3502,14 +2992,14 @@ var deserializeAws_restJson1StartDeploymentCommandError = function (output, cont
|
|
|
3502
2992
|
case 11: throw _d.sent();
|
|
3503
2993
|
case 12:
|
|
3504
2994
|
parsedBody = parsedOutput.body;
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
$metadata: $metadata,
|
|
2995
|
+
throwDefaultError({
|
|
2996
|
+
output: output,
|
|
2997
|
+
parsedBody: parsedBody,
|
|
2998
|
+
exceptionCtor: __BaseException,
|
|
2999
|
+
errorCode: errorCode,
|
|
3511
3000
|
});
|
|
3512
|
-
|
|
3001
|
+
_d.label = 13;
|
|
3002
|
+
case 13: return [2];
|
|
3513
3003
|
}
|
|
3514
3004
|
});
|
|
3515
3005
|
}); };
|
|
@@ -3521,24 +3011,23 @@ export var deserializeAws_restJson1StartJobCommand = function (output, context)
|
|
|
3521
3011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3522
3012
|
return [2, deserializeAws_restJson1StartJobCommandError(output, context)];
|
|
3523
3013
|
}
|
|
3524
|
-
contents = {
|
|
3014
|
+
contents = map({
|
|
3525
3015
|
$metadata: deserializeMetadata(output),
|
|
3526
|
-
|
|
3527
|
-
};
|
|
3016
|
+
});
|
|
3528
3017
|
_a = __expectNonNull;
|
|
3529
3018
|
_b = __expectObject;
|
|
3530
3019
|
return [4, parseBody(output.body, context)];
|
|
3531
3020
|
case 1:
|
|
3532
3021
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3533
|
-
if (data.jobSummary
|
|
3022
|
+
if (data.jobSummary != null) {
|
|
3534
3023
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
3535
3024
|
}
|
|
3536
|
-
return [2,
|
|
3025
|
+
return [2, contents];
|
|
3537
3026
|
}
|
|
3538
3027
|
});
|
|
3539
3028
|
}); };
|
|
3540
3029
|
var deserializeAws_restJson1StartJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3541
|
-
var parsedOutput, _a,
|
|
3030
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3542
3031
|
var _c;
|
|
3543
3032
|
return __generator(this, function (_d) {
|
|
3544
3033
|
switch (_d.label) {
|
|
@@ -3575,14 +3064,14 @@ var deserializeAws_restJson1StartJobCommandError = function (output, context) {
|
|
|
3575
3064
|
case 11: throw _d.sent();
|
|
3576
3065
|
case 12:
|
|
3577
3066
|
parsedBody = parsedOutput.body;
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
$metadata: $metadata,
|
|
3067
|
+
throwDefaultError({
|
|
3068
|
+
output: output,
|
|
3069
|
+
parsedBody: parsedBody,
|
|
3070
|
+
exceptionCtor: __BaseException,
|
|
3071
|
+
errorCode: errorCode,
|
|
3584
3072
|
});
|
|
3585
|
-
|
|
3073
|
+
_d.label = 13;
|
|
3074
|
+
case 13: return [2];
|
|
3586
3075
|
}
|
|
3587
3076
|
});
|
|
3588
3077
|
}); };
|
|
@@ -3594,24 +3083,23 @@ export var deserializeAws_restJson1StopJobCommand = function (output, context) {
|
|
|
3594
3083
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3595
3084
|
return [2, deserializeAws_restJson1StopJobCommandError(output, context)];
|
|
3596
3085
|
}
|
|
3597
|
-
contents = {
|
|
3086
|
+
contents = map({
|
|
3598
3087
|
$metadata: deserializeMetadata(output),
|
|
3599
|
-
|
|
3600
|
-
};
|
|
3088
|
+
});
|
|
3601
3089
|
_a = __expectNonNull;
|
|
3602
3090
|
_b = __expectObject;
|
|
3603
3091
|
return [4, parseBody(output.body, context)];
|
|
3604
3092
|
case 1:
|
|
3605
3093
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3606
|
-
if (data.jobSummary
|
|
3094
|
+
if (data.jobSummary != null) {
|
|
3607
3095
|
contents.jobSummary = deserializeAws_restJson1JobSummary(data.jobSummary, context);
|
|
3608
3096
|
}
|
|
3609
|
-
return [2,
|
|
3097
|
+
return [2, contents];
|
|
3610
3098
|
}
|
|
3611
3099
|
});
|
|
3612
3100
|
}); };
|
|
3613
3101
|
var deserializeAws_restJson1StopJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3614
|
-
var parsedOutput, _a,
|
|
3102
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3615
3103
|
var _c;
|
|
3616
3104
|
return __generator(this, function (_d) {
|
|
3617
3105
|
switch (_d.label) {
|
|
@@ -3648,14 +3136,14 @@ var deserializeAws_restJson1StopJobCommandError = function (output, context) { r
|
|
|
3648
3136
|
case 11: throw _d.sent();
|
|
3649
3137
|
case 12:
|
|
3650
3138
|
parsedBody = parsedOutput.body;
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
$metadata: $metadata,
|
|
3139
|
+
throwDefaultError({
|
|
3140
|
+
output: output,
|
|
3141
|
+
parsedBody: parsedBody,
|
|
3142
|
+
exceptionCtor: __BaseException,
|
|
3143
|
+
errorCode: errorCode,
|
|
3657
3144
|
});
|
|
3658
|
-
|
|
3145
|
+
_d.label = 13;
|
|
3146
|
+
case 13: return [2];
|
|
3659
3147
|
}
|
|
3660
3148
|
});
|
|
3661
3149
|
}); };
|
|
@@ -3667,18 +3155,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
3667
3155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3668
3156
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
3669
3157
|
}
|
|
3670
|
-
contents = {
|
|
3158
|
+
contents = map({
|
|
3671
3159
|
$metadata: deserializeMetadata(output),
|
|
3672
|
-
};
|
|
3160
|
+
});
|
|
3673
3161
|
return [4, collectBody(output.body, context)];
|
|
3674
3162
|
case 1:
|
|
3675
3163
|
_a.sent();
|
|
3676
|
-
return [2,
|
|
3164
|
+
return [2, contents];
|
|
3677
3165
|
}
|
|
3678
3166
|
});
|
|
3679
3167
|
}); };
|
|
3680
3168
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3681
|
-
var parsedOutput, _a,
|
|
3169
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3682
3170
|
var _c;
|
|
3683
3171
|
return __generator(this, function (_d) {
|
|
3684
3172
|
switch (_d.label) {
|
|
@@ -3707,14 +3195,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
3707
3195
|
case 7: throw _d.sent();
|
|
3708
3196
|
case 8:
|
|
3709
3197
|
parsedBody = parsedOutput.body;
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
$metadata: $metadata,
|
|
3198
|
+
throwDefaultError({
|
|
3199
|
+
output: output,
|
|
3200
|
+
parsedBody: parsedBody,
|
|
3201
|
+
exceptionCtor: __BaseException,
|
|
3202
|
+
errorCode: errorCode,
|
|
3716
3203
|
});
|
|
3717
|
-
|
|
3204
|
+
_d.label = 9;
|
|
3205
|
+
case 9: return [2];
|
|
3718
3206
|
}
|
|
3719
3207
|
});
|
|
3720
3208
|
}); };
|
|
@@ -3726,18 +3214,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3726
3214
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3727
3215
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
3728
3216
|
}
|
|
3729
|
-
contents = {
|
|
3217
|
+
contents = map({
|
|
3730
3218
|
$metadata: deserializeMetadata(output),
|
|
3731
|
-
};
|
|
3219
|
+
});
|
|
3732
3220
|
return [4, collectBody(output.body, context)];
|
|
3733
3221
|
case 1:
|
|
3734
3222
|
_a.sent();
|
|
3735
|
-
return [2,
|
|
3223
|
+
return [2, contents];
|
|
3736
3224
|
}
|
|
3737
3225
|
});
|
|
3738
3226
|
}); };
|
|
3739
3227
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3740
|
-
var parsedOutput, _a,
|
|
3228
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3741
3229
|
var _c;
|
|
3742
3230
|
return __generator(this, function (_d) {
|
|
3743
3231
|
switch (_d.label) {
|
|
@@ -3766,14 +3254,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3766
3254
|
case 7: throw _d.sent();
|
|
3767
3255
|
case 8:
|
|
3768
3256
|
parsedBody = parsedOutput.body;
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
$metadata: $metadata,
|
|
3257
|
+
throwDefaultError({
|
|
3258
|
+
output: output,
|
|
3259
|
+
parsedBody: parsedBody,
|
|
3260
|
+
exceptionCtor: __BaseException,
|
|
3261
|
+
errorCode: errorCode,
|
|
3775
3262
|
});
|
|
3776
|
-
|
|
3263
|
+
_d.label = 9;
|
|
3264
|
+
case 9: return [2];
|
|
3777
3265
|
}
|
|
3778
3266
|
});
|
|
3779
3267
|
}); };
|
|
@@ -3785,24 +3273,23 @@ export var deserializeAws_restJson1UpdateAppCommand = function (output, context)
|
|
|
3785
3273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3786
3274
|
return [2, deserializeAws_restJson1UpdateAppCommandError(output, context)];
|
|
3787
3275
|
}
|
|
3788
|
-
contents = {
|
|
3276
|
+
contents = map({
|
|
3789
3277
|
$metadata: deserializeMetadata(output),
|
|
3790
|
-
|
|
3791
|
-
};
|
|
3278
|
+
});
|
|
3792
3279
|
_a = __expectNonNull;
|
|
3793
3280
|
_b = __expectObject;
|
|
3794
3281
|
return [4, parseBody(output.body, context)];
|
|
3795
3282
|
case 1:
|
|
3796
3283
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3797
|
-
if (data.app
|
|
3284
|
+
if (data.app != null) {
|
|
3798
3285
|
contents.app = deserializeAws_restJson1App(data.app, context);
|
|
3799
3286
|
}
|
|
3800
|
-
return [2,
|
|
3287
|
+
return [2, contents];
|
|
3801
3288
|
}
|
|
3802
3289
|
});
|
|
3803
3290
|
}); };
|
|
3804
3291
|
var deserializeAws_restJson1UpdateAppCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3805
|
-
var parsedOutput, _a,
|
|
3292
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3806
3293
|
var _c;
|
|
3807
3294
|
return __generator(this, function (_d) {
|
|
3808
3295
|
switch (_d.label) {
|
|
@@ -3835,14 +3322,14 @@ var deserializeAws_restJson1UpdateAppCommandError = function (output, context) {
|
|
|
3835
3322
|
case 9: throw _d.sent();
|
|
3836
3323
|
case 10:
|
|
3837
3324
|
parsedBody = parsedOutput.body;
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
$metadata: $metadata,
|
|
3325
|
+
throwDefaultError({
|
|
3326
|
+
output: output,
|
|
3327
|
+
parsedBody: parsedBody,
|
|
3328
|
+
exceptionCtor: __BaseException,
|
|
3329
|
+
errorCode: errorCode,
|
|
3844
3330
|
});
|
|
3845
|
-
|
|
3331
|
+
_d.label = 11;
|
|
3332
|
+
case 11: return [2];
|
|
3846
3333
|
}
|
|
3847
3334
|
});
|
|
3848
3335
|
}); };
|
|
@@ -3854,24 +3341,23 @@ export var deserializeAws_restJson1UpdateBranchCommand = function (output, conte
|
|
|
3854
3341
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3855
3342
|
return [2, deserializeAws_restJson1UpdateBranchCommandError(output, context)];
|
|
3856
3343
|
}
|
|
3857
|
-
contents = {
|
|
3344
|
+
contents = map({
|
|
3858
3345
|
$metadata: deserializeMetadata(output),
|
|
3859
|
-
|
|
3860
|
-
};
|
|
3346
|
+
});
|
|
3861
3347
|
_a = __expectNonNull;
|
|
3862
3348
|
_b = __expectObject;
|
|
3863
3349
|
return [4, parseBody(output.body, context)];
|
|
3864
3350
|
case 1:
|
|
3865
3351
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3866
|
-
if (data.branch
|
|
3352
|
+
if (data.branch != null) {
|
|
3867
3353
|
contents.branch = deserializeAws_restJson1Branch(data.branch, context);
|
|
3868
3354
|
}
|
|
3869
|
-
return [2,
|
|
3355
|
+
return [2, contents];
|
|
3870
3356
|
}
|
|
3871
3357
|
});
|
|
3872
3358
|
}); };
|
|
3873
3359
|
var deserializeAws_restJson1UpdateBranchCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3874
|
-
var parsedOutput, _a,
|
|
3360
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3875
3361
|
var _c;
|
|
3876
3362
|
return __generator(this, function (_d) {
|
|
3877
3363
|
switch (_d.label) {
|
|
@@ -3908,14 +3394,14 @@ var deserializeAws_restJson1UpdateBranchCommandError = function (output, context
|
|
|
3908
3394
|
case 11: throw _d.sent();
|
|
3909
3395
|
case 12:
|
|
3910
3396
|
parsedBody = parsedOutput.body;
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
$metadata: $metadata,
|
|
3397
|
+
throwDefaultError({
|
|
3398
|
+
output: output,
|
|
3399
|
+
parsedBody: parsedBody,
|
|
3400
|
+
exceptionCtor: __BaseException,
|
|
3401
|
+
errorCode: errorCode,
|
|
3917
3402
|
});
|
|
3918
|
-
|
|
3403
|
+
_d.label = 13;
|
|
3404
|
+
case 13: return [2];
|
|
3919
3405
|
}
|
|
3920
3406
|
});
|
|
3921
3407
|
}); };
|
|
@@ -3927,24 +3413,23 @@ export var deserializeAws_restJson1UpdateDomainAssociationCommand = function (ou
|
|
|
3927
3413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3928
3414
|
return [2, deserializeAws_restJson1UpdateDomainAssociationCommandError(output, context)];
|
|
3929
3415
|
}
|
|
3930
|
-
contents = {
|
|
3416
|
+
contents = map({
|
|
3931
3417
|
$metadata: deserializeMetadata(output),
|
|
3932
|
-
|
|
3933
|
-
};
|
|
3418
|
+
});
|
|
3934
3419
|
_a = __expectNonNull;
|
|
3935
3420
|
_b = __expectObject;
|
|
3936
3421
|
return [4, parseBody(output.body, context)];
|
|
3937
3422
|
case 1:
|
|
3938
3423
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3939
|
-
if (data.domainAssociation
|
|
3424
|
+
if (data.domainAssociation != null) {
|
|
3940
3425
|
contents.domainAssociation = deserializeAws_restJson1DomainAssociation(data.domainAssociation, context);
|
|
3941
3426
|
}
|
|
3942
|
-
return [2,
|
|
3427
|
+
return [2, contents];
|
|
3943
3428
|
}
|
|
3944
3429
|
});
|
|
3945
3430
|
}); };
|
|
3946
3431
|
var deserializeAws_restJson1UpdateDomainAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3947
|
-
var parsedOutput, _a,
|
|
3432
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3948
3433
|
var _c;
|
|
3949
3434
|
return __generator(this, function (_d) {
|
|
3950
3435
|
switch (_d.label) {
|
|
@@ -3981,14 +3466,14 @@ var deserializeAws_restJson1UpdateDomainAssociationCommandError = function (outp
|
|
|
3981
3466
|
case 11: throw _d.sent();
|
|
3982
3467
|
case 12:
|
|
3983
3468
|
parsedBody = parsedOutput.body;
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
$metadata: $metadata,
|
|
3469
|
+
throwDefaultError({
|
|
3470
|
+
output: output,
|
|
3471
|
+
parsedBody: parsedBody,
|
|
3472
|
+
exceptionCtor: __BaseException,
|
|
3473
|
+
errorCode: errorCode,
|
|
3990
3474
|
});
|
|
3991
|
-
|
|
3475
|
+
_d.label = 13;
|
|
3476
|
+
case 13: return [2];
|
|
3992
3477
|
}
|
|
3993
3478
|
});
|
|
3994
3479
|
}); };
|
|
@@ -4000,24 +3485,23 @@ export var deserializeAws_restJson1UpdateWebhookCommand = function (output, cont
|
|
|
4000
3485
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4001
3486
|
return [2, deserializeAws_restJson1UpdateWebhookCommandError(output, context)];
|
|
4002
3487
|
}
|
|
4003
|
-
contents = {
|
|
3488
|
+
contents = map({
|
|
4004
3489
|
$metadata: deserializeMetadata(output),
|
|
4005
|
-
|
|
4006
|
-
};
|
|
3490
|
+
});
|
|
4007
3491
|
_a = __expectNonNull;
|
|
4008
3492
|
_b = __expectObject;
|
|
4009
3493
|
return [4, parseBody(output.body, context)];
|
|
4010
3494
|
case 1:
|
|
4011
3495
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4012
|
-
if (data.webhook
|
|
3496
|
+
if (data.webhook != null) {
|
|
4013
3497
|
contents.webhook = deserializeAws_restJson1Webhook(data.webhook, context);
|
|
4014
3498
|
}
|
|
4015
|
-
return [2,
|
|
3499
|
+
return [2, contents];
|
|
4016
3500
|
}
|
|
4017
3501
|
});
|
|
4018
3502
|
}); };
|
|
4019
3503
|
var deserializeAws_restJson1UpdateWebhookCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4020
|
-
var parsedOutput, _a,
|
|
3504
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4021
3505
|
var _c;
|
|
4022
3506
|
return __generator(this, function (_d) {
|
|
4023
3507
|
switch (_d.label) {
|
|
@@ -4054,23 +3538,24 @@ var deserializeAws_restJson1UpdateWebhookCommandError = function (output, contex
|
|
|
4054
3538
|
case 11: throw _d.sent();
|
|
4055
3539
|
case 12:
|
|
4056
3540
|
parsedBody = parsedOutput.body;
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
$metadata: $metadata,
|
|
3541
|
+
throwDefaultError({
|
|
3542
|
+
output: output,
|
|
3543
|
+
parsedBody: parsedBody,
|
|
3544
|
+
exceptionCtor: __BaseException,
|
|
3545
|
+
errorCode: errorCode,
|
|
4063
3546
|
});
|
|
4064
|
-
|
|
3547
|
+
_d.label = 13;
|
|
3548
|
+
case 13: return [2];
|
|
4065
3549
|
}
|
|
4066
3550
|
});
|
|
4067
3551
|
}); };
|
|
3552
|
+
var map = __map;
|
|
4068
3553
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4069
3554
|
var contents, data, exception;
|
|
4070
3555
|
return __generator(this, function (_a) {
|
|
4071
|
-
contents = {};
|
|
3556
|
+
contents = map({});
|
|
4072
3557
|
data = parsedOutput.body;
|
|
4073
|
-
if (data.message
|
|
3558
|
+
if (data.message != null) {
|
|
4074
3559
|
contents.message = __expectString(data.message);
|
|
4075
3560
|
}
|
|
4076
3561
|
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4080,9 +3565,9 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
4080
3565
|
var deserializeAws_restJson1DependentServiceFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4081
3566
|
var contents, data, exception;
|
|
4082
3567
|
return __generator(this, function (_a) {
|
|
4083
|
-
contents = {};
|
|
3568
|
+
contents = map({});
|
|
4084
3569
|
data = parsedOutput.body;
|
|
4085
|
-
if (data.message
|
|
3570
|
+
if (data.message != null) {
|
|
4086
3571
|
contents.message = __expectString(data.message);
|
|
4087
3572
|
}
|
|
4088
3573
|
exception = new DependentServiceFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4092,9 +3577,9 @@ var deserializeAws_restJson1DependentServiceFailureExceptionResponse = function
|
|
|
4092
3577
|
var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4093
3578
|
var contents, data, exception;
|
|
4094
3579
|
return __generator(this, function (_a) {
|
|
4095
|
-
contents = {};
|
|
3580
|
+
contents = map({});
|
|
4096
3581
|
data = parsedOutput.body;
|
|
4097
|
-
if (data.message
|
|
3582
|
+
if (data.message != null) {
|
|
4098
3583
|
contents.message = __expectString(data.message);
|
|
4099
3584
|
}
|
|
4100
3585
|
exception = new InternalFailureException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4104,9 +3589,9 @@ var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedO
|
|
|
4104
3589
|
var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4105
3590
|
var contents, data, exception;
|
|
4106
3591
|
return __generator(this, function (_a) {
|
|
4107
|
-
contents = {};
|
|
3592
|
+
contents = map({});
|
|
4108
3593
|
data = parsedOutput.body;
|
|
4109
|
-
if (data.message
|
|
3594
|
+
if (data.message != null) {
|
|
4110
3595
|
contents.message = __expectString(data.message);
|
|
4111
3596
|
}
|
|
4112
3597
|
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4116,9 +3601,9 @@ var deserializeAws_restJson1LimitExceededExceptionResponse = function (parsedOut
|
|
|
4116
3601
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4117
3602
|
var contents, data, exception;
|
|
4118
3603
|
return __generator(this, function (_a) {
|
|
4119
|
-
contents = {};
|
|
3604
|
+
contents = map({});
|
|
4120
3605
|
data = parsedOutput.body;
|
|
4121
|
-
if (data.message
|
|
3606
|
+
if (data.message != null) {
|
|
4122
3607
|
contents.message = __expectString(data.message);
|
|
4123
3608
|
}
|
|
4124
3609
|
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4128,12 +3613,12 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
4128
3613
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4129
3614
|
var contents, data, exception;
|
|
4130
3615
|
return __generator(this, function (_a) {
|
|
4131
|
-
contents = {};
|
|
3616
|
+
contents = map({});
|
|
4132
3617
|
data = parsedOutput.body;
|
|
4133
|
-
if (data.code
|
|
3618
|
+
if (data.code != null) {
|
|
4134
3619
|
contents.code = __expectString(data.code);
|
|
4135
3620
|
}
|
|
4136
|
-
if (data.message
|
|
3621
|
+
if (data.message != null) {
|
|
4137
3622
|
contents.message = __expectString(data.message);
|
|
4138
3623
|
}
|
|
4139
3624
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4143,9 +3628,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
4143
3628
|
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4144
3629
|
var contents, data, exception;
|
|
4145
3630
|
return __generator(this, function (_a) {
|
|
4146
|
-
contents = {};
|
|
3631
|
+
contents = map({});
|
|
4147
3632
|
data = parsedOutput.body;
|
|
4148
|
-
if (data.message
|
|
3633
|
+
if (data.message != null) {
|
|
4149
3634
|
contents.message = __expectString(data.message);
|
|
4150
3635
|
}
|
|
4151
3636
|
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -4161,9 +3646,6 @@ var serializeAws_restJson1AutoBranchCreationPatterns = function (input, context)
|
|
|
4161
3646
|
return input
|
|
4162
3647
|
.filter(function (e) { return e != null; })
|
|
4163
3648
|
.map(function (entry) {
|
|
4164
|
-
if (entry === null) {
|
|
4165
|
-
return null;
|
|
4166
|
-
}
|
|
4167
3649
|
return entry;
|
|
4168
3650
|
});
|
|
4169
3651
|
};
|
|
@@ -4171,9 +3653,6 @@ var serializeAws_restJson1AutoSubDomainCreationPatterns = function (input, conte
|
|
|
4171
3653
|
return input
|
|
4172
3654
|
.filter(function (e) { return e != null; })
|
|
4173
3655
|
.map(function (entry) {
|
|
4174
|
-
if (entry === null) {
|
|
4175
|
-
return null;
|
|
4176
|
-
}
|
|
4177
3656
|
return entry;
|
|
4178
3657
|
});
|
|
4179
3658
|
};
|
|
@@ -4184,9 +3663,6 @@ var serializeAws_restJson1CustomRules = function (input, context) {
|
|
|
4184
3663
|
return input
|
|
4185
3664
|
.filter(function (e) { return e != null; })
|
|
4186
3665
|
.map(function (entry) {
|
|
4187
|
-
if (entry === null) {
|
|
4188
|
-
return null;
|
|
4189
|
-
}
|
|
4190
3666
|
return serializeAws_restJson1CustomRule(entry, context);
|
|
4191
3667
|
});
|
|
4192
3668
|
};
|
|
@@ -4217,9 +3693,6 @@ var serializeAws_restJson1SubDomainSettings = function (input, context) {
|
|
|
4217
3693
|
return input
|
|
4218
3694
|
.filter(function (e) { return e != null; })
|
|
4219
3695
|
.map(function (entry) {
|
|
4220
|
-
if (entry === null) {
|
|
4221
|
-
return null;
|
|
4222
|
-
}
|
|
4223
3696
|
return serializeAws_restJson1SubDomainSetting(entry, context);
|
|
4224
3697
|
});
|
|
4225
3698
|
};
|