@aws-sdk/client-proton 3.41.0 → 3.46.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 +47 -0
- package/README.md +46 -37
- package/dist-cjs/Proton.js +270 -0
- package/dist-cjs/commands/CreateRepositoryCommand.js +36 -0
- package/dist-cjs/commands/CreateTemplateSyncConfigCommand.js +36 -0
- package/dist-cjs/commands/DeleteRepositoryCommand.js +36 -0
- package/dist-cjs/commands/DeleteTemplateSyncConfigCommand.js +36 -0
- package/dist-cjs/commands/GetRepositoryCommand.js +36 -0
- package/dist-cjs/commands/GetRepositorySyncStatusCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateSyncConfigCommand.js +36 -0
- package/dist-cjs/commands/GetTemplateSyncStatusCommand.js +36 -0
- package/dist-cjs/commands/ListEnvironmentOutputsCommand.js +36 -0
- package/dist-cjs/commands/ListEnvironmentProvisionedResourcesCommand.js +36 -0
- package/dist-cjs/commands/ListRepositoriesCommand.js +36 -0
- package/dist-cjs/commands/ListRepositorySyncDefinitionsCommand.js +36 -0
- package/dist-cjs/commands/ListServiceInstanceOutputsCommand.js +36 -0
- package/dist-cjs/commands/ListServiceInstanceProvisionedResourcesCommand.js +36 -0
- package/dist-cjs/commands/ListServicePipelineOutputsCommand.js +36 -0
- package/dist-cjs/commands/ListServicePipelineProvisionedResourcesCommand.js +36 -0
- package/dist-cjs/commands/NotifyResourceDeploymentStatusChangeCommand.js +36 -0
- package/dist-cjs/commands/UpdateTemplateSyncConfigCommand.js +36 -0
- package/dist-cjs/commands/index.js +18 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +348 -7
- package/dist-cjs/pagination/ListEnvironmentOutputsPaginator.js +34 -0
- package/dist-cjs/pagination/ListEnvironmentProvisionedResourcesPaginator.js +34 -0
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +35 -0
- package/dist-cjs/pagination/ListRepositorySyncDefinitionsPaginator.js +34 -0
- package/dist-cjs/pagination/ListServiceInstanceOutputsPaginator.js +34 -0
- package/dist-cjs/pagination/ListServiceInstanceProvisionedResourcesPaginator.js +34 -0
- package/dist-cjs/pagination/ListServicePipelineOutputsPaginator.js +34 -0
- package/dist-cjs/pagination/ListServicePipelineProvisionedResourcesPaginator.js +34 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2364 -220
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/Proton.js +270 -0
- package/dist-es/commands/CreateRepositoryCommand.js +39 -0
- package/dist-es/commands/CreateTemplateSyncConfigCommand.js +39 -0
- package/dist-es/commands/DeleteRepositoryCommand.js +39 -0
- package/dist-es/commands/DeleteTemplateSyncConfigCommand.js +39 -0
- package/dist-es/commands/GetRepositoryCommand.js +39 -0
- package/dist-es/commands/GetRepositorySyncStatusCommand.js +39 -0
- package/dist-es/commands/GetTemplateSyncConfigCommand.js +39 -0
- package/dist-es/commands/GetTemplateSyncStatusCommand.js +39 -0
- package/dist-es/commands/ListEnvironmentOutputsCommand.js +39 -0
- package/dist-es/commands/ListEnvironmentProvisionedResourcesCommand.js +39 -0
- package/dist-es/commands/ListRepositoriesCommand.js +39 -0
- package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +39 -0
- package/dist-es/commands/ListServiceInstanceOutputsCommand.js +39 -0
- package/dist-es/commands/ListServiceInstanceProvisionedResourcesCommand.js +39 -0
- package/dist-es/commands/ListServicePipelineOutputsCommand.js +39 -0
- package/dist-es/commands/ListServicePipelineProvisionedResourcesCommand.js +39 -0
- package/dist-es/commands/NotifyResourceDeploymentStatusChangeCommand.js +39 -0
- package/dist-es/commands/UpdateTemplateSyncConfigCommand.js +39 -0
- package/dist-es/commands/index.js +18 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +241 -4
- package/dist-es/pagination/ListEnvironmentOutputsPaginator.js +73 -0
- package/dist-es/pagination/ListEnvironmentProvisionedResourcesPaginator.js +73 -0
- package/dist-es/pagination/ListRepositoriesPaginator.js +74 -0
- package/dist-es/pagination/ListRepositorySyncDefinitionsPaginator.js +73 -0
- package/dist-es/pagination/ListServiceInstanceOutputsPaginator.js +73 -0
- package/dist-es/pagination/ListServiceInstanceProvisionedResourcesPaginator.js +73 -0
- package/dist-es/pagination/ListServicePipelineOutputsPaginator.js +73 -0
- package/dist-es/pagination/ListServicePipelineProvisionedResourcesPaginator.js +73 -0
- package/dist-es/pagination/index.js +8 -0
- package/dist-es/protocols/Aws_json1_0.js +2529 -291
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/Proton.d.ts +400 -248
- package/dist-types/ProtonClient.d.ts +108 -81
- package/dist-types/commands/AcceptEnvironmentAccountConnectionCommand.d.ts +4 -5
- package/dist-types/commands/CancelEnvironmentDeploymentCommand.d.ts +9 -8
- package/dist-types/commands/CancelServiceInstanceDeploymentCommand.d.ts +7 -7
- package/dist-types/commands/CancelServicePipelineDeploymentCommand.d.ts +7 -7
- package/dist-types/commands/CreateEnvironmentAccountConnectionCommand.d.ts +5 -5
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +16 -3
- package/dist-types/commands/CreateEnvironmentTemplateCommand.d.ts +9 -11
- package/dist-types/commands/CreateEnvironmentTemplateVersionCommand.d.ts +2 -2
- package/dist-types/commands/CreateRepositoryCommand.d.ts +37 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +4 -3
- package/dist-types/commands/CreateServiceTemplateCommand.d.ts +5 -5
- package/dist-types/commands/CreateServiceTemplateVersionCommand.d.ts +2 -3
- package/dist-types/commands/CreateTemplateSyncConfigCommand.d.ts +38 -0
- package/dist-types/commands/DeleteEnvironmentAccountConnectionCommand.d.ts +5 -5
- package/dist-types/commands/DeleteEnvironmentTemplateVersionCommand.d.ts +5 -6
- package/dist-types/commands/DeleteRepositoryCommand.d.ts +35 -0
- package/dist-types/commands/DeleteServiceTemplateVersionCommand.d.ts +5 -6
- package/dist-types/commands/DeleteTemplateSyncConfigCommand.d.ts +35 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +1 -1
- package/dist-types/commands/GetEnvironmentAccountConnectionCommand.d.ts +2 -2
- package/dist-types/commands/GetRepositoryCommand.d.ts +35 -0
- package/dist-types/commands/GetRepositorySyncStatusCommand.d.ts +35 -0
- package/dist-types/commands/GetServiceInstanceCommand.d.ts +1 -1
- package/dist-types/commands/GetTemplateSyncConfigCommand.d.ts +35 -0
- package/dist-types/commands/GetTemplateSyncStatusCommand.d.ts +35 -0
- package/dist-types/commands/ListEnvironmentAccountConnectionsCommand.d.ts +2 -2
- package/dist-types/commands/ListEnvironmentOutputsCommand.d.ts +35 -0
- package/dist-types/commands/ListEnvironmentProvisionedResourcesCommand.d.ts +35 -0
- package/dist-types/commands/ListRepositoriesCommand.d.ts +35 -0
- package/dist-types/commands/ListRepositorySyncDefinitionsCommand.d.ts +35 -0
- package/dist-types/commands/ListServiceInstanceOutputsCommand.d.ts +35 -0
- package/dist-types/commands/ListServiceInstanceProvisionedResourcesCommand.d.ts +35 -0
- package/dist-types/commands/ListServicePipelineOutputsCommand.d.ts +35 -0
- package/dist-types/commands/ListServicePipelineProvisionedResourcesCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/NotifyResourceDeploymentStatusChangeCommand.d.ts +41 -0
- package/dist-types/commands/RejectEnvironmentAccountConnectionCommand.d.ts +5 -5
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEnvironmentAccountConnectionCommand.d.ts +2 -2
- package/dist-types/commands/UpdateEnvironmentCommand.d.ts +30 -28
- package/dist-types/commands/UpdateServiceCommand.d.ts +5 -6
- package/dist-types/commands/UpdateServiceInstanceCommand.d.ts +19 -21
- package/dist-types/commands/UpdateServicePipelineCommand.d.ts +19 -21
- package/dist-types/commands/UpdateTemplateSyncConfigCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +18 -0
- package/dist-types/models/models_0.d.ts +1457 -330
- package/dist-types/pagination/ListEnvironmentOutputsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEnvironmentProvisionedResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRepositoriesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRepositorySyncDefinitionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListServiceInstanceOutputsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListServiceInstanceProvisionedResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListServicePipelineOutputsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListServicePipelineProvisionedResourcesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +8 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +54 -0
- package/dist-types/ts3.4/Proton.d.ts +90 -0
- package/dist-types/ts3.4/ProtonClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateTemplateSyncConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteTemplateSyncConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRepositoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRepositorySyncStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTemplateSyncConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetTemplateSyncStatusCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEnvironmentOutputsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEnvironmentProvisionedResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRepositoriesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRepositorySyncDefinitionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServiceInstanceOutputsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServiceInstanceProvisionedResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServicePipelineOutputsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListServicePipelineProvisionedResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/NotifyResourceDeploymentStatusChangeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateTemplateSyncConfigCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +18 -0
- package/dist-types/ts3.4/models/models_0.d.ts +637 -5
- package/dist-types/ts3.4/pagination/ListEnvironmentOutputsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentProvisionedResourcesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRepositoriesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRepositorySyncDefinitionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListServiceInstanceOutputsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListServiceInstanceProvisionedResourcesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListServicePipelineOutputsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListServicePipelineProvisionedResourcesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +54 -0
- package/package.json +37 -44
|
@@ -91,6 +91,17 @@ export var serializeAws_json1_0CreateEnvironmentTemplateVersionCommand = functio
|
|
|
91
91
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
92
|
});
|
|
93
93
|
}); };
|
|
94
|
+
export var serializeAws_json1_0CreateRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.0",
|
|
99
|
+
"x-amz-target": "AwsProton20200720.CreateRepository",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_0CreateRepositoryInput(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
94
105
|
export var serializeAws_json1_0CreateServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
106
|
var headers, body;
|
|
96
107
|
return __generator(this, function (_a) {
|
|
@@ -124,6 +135,17 @@ export var serializeAws_json1_0CreateServiceTemplateVersionCommand = function (i
|
|
|
124
135
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
136
|
});
|
|
126
137
|
}); };
|
|
138
|
+
export var serializeAws_json1_0CreateTemplateSyncConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.0",
|
|
143
|
+
"x-amz-target": "AwsProton20200720.CreateTemplateSyncConfig",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_0CreateTemplateSyncConfigInput(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
127
149
|
export var serializeAws_json1_0DeleteEnvironmentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
150
|
var headers, body;
|
|
129
151
|
return __generator(this, function (_a) {
|
|
@@ -168,6 +190,17 @@ export var serializeAws_json1_0DeleteEnvironmentTemplateVersionCommand = functio
|
|
|
168
190
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
191
|
});
|
|
170
192
|
}); };
|
|
193
|
+
export var serializeAws_json1_0DeleteRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
+
var headers, body;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.0",
|
|
198
|
+
"x-amz-target": "AwsProton20200720.DeleteRepository",
|
|
199
|
+
};
|
|
200
|
+
body = JSON.stringify(serializeAws_json1_0DeleteRepositoryInput(input, context));
|
|
201
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
|
+
});
|
|
203
|
+
}); };
|
|
171
204
|
export var serializeAws_json1_0DeleteServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
205
|
var headers, body;
|
|
173
206
|
return __generator(this, function (_a) {
|
|
@@ -201,6 +234,17 @@ export var serializeAws_json1_0DeleteServiceTemplateVersionCommand = function (i
|
|
|
201
234
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
235
|
});
|
|
203
236
|
}); };
|
|
237
|
+
export var serializeAws_json1_0DeleteTemplateSyncConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
238
|
+
var headers, body;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
headers = {
|
|
241
|
+
"content-type": "application/x-amz-json-1.0",
|
|
242
|
+
"x-amz-target": "AwsProton20200720.DeleteTemplateSyncConfig",
|
|
243
|
+
};
|
|
244
|
+
body = JSON.stringify(serializeAws_json1_0DeleteTemplateSyncConfigInput(input, context));
|
|
245
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
246
|
+
});
|
|
247
|
+
}); };
|
|
204
248
|
export var serializeAws_json1_0GetAccountSettingsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
249
|
var headers, body;
|
|
206
250
|
return __generator(this, function (_a) {
|
|
@@ -256,6 +300,28 @@ export var serializeAws_json1_0GetEnvironmentTemplateVersionCommand = function (
|
|
|
256
300
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
257
301
|
});
|
|
258
302
|
}); };
|
|
303
|
+
export var serializeAws_json1_0GetRepositoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
|
+
var headers, body;
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
headers = {
|
|
307
|
+
"content-type": "application/x-amz-json-1.0",
|
|
308
|
+
"x-amz-target": "AwsProton20200720.GetRepository",
|
|
309
|
+
};
|
|
310
|
+
body = JSON.stringify(serializeAws_json1_0GetRepositoryInput(input, context));
|
|
311
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
312
|
+
});
|
|
313
|
+
}); };
|
|
314
|
+
export var serializeAws_json1_0GetRepositorySyncStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
315
|
+
var headers, body;
|
|
316
|
+
return __generator(this, function (_a) {
|
|
317
|
+
headers = {
|
|
318
|
+
"content-type": "application/x-amz-json-1.0",
|
|
319
|
+
"x-amz-target": "AwsProton20200720.GetRepositorySyncStatus",
|
|
320
|
+
};
|
|
321
|
+
body = JSON.stringify(serializeAws_json1_0GetRepositorySyncStatusInput(input, context));
|
|
322
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
323
|
+
});
|
|
324
|
+
}); };
|
|
259
325
|
export var serializeAws_json1_0GetServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
326
|
var headers, body;
|
|
261
327
|
return __generator(this, function (_a) {
|
|
@@ -300,6 +366,28 @@ export var serializeAws_json1_0GetServiceTemplateVersionCommand = function (inpu
|
|
|
300
366
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
301
367
|
});
|
|
302
368
|
}); };
|
|
369
|
+
export var serializeAws_json1_0GetTemplateSyncConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
370
|
+
var headers, body;
|
|
371
|
+
return __generator(this, function (_a) {
|
|
372
|
+
headers = {
|
|
373
|
+
"content-type": "application/x-amz-json-1.0",
|
|
374
|
+
"x-amz-target": "AwsProton20200720.GetTemplateSyncConfig",
|
|
375
|
+
};
|
|
376
|
+
body = JSON.stringify(serializeAws_json1_0GetTemplateSyncConfigInput(input, context));
|
|
377
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
378
|
+
});
|
|
379
|
+
}); };
|
|
380
|
+
export var serializeAws_json1_0GetTemplateSyncStatusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
381
|
+
var headers, body;
|
|
382
|
+
return __generator(this, function (_a) {
|
|
383
|
+
headers = {
|
|
384
|
+
"content-type": "application/x-amz-json-1.0",
|
|
385
|
+
"x-amz-target": "AwsProton20200720.GetTemplateSyncStatus",
|
|
386
|
+
};
|
|
387
|
+
body = JSON.stringify(serializeAws_json1_0GetTemplateSyncStatusInput(input, context));
|
|
388
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
389
|
+
});
|
|
390
|
+
}); };
|
|
303
391
|
export var serializeAws_json1_0ListEnvironmentAccountConnectionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
304
392
|
var headers, body;
|
|
305
393
|
return __generator(this, function (_a) {
|
|
@@ -311,6 +399,28 @@ export var serializeAws_json1_0ListEnvironmentAccountConnectionsCommand = functi
|
|
|
311
399
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
312
400
|
});
|
|
313
401
|
}); };
|
|
402
|
+
export var serializeAws_json1_0ListEnvironmentOutputsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
403
|
+
var headers, body;
|
|
404
|
+
return __generator(this, function (_a) {
|
|
405
|
+
headers = {
|
|
406
|
+
"content-type": "application/x-amz-json-1.0",
|
|
407
|
+
"x-amz-target": "AwsProton20200720.ListEnvironmentOutputs",
|
|
408
|
+
};
|
|
409
|
+
body = JSON.stringify(serializeAws_json1_0ListEnvironmentOutputsInput(input, context));
|
|
410
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
411
|
+
});
|
|
412
|
+
}); };
|
|
413
|
+
export var serializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
414
|
+
var headers, body;
|
|
415
|
+
return __generator(this, function (_a) {
|
|
416
|
+
headers = {
|
|
417
|
+
"content-type": "application/x-amz-json-1.0",
|
|
418
|
+
"x-amz-target": "AwsProton20200720.ListEnvironmentProvisionedResources",
|
|
419
|
+
};
|
|
420
|
+
body = JSON.stringify(serializeAws_json1_0ListEnvironmentProvisionedResourcesInput(input, context));
|
|
421
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
422
|
+
});
|
|
423
|
+
}); };
|
|
314
424
|
export var serializeAws_json1_0ListEnvironmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
315
425
|
var headers, body;
|
|
316
426
|
return __generator(this, function (_a) {
|
|
@@ -344,6 +454,50 @@ export var serializeAws_json1_0ListEnvironmentTemplateVersionsCommand = function
|
|
|
344
454
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
345
455
|
});
|
|
346
456
|
}); };
|
|
457
|
+
export var serializeAws_json1_0ListRepositoriesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
458
|
+
var headers, body;
|
|
459
|
+
return __generator(this, function (_a) {
|
|
460
|
+
headers = {
|
|
461
|
+
"content-type": "application/x-amz-json-1.0",
|
|
462
|
+
"x-amz-target": "AwsProton20200720.ListRepositories",
|
|
463
|
+
};
|
|
464
|
+
body = JSON.stringify(serializeAws_json1_0ListRepositoriesInput(input, context));
|
|
465
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
466
|
+
});
|
|
467
|
+
}); };
|
|
468
|
+
export var serializeAws_json1_0ListRepositorySyncDefinitionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
469
|
+
var headers, body;
|
|
470
|
+
return __generator(this, function (_a) {
|
|
471
|
+
headers = {
|
|
472
|
+
"content-type": "application/x-amz-json-1.0",
|
|
473
|
+
"x-amz-target": "AwsProton20200720.ListRepositorySyncDefinitions",
|
|
474
|
+
};
|
|
475
|
+
body = JSON.stringify(serializeAws_json1_0ListRepositorySyncDefinitionsInput(input, context));
|
|
476
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
477
|
+
});
|
|
478
|
+
}); };
|
|
479
|
+
export var serializeAws_json1_0ListServiceInstanceOutputsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
480
|
+
var headers, body;
|
|
481
|
+
return __generator(this, function (_a) {
|
|
482
|
+
headers = {
|
|
483
|
+
"content-type": "application/x-amz-json-1.0",
|
|
484
|
+
"x-amz-target": "AwsProton20200720.ListServiceInstanceOutputs",
|
|
485
|
+
};
|
|
486
|
+
body = JSON.stringify(serializeAws_json1_0ListServiceInstanceOutputsInput(input, context));
|
|
487
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
488
|
+
});
|
|
489
|
+
}); };
|
|
490
|
+
export var serializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
491
|
+
var headers, body;
|
|
492
|
+
return __generator(this, function (_a) {
|
|
493
|
+
headers = {
|
|
494
|
+
"content-type": "application/x-amz-json-1.0",
|
|
495
|
+
"x-amz-target": "AwsProton20200720.ListServiceInstanceProvisionedResources",
|
|
496
|
+
};
|
|
497
|
+
body = JSON.stringify(serializeAws_json1_0ListServiceInstanceProvisionedResourcesInput(input, context));
|
|
498
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
499
|
+
});
|
|
500
|
+
}); };
|
|
347
501
|
export var serializeAws_json1_0ListServiceInstancesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
348
502
|
var headers, body;
|
|
349
503
|
return __generator(this, function (_a) {
|
|
@@ -355,6 +509,28 @@ export var serializeAws_json1_0ListServiceInstancesCommand = function (input, co
|
|
|
355
509
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
356
510
|
});
|
|
357
511
|
}); };
|
|
512
|
+
export var serializeAws_json1_0ListServicePipelineOutputsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
513
|
+
var headers, body;
|
|
514
|
+
return __generator(this, function (_a) {
|
|
515
|
+
headers = {
|
|
516
|
+
"content-type": "application/x-amz-json-1.0",
|
|
517
|
+
"x-amz-target": "AwsProton20200720.ListServicePipelineOutputs",
|
|
518
|
+
};
|
|
519
|
+
body = JSON.stringify(serializeAws_json1_0ListServicePipelineOutputsInput(input, context));
|
|
520
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
521
|
+
});
|
|
522
|
+
}); };
|
|
523
|
+
export var serializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
524
|
+
var headers, body;
|
|
525
|
+
return __generator(this, function (_a) {
|
|
526
|
+
headers = {
|
|
527
|
+
"content-type": "application/x-amz-json-1.0",
|
|
528
|
+
"x-amz-target": "AwsProton20200720.ListServicePipelineProvisionedResources",
|
|
529
|
+
};
|
|
530
|
+
body = JSON.stringify(serializeAws_json1_0ListServicePipelineProvisionedResourcesInput(input, context));
|
|
531
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
532
|
+
});
|
|
533
|
+
}); };
|
|
358
534
|
export var serializeAws_json1_0ListServicesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
359
535
|
var headers, body;
|
|
360
536
|
return __generator(this, function (_a) {
|
|
@@ -399,6 +575,17 @@ export var serializeAws_json1_0ListTagsForResourceCommand = function (input, con
|
|
|
399
575
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
400
576
|
});
|
|
401
577
|
}); };
|
|
578
|
+
export var serializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
579
|
+
var headers, body;
|
|
580
|
+
return __generator(this, function (_a) {
|
|
581
|
+
headers = {
|
|
582
|
+
"content-type": "application/x-amz-json-1.0",
|
|
583
|
+
"x-amz-target": "AwsProton20200720.NotifyResourceDeploymentStatusChange",
|
|
584
|
+
};
|
|
585
|
+
body = JSON.stringify(serializeAws_json1_0NotifyResourceDeploymentStatusChangeInput(input, context));
|
|
586
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
587
|
+
});
|
|
588
|
+
}); };
|
|
402
589
|
export var serializeAws_json1_0RejectEnvironmentAccountConnectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
403
590
|
var headers, body;
|
|
404
591
|
return __generator(this, function (_a) {
|
|
@@ -542,6 +729,17 @@ export var serializeAws_json1_0UpdateServiceTemplateVersionCommand = function (i
|
|
|
542
729
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
543
730
|
});
|
|
544
731
|
}); };
|
|
732
|
+
export var serializeAws_json1_0UpdateTemplateSyncConfigCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
733
|
+
var headers, body;
|
|
734
|
+
return __generator(this, function (_a) {
|
|
735
|
+
headers = {
|
|
736
|
+
"content-type": "application/x-amz-json-1.0",
|
|
737
|
+
"x-amz-target": "AwsProton20200720.UpdateTemplateSyncConfig",
|
|
738
|
+
};
|
|
739
|
+
body = JSON.stringify(serializeAws_json1_0UpdateTemplateSyncConfigInput(input, context));
|
|
740
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
741
|
+
});
|
|
742
|
+
}); };
|
|
545
743
|
export var deserializeAws_json1_0AcceptEnvironmentAccountConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
546
744
|
var data, contents, response;
|
|
547
745
|
return __generator(this, function (_a) {
|
|
@@ -1326,6 +1524,102 @@ var deserializeAws_json1_0CreateEnvironmentTemplateVersionCommandError = functio
|
|
|
1326
1524
|
}
|
|
1327
1525
|
});
|
|
1328
1526
|
}); };
|
|
1527
|
+
export var deserializeAws_json1_0CreateRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1528
|
+
var data, contents, response;
|
|
1529
|
+
return __generator(this, function (_a) {
|
|
1530
|
+
switch (_a.label) {
|
|
1531
|
+
case 0:
|
|
1532
|
+
if (output.statusCode >= 300) {
|
|
1533
|
+
return [2, deserializeAws_json1_0CreateRepositoryCommandError(output, context)];
|
|
1534
|
+
}
|
|
1535
|
+
return [4, parseBody(output.body, context)];
|
|
1536
|
+
case 1:
|
|
1537
|
+
data = _a.sent();
|
|
1538
|
+
contents = {};
|
|
1539
|
+
contents = deserializeAws_json1_0CreateRepositoryOutput(data, context);
|
|
1540
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1541
|
+
return [2, Promise.resolve(response)];
|
|
1542
|
+
}
|
|
1543
|
+
});
|
|
1544
|
+
}); };
|
|
1545
|
+
var deserializeAws_json1_0CreateRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1546
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1547
|
+
var _j;
|
|
1548
|
+
return __generator(this, function (_k) {
|
|
1549
|
+
switch (_k.label) {
|
|
1550
|
+
case 0:
|
|
1551
|
+
_a = [__assign({}, output)];
|
|
1552
|
+
_j = {};
|
|
1553
|
+
return [4, parseBody(output.body, context)];
|
|
1554
|
+
case 1:
|
|
1555
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1556
|
+
errorCode = "UnknownError";
|
|
1557
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
+
_b = errorCode;
|
|
1559
|
+
switch (_b) {
|
|
1560
|
+
case "AccessDeniedException": return [3, 2];
|
|
1561
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
1562
|
+
case "ConflictException": return [3, 4];
|
|
1563
|
+
case "com.amazonaws.proton#ConflictException": return [3, 4];
|
|
1564
|
+
case "InternalServerException": return [3, 6];
|
|
1565
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 6];
|
|
1566
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1567
|
+
case "com.amazonaws.proton#ServiceQuotaExceededException": return [3, 8];
|
|
1568
|
+
case "ThrottlingException": return [3, 10];
|
|
1569
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 10];
|
|
1570
|
+
case "ValidationException": return [3, 12];
|
|
1571
|
+
case "com.amazonaws.proton#ValidationException": return [3, 12];
|
|
1572
|
+
}
|
|
1573
|
+
return [3, 14];
|
|
1574
|
+
case 2:
|
|
1575
|
+
_c = [{}];
|
|
1576
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1577
|
+
case 3:
|
|
1578
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1579
|
+
return [3, 15];
|
|
1580
|
+
case 4:
|
|
1581
|
+
_d = [{}];
|
|
1582
|
+
return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1583
|
+
case 5:
|
|
1584
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1585
|
+
return [3, 15];
|
|
1586
|
+
case 6:
|
|
1587
|
+
_e = [{}];
|
|
1588
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1589
|
+
case 7:
|
|
1590
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1591
|
+
return [3, 15];
|
|
1592
|
+
case 8:
|
|
1593
|
+
_f = [{}];
|
|
1594
|
+
return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1595
|
+
case 9:
|
|
1596
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1597
|
+
return [3, 15];
|
|
1598
|
+
case 10:
|
|
1599
|
+
_g = [{}];
|
|
1600
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1601
|
+
case 11:
|
|
1602
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1603
|
+
return [3, 15];
|
|
1604
|
+
case 12:
|
|
1605
|
+
_h = [{}];
|
|
1606
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1607
|
+
case 13:
|
|
1608
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1609
|
+
return [3, 15];
|
|
1610
|
+
case 14:
|
|
1611
|
+
parsedBody = parsedOutput.body;
|
|
1612
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1613
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1614
|
+
_k.label = 15;
|
|
1615
|
+
case 15:
|
|
1616
|
+
message = response.message || response.Message || errorCode;
|
|
1617
|
+
response.message = message;
|
|
1618
|
+
delete response.Message;
|
|
1619
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
}); };
|
|
1329
1623
|
export var deserializeAws_json1_0CreateServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1330
1624
|
var data, contents, response;
|
|
1331
1625
|
return __generator(this, function (_a) {
|
|
@@ -1630,25 +1924,25 @@ var deserializeAws_json1_0CreateServiceTemplateVersionCommandError = function (o
|
|
|
1630
1924
|
}
|
|
1631
1925
|
});
|
|
1632
1926
|
}); };
|
|
1633
|
-
export var
|
|
1927
|
+
export var deserializeAws_json1_0CreateTemplateSyncConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1634
1928
|
var data, contents, response;
|
|
1635
1929
|
return __generator(this, function (_a) {
|
|
1636
1930
|
switch (_a.label) {
|
|
1637
1931
|
case 0:
|
|
1638
1932
|
if (output.statusCode >= 300) {
|
|
1639
|
-
return [2,
|
|
1933
|
+
return [2, deserializeAws_json1_0CreateTemplateSyncConfigCommandError(output, context)];
|
|
1640
1934
|
}
|
|
1641
1935
|
return [4, parseBody(output.body, context)];
|
|
1642
1936
|
case 1:
|
|
1643
1937
|
data = _a.sent();
|
|
1644
1938
|
contents = {};
|
|
1645
|
-
contents =
|
|
1939
|
+
contents = deserializeAws_json1_0CreateTemplateSyncConfigOutput(data, context);
|
|
1646
1940
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1647
1941
|
return [2, Promise.resolve(response)];
|
|
1648
1942
|
}
|
|
1649
1943
|
});
|
|
1650
1944
|
}); };
|
|
1651
|
-
var
|
|
1945
|
+
var deserializeAws_json1_0CreateTemplateSyncConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1652
1946
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1653
1947
|
var _j;
|
|
1654
1948
|
return __generator(this, function (_k) {
|
|
@@ -1669,8 +1963,8 @@ var deserializeAws_json1_0DeleteEnvironmentCommandError = function (output, cont
|
|
|
1669
1963
|
case "com.amazonaws.proton#ConflictException": return [3, 4];
|
|
1670
1964
|
case "InternalServerException": return [3, 6];
|
|
1671
1965
|
case "com.amazonaws.proton#InternalServerException": return [3, 6];
|
|
1672
|
-
case "
|
|
1673
|
-
case "com.amazonaws.proton#
|
|
1966
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1967
|
+
case "com.amazonaws.proton#ServiceQuotaExceededException": return [3, 8];
|
|
1674
1968
|
case "ThrottlingException": return [3, 10];
|
|
1675
1969
|
case "com.amazonaws.proton#ThrottlingException": return [3, 10];
|
|
1676
1970
|
case "ValidationException": return [3, 12];
|
|
@@ -1697,7 +1991,7 @@ var deserializeAws_json1_0DeleteEnvironmentCommandError = function (output, cont
|
|
|
1697
1991
|
return [3, 15];
|
|
1698
1992
|
case 8:
|
|
1699
1993
|
_f = [{}];
|
|
1700
|
-
return [4,
|
|
1994
|
+
return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1701
1995
|
case 9:
|
|
1702
1996
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
1997
|
return [3, 15];
|
|
@@ -1726,25 +2020,25 @@ var deserializeAws_json1_0DeleteEnvironmentCommandError = function (output, cont
|
|
|
1726
2020
|
}
|
|
1727
2021
|
});
|
|
1728
2022
|
}); };
|
|
1729
|
-
export var
|
|
2023
|
+
export var deserializeAws_json1_0DeleteEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1730
2024
|
var data, contents, response;
|
|
1731
2025
|
return __generator(this, function (_a) {
|
|
1732
2026
|
switch (_a.label) {
|
|
1733
2027
|
case 0:
|
|
1734
2028
|
if (output.statusCode >= 300) {
|
|
1735
|
-
return [2,
|
|
2029
|
+
return [2, deserializeAws_json1_0DeleteEnvironmentCommandError(output, context)];
|
|
1736
2030
|
}
|
|
1737
2031
|
return [4, parseBody(output.body, context)];
|
|
1738
2032
|
case 1:
|
|
1739
2033
|
data = _a.sent();
|
|
1740
2034
|
contents = {};
|
|
1741
|
-
contents =
|
|
2035
|
+
contents = deserializeAws_json1_0DeleteEnvironmentOutput(data, context);
|
|
1742
2036
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1743
2037
|
return [2, Promise.resolve(response)];
|
|
1744
2038
|
}
|
|
1745
2039
|
});
|
|
1746
2040
|
}); };
|
|
1747
|
-
var
|
|
2041
|
+
var deserializeAws_json1_0DeleteEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1748
2042
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1749
2043
|
var _j;
|
|
1750
2044
|
return __generator(this, function (_k) {
|
|
@@ -1822,7 +2116,103 @@ var deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError = funct
|
|
|
1822
2116
|
}
|
|
1823
2117
|
});
|
|
1824
2118
|
}); };
|
|
1825
|
-
export var
|
|
2119
|
+
export var deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2120
|
+
var data, contents, response;
|
|
2121
|
+
return __generator(this, function (_a) {
|
|
2122
|
+
switch (_a.label) {
|
|
2123
|
+
case 0:
|
|
2124
|
+
if (output.statusCode >= 300) {
|
|
2125
|
+
return [2, deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError(output, context)];
|
|
2126
|
+
}
|
|
2127
|
+
return [4, parseBody(output.body, context)];
|
|
2128
|
+
case 1:
|
|
2129
|
+
data = _a.sent();
|
|
2130
|
+
contents = {};
|
|
2131
|
+
contents = deserializeAws_json1_0DeleteEnvironmentAccountConnectionOutput(data, context);
|
|
2132
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2133
|
+
return [2, Promise.resolve(response)];
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
}); };
|
|
2137
|
+
var deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2138
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
2139
|
+
var _j;
|
|
2140
|
+
return __generator(this, function (_k) {
|
|
2141
|
+
switch (_k.label) {
|
|
2142
|
+
case 0:
|
|
2143
|
+
_a = [__assign({}, output)];
|
|
2144
|
+
_j = {};
|
|
2145
|
+
return [4, parseBody(output.body, context)];
|
|
2146
|
+
case 1:
|
|
2147
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2148
|
+
errorCode = "UnknownError";
|
|
2149
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2150
|
+
_b = errorCode;
|
|
2151
|
+
switch (_b) {
|
|
2152
|
+
case "AccessDeniedException": return [3, 2];
|
|
2153
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
2154
|
+
case "ConflictException": return [3, 4];
|
|
2155
|
+
case "com.amazonaws.proton#ConflictException": return [3, 4];
|
|
2156
|
+
case "InternalServerException": return [3, 6];
|
|
2157
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 6];
|
|
2158
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2159
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 8];
|
|
2160
|
+
case "ThrottlingException": return [3, 10];
|
|
2161
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 10];
|
|
2162
|
+
case "ValidationException": return [3, 12];
|
|
2163
|
+
case "com.amazonaws.proton#ValidationException": return [3, 12];
|
|
2164
|
+
}
|
|
2165
|
+
return [3, 14];
|
|
2166
|
+
case 2:
|
|
2167
|
+
_c = [{}];
|
|
2168
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2169
|
+
case 3:
|
|
2170
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2171
|
+
return [3, 15];
|
|
2172
|
+
case 4:
|
|
2173
|
+
_d = [{}];
|
|
2174
|
+
return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
2175
|
+
case 5:
|
|
2176
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2177
|
+
return [3, 15];
|
|
2178
|
+
case 6:
|
|
2179
|
+
_e = [{}];
|
|
2180
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
2181
|
+
case 7:
|
|
2182
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2183
|
+
return [3, 15];
|
|
2184
|
+
case 8:
|
|
2185
|
+
_f = [{}];
|
|
2186
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2187
|
+
case 9:
|
|
2188
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2189
|
+
return [3, 15];
|
|
2190
|
+
case 10:
|
|
2191
|
+
_g = [{}];
|
|
2192
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2193
|
+
case 11:
|
|
2194
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2195
|
+
return [3, 15];
|
|
2196
|
+
case 12:
|
|
2197
|
+
_h = [{}];
|
|
2198
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2199
|
+
case 13:
|
|
2200
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2201
|
+
return [3, 15];
|
|
2202
|
+
case 14:
|
|
2203
|
+
parsedBody = parsedOutput.body;
|
|
2204
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2205
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2206
|
+
_k.label = 15;
|
|
2207
|
+
case 15:
|
|
2208
|
+
message = response.message || response.Message || errorCode;
|
|
2209
|
+
response.message = message;
|
|
2210
|
+
delete response.Message;
|
|
2211
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2212
|
+
}
|
|
2213
|
+
});
|
|
2214
|
+
}); };
|
|
2215
|
+
export var deserializeAws_json1_0DeleteEnvironmentTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1826
2216
|
var data, contents, response;
|
|
1827
2217
|
return __generator(this, function (_a) {
|
|
1828
2218
|
switch (_a.label) {
|
|
@@ -2014,6 +2404,102 @@ var deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommandError = functio
|
|
|
2014
2404
|
}
|
|
2015
2405
|
});
|
|
2016
2406
|
}); };
|
|
2407
|
+
export var deserializeAws_json1_0DeleteRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2408
|
+
var data, contents, response;
|
|
2409
|
+
return __generator(this, function (_a) {
|
|
2410
|
+
switch (_a.label) {
|
|
2411
|
+
case 0:
|
|
2412
|
+
if (output.statusCode >= 300) {
|
|
2413
|
+
return [2, deserializeAws_json1_0DeleteRepositoryCommandError(output, context)];
|
|
2414
|
+
}
|
|
2415
|
+
return [4, parseBody(output.body, context)];
|
|
2416
|
+
case 1:
|
|
2417
|
+
data = _a.sent();
|
|
2418
|
+
contents = {};
|
|
2419
|
+
contents = deserializeAws_json1_0DeleteRepositoryOutput(data, context);
|
|
2420
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2421
|
+
return [2, Promise.resolve(response)];
|
|
2422
|
+
}
|
|
2423
|
+
});
|
|
2424
|
+
}); };
|
|
2425
|
+
var deserializeAws_json1_0DeleteRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2426
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
2427
|
+
var _j;
|
|
2428
|
+
return __generator(this, function (_k) {
|
|
2429
|
+
switch (_k.label) {
|
|
2430
|
+
case 0:
|
|
2431
|
+
_a = [__assign({}, output)];
|
|
2432
|
+
_j = {};
|
|
2433
|
+
return [4, parseBody(output.body, context)];
|
|
2434
|
+
case 1:
|
|
2435
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2436
|
+
errorCode = "UnknownError";
|
|
2437
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2438
|
+
_b = errorCode;
|
|
2439
|
+
switch (_b) {
|
|
2440
|
+
case "AccessDeniedException": return [3, 2];
|
|
2441
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
2442
|
+
case "ConflictException": return [3, 4];
|
|
2443
|
+
case "com.amazonaws.proton#ConflictException": return [3, 4];
|
|
2444
|
+
case "InternalServerException": return [3, 6];
|
|
2445
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 6];
|
|
2446
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2447
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 8];
|
|
2448
|
+
case "ThrottlingException": return [3, 10];
|
|
2449
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 10];
|
|
2450
|
+
case "ValidationException": return [3, 12];
|
|
2451
|
+
case "com.amazonaws.proton#ValidationException": return [3, 12];
|
|
2452
|
+
}
|
|
2453
|
+
return [3, 14];
|
|
2454
|
+
case 2:
|
|
2455
|
+
_c = [{}];
|
|
2456
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2457
|
+
case 3:
|
|
2458
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2459
|
+
return [3, 15];
|
|
2460
|
+
case 4:
|
|
2461
|
+
_d = [{}];
|
|
2462
|
+
return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
2463
|
+
case 5:
|
|
2464
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2465
|
+
return [3, 15];
|
|
2466
|
+
case 6:
|
|
2467
|
+
_e = [{}];
|
|
2468
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
2469
|
+
case 7:
|
|
2470
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2471
|
+
return [3, 15];
|
|
2472
|
+
case 8:
|
|
2473
|
+
_f = [{}];
|
|
2474
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2475
|
+
case 9:
|
|
2476
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2477
|
+
return [3, 15];
|
|
2478
|
+
case 10:
|
|
2479
|
+
_g = [{}];
|
|
2480
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2481
|
+
case 11:
|
|
2482
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2483
|
+
return [3, 15];
|
|
2484
|
+
case 12:
|
|
2485
|
+
_h = [{}];
|
|
2486
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2487
|
+
case 13:
|
|
2488
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2489
|
+
return [3, 15];
|
|
2490
|
+
case 14:
|
|
2491
|
+
parsedBody = parsedOutput.body;
|
|
2492
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2493
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2494
|
+
_k.label = 15;
|
|
2495
|
+
case 15:
|
|
2496
|
+
message = response.message || response.Message || errorCode;
|
|
2497
|
+
response.message = message;
|
|
2498
|
+
delete response.Message;
|
|
2499
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2500
|
+
}
|
|
2501
|
+
});
|
|
2502
|
+
}); };
|
|
2017
2503
|
export var deserializeAws_json1_0DeleteServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2018
2504
|
var data, contents, response;
|
|
2019
2505
|
return __generator(this, function (_a) {
|
|
@@ -2302,87 +2788,1319 @@ var deserializeAws_json1_0DeleteServiceTemplateVersionCommandError = function (o
|
|
|
2302
2788
|
}
|
|
2303
2789
|
});
|
|
2304
2790
|
}); };
|
|
2305
|
-
export var
|
|
2791
|
+
export var deserializeAws_json1_0DeleteTemplateSyncConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2306
2792
|
var data, contents, response;
|
|
2307
2793
|
return __generator(this, function (_a) {
|
|
2308
2794
|
switch (_a.label) {
|
|
2309
2795
|
case 0:
|
|
2310
2796
|
if (output.statusCode >= 300) {
|
|
2311
|
-
return [2,
|
|
2797
|
+
return [2, deserializeAws_json1_0DeleteTemplateSyncConfigCommandError(output, context)];
|
|
2312
2798
|
}
|
|
2313
2799
|
return [4, parseBody(output.body, context)];
|
|
2314
2800
|
case 1:
|
|
2315
2801
|
data = _a.sent();
|
|
2316
2802
|
contents = {};
|
|
2317
|
-
contents =
|
|
2803
|
+
contents = deserializeAws_json1_0DeleteTemplateSyncConfigOutput(data, context);
|
|
2318
2804
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2319
2805
|
return [2, Promise.resolve(response)];
|
|
2320
2806
|
}
|
|
2321
2807
|
});
|
|
2322
2808
|
}); };
|
|
2323
|
-
var
|
|
2324
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2325
|
-
var
|
|
2326
|
-
return __generator(this, function (
|
|
2327
|
-
switch (
|
|
2809
|
+
var deserializeAws_json1_0DeleteTemplateSyncConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2810
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
2811
|
+
var _j;
|
|
2812
|
+
return __generator(this, function (_k) {
|
|
2813
|
+
switch (_k.label) {
|
|
2328
2814
|
case 0:
|
|
2329
2815
|
_a = [__assign({}, output)];
|
|
2330
|
-
|
|
2816
|
+
_j = {};
|
|
2331
2817
|
return [4, parseBody(output.body, context)];
|
|
2332
2818
|
case 1:
|
|
2333
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2819
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
2334
2820
|
errorCode = "UnknownError";
|
|
2335
2821
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2336
2822
|
_b = errorCode;
|
|
2337
2823
|
switch (_b) {
|
|
2338
2824
|
case "AccessDeniedException": return [3, 2];
|
|
2339
2825
|
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
2340
|
-
case "
|
|
2341
|
-
case "com.amazonaws.proton#
|
|
2342
|
-
case "
|
|
2343
|
-
case "com.amazonaws.proton#
|
|
2344
|
-
case "
|
|
2345
|
-
case "com.amazonaws.proton#
|
|
2346
|
-
case "
|
|
2347
|
-
case "com.amazonaws.proton#
|
|
2826
|
+
case "ConflictException": return [3, 4];
|
|
2827
|
+
case "com.amazonaws.proton#ConflictException": return [3, 4];
|
|
2828
|
+
case "InternalServerException": return [3, 6];
|
|
2829
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 6];
|
|
2830
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2831
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 8];
|
|
2832
|
+
case "ThrottlingException": return [3, 10];
|
|
2833
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 10];
|
|
2834
|
+
case "ValidationException": return [3, 12];
|
|
2835
|
+
case "com.amazonaws.proton#ValidationException": return [3, 12];
|
|
2348
2836
|
}
|
|
2349
|
-
return [3,
|
|
2837
|
+
return [3, 14];
|
|
2350
2838
|
case 2:
|
|
2351
2839
|
_c = [{}];
|
|
2352
2840
|
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2353
2841
|
case 3:
|
|
2354
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2355
|
-
return [3,
|
|
2842
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2843
|
+
return [3, 15];
|
|
2356
2844
|
case 4:
|
|
2357
2845
|
_d = [{}];
|
|
2358
|
-
return [4,
|
|
2846
|
+
return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
2359
2847
|
case 5:
|
|
2360
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2361
|
-
return [3,
|
|
2848
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2849
|
+
return [3, 15];
|
|
2362
2850
|
case 6:
|
|
2363
2851
|
_e = [{}];
|
|
2364
|
-
return [4,
|
|
2852
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
2365
2853
|
case 7:
|
|
2366
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2367
|
-
return [3,
|
|
2854
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2855
|
+
return [3, 15];
|
|
2368
2856
|
case 8:
|
|
2369
2857
|
_f = [{}];
|
|
2370
|
-
return [4,
|
|
2858
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2371
2859
|
case 9:
|
|
2372
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2373
|
-
return [3,
|
|
2860
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2861
|
+
return [3, 15];
|
|
2374
2862
|
case 10:
|
|
2375
2863
|
_g = [{}];
|
|
2376
|
-
return [4,
|
|
2864
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2377
2865
|
case 11:
|
|
2378
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
2379
|
-
return [3,
|
|
2866
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2867
|
+
return [3, 15];
|
|
2380
2868
|
case 12:
|
|
2869
|
+
_h = [{}];
|
|
2870
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2871
|
+
case 13:
|
|
2872
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2873
|
+
return [3, 15];
|
|
2874
|
+
case 14:
|
|
2875
|
+
parsedBody = parsedOutput.body;
|
|
2876
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2877
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2878
|
+
_k.label = 15;
|
|
2879
|
+
case 15:
|
|
2880
|
+
message = response.message || response.Message || errorCode;
|
|
2881
|
+
response.message = message;
|
|
2882
|
+
delete response.Message;
|
|
2883
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2884
|
+
}
|
|
2885
|
+
});
|
|
2886
|
+
}); };
|
|
2887
|
+
export var deserializeAws_json1_0GetAccountSettingsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2888
|
+
var data, contents, response;
|
|
2889
|
+
return __generator(this, function (_a) {
|
|
2890
|
+
switch (_a.label) {
|
|
2891
|
+
case 0:
|
|
2892
|
+
if (output.statusCode >= 300) {
|
|
2893
|
+
return [2, deserializeAws_json1_0GetAccountSettingsCommandError(output, context)];
|
|
2894
|
+
}
|
|
2895
|
+
return [4, parseBody(output.body, context)];
|
|
2896
|
+
case 1:
|
|
2897
|
+
data = _a.sent();
|
|
2898
|
+
contents = {};
|
|
2899
|
+
contents = deserializeAws_json1_0GetAccountSettingsOutput(data, context);
|
|
2900
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2901
|
+
return [2, Promise.resolve(response)];
|
|
2902
|
+
}
|
|
2903
|
+
});
|
|
2904
|
+
}); };
|
|
2905
|
+
var deserializeAws_json1_0GetAccountSettingsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2906
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2907
|
+
var _h;
|
|
2908
|
+
return __generator(this, function (_j) {
|
|
2909
|
+
switch (_j.label) {
|
|
2910
|
+
case 0:
|
|
2911
|
+
_a = [__assign({}, output)];
|
|
2912
|
+
_h = {};
|
|
2913
|
+
return [4, parseBody(output.body, context)];
|
|
2914
|
+
case 1:
|
|
2915
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
2916
|
+
errorCode = "UnknownError";
|
|
2917
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2918
|
+
_b = errorCode;
|
|
2919
|
+
switch (_b) {
|
|
2920
|
+
case "AccessDeniedException": return [3, 2];
|
|
2921
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
2922
|
+
case "InternalServerException": return [3, 4];
|
|
2923
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
2924
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2925
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
2926
|
+
case "ThrottlingException": return [3, 8];
|
|
2927
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
2928
|
+
case "ValidationException": return [3, 10];
|
|
2929
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
2930
|
+
}
|
|
2931
|
+
return [3, 12];
|
|
2932
|
+
case 2:
|
|
2933
|
+
_c = [{}];
|
|
2934
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2935
|
+
case 3:
|
|
2936
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2937
|
+
return [3, 13];
|
|
2938
|
+
case 4:
|
|
2939
|
+
_d = [{}];
|
|
2940
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
2941
|
+
case 5:
|
|
2942
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2943
|
+
return [3, 13];
|
|
2944
|
+
case 6:
|
|
2945
|
+
_e = [{}];
|
|
2946
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2947
|
+
case 7:
|
|
2948
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2949
|
+
return [3, 13];
|
|
2950
|
+
case 8:
|
|
2951
|
+
_f = [{}];
|
|
2952
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2953
|
+
case 9:
|
|
2954
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2955
|
+
return [3, 13];
|
|
2956
|
+
case 10:
|
|
2957
|
+
_g = [{}];
|
|
2958
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2959
|
+
case 11:
|
|
2960
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2961
|
+
return [3, 13];
|
|
2962
|
+
case 12:
|
|
2963
|
+
parsedBody = parsedOutput.body;
|
|
2964
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2965
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2966
|
+
_j.label = 13;
|
|
2967
|
+
case 13:
|
|
2968
|
+
message = response.message || response.Message || errorCode;
|
|
2969
|
+
response.message = message;
|
|
2970
|
+
delete response.Message;
|
|
2971
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2972
|
+
}
|
|
2973
|
+
});
|
|
2974
|
+
}); };
|
|
2975
|
+
export var deserializeAws_json1_0GetEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2976
|
+
var data, contents, response;
|
|
2977
|
+
return __generator(this, function (_a) {
|
|
2978
|
+
switch (_a.label) {
|
|
2979
|
+
case 0:
|
|
2980
|
+
if (output.statusCode >= 300) {
|
|
2981
|
+
return [2, deserializeAws_json1_0GetEnvironmentCommandError(output, context)];
|
|
2982
|
+
}
|
|
2983
|
+
return [4, parseBody(output.body, context)];
|
|
2984
|
+
case 1:
|
|
2985
|
+
data = _a.sent();
|
|
2986
|
+
contents = {};
|
|
2987
|
+
contents = deserializeAws_json1_0GetEnvironmentOutput(data, context);
|
|
2988
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2989
|
+
return [2, Promise.resolve(response)];
|
|
2990
|
+
}
|
|
2991
|
+
});
|
|
2992
|
+
}); };
|
|
2993
|
+
var deserializeAws_json1_0GetEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2994
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2995
|
+
var _h;
|
|
2996
|
+
return __generator(this, function (_j) {
|
|
2997
|
+
switch (_j.label) {
|
|
2998
|
+
case 0:
|
|
2999
|
+
_a = [__assign({}, output)];
|
|
3000
|
+
_h = {};
|
|
3001
|
+
return [4, parseBody(output.body, context)];
|
|
3002
|
+
case 1:
|
|
3003
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3004
|
+
errorCode = "UnknownError";
|
|
3005
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3006
|
+
_b = errorCode;
|
|
3007
|
+
switch (_b) {
|
|
3008
|
+
case "AccessDeniedException": return [3, 2];
|
|
3009
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3010
|
+
case "InternalServerException": return [3, 4];
|
|
3011
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3012
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3013
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3014
|
+
case "ThrottlingException": return [3, 8];
|
|
3015
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3016
|
+
case "ValidationException": return [3, 10];
|
|
3017
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3018
|
+
}
|
|
3019
|
+
return [3, 12];
|
|
3020
|
+
case 2:
|
|
3021
|
+
_c = [{}];
|
|
3022
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3023
|
+
case 3:
|
|
3024
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3025
|
+
return [3, 13];
|
|
3026
|
+
case 4:
|
|
3027
|
+
_d = [{}];
|
|
3028
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3029
|
+
case 5:
|
|
3030
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3031
|
+
return [3, 13];
|
|
3032
|
+
case 6:
|
|
3033
|
+
_e = [{}];
|
|
3034
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3035
|
+
case 7:
|
|
3036
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3037
|
+
return [3, 13];
|
|
3038
|
+
case 8:
|
|
3039
|
+
_f = [{}];
|
|
3040
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3041
|
+
case 9:
|
|
3042
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3043
|
+
return [3, 13];
|
|
3044
|
+
case 10:
|
|
3045
|
+
_g = [{}];
|
|
3046
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3047
|
+
case 11:
|
|
3048
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3049
|
+
return [3, 13];
|
|
3050
|
+
case 12:
|
|
3051
|
+
parsedBody = parsedOutput.body;
|
|
3052
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3053
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3054
|
+
_j.label = 13;
|
|
3055
|
+
case 13:
|
|
3056
|
+
message = response.message || response.Message || errorCode;
|
|
3057
|
+
response.message = message;
|
|
3058
|
+
delete response.Message;
|
|
3059
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3060
|
+
}
|
|
3061
|
+
});
|
|
3062
|
+
}); };
|
|
3063
|
+
export var deserializeAws_json1_0GetEnvironmentAccountConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3064
|
+
var data, contents, response;
|
|
3065
|
+
return __generator(this, function (_a) {
|
|
3066
|
+
switch (_a.label) {
|
|
3067
|
+
case 0:
|
|
3068
|
+
if (output.statusCode >= 300) {
|
|
3069
|
+
return [2, deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError(output, context)];
|
|
3070
|
+
}
|
|
3071
|
+
return [4, parseBody(output.body, context)];
|
|
3072
|
+
case 1:
|
|
3073
|
+
data = _a.sent();
|
|
3074
|
+
contents = {};
|
|
3075
|
+
contents = deserializeAws_json1_0GetEnvironmentAccountConnectionOutput(data, context);
|
|
3076
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3077
|
+
return [2, Promise.resolve(response)];
|
|
3078
|
+
}
|
|
3079
|
+
});
|
|
3080
|
+
}); };
|
|
3081
|
+
var deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3082
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3083
|
+
var _h;
|
|
3084
|
+
return __generator(this, function (_j) {
|
|
3085
|
+
switch (_j.label) {
|
|
3086
|
+
case 0:
|
|
3087
|
+
_a = [__assign({}, output)];
|
|
3088
|
+
_h = {};
|
|
3089
|
+
return [4, parseBody(output.body, context)];
|
|
3090
|
+
case 1:
|
|
3091
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3092
|
+
errorCode = "UnknownError";
|
|
3093
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
|
+
_b = errorCode;
|
|
3095
|
+
switch (_b) {
|
|
3096
|
+
case "AccessDeniedException": return [3, 2];
|
|
3097
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3098
|
+
case "InternalServerException": return [3, 4];
|
|
3099
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3100
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3101
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3102
|
+
case "ThrottlingException": return [3, 8];
|
|
3103
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3104
|
+
case "ValidationException": return [3, 10];
|
|
3105
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3106
|
+
}
|
|
3107
|
+
return [3, 12];
|
|
3108
|
+
case 2:
|
|
3109
|
+
_c = [{}];
|
|
3110
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3111
|
+
case 3:
|
|
3112
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3113
|
+
return [3, 13];
|
|
3114
|
+
case 4:
|
|
3115
|
+
_d = [{}];
|
|
3116
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3117
|
+
case 5:
|
|
3118
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3119
|
+
return [3, 13];
|
|
3120
|
+
case 6:
|
|
3121
|
+
_e = [{}];
|
|
3122
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3123
|
+
case 7:
|
|
3124
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3125
|
+
return [3, 13];
|
|
3126
|
+
case 8:
|
|
3127
|
+
_f = [{}];
|
|
3128
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3129
|
+
case 9:
|
|
3130
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3131
|
+
return [3, 13];
|
|
3132
|
+
case 10:
|
|
3133
|
+
_g = [{}];
|
|
3134
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3135
|
+
case 11:
|
|
3136
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3137
|
+
return [3, 13];
|
|
3138
|
+
case 12:
|
|
3139
|
+
parsedBody = parsedOutput.body;
|
|
3140
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3141
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3142
|
+
_j.label = 13;
|
|
3143
|
+
case 13:
|
|
3144
|
+
message = response.message || response.Message || errorCode;
|
|
3145
|
+
response.message = message;
|
|
3146
|
+
delete response.Message;
|
|
3147
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3148
|
+
}
|
|
3149
|
+
});
|
|
3150
|
+
}); };
|
|
3151
|
+
export var deserializeAws_json1_0GetEnvironmentTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3152
|
+
var data, contents, response;
|
|
3153
|
+
return __generator(this, function (_a) {
|
|
3154
|
+
switch (_a.label) {
|
|
3155
|
+
case 0:
|
|
3156
|
+
if (output.statusCode >= 300) {
|
|
3157
|
+
return [2, deserializeAws_json1_0GetEnvironmentTemplateCommandError(output, context)];
|
|
3158
|
+
}
|
|
3159
|
+
return [4, parseBody(output.body, context)];
|
|
3160
|
+
case 1:
|
|
3161
|
+
data = _a.sent();
|
|
3162
|
+
contents = {};
|
|
3163
|
+
contents = deserializeAws_json1_0GetEnvironmentTemplateOutput(data, context);
|
|
3164
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3165
|
+
return [2, Promise.resolve(response)];
|
|
3166
|
+
}
|
|
3167
|
+
});
|
|
3168
|
+
}); };
|
|
3169
|
+
var deserializeAws_json1_0GetEnvironmentTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3170
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3171
|
+
var _h;
|
|
3172
|
+
return __generator(this, function (_j) {
|
|
3173
|
+
switch (_j.label) {
|
|
3174
|
+
case 0:
|
|
3175
|
+
_a = [__assign({}, output)];
|
|
3176
|
+
_h = {};
|
|
3177
|
+
return [4, parseBody(output.body, context)];
|
|
3178
|
+
case 1:
|
|
3179
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3180
|
+
errorCode = "UnknownError";
|
|
3181
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3182
|
+
_b = errorCode;
|
|
3183
|
+
switch (_b) {
|
|
3184
|
+
case "AccessDeniedException": return [3, 2];
|
|
3185
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3186
|
+
case "InternalServerException": return [3, 4];
|
|
3187
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3188
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3189
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3190
|
+
case "ThrottlingException": return [3, 8];
|
|
3191
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3192
|
+
case "ValidationException": return [3, 10];
|
|
3193
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3194
|
+
}
|
|
3195
|
+
return [3, 12];
|
|
3196
|
+
case 2:
|
|
3197
|
+
_c = [{}];
|
|
3198
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3199
|
+
case 3:
|
|
3200
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3201
|
+
return [3, 13];
|
|
3202
|
+
case 4:
|
|
3203
|
+
_d = [{}];
|
|
3204
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3205
|
+
case 5:
|
|
3206
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3207
|
+
return [3, 13];
|
|
3208
|
+
case 6:
|
|
3209
|
+
_e = [{}];
|
|
3210
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3211
|
+
case 7:
|
|
3212
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3213
|
+
return [3, 13];
|
|
3214
|
+
case 8:
|
|
3215
|
+
_f = [{}];
|
|
3216
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3217
|
+
case 9:
|
|
3218
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3219
|
+
return [3, 13];
|
|
3220
|
+
case 10:
|
|
3221
|
+
_g = [{}];
|
|
3222
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3223
|
+
case 11:
|
|
3224
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3225
|
+
return [3, 13];
|
|
3226
|
+
case 12:
|
|
3227
|
+
parsedBody = parsedOutput.body;
|
|
3228
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3229
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3230
|
+
_j.label = 13;
|
|
3231
|
+
case 13:
|
|
3232
|
+
message = response.message || response.Message || errorCode;
|
|
3233
|
+
response.message = message;
|
|
3234
|
+
delete response.Message;
|
|
3235
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3236
|
+
}
|
|
3237
|
+
});
|
|
3238
|
+
}); };
|
|
3239
|
+
export var deserializeAws_json1_0GetEnvironmentTemplateVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3240
|
+
var data, contents, response;
|
|
3241
|
+
return __generator(this, function (_a) {
|
|
3242
|
+
switch (_a.label) {
|
|
3243
|
+
case 0:
|
|
3244
|
+
if (output.statusCode >= 300) {
|
|
3245
|
+
return [2, deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError(output, context)];
|
|
3246
|
+
}
|
|
3247
|
+
return [4, parseBody(output.body, context)];
|
|
3248
|
+
case 1:
|
|
3249
|
+
data = _a.sent();
|
|
3250
|
+
contents = {};
|
|
3251
|
+
contents = deserializeAws_json1_0GetEnvironmentTemplateVersionOutput(data, context);
|
|
3252
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3253
|
+
return [2, Promise.resolve(response)];
|
|
3254
|
+
}
|
|
3255
|
+
});
|
|
3256
|
+
}); };
|
|
3257
|
+
var deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3258
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3259
|
+
var _h;
|
|
3260
|
+
return __generator(this, function (_j) {
|
|
3261
|
+
switch (_j.label) {
|
|
3262
|
+
case 0:
|
|
3263
|
+
_a = [__assign({}, output)];
|
|
3264
|
+
_h = {};
|
|
3265
|
+
return [4, parseBody(output.body, context)];
|
|
3266
|
+
case 1:
|
|
3267
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3268
|
+
errorCode = "UnknownError";
|
|
3269
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3270
|
+
_b = errorCode;
|
|
3271
|
+
switch (_b) {
|
|
3272
|
+
case "AccessDeniedException": return [3, 2];
|
|
3273
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3274
|
+
case "InternalServerException": return [3, 4];
|
|
3275
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3276
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3277
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3278
|
+
case "ThrottlingException": return [3, 8];
|
|
3279
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3280
|
+
case "ValidationException": return [3, 10];
|
|
3281
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3282
|
+
}
|
|
3283
|
+
return [3, 12];
|
|
3284
|
+
case 2:
|
|
3285
|
+
_c = [{}];
|
|
3286
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3287
|
+
case 3:
|
|
3288
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3289
|
+
return [3, 13];
|
|
3290
|
+
case 4:
|
|
3291
|
+
_d = [{}];
|
|
3292
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3293
|
+
case 5:
|
|
3294
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3295
|
+
return [3, 13];
|
|
3296
|
+
case 6:
|
|
3297
|
+
_e = [{}];
|
|
3298
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3299
|
+
case 7:
|
|
3300
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3301
|
+
return [3, 13];
|
|
3302
|
+
case 8:
|
|
3303
|
+
_f = [{}];
|
|
3304
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3305
|
+
case 9:
|
|
3306
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3307
|
+
return [3, 13];
|
|
3308
|
+
case 10:
|
|
3309
|
+
_g = [{}];
|
|
3310
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3311
|
+
case 11:
|
|
3312
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3313
|
+
return [3, 13];
|
|
3314
|
+
case 12:
|
|
3315
|
+
parsedBody = parsedOutput.body;
|
|
3316
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3317
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3318
|
+
_j.label = 13;
|
|
3319
|
+
case 13:
|
|
3320
|
+
message = response.message || response.Message || errorCode;
|
|
3321
|
+
response.message = message;
|
|
3322
|
+
delete response.Message;
|
|
3323
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3324
|
+
}
|
|
3325
|
+
});
|
|
3326
|
+
}); };
|
|
3327
|
+
export var deserializeAws_json1_0GetRepositoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3328
|
+
var data, contents, response;
|
|
3329
|
+
return __generator(this, function (_a) {
|
|
3330
|
+
switch (_a.label) {
|
|
3331
|
+
case 0:
|
|
3332
|
+
if (output.statusCode >= 300) {
|
|
3333
|
+
return [2, deserializeAws_json1_0GetRepositoryCommandError(output, context)];
|
|
3334
|
+
}
|
|
3335
|
+
return [4, parseBody(output.body, context)];
|
|
3336
|
+
case 1:
|
|
3337
|
+
data = _a.sent();
|
|
3338
|
+
contents = {};
|
|
3339
|
+
contents = deserializeAws_json1_0GetRepositoryOutput(data, context);
|
|
3340
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3341
|
+
return [2, Promise.resolve(response)];
|
|
3342
|
+
}
|
|
3343
|
+
});
|
|
3344
|
+
}); };
|
|
3345
|
+
var deserializeAws_json1_0GetRepositoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3346
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3347
|
+
var _h;
|
|
3348
|
+
return __generator(this, function (_j) {
|
|
3349
|
+
switch (_j.label) {
|
|
3350
|
+
case 0:
|
|
3351
|
+
_a = [__assign({}, output)];
|
|
3352
|
+
_h = {};
|
|
3353
|
+
return [4, parseBody(output.body, context)];
|
|
3354
|
+
case 1:
|
|
3355
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3356
|
+
errorCode = "UnknownError";
|
|
3357
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3358
|
+
_b = errorCode;
|
|
3359
|
+
switch (_b) {
|
|
3360
|
+
case "AccessDeniedException": return [3, 2];
|
|
3361
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3362
|
+
case "InternalServerException": return [3, 4];
|
|
3363
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3364
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3365
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3366
|
+
case "ThrottlingException": return [3, 8];
|
|
3367
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3368
|
+
case "ValidationException": return [3, 10];
|
|
3369
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3370
|
+
}
|
|
3371
|
+
return [3, 12];
|
|
3372
|
+
case 2:
|
|
3373
|
+
_c = [{}];
|
|
3374
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3375
|
+
case 3:
|
|
3376
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3377
|
+
return [3, 13];
|
|
3378
|
+
case 4:
|
|
3379
|
+
_d = [{}];
|
|
3380
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3381
|
+
case 5:
|
|
3382
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3383
|
+
return [3, 13];
|
|
3384
|
+
case 6:
|
|
3385
|
+
_e = [{}];
|
|
3386
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3387
|
+
case 7:
|
|
3388
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3389
|
+
return [3, 13];
|
|
3390
|
+
case 8:
|
|
3391
|
+
_f = [{}];
|
|
3392
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3393
|
+
case 9:
|
|
3394
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3395
|
+
return [3, 13];
|
|
3396
|
+
case 10:
|
|
3397
|
+
_g = [{}];
|
|
3398
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3399
|
+
case 11:
|
|
3400
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3401
|
+
return [3, 13];
|
|
3402
|
+
case 12:
|
|
3403
|
+
parsedBody = parsedOutput.body;
|
|
3404
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3405
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3406
|
+
_j.label = 13;
|
|
3407
|
+
case 13:
|
|
3408
|
+
message = response.message || response.Message || errorCode;
|
|
3409
|
+
response.message = message;
|
|
3410
|
+
delete response.Message;
|
|
3411
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3412
|
+
}
|
|
3413
|
+
});
|
|
3414
|
+
}); };
|
|
3415
|
+
export var deserializeAws_json1_0GetRepositorySyncStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3416
|
+
var data, contents, response;
|
|
3417
|
+
return __generator(this, function (_a) {
|
|
3418
|
+
switch (_a.label) {
|
|
3419
|
+
case 0:
|
|
3420
|
+
if (output.statusCode >= 300) {
|
|
3421
|
+
return [2, deserializeAws_json1_0GetRepositorySyncStatusCommandError(output, context)];
|
|
3422
|
+
}
|
|
3423
|
+
return [4, parseBody(output.body, context)];
|
|
3424
|
+
case 1:
|
|
3425
|
+
data = _a.sent();
|
|
3426
|
+
contents = {};
|
|
3427
|
+
contents = deserializeAws_json1_0GetRepositorySyncStatusOutput(data, context);
|
|
3428
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3429
|
+
return [2, Promise.resolve(response)];
|
|
3430
|
+
}
|
|
3431
|
+
});
|
|
3432
|
+
}); };
|
|
3433
|
+
var deserializeAws_json1_0GetRepositorySyncStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3434
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3435
|
+
var _h;
|
|
3436
|
+
return __generator(this, function (_j) {
|
|
3437
|
+
switch (_j.label) {
|
|
3438
|
+
case 0:
|
|
3439
|
+
_a = [__assign({}, output)];
|
|
3440
|
+
_h = {};
|
|
3441
|
+
return [4, parseBody(output.body, context)];
|
|
3442
|
+
case 1:
|
|
3443
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3444
|
+
errorCode = "UnknownError";
|
|
3445
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3446
|
+
_b = errorCode;
|
|
3447
|
+
switch (_b) {
|
|
3448
|
+
case "AccessDeniedException": return [3, 2];
|
|
3449
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3450
|
+
case "InternalServerException": return [3, 4];
|
|
3451
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3452
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3453
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3454
|
+
case "ThrottlingException": return [3, 8];
|
|
3455
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3456
|
+
case "ValidationException": return [3, 10];
|
|
3457
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3458
|
+
}
|
|
3459
|
+
return [3, 12];
|
|
3460
|
+
case 2:
|
|
3461
|
+
_c = [{}];
|
|
3462
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3463
|
+
case 3:
|
|
3464
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3465
|
+
return [3, 13];
|
|
3466
|
+
case 4:
|
|
3467
|
+
_d = [{}];
|
|
3468
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3469
|
+
case 5:
|
|
3470
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3471
|
+
return [3, 13];
|
|
3472
|
+
case 6:
|
|
3473
|
+
_e = [{}];
|
|
3474
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3475
|
+
case 7:
|
|
3476
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3477
|
+
return [3, 13];
|
|
3478
|
+
case 8:
|
|
3479
|
+
_f = [{}];
|
|
3480
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3481
|
+
case 9:
|
|
3482
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3483
|
+
return [3, 13];
|
|
3484
|
+
case 10:
|
|
3485
|
+
_g = [{}];
|
|
3486
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3487
|
+
case 11:
|
|
3488
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3489
|
+
return [3, 13];
|
|
3490
|
+
case 12:
|
|
3491
|
+
parsedBody = parsedOutput.body;
|
|
3492
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3493
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3494
|
+
_j.label = 13;
|
|
3495
|
+
case 13:
|
|
3496
|
+
message = response.message || response.Message || errorCode;
|
|
3497
|
+
response.message = message;
|
|
3498
|
+
delete response.Message;
|
|
3499
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3500
|
+
}
|
|
3501
|
+
});
|
|
3502
|
+
}); };
|
|
3503
|
+
export var deserializeAws_json1_0GetServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3504
|
+
var data, contents, response;
|
|
3505
|
+
return __generator(this, function (_a) {
|
|
3506
|
+
switch (_a.label) {
|
|
3507
|
+
case 0:
|
|
3508
|
+
if (output.statusCode >= 300) {
|
|
3509
|
+
return [2, deserializeAws_json1_0GetServiceCommandError(output, context)];
|
|
3510
|
+
}
|
|
3511
|
+
return [4, parseBody(output.body, context)];
|
|
3512
|
+
case 1:
|
|
3513
|
+
data = _a.sent();
|
|
3514
|
+
contents = {};
|
|
3515
|
+
contents = deserializeAws_json1_0GetServiceOutput(data, context);
|
|
3516
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3517
|
+
return [2, Promise.resolve(response)];
|
|
3518
|
+
}
|
|
3519
|
+
});
|
|
3520
|
+
}); };
|
|
3521
|
+
var deserializeAws_json1_0GetServiceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3522
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3523
|
+
var _h;
|
|
3524
|
+
return __generator(this, function (_j) {
|
|
3525
|
+
switch (_j.label) {
|
|
3526
|
+
case 0:
|
|
3527
|
+
_a = [__assign({}, output)];
|
|
3528
|
+
_h = {};
|
|
3529
|
+
return [4, parseBody(output.body, context)];
|
|
3530
|
+
case 1:
|
|
3531
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3532
|
+
errorCode = "UnknownError";
|
|
3533
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3534
|
+
_b = errorCode;
|
|
3535
|
+
switch (_b) {
|
|
3536
|
+
case "AccessDeniedException": return [3, 2];
|
|
3537
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3538
|
+
case "InternalServerException": return [3, 4];
|
|
3539
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3540
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3541
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3542
|
+
case "ThrottlingException": return [3, 8];
|
|
3543
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3544
|
+
case "ValidationException": return [3, 10];
|
|
3545
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3546
|
+
}
|
|
3547
|
+
return [3, 12];
|
|
3548
|
+
case 2:
|
|
3549
|
+
_c = [{}];
|
|
3550
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3551
|
+
case 3:
|
|
3552
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3553
|
+
return [3, 13];
|
|
3554
|
+
case 4:
|
|
3555
|
+
_d = [{}];
|
|
3556
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3557
|
+
case 5:
|
|
3558
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3559
|
+
return [3, 13];
|
|
3560
|
+
case 6:
|
|
3561
|
+
_e = [{}];
|
|
3562
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3563
|
+
case 7:
|
|
3564
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3565
|
+
return [3, 13];
|
|
3566
|
+
case 8:
|
|
3567
|
+
_f = [{}];
|
|
3568
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3569
|
+
case 9:
|
|
3570
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3571
|
+
return [3, 13];
|
|
3572
|
+
case 10:
|
|
3573
|
+
_g = [{}];
|
|
3574
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3575
|
+
case 11:
|
|
3576
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3577
|
+
return [3, 13];
|
|
3578
|
+
case 12:
|
|
3579
|
+
parsedBody = parsedOutput.body;
|
|
3580
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3581
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3582
|
+
_j.label = 13;
|
|
3583
|
+
case 13:
|
|
3584
|
+
message = response.message || response.Message || errorCode;
|
|
3585
|
+
response.message = message;
|
|
3586
|
+
delete response.Message;
|
|
3587
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3588
|
+
}
|
|
3589
|
+
});
|
|
3590
|
+
}); };
|
|
3591
|
+
export var deserializeAws_json1_0GetServiceInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3592
|
+
var data, contents, response;
|
|
3593
|
+
return __generator(this, function (_a) {
|
|
3594
|
+
switch (_a.label) {
|
|
3595
|
+
case 0:
|
|
3596
|
+
if (output.statusCode >= 300) {
|
|
3597
|
+
return [2, deserializeAws_json1_0GetServiceInstanceCommandError(output, context)];
|
|
3598
|
+
}
|
|
3599
|
+
return [4, parseBody(output.body, context)];
|
|
3600
|
+
case 1:
|
|
3601
|
+
data = _a.sent();
|
|
3602
|
+
contents = {};
|
|
3603
|
+
contents = deserializeAws_json1_0GetServiceInstanceOutput(data, context);
|
|
3604
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3605
|
+
return [2, Promise.resolve(response)];
|
|
3606
|
+
}
|
|
3607
|
+
});
|
|
3608
|
+
}); };
|
|
3609
|
+
var deserializeAws_json1_0GetServiceInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3610
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3611
|
+
var _h;
|
|
3612
|
+
return __generator(this, function (_j) {
|
|
3613
|
+
switch (_j.label) {
|
|
3614
|
+
case 0:
|
|
3615
|
+
_a = [__assign({}, output)];
|
|
3616
|
+
_h = {};
|
|
3617
|
+
return [4, parseBody(output.body, context)];
|
|
3618
|
+
case 1:
|
|
3619
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3620
|
+
errorCode = "UnknownError";
|
|
3621
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3622
|
+
_b = errorCode;
|
|
3623
|
+
switch (_b) {
|
|
3624
|
+
case "AccessDeniedException": return [3, 2];
|
|
3625
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3626
|
+
case "InternalServerException": return [3, 4];
|
|
3627
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3628
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3629
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3630
|
+
case "ThrottlingException": return [3, 8];
|
|
3631
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3632
|
+
case "ValidationException": return [3, 10];
|
|
3633
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3634
|
+
}
|
|
3635
|
+
return [3, 12];
|
|
3636
|
+
case 2:
|
|
3637
|
+
_c = [{}];
|
|
3638
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3639
|
+
case 3:
|
|
3640
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3641
|
+
return [3, 13];
|
|
3642
|
+
case 4:
|
|
3643
|
+
_d = [{}];
|
|
3644
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3645
|
+
case 5:
|
|
3646
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3647
|
+
return [3, 13];
|
|
3648
|
+
case 6:
|
|
3649
|
+
_e = [{}];
|
|
3650
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3651
|
+
case 7:
|
|
3652
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3653
|
+
return [3, 13];
|
|
3654
|
+
case 8:
|
|
3655
|
+
_f = [{}];
|
|
3656
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3657
|
+
case 9:
|
|
3658
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3659
|
+
return [3, 13];
|
|
3660
|
+
case 10:
|
|
3661
|
+
_g = [{}];
|
|
3662
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3663
|
+
case 11:
|
|
3664
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3665
|
+
return [3, 13];
|
|
3666
|
+
case 12:
|
|
3667
|
+
parsedBody = parsedOutput.body;
|
|
3668
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3669
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3670
|
+
_j.label = 13;
|
|
3671
|
+
case 13:
|
|
3672
|
+
message = response.message || response.Message || errorCode;
|
|
3673
|
+
response.message = message;
|
|
3674
|
+
delete response.Message;
|
|
3675
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3676
|
+
}
|
|
3677
|
+
});
|
|
3678
|
+
}); };
|
|
3679
|
+
export var deserializeAws_json1_0GetServiceTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3680
|
+
var data, contents, response;
|
|
3681
|
+
return __generator(this, function (_a) {
|
|
3682
|
+
switch (_a.label) {
|
|
3683
|
+
case 0:
|
|
3684
|
+
if (output.statusCode >= 300) {
|
|
3685
|
+
return [2, deserializeAws_json1_0GetServiceTemplateCommandError(output, context)];
|
|
3686
|
+
}
|
|
3687
|
+
return [4, parseBody(output.body, context)];
|
|
3688
|
+
case 1:
|
|
3689
|
+
data = _a.sent();
|
|
3690
|
+
contents = {};
|
|
3691
|
+
contents = deserializeAws_json1_0GetServiceTemplateOutput(data, context);
|
|
3692
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3693
|
+
return [2, Promise.resolve(response)];
|
|
3694
|
+
}
|
|
3695
|
+
});
|
|
3696
|
+
}); };
|
|
3697
|
+
var deserializeAws_json1_0GetServiceTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3698
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3699
|
+
var _h;
|
|
3700
|
+
return __generator(this, function (_j) {
|
|
3701
|
+
switch (_j.label) {
|
|
3702
|
+
case 0:
|
|
3703
|
+
_a = [__assign({}, output)];
|
|
3704
|
+
_h = {};
|
|
3705
|
+
return [4, parseBody(output.body, context)];
|
|
3706
|
+
case 1:
|
|
3707
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3708
|
+
errorCode = "UnknownError";
|
|
3709
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3710
|
+
_b = errorCode;
|
|
3711
|
+
switch (_b) {
|
|
3712
|
+
case "AccessDeniedException": return [3, 2];
|
|
3713
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3714
|
+
case "InternalServerException": return [3, 4];
|
|
3715
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3716
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3717
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3718
|
+
case "ThrottlingException": return [3, 8];
|
|
3719
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3720
|
+
case "ValidationException": return [3, 10];
|
|
3721
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3722
|
+
}
|
|
3723
|
+
return [3, 12];
|
|
3724
|
+
case 2:
|
|
3725
|
+
_c = [{}];
|
|
3726
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3727
|
+
case 3:
|
|
3728
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3729
|
+
return [3, 13];
|
|
3730
|
+
case 4:
|
|
3731
|
+
_d = [{}];
|
|
3732
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3733
|
+
case 5:
|
|
3734
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3735
|
+
return [3, 13];
|
|
3736
|
+
case 6:
|
|
3737
|
+
_e = [{}];
|
|
3738
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3739
|
+
case 7:
|
|
3740
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3741
|
+
return [3, 13];
|
|
3742
|
+
case 8:
|
|
3743
|
+
_f = [{}];
|
|
3744
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3745
|
+
case 9:
|
|
3746
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3747
|
+
return [3, 13];
|
|
3748
|
+
case 10:
|
|
3749
|
+
_g = [{}];
|
|
3750
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3751
|
+
case 11:
|
|
3752
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3753
|
+
return [3, 13];
|
|
3754
|
+
case 12:
|
|
3755
|
+
parsedBody = parsedOutput.body;
|
|
3756
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3757
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3758
|
+
_j.label = 13;
|
|
3759
|
+
case 13:
|
|
3760
|
+
message = response.message || response.Message || errorCode;
|
|
3761
|
+
response.message = message;
|
|
3762
|
+
delete response.Message;
|
|
3763
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3764
|
+
}
|
|
3765
|
+
});
|
|
3766
|
+
}); };
|
|
3767
|
+
export var deserializeAws_json1_0GetServiceTemplateVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3768
|
+
var data, contents, response;
|
|
3769
|
+
return __generator(this, function (_a) {
|
|
3770
|
+
switch (_a.label) {
|
|
3771
|
+
case 0:
|
|
3772
|
+
if (output.statusCode >= 300) {
|
|
3773
|
+
return [2, deserializeAws_json1_0GetServiceTemplateVersionCommandError(output, context)];
|
|
3774
|
+
}
|
|
3775
|
+
return [4, parseBody(output.body, context)];
|
|
3776
|
+
case 1:
|
|
3777
|
+
data = _a.sent();
|
|
3778
|
+
contents = {};
|
|
3779
|
+
contents = deserializeAws_json1_0GetServiceTemplateVersionOutput(data, context);
|
|
3780
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3781
|
+
return [2, Promise.resolve(response)];
|
|
3782
|
+
}
|
|
3783
|
+
});
|
|
3784
|
+
}); };
|
|
3785
|
+
var deserializeAws_json1_0GetServiceTemplateVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3786
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3787
|
+
var _h;
|
|
3788
|
+
return __generator(this, function (_j) {
|
|
3789
|
+
switch (_j.label) {
|
|
3790
|
+
case 0:
|
|
3791
|
+
_a = [__assign({}, output)];
|
|
3792
|
+
_h = {};
|
|
3793
|
+
return [4, parseBody(output.body, context)];
|
|
3794
|
+
case 1:
|
|
3795
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3796
|
+
errorCode = "UnknownError";
|
|
3797
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3798
|
+
_b = errorCode;
|
|
3799
|
+
switch (_b) {
|
|
3800
|
+
case "AccessDeniedException": return [3, 2];
|
|
3801
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3802
|
+
case "InternalServerException": return [3, 4];
|
|
3803
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3804
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3805
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3806
|
+
case "ThrottlingException": return [3, 8];
|
|
3807
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3808
|
+
case "ValidationException": return [3, 10];
|
|
3809
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3810
|
+
}
|
|
3811
|
+
return [3, 12];
|
|
3812
|
+
case 2:
|
|
3813
|
+
_c = [{}];
|
|
3814
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3815
|
+
case 3:
|
|
3816
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3817
|
+
return [3, 13];
|
|
3818
|
+
case 4:
|
|
3819
|
+
_d = [{}];
|
|
3820
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3821
|
+
case 5:
|
|
3822
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3823
|
+
return [3, 13];
|
|
3824
|
+
case 6:
|
|
3825
|
+
_e = [{}];
|
|
3826
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3827
|
+
case 7:
|
|
3828
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3829
|
+
return [3, 13];
|
|
3830
|
+
case 8:
|
|
3831
|
+
_f = [{}];
|
|
3832
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3833
|
+
case 9:
|
|
3834
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3835
|
+
return [3, 13];
|
|
3836
|
+
case 10:
|
|
3837
|
+
_g = [{}];
|
|
3838
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3839
|
+
case 11:
|
|
3840
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3841
|
+
return [3, 13];
|
|
3842
|
+
case 12:
|
|
3843
|
+
parsedBody = parsedOutput.body;
|
|
3844
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3845
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3846
|
+
_j.label = 13;
|
|
3847
|
+
case 13:
|
|
3848
|
+
message = response.message || response.Message || errorCode;
|
|
3849
|
+
response.message = message;
|
|
3850
|
+
delete response.Message;
|
|
3851
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3852
|
+
}
|
|
3853
|
+
});
|
|
3854
|
+
}); };
|
|
3855
|
+
export var deserializeAws_json1_0GetTemplateSyncConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3856
|
+
var data, contents, response;
|
|
3857
|
+
return __generator(this, function (_a) {
|
|
3858
|
+
switch (_a.label) {
|
|
3859
|
+
case 0:
|
|
3860
|
+
if (output.statusCode >= 300) {
|
|
3861
|
+
return [2, deserializeAws_json1_0GetTemplateSyncConfigCommandError(output, context)];
|
|
3862
|
+
}
|
|
3863
|
+
return [4, parseBody(output.body, context)];
|
|
3864
|
+
case 1:
|
|
3865
|
+
data = _a.sent();
|
|
3866
|
+
contents = {};
|
|
3867
|
+
contents = deserializeAws_json1_0GetTemplateSyncConfigOutput(data, context);
|
|
3868
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3869
|
+
return [2, Promise.resolve(response)];
|
|
3870
|
+
}
|
|
3871
|
+
});
|
|
3872
|
+
}); };
|
|
3873
|
+
var deserializeAws_json1_0GetTemplateSyncConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3874
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3875
|
+
var _h;
|
|
3876
|
+
return __generator(this, function (_j) {
|
|
3877
|
+
switch (_j.label) {
|
|
3878
|
+
case 0:
|
|
3879
|
+
_a = [__assign({}, output)];
|
|
3880
|
+
_h = {};
|
|
3881
|
+
return [4, parseBody(output.body, context)];
|
|
3882
|
+
case 1:
|
|
3883
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3884
|
+
errorCode = "UnknownError";
|
|
3885
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3886
|
+
_b = errorCode;
|
|
3887
|
+
switch (_b) {
|
|
3888
|
+
case "AccessDeniedException": return [3, 2];
|
|
3889
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3890
|
+
case "InternalServerException": return [3, 4];
|
|
3891
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3892
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3893
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3894
|
+
case "ThrottlingException": return [3, 8];
|
|
3895
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3896
|
+
case "ValidationException": return [3, 10];
|
|
3897
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3898
|
+
}
|
|
3899
|
+
return [3, 12];
|
|
3900
|
+
case 2:
|
|
3901
|
+
_c = [{}];
|
|
3902
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3903
|
+
case 3:
|
|
3904
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3905
|
+
return [3, 13];
|
|
3906
|
+
case 4:
|
|
3907
|
+
_d = [{}];
|
|
3908
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3909
|
+
case 5:
|
|
3910
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3911
|
+
return [3, 13];
|
|
3912
|
+
case 6:
|
|
3913
|
+
_e = [{}];
|
|
3914
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3915
|
+
case 7:
|
|
3916
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3917
|
+
return [3, 13];
|
|
3918
|
+
case 8:
|
|
3919
|
+
_f = [{}];
|
|
3920
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3921
|
+
case 9:
|
|
3922
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3923
|
+
return [3, 13];
|
|
3924
|
+
case 10:
|
|
3925
|
+
_g = [{}];
|
|
3926
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3927
|
+
case 11:
|
|
3928
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3929
|
+
return [3, 13];
|
|
3930
|
+
case 12:
|
|
3931
|
+
parsedBody = parsedOutput.body;
|
|
3932
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3933
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3934
|
+
_j.label = 13;
|
|
3935
|
+
case 13:
|
|
3936
|
+
message = response.message || response.Message || errorCode;
|
|
3937
|
+
response.message = message;
|
|
3938
|
+
delete response.Message;
|
|
3939
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3940
|
+
}
|
|
3941
|
+
});
|
|
3942
|
+
}); };
|
|
3943
|
+
export var deserializeAws_json1_0GetTemplateSyncStatusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3944
|
+
var data, contents, response;
|
|
3945
|
+
return __generator(this, function (_a) {
|
|
3946
|
+
switch (_a.label) {
|
|
3947
|
+
case 0:
|
|
3948
|
+
if (output.statusCode >= 300) {
|
|
3949
|
+
return [2, deserializeAws_json1_0GetTemplateSyncStatusCommandError(output, context)];
|
|
3950
|
+
}
|
|
3951
|
+
return [4, parseBody(output.body, context)];
|
|
3952
|
+
case 1:
|
|
3953
|
+
data = _a.sent();
|
|
3954
|
+
contents = {};
|
|
3955
|
+
contents = deserializeAws_json1_0GetTemplateSyncStatusOutput(data, context);
|
|
3956
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3957
|
+
return [2, Promise.resolve(response)];
|
|
3958
|
+
}
|
|
3959
|
+
});
|
|
3960
|
+
}); };
|
|
3961
|
+
var deserializeAws_json1_0GetTemplateSyncStatusCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3962
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3963
|
+
var _h;
|
|
3964
|
+
return __generator(this, function (_j) {
|
|
3965
|
+
switch (_j.label) {
|
|
3966
|
+
case 0:
|
|
3967
|
+
_a = [__assign({}, output)];
|
|
3968
|
+
_h = {};
|
|
3969
|
+
return [4, parseBody(output.body, context)];
|
|
3970
|
+
case 1:
|
|
3971
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3972
|
+
errorCode = "UnknownError";
|
|
3973
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3974
|
+
_b = errorCode;
|
|
3975
|
+
switch (_b) {
|
|
3976
|
+
case "AccessDeniedException": return [3, 2];
|
|
3977
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3978
|
+
case "InternalServerException": return [3, 4];
|
|
3979
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3980
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3981
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
3982
|
+
case "ThrottlingException": return [3, 8];
|
|
3983
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
3984
|
+
case "ValidationException": return [3, 10];
|
|
3985
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3986
|
+
}
|
|
3987
|
+
return [3, 12];
|
|
3988
|
+
case 2:
|
|
3989
|
+
_c = [{}];
|
|
3990
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3991
|
+
case 3:
|
|
3992
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3993
|
+
return [3, 13];
|
|
3994
|
+
case 4:
|
|
3995
|
+
_d = [{}];
|
|
3996
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3997
|
+
case 5:
|
|
3998
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3999
|
+
return [3, 13];
|
|
4000
|
+
case 6:
|
|
4001
|
+
_e = [{}];
|
|
4002
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4003
|
+
case 7:
|
|
4004
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4005
|
+
return [3, 13];
|
|
4006
|
+
case 8:
|
|
4007
|
+
_f = [{}];
|
|
4008
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4009
|
+
case 9:
|
|
4010
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4011
|
+
return [3, 13];
|
|
4012
|
+
case 10:
|
|
4013
|
+
_g = [{}];
|
|
4014
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
4015
|
+
case 11:
|
|
4016
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4017
|
+
return [3, 13];
|
|
4018
|
+
case 12:
|
|
4019
|
+
parsedBody = parsedOutput.body;
|
|
4020
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4021
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4022
|
+
_j.label = 13;
|
|
4023
|
+
case 13:
|
|
4024
|
+
message = response.message || response.Message || errorCode;
|
|
4025
|
+
response.message = message;
|
|
4026
|
+
delete response.Message;
|
|
4027
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4028
|
+
}
|
|
4029
|
+
});
|
|
4030
|
+
}); };
|
|
4031
|
+
export var deserializeAws_json1_0ListEnvironmentAccountConnectionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4032
|
+
var data, contents, response;
|
|
4033
|
+
return __generator(this, function (_a) {
|
|
4034
|
+
switch (_a.label) {
|
|
4035
|
+
case 0:
|
|
4036
|
+
if (output.statusCode >= 300) {
|
|
4037
|
+
return [2, deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError(output, context)];
|
|
4038
|
+
}
|
|
4039
|
+
return [4, parseBody(output.body, context)];
|
|
4040
|
+
case 1:
|
|
4041
|
+
data = _a.sent();
|
|
4042
|
+
contents = {};
|
|
4043
|
+
contents = deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput(data, context);
|
|
4044
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4045
|
+
return [2, Promise.resolve(response)];
|
|
4046
|
+
}
|
|
4047
|
+
});
|
|
4048
|
+
}); };
|
|
4049
|
+
var deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4050
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
4051
|
+
var _g;
|
|
4052
|
+
return __generator(this, function (_h) {
|
|
4053
|
+
switch (_h.label) {
|
|
4054
|
+
case 0:
|
|
4055
|
+
_a = [__assign({}, output)];
|
|
4056
|
+
_g = {};
|
|
4057
|
+
return [4, parseBody(output.body, context)];
|
|
4058
|
+
case 1:
|
|
4059
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
4060
|
+
errorCode = "UnknownError";
|
|
4061
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4062
|
+
_b = errorCode;
|
|
4063
|
+
switch (_b) {
|
|
4064
|
+
case "AccessDeniedException": return [3, 2];
|
|
4065
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
4066
|
+
case "InternalServerException": return [3, 4];
|
|
4067
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
4068
|
+
case "ThrottlingException": return [3, 6];
|
|
4069
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 6];
|
|
4070
|
+
case "ValidationException": return [3, 8];
|
|
4071
|
+
case "com.amazonaws.proton#ValidationException": return [3, 8];
|
|
4072
|
+
}
|
|
4073
|
+
return [3, 10];
|
|
4074
|
+
case 2:
|
|
4075
|
+
_c = [{}];
|
|
4076
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
4077
|
+
case 3:
|
|
4078
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4079
|
+
return [3, 11];
|
|
4080
|
+
case 4:
|
|
4081
|
+
_d = [{}];
|
|
4082
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
4083
|
+
case 5:
|
|
4084
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4085
|
+
return [3, 11];
|
|
4086
|
+
case 6:
|
|
4087
|
+
_e = [{}];
|
|
4088
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
4089
|
+
case 7:
|
|
4090
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4091
|
+
return [3, 11];
|
|
4092
|
+
case 8:
|
|
4093
|
+
_f = [{}];
|
|
4094
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
4095
|
+
case 9:
|
|
4096
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4097
|
+
return [3, 11];
|
|
4098
|
+
case 10:
|
|
2381
4099
|
parsedBody = parsedOutput.body;
|
|
2382
4100
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2383
4101
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2384
|
-
|
|
2385
|
-
case
|
|
4102
|
+
_h.label = 11;
|
|
4103
|
+
case 11:
|
|
2386
4104
|
message = response.message || response.Message || errorCode;
|
|
2387
4105
|
response.message = message;
|
|
2388
4106
|
delete response.Message;
|
|
@@ -2390,25 +4108,25 @@ var deserializeAws_json1_0GetAccountSettingsCommandError = function (output, con
|
|
|
2390
4108
|
}
|
|
2391
4109
|
});
|
|
2392
4110
|
}); };
|
|
2393
|
-
export var
|
|
4111
|
+
export var deserializeAws_json1_0ListEnvironmentOutputsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2394
4112
|
var data, contents, response;
|
|
2395
4113
|
return __generator(this, function (_a) {
|
|
2396
4114
|
switch (_a.label) {
|
|
2397
4115
|
case 0:
|
|
2398
4116
|
if (output.statusCode >= 300) {
|
|
2399
|
-
return [2,
|
|
4117
|
+
return [2, deserializeAws_json1_0ListEnvironmentOutputsCommandError(output, context)];
|
|
2400
4118
|
}
|
|
2401
4119
|
return [4, parseBody(output.body, context)];
|
|
2402
4120
|
case 1:
|
|
2403
4121
|
data = _a.sent();
|
|
2404
4122
|
contents = {};
|
|
2405
|
-
contents =
|
|
4123
|
+
contents = deserializeAws_json1_0ListEnvironmentOutputsOutput(data, context);
|
|
2406
4124
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2407
4125
|
return [2, Promise.resolve(response)];
|
|
2408
4126
|
}
|
|
2409
4127
|
});
|
|
2410
4128
|
}); };
|
|
2411
|
-
var
|
|
4129
|
+
var deserializeAws_json1_0ListEnvironmentOutputsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2412
4130
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2413
4131
|
var _h;
|
|
2414
4132
|
return __generator(this, function (_j) {
|
|
@@ -2478,25 +4196,25 @@ var deserializeAws_json1_0GetEnvironmentCommandError = function (output, context
|
|
|
2478
4196
|
}
|
|
2479
4197
|
});
|
|
2480
4198
|
}); };
|
|
2481
|
-
export var
|
|
4199
|
+
export var deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2482
4200
|
var data, contents, response;
|
|
2483
4201
|
return __generator(this, function (_a) {
|
|
2484
4202
|
switch (_a.label) {
|
|
2485
4203
|
case 0:
|
|
2486
4204
|
if (output.statusCode >= 300) {
|
|
2487
|
-
return [2,
|
|
4205
|
+
return [2, deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommandError(output, context)];
|
|
2488
4206
|
}
|
|
2489
4207
|
return [4, parseBody(output.body, context)];
|
|
2490
4208
|
case 1:
|
|
2491
4209
|
data = _a.sent();
|
|
2492
4210
|
contents = {};
|
|
2493
|
-
contents =
|
|
4211
|
+
contents = deserializeAws_json1_0ListEnvironmentProvisionedResourcesOutput(data, context);
|
|
2494
4212
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2495
4213
|
return [2, Promise.resolve(response)];
|
|
2496
4214
|
}
|
|
2497
4215
|
});
|
|
2498
4216
|
}); };
|
|
2499
|
-
var
|
|
4217
|
+
var deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2500
4218
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2501
4219
|
var _h;
|
|
2502
4220
|
return __generator(this, function (_j) {
|
|
@@ -2566,25 +4284,25 @@ var deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError = function
|
|
|
2566
4284
|
}
|
|
2567
4285
|
});
|
|
2568
4286
|
}); };
|
|
2569
|
-
export var
|
|
4287
|
+
export var deserializeAws_json1_0ListEnvironmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2570
4288
|
var data, contents, response;
|
|
2571
4289
|
return __generator(this, function (_a) {
|
|
2572
4290
|
switch (_a.label) {
|
|
2573
4291
|
case 0:
|
|
2574
4292
|
if (output.statusCode >= 300) {
|
|
2575
|
-
return [2,
|
|
4293
|
+
return [2, deserializeAws_json1_0ListEnvironmentsCommandError(output, context)];
|
|
2576
4294
|
}
|
|
2577
4295
|
return [4, parseBody(output.body, context)];
|
|
2578
4296
|
case 1:
|
|
2579
4297
|
data = _a.sent();
|
|
2580
4298
|
contents = {};
|
|
2581
|
-
contents =
|
|
4299
|
+
contents = deserializeAws_json1_0ListEnvironmentsOutput(data, context);
|
|
2582
4300
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2583
4301
|
return [2, Promise.resolve(response)];
|
|
2584
4302
|
}
|
|
2585
4303
|
});
|
|
2586
4304
|
}); };
|
|
2587
|
-
var
|
|
4305
|
+
var deserializeAws_json1_0ListEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2588
4306
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2589
4307
|
var _h;
|
|
2590
4308
|
return __generator(this, function (_j) {
|
|
@@ -2654,35 +4372,35 @@ var deserializeAws_json1_0GetEnvironmentTemplateCommandError = function (output,
|
|
|
2654
4372
|
}
|
|
2655
4373
|
});
|
|
2656
4374
|
}); };
|
|
2657
|
-
export var
|
|
4375
|
+
export var deserializeAws_json1_0ListEnvironmentTemplatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2658
4376
|
var data, contents, response;
|
|
2659
4377
|
return __generator(this, function (_a) {
|
|
2660
4378
|
switch (_a.label) {
|
|
2661
4379
|
case 0:
|
|
2662
4380
|
if (output.statusCode >= 300) {
|
|
2663
|
-
return [2,
|
|
4381
|
+
return [2, deserializeAws_json1_0ListEnvironmentTemplatesCommandError(output, context)];
|
|
2664
4382
|
}
|
|
2665
4383
|
return [4, parseBody(output.body, context)];
|
|
2666
4384
|
case 1:
|
|
2667
4385
|
data = _a.sent();
|
|
2668
4386
|
contents = {};
|
|
2669
|
-
contents =
|
|
4387
|
+
contents = deserializeAws_json1_0ListEnvironmentTemplatesOutput(data, context);
|
|
2670
4388
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2671
4389
|
return [2, Promise.resolve(response)];
|
|
2672
4390
|
}
|
|
2673
4391
|
});
|
|
2674
4392
|
}); };
|
|
2675
|
-
var
|
|
2676
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f,
|
|
2677
|
-
var
|
|
2678
|
-
return __generator(this, function (
|
|
2679
|
-
switch (
|
|
4393
|
+
var deserializeAws_json1_0ListEnvironmentTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4394
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
4395
|
+
var _g;
|
|
4396
|
+
return __generator(this, function (_h) {
|
|
4397
|
+
switch (_h.label) {
|
|
2680
4398
|
case 0:
|
|
2681
4399
|
_a = [__assign({}, output)];
|
|
2682
|
-
|
|
4400
|
+
_g = {};
|
|
2683
4401
|
return [4, parseBody(output.body, context)];
|
|
2684
4402
|
case 1:
|
|
2685
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4403
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2686
4404
|
errorCode = "UnknownError";
|
|
2687
4405
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
4406
|
_b = errorCode;
|
|
@@ -2691,50 +4409,42 @@ var deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = function (
|
|
|
2691
4409
|
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
2692
4410
|
case "InternalServerException": return [3, 4];
|
|
2693
4411
|
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
2694
|
-
case "
|
|
2695
|
-
case "com.amazonaws.proton#
|
|
2696
|
-
case "
|
|
2697
|
-
case "com.amazonaws.proton#
|
|
2698
|
-
case "ValidationException": return [3, 10];
|
|
2699
|
-
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
4412
|
+
case "ThrottlingException": return [3, 6];
|
|
4413
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 6];
|
|
4414
|
+
case "ValidationException": return [3, 8];
|
|
4415
|
+
case "com.amazonaws.proton#ValidationException": return [3, 8];
|
|
2700
4416
|
}
|
|
2701
|
-
return [3,
|
|
4417
|
+
return [3, 10];
|
|
2702
4418
|
case 2:
|
|
2703
4419
|
_c = [{}];
|
|
2704
4420
|
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2705
4421
|
case 3:
|
|
2706
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2707
|
-
return [3,
|
|
4422
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4423
|
+
return [3, 11];
|
|
2708
4424
|
case 4:
|
|
2709
4425
|
_d = [{}];
|
|
2710
4426
|
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
2711
4427
|
case 5:
|
|
2712
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2713
|
-
return [3,
|
|
4428
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4429
|
+
return [3, 11];
|
|
2714
4430
|
case 6:
|
|
2715
4431
|
_e = [{}];
|
|
2716
|
-
return [4,
|
|
4432
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2717
4433
|
case 7:
|
|
2718
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2719
|
-
return [3,
|
|
4434
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4435
|
+
return [3, 11];
|
|
2720
4436
|
case 8:
|
|
2721
4437
|
_f = [{}];
|
|
2722
|
-
return [4,
|
|
4438
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2723
4439
|
case 9:
|
|
2724
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2725
|
-
return [3,
|
|
4440
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4441
|
+
return [3, 11];
|
|
2726
4442
|
case 10:
|
|
2727
|
-
_g = [{}];
|
|
2728
|
-
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2729
|
-
case 11:
|
|
2730
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2731
|
-
return [3, 13];
|
|
2732
|
-
case 12:
|
|
2733
4443
|
parsedBody = parsedOutput.body;
|
|
2734
4444
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2735
4445
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2736
|
-
|
|
2737
|
-
case
|
|
4446
|
+
_h.label = 11;
|
|
4447
|
+
case 11:
|
|
2738
4448
|
message = response.message || response.Message || errorCode;
|
|
2739
4449
|
response.message = message;
|
|
2740
4450
|
delete response.Message;
|
|
@@ -2742,25 +4452,25 @@ var deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = function (
|
|
|
2742
4452
|
}
|
|
2743
4453
|
});
|
|
2744
4454
|
}); };
|
|
2745
|
-
export var
|
|
4455
|
+
export var deserializeAws_json1_0ListEnvironmentTemplateVersionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2746
4456
|
var data, contents, response;
|
|
2747
4457
|
return __generator(this, function (_a) {
|
|
2748
4458
|
switch (_a.label) {
|
|
2749
4459
|
case 0:
|
|
2750
4460
|
if (output.statusCode >= 300) {
|
|
2751
|
-
return [2,
|
|
4461
|
+
return [2, deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError(output, context)];
|
|
2752
4462
|
}
|
|
2753
4463
|
return [4, parseBody(output.body, context)];
|
|
2754
4464
|
case 1:
|
|
2755
4465
|
data = _a.sent();
|
|
2756
4466
|
contents = {};
|
|
2757
|
-
contents =
|
|
4467
|
+
contents = deserializeAws_json1_0ListEnvironmentTemplateVersionsOutput(data, context);
|
|
2758
4468
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2759
4469
|
return [2, Promise.resolve(response)];
|
|
2760
4470
|
}
|
|
2761
4471
|
});
|
|
2762
4472
|
}); };
|
|
2763
|
-
var
|
|
4473
|
+
var deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2764
4474
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2765
4475
|
var _h;
|
|
2766
4476
|
return __generator(this, function (_j) {
|
|
@@ -2830,25 +4540,25 @@ var deserializeAws_json1_0GetServiceCommandError = function (output, context) {
|
|
|
2830
4540
|
}
|
|
2831
4541
|
});
|
|
2832
4542
|
}); };
|
|
2833
|
-
export var
|
|
4543
|
+
export var deserializeAws_json1_0ListRepositoriesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2834
4544
|
var data, contents, response;
|
|
2835
4545
|
return __generator(this, function (_a) {
|
|
2836
4546
|
switch (_a.label) {
|
|
2837
4547
|
case 0:
|
|
2838
4548
|
if (output.statusCode >= 300) {
|
|
2839
|
-
return [2,
|
|
4549
|
+
return [2, deserializeAws_json1_0ListRepositoriesCommandError(output, context)];
|
|
2840
4550
|
}
|
|
2841
4551
|
return [4, parseBody(output.body, context)];
|
|
2842
4552
|
case 1:
|
|
2843
4553
|
data = _a.sent();
|
|
2844
4554
|
contents = {};
|
|
2845
|
-
contents =
|
|
4555
|
+
contents = deserializeAws_json1_0ListRepositoriesOutput(data, context);
|
|
2846
4556
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2847
4557
|
return [2, Promise.resolve(response)];
|
|
2848
4558
|
}
|
|
2849
4559
|
});
|
|
2850
4560
|
}); };
|
|
2851
|
-
var
|
|
4561
|
+
var deserializeAws_json1_0ListRepositoriesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2852
4562
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
2853
4563
|
var _h;
|
|
2854
4564
|
return __generator(this, function (_j) {
|
|
@@ -2918,35 +4628,35 @@ var deserializeAws_json1_0GetServiceInstanceCommandError = function (output, con
|
|
|
2918
4628
|
}
|
|
2919
4629
|
});
|
|
2920
4630
|
}); };
|
|
2921
|
-
export var
|
|
4631
|
+
export var deserializeAws_json1_0ListRepositorySyncDefinitionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2922
4632
|
var data, contents, response;
|
|
2923
4633
|
return __generator(this, function (_a) {
|
|
2924
4634
|
switch (_a.label) {
|
|
2925
4635
|
case 0:
|
|
2926
4636
|
if (output.statusCode >= 300) {
|
|
2927
|
-
return [2,
|
|
4637
|
+
return [2, deserializeAws_json1_0ListRepositorySyncDefinitionsCommandError(output, context)];
|
|
2928
4638
|
}
|
|
2929
4639
|
return [4, parseBody(output.body, context)];
|
|
2930
4640
|
case 1:
|
|
2931
4641
|
data = _a.sent();
|
|
2932
4642
|
contents = {};
|
|
2933
|
-
contents =
|
|
4643
|
+
contents = deserializeAws_json1_0ListRepositorySyncDefinitionsOutput(data, context);
|
|
2934
4644
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2935
4645
|
return [2, Promise.resolve(response)];
|
|
2936
4646
|
}
|
|
2937
4647
|
});
|
|
2938
4648
|
}); };
|
|
2939
|
-
var
|
|
2940
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f,
|
|
2941
|
-
var
|
|
2942
|
-
return __generator(this, function (
|
|
2943
|
-
switch (
|
|
4649
|
+
var deserializeAws_json1_0ListRepositorySyncDefinitionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4650
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
4651
|
+
var _g;
|
|
4652
|
+
return __generator(this, function (_h) {
|
|
4653
|
+
switch (_h.label) {
|
|
2944
4654
|
case 0:
|
|
2945
4655
|
_a = [__assign({}, output)];
|
|
2946
|
-
|
|
4656
|
+
_g = {};
|
|
2947
4657
|
return [4, parseBody(output.body, context)];
|
|
2948
4658
|
case 1:
|
|
2949
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4659
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2950
4660
|
errorCode = "UnknownError";
|
|
2951
4661
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2952
4662
|
_b = errorCode;
|
|
@@ -2955,50 +4665,42 @@ var deserializeAws_json1_0GetServiceTemplateCommandError = function (output, con
|
|
|
2955
4665
|
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
2956
4666
|
case "InternalServerException": return [3, 4];
|
|
2957
4667
|
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
2958
|
-
case "
|
|
2959
|
-
case "com.amazonaws.proton#
|
|
2960
|
-
case "
|
|
2961
|
-
case "com.amazonaws.proton#
|
|
2962
|
-
case "ValidationException": return [3, 10];
|
|
2963
|
-
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
4668
|
+
case "ThrottlingException": return [3, 6];
|
|
4669
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 6];
|
|
4670
|
+
case "ValidationException": return [3, 8];
|
|
4671
|
+
case "com.amazonaws.proton#ValidationException": return [3, 8];
|
|
2964
4672
|
}
|
|
2965
|
-
return [3,
|
|
4673
|
+
return [3, 10];
|
|
2966
4674
|
case 2:
|
|
2967
4675
|
_c = [{}];
|
|
2968
4676
|
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2969
4677
|
case 3:
|
|
2970
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
2971
|
-
return [3,
|
|
4678
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4679
|
+
return [3, 11];
|
|
2972
4680
|
case 4:
|
|
2973
4681
|
_d = [{}];
|
|
2974
4682
|
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
2975
4683
|
case 5:
|
|
2976
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
2977
|
-
return [3,
|
|
4684
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4685
|
+
return [3, 11];
|
|
2978
4686
|
case 6:
|
|
2979
4687
|
_e = [{}];
|
|
2980
|
-
return [4,
|
|
4688
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2981
4689
|
case 7:
|
|
2982
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
2983
|
-
return [3,
|
|
4690
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4691
|
+
return [3, 11];
|
|
2984
4692
|
case 8:
|
|
2985
4693
|
_f = [{}];
|
|
2986
|
-
return [4,
|
|
4694
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2987
4695
|
case 9:
|
|
2988
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
2989
|
-
return [3,
|
|
4696
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4697
|
+
return [3, 11];
|
|
2990
4698
|
case 10:
|
|
2991
|
-
_g = [{}];
|
|
2992
|
-
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2993
|
-
case 11:
|
|
2994
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2995
|
-
return [3, 13];
|
|
2996
|
-
case 12:
|
|
2997
4699
|
parsedBody = parsedOutput.body;
|
|
2998
4700
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2999
4701
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3000
|
-
|
|
3001
|
-
case
|
|
4702
|
+
_h.label = 11;
|
|
4703
|
+
case 11:
|
|
3002
4704
|
message = response.message || response.Message || errorCode;
|
|
3003
4705
|
response.message = message;
|
|
3004
4706
|
delete response.Message;
|
|
@@ -3006,25 +4708,25 @@ var deserializeAws_json1_0GetServiceTemplateCommandError = function (output, con
|
|
|
3006
4708
|
}
|
|
3007
4709
|
});
|
|
3008
4710
|
}); };
|
|
3009
|
-
export var
|
|
4711
|
+
export var deserializeAws_json1_0ListServiceInstanceOutputsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3010
4712
|
var data, contents, response;
|
|
3011
4713
|
return __generator(this, function (_a) {
|
|
3012
4714
|
switch (_a.label) {
|
|
3013
4715
|
case 0:
|
|
3014
4716
|
if (output.statusCode >= 300) {
|
|
3015
|
-
return [2,
|
|
4717
|
+
return [2, deserializeAws_json1_0ListServiceInstanceOutputsCommandError(output, context)];
|
|
3016
4718
|
}
|
|
3017
4719
|
return [4, parseBody(output.body, context)];
|
|
3018
4720
|
case 1:
|
|
3019
4721
|
data = _a.sent();
|
|
3020
4722
|
contents = {};
|
|
3021
|
-
contents =
|
|
4723
|
+
contents = deserializeAws_json1_0ListServiceInstanceOutputsOutput(data, context);
|
|
3022
4724
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3023
4725
|
return [2, Promise.resolve(response)];
|
|
3024
4726
|
}
|
|
3025
4727
|
});
|
|
3026
4728
|
}); };
|
|
3027
|
-
var
|
|
4729
|
+
var deserializeAws_json1_0ListServiceInstanceOutputsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3028
4730
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3029
4731
|
var _h;
|
|
3030
4732
|
return __generator(this, function (_j) {
|
|
@@ -3094,105 +4796,25 @@ var deserializeAws_json1_0GetServiceTemplateVersionCommandError = function (outp
|
|
|
3094
4796
|
}
|
|
3095
4797
|
});
|
|
3096
4798
|
}); };
|
|
3097
|
-
export var
|
|
3098
|
-
var data, contents, response;
|
|
3099
|
-
return __generator(this, function (_a) {
|
|
3100
|
-
switch (_a.label) {
|
|
3101
|
-
case 0:
|
|
3102
|
-
if (output.statusCode >= 300) {
|
|
3103
|
-
return [2, deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError(output, context)];
|
|
3104
|
-
}
|
|
3105
|
-
return [4, parseBody(output.body, context)];
|
|
3106
|
-
case 1:
|
|
3107
|
-
data = _a.sent();
|
|
3108
|
-
contents = {};
|
|
3109
|
-
contents = deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput(data, context);
|
|
3110
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3111
|
-
return [2, Promise.resolve(response)];
|
|
3112
|
-
}
|
|
3113
|
-
});
|
|
3114
|
-
}); };
|
|
3115
|
-
var deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3116
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
3117
|
-
var _g;
|
|
3118
|
-
return __generator(this, function (_h) {
|
|
3119
|
-
switch (_h.label) {
|
|
3120
|
-
case 0:
|
|
3121
|
-
_a = [__assign({}, output)];
|
|
3122
|
-
_g = {};
|
|
3123
|
-
return [4, parseBody(output.body, context)];
|
|
3124
|
-
case 1:
|
|
3125
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
3126
|
-
errorCode = "UnknownError";
|
|
3127
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3128
|
-
_b = errorCode;
|
|
3129
|
-
switch (_b) {
|
|
3130
|
-
case "AccessDeniedException": return [3, 2];
|
|
3131
|
-
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3132
|
-
case "InternalServerException": return [3, 4];
|
|
3133
|
-
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3134
|
-
case "ThrottlingException": return [3, 6];
|
|
3135
|
-
case "com.amazonaws.proton#ThrottlingException": return [3, 6];
|
|
3136
|
-
case "ValidationException": return [3, 8];
|
|
3137
|
-
case "com.amazonaws.proton#ValidationException": return [3, 8];
|
|
3138
|
-
}
|
|
3139
|
-
return [3, 10];
|
|
3140
|
-
case 2:
|
|
3141
|
-
_c = [{}];
|
|
3142
|
-
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3143
|
-
case 3:
|
|
3144
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3145
|
-
return [3, 11];
|
|
3146
|
-
case 4:
|
|
3147
|
-
_d = [{}];
|
|
3148
|
-
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3149
|
-
case 5:
|
|
3150
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3151
|
-
return [3, 11];
|
|
3152
|
-
case 6:
|
|
3153
|
-
_e = [{}];
|
|
3154
|
-
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3155
|
-
case 7:
|
|
3156
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3157
|
-
return [3, 11];
|
|
3158
|
-
case 8:
|
|
3159
|
-
_f = [{}];
|
|
3160
|
-
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
3161
|
-
case 9:
|
|
3162
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3163
|
-
return [3, 11];
|
|
3164
|
-
case 10:
|
|
3165
|
-
parsedBody = parsedOutput.body;
|
|
3166
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3167
|
-
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3168
|
-
_h.label = 11;
|
|
3169
|
-
case 11:
|
|
3170
|
-
message = response.message || response.Message || errorCode;
|
|
3171
|
-
response.message = message;
|
|
3172
|
-
delete response.Message;
|
|
3173
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3174
|
-
}
|
|
3175
|
-
});
|
|
3176
|
-
}); };
|
|
3177
|
-
export var deserializeAws_json1_0ListEnvironmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4799
|
+
export var deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3178
4800
|
var data, contents, response;
|
|
3179
4801
|
return __generator(this, function (_a) {
|
|
3180
4802
|
switch (_a.label) {
|
|
3181
4803
|
case 0:
|
|
3182
4804
|
if (output.statusCode >= 300) {
|
|
3183
|
-
return [2,
|
|
4805
|
+
return [2, deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommandError(output, context)];
|
|
3184
4806
|
}
|
|
3185
4807
|
return [4, parseBody(output.body, context)];
|
|
3186
4808
|
case 1:
|
|
3187
4809
|
data = _a.sent();
|
|
3188
4810
|
contents = {};
|
|
3189
|
-
contents =
|
|
4811
|
+
contents = deserializeAws_json1_0ListServiceInstanceProvisionedResourcesOutput(data, context);
|
|
3190
4812
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3191
4813
|
return [2, Promise.resolve(response)];
|
|
3192
4814
|
}
|
|
3193
4815
|
});
|
|
3194
4816
|
}); };
|
|
3195
|
-
var
|
|
4817
|
+
var deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3196
4818
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3197
4819
|
var _h;
|
|
3198
4820
|
return __generator(this, function (_j) {
|
|
@@ -3262,35 +4884,35 @@ var deserializeAws_json1_0ListEnvironmentsCommandError = function (output, conte
|
|
|
3262
4884
|
}
|
|
3263
4885
|
});
|
|
3264
4886
|
}); };
|
|
3265
|
-
export var
|
|
4887
|
+
export var deserializeAws_json1_0ListServiceInstancesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3266
4888
|
var data, contents, response;
|
|
3267
4889
|
return __generator(this, function (_a) {
|
|
3268
4890
|
switch (_a.label) {
|
|
3269
4891
|
case 0:
|
|
3270
4892
|
if (output.statusCode >= 300) {
|
|
3271
|
-
return [2,
|
|
4893
|
+
return [2, deserializeAws_json1_0ListServiceInstancesCommandError(output, context)];
|
|
3272
4894
|
}
|
|
3273
4895
|
return [4, parseBody(output.body, context)];
|
|
3274
4896
|
case 1:
|
|
3275
4897
|
data = _a.sent();
|
|
3276
4898
|
contents = {};
|
|
3277
|
-
contents =
|
|
4899
|
+
contents = deserializeAws_json1_0ListServiceInstancesOutput(data, context);
|
|
3278
4900
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3279
4901
|
return [2, Promise.resolve(response)];
|
|
3280
4902
|
}
|
|
3281
4903
|
});
|
|
3282
4904
|
}); };
|
|
3283
|
-
var
|
|
3284
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
3285
|
-
var
|
|
3286
|
-
return __generator(this, function (
|
|
3287
|
-
switch (
|
|
4905
|
+
var deserializeAws_json1_0ListServiceInstancesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4906
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
4907
|
+
var _h;
|
|
4908
|
+
return __generator(this, function (_j) {
|
|
4909
|
+
switch (_j.label) {
|
|
3288
4910
|
case 0:
|
|
3289
4911
|
_a = [__assign({}, output)];
|
|
3290
|
-
|
|
4912
|
+
_h = {};
|
|
3291
4913
|
return [4, parseBody(output.body, context)];
|
|
3292
4914
|
case 1:
|
|
3293
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4915
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
3294
4916
|
errorCode = "UnknownError";
|
|
3295
4917
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3296
4918
|
_b = errorCode;
|
|
@@ -3299,42 +4921,50 @@ var deserializeAws_json1_0ListEnvironmentTemplatesCommandError = function (outpu
|
|
|
3299
4921
|
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
3300
4922
|
case "InternalServerException": return [3, 4];
|
|
3301
4923
|
case "com.amazonaws.proton#InternalServerException": return [3, 4];
|
|
3302
|
-
case "
|
|
3303
|
-
case "com.amazonaws.proton#
|
|
3304
|
-
case "
|
|
3305
|
-
case "com.amazonaws.proton#
|
|
4924
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4925
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 6];
|
|
4926
|
+
case "ThrottlingException": return [3, 8];
|
|
4927
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 8];
|
|
4928
|
+
case "ValidationException": return [3, 10];
|
|
4929
|
+
case "com.amazonaws.proton#ValidationException": return [3, 10];
|
|
3306
4930
|
}
|
|
3307
|
-
return [3,
|
|
4931
|
+
return [3, 12];
|
|
3308
4932
|
case 2:
|
|
3309
4933
|
_c = [{}];
|
|
3310
4934
|
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
3311
4935
|
case 3:
|
|
3312
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
3313
|
-
return [3,
|
|
4936
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4937
|
+
return [3, 13];
|
|
3314
4938
|
case 4:
|
|
3315
4939
|
_d = [{}];
|
|
3316
4940
|
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
3317
4941
|
case 5:
|
|
3318
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
3319
|
-
return [3,
|
|
4942
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4943
|
+
return [3, 13];
|
|
3320
4944
|
case 6:
|
|
3321
4945
|
_e = [{}];
|
|
3322
|
-
return [4,
|
|
4946
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3323
4947
|
case 7:
|
|
3324
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
3325
|
-
return [3,
|
|
4948
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4949
|
+
return [3, 13];
|
|
3326
4950
|
case 8:
|
|
3327
4951
|
_f = [{}];
|
|
3328
|
-
return [4,
|
|
4952
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3329
4953
|
case 9:
|
|
3330
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
3331
|
-
return [3,
|
|
4954
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4955
|
+
return [3, 13];
|
|
3332
4956
|
case 10:
|
|
4957
|
+
_g = [{}];
|
|
4958
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
4959
|
+
case 11:
|
|
4960
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4961
|
+
return [3, 13];
|
|
4962
|
+
case 12:
|
|
3333
4963
|
parsedBody = parsedOutput.body;
|
|
3334
4964
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3335
4965
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3336
|
-
|
|
3337
|
-
case
|
|
4966
|
+
_j.label = 13;
|
|
4967
|
+
case 13:
|
|
3338
4968
|
message = response.message || response.Message || errorCode;
|
|
3339
4969
|
response.message = message;
|
|
3340
4970
|
delete response.Message;
|
|
@@ -3342,25 +4972,25 @@ var deserializeAws_json1_0ListEnvironmentTemplatesCommandError = function (outpu
|
|
|
3342
4972
|
}
|
|
3343
4973
|
});
|
|
3344
4974
|
}); };
|
|
3345
|
-
export var
|
|
4975
|
+
export var deserializeAws_json1_0ListServicePipelineOutputsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3346
4976
|
var data, contents, response;
|
|
3347
4977
|
return __generator(this, function (_a) {
|
|
3348
4978
|
switch (_a.label) {
|
|
3349
4979
|
case 0:
|
|
3350
4980
|
if (output.statusCode >= 300) {
|
|
3351
|
-
return [2,
|
|
4981
|
+
return [2, deserializeAws_json1_0ListServicePipelineOutputsCommandError(output, context)];
|
|
3352
4982
|
}
|
|
3353
4983
|
return [4, parseBody(output.body, context)];
|
|
3354
4984
|
case 1:
|
|
3355
4985
|
data = _a.sent();
|
|
3356
4986
|
contents = {};
|
|
3357
|
-
contents =
|
|
4987
|
+
contents = deserializeAws_json1_0ListServicePipelineOutputsOutput(data, context);
|
|
3358
4988
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3359
4989
|
return [2, Promise.resolve(response)];
|
|
3360
4990
|
}
|
|
3361
4991
|
});
|
|
3362
4992
|
}); };
|
|
3363
|
-
var
|
|
4993
|
+
var deserializeAws_json1_0ListServicePipelineOutputsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3364
4994
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3365
4995
|
var _h;
|
|
3366
4996
|
return __generator(this, function (_j) {
|
|
@@ -3430,25 +5060,25 @@ var deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError = function
|
|
|
3430
5060
|
}
|
|
3431
5061
|
});
|
|
3432
5062
|
}); };
|
|
3433
|
-
export var
|
|
5063
|
+
export var deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3434
5064
|
var data, contents, response;
|
|
3435
5065
|
return __generator(this, function (_a) {
|
|
3436
5066
|
switch (_a.label) {
|
|
3437
5067
|
case 0:
|
|
3438
5068
|
if (output.statusCode >= 300) {
|
|
3439
|
-
return [2,
|
|
5069
|
+
return [2, deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommandError(output, context)];
|
|
3440
5070
|
}
|
|
3441
5071
|
return [4, parseBody(output.body, context)];
|
|
3442
5072
|
case 1:
|
|
3443
5073
|
data = _a.sent();
|
|
3444
5074
|
contents = {};
|
|
3445
|
-
contents =
|
|
5075
|
+
contents = deserializeAws_json1_0ListServicePipelineProvisionedResourcesOutput(data, context);
|
|
3446
5076
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3447
5077
|
return [2, Promise.resolve(response)];
|
|
3448
5078
|
}
|
|
3449
5079
|
});
|
|
3450
5080
|
}); };
|
|
3451
|
-
var
|
|
5081
|
+
var deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3452
5082
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
3453
5083
|
var _h;
|
|
3454
5084
|
return __generator(this, function (_j) {
|
|
@@ -3854,6 +5484,110 @@ var deserializeAws_json1_0ListTagsForResourceCommandError = function (output, co
|
|
|
3854
5484
|
}
|
|
3855
5485
|
});
|
|
3856
5486
|
}); };
|
|
5487
|
+
export var deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5488
|
+
var data, contents, response;
|
|
5489
|
+
return __generator(this, function (_a) {
|
|
5490
|
+
switch (_a.label) {
|
|
5491
|
+
case 0:
|
|
5492
|
+
if (output.statusCode >= 300) {
|
|
5493
|
+
return [2, deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommandError(output, context)];
|
|
5494
|
+
}
|
|
5495
|
+
return [4, parseBody(output.body, context)];
|
|
5496
|
+
case 1:
|
|
5497
|
+
data = _a.sent();
|
|
5498
|
+
contents = {};
|
|
5499
|
+
contents = deserializeAws_json1_0NotifyResourceDeploymentStatusChangeOutput(data, context);
|
|
5500
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
5501
|
+
return [2, Promise.resolve(response)];
|
|
5502
|
+
}
|
|
5503
|
+
});
|
|
5504
|
+
}); };
|
|
5505
|
+
var deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5506
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
|
|
5507
|
+
var _k;
|
|
5508
|
+
return __generator(this, function (_l) {
|
|
5509
|
+
switch (_l.label) {
|
|
5510
|
+
case 0:
|
|
5511
|
+
_a = [__assign({}, output)];
|
|
5512
|
+
_k = {};
|
|
5513
|
+
return [4, parseBody(output.body, context)];
|
|
5514
|
+
case 1:
|
|
5515
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
|
|
5516
|
+
errorCode = "UnknownError";
|
|
5517
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5518
|
+
_b = errorCode;
|
|
5519
|
+
switch (_b) {
|
|
5520
|
+
case "AccessDeniedException": return [3, 2];
|
|
5521
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
5522
|
+
case "ConflictException": return [3, 4];
|
|
5523
|
+
case "com.amazonaws.proton#ConflictException": return [3, 4];
|
|
5524
|
+
case "InternalServerException": return [3, 6];
|
|
5525
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 6];
|
|
5526
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
5527
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 8];
|
|
5528
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
5529
|
+
case "com.amazonaws.proton#ServiceQuotaExceededException": return [3, 10];
|
|
5530
|
+
case "ThrottlingException": return [3, 12];
|
|
5531
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 12];
|
|
5532
|
+
case "ValidationException": return [3, 14];
|
|
5533
|
+
case "com.amazonaws.proton#ValidationException": return [3, 14];
|
|
5534
|
+
}
|
|
5535
|
+
return [3, 16];
|
|
5536
|
+
case 2:
|
|
5537
|
+
_c = [{}];
|
|
5538
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
5539
|
+
case 3:
|
|
5540
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5541
|
+
return [3, 17];
|
|
5542
|
+
case 4:
|
|
5543
|
+
_d = [{}];
|
|
5544
|
+
return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
5545
|
+
case 5:
|
|
5546
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5547
|
+
return [3, 17];
|
|
5548
|
+
case 6:
|
|
5549
|
+
_e = [{}];
|
|
5550
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
5551
|
+
case 7:
|
|
5552
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5553
|
+
return [3, 17];
|
|
5554
|
+
case 8:
|
|
5555
|
+
_f = [{}];
|
|
5556
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5557
|
+
case 9:
|
|
5558
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5559
|
+
return [3, 17];
|
|
5560
|
+
case 10:
|
|
5561
|
+
_g = [{}];
|
|
5562
|
+
return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
5563
|
+
case 11:
|
|
5564
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5565
|
+
return [3, 17];
|
|
5566
|
+
case 12:
|
|
5567
|
+
_h = [{}];
|
|
5568
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
5569
|
+
case 13:
|
|
5570
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5571
|
+
return [3, 17];
|
|
5572
|
+
case 14:
|
|
5573
|
+
_j = [{}];
|
|
5574
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
5575
|
+
case 15:
|
|
5576
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
5577
|
+
return [3, 17];
|
|
5578
|
+
case 16:
|
|
5579
|
+
parsedBody = parsedOutput.body;
|
|
5580
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5581
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
5582
|
+
_l.label = 17;
|
|
5583
|
+
case 17:
|
|
5584
|
+
message = response.message || response.Message || errorCode;
|
|
5585
|
+
response.message = message;
|
|
5586
|
+
delete response.Message;
|
|
5587
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
5588
|
+
}
|
|
5589
|
+
});
|
|
5590
|
+
}); };
|
|
3857
5591
|
export var deserializeAws_json1_0RejectEnvironmentAccountConnectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3858
5592
|
var data, contents, response;
|
|
3859
5593
|
return __generator(this, function (_a) {
|
|
@@ -4700,17 +6434,113 @@ var deserializeAws_json1_0UpdateServiceCommandError = function (output, context)
|
|
|
4700
6434
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4701
6435
|
return [3, 17];
|
|
4702
6436
|
case 14:
|
|
4703
|
-
_j = [{}];
|
|
4704
|
-
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
4705
|
-
case 15:
|
|
4706
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4707
|
-
return [3, 17];
|
|
4708
|
-
case 16:
|
|
6437
|
+
_j = [{}];
|
|
6438
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
6439
|
+
case 15:
|
|
6440
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6441
|
+
return [3, 17];
|
|
6442
|
+
case 16:
|
|
6443
|
+
parsedBody = parsedOutput.body;
|
|
6444
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
6445
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
6446
|
+
_l.label = 17;
|
|
6447
|
+
case 17:
|
|
6448
|
+
message = response.message || response.Message || errorCode;
|
|
6449
|
+
response.message = message;
|
|
6450
|
+
delete response.Message;
|
|
6451
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
6452
|
+
}
|
|
6453
|
+
});
|
|
6454
|
+
}); };
|
|
6455
|
+
export var deserializeAws_json1_0UpdateServiceInstanceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6456
|
+
var data, contents, response;
|
|
6457
|
+
return __generator(this, function (_a) {
|
|
6458
|
+
switch (_a.label) {
|
|
6459
|
+
case 0:
|
|
6460
|
+
if (output.statusCode >= 300) {
|
|
6461
|
+
return [2, deserializeAws_json1_0UpdateServiceInstanceCommandError(output, context)];
|
|
6462
|
+
}
|
|
6463
|
+
return [4, parseBody(output.body, context)];
|
|
6464
|
+
case 1:
|
|
6465
|
+
data = _a.sent();
|
|
6466
|
+
contents = {};
|
|
6467
|
+
contents = deserializeAws_json1_0UpdateServiceInstanceOutput(data, context);
|
|
6468
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
6469
|
+
return [2, Promise.resolve(response)];
|
|
6470
|
+
}
|
|
6471
|
+
});
|
|
6472
|
+
}); };
|
|
6473
|
+
var deserializeAws_json1_0UpdateServiceInstanceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6474
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
6475
|
+
var _j;
|
|
6476
|
+
return __generator(this, function (_k) {
|
|
6477
|
+
switch (_k.label) {
|
|
6478
|
+
case 0:
|
|
6479
|
+
_a = [__assign({}, output)];
|
|
6480
|
+
_j = {};
|
|
6481
|
+
return [4, parseBody(output.body, context)];
|
|
6482
|
+
case 1:
|
|
6483
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
6484
|
+
errorCode = "UnknownError";
|
|
6485
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6486
|
+
_b = errorCode;
|
|
6487
|
+
switch (_b) {
|
|
6488
|
+
case "AccessDeniedException": return [3, 2];
|
|
6489
|
+
case "com.amazonaws.proton#AccessDeniedException": return [3, 2];
|
|
6490
|
+
case "ConflictException": return [3, 4];
|
|
6491
|
+
case "com.amazonaws.proton#ConflictException": return [3, 4];
|
|
6492
|
+
case "InternalServerException": return [3, 6];
|
|
6493
|
+
case "com.amazonaws.proton#InternalServerException": return [3, 6];
|
|
6494
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
6495
|
+
case "com.amazonaws.proton#ResourceNotFoundException": return [3, 8];
|
|
6496
|
+
case "ThrottlingException": return [3, 10];
|
|
6497
|
+
case "com.amazonaws.proton#ThrottlingException": return [3, 10];
|
|
6498
|
+
case "ValidationException": return [3, 12];
|
|
6499
|
+
case "com.amazonaws.proton#ValidationException": return [3, 12];
|
|
6500
|
+
}
|
|
6501
|
+
return [3, 14];
|
|
6502
|
+
case 2:
|
|
6503
|
+
_c = [{}];
|
|
6504
|
+
return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6505
|
+
case 3:
|
|
6506
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6507
|
+
return [3, 15];
|
|
6508
|
+
case 4:
|
|
6509
|
+
_d = [{}];
|
|
6510
|
+
return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
6511
|
+
case 5:
|
|
6512
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6513
|
+
return [3, 15];
|
|
6514
|
+
case 6:
|
|
6515
|
+
_e = [{}];
|
|
6516
|
+
return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
6517
|
+
case 7:
|
|
6518
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6519
|
+
return [3, 15];
|
|
6520
|
+
case 8:
|
|
6521
|
+
_f = [{}];
|
|
6522
|
+
return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6523
|
+
case 9:
|
|
6524
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6525
|
+
return [3, 15];
|
|
6526
|
+
case 10:
|
|
6527
|
+
_g = [{}];
|
|
6528
|
+
return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6529
|
+
case 11:
|
|
6530
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6531
|
+
return [3, 15];
|
|
6532
|
+
case 12:
|
|
6533
|
+
_h = [{}];
|
|
6534
|
+
return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
6535
|
+
case 13:
|
|
6536
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6537
|
+
return [3, 15];
|
|
6538
|
+
case 14:
|
|
4709
6539
|
parsedBody = parsedOutput.body;
|
|
4710
6540
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4711
6541
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4712
|
-
|
|
4713
|
-
case
|
|
6542
|
+
_k.label = 15;
|
|
6543
|
+
case 15:
|
|
4714
6544
|
message = response.message || response.Message || errorCode;
|
|
4715
6545
|
response.message = message;
|
|
4716
6546
|
delete response.Message;
|
|
@@ -4718,25 +6548,25 @@ var deserializeAws_json1_0UpdateServiceCommandError = function (output, context)
|
|
|
4718
6548
|
}
|
|
4719
6549
|
});
|
|
4720
6550
|
}); };
|
|
4721
|
-
export var
|
|
6551
|
+
export var deserializeAws_json1_0UpdateServicePipelineCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4722
6552
|
var data, contents, response;
|
|
4723
6553
|
return __generator(this, function (_a) {
|
|
4724
6554
|
switch (_a.label) {
|
|
4725
6555
|
case 0:
|
|
4726
6556
|
if (output.statusCode >= 300) {
|
|
4727
|
-
return [2,
|
|
6557
|
+
return [2, deserializeAws_json1_0UpdateServicePipelineCommandError(output, context)];
|
|
4728
6558
|
}
|
|
4729
6559
|
return [4, parseBody(output.body, context)];
|
|
4730
6560
|
case 1:
|
|
4731
6561
|
data = _a.sent();
|
|
4732
6562
|
contents = {};
|
|
4733
|
-
contents =
|
|
6563
|
+
contents = deserializeAws_json1_0UpdateServicePipelineOutput(data, context);
|
|
4734
6564
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4735
6565
|
return [2, Promise.resolve(response)];
|
|
4736
6566
|
}
|
|
4737
6567
|
});
|
|
4738
6568
|
}); };
|
|
4739
|
-
var
|
|
6569
|
+
var deserializeAws_json1_0UpdateServicePipelineCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4740
6570
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
4741
6571
|
var _j;
|
|
4742
6572
|
return __generator(this, function (_k) {
|
|
@@ -4814,25 +6644,25 @@ var deserializeAws_json1_0UpdateServiceInstanceCommandError = function (output,
|
|
|
4814
6644
|
}
|
|
4815
6645
|
});
|
|
4816
6646
|
}); };
|
|
4817
|
-
export var
|
|
6647
|
+
export var deserializeAws_json1_0UpdateServiceTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4818
6648
|
var data, contents, response;
|
|
4819
6649
|
return __generator(this, function (_a) {
|
|
4820
6650
|
switch (_a.label) {
|
|
4821
6651
|
case 0:
|
|
4822
6652
|
if (output.statusCode >= 300) {
|
|
4823
|
-
return [2,
|
|
6653
|
+
return [2, deserializeAws_json1_0UpdateServiceTemplateCommandError(output, context)];
|
|
4824
6654
|
}
|
|
4825
6655
|
return [4, parseBody(output.body, context)];
|
|
4826
6656
|
case 1:
|
|
4827
6657
|
data = _a.sent();
|
|
4828
6658
|
contents = {};
|
|
4829
|
-
contents =
|
|
6659
|
+
contents = deserializeAws_json1_0UpdateServiceTemplateOutput(data, context);
|
|
4830
6660
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4831
6661
|
return [2, Promise.resolve(response)];
|
|
4832
6662
|
}
|
|
4833
6663
|
});
|
|
4834
6664
|
}); };
|
|
4835
|
-
var
|
|
6665
|
+
var deserializeAws_json1_0UpdateServiceTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4836
6666
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
4837
6667
|
var _j;
|
|
4838
6668
|
return __generator(this, function (_k) {
|
|
@@ -4910,25 +6740,25 @@ var deserializeAws_json1_0UpdateServicePipelineCommandError = function (output,
|
|
|
4910
6740
|
}
|
|
4911
6741
|
});
|
|
4912
6742
|
}); };
|
|
4913
|
-
export var
|
|
6743
|
+
export var deserializeAws_json1_0UpdateServiceTemplateVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4914
6744
|
var data, contents, response;
|
|
4915
6745
|
return __generator(this, function (_a) {
|
|
4916
6746
|
switch (_a.label) {
|
|
4917
6747
|
case 0:
|
|
4918
6748
|
if (output.statusCode >= 300) {
|
|
4919
|
-
return [2,
|
|
6749
|
+
return [2, deserializeAws_json1_0UpdateServiceTemplateVersionCommandError(output, context)];
|
|
4920
6750
|
}
|
|
4921
6751
|
return [4, parseBody(output.body, context)];
|
|
4922
6752
|
case 1:
|
|
4923
6753
|
data = _a.sent();
|
|
4924
6754
|
contents = {};
|
|
4925
|
-
contents =
|
|
6755
|
+
contents = deserializeAws_json1_0UpdateServiceTemplateVersionOutput(data, context);
|
|
4926
6756
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4927
6757
|
return [2, Promise.resolve(response)];
|
|
4928
6758
|
}
|
|
4929
6759
|
});
|
|
4930
6760
|
}); };
|
|
4931
|
-
var
|
|
6761
|
+
var deserializeAws_json1_0UpdateServiceTemplateVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4932
6762
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
4933
6763
|
var _j;
|
|
4934
6764
|
return __generator(this, function (_k) {
|
|
@@ -5006,25 +6836,25 @@ var deserializeAws_json1_0UpdateServiceTemplateCommandError = function (output,
|
|
|
5006
6836
|
}
|
|
5007
6837
|
});
|
|
5008
6838
|
}); };
|
|
5009
|
-
export var
|
|
6839
|
+
export var deserializeAws_json1_0UpdateTemplateSyncConfigCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5010
6840
|
var data, contents, response;
|
|
5011
6841
|
return __generator(this, function (_a) {
|
|
5012
6842
|
switch (_a.label) {
|
|
5013
6843
|
case 0:
|
|
5014
6844
|
if (output.statusCode >= 300) {
|
|
5015
|
-
return [2,
|
|
6845
|
+
return [2, deserializeAws_json1_0UpdateTemplateSyncConfigCommandError(output, context)];
|
|
5016
6846
|
}
|
|
5017
6847
|
return [4, parseBody(output.body, context)];
|
|
5018
6848
|
case 1:
|
|
5019
6849
|
data = _a.sent();
|
|
5020
6850
|
contents = {};
|
|
5021
|
-
contents =
|
|
6851
|
+
contents = deserializeAws_json1_0UpdateTemplateSyncConfigOutput(data, context);
|
|
5022
6852
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
5023
6853
|
return [2, Promise.resolve(response)];
|
|
5024
6854
|
}
|
|
5025
6855
|
});
|
|
5026
6856
|
}); };
|
|
5027
|
-
var
|
|
6857
|
+
var deserializeAws_json1_0UpdateTemplateSyncConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5028
6858
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
5029
6859
|
var _j;
|
|
5030
6860
|
return __generator(this, function (_k) {
|
|
@@ -5196,16 +7026,19 @@ var serializeAws_json1_0CompatibleEnvironmentTemplateInputList = function (input
|
|
|
5196
7026
|
};
|
|
5197
7027
|
var serializeAws_json1_0CreateEnvironmentAccountConnectionInput = function (input, context) {
|
|
5198
7028
|
var _a;
|
|
5199
|
-
return __assign(__assign(__assign({ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.environmentName !== undefined &&
|
|
7029
|
+
return __assign(__assign(__assign(__assign({ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.environmentName !== undefined &&
|
|
5200
7030
|
input.environmentName !== null && { environmentName: input.environmentName })), (input.managementAccountId !== undefined &&
|
|
5201
|
-
input.managementAccountId !== null && { managementAccountId: input.managementAccountId })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
7031
|
+
input.managementAccountId !== null && { managementAccountId: input.managementAccountId })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }));
|
|
5202
7032
|
};
|
|
5203
7033
|
var serializeAws_json1_0CreateEnvironmentInput = function (input, context) {
|
|
5204
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.environmentAccountConnectionId !== undefined &&
|
|
7034
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.environmentAccountConnectionId !== undefined &&
|
|
5205
7035
|
input.environmentAccountConnectionId !== null && {
|
|
5206
7036
|
environmentAccountConnectionId: input.environmentAccountConnectionId,
|
|
5207
7037
|
})), (input.name !== undefined && input.name !== null && { name: input.name })), (input.protonServiceRoleArn !== undefined &&
|
|
5208
|
-
input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn })), (input.
|
|
7038
|
+
input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn })), (input.provisioningRepository !== undefined &&
|
|
7039
|
+
input.provisioningRepository !== null && {
|
|
7040
|
+
provisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.provisioningRepository, context),
|
|
7041
|
+
})), (input.spec !== undefined && input.spec !== null && { spec: input.spec })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) })), (input.templateMajorVersion !== undefined &&
|
|
5209
7042
|
input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion })), (input.templateMinorVersion !== undefined &&
|
|
5210
7043
|
input.templateMinorVersion !== null && { templateMinorVersion: input.templateMinorVersion })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5211
7044
|
};
|
|
@@ -5217,6 +7050,9 @@ var serializeAws_json1_0CreateEnvironmentTemplateVersionInput = function (input,
|
|
|
5217
7050
|
return __assign(__assign(__assign(__assign(__assign({ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.source !== undefined &&
|
|
5218
7051
|
input.source !== null && { source: serializeAws_json1_0TemplateVersionSourceInput(input.source, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5219
7052
|
};
|
|
7053
|
+
var serializeAws_json1_0CreateRepositoryInput = function (input, context) {
|
|
7054
|
+
return __assign(__assign(__assign(__assign({}, (input.connectionArn !== undefined && input.connectionArn !== null && { connectionArn: input.connectionArn })), (input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.provider !== undefined && input.provider !== null && { provider: input.provider }));
|
|
7055
|
+
};
|
|
5220
7056
|
var serializeAws_json1_0CreateServiceInput = function (input, context) {
|
|
5221
7057
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.repositoryConnectionArn !== undefined &&
|
|
5222
7058
|
input.repositoryConnectionArn !== null && { repositoryConnectionArn: input.repositoryConnectionArn })), (input.repositoryId !== undefined && input.repositoryId !== null && { repositoryId: input.repositoryId })), (input.spec !== undefined && input.spec !== null && { spec: input.spec })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) })), (input.templateMajorVersion !== undefined &&
|
|
@@ -5235,6 +7071,11 @@ var serializeAws_json1_0CreateServiceTemplateVersionInput = function (input, con
|
|
|
5235
7071
|
})), (input.description !== undefined && input.description !== null && { description: input.description })), (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.source !== undefined &&
|
|
5236
7072
|
input.source !== null && { source: serializeAws_json1_0TemplateVersionSourceInput(input.source, context) })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5237
7073
|
};
|
|
7074
|
+
var serializeAws_json1_0CreateTemplateSyncConfigInput = function (input, context) {
|
|
7075
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.branch !== undefined && input.branch !== null && { branch: input.branch })), (input.repositoryName !== undefined &&
|
|
7076
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.repositoryProvider !== undefined &&
|
|
7077
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider })), (input.subdirectory !== undefined && input.subdirectory !== null && { subdirectory: input.subdirectory })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName })), (input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }));
|
|
7078
|
+
};
|
|
5238
7079
|
var serializeAws_json1_0DeleteEnvironmentAccountConnectionInput = function (input, context) {
|
|
5239
7080
|
return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
|
|
5240
7081
|
};
|
|
@@ -5247,6 +7088,9 @@ var serializeAws_json1_0DeleteEnvironmentTemplateInput = function (input, contex
|
|
|
5247
7088
|
var serializeAws_json1_0DeleteEnvironmentTemplateVersionInput = function (input, context) {
|
|
5248
7089
|
return __assign(__assign(__assign({}, (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5249
7090
|
};
|
|
7091
|
+
var serializeAws_json1_0DeleteRepositoryInput = function (input, context) {
|
|
7092
|
+
return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.provider !== undefined && input.provider !== null && { provider: input.provider }));
|
|
7093
|
+
};
|
|
5250
7094
|
var serializeAws_json1_0DeleteServiceInput = function (input, context) {
|
|
5251
7095
|
return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
5252
7096
|
};
|
|
@@ -5256,6 +7100,9 @@ var serializeAws_json1_0DeleteServiceTemplateInput = function (input, context) {
|
|
|
5256
7100
|
var serializeAws_json1_0DeleteServiceTemplateVersionInput = function (input, context) {
|
|
5257
7101
|
return __assign(__assign(__assign({}, (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5258
7102
|
};
|
|
7103
|
+
var serializeAws_json1_0DeleteTemplateSyncConfigInput = function (input, context) {
|
|
7104
|
+
return __assign(__assign({}, (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName })), (input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }));
|
|
7105
|
+
};
|
|
5259
7106
|
var serializeAws_json1_0EnvironmentAccountConnectionStatusList = function (input, context) {
|
|
5260
7107
|
return input
|
|
5261
7108
|
.filter(function (e) { return e != null; })
|
|
@@ -5294,6 +7141,14 @@ var serializeAws_json1_0GetEnvironmentTemplateInput = function (input, context)
|
|
|
5294
7141
|
var serializeAws_json1_0GetEnvironmentTemplateVersionInput = function (input, context) {
|
|
5295
7142
|
return __assign(__assign(__assign({}, (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5296
7143
|
};
|
|
7144
|
+
var serializeAws_json1_0GetRepositoryInput = function (input, context) {
|
|
7145
|
+
return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.provider !== undefined && input.provider !== null && { provider: input.provider }));
|
|
7146
|
+
};
|
|
7147
|
+
var serializeAws_json1_0GetRepositorySyncStatusInput = function (input, context) {
|
|
7148
|
+
return __assign(__assign(__assign(__assign({}, (input.branch !== undefined && input.branch !== null && { branch: input.branch })), (input.repositoryName !== undefined &&
|
|
7149
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.repositoryProvider !== undefined &&
|
|
7150
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider })), (input.syncType !== undefined && input.syncType !== null && { syncType: input.syncType }));
|
|
7151
|
+
};
|
|
5297
7152
|
var serializeAws_json1_0GetServiceInput = function (input, context) {
|
|
5298
7153
|
return __assign({}, (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
5299
7154
|
};
|
|
@@ -5306,6 +7161,13 @@ var serializeAws_json1_0GetServiceTemplateInput = function (input, context) {
|
|
|
5306
7161
|
var serializeAws_json1_0GetServiceTemplateVersionInput = function (input, context) {
|
|
5307
7162
|
return __assign(__assign(__assign({}, (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5308
7163
|
};
|
|
7164
|
+
var serializeAws_json1_0GetTemplateSyncConfigInput = function (input, context) {
|
|
7165
|
+
return __assign(__assign({}, (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName })), (input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }));
|
|
7166
|
+
};
|
|
7167
|
+
var serializeAws_json1_0GetTemplateSyncStatusInput = function (input, context) {
|
|
7168
|
+
return __assign(__assign(__assign({}, (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName })), (input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType })), (input.templateVersion !== undefined &&
|
|
7169
|
+
input.templateVersion !== null && { templateVersion: input.templateVersion }));
|
|
7170
|
+
};
|
|
5309
7171
|
var serializeAws_json1_0ListEnvironmentAccountConnectionsInput = function (input, context) {
|
|
5310
7172
|
return __assign(__assign(__assign(__assign(__assign({}, (input.environmentName !== undefined &&
|
|
5311
7173
|
input.environmentName !== null && { environmentName: input.environmentName })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.requestedBy !== undefined && input.requestedBy !== null && { requestedBy: input.requestedBy })), (input.statuses !== undefined &&
|
|
@@ -5313,6 +7175,14 @@ var serializeAws_json1_0ListEnvironmentAccountConnectionsInput = function (input
|
|
|
5313
7175
|
statuses: serializeAws_json1_0EnvironmentAccountConnectionStatusList(input.statuses, context),
|
|
5314
7176
|
}));
|
|
5315
7177
|
};
|
|
7178
|
+
var serializeAws_json1_0ListEnvironmentOutputsInput = function (input, context) {
|
|
7179
|
+
return __assign(__assign({}, (input.environmentName !== undefined &&
|
|
7180
|
+
input.environmentName !== null && { environmentName: input.environmentName })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
7181
|
+
};
|
|
7182
|
+
var serializeAws_json1_0ListEnvironmentProvisionedResourcesInput = function (input, context) {
|
|
7183
|
+
return __assign(__assign({}, (input.environmentName !== undefined &&
|
|
7184
|
+
input.environmentName !== null && { environmentName: input.environmentName })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
7185
|
+
};
|
|
5316
7186
|
var serializeAws_json1_0ListEnvironmentsInput = function (input, context) {
|
|
5317
7187
|
return __assign(__assign(__assign({}, (input.environmentTemplates !== undefined &&
|
|
5318
7188
|
input.environmentTemplates !== null && {
|
|
@@ -5325,9 +7195,31 @@ var serializeAws_json1_0ListEnvironmentTemplatesInput = function (input, context
|
|
|
5325
7195
|
var serializeAws_json1_0ListEnvironmentTemplateVersionsInput = function (input, context) {
|
|
5326
7196
|
return __assign(__assign(__assign(__assign({}, (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5327
7197
|
};
|
|
7198
|
+
var serializeAws_json1_0ListRepositoriesInput = function (input, context) {
|
|
7199
|
+
return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
7200
|
+
};
|
|
7201
|
+
var serializeAws_json1_0ListRepositorySyncDefinitionsInput = function (input, context) {
|
|
7202
|
+
return __assign(__assign(__assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.repositoryName !== undefined &&
|
|
7203
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.repositoryProvider !== undefined &&
|
|
7204
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider })), (input.syncType !== undefined && input.syncType !== null && { syncType: input.syncType }));
|
|
7205
|
+
};
|
|
7206
|
+
var serializeAws_json1_0ListServiceInstanceOutputsInput = function (input, context) {
|
|
7207
|
+
return __assign(__assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serviceInstanceName !== undefined &&
|
|
7208
|
+
input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }));
|
|
7209
|
+
};
|
|
7210
|
+
var serializeAws_json1_0ListServiceInstanceProvisionedResourcesInput = function (input, context) {
|
|
7211
|
+
return __assign(__assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serviceInstanceName !== undefined &&
|
|
7212
|
+
input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }));
|
|
7213
|
+
};
|
|
5328
7214
|
var serializeAws_json1_0ListServiceInstancesInput = function (input, context) {
|
|
5329
7215
|
return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }));
|
|
5330
7216
|
};
|
|
7217
|
+
var serializeAws_json1_0ListServicePipelineOutputsInput = function (input, context) {
|
|
7218
|
+
return __assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }));
|
|
7219
|
+
};
|
|
7220
|
+
var serializeAws_json1_0ListServicePipelineProvisionedResourcesInput = function (input, context) {
|
|
7221
|
+
return __assign(__assign({}, (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }));
|
|
7222
|
+
};
|
|
5331
7223
|
var serializeAws_json1_0ListServicesInput = function (input, context) {
|
|
5332
7224
|
return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
5333
7225
|
};
|
|
@@ -5340,9 +7232,29 @@ var serializeAws_json1_0ListServiceTemplateVersionsInput = function (input, cont
|
|
|
5340
7232
|
var serializeAws_json1_0ListTagsForResourceInput = function (input, context) {
|
|
5341
7233
|
return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
|
|
5342
7234
|
};
|
|
7235
|
+
var serializeAws_json1_0NotifyResourceDeploymentStatusChangeInput = function (input, context) {
|
|
7236
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.deploymentId !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId })), (input.outputs !== undefined &&
|
|
7237
|
+
input.outputs !== null && { outputs: serializeAws_json1_0OutputsList(input.outputs, context) })), (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.statusMessage !== undefined && input.statusMessage !== null && { statusMessage: input.statusMessage }));
|
|
7238
|
+
};
|
|
7239
|
+
var serializeAws_json1_0Output = function (input, context) {
|
|
7240
|
+
return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.valueString !== undefined && input.valueString !== null && { valueString: input.valueString }));
|
|
7241
|
+
};
|
|
7242
|
+
var serializeAws_json1_0OutputsList = function (input, context) {
|
|
7243
|
+
return input
|
|
7244
|
+
.filter(function (e) { return e != null; })
|
|
7245
|
+
.map(function (entry) {
|
|
7246
|
+
if (entry === null) {
|
|
7247
|
+
return null;
|
|
7248
|
+
}
|
|
7249
|
+
return serializeAws_json1_0Output(entry, context);
|
|
7250
|
+
});
|
|
7251
|
+
};
|
|
5343
7252
|
var serializeAws_json1_0RejectEnvironmentAccountConnectionInput = function (input, context) {
|
|
5344
7253
|
return __assign({}, (input.id !== undefined && input.id !== null && { id: input.id }));
|
|
5345
7254
|
};
|
|
7255
|
+
var serializeAws_json1_0RepositoryBranchInput = function (input, context) {
|
|
7256
|
+
return __assign(__assign(__assign({}, (input.branch !== undefined && input.branch !== null && { branch: input.branch })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.provider !== undefined && input.provider !== null && { provider: input.provider }));
|
|
7257
|
+
};
|
|
5346
7258
|
var serializeAws_json1_0S3ObjectSource = function (input, context) {
|
|
5347
7259
|
return __assign(__assign({}, (input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket })), (input.key !== undefined && input.key !== null && { key: input.key }));
|
|
5348
7260
|
};
|
|
@@ -5383,19 +7295,25 @@ var serializeAws_json1_0UntagResourceInput = function (input, context) {
|
|
|
5383
7295
|
input.tagKeys !== null && { tagKeys: serializeAws_json1_0TagKeyList(input.tagKeys, context) }));
|
|
5384
7296
|
};
|
|
5385
7297
|
var serializeAws_json1_0UpdateAccountSettingsInput = function (input, context) {
|
|
5386
|
-
return __assign({}, (input.
|
|
7298
|
+
return __assign(__assign({}, (input.pipelineProvisioningRepository !== undefined &&
|
|
7299
|
+
input.pipelineProvisioningRepository !== null && {
|
|
7300
|
+
pipelineProvisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.pipelineProvisioningRepository, context),
|
|
7301
|
+
})), (input.pipelineServiceRoleArn !== undefined &&
|
|
5387
7302
|
input.pipelineServiceRoleArn !== null && { pipelineServiceRoleArn: input.pipelineServiceRoleArn }));
|
|
5388
7303
|
};
|
|
5389
7304
|
var serializeAws_json1_0UpdateEnvironmentAccountConnectionInput = function (input, context) {
|
|
5390
7305
|
return __assign(__assign({}, (input.id !== undefined && input.id !== null && { id: input.id })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
5391
7306
|
};
|
|
5392
7307
|
var serializeAws_json1_0UpdateEnvironmentInput = function (input, context) {
|
|
5393
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.deploymentType !== undefined &&
|
|
7308
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.deploymentType !== undefined &&
|
|
5394
7309
|
input.deploymentType !== null && { deploymentType: input.deploymentType })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.environmentAccountConnectionId !== undefined &&
|
|
5395
7310
|
input.environmentAccountConnectionId !== null && {
|
|
5396
7311
|
environmentAccountConnectionId: input.environmentAccountConnectionId,
|
|
5397
7312
|
})), (input.name !== undefined && input.name !== null && { name: input.name })), (input.protonServiceRoleArn !== undefined &&
|
|
5398
|
-
input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn })), (input.
|
|
7313
|
+
input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn })), (input.provisioningRepository !== undefined &&
|
|
7314
|
+
input.provisioningRepository !== null && {
|
|
7315
|
+
provisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.provisioningRepository, context),
|
|
7316
|
+
})), (input.spec !== undefined && input.spec !== null && { spec: input.spec })), (input.templateMajorVersion !== undefined &&
|
|
5399
7317
|
input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion })), (input.templateMinorVersion !== undefined &&
|
|
5400
7318
|
input.templateMinorVersion !== null && { templateMinorVersion: input.templateMinorVersion }));
|
|
5401
7319
|
};
|
|
@@ -5429,6 +7347,11 @@ var serializeAws_json1_0UpdateServiceTemplateVersionInput = function (input, con
|
|
|
5429
7347
|
compatibleEnvironmentTemplates: serializeAws_json1_0CompatibleEnvironmentTemplateInputList(input.compatibleEnvironmentTemplates, context),
|
|
5430
7348
|
})), (input.description !== undefined && input.description !== null && { description: input.description })), (input.majorVersion !== undefined && input.majorVersion !== null && { majorVersion: input.majorVersion })), (input.minorVersion !== undefined && input.minorVersion !== null && { minorVersion: input.minorVersion })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }));
|
|
5431
7349
|
};
|
|
7350
|
+
var serializeAws_json1_0UpdateTemplateSyncConfigInput = function (input, context) {
|
|
7351
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.branch !== undefined && input.branch !== null && { branch: input.branch })), (input.repositoryName !== undefined &&
|
|
7352
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName })), (input.repositoryProvider !== undefined &&
|
|
7353
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider })), (input.subdirectory !== undefined && input.subdirectory !== null && { subdirectory: input.subdirectory })), (input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName })), (input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }));
|
|
7354
|
+
};
|
|
5432
7355
|
var deserializeAws_json1_0AcceptEnvironmentAccountConnectionOutput = function (output, context) {
|
|
5433
7356
|
return {
|
|
5434
7357
|
environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
|
|
@@ -5443,6 +7366,9 @@ var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
|
5443
7366
|
};
|
|
5444
7367
|
var deserializeAws_json1_0AccountSettings = function (output, context) {
|
|
5445
7368
|
return {
|
|
7369
|
+
pipelineProvisioningRepository: output.pipelineProvisioningRepository !== undefined && output.pipelineProvisioningRepository !== null
|
|
7370
|
+
? deserializeAws_json1_0RepositoryBranch(output.pipelineProvisioningRepository, context)
|
|
7371
|
+
: undefined,
|
|
5446
7372
|
pipelineServiceRoleArn: __expectString(output.pipelineServiceRoleArn),
|
|
5447
7373
|
};
|
|
5448
7374
|
};
|
|
@@ -5516,6 +7442,13 @@ var deserializeAws_json1_0CreateEnvironmentTemplateVersionOutput = function (out
|
|
|
5516
7442
|
: undefined,
|
|
5517
7443
|
};
|
|
5518
7444
|
};
|
|
7445
|
+
var deserializeAws_json1_0CreateRepositoryOutput = function (output, context) {
|
|
7446
|
+
return {
|
|
7447
|
+
repository: output.repository !== undefined && output.repository !== null
|
|
7448
|
+
? deserializeAws_json1_0Repository(output.repository, context)
|
|
7449
|
+
: undefined,
|
|
7450
|
+
};
|
|
7451
|
+
};
|
|
5519
7452
|
var deserializeAws_json1_0CreateServiceOutput = function (output, context) {
|
|
5520
7453
|
return {
|
|
5521
7454
|
service: output.service !== undefined && output.service !== null
|
|
@@ -5537,6 +7470,13 @@ var deserializeAws_json1_0CreateServiceTemplateVersionOutput = function (output,
|
|
|
5537
7470
|
: undefined,
|
|
5538
7471
|
};
|
|
5539
7472
|
};
|
|
7473
|
+
var deserializeAws_json1_0CreateTemplateSyncConfigOutput = function (output, context) {
|
|
7474
|
+
return {
|
|
7475
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
7476
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
7477
|
+
: undefined,
|
|
7478
|
+
};
|
|
7479
|
+
};
|
|
5540
7480
|
var deserializeAws_json1_0DeleteEnvironmentAccountConnectionOutput = function (output, context) {
|
|
5541
7481
|
return {
|
|
5542
7482
|
environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
|
|
@@ -5565,6 +7505,13 @@ var deserializeAws_json1_0DeleteEnvironmentTemplateVersionOutput = function (out
|
|
|
5565
7505
|
: undefined,
|
|
5566
7506
|
};
|
|
5567
7507
|
};
|
|
7508
|
+
var deserializeAws_json1_0DeleteRepositoryOutput = function (output, context) {
|
|
7509
|
+
return {
|
|
7510
|
+
repository: output.repository !== undefined && output.repository !== null
|
|
7511
|
+
? deserializeAws_json1_0Repository(output.repository, context)
|
|
7512
|
+
: undefined,
|
|
7513
|
+
};
|
|
7514
|
+
};
|
|
5568
7515
|
var deserializeAws_json1_0DeleteServiceOutput = function (output, context) {
|
|
5569
7516
|
return {
|
|
5570
7517
|
service: output.service !== undefined && output.service !== null
|
|
@@ -5586,6 +7533,13 @@ var deserializeAws_json1_0DeleteServiceTemplateVersionOutput = function (output,
|
|
|
5586
7533
|
: undefined,
|
|
5587
7534
|
};
|
|
5588
7535
|
};
|
|
7536
|
+
var deserializeAws_json1_0DeleteTemplateSyncConfigOutput = function (output, context) {
|
|
7537
|
+
return {
|
|
7538
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
7539
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
7540
|
+
: undefined,
|
|
7541
|
+
};
|
|
7542
|
+
};
|
|
5589
7543
|
var deserializeAws_json1_0Environment = function (output, context) {
|
|
5590
7544
|
return {
|
|
5591
7545
|
arn: __expectString(output.arn),
|
|
@@ -5606,6 +7560,9 @@ var deserializeAws_json1_0Environment = function (output, context) {
|
|
|
5606
7560
|
name: __expectString(output.name),
|
|
5607
7561
|
protonServiceRoleArn: __expectString(output.protonServiceRoleArn),
|
|
5608
7562
|
provisioning: __expectString(output.provisioning),
|
|
7563
|
+
provisioningRepository: output.provisioningRepository !== undefined && output.provisioningRepository !== null
|
|
7564
|
+
? deserializeAws_json1_0RepositoryBranch(output.provisioningRepository, context)
|
|
7565
|
+
: undefined,
|
|
5609
7566
|
spec: __expectString(output.spec),
|
|
5610
7567
|
templateMajorVersion: __expectString(output.templateMajorVersion),
|
|
5611
7568
|
templateMinorVersion: __expectString(output.templateMinorVersion),
|
|
@@ -5816,6 +7773,20 @@ var deserializeAws_json1_0GetEnvironmentTemplateVersionOutput = function (output
|
|
|
5816
7773
|
: undefined,
|
|
5817
7774
|
};
|
|
5818
7775
|
};
|
|
7776
|
+
var deserializeAws_json1_0GetRepositoryOutput = function (output, context) {
|
|
7777
|
+
return {
|
|
7778
|
+
repository: output.repository !== undefined && output.repository !== null
|
|
7779
|
+
? deserializeAws_json1_0Repository(output.repository, context)
|
|
7780
|
+
: undefined,
|
|
7781
|
+
};
|
|
7782
|
+
};
|
|
7783
|
+
var deserializeAws_json1_0GetRepositorySyncStatusOutput = function (output, context) {
|
|
7784
|
+
return {
|
|
7785
|
+
latestSync: output.latestSync !== undefined && output.latestSync !== null
|
|
7786
|
+
? deserializeAws_json1_0RepositorySyncAttempt(output.latestSync, context)
|
|
7787
|
+
: undefined,
|
|
7788
|
+
};
|
|
7789
|
+
};
|
|
5819
7790
|
var deserializeAws_json1_0GetServiceInstanceOutput = function (output, context) {
|
|
5820
7791
|
return {
|
|
5821
7792
|
serviceInstance: output.serviceInstance !== undefined && output.serviceInstance !== null
|
|
@@ -5844,6 +7815,26 @@ var deserializeAws_json1_0GetServiceTemplateVersionOutput = function (output, co
|
|
|
5844
7815
|
: undefined,
|
|
5845
7816
|
};
|
|
5846
7817
|
};
|
|
7818
|
+
var deserializeAws_json1_0GetTemplateSyncConfigOutput = function (output, context) {
|
|
7819
|
+
return {
|
|
7820
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
7821
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
7822
|
+
: undefined,
|
|
7823
|
+
};
|
|
7824
|
+
};
|
|
7825
|
+
var deserializeAws_json1_0GetTemplateSyncStatusOutput = function (output, context) {
|
|
7826
|
+
return {
|
|
7827
|
+
desiredState: output.desiredState !== undefined && output.desiredState !== null
|
|
7828
|
+
? deserializeAws_json1_0Revision(output.desiredState, context)
|
|
7829
|
+
: undefined,
|
|
7830
|
+
latestSuccessfulSync: output.latestSuccessfulSync !== undefined && output.latestSuccessfulSync !== null
|
|
7831
|
+
? deserializeAws_json1_0ResourceSyncAttempt(output.latestSuccessfulSync, context)
|
|
7832
|
+
: undefined,
|
|
7833
|
+
latestSync: output.latestSync !== undefined && output.latestSync !== null
|
|
7834
|
+
? deserializeAws_json1_0ResourceSyncAttempt(output.latestSync, context)
|
|
7835
|
+
: undefined,
|
|
7836
|
+
};
|
|
7837
|
+
};
|
|
5847
7838
|
var deserializeAws_json1_0InternalServerException = function (output, context) {
|
|
5848
7839
|
return {
|
|
5849
7840
|
message: __expectString(output.message),
|
|
@@ -5857,6 +7848,22 @@ var deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput = function (ou
|
|
|
5857
7848
|
nextToken: __expectString(output.nextToken),
|
|
5858
7849
|
};
|
|
5859
7850
|
};
|
|
7851
|
+
var deserializeAws_json1_0ListEnvironmentOutputsOutput = function (output, context) {
|
|
7852
|
+
return {
|
|
7853
|
+
nextToken: __expectString(output.nextToken),
|
|
7854
|
+
outputs: output.outputs !== undefined && output.outputs !== null
|
|
7855
|
+
? deserializeAws_json1_0OutputsList(output.outputs, context)
|
|
7856
|
+
: undefined,
|
|
7857
|
+
};
|
|
7858
|
+
};
|
|
7859
|
+
var deserializeAws_json1_0ListEnvironmentProvisionedResourcesOutput = function (output, context) {
|
|
7860
|
+
return {
|
|
7861
|
+
nextToken: __expectString(output.nextToken),
|
|
7862
|
+
provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
|
|
7863
|
+
? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
|
|
7864
|
+
: undefined,
|
|
7865
|
+
};
|
|
7866
|
+
};
|
|
5860
7867
|
var deserializeAws_json1_0ListEnvironmentsOutput = function (output, context) {
|
|
5861
7868
|
return {
|
|
5862
7869
|
environments: output.environments !== undefined && output.environments !== null
|
|
@@ -5881,6 +7888,38 @@ var deserializeAws_json1_0ListEnvironmentTemplateVersionsOutput = function (outp
|
|
|
5881
7888
|
: undefined,
|
|
5882
7889
|
};
|
|
5883
7890
|
};
|
|
7891
|
+
var deserializeAws_json1_0ListRepositoriesOutput = function (output, context) {
|
|
7892
|
+
return {
|
|
7893
|
+
nextToken: __expectString(output.nextToken),
|
|
7894
|
+
repositories: output.repositories !== undefined && output.repositories !== null
|
|
7895
|
+
? deserializeAws_json1_0RepositorySummaryList(output.repositories, context)
|
|
7896
|
+
: undefined,
|
|
7897
|
+
};
|
|
7898
|
+
};
|
|
7899
|
+
var deserializeAws_json1_0ListRepositorySyncDefinitionsOutput = function (output, context) {
|
|
7900
|
+
return {
|
|
7901
|
+
nextToken: __expectString(output.nextToken),
|
|
7902
|
+
syncDefinitions: output.syncDefinitions !== undefined && output.syncDefinitions !== null
|
|
7903
|
+
? deserializeAws_json1_0RepositorySyncDefinitionList(output.syncDefinitions, context)
|
|
7904
|
+
: undefined,
|
|
7905
|
+
};
|
|
7906
|
+
};
|
|
7907
|
+
var deserializeAws_json1_0ListServiceInstanceOutputsOutput = function (output, context) {
|
|
7908
|
+
return {
|
|
7909
|
+
nextToken: __expectString(output.nextToken),
|
|
7910
|
+
outputs: output.outputs !== undefined && output.outputs !== null
|
|
7911
|
+
? deserializeAws_json1_0OutputsList(output.outputs, context)
|
|
7912
|
+
: undefined,
|
|
7913
|
+
};
|
|
7914
|
+
};
|
|
7915
|
+
var deserializeAws_json1_0ListServiceInstanceProvisionedResourcesOutput = function (output, context) {
|
|
7916
|
+
return {
|
|
7917
|
+
nextToken: __expectString(output.nextToken),
|
|
7918
|
+
provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
|
|
7919
|
+
? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
|
|
7920
|
+
: undefined,
|
|
7921
|
+
};
|
|
7922
|
+
};
|
|
5884
7923
|
var deserializeAws_json1_0ListServiceInstancesOutput = function (output, context) {
|
|
5885
7924
|
return {
|
|
5886
7925
|
nextToken: __expectString(output.nextToken),
|
|
@@ -5889,6 +7928,22 @@ var deserializeAws_json1_0ListServiceInstancesOutput = function (output, context
|
|
|
5889
7928
|
: undefined,
|
|
5890
7929
|
};
|
|
5891
7930
|
};
|
|
7931
|
+
var deserializeAws_json1_0ListServicePipelineOutputsOutput = function (output, context) {
|
|
7932
|
+
return {
|
|
7933
|
+
nextToken: __expectString(output.nextToken),
|
|
7934
|
+
outputs: output.outputs !== undefined && output.outputs !== null
|
|
7935
|
+
? deserializeAws_json1_0OutputsList(output.outputs, context)
|
|
7936
|
+
: undefined,
|
|
7937
|
+
};
|
|
7938
|
+
};
|
|
7939
|
+
var deserializeAws_json1_0ListServicePipelineProvisionedResourcesOutput = function (output, context) {
|
|
7940
|
+
return {
|
|
7941
|
+
nextToken: __expectString(output.nextToken),
|
|
7942
|
+
provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
|
|
7943
|
+
? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
|
|
7944
|
+
: undefined,
|
|
7945
|
+
};
|
|
7946
|
+
};
|
|
5892
7947
|
var deserializeAws_json1_0ListServicesOutput = function (output, context) {
|
|
5893
7948
|
return {
|
|
5894
7949
|
nextToken: __expectString(output.nextToken),
|
|
@@ -5921,6 +7976,42 @@ var deserializeAws_json1_0ListTagsForResourceOutput = function (output, context)
|
|
|
5921
7976
|
: undefined,
|
|
5922
7977
|
};
|
|
5923
7978
|
};
|
|
7979
|
+
var deserializeAws_json1_0NotifyResourceDeploymentStatusChangeOutput = function (output, context) {
|
|
7980
|
+
return {};
|
|
7981
|
+
};
|
|
7982
|
+
var deserializeAws_json1_0Output = function (output, context) {
|
|
7983
|
+
return {
|
|
7984
|
+
key: __expectString(output.key),
|
|
7985
|
+
valueString: __expectString(output.valueString),
|
|
7986
|
+
};
|
|
7987
|
+
};
|
|
7988
|
+
var deserializeAws_json1_0OutputsList = function (output, context) {
|
|
7989
|
+
return (output || [])
|
|
7990
|
+
.filter(function (e) { return e != null; })
|
|
7991
|
+
.map(function (entry) {
|
|
7992
|
+
if (entry === null) {
|
|
7993
|
+
return null;
|
|
7994
|
+
}
|
|
7995
|
+
return deserializeAws_json1_0Output(entry, context);
|
|
7996
|
+
});
|
|
7997
|
+
};
|
|
7998
|
+
var deserializeAws_json1_0ProvisionedResource = function (output, context) {
|
|
7999
|
+
return {
|
|
8000
|
+
identifier: __expectString(output.identifier),
|
|
8001
|
+
name: __expectString(output.name),
|
|
8002
|
+
provisioningEngine: __expectString(output.provisioningEngine),
|
|
8003
|
+
};
|
|
8004
|
+
};
|
|
8005
|
+
var deserializeAws_json1_0ProvisionedResourceList = function (output, context) {
|
|
8006
|
+
return (output || [])
|
|
8007
|
+
.filter(function (e) { return e != null; })
|
|
8008
|
+
.map(function (entry) {
|
|
8009
|
+
if (entry === null) {
|
|
8010
|
+
return null;
|
|
8011
|
+
}
|
|
8012
|
+
return deserializeAws_json1_0ProvisionedResource(entry, context);
|
|
8013
|
+
});
|
|
8014
|
+
};
|
|
5924
8015
|
var deserializeAws_json1_0RejectEnvironmentAccountConnectionOutput = function (output, context) {
|
|
5925
8016
|
return {
|
|
5926
8017
|
environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
|
|
@@ -5928,11 +8019,141 @@ var deserializeAws_json1_0RejectEnvironmentAccountConnectionOutput = function (o
|
|
|
5928
8019
|
: undefined,
|
|
5929
8020
|
};
|
|
5930
8021
|
};
|
|
8022
|
+
var deserializeAws_json1_0Repository = function (output, context) {
|
|
8023
|
+
return {
|
|
8024
|
+
arn: __expectString(output.arn),
|
|
8025
|
+
connectionArn: __expectString(output.connectionArn),
|
|
8026
|
+
encryptionKey: __expectString(output.encryptionKey),
|
|
8027
|
+
name: __expectString(output.name),
|
|
8028
|
+
provider: __expectString(output.provider),
|
|
8029
|
+
};
|
|
8030
|
+
};
|
|
8031
|
+
var deserializeAws_json1_0RepositoryBranch = function (output, context) {
|
|
8032
|
+
return {
|
|
8033
|
+
arn: __expectString(output.arn),
|
|
8034
|
+
branch: __expectString(output.branch),
|
|
8035
|
+
name: __expectString(output.name),
|
|
8036
|
+
provider: __expectString(output.provider),
|
|
8037
|
+
};
|
|
8038
|
+
};
|
|
8039
|
+
var deserializeAws_json1_0RepositorySummary = function (output, context) {
|
|
8040
|
+
return {
|
|
8041
|
+
arn: __expectString(output.arn),
|
|
8042
|
+
name: __expectString(output.name),
|
|
8043
|
+
provider: __expectString(output.provider),
|
|
8044
|
+
};
|
|
8045
|
+
};
|
|
8046
|
+
var deserializeAws_json1_0RepositorySummaryList = function (output, context) {
|
|
8047
|
+
return (output || [])
|
|
8048
|
+
.filter(function (e) { return e != null; })
|
|
8049
|
+
.map(function (entry) {
|
|
8050
|
+
if (entry === null) {
|
|
8051
|
+
return null;
|
|
8052
|
+
}
|
|
8053
|
+
return deserializeAws_json1_0RepositorySummary(entry, context);
|
|
8054
|
+
});
|
|
8055
|
+
};
|
|
8056
|
+
var deserializeAws_json1_0RepositorySyncAttempt = function (output, context) {
|
|
8057
|
+
return {
|
|
8058
|
+
events: output.events !== undefined && output.events !== null
|
|
8059
|
+
? deserializeAws_json1_0RepositorySyncEvents(output.events, context)
|
|
8060
|
+
: undefined,
|
|
8061
|
+
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
8062
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
|
|
8063
|
+
: undefined,
|
|
8064
|
+
status: __expectString(output.status),
|
|
8065
|
+
};
|
|
8066
|
+
};
|
|
8067
|
+
var deserializeAws_json1_0RepositorySyncDefinition = function (output, context) {
|
|
8068
|
+
return {
|
|
8069
|
+
branch: __expectString(output.branch),
|
|
8070
|
+
directory: __expectString(output.directory),
|
|
8071
|
+
parent: __expectString(output.parent),
|
|
8072
|
+
target: __expectString(output.target),
|
|
8073
|
+
};
|
|
8074
|
+
};
|
|
8075
|
+
var deserializeAws_json1_0RepositorySyncDefinitionList = function (output, context) {
|
|
8076
|
+
return (output || [])
|
|
8077
|
+
.filter(function (e) { return e != null; })
|
|
8078
|
+
.map(function (entry) {
|
|
8079
|
+
if (entry === null) {
|
|
8080
|
+
return null;
|
|
8081
|
+
}
|
|
8082
|
+
return deserializeAws_json1_0RepositorySyncDefinition(entry, context);
|
|
8083
|
+
});
|
|
8084
|
+
};
|
|
8085
|
+
var deserializeAws_json1_0RepositorySyncEvent = function (output, context) {
|
|
8086
|
+
return {
|
|
8087
|
+
event: __expectString(output.event),
|
|
8088
|
+
externalId: __expectString(output.externalId),
|
|
8089
|
+
time: output.time !== undefined && output.time !== null
|
|
8090
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.time)))
|
|
8091
|
+
: undefined,
|
|
8092
|
+
type: __expectString(output.type),
|
|
8093
|
+
};
|
|
8094
|
+
};
|
|
8095
|
+
var deserializeAws_json1_0RepositorySyncEvents = function (output, context) {
|
|
8096
|
+
return (output || [])
|
|
8097
|
+
.filter(function (e) { return e != null; })
|
|
8098
|
+
.map(function (entry) {
|
|
8099
|
+
if (entry === null) {
|
|
8100
|
+
return null;
|
|
8101
|
+
}
|
|
8102
|
+
return deserializeAws_json1_0RepositorySyncEvent(entry, context);
|
|
8103
|
+
});
|
|
8104
|
+
};
|
|
5931
8105
|
var deserializeAws_json1_0ResourceNotFoundException = function (output, context) {
|
|
5932
8106
|
return {
|
|
5933
8107
|
message: __expectString(output.message),
|
|
5934
8108
|
};
|
|
5935
8109
|
};
|
|
8110
|
+
var deserializeAws_json1_0ResourceSyncAttempt = function (output, context) {
|
|
8111
|
+
return {
|
|
8112
|
+
events: output.events !== undefined && output.events !== null
|
|
8113
|
+
? deserializeAws_json1_0ResourceSyncEvents(output.events, context)
|
|
8114
|
+
: undefined,
|
|
8115
|
+
initialRevision: output.initialRevision !== undefined && output.initialRevision !== null
|
|
8116
|
+
? deserializeAws_json1_0Revision(output.initialRevision, context)
|
|
8117
|
+
: undefined,
|
|
8118
|
+
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
8119
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt)))
|
|
8120
|
+
: undefined,
|
|
8121
|
+
status: __expectString(output.status),
|
|
8122
|
+
target: __expectString(output.target),
|
|
8123
|
+
targetRevision: output.targetRevision !== undefined && output.targetRevision !== null
|
|
8124
|
+
? deserializeAws_json1_0Revision(output.targetRevision, context)
|
|
8125
|
+
: undefined,
|
|
8126
|
+
};
|
|
8127
|
+
};
|
|
8128
|
+
var deserializeAws_json1_0ResourceSyncEvent = function (output, context) {
|
|
8129
|
+
return {
|
|
8130
|
+
event: __expectString(output.event),
|
|
8131
|
+
externalId: __expectString(output.externalId),
|
|
8132
|
+
time: output.time !== undefined && output.time !== null
|
|
8133
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.time)))
|
|
8134
|
+
: undefined,
|
|
8135
|
+
type: __expectString(output.type),
|
|
8136
|
+
};
|
|
8137
|
+
};
|
|
8138
|
+
var deserializeAws_json1_0ResourceSyncEvents = function (output, context) {
|
|
8139
|
+
return (output || [])
|
|
8140
|
+
.filter(function (e) { return e != null; })
|
|
8141
|
+
.map(function (entry) {
|
|
8142
|
+
if (entry === null) {
|
|
8143
|
+
return null;
|
|
8144
|
+
}
|
|
8145
|
+
return deserializeAws_json1_0ResourceSyncEvent(entry, context);
|
|
8146
|
+
});
|
|
8147
|
+
};
|
|
8148
|
+
var deserializeAws_json1_0Revision = function (output, context) {
|
|
8149
|
+
return {
|
|
8150
|
+
branch: __expectString(output.branch),
|
|
8151
|
+
directory: __expectString(output.directory),
|
|
8152
|
+
repositoryName: __expectString(output.repositoryName),
|
|
8153
|
+
repositoryProvider: __expectString(output.repositoryProvider),
|
|
8154
|
+
sha: __expectString(output.sha),
|
|
8155
|
+
};
|
|
8156
|
+
};
|
|
5936
8157
|
var deserializeAws_json1_0Service = function (output, context) {
|
|
5937
8158
|
return {
|
|
5938
8159
|
arn: __expectString(output.arn),
|
|
@@ -6174,6 +8395,16 @@ var deserializeAws_json1_0TagList = function (output, context) {
|
|
|
6174
8395
|
var deserializeAws_json1_0TagResourceOutput = function (output, context) {
|
|
6175
8396
|
return {};
|
|
6176
8397
|
};
|
|
8398
|
+
var deserializeAws_json1_0TemplateSyncConfig = function (output, context) {
|
|
8399
|
+
return {
|
|
8400
|
+
branch: __expectString(output.branch),
|
|
8401
|
+
repositoryName: __expectString(output.repositoryName),
|
|
8402
|
+
repositoryProvider: __expectString(output.repositoryProvider),
|
|
8403
|
+
subdirectory: __expectString(output.subdirectory),
|
|
8404
|
+
templateName: __expectString(output.templateName),
|
|
8405
|
+
templateType: __expectString(output.templateType),
|
|
8406
|
+
};
|
|
8407
|
+
};
|
|
6177
8408
|
var deserializeAws_json1_0ThrottlingException = function (output, context) {
|
|
6178
8409
|
return {
|
|
6179
8410
|
message: __expectString(output.message),
|
|
@@ -6252,6 +8483,13 @@ var deserializeAws_json1_0UpdateServiceTemplateVersionOutput = function (output,
|
|
|
6252
8483
|
: undefined,
|
|
6253
8484
|
};
|
|
6254
8485
|
};
|
|
8486
|
+
var deserializeAws_json1_0UpdateTemplateSyncConfigOutput = function (output, context) {
|
|
8487
|
+
return {
|
|
8488
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
8489
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
8490
|
+
: undefined,
|
|
8491
|
+
};
|
|
8492
|
+
};
|
|
6255
8493
|
var deserializeAws_json1_0ValidationException = function (output, context) {
|
|
6256
8494
|
return {
|
|
6257
8495
|
message: __expectString(output.message),
|