@aws-sdk/client-proton 3.40.0 → 3.45.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 +41 -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 +9 -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-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 +9 -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-types/Proton.d.ts +400 -248
- package/dist-types/ProtonClient.d.ts +108 -81
- package/dist-types/commands/AcceptEnvironmentAccountConnectionCommand.d.ts +5 -6
- package/dist-types/commands/CancelEnvironmentDeploymentCommand.d.ts +10 -9
- package/dist-types/commands/CancelServiceInstanceDeploymentCommand.d.ts +8 -8
- package/dist-types/commands/CancelServicePipelineDeploymentCommand.d.ts +8 -8
- package/dist-types/commands/CreateEnvironmentAccountConnectionCommand.d.ts +6 -6
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +17 -4
- package/dist-types/commands/CreateEnvironmentTemplateCommand.d.ts +10 -12
- package/dist-types/commands/CreateEnvironmentTemplateVersionCommand.d.ts +3 -3
- package/dist-types/commands/CreateRepositoryCommand.d.ts +37 -0
- package/dist-types/commands/CreateServiceCommand.d.ts +5 -4
- package/dist-types/commands/CreateServiceTemplateCommand.d.ts +6 -6
- package/dist-types/commands/CreateServiceTemplateVersionCommand.d.ts +3 -4
- package/dist-types/commands/CreateTemplateSyncConfigCommand.d.ts +38 -0
- package/dist-types/commands/DeleteEnvironmentAccountConnectionCommand.d.ts +6 -6
- package/dist-types/commands/DeleteEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEnvironmentTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteEnvironmentTemplateVersionCommand.d.ts +6 -7
- package/dist-types/commands/DeleteRepositoryCommand.d.ts +35 -0
- package/dist-types/commands/DeleteServiceCommand.d.ts +1 -1
- package/dist-types/commands/DeleteServiceTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteServiceTemplateVersionCommand.d.ts +6 -7
- package/dist-types/commands/DeleteTemplateSyncConfigCommand.d.ts +35 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +2 -2
- package/dist-types/commands/GetEnvironmentAccountConnectionCommand.d.ts +3 -3
- package/dist-types/commands/GetEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/GetEnvironmentTemplateCommand.d.ts +1 -1
- package/dist-types/commands/GetEnvironmentTemplateVersionCommand.d.ts +1 -1
- package/dist-types/commands/GetRepositoryCommand.d.ts +35 -0
- package/dist-types/commands/GetRepositorySyncStatusCommand.d.ts +35 -0
- package/dist-types/commands/GetServiceCommand.d.ts +1 -1
- package/dist-types/commands/GetServiceInstanceCommand.d.ts +2 -2
- package/dist-types/commands/GetServiceTemplateCommand.d.ts +1 -1
- package/dist-types/commands/GetServiceTemplateVersionCommand.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 +3 -3
- package/dist-types/commands/ListEnvironmentOutputsCommand.d.ts +35 -0
- package/dist-types/commands/ListEnvironmentProvisionedResourcesCommand.d.ts +35 -0
- package/dist-types/commands/ListEnvironmentTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListEnvironmentTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +1 -1
- 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/ListServiceInstancesCommand.d.ts +1 -1
- package/dist-types/commands/ListServicePipelineOutputsCommand.d.ts +35 -0
- package/dist-types/commands/ListServicePipelineProvisionedResourcesCommand.d.ts +35 -0
- package/dist-types/commands/ListServiceTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListServiceTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListServicesCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/NotifyResourceDeploymentStatusChangeCommand.d.ts +41 -0
- package/dist-types/commands/RejectEnvironmentAccountConnectionCommand.d.ts +6 -6
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +2 -2
- package/dist-types/commands/UpdateEnvironmentAccountConnectionCommand.d.ts +3 -3
- package/dist-types/commands/UpdateEnvironmentCommand.d.ts +31 -29
- package/dist-types/commands/UpdateEnvironmentTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateEnvironmentTemplateVersionCommand.d.ts +1 -1
- package/dist-types/commands/UpdateServiceCommand.d.ts +6 -7
- package/dist-types/commands/UpdateServiceInstanceCommand.d.ts +20 -22
- package/dist-types/commands/UpdateServicePipelineCommand.d.ts +20 -22
- package/dist-types/commands/UpdateServiceTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateServiceTemplateVersionCommand.d.ts +1 -1
- 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 +6 -6
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_json1_0ListServiceTemplatesCommand = exports.serializeAws_json1_0ListServicesCommand = exports.serializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = exports.serializeAws_json1_0ListServicePipelineOutputsCommand = exports.serializeAws_json1_0ListServiceInstancesCommand = exports.serializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = exports.serializeAws_json1_0ListServiceInstanceOutputsCommand = exports.serializeAws_json1_0ListRepositorySyncDefinitionsCommand = exports.serializeAws_json1_0ListRepositoriesCommand = exports.serializeAws_json1_0ListEnvironmentTemplateVersionsCommand = exports.serializeAws_json1_0ListEnvironmentTemplatesCommand = exports.serializeAws_json1_0ListEnvironmentsCommand = exports.serializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = exports.serializeAws_json1_0ListEnvironmentOutputsCommand = exports.serializeAws_json1_0ListEnvironmentAccountConnectionsCommand = exports.serializeAws_json1_0GetTemplateSyncStatusCommand = exports.serializeAws_json1_0GetTemplateSyncConfigCommand = exports.serializeAws_json1_0GetServiceTemplateVersionCommand = exports.serializeAws_json1_0GetServiceTemplateCommand = exports.serializeAws_json1_0GetServiceInstanceCommand = exports.serializeAws_json1_0GetServiceCommand = exports.serializeAws_json1_0GetRepositorySyncStatusCommand = exports.serializeAws_json1_0GetRepositoryCommand = exports.serializeAws_json1_0GetEnvironmentTemplateVersionCommand = exports.serializeAws_json1_0GetEnvironmentTemplateCommand = exports.serializeAws_json1_0GetEnvironmentAccountConnectionCommand = exports.serializeAws_json1_0GetEnvironmentCommand = exports.serializeAws_json1_0GetAccountSettingsCommand = exports.serializeAws_json1_0DeleteTemplateSyncConfigCommand = exports.serializeAws_json1_0DeleteServiceTemplateVersionCommand = exports.serializeAws_json1_0DeleteServiceTemplateCommand = exports.serializeAws_json1_0DeleteServiceCommand = exports.serializeAws_json1_0DeleteRepositoryCommand = exports.serializeAws_json1_0DeleteEnvironmentTemplateVersionCommand = exports.serializeAws_json1_0DeleteEnvironmentTemplateCommand = exports.serializeAws_json1_0DeleteEnvironmentAccountConnectionCommand = exports.serializeAws_json1_0DeleteEnvironmentCommand = exports.serializeAws_json1_0CreateTemplateSyncConfigCommand = exports.serializeAws_json1_0CreateServiceTemplateVersionCommand = exports.serializeAws_json1_0CreateServiceTemplateCommand = exports.serializeAws_json1_0CreateServiceCommand = exports.serializeAws_json1_0CreateRepositoryCommand = exports.serializeAws_json1_0CreateEnvironmentTemplateVersionCommand = exports.serializeAws_json1_0CreateEnvironmentTemplateCommand = exports.serializeAws_json1_0CreateEnvironmentAccountConnectionCommand = exports.serializeAws_json1_0CreateEnvironmentCommand = exports.serializeAws_json1_0CancelServicePipelineDeploymentCommand = exports.serializeAws_json1_0CancelServiceInstanceDeploymentCommand = exports.serializeAws_json1_0CancelEnvironmentDeploymentCommand = exports.serializeAws_json1_0AcceptEnvironmentAccountConnectionCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0GetServiceTemplateVersionCommand = exports.deserializeAws_json1_0GetServiceTemplateCommand = exports.deserializeAws_json1_0GetServiceInstanceCommand = exports.deserializeAws_json1_0GetServiceCommand = exports.deserializeAws_json1_0GetRepositorySyncStatusCommand = exports.deserializeAws_json1_0GetRepositoryCommand = exports.deserializeAws_json1_0GetEnvironmentTemplateVersionCommand = exports.deserializeAws_json1_0GetEnvironmentTemplateCommand = exports.deserializeAws_json1_0GetEnvironmentAccountConnectionCommand = exports.deserializeAws_json1_0GetEnvironmentCommand = exports.deserializeAws_json1_0GetAccountSettingsCommand = exports.deserializeAws_json1_0DeleteTemplateSyncConfigCommand = exports.deserializeAws_json1_0DeleteServiceTemplateVersionCommand = exports.deserializeAws_json1_0DeleteServiceTemplateCommand = exports.deserializeAws_json1_0DeleteServiceCommand = exports.deserializeAws_json1_0DeleteRepositoryCommand = exports.deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommand = exports.deserializeAws_json1_0DeleteEnvironmentTemplateCommand = exports.deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommand = exports.deserializeAws_json1_0DeleteEnvironmentCommand = exports.deserializeAws_json1_0CreateTemplateSyncConfigCommand = exports.deserializeAws_json1_0CreateServiceTemplateVersionCommand = exports.deserializeAws_json1_0CreateServiceTemplateCommand = exports.deserializeAws_json1_0CreateServiceCommand = exports.deserializeAws_json1_0CreateRepositoryCommand = exports.deserializeAws_json1_0CreateEnvironmentTemplateVersionCommand = exports.deserializeAws_json1_0CreateEnvironmentTemplateCommand = exports.deserializeAws_json1_0CreateEnvironmentAccountConnectionCommand = exports.deserializeAws_json1_0CreateEnvironmentCommand = exports.deserializeAws_json1_0CancelServicePipelineDeploymentCommand = exports.deserializeAws_json1_0CancelServiceInstanceDeploymentCommand = exports.deserializeAws_json1_0CancelEnvironmentDeploymentCommand = exports.deserializeAws_json1_0AcceptEnvironmentAccountConnectionCommand = exports.serializeAws_json1_0UpdateTemplateSyncConfigCommand = exports.serializeAws_json1_0UpdateServiceTemplateVersionCommand = exports.serializeAws_json1_0UpdateServiceTemplateCommand = exports.serializeAws_json1_0UpdateServicePipelineCommand = exports.serializeAws_json1_0UpdateServiceInstanceCommand = exports.serializeAws_json1_0UpdateServiceCommand = exports.serializeAws_json1_0UpdateEnvironmentTemplateVersionCommand = exports.serializeAws_json1_0UpdateEnvironmentTemplateCommand = exports.serializeAws_json1_0UpdateEnvironmentAccountConnectionCommand = exports.serializeAws_json1_0UpdateEnvironmentCommand = exports.serializeAws_json1_0UpdateAccountSettingsCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0RejectEnvironmentAccountConnectionCommand = exports.serializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListServiceTemplateVersionsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_0UpdateTemplateSyncConfigCommand = exports.deserializeAws_json1_0UpdateServiceTemplateVersionCommand = exports.deserializeAws_json1_0UpdateServiceTemplateCommand = exports.deserializeAws_json1_0UpdateServicePipelineCommand = exports.deserializeAws_json1_0UpdateServiceInstanceCommand = exports.deserializeAws_json1_0UpdateServiceCommand = exports.deserializeAws_json1_0UpdateEnvironmentTemplateVersionCommand = exports.deserializeAws_json1_0UpdateEnvironmentTemplateCommand = exports.deserializeAws_json1_0UpdateEnvironmentAccountConnectionCommand = exports.deserializeAws_json1_0UpdateEnvironmentCommand = exports.deserializeAws_json1_0UpdateAccountSettingsCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0RejectEnvironmentAccountConnectionCommand = exports.deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListServiceTemplateVersionsCommand = exports.deserializeAws_json1_0ListServiceTemplatesCommand = exports.deserializeAws_json1_0ListServicesCommand = exports.deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = exports.deserializeAws_json1_0ListServicePipelineOutputsCommand = exports.deserializeAws_json1_0ListServiceInstancesCommand = exports.deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = exports.deserializeAws_json1_0ListServiceInstanceOutputsCommand = exports.deserializeAws_json1_0ListRepositorySyncDefinitionsCommand = exports.deserializeAws_json1_0ListRepositoriesCommand = exports.deserializeAws_json1_0ListEnvironmentTemplateVersionsCommand = exports.deserializeAws_json1_0ListEnvironmentTemplatesCommand = exports.deserializeAws_json1_0ListEnvironmentsCommand = exports.deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = exports.deserializeAws_json1_0ListEnvironmentOutputsCommand = exports.deserializeAws_json1_0ListEnvironmentAccountConnectionsCommand = exports.deserializeAws_json1_0GetTemplateSyncStatusCommand = exports.deserializeAws_json1_0GetTemplateSyncConfigCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const uuid_1 = require("uuid");
|
|
@@ -86,6 +87,16 @@ const serializeAws_json1_0CreateEnvironmentTemplateVersionCommand = async (input
|
|
|
86
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
88
|
};
|
|
88
89
|
exports.serializeAws_json1_0CreateEnvironmentTemplateVersionCommand = serializeAws_json1_0CreateEnvironmentTemplateVersionCommand;
|
|
90
|
+
const serializeAws_json1_0CreateRepositoryCommand = async (input, context) => {
|
|
91
|
+
const headers = {
|
|
92
|
+
"content-type": "application/x-amz-json-1.0",
|
|
93
|
+
"x-amz-target": "AwsProton20200720.CreateRepository",
|
|
94
|
+
};
|
|
95
|
+
let body;
|
|
96
|
+
body = JSON.stringify(serializeAws_json1_0CreateRepositoryInput(input, context));
|
|
97
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
+
};
|
|
99
|
+
exports.serializeAws_json1_0CreateRepositoryCommand = serializeAws_json1_0CreateRepositoryCommand;
|
|
89
100
|
const serializeAws_json1_0CreateServiceCommand = async (input, context) => {
|
|
90
101
|
const headers = {
|
|
91
102
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -116,6 +127,16 @@ const serializeAws_json1_0CreateServiceTemplateVersionCommand = async (input, co
|
|
|
116
127
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
128
|
};
|
|
118
129
|
exports.serializeAws_json1_0CreateServiceTemplateVersionCommand = serializeAws_json1_0CreateServiceTemplateVersionCommand;
|
|
130
|
+
const serializeAws_json1_0CreateTemplateSyncConfigCommand = async (input, context) => {
|
|
131
|
+
const headers = {
|
|
132
|
+
"content-type": "application/x-amz-json-1.0",
|
|
133
|
+
"x-amz-target": "AwsProton20200720.CreateTemplateSyncConfig",
|
|
134
|
+
};
|
|
135
|
+
let body;
|
|
136
|
+
body = JSON.stringify(serializeAws_json1_0CreateTemplateSyncConfigInput(input, context));
|
|
137
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
+
};
|
|
139
|
+
exports.serializeAws_json1_0CreateTemplateSyncConfigCommand = serializeAws_json1_0CreateTemplateSyncConfigCommand;
|
|
119
140
|
const serializeAws_json1_0DeleteEnvironmentCommand = async (input, context) => {
|
|
120
141
|
const headers = {
|
|
121
142
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -156,6 +177,16 @@ const serializeAws_json1_0DeleteEnvironmentTemplateVersionCommand = async (input
|
|
|
156
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
178
|
};
|
|
158
179
|
exports.serializeAws_json1_0DeleteEnvironmentTemplateVersionCommand = serializeAws_json1_0DeleteEnvironmentTemplateVersionCommand;
|
|
180
|
+
const serializeAws_json1_0DeleteRepositoryCommand = async (input, context) => {
|
|
181
|
+
const headers = {
|
|
182
|
+
"content-type": "application/x-amz-json-1.0",
|
|
183
|
+
"x-amz-target": "AwsProton20200720.DeleteRepository",
|
|
184
|
+
};
|
|
185
|
+
let body;
|
|
186
|
+
body = JSON.stringify(serializeAws_json1_0DeleteRepositoryInput(input, context));
|
|
187
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
|
+
};
|
|
189
|
+
exports.serializeAws_json1_0DeleteRepositoryCommand = serializeAws_json1_0DeleteRepositoryCommand;
|
|
159
190
|
const serializeAws_json1_0DeleteServiceCommand = async (input, context) => {
|
|
160
191
|
const headers = {
|
|
161
192
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -186,6 +217,16 @@ const serializeAws_json1_0DeleteServiceTemplateVersionCommand = async (input, co
|
|
|
186
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
218
|
};
|
|
188
219
|
exports.serializeAws_json1_0DeleteServiceTemplateVersionCommand = serializeAws_json1_0DeleteServiceTemplateVersionCommand;
|
|
220
|
+
const serializeAws_json1_0DeleteTemplateSyncConfigCommand = async (input, context) => {
|
|
221
|
+
const headers = {
|
|
222
|
+
"content-type": "application/x-amz-json-1.0",
|
|
223
|
+
"x-amz-target": "AwsProton20200720.DeleteTemplateSyncConfig",
|
|
224
|
+
};
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(serializeAws_json1_0DeleteTemplateSyncConfigInput(input, context));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
+
};
|
|
229
|
+
exports.serializeAws_json1_0DeleteTemplateSyncConfigCommand = serializeAws_json1_0DeleteTemplateSyncConfigCommand;
|
|
189
230
|
const serializeAws_json1_0GetAccountSettingsCommand = async (input, context) => {
|
|
190
231
|
const headers = {
|
|
191
232
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -236,6 +277,26 @@ const serializeAws_json1_0GetEnvironmentTemplateVersionCommand = async (input, c
|
|
|
236
277
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
278
|
};
|
|
238
279
|
exports.serializeAws_json1_0GetEnvironmentTemplateVersionCommand = serializeAws_json1_0GetEnvironmentTemplateVersionCommand;
|
|
280
|
+
const serializeAws_json1_0GetRepositoryCommand = async (input, context) => {
|
|
281
|
+
const headers = {
|
|
282
|
+
"content-type": "application/x-amz-json-1.0",
|
|
283
|
+
"x-amz-target": "AwsProton20200720.GetRepository",
|
|
284
|
+
};
|
|
285
|
+
let body;
|
|
286
|
+
body = JSON.stringify(serializeAws_json1_0GetRepositoryInput(input, context));
|
|
287
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
+
};
|
|
289
|
+
exports.serializeAws_json1_0GetRepositoryCommand = serializeAws_json1_0GetRepositoryCommand;
|
|
290
|
+
const serializeAws_json1_0GetRepositorySyncStatusCommand = async (input, context) => {
|
|
291
|
+
const headers = {
|
|
292
|
+
"content-type": "application/x-amz-json-1.0",
|
|
293
|
+
"x-amz-target": "AwsProton20200720.GetRepositorySyncStatus",
|
|
294
|
+
};
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify(serializeAws_json1_0GetRepositorySyncStatusInput(input, context));
|
|
297
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
|
+
};
|
|
299
|
+
exports.serializeAws_json1_0GetRepositorySyncStatusCommand = serializeAws_json1_0GetRepositorySyncStatusCommand;
|
|
239
300
|
const serializeAws_json1_0GetServiceCommand = async (input, context) => {
|
|
240
301
|
const headers = {
|
|
241
302
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -276,6 +337,26 @@ const serializeAws_json1_0GetServiceTemplateVersionCommand = async (input, conte
|
|
|
276
337
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
338
|
};
|
|
278
339
|
exports.serializeAws_json1_0GetServiceTemplateVersionCommand = serializeAws_json1_0GetServiceTemplateVersionCommand;
|
|
340
|
+
const serializeAws_json1_0GetTemplateSyncConfigCommand = async (input, context) => {
|
|
341
|
+
const headers = {
|
|
342
|
+
"content-type": "application/x-amz-json-1.0",
|
|
343
|
+
"x-amz-target": "AwsProton20200720.GetTemplateSyncConfig",
|
|
344
|
+
};
|
|
345
|
+
let body;
|
|
346
|
+
body = JSON.stringify(serializeAws_json1_0GetTemplateSyncConfigInput(input, context));
|
|
347
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
|
+
};
|
|
349
|
+
exports.serializeAws_json1_0GetTemplateSyncConfigCommand = serializeAws_json1_0GetTemplateSyncConfigCommand;
|
|
350
|
+
const serializeAws_json1_0GetTemplateSyncStatusCommand = async (input, context) => {
|
|
351
|
+
const headers = {
|
|
352
|
+
"content-type": "application/x-amz-json-1.0",
|
|
353
|
+
"x-amz-target": "AwsProton20200720.GetTemplateSyncStatus",
|
|
354
|
+
};
|
|
355
|
+
let body;
|
|
356
|
+
body = JSON.stringify(serializeAws_json1_0GetTemplateSyncStatusInput(input, context));
|
|
357
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
|
+
};
|
|
359
|
+
exports.serializeAws_json1_0GetTemplateSyncStatusCommand = serializeAws_json1_0GetTemplateSyncStatusCommand;
|
|
279
360
|
const serializeAws_json1_0ListEnvironmentAccountConnectionsCommand = async (input, context) => {
|
|
280
361
|
const headers = {
|
|
281
362
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -286,6 +367,26 @@ const serializeAws_json1_0ListEnvironmentAccountConnectionsCommand = async (inpu
|
|
|
286
367
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
368
|
};
|
|
288
369
|
exports.serializeAws_json1_0ListEnvironmentAccountConnectionsCommand = serializeAws_json1_0ListEnvironmentAccountConnectionsCommand;
|
|
370
|
+
const serializeAws_json1_0ListEnvironmentOutputsCommand = async (input, context) => {
|
|
371
|
+
const headers = {
|
|
372
|
+
"content-type": "application/x-amz-json-1.0",
|
|
373
|
+
"x-amz-target": "AwsProton20200720.ListEnvironmentOutputs",
|
|
374
|
+
};
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(serializeAws_json1_0ListEnvironmentOutputsInput(input, context));
|
|
377
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
|
+
};
|
|
379
|
+
exports.serializeAws_json1_0ListEnvironmentOutputsCommand = serializeAws_json1_0ListEnvironmentOutputsCommand;
|
|
380
|
+
const serializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = async (input, context) => {
|
|
381
|
+
const headers = {
|
|
382
|
+
"content-type": "application/x-amz-json-1.0",
|
|
383
|
+
"x-amz-target": "AwsProton20200720.ListEnvironmentProvisionedResources",
|
|
384
|
+
};
|
|
385
|
+
let body;
|
|
386
|
+
body = JSON.stringify(serializeAws_json1_0ListEnvironmentProvisionedResourcesInput(input, context));
|
|
387
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
+
};
|
|
389
|
+
exports.serializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = serializeAws_json1_0ListEnvironmentProvisionedResourcesCommand;
|
|
289
390
|
const serializeAws_json1_0ListEnvironmentsCommand = async (input, context) => {
|
|
290
391
|
const headers = {
|
|
291
392
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -316,6 +417,46 @@ const serializeAws_json1_0ListEnvironmentTemplateVersionsCommand = async (input,
|
|
|
316
417
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
418
|
};
|
|
318
419
|
exports.serializeAws_json1_0ListEnvironmentTemplateVersionsCommand = serializeAws_json1_0ListEnvironmentTemplateVersionsCommand;
|
|
420
|
+
const serializeAws_json1_0ListRepositoriesCommand = async (input, context) => {
|
|
421
|
+
const headers = {
|
|
422
|
+
"content-type": "application/x-amz-json-1.0",
|
|
423
|
+
"x-amz-target": "AwsProton20200720.ListRepositories",
|
|
424
|
+
};
|
|
425
|
+
let body;
|
|
426
|
+
body = JSON.stringify(serializeAws_json1_0ListRepositoriesInput(input, context));
|
|
427
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
|
+
};
|
|
429
|
+
exports.serializeAws_json1_0ListRepositoriesCommand = serializeAws_json1_0ListRepositoriesCommand;
|
|
430
|
+
const serializeAws_json1_0ListRepositorySyncDefinitionsCommand = async (input, context) => {
|
|
431
|
+
const headers = {
|
|
432
|
+
"content-type": "application/x-amz-json-1.0",
|
|
433
|
+
"x-amz-target": "AwsProton20200720.ListRepositorySyncDefinitions",
|
|
434
|
+
};
|
|
435
|
+
let body;
|
|
436
|
+
body = JSON.stringify(serializeAws_json1_0ListRepositorySyncDefinitionsInput(input, context));
|
|
437
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
|
+
};
|
|
439
|
+
exports.serializeAws_json1_0ListRepositorySyncDefinitionsCommand = serializeAws_json1_0ListRepositorySyncDefinitionsCommand;
|
|
440
|
+
const serializeAws_json1_0ListServiceInstanceOutputsCommand = async (input, context) => {
|
|
441
|
+
const headers = {
|
|
442
|
+
"content-type": "application/x-amz-json-1.0",
|
|
443
|
+
"x-amz-target": "AwsProton20200720.ListServiceInstanceOutputs",
|
|
444
|
+
};
|
|
445
|
+
let body;
|
|
446
|
+
body = JSON.stringify(serializeAws_json1_0ListServiceInstanceOutputsInput(input, context));
|
|
447
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
|
+
};
|
|
449
|
+
exports.serializeAws_json1_0ListServiceInstanceOutputsCommand = serializeAws_json1_0ListServiceInstanceOutputsCommand;
|
|
450
|
+
const serializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = async (input, context) => {
|
|
451
|
+
const headers = {
|
|
452
|
+
"content-type": "application/x-amz-json-1.0",
|
|
453
|
+
"x-amz-target": "AwsProton20200720.ListServiceInstanceProvisionedResources",
|
|
454
|
+
};
|
|
455
|
+
let body;
|
|
456
|
+
body = JSON.stringify(serializeAws_json1_0ListServiceInstanceProvisionedResourcesInput(input, context));
|
|
457
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
|
+
};
|
|
459
|
+
exports.serializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = serializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand;
|
|
319
460
|
const serializeAws_json1_0ListServiceInstancesCommand = async (input, context) => {
|
|
320
461
|
const headers = {
|
|
321
462
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -326,6 +467,26 @@ const serializeAws_json1_0ListServiceInstancesCommand = async (input, context) =
|
|
|
326
467
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
468
|
};
|
|
328
469
|
exports.serializeAws_json1_0ListServiceInstancesCommand = serializeAws_json1_0ListServiceInstancesCommand;
|
|
470
|
+
const serializeAws_json1_0ListServicePipelineOutputsCommand = async (input, context) => {
|
|
471
|
+
const headers = {
|
|
472
|
+
"content-type": "application/x-amz-json-1.0",
|
|
473
|
+
"x-amz-target": "AwsProton20200720.ListServicePipelineOutputs",
|
|
474
|
+
};
|
|
475
|
+
let body;
|
|
476
|
+
body = JSON.stringify(serializeAws_json1_0ListServicePipelineOutputsInput(input, context));
|
|
477
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
+
};
|
|
479
|
+
exports.serializeAws_json1_0ListServicePipelineOutputsCommand = serializeAws_json1_0ListServicePipelineOutputsCommand;
|
|
480
|
+
const serializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = async (input, context) => {
|
|
481
|
+
const headers = {
|
|
482
|
+
"content-type": "application/x-amz-json-1.0",
|
|
483
|
+
"x-amz-target": "AwsProton20200720.ListServicePipelineProvisionedResources",
|
|
484
|
+
};
|
|
485
|
+
let body;
|
|
486
|
+
body = JSON.stringify(serializeAws_json1_0ListServicePipelineProvisionedResourcesInput(input, context));
|
|
487
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
488
|
+
};
|
|
489
|
+
exports.serializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = serializeAws_json1_0ListServicePipelineProvisionedResourcesCommand;
|
|
329
490
|
const serializeAws_json1_0ListServicesCommand = async (input, context) => {
|
|
330
491
|
const headers = {
|
|
331
492
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -366,6 +527,16 @@ const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) =>
|
|
|
366
527
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
367
528
|
};
|
|
368
529
|
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
530
|
+
const serializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = async (input, context) => {
|
|
531
|
+
const headers = {
|
|
532
|
+
"content-type": "application/x-amz-json-1.0",
|
|
533
|
+
"x-amz-target": "AwsProton20200720.NotifyResourceDeploymentStatusChange",
|
|
534
|
+
};
|
|
535
|
+
let body;
|
|
536
|
+
body = JSON.stringify(serializeAws_json1_0NotifyResourceDeploymentStatusChangeInput(input, context));
|
|
537
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
538
|
+
};
|
|
539
|
+
exports.serializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = serializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand;
|
|
369
540
|
const serializeAws_json1_0RejectEnvironmentAccountConnectionCommand = async (input, context) => {
|
|
370
541
|
const headers = {
|
|
371
542
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -496,6 +667,16 @@ const serializeAws_json1_0UpdateServiceTemplateVersionCommand = async (input, co
|
|
|
496
667
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
497
668
|
};
|
|
498
669
|
exports.serializeAws_json1_0UpdateServiceTemplateVersionCommand = serializeAws_json1_0UpdateServiceTemplateVersionCommand;
|
|
670
|
+
const serializeAws_json1_0UpdateTemplateSyncConfigCommand = async (input, context) => {
|
|
671
|
+
const headers = {
|
|
672
|
+
"content-type": "application/x-amz-json-1.0",
|
|
673
|
+
"x-amz-target": "AwsProton20200720.UpdateTemplateSyncConfig",
|
|
674
|
+
};
|
|
675
|
+
let body;
|
|
676
|
+
body = JSON.stringify(serializeAws_json1_0UpdateTemplateSyncConfigInput(input, context));
|
|
677
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
678
|
+
};
|
|
679
|
+
exports.serializeAws_json1_0UpdateTemplateSyncConfigCommand = serializeAws_json1_0UpdateTemplateSyncConfigCommand;
|
|
499
680
|
const deserializeAws_json1_0AcceptEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
500
681
|
if (output.statusCode >= 300) {
|
|
501
682
|
return deserializeAws_json1_0AcceptEnvironmentAccountConnectionCommandError(output, context);
|
|
@@ -1208,21 +1389,21 @@ const deserializeAws_json1_0CreateEnvironmentTemplateVersionCommandError = async
|
|
|
1208
1389
|
delete response.Message;
|
|
1209
1390
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1210
1391
|
};
|
|
1211
|
-
const
|
|
1392
|
+
const deserializeAws_json1_0CreateRepositoryCommand = async (output, context) => {
|
|
1212
1393
|
if (output.statusCode >= 300) {
|
|
1213
|
-
return
|
|
1394
|
+
return deserializeAws_json1_0CreateRepositoryCommandError(output, context);
|
|
1214
1395
|
}
|
|
1215
1396
|
const data = await parseBody(output.body, context);
|
|
1216
1397
|
let contents = {};
|
|
1217
|
-
contents =
|
|
1398
|
+
contents = deserializeAws_json1_0CreateRepositoryOutput(data, context);
|
|
1218
1399
|
const response = {
|
|
1219
1400
|
$metadata: deserializeMetadata(output),
|
|
1220
1401
|
...contents,
|
|
1221
1402
|
};
|
|
1222
1403
|
return Promise.resolve(response);
|
|
1223
1404
|
};
|
|
1224
|
-
exports.
|
|
1225
|
-
const
|
|
1405
|
+
exports.deserializeAws_json1_0CreateRepositoryCommand = deserializeAws_json1_0CreateRepositoryCommand;
|
|
1406
|
+
const deserializeAws_json1_0CreateRepositoryCommandError = async (output, context) => {
|
|
1226
1407
|
const parsedOutput = {
|
|
1227
1408
|
...output,
|
|
1228
1409
|
body: await parseBody(output.body, context),
|
|
@@ -1255,14 +1436,6 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
|
|
|
1255
1436
|
$metadata: deserializeMetadata(output),
|
|
1256
1437
|
};
|
|
1257
1438
|
break;
|
|
1258
|
-
case "ResourceNotFoundException":
|
|
1259
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1260
|
-
response = {
|
|
1261
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1262
|
-
name: errorCode,
|
|
1263
|
-
$metadata: deserializeMetadata(output),
|
|
1264
|
-
};
|
|
1265
|
-
break;
|
|
1266
1439
|
case "ServiceQuotaExceededException":
|
|
1267
1440
|
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1268
1441
|
response = {
|
|
@@ -1303,21 +1476,21 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
|
|
|
1303
1476
|
delete response.Message;
|
|
1304
1477
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1305
1478
|
};
|
|
1306
|
-
const
|
|
1479
|
+
const deserializeAws_json1_0CreateServiceCommand = async (output, context) => {
|
|
1307
1480
|
if (output.statusCode >= 300) {
|
|
1308
|
-
return
|
|
1481
|
+
return deserializeAws_json1_0CreateServiceCommandError(output, context);
|
|
1309
1482
|
}
|
|
1310
1483
|
const data = await parseBody(output.body, context);
|
|
1311
1484
|
let contents = {};
|
|
1312
|
-
contents =
|
|
1485
|
+
contents = deserializeAws_json1_0CreateServiceOutput(data, context);
|
|
1313
1486
|
const response = {
|
|
1314
1487
|
$metadata: deserializeMetadata(output),
|
|
1315
1488
|
...contents,
|
|
1316
1489
|
};
|
|
1317
1490
|
return Promise.resolve(response);
|
|
1318
1491
|
};
|
|
1319
|
-
exports.
|
|
1320
|
-
const
|
|
1492
|
+
exports.deserializeAws_json1_0CreateServiceCommand = deserializeAws_json1_0CreateServiceCommand;
|
|
1493
|
+
const deserializeAws_json1_0CreateServiceCommandError = async (output, context) => {
|
|
1321
1494
|
const parsedOutput = {
|
|
1322
1495
|
...output,
|
|
1323
1496
|
body: await parseBody(output.body, context),
|
|
@@ -1350,6 +1523,14 @@ const deserializeAws_json1_0CreateServiceTemplateCommandError = async (output, c
|
|
|
1350
1523
|
$metadata: deserializeMetadata(output),
|
|
1351
1524
|
};
|
|
1352
1525
|
break;
|
|
1526
|
+
case "ResourceNotFoundException":
|
|
1527
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1528
|
+
response = {
|
|
1529
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1530
|
+
name: errorCode,
|
|
1531
|
+
$metadata: deserializeMetadata(output),
|
|
1532
|
+
};
|
|
1533
|
+
break;
|
|
1353
1534
|
case "ServiceQuotaExceededException":
|
|
1354
1535
|
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1355
1536
|
response = {
|
|
@@ -1390,21 +1571,21 @@ const deserializeAws_json1_0CreateServiceTemplateCommandError = async (output, c
|
|
|
1390
1571
|
delete response.Message;
|
|
1391
1572
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1392
1573
|
};
|
|
1393
|
-
const
|
|
1574
|
+
const deserializeAws_json1_0CreateServiceTemplateCommand = async (output, context) => {
|
|
1394
1575
|
if (output.statusCode >= 300) {
|
|
1395
|
-
return
|
|
1576
|
+
return deserializeAws_json1_0CreateServiceTemplateCommandError(output, context);
|
|
1396
1577
|
}
|
|
1397
1578
|
const data = await parseBody(output.body, context);
|
|
1398
1579
|
let contents = {};
|
|
1399
|
-
contents =
|
|
1580
|
+
contents = deserializeAws_json1_0CreateServiceTemplateOutput(data, context);
|
|
1400
1581
|
const response = {
|
|
1401
1582
|
$metadata: deserializeMetadata(output),
|
|
1402
1583
|
...contents,
|
|
1403
1584
|
};
|
|
1404
1585
|
return Promise.resolve(response);
|
|
1405
1586
|
};
|
|
1406
|
-
exports.
|
|
1407
|
-
const
|
|
1587
|
+
exports.deserializeAws_json1_0CreateServiceTemplateCommand = deserializeAws_json1_0CreateServiceTemplateCommand;
|
|
1588
|
+
const deserializeAws_json1_0CreateServiceTemplateCommandError = async (output, context) => {
|
|
1408
1589
|
const parsedOutput = {
|
|
1409
1590
|
...output,
|
|
1410
1591
|
body: await parseBody(output.body, context),
|
|
@@ -1437,14 +1618,6 @@ const deserializeAws_json1_0CreateServiceTemplateVersionCommandError = async (ou
|
|
|
1437
1618
|
$metadata: deserializeMetadata(output),
|
|
1438
1619
|
};
|
|
1439
1620
|
break;
|
|
1440
|
-
case "ResourceNotFoundException":
|
|
1441
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
1442
|
-
response = {
|
|
1443
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1444
|
-
name: errorCode,
|
|
1445
|
-
$metadata: deserializeMetadata(output),
|
|
1446
|
-
};
|
|
1447
|
-
break;
|
|
1448
1621
|
case "ServiceQuotaExceededException":
|
|
1449
1622
|
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1450
1623
|
response = {
|
|
@@ -1485,21 +1658,21 @@ const deserializeAws_json1_0CreateServiceTemplateVersionCommandError = async (ou
|
|
|
1485
1658
|
delete response.Message;
|
|
1486
1659
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1487
1660
|
};
|
|
1488
|
-
const
|
|
1661
|
+
const deserializeAws_json1_0CreateServiceTemplateVersionCommand = async (output, context) => {
|
|
1489
1662
|
if (output.statusCode >= 300) {
|
|
1490
|
-
return
|
|
1663
|
+
return deserializeAws_json1_0CreateServiceTemplateVersionCommandError(output, context);
|
|
1491
1664
|
}
|
|
1492
1665
|
const data = await parseBody(output.body, context);
|
|
1493
1666
|
let contents = {};
|
|
1494
|
-
contents =
|
|
1667
|
+
contents = deserializeAws_json1_0CreateServiceTemplateVersionOutput(data, context);
|
|
1495
1668
|
const response = {
|
|
1496
1669
|
$metadata: deserializeMetadata(output),
|
|
1497
1670
|
...contents,
|
|
1498
1671
|
};
|
|
1499
1672
|
return Promise.resolve(response);
|
|
1500
1673
|
};
|
|
1501
|
-
exports.
|
|
1502
|
-
const
|
|
1674
|
+
exports.deserializeAws_json1_0CreateServiceTemplateVersionCommand = deserializeAws_json1_0CreateServiceTemplateVersionCommand;
|
|
1675
|
+
const deserializeAws_json1_0CreateServiceTemplateVersionCommandError = async (output, context) => {
|
|
1503
1676
|
const parsedOutput = {
|
|
1504
1677
|
...output,
|
|
1505
1678
|
body: await parseBody(output.body, context),
|
|
@@ -1540,6 +1713,14 @@ const deserializeAws_json1_0DeleteEnvironmentCommandError = async (output, conte
|
|
|
1540
1713
|
$metadata: deserializeMetadata(output),
|
|
1541
1714
|
};
|
|
1542
1715
|
break;
|
|
1716
|
+
case "ServiceQuotaExceededException":
|
|
1717
|
+
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1718
|
+
response = {
|
|
1719
|
+
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1720
|
+
name: errorCode,
|
|
1721
|
+
$metadata: deserializeMetadata(output),
|
|
1722
|
+
};
|
|
1723
|
+
break;
|
|
1543
1724
|
case "ThrottlingException":
|
|
1544
1725
|
case "com.amazonaws.proton#ThrottlingException":
|
|
1545
1726
|
response = {
|
|
@@ -1572,21 +1753,21 @@ const deserializeAws_json1_0DeleteEnvironmentCommandError = async (output, conte
|
|
|
1572
1753
|
delete response.Message;
|
|
1573
1754
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1574
1755
|
};
|
|
1575
|
-
const
|
|
1756
|
+
const deserializeAws_json1_0CreateTemplateSyncConfigCommand = async (output, context) => {
|
|
1576
1757
|
if (output.statusCode >= 300) {
|
|
1577
|
-
return
|
|
1758
|
+
return deserializeAws_json1_0CreateTemplateSyncConfigCommandError(output, context);
|
|
1578
1759
|
}
|
|
1579
1760
|
const data = await parseBody(output.body, context);
|
|
1580
1761
|
let contents = {};
|
|
1581
|
-
contents =
|
|
1762
|
+
contents = deserializeAws_json1_0CreateTemplateSyncConfigOutput(data, context);
|
|
1582
1763
|
const response = {
|
|
1583
1764
|
$metadata: deserializeMetadata(output),
|
|
1584
1765
|
...contents,
|
|
1585
1766
|
};
|
|
1586
1767
|
return Promise.resolve(response);
|
|
1587
1768
|
};
|
|
1588
|
-
exports.
|
|
1589
|
-
const
|
|
1769
|
+
exports.deserializeAws_json1_0CreateTemplateSyncConfigCommand = deserializeAws_json1_0CreateTemplateSyncConfigCommand;
|
|
1770
|
+
const deserializeAws_json1_0CreateTemplateSyncConfigCommandError = async (output, context) => {
|
|
1590
1771
|
const parsedOutput = {
|
|
1591
1772
|
...output,
|
|
1592
1773
|
body: await parseBody(output.body, context),
|
|
@@ -1619,10 +1800,10 @@ const deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError = asy
|
|
|
1619
1800
|
$metadata: deserializeMetadata(output),
|
|
1620
1801
|
};
|
|
1621
1802
|
break;
|
|
1622
|
-
case "
|
|
1623
|
-
case "com.amazonaws.proton#
|
|
1803
|
+
case "ServiceQuotaExceededException":
|
|
1804
|
+
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
1624
1805
|
response = {
|
|
1625
|
-
...(await
|
|
1806
|
+
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1626
1807
|
name: errorCode,
|
|
1627
1808
|
$metadata: deserializeMetadata(output),
|
|
1628
1809
|
};
|
|
@@ -1659,21 +1840,21 @@ const deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError = asy
|
|
|
1659
1840
|
delete response.Message;
|
|
1660
1841
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1661
1842
|
};
|
|
1662
|
-
const
|
|
1843
|
+
const deserializeAws_json1_0DeleteEnvironmentCommand = async (output, context) => {
|
|
1663
1844
|
if (output.statusCode >= 300) {
|
|
1664
|
-
return
|
|
1845
|
+
return deserializeAws_json1_0DeleteEnvironmentCommandError(output, context);
|
|
1665
1846
|
}
|
|
1666
1847
|
const data = await parseBody(output.body, context);
|
|
1667
1848
|
let contents = {};
|
|
1668
|
-
contents =
|
|
1849
|
+
contents = deserializeAws_json1_0DeleteEnvironmentOutput(data, context);
|
|
1669
1850
|
const response = {
|
|
1670
1851
|
$metadata: deserializeMetadata(output),
|
|
1671
1852
|
...contents,
|
|
1672
1853
|
};
|
|
1673
1854
|
return Promise.resolve(response);
|
|
1674
1855
|
};
|
|
1675
|
-
exports.
|
|
1676
|
-
const
|
|
1856
|
+
exports.deserializeAws_json1_0DeleteEnvironmentCommand = deserializeAws_json1_0DeleteEnvironmentCommand;
|
|
1857
|
+
const deserializeAws_json1_0DeleteEnvironmentCommandError = async (output, context) => {
|
|
1677
1858
|
const parsedOutput = {
|
|
1678
1859
|
...output,
|
|
1679
1860
|
body: await parseBody(output.body, context),
|
|
@@ -1746,21 +1927,21 @@ const deserializeAws_json1_0DeleteEnvironmentTemplateCommandError = async (outpu
|
|
|
1746
1927
|
delete response.Message;
|
|
1747
1928
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1748
1929
|
};
|
|
1749
|
-
const
|
|
1930
|
+
const deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
1750
1931
|
if (output.statusCode >= 300) {
|
|
1751
|
-
return
|
|
1932
|
+
return deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError(output, context);
|
|
1752
1933
|
}
|
|
1753
1934
|
const data = await parseBody(output.body, context);
|
|
1754
1935
|
let contents = {};
|
|
1755
|
-
contents =
|
|
1936
|
+
contents = deserializeAws_json1_0DeleteEnvironmentAccountConnectionOutput(data, context);
|
|
1756
1937
|
const response = {
|
|
1757
1938
|
$metadata: deserializeMetadata(output),
|
|
1758
1939
|
...contents,
|
|
1759
1940
|
};
|
|
1760
1941
|
return Promise.resolve(response);
|
|
1761
1942
|
};
|
|
1762
|
-
exports.
|
|
1763
|
-
const
|
|
1943
|
+
exports.deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommand = deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommand;
|
|
1944
|
+
const deserializeAws_json1_0DeleteEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
1764
1945
|
const parsedOutput = {
|
|
1765
1946
|
...output,
|
|
1766
1947
|
body: await parseBody(output.body, context),
|
|
@@ -1833,21 +2014,21 @@ const deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommandError = async
|
|
|
1833
2014
|
delete response.Message;
|
|
1834
2015
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1835
2016
|
};
|
|
1836
|
-
const
|
|
2017
|
+
const deserializeAws_json1_0DeleteEnvironmentTemplateCommand = async (output, context) => {
|
|
1837
2018
|
if (output.statusCode >= 300) {
|
|
1838
|
-
return
|
|
2019
|
+
return deserializeAws_json1_0DeleteEnvironmentTemplateCommandError(output, context);
|
|
1839
2020
|
}
|
|
1840
2021
|
const data = await parseBody(output.body, context);
|
|
1841
2022
|
let contents = {};
|
|
1842
|
-
contents =
|
|
2023
|
+
contents = deserializeAws_json1_0DeleteEnvironmentTemplateOutput(data, context);
|
|
1843
2024
|
const response = {
|
|
1844
2025
|
$metadata: deserializeMetadata(output),
|
|
1845
2026
|
...contents,
|
|
1846
2027
|
};
|
|
1847
2028
|
return Promise.resolve(response);
|
|
1848
2029
|
};
|
|
1849
|
-
exports.
|
|
1850
|
-
const
|
|
2030
|
+
exports.deserializeAws_json1_0DeleteEnvironmentTemplateCommand = deserializeAws_json1_0DeleteEnvironmentTemplateCommand;
|
|
2031
|
+
const deserializeAws_json1_0DeleteEnvironmentTemplateCommandError = async (output, context) => {
|
|
1851
2032
|
const parsedOutput = {
|
|
1852
2033
|
...output,
|
|
1853
2034
|
body: await parseBody(output.body, context),
|
|
@@ -1920,21 +2101,21 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
|
|
|
1920
2101
|
delete response.Message;
|
|
1921
2102
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1922
2103
|
};
|
|
1923
|
-
const
|
|
2104
|
+
const deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
1924
2105
|
if (output.statusCode >= 300) {
|
|
1925
|
-
return
|
|
2106
|
+
return deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommandError(output, context);
|
|
1926
2107
|
}
|
|
1927
2108
|
const data = await parseBody(output.body, context);
|
|
1928
2109
|
let contents = {};
|
|
1929
|
-
contents =
|
|
2110
|
+
contents = deserializeAws_json1_0DeleteEnvironmentTemplateVersionOutput(data, context);
|
|
1930
2111
|
const response = {
|
|
1931
2112
|
$metadata: deserializeMetadata(output),
|
|
1932
2113
|
...contents,
|
|
1933
2114
|
};
|
|
1934
2115
|
return Promise.resolve(response);
|
|
1935
2116
|
};
|
|
1936
|
-
exports.
|
|
1937
|
-
const
|
|
2117
|
+
exports.deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommand = deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommand;
|
|
2118
|
+
const deserializeAws_json1_0DeleteEnvironmentTemplateVersionCommandError = async (output, context) => {
|
|
1938
2119
|
const parsedOutput = {
|
|
1939
2120
|
...output,
|
|
1940
2121
|
body: await parseBody(output.body, context),
|
|
@@ -2007,21 +2188,21 @@ const deserializeAws_json1_0DeleteServiceTemplateCommandError = async (output, c
|
|
|
2007
2188
|
delete response.Message;
|
|
2008
2189
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2009
2190
|
};
|
|
2010
|
-
const
|
|
2191
|
+
const deserializeAws_json1_0DeleteRepositoryCommand = async (output, context) => {
|
|
2011
2192
|
if (output.statusCode >= 300) {
|
|
2012
|
-
return
|
|
2193
|
+
return deserializeAws_json1_0DeleteRepositoryCommandError(output, context);
|
|
2013
2194
|
}
|
|
2014
2195
|
const data = await parseBody(output.body, context);
|
|
2015
2196
|
let contents = {};
|
|
2016
|
-
contents =
|
|
2197
|
+
contents = deserializeAws_json1_0DeleteRepositoryOutput(data, context);
|
|
2017
2198
|
const response = {
|
|
2018
2199
|
$metadata: deserializeMetadata(output),
|
|
2019
2200
|
...contents,
|
|
2020
2201
|
};
|
|
2021
2202
|
return Promise.resolve(response);
|
|
2022
2203
|
};
|
|
2023
|
-
exports.
|
|
2024
|
-
const
|
|
2204
|
+
exports.deserializeAws_json1_0DeleteRepositoryCommand = deserializeAws_json1_0DeleteRepositoryCommand;
|
|
2205
|
+
const deserializeAws_json1_0DeleteRepositoryCommandError = async (output, context) => {
|
|
2025
2206
|
const parsedOutput = {
|
|
2026
2207
|
...output,
|
|
2027
2208
|
body: await parseBody(output.body, context),
|
|
@@ -2094,21 +2275,21 @@ const deserializeAws_json1_0DeleteServiceTemplateVersionCommandError = async (ou
|
|
|
2094
2275
|
delete response.Message;
|
|
2095
2276
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2096
2277
|
};
|
|
2097
|
-
const
|
|
2278
|
+
const deserializeAws_json1_0DeleteServiceCommand = async (output, context) => {
|
|
2098
2279
|
if (output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
2280
|
+
return deserializeAws_json1_0DeleteServiceCommandError(output, context);
|
|
2100
2281
|
}
|
|
2101
2282
|
const data = await parseBody(output.body, context);
|
|
2102
2283
|
let contents = {};
|
|
2103
|
-
contents =
|
|
2284
|
+
contents = deserializeAws_json1_0DeleteServiceOutput(data, context);
|
|
2104
2285
|
const response = {
|
|
2105
2286
|
$metadata: deserializeMetadata(output),
|
|
2106
2287
|
...contents,
|
|
2107
2288
|
};
|
|
2108
2289
|
return Promise.resolve(response);
|
|
2109
2290
|
};
|
|
2110
|
-
exports.
|
|
2111
|
-
const
|
|
2291
|
+
exports.deserializeAws_json1_0DeleteServiceCommand = deserializeAws_json1_0DeleteServiceCommand;
|
|
2292
|
+
const deserializeAws_json1_0DeleteServiceCommandError = async (output, context) => {
|
|
2112
2293
|
const parsedOutput = {
|
|
2113
2294
|
...output,
|
|
2114
2295
|
body: await parseBody(output.body, context),
|
|
@@ -2125,6 +2306,14 @@ const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, cont
|
|
|
2125
2306
|
$metadata: deserializeMetadata(output),
|
|
2126
2307
|
};
|
|
2127
2308
|
break;
|
|
2309
|
+
case "ConflictException":
|
|
2310
|
+
case "com.amazonaws.proton#ConflictException":
|
|
2311
|
+
response = {
|
|
2312
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
2313
|
+
name: errorCode,
|
|
2314
|
+
$metadata: deserializeMetadata(output),
|
|
2315
|
+
};
|
|
2316
|
+
break;
|
|
2128
2317
|
case "InternalServerException":
|
|
2129
2318
|
case "com.amazonaws.proton#InternalServerException":
|
|
2130
2319
|
response = {
|
|
@@ -2173,21 +2362,21 @@ const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, cont
|
|
|
2173
2362
|
delete response.Message;
|
|
2174
2363
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2175
2364
|
};
|
|
2176
|
-
const
|
|
2365
|
+
const deserializeAws_json1_0DeleteServiceTemplateCommand = async (output, context) => {
|
|
2177
2366
|
if (output.statusCode >= 300) {
|
|
2178
|
-
return
|
|
2367
|
+
return deserializeAws_json1_0DeleteServiceTemplateCommandError(output, context);
|
|
2179
2368
|
}
|
|
2180
2369
|
const data = await parseBody(output.body, context);
|
|
2181
2370
|
let contents = {};
|
|
2182
|
-
contents =
|
|
2371
|
+
contents = deserializeAws_json1_0DeleteServiceTemplateOutput(data, context);
|
|
2183
2372
|
const response = {
|
|
2184
2373
|
$metadata: deserializeMetadata(output),
|
|
2185
2374
|
...contents,
|
|
2186
2375
|
};
|
|
2187
2376
|
return Promise.resolve(response);
|
|
2188
2377
|
};
|
|
2189
|
-
exports.
|
|
2190
|
-
const
|
|
2378
|
+
exports.deserializeAws_json1_0DeleteServiceTemplateCommand = deserializeAws_json1_0DeleteServiceTemplateCommand;
|
|
2379
|
+
const deserializeAws_json1_0DeleteServiceTemplateCommandError = async (output, context) => {
|
|
2191
2380
|
const parsedOutput = {
|
|
2192
2381
|
...output,
|
|
2193
2382
|
body: await parseBody(output.body, context),
|
|
@@ -2204,6 +2393,14 @@ const deserializeAws_json1_0GetEnvironmentCommandError = async (output, context)
|
|
|
2204
2393
|
$metadata: deserializeMetadata(output),
|
|
2205
2394
|
};
|
|
2206
2395
|
break;
|
|
2396
|
+
case "ConflictException":
|
|
2397
|
+
case "com.amazonaws.proton#ConflictException":
|
|
2398
|
+
response = {
|
|
2399
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
2400
|
+
name: errorCode,
|
|
2401
|
+
$metadata: deserializeMetadata(output),
|
|
2402
|
+
};
|
|
2403
|
+
break;
|
|
2207
2404
|
case "InternalServerException":
|
|
2208
2405
|
case "com.amazonaws.proton#InternalServerException":
|
|
2209
2406
|
response = {
|
|
@@ -2252,21 +2449,21 @@ const deserializeAws_json1_0GetEnvironmentCommandError = async (output, context)
|
|
|
2252
2449
|
delete response.Message;
|
|
2253
2450
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2254
2451
|
};
|
|
2255
|
-
const
|
|
2452
|
+
const deserializeAws_json1_0DeleteServiceTemplateVersionCommand = async (output, context) => {
|
|
2256
2453
|
if (output.statusCode >= 300) {
|
|
2257
|
-
return
|
|
2454
|
+
return deserializeAws_json1_0DeleteServiceTemplateVersionCommandError(output, context);
|
|
2258
2455
|
}
|
|
2259
2456
|
const data = await parseBody(output.body, context);
|
|
2260
2457
|
let contents = {};
|
|
2261
|
-
contents =
|
|
2458
|
+
contents = deserializeAws_json1_0DeleteServiceTemplateVersionOutput(data, context);
|
|
2262
2459
|
const response = {
|
|
2263
2460
|
$metadata: deserializeMetadata(output),
|
|
2264
2461
|
...contents,
|
|
2265
2462
|
};
|
|
2266
2463
|
return Promise.resolve(response);
|
|
2267
2464
|
};
|
|
2268
|
-
exports.
|
|
2269
|
-
const
|
|
2465
|
+
exports.deserializeAws_json1_0DeleteServiceTemplateVersionCommand = deserializeAws_json1_0DeleteServiceTemplateVersionCommand;
|
|
2466
|
+
const deserializeAws_json1_0DeleteServiceTemplateVersionCommandError = async (output, context) => {
|
|
2270
2467
|
const parsedOutput = {
|
|
2271
2468
|
...output,
|
|
2272
2469
|
body: await parseBody(output.body, context),
|
|
@@ -2283,6 +2480,14 @@ const deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError = async
|
|
|
2283
2480
|
$metadata: deserializeMetadata(output),
|
|
2284
2481
|
};
|
|
2285
2482
|
break;
|
|
2483
|
+
case "ConflictException":
|
|
2484
|
+
case "com.amazonaws.proton#ConflictException":
|
|
2485
|
+
response = {
|
|
2486
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
2487
|
+
name: errorCode,
|
|
2488
|
+
$metadata: deserializeMetadata(output),
|
|
2489
|
+
};
|
|
2490
|
+
break;
|
|
2286
2491
|
case "InternalServerException":
|
|
2287
2492
|
case "com.amazonaws.proton#InternalServerException":
|
|
2288
2493
|
response = {
|
|
@@ -2331,21 +2536,21 @@ const deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError = async
|
|
|
2331
2536
|
delete response.Message;
|
|
2332
2537
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2333
2538
|
};
|
|
2334
|
-
const
|
|
2539
|
+
const deserializeAws_json1_0DeleteTemplateSyncConfigCommand = async (output, context) => {
|
|
2335
2540
|
if (output.statusCode >= 300) {
|
|
2336
|
-
return
|
|
2541
|
+
return deserializeAws_json1_0DeleteTemplateSyncConfigCommandError(output, context);
|
|
2337
2542
|
}
|
|
2338
2543
|
const data = await parseBody(output.body, context);
|
|
2339
2544
|
let contents = {};
|
|
2340
|
-
contents =
|
|
2545
|
+
contents = deserializeAws_json1_0DeleteTemplateSyncConfigOutput(data, context);
|
|
2341
2546
|
const response = {
|
|
2342
2547
|
$metadata: deserializeMetadata(output),
|
|
2343
2548
|
...contents,
|
|
2344
2549
|
};
|
|
2345
2550
|
return Promise.resolve(response);
|
|
2346
2551
|
};
|
|
2347
|
-
exports.
|
|
2348
|
-
const
|
|
2552
|
+
exports.deserializeAws_json1_0DeleteTemplateSyncConfigCommand = deserializeAws_json1_0DeleteTemplateSyncConfigCommand;
|
|
2553
|
+
const deserializeAws_json1_0DeleteTemplateSyncConfigCommandError = async (output, context) => {
|
|
2349
2554
|
const parsedOutput = {
|
|
2350
2555
|
...output,
|
|
2351
2556
|
body: await parseBody(output.body, context),
|
|
@@ -2362,6 +2567,14 @@ const deserializeAws_json1_0GetEnvironmentTemplateCommandError = async (output,
|
|
|
2362
2567
|
$metadata: deserializeMetadata(output),
|
|
2363
2568
|
};
|
|
2364
2569
|
break;
|
|
2570
|
+
case "ConflictException":
|
|
2571
|
+
case "com.amazonaws.proton#ConflictException":
|
|
2572
|
+
response = {
|
|
2573
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
2574
|
+
name: errorCode,
|
|
2575
|
+
$metadata: deserializeMetadata(output),
|
|
2576
|
+
};
|
|
2577
|
+
break;
|
|
2365
2578
|
case "InternalServerException":
|
|
2366
2579
|
case "com.amazonaws.proton#InternalServerException":
|
|
2367
2580
|
response = {
|
|
@@ -2410,21 +2623,21 @@ const deserializeAws_json1_0GetEnvironmentTemplateCommandError = async (output,
|
|
|
2410
2623
|
delete response.Message;
|
|
2411
2624
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2412
2625
|
};
|
|
2413
|
-
const
|
|
2626
|
+
const deserializeAws_json1_0GetAccountSettingsCommand = async (output, context) => {
|
|
2414
2627
|
if (output.statusCode >= 300) {
|
|
2415
|
-
return
|
|
2628
|
+
return deserializeAws_json1_0GetAccountSettingsCommandError(output, context);
|
|
2416
2629
|
}
|
|
2417
2630
|
const data = await parseBody(output.body, context);
|
|
2418
2631
|
let contents = {};
|
|
2419
|
-
contents =
|
|
2632
|
+
contents = deserializeAws_json1_0GetAccountSettingsOutput(data, context);
|
|
2420
2633
|
const response = {
|
|
2421
2634
|
$metadata: deserializeMetadata(output),
|
|
2422
2635
|
...contents,
|
|
2423
2636
|
};
|
|
2424
2637
|
return Promise.resolve(response);
|
|
2425
2638
|
};
|
|
2426
|
-
exports.
|
|
2427
|
-
const
|
|
2639
|
+
exports.deserializeAws_json1_0GetAccountSettingsCommand = deserializeAws_json1_0GetAccountSettingsCommand;
|
|
2640
|
+
const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, context) => {
|
|
2428
2641
|
const parsedOutput = {
|
|
2429
2642
|
...output,
|
|
2430
2643
|
body: await parseBody(output.body, context),
|
|
@@ -2489,21 +2702,21 @@ const deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = async (o
|
|
|
2489
2702
|
delete response.Message;
|
|
2490
2703
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2491
2704
|
};
|
|
2492
|
-
const
|
|
2705
|
+
const deserializeAws_json1_0GetEnvironmentCommand = async (output, context) => {
|
|
2493
2706
|
if (output.statusCode >= 300) {
|
|
2494
|
-
return
|
|
2707
|
+
return deserializeAws_json1_0GetEnvironmentCommandError(output, context);
|
|
2495
2708
|
}
|
|
2496
2709
|
const data = await parseBody(output.body, context);
|
|
2497
2710
|
let contents = {};
|
|
2498
|
-
contents =
|
|
2711
|
+
contents = deserializeAws_json1_0GetEnvironmentOutput(data, context);
|
|
2499
2712
|
const response = {
|
|
2500
2713
|
$metadata: deserializeMetadata(output),
|
|
2501
2714
|
...contents,
|
|
2502
2715
|
};
|
|
2503
2716
|
return Promise.resolve(response);
|
|
2504
2717
|
};
|
|
2505
|
-
exports.
|
|
2506
|
-
const
|
|
2718
|
+
exports.deserializeAws_json1_0GetEnvironmentCommand = deserializeAws_json1_0GetEnvironmentCommand;
|
|
2719
|
+
const deserializeAws_json1_0GetEnvironmentCommandError = async (output, context) => {
|
|
2507
2720
|
const parsedOutput = {
|
|
2508
2721
|
...output,
|
|
2509
2722
|
body: await parseBody(output.body, context),
|
|
@@ -2568,21 +2781,21 @@ const deserializeAws_json1_0GetServiceCommandError = async (output, context) =>
|
|
|
2568
2781
|
delete response.Message;
|
|
2569
2782
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2570
2783
|
};
|
|
2571
|
-
const
|
|
2784
|
+
const deserializeAws_json1_0GetEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
2572
2785
|
if (output.statusCode >= 300) {
|
|
2573
|
-
return
|
|
2786
|
+
return deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError(output, context);
|
|
2574
2787
|
}
|
|
2575
2788
|
const data = await parseBody(output.body, context);
|
|
2576
2789
|
let contents = {};
|
|
2577
|
-
contents =
|
|
2790
|
+
contents = deserializeAws_json1_0GetEnvironmentAccountConnectionOutput(data, context);
|
|
2578
2791
|
const response = {
|
|
2579
2792
|
$metadata: deserializeMetadata(output),
|
|
2580
2793
|
...contents,
|
|
2581
2794
|
};
|
|
2582
2795
|
return Promise.resolve(response);
|
|
2583
2796
|
};
|
|
2584
|
-
exports.
|
|
2585
|
-
const
|
|
2797
|
+
exports.deserializeAws_json1_0GetEnvironmentAccountConnectionCommand = deserializeAws_json1_0GetEnvironmentAccountConnectionCommand;
|
|
2798
|
+
const deserializeAws_json1_0GetEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
2586
2799
|
const parsedOutput = {
|
|
2587
2800
|
...output,
|
|
2588
2801
|
body: await parseBody(output.body, context),
|
|
@@ -2647,21 +2860,21 @@ const deserializeAws_json1_0GetServiceInstanceCommandError = async (output, cont
|
|
|
2647
2860
|
delete response.Message;
|
|
2648
2861
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2649
2862
|
};
|
|
2650
|
-
const
|
|
2863
|
+
const deserializeAws_json1_0GetEnvironmentTemplateCommand = async (output, context) => {
|
|
2651
2864
|
if (output.statusCode >= 300) {
|
|
2652
|
-
return
|
|
2865
|
+
return deserializeAws_json1_0GetEnvironmentTemplateCommandError(output, context);
|
|
2653
2866
|
}
|
|
2654
2867
|
const data = await parseBody(output.body, context);
|
|
2655
2868
|
let contents = {};
|
|
2656
|
-
contents =
|
|
2869
|
+
contents = deserializeAws_json1_0GetEnvironmentTemplateOutput(data, context);
|
|
2657
2870
|
const response = {
|
|
2658
2871
|
$metadata: deserializeMetadata(output),
|
|
2659
2872
|
...contents,
|
|
2660
2873
|
};
|
|
2661
2874
|
return Promise.resolve(response);
|
|
2662
2875
|
};
|
|
2663
|
-
exports.
|
|
2664
|
-
const
|
|
2876
|
+
exports.deserializeAws_json1_0GetEnvironmentTemplateCommand = deserializeAws_json1_0GetEnvironmentTemplateCommand;
|
|
2877
|
+
const deserializeAws_json1_0GetEnvironmentTemplateCommandError = async (output, context) => {
|
|
2665
2878
|
const parsedOutput = {
|
|
2666
2879
|
...output,
|
|
2667
2880
|
body: await parseBody(output.body, context),
|
|
@@ -2726,21 +2939,21 @@ const deserializeAws_json1_0GetServiceTemplateCommandError = async (output, cont
|
|
|
2726
2939
|
delete response.Message;
|
|
2727
2940
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2728
2941
|
};
|
|
2729
|
-
const
|
|
2942
|
+
const deserializeAws_json1_0GetEnvironmentTemplateVersionCommand = async (output, context) => {
|
|
2730
2943
|
if (output.statusCode >= 300) {
|
|
2731
|
-
return
|
|
2944
|
+
return deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError(output, context);
|
|
2732
2945
|
}
|
|
2733
2946
|
const data = await parseBody(output.body, context);
|
|
2734
2947
|
let contents = {};
|
|
2735
|
-
contents =
|
|
2948
|
+
contents = deserializeAws_json1_0GetEnvironmentTemplateVersionOutput(data, context);
|
|
2736
2949
|
const response = {
|
|
2737
2950
|
$metadata: deserializeMetadata(output),
|
|
2738
2951
|
...contents,
|
|
2739
2952
|
};
|
|
2740
2953
|
return Promise.resolve(response);
|
|
2741
2954
|
};
|
|
2742
|
-
exports.
|
|
2743
|
-
const
|
|
2955
|
+
exports.deserializeAws_json1_0GetEnvironmentTemplateVersionCommand = deserializeAws_json1_0GetEnvironmentTemplateVersionCommand;
|
|
2956
|
+
const deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = async (output, context) => {
|
|
2744
2957
|
const parsedOutput = {
|
|
2745
2958
|
...output,
|
|
2746
2959
|
body: await parseBody(output.body, context),
|
|
@@ -2805,21 +3018,21 @@ const deserializeAws_json1_0GetServiceTemplateVersionCommandError = async (outpu
|
|
|
2805
3018
|
delete response.Message;
|
|
2806
3019
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2807
3020
|
};
|
|
2808
|
-
const
|
|
3021
|
+
const deserializeAws_json1_0GetRepositoryCommand = async (output, context) => {
|
|
2809
3022
|
if (output.statusCode >= 300) {
|
|
2810
|
-
return
|
|
3023
|
+
return deserializeAws_json1_0GetRepositoryCommandError(output, context);
|
|
2811
3024
|
}
|
|
2812
3025
|
const data = await parseBody(output.body, context);
|
|
2813
3026
|
let contents = {};
|
|
2814
|
-
contents =
|
|
3027
|
+
contents = deserializeAws_json1_0GetRepositoryOutput(data, context);
|
|
2815
3028
|
const response = {
|
|
2816
3029
|
$metadata: deserializeMetadata(output),
|
|
2817
3030
|
...contents,
|
|
2818
3031
|
};
|
|
2819
3032
|
return Promise.resolve(response);
|
|
2820
3033
|
};
|
|
2821
|
-
exports.
|
|
2822
|
-
const
|
|
3034
|
+
exports.deserializeAws_json1_0GetRepositoryCommand = deserializeAws_json1_0GetRepositoryCommand;
|
|
3035
|
+
const deserializeAws_json1_0GetRepositoryCommandError = async (output, context) => {
|
|
2823
3036
|
const parsedOutput = {
|
|
2824
3037
|
...output,
|
|
2825
3038
|
body: await parseBody(output.body, context),
|
|
@@ -2844,6 +3057,14 @@ const deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError = asyn
|
|
|
2844
3057
|
$metadata: deserializeMetadata(output),
|
|
2845
3058
|
};
|
|
2846
3059
|
break;
|
|
3060
|
+
case "ResourceNotFoundException":
|
|
3061
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3062
|
+
response = {
|
|
3063
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3064
|
+
name: errorCode,
|
|
3065
|
+
$metadata: deserializeMetadata(output),
|
|
3066
|
+
};
|
|
3067
|
+
break;
|
|
2847
3068
|
case "ThrottlingException":
|
|
2848
3069
|
case "com.amazonaws.proton#ThrottlingException":
|
|
2849
3070
|
response = {
|
|
@@ -2876,21 +3097,21 @@ const deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError = asyn
|
|
|
2876
3097
|
delete response.Message;
|
|
2877
3098
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2878
3099
|
};
|
|
2879
|
-
const
|
|
3100
|
+
const deserializeAws_json1_0GetRepositorySyncStatusCommand = async (output, context) => {
|
|
2880
3101
|
if (output.statusCode >= 300) {
|
|
2881
|
-
return
|
|
3102
|
+
return deserializeAws_json1_0GetRepositorySyncStatusCommandError(output, context);
|
|
2882
3103
|
}
|
|
2883
3104
|
const data = await parseBody(output.body, context);
|
|
2884
3105
|
let contents = {};
|
|
2885
|
-
contents =
|
|
3106
|
+
contents = deserializeAws_json1_0GetRepositorySyncStatusOutput(data, context);
|
|
2886
3107
|
const response = {
|
|
2887
3108
|
$metadata: deserializeMetadata(output),
|
|
2888
3109
|
...contents,
|
|
2889
3110
|
};
|
|
2890
3111
|
return Promise.resolve(response);
|
|
2891
3112
|
};
|
|
2892
|
-
exports.
|
|
2893
|
-
const
|
|
3113
|
+
exports.deserializeAws_json1_0GetRepositorySyncStatusCommand = deserializeAws_json1_0GetRepositorySyncStatusCommand;
|
|
3114
|
+
const deserializeAws_json1_0GetRepositorySyncStatusCommandError = async (output, context) => {
|
|
2894
3115
|
const parsedOutput = {
|
|
2895
3116
|
...output,
|
|
2896
3117
|
body: await parseBody(output.body, context),
|
|
@@ -2955,21 +3176,21 @@ const deserializeAws_json1_0ListEnvironmentsCommandError = async (output, contex
|
|
|
2955
3176
|
delete response.Message;
|
|
2956
3177
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2957
3178
|
};
|
|
2958
|
-
const
|
|
3179
|
+
const deserializeAws_json1_0GetServiceCommand = async (output, context) => {
|
|
2959
3180
|
if (output.statusCode >= 300) {
|
|
2960
|
-
return
|
|
3181
|
+
return deserializeAws_json1_0GetServiceCommandError(output, context);
|
|
2961
3182
|
}
|
|
2962
3183
|
const data = await parseBody(output.body, context);
|
|
2963
3184
|
let contents = {};
|
|
2964
|
-
contents =
|
|
3185
|
+
contents = deserializeAws_json1_0GetServiceOutput(data, context);
|
|
2965
3186
|
const response = {
|
|
2966
3187
|
$metadata: deserializeMetadata(output),
|
|
2967
3188
|
...contents,
|
|
2968
3189
|
};
|
|
2969
3190
|
return Promise.resolve(response);
|
|
2970
3191
|
};
|
|
2971
|
-
exports.
|
|
2972
|
-
const
|
|
3192
|
+
exports.deserializeAws_json1_0GetServiceCommand = deserializeAws_json1_0GetServiceCommand;
|
|
3193
|
+
const deserializeAws_json1_0GetServiceCommandError = async (output, context) => {
|
|
2973
3194
|
const parsedOutput = {
|
|
2974
3195
|
...output,
|
|
2975
3196
|
body: await parseBody(output.body, context),
|
|
@@ -2994,6 +3215,14 @@ const deserializeAws_json1_0ListEnvironmentTemplatesCommandError = async (output
|
|
|
2994
3215
|
$metadata: deserializeMetadata(output),
|
|
2995
3216
|
};
|
|
2996
3217
|
break;
|
|
3218
|
+
case "ResourceNotFoundException":
|
|
3219
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3220
|
+
response = {
|
|
3221
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3222
|
+
name: errorCode,
|
|
3223
|
+
$metadata: deserializeMetadata(output),
|
|
3224
|
+
};
|
|
3225
|
+
break;
|
|
2997
3226
|
case "ThrottlingException":
|
|
2998
3227
|
case "com.amazonaws.proton#ThrottlingException":
|
|
2999
3228
|
response = {
|
|
@@ -3026,21 +3255,21 @@ const deserializeAws_json1_0ListEnvironmentTemplatesCommandError = async (output
|
|
|
3026
3255
|
delete response.Message;
|
|
3027
3256
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3028
3257
|
};
|
|
3029
|
-
const
|
|
3258
|
+
const deserializeAws_json1_0GetServiceInstanceCommand = async (output, context) => {
|
|
3030
3259
|
if (output.statusCode >= 300) {
|
|
3031
|
-
return
|
|
3260
|
+
return deserializeAws_json1_0GetServiceInstanceCommandError(output, context);
|
|
3032
3261
|
}
|
|
3033
3262
|
const data = await parseBody(output.body, context);
|
|
3034
3263
|
let contents = {};
|
|
3035
|
-
contents =
|
|
3264
|
+
contents = deserializeAws_json1_0GetServiceInstanceOutput(data, context);
|
|
3036
3265
|
const response = {
|
|
3037
3266
|
$metadata: deserializeMetadata(output),
|
|
3038
3267
|
...contents,
|
|
3039
3268
|
};
|
|
3040
3269
|
return Promise.resolve(response);
|
|
3041
3270
|
};
|
|
3042
|
-
exports.
|
|
3043
|
-
const
|
|
3271
|
+
exports.deserializeAws_json1_0GetServiceInstanceCommand = deserializeAws_json1_0GetServiceInstanceCommand;
|
|
3272
|
+
const deserializeAws_json1_0GetServiceInstanceCommandError = async (output, context) => {
|
|
3044
3273
|
const parsedOutput = {
|
|
3045
3274
|
...output,
|
|
3046
3275
|
body: await parseBody(output.body, context),
|
|
@@ -3105,21 +3334,21 @@ const deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError = async
|
|
|
3105
3334
|
delete response.Message;
|
|
3106
3335
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3107
3336
|
};
|
|
3108
|
-
const
|
|
3337
|
+
const deserializeAws_json1_0GetServiceTemplateCommand = async (output, context) => {
|
|
3109
3338
|
if (output.statusCode >= 300) {
|
|
3110
|
-
return
|
|
3339
|
+
return deserializeAws_json1_0GetServiceTemplateCommandError(output, context);
|
|
3111
3340
|
}
|
|
3112
3341
|
const data = await parseBody(output.body, context);
|
|
3113
3342
|
let contents = {};
|
|
3114
|
-
contents =
|
|
3343
|
+
contents = deserializeAws_json1_0GetServiceTemplateOutput(data, context);
|
|
3115
3344
|
const response = {
|
|
3116
3345
|
$metadata: deserializeMetadata(output),
|
|
3117
3346
|
...contents,
|
|
3118
3347
|
};
|
|
3119
3348
|
return Promise.resolve(response);
|
|
3120
3349
|
};
|
|
3121
|
-
exports.
|
|
3122
|
-
const
|
|
3350
|
+
exports.deserializeAws_json1_0GetServiceTemplateCommand = deserializeAws_json1_0GetServiceTemplateCommand;
|
|
3351
|
+
const deserializeAws_json1_0GetServiceTemplateCommandError = async (output, context) => {
|
|
3123
3352
|
const parsedOutput = {
|
|
3124
3353
|
...output,
|
|
3125
3354
|
body: await parseBody(output.body, context),
|
|
@@ -3184,21 +3413,21 @@ const deserializeAws_json1_0ListServiceInstancesCommandError = async (output, co
|
|
|
3184
3413
|
delete response.Message;
|
|
3185
3414
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3186
3415
|
};
|
|
3187
|
-
const
|
|
3416
|
+
const deserializeAws_json1_0GetServiceTemplateVersionCommand = async (output, context) => {
|
|
3188
3417
|
if (output.statusCode >= 300) {
|
|
3189
|
-
return
|
|
3418
|
+
return deserializeAws_json1_0GetServiceTemplateVersionCommandError(output, context);
|
|
3190
3419
|
}
|
|
3191
3420
|
const data = await parseBody(output.body, context);
|
|
3192
3421
|
let contents = {};
|
|
3193
|
-
contents =
|
|
3422
|
+
contents = deserializeAws_json1_0GetServiceTemplateVersionOutput(data, context);
|
|
3194
3423
|
const response = {
|
|
3195
3424
|
$metadata: deserializeMetadata(output),
|
|
3196
3425
|
...contents,
|
|
3197
3426
|
};
|
|
3198
3427
|
return Promise.resolve(response);
|
|
3199
3428
|
};
|
|
3200
|
-
exports.
|
|
3201
|
-
const
|
|
3429
|
+
exports.deserializeAws_json1_0GetServiceTemplateVersionCommand = deserializeAws_json1_0GetServiceTemplateVersionCommand;
|
|
3430
|
+
const deserializeAws_json1_0GetServiceTemplateVersionCommandError = async (output, context) => {
|
|
3202
3431
|
const parsedOutput = {
|
|
3203
3432
|
...output,
|
|
3204
3433
|
body: await parseBody(output.body, context),
|
|
@@ -3223,6 +3452,14 @@ const deserializeAws_json1_0ListServicesCommandError = async (output, context) =
|
|
|
3223
3452
|
$metadata: deserializeMetadata(output),
|
|
3224
3453
|
};
|
|
3225
3454
|
break;
|
|
3455
|
+
case "ResourceNotFoundException":
|
|
3456
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3457
|
+
response = {
|
|
3458
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3459
|
+
name: errorCode,
|
|
3460
|
+
$metadata: deserializeMetadata(output),
|
|
3461
|
+
};
|
|
3462
|
+
break;
|
|
3226
3463
|
case "ThrottlingException":
|
|
3227
3464
|
case "com.amazonaws.proton#ThrottlingException":
|
|
3228
3465
|
response = {
|
|
@@ -3255,21 +3492,21 @@ const deserializeAws_json1_0ListServicesCommandError = async (output, context) =
|
|
|
3255
3492
|
delete response.Message;
|
|
3256
3493
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3257
3494
|
};
|
|
3258
|
-
const
|
|
3495
|
+
const deserializeAws_json1_0GetTemplateSyncConfigCommand = async (output, context) => {
|
|
3259
3496
|
if (output.statusCode >= 300) {
|
|
3260
|
-
return
|
|
3497
|
+
return deserializeAws_json1_0GetTemplateSyncConfigCommandError(output, context);
|
|
3261
3498
|
}
|
|
3262
3499
|
const data = await parseBody(output.body, context);
|
|
3263
3500
|
let contents = {};
|
|
3264
|
-
contents =
|
|
3501
|
+
contents = deserializeAws_json1_0GetTemplateSyncConfigOutput(data, context);
|
|
3265
3502
|
const response = {
|
|
3266
3503
|
$metadata: deserializeMetadata(output),
|
|
3267
3504
|
...contents,
|
|
3268
3505
|
};
|
|
3269
3506
|
return Promise.resolve(response);
|
|
3270
3507
|
};
|
|
3271
|
-
exports.
|
|
3272
|
-
const
|
|
3508
|
+
exports.deserializeAws_json1_0GetTemplateSyncConfigCommand = deserializeAws_json1_0GetTemplateSyncConfigCommand;
|
|
3509
|
+
const deserializeAws_json1_0GetTemplateSyncConfigCommandError = async (output, context) => {
|
|
3273
3510
|
const parsedOutput = {
|
|
3274
3511
|
...output,
|
|
3275
3512
|
body: await parseBody(output.body, context),
|
|
@@ -3294,6 +3531,14 @@ const deserializeAws_json1_0ListServiceTemplatesCommandError = async (output, co
|
|
|
3294
3531
|
$metadata: deserializeMetadata(output),
|
|
3295
3532
|
};
|
|
3296
3533
|
break;
|
|
3534
|
+
case "ResourceNotFoundException":
|
|
3535
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3536
|
+
response = {
|
|
3537
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3538
|
+
name: errorCode,
|
|
3539
|
+
$metadata: deserializeMetadata(output),
|
|
3540
|
+
};
|
|
3541
|
+
break;
|
|
3297
3542
|
case "ThrottlingException":
|
|
3298
3543
|
case "com.amazonaws.proton#ThrottlingException":
|
|
3299
3544
|
response = {
|
|
@@ -3326,21 +3571,21 @@ const deserializeAws_json1_0ListServiceTemplatesCommandError = async (output, co
|
|
|
3326
3571
|
delete response.Message;
|
|
3327
3572
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3328
3573
|
};
|
|
3329
|
-
const
|
|
3574
|
+
const deserializeAws_json1_0GetTemplateSyncStatusCommand = async (output, context) => {
|
|
3330
3575
|
if (output.statusCode >= 300) {
|
|
3331
|
-
return
|
|
3576
|
+
return deserializeAws_json1_0GetTemplateSyncStatusCommandError(output, context);
|
|
3332
3577
|
}
|
|
3333
3578
|
const data = await parseBody(output.body, context);
|
|
3334
3579
|
let contents = {};
|
|
3335
|
-
contents =
|
|
3580
|
+
contents = deserializeAws_json1_0GetTemplateSyncStatusOutput(data, context);
|
|
3336
3581
|
const response = {
|
|
3337
3582
|
$metadata: deserializeMetadata(output),
|
|
3338
3583
|
...contents,
|
|
3339
3584
|
};
|
|
3340
3585
|
return Promise.resolve(response);
|
|
3341
3586
|
};
|
|
3342
|
-
exports.
|
|
3343
|
-
const
|
|
3587
|
+
exports.deserializeAws_json1_0GetTemplateSyncStatusCommand = deserializeAws_json1_0GetTemplateSyncStatusCommand;
|
|
3588
|
+
const deserializeAws_json1_0GetTemplateSyncStatusCommandError = async (output, context) => {
|
|
3344
3589
|
const parsedOutput = {
|
|
3345
3590
|
...output,
|
|
3346
3591
|
body: await parseBody(output.body, context),
|
|
@@ -3405,21 +3650,21 @@ const deserializeAws_json1_0ListServiceTemplateVersionsCommandError = async (out
|
|
|
3405
3650
|
delete response.Message;
|
|
3406
3651
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3407
3652
|
};
|
|
3408
|
-
const
|
|
3653
|
+
const deserializeAws_json1_0ListEnvironmentAccountConnectionsCommand = async (output, context) => {
|
|
3409
3654
|
if (output.statusCode >= 300) {
|
|
3410
|
-
return
|
|
3655
|
+
return deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError(output, context);
|
|
3411
3656
|
}
|
|
3412
3657
|
const data = await parseBody(output.body, context);
|
|
3413
3658
|
let contents = {};
|
|
3414
|
-
contents =
|
|
3659
|
+
contents = deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput(data, context);
|
|
3415
3660
|
const response = {
|
|
3416
3661
|
$metadata: deserializeMetadata(output),
|
|
3417
3662
|
...contents,
|
|
3418
3663
|
};
|
|
3419
3664
|
return Promise.resolve(response);
|
|
3420
3665
|
};
|
|
3421
|
-
exports.
|
|
3422
|
-
const
|
|
3666
|
+
exports.deserializeAws_json1_0ListEnvironmentAccountConnectionsCommand = deserializeAws_json1_0ListEnvironmentAccountConnectionsCommand;
|
|
3667
|
+
const deserializeAws_json1_0ListEnvironmentAccountConnectionsCommandError = async (output, context) => {
|
|
3423
3668
|
const parsedOutput = {
|
|
3424
3669
|
...output,
|
|
3425
3670
|
body: await parseBody(output.body, context),
|
|
@@ -3444,14 +3689,6 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
3444
3689
|
$metadata: deserializeMetadata(output),
|
|
3445
3690
|
};
|
|
3446
3691
|
break;
|
|
3447
|
-
case "ResourceNotFoundException":
|
|
3448
|
-
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
3449
|
-
response = {
|
|
3450
|
-
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3451
|
-
name: errorCode,
|
|
3452
|
-
$metadata: deserializeMetadata(output),
|
|
3453
|
-
};
|
|
3454
|
-
break;
|
|
3455
3692
|
case "ThrottlingException":
|
|
3456
3693
|
case "com.amazonaws.proton#ThrottlingException":
|
|
3457
3694
|
response = {
|
|
@@ -3484,21 +3721,21 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
3484
3721
|
delete response.Message;
|
|
3485
3722
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3486
3723
|
};
|
|
3487
|
-
const
|
|
3724
|
+
const deserializeAws_json1_0ListEnvironmentOutputsCommand = async (output, context) => {
|
|
3488
3725
|
if (output.statusCode >= 300) {
|
|
3489
|
-
return
|
|
3726
|
+
return deserializeAws_json1_0ListEnvironmentOutputsCommandError(output, context);
|
|
3490
3727
|
}
|
|
3491
3728
|
const data = await parseBody(output.body, context);
|
|
3492
3729
|
let contents = {};
|
|
3493
|
-
contents =
|
|
3730
|
+
contents = deserializeAws_json1_0ListEnvironmentOutputsOutput(data, context);
|
|
3494
3731
|
const response = {
|
|
3495
3732
|
$metadata: deserializeMetadata(output),
|
|
3496
3733
|
...contents,
|
|
3497
3734
|
};
|
|
3498
3735
|
return Promise.resolve(response);
|
|
3499
3736
|
};
|
|
3500
|
-
exports.
|
|
3501
|
-
const
|
|
3737
|
+
exports.deserializeAws_json1_0ListEnvironmentOutputsCommand = deserializeAws_json1_0ListEnvironmentOutputsCommand;
|
|
3738
|
+
const deserializeAws_json1_0ListEnvironmentOutputsCommandError = async (output, context) => {
|
|
3502
3739
|
const parsedOutput = {
|
|
3503
3740
|
...output,
|
|
3504
3741
|
body: await parseBody(output.body, context),
|
|
@@ -3515,14 +3752,6 @@ const deserializeAws_json1_0RejectEnvironmentAccountConnectionCommandError = asy
|
|
|
3515
3752
|
$metadata: deserializeMetadata(output),
|
|
3516
3753
|
};
|
|
3517
3754
|
break;
|
|
3518
|
-
case "ConflictException":
|
|
3519
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3520
|
-
response = {
|
|
3521
|
-
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
3522
|
-
name: errorCode,
|
|
3523
|
-
$metadata: deserializeMetadata(output),
|
|
3524
|
-
};
|
|
3525
|
-
break;
|
|
3526
3755
|
case "InternalServerException":
|
|
3527
3756
|
case "com.amazonaws.proton#InternalServerException":
|
|
3528
3757
|
response = {
|
|
@@ -3571,21 +3800,21 @@ const deserializeAws_json1_0RejectEnvironmentAccountConnectionCommandError = asy
|
|
|
3571
3800
|
delete response.Message;
|
|
3572
3801
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3573
3802
|
};
|
|
3574
|
-
const
|
|
3803
|
+
const deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = async (output, context) => {
|
|
3575
3804
|
if (output.statusCode >= 300) {
|
|
3576
|
-
return
|
|
3805
|
+
return deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommandError(output, context);
|
|
3577
3806
|
}
|
|
3578
3807
|
const data = await parseBody(output.body, context);
|
|
3579
3808
|
let contents = {};
|
|
3580
|
-
contents =
|
|
3809
|
+
contents = deserializeAws_json1_0ListEnvironmentProvisionedResourcesOutput(data, context);
|
|
3581
3810
|
const response = {
|
|
3582
3811
|
$metadata: deserializeMetadata(output),
|
|
3583
3812
|
...contents,
|
|
3584
3813
|
};
|
|
3585
3814
|
return Promise.resolve(response);
|
|
3586
3815
|
};
|
|
3587
|
-
exports.
|
|
3588
|
-
const
|
|
3816
|
+
exports.deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommand = deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommand;
|
|
3817
|
+
const deserializeAws_json1_0ListEnvironmentProvisionedResourcesCommandError = async (output, context) => {
|
|
3589
3818
|
const parsedOutput = {
|
|
3590
3819
|
...output,
|
|
3591
3820
|
body: await parseBody(output.body, context),
|
|
@@ -3602,14 +3831,6 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
3602
3831
|
$metadata: deserializeMetadata(output),
|
|
3603
3832
|
};
|
|
3604
3833
|
break;
|
|
3605
|
-
case "ConflictException":
|
|
3606
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3607
|
-
response = {
|
|
3608
|
-
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
3609
|
-
name: errorCode,
|
|
3610
|
-
$metadata: deserializeMetadata(output),
|
|
3611
|
-
};
|
|
3612
|
-
break;
|
|
3613
3834
|
case "InternalServerException":
|
|
3614
3835
|
case "com.amazonaws.proton#InternalServerException":
|
|
3615
3836
|
response = {
|
|
@@ -3658,21 +3879,21 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
3658
3879
|
delete response.Message;
|
|
3659
3880
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3660
3881
|
};
|
|
3661
|
-
const
|
|
3882
|
+
const deserializeAws_json1_0ListEnvironmentsCommand = async (output, context) => {
|
|
3662
3883
|
if (output.statusCode >= 300) {
|
|
3663
|
-
return
|
|
3884
|
+
return deserializeAws_json1_0ListEnvironmentsCommandError(output, context);
|
|
3664
3885
|
}
|
|
3665
3886
|
const data = await parseBody(output.body, context);
|
|
3666
3887
|
let contents = {};
|
|
3667
|
-
contents =
|
|
3888
|
+
contents = deserializeAws_json1_0ListEnvironmentsOutput(data, context);
|
|
3668
3889
|
const response = {
|
|
3669
3890
|
$metadata: deserializeMetadata(output),
|
|
3670
3891
|
...contents,
|
|
3671
3892
|
};
|
|
3672
3893
|
return Promise.resolve(response);
|
|
3673
3894
|
};
|
|
3674
|
-
exports.
|
|
3675
|
-
const
|
|
3895
|
+
exports.deserializeAws_json1_0ListEnvironmentsCommand = deserializeAws_json1_0ListEnvironmentsCommand;
|
|
3896
|
+
const deserializeAws_json1_0ListEnvironmentsCommandError = async (output, context) => {
|
|
3676
3897
|
const parsedOutput = {
|
|
3677
3898
|
...output,
|
|
3678
3899
|
body: await parseBody(output.body, context),
|
|
@@ -3689,14 +3910,6 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
3689
3910
|
$metadata: deserializeMetadata(output),
|
|
3690
3911
|
};
|
|
3691
3912
|
break;
|
|
3692
|
-
case "ConflictException":
|
|
3693
|
-
case "com.amazonaws.proton#ConflictException":
|
|
3694
|
-
response = {
|
|
3695
|
-
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
3696
|
-
name: errorCode,
|
|
3697
|
-
$metadata: deserializeMetadata(output),
|
|
3698
|
-
};
|
|
3699
|
-
break;
|
|
3700
3913
|
case "InternalServerException":
|
|
3701
3914
|
case "com.amazonaws.proton#InternalServerException":
|
|
3702
3915
|
response = {
|
|
@@ -3745,21 +3958,1372 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
3745
3958
|
delete response.Message;
|
|
3746
3959
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3747
3960
|
};
|
|
3748
|
-
const
|
|
3961
|
+
const deserializeAws_json1_0ListEnvironmentTemplatesCommand = async (output, context) => {
|
|
3749
3962
|
if (output.statusCode >= 300) {
|
|
3750
|
-
return
|
|
3963
|
+
return deserializeAws_json1_0ListEnvironmentTemplatesCommandError(output, context);
|
|
3751
3964
|
}
|
|
3752
3965
|
const data = await parseBody(output.body, context);
|
|
3753
3966
|
let contents = {};
|
|
3754
|
-
contents =
|
|
3967
|
+
contents = deserializeAws_json1_0ListEnvironmentTemplatesOutput(data, context);
|
|
3755
3968
|
const response = {
|
|
3756
3969
|
$metadata: deserializeMetadata(output),
|
|
3757
3970
|
...contents,
|
|
3758
3971
|
};
|
|
3759
3972
|
return Promise.resolve(response);
|
|
3760
3973
|
};
|
|
3761
|
-
exports.
|
|
3762
|
-
const
|
|
3974
|
+
exports.deserializeAws_json1_0ListEnvironmentTemplatesCommand = deserializeAws_json1_0ListEnvironmentTemplatesCommand;
|
|
3975
|
+
const deserializeAws_json1_0ListEnvironmentTemplatesCommandError = async (output, context) => {
|
|
3976
|
+
const parsedOutput = {
|
|
3977
|
+
...output,
|
|
3978
|
+
body: await parseBody(output.body, context),
|
|
3979
|
+
};
|
|
3980
|
+
let response;
|
|
3981
|
+
let errorCode = "UnknownError";
|
|
3982
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3983
|
+
switch (errorCode) {
|
|
3984
|
+
case "AccessDeniedException":
|
|
3985
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
3986
|
+
response = {
|
|
3987
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3988
|
+
name: errorCode,
|
|
3989
|
+
$metadata: deserializeMetadata(output),
|
|
3990
|
+
};
|
|
3991
|
+
break;
|
|
3992
|
+
case "InternalServerException":
|
|
3993
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
3994
|
+
response = {
|
|
3995
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
3996
|
+
name: errorCode,
|
|
3997
|
+
$metadata: deserializeMetadata(output),
|
|
3998
|
+
};
|
|
3999
|
+
break;
|
|
4000
|
+
case "ThrottlingException":
|
|
4001
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4002
|
+
response = {
|
|
4003
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4004
|
+
name: errorCode,
|
|
4005
|
+
$metadata: deserializeMetadata(output),
|
|
4006
|
+
};
|
|
4007
|
+
break;
|
|
4008
|
+
case "ValidationException":
|
|
4009
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4010
|
+
response = {
|
|
4011
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4012
|
+
name: errorCode,
|
|
4013
|
+
$metadata: deserializeMetadata(output),
|
|
4014
|
+
};
|
|
4015
|
+
break;
|
|
4016
|
+
default:
|
|
4017
|
+
const parsedBody = parsedOutput.body;
|
|
4018
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4019
|
+
response = {
|
|
4020
|
+
...parsedBody,
|
|
4021
|
+
name: `${errorCode}`,
|
|
4022
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4023
|
+
$fault: "client",
|
|
4024
|
+
$metadata: deserializeMetadata(output),
|
|
4025
|
+
};
|
|
4026
|
+
}
|
|
4027
|
+
const message = response.message || response.Message || errorCode;
|
|
4028
|
+
response.message = message;
|
|
4029
|
+
delete response.Message;
|
|
4030
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4031
|
+
};
|
|
4032
|
+
const deserializeAws_json1_0ListEnvironmentTemplateVersionsCommand = async (output, context) => {
|
|
4033
|
+
if (output.statusCode >= 300) {
|
|
4034
|
+
return deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError(output, context);
|
|
4035
|
+
}
|
|
4036
|
+
const data = await parseBody(output.body, context);
|
|
4037
|
+
let contents = {};
|
|
4038
|
+
contents = deserializeAws_json1_0ListEnvironmentTemplateVersionsOutput(data, context);
|
|
4039
|
+
const response = {
|
|
4040
|
+
$metadata: deserializeMetadata(output),
|
|
4041
|
+
...contents,
|
|
4042
|
+
};
|
|
4043
|
+
return Promise.resolve(response);
|
|
4044
|
+
};
|
|
4045
|
+
exports.deserializeAws_json1_0ListEnvironmentTemplateVersionsCommand = deserializeAws_json1_0ListEnvironmentTemplateVersionsCommand;
|
|
4046
|
+
const deserializeAws_json1_0ListEnvironmentTemplateVersionsCommandError = async (output, context) => {
|
|
4047
|
+
const parsedOutput = {
|
|
4048
|
+
...output,
|
|
4049
|
+
body: await parseBody(output.body, context),
|
|
4050
|
+
};
|
|
4051
|
+
let response;
|
|
4052
|
+
let errorCode = "UnknownError";
|
|
4053
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4054
|
+
switch (errorCode) {
|
|
4055
|
+
case "AccessDeniedException":
|
|
4056
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4057
|
+
response = {
|
|
4058
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4059
|
+
name: errorCode,
|
|
4060
|
+
$metadata: deserializeMetadata(output),
|
|
4061
|
+
};
|
|
4062
|
+
break;
|
|
4063
|
+
case "InternalServerException":
|
|
4064
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4065
|
+
response = {
|
|
4066
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4067
|
+
name: errorCode,
|
|
4068
|
+
$metadata: deserializeMetadata(output),
|
|
4069
|
+
};
|
|
4070
|
+
break;
|
|
4071
|
+
case "ResourceNotFoundException":
|
|
4072
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4073
|
+
response = {
|
|
4074
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4075
|
+
name: errorCode,
|
|
4076
|
+
$metadata: deserializeMetadata(output),
|
|
4077
|
+
};
|
|
4078
|
+
break;
|
|
4079
|
+
case "ThrottlingException":
|
|
4080
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4081
|
+
response = {
|
|
4082
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4083
|
+
name: errorCode,
|
|
4084
|
+
$metadata: deserializeMetadata(output),
|
|
4085
|
+
};
|
|
4086
|
+
break;
|
|
4087
|
+
case "ValidationException":
|
|
4088
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4089
|
+
response = {
|
|
4090
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4091
|
+
name: errorCode,
|
|
4092
|
+
$metadata: deserializeMetadata(output),
|
|
4093
|
+
};
|
|
4094
|
+
break;
|
|
4095
|
+
default:
|
|
4096
|
+
const parsedBody = parsedOutput.body;
|
|
4097
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4098
|
+
response = {
|
|
4099
|
+
...parsedBody,
|
|
4100
|
+
name: `${errorCode}`,
|
|
4101
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4102
|
+
$fault: "client",
|
|
4103
|
+
$metadata: deserializeMetadata(output),
|
|
4104
|
+
};
|
|
4105
|
+
}
|
|
4106
|
+
const message = response.message || response.Message || errorCode;
|
|
4107
|
+
response.message = message;
|
|
4108
|
+
delete response.Message;
|
|
4109
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4110
|
+
};
|
|
4111
|
+
const deserializeAws_json1_0ListRepositoriesCommand = async (output, context) => {
|
|
4112
|
+
if (output.statusCode >= 300) {
|
|
4113
|
+
return deserializeAws_json1_0ListRepositoriesCommandError(output, context);
|
|
4114
|
+
}
|
|
4115
|
+
const data = await parseBody(output.body, context);
|
|
4116
|
+
let contents = {};
|
|
4117
|
+
contents = deserializeAws_json1_0ListRepositoriesOutput(data, context);
|
|
4118
|
+
const response = {
|
|
4119
|
+
$metadata: deserializeMetadata(output),
|
|
4120
|
+
...contents,
|
|
4121
|
+
};
|
|
4122
|
+
return Promise.resolve(response);
|
|
4123
|
+
};
|
|
4124
|
+
exports.deserializeAws_json1_0ListRepositoriesCommand = deserializeAws_json1_0ListRepositoriesCommand;
|
|
4125
|
+
const deserializeAws_json1_0ListRepositoriesCommandError = async (output, context) => {
|
|
4126
|
+
const parsedOutput = {
|
|
4127
|
+
...output,
|
|
4128
|
+
body: await parseBody(output.body, context),
|
|
4129
|
+
};
|
|
4130
|
+
let response;
|
|
4131
|
+
let errorCode = "UnknownError";
|
|
4132
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4133
|
+
switch (errorCode) {
|
|
4134
|
+
case "AccessDeniedException":
|
|
4135
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4136
|
+
response = {
|
|
4137
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4138
|
+
name: errorCode,
|
|
4139
|
+
$metadata: deserializeMetadata(output),
|
|
4140
|
+
};
|
|
4141
|
+
break;
|
|
4142
|
+
case "InternalServerException":
|
|
4143
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4144
|
+
response = {
|
|
4145
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4146
|
+
name: errorCode,
|
|
4147
|
+
$metadata: deserializeMetadata(output),
|
|
4148
|
+
};
|
|
4149
|
+
break;
|
|
4150
|
+
case "ResourceNotFoundException":
|
|
4151
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4152
|
+
response = {
|
|
4153
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4154
|
+
name: errorCode,
|
|
4155
|
+
$metadata: deserializeMetadata(output),
|
|
4156
|
+
};
|
|
4157
|
+
break;
|
|
4158
|
+
case "ThrottlingException":
|
|
4159
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4160
|
+
response = {
|
|
4161
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4162
|
+
name: errorCode,
|
|
4163
|
+
$metadata: deserializeMetadata(output),
|
|
4164
|
+
};
|
|
4165
|
+
break;
|
|
4166
|
+
case "ValidationException":
|
|
4167
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4168
|
+
response = {
|
|
4169
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4170
|
+
name: errorCode,
|
|
4171
|
+
$metadata: deserializeMetadata(output),
|
|
4172
|
+
};
|
|
4173
|
+
break;
|
|
4174
|
+
default:
|
|
4175
|
+
const parsedBody = parsedOutput.body;
|
|
4176
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4177
|
+
response = {
|
|
4178
|
+
...parsedBody,
|
|
4179
|
+
name: `${errorCode}`,
|
|
4180
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4181
|
+
$fault: "client",
|
|
4182
|
+
$metadata: deserializeMetadata(output),
|
|
4183
|
+
};
|
|
4184
|
+
}
|
|
4185
|
+
const message = response.message || response.Message || errorCode;
|
|
4186
|
+
response.message = message;
|
|
4187
|
+
delete response.Message;
|
|
4188
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4189
|
+
};
|
|
4190
|
+
const deserializeAws_json1_0ListRepositorySyncDefinitionsCommand = async (output, context) => {
|
|
4191
|
+
if (output.statusCode >= 300) {
|
|
4192
|
+
return deserializeAws_json1_0ListRepositorySyncDefinitionsCommandError(output, context);
|
|
4193
|
+
}
|
|
4194
|
+
const data = await parseBody(output.body, context);
|
|
4195
|
+
let contents = {};
|
|
4196
|
+
contents = deserializeAws_json1_0ListRepositorySyncDefinitionsOutput(data, context);
|
|
4197
|
+
const response = {
|
|
4198
|
+
$metadata: deserializeMetadata(output),
|
|
4199
|
+
...contents,
|
|
4200
|
+
};
|
|
4201
|
+
return Promise.resolve(response);
|
|
4202
|
+
};
|
|
4203
|
+
exports.deserializeAws_json1_0ListRepositorySyncDefinitionsCommand = deserializeAws_json1_0ListRepositorySyncDefinitionsCommand;
|
|
4204
|
+
const deserializeAws_json1_0ListRepositorySyncDefinitionsCommandError = async (output, context) => {
|
|
4205
|
+
const parsedOutput = {
|
|
4206
|
+
...output,
|
|
4207
|
+
body: await parseBody(output.body, context),
|
|
4208
|
+
};
|
|
4209
|
+
let response;
|
|
4210
|
+
let errorCode = "UnknownError";
|
|
4211
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4212
|
+
switch (errorCode) {
|
|
4213
|
+
case "AccessDeniedException":
|
|
4214
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4215
|
+
response = {
|
|
4216
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4217
|
+
name: errorCode,
|
|
4218
|
+
$metadata: deserializeMetadata(output),
|
|
4219
|
+
};
|
|
4220
|
+
break;
|
|
4221
|
+
case "InternalServerException":
|
|
4222
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4223
|
+
response = {
|
|
4224
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4225
|
+
name: errorCode,
|
|
4226
|
+
$metadata: deserializeMetadata(output),
|
|
4227
|
+
};
|
|
4228
|
+
break;
|
|
4229
|
+
case "ThrottlingException":
|
|
4230
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4231
|
+
response = {
|
|
4232
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4233
|
+
name: errorCode,
|
|
4234
|
+
$metadata: deserializeMetadata(output),
|
|
4235
|
+
};
|
|
4236
|
+
break;
|
|
4237
|
+
case "ValidationException":
|
|
4238
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4239
|
+
response = {
|
|
4240
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4241
|
+
name: errorCode,
|
|
4242
|
+
$metadata: deserializeMetadata(output),
|
|
4243
|
+
};
|
|
4244
|
+
break;
|
|
4245
|
+
default:
|
|
4246
|
+
const parsedBody = parsedOutput.body;
|
|
4247
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4248
|
+
response = {
|
|
4249
|
+
...parsedBody,
|
|
4250
|
+
name: `${errorCode}`,
|
|
4251
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4252
|
+
$fault: "client",
|
|
4253
|
+
$metadata: deserializeMetadata(output),
|
|
4254
|
+
};
|
|
4255
|
+
}
|
|
4256
|
+
const message = response.message || response.Message || errorCode;
|
|
4257
|
+
response.message = message;
|
|
4258
|
+
delete response.Message;
|
|
4259
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4260
|
+
};
|
|
4261
|
+
const deserializeAws_json1_0ListServiceInstanceOutputsCommand = async (output, context) => {
|
|
4262
|
+
if (output.statusCode >= 300) {
|
|
4263
|
+
return deserializeAws_json1_0ListServiceInstanceOutputsCommandError(output, context);
|
|
4264
|
+
}
|
|
4265
|
+
const data = await parseBody(output.body, context);
|
|
4266
|
+
let contents = {};
|
|
4267
|
+
contents = deserializeAws_json1_0ListServiceInstanceOutputsOutput(data, context);
|
|
4268
|
+
const response = {
|
|
4269
|
+
$metadata: deserializeMetadata(output),
|
|
4270
|
+
...contents,
|
|
4271
|
+
};
|
|
4272
|
+
return Promise.resolve(response);
|
|
4273
|
+
};
|
|
4274
|
+
exports.deserializeAws_json1_0ListServiceInstanceOutputsCommand = deserializeAws_json1_0ListServiceInstanceOutputsCommand;
|
|
4275
|
+
const deserializeAws_json1_0ListServiceInstanceOutputsCommandError = async (output, context) => {
|
|
4276
|
+
const parsedOutput = {
|
|
4277
|
+
...output,
|
|
4278
|
+
body: await parseBody(output.body, context),
|
|
4279
|
+
};
|
|
4280
|
+
let response;
|
|
4281
|
+
let errorCode = "UnknownError";
|
|
4282
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4283
|
+
switch (errorCode) {
|
|
4284
|
+
case "AccessDeniedException":
|
|
4285
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4286
|
+
response = {
|
|
4287
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4288
|
+
name: errorCode,
|
|
4289
|
+
$metadata: deserializeMetadata(output),
|
|
4290
|
+
};
|
|
4291
|
+
break;
|
|
4292
|
+
case "InternalServerException":
|
|
4293
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4294
|
+
response = {
|
|
4295
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4296
|
+
name: errorCode,
|
|
4297
|
+
$metadata: deserializeMetadata(output),
|
|
4298
|
+
};
|
|
4299
|
+
break;
|
|
4300
|
+
case "ResourceNotFoundException":
|
|
4301
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4302
|
+
response = {
|
|
4303
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4304
|
+
name: errorCode,
|
|
4305
|
+
$metadata: deserializeMetadata(output),
|
|
4306
|
+
};
|
|
4307
|
+
break;
|
|
4308
|
+
case "ThrottlingException":
|
|
4309
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4310
|
+
response = {
|
|
4311
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4312
|
+
name: errorCode,
|
|
4313
|
+
$metadata: deserializeMetadata(output),
|
|
4314
|
+
};
|
|
4315
|
+
break;
|
|
4316
|
+
case "ValidationException":
|
|
4317
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4318
|
+
response = {
|
|
4319
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4320
|
+
name: errorCode,
|
|
4321
|
+
$metadata: deserializeMetadata(output),
|
|
4322
|
+
};
|
|
4323
|
+
break;
|
|
4324
|
+
default:
|
|
4325
|
+
const parsedBody = parsedOutput.body;
|
|
4326
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4327
|
+
response = {
|
|
4328
|
+
...parsedBody,
|
|
4329
|
+
name: `${errorCode}`,
|
|
4330
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4331
|
+
$fault: "client",
|
|
4332
|
+
$metadata: deserializeMetadata(output),
|
|
4333
|
+
};
|
|
4334
|
+
}
|
|
4335
|
+
const message = response.message || response.Message || errorCode;
|
|
4336
|
+
response.message = message;
|
|
4337
|
+
delete response.Message;
|
|
4338
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4339
|
+
};
|
|
4340
|
+
const deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = async (output, context) => {
|
|
4341
|
+
if (output.statusCode >= 300) {
|
|
4342
|
+
return deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommandError(output, context);
|
|
4343
|
+
}
|
|
4344
|
+
const data = await parseBody(output.body, context);
|
|
4345
|
+
let contents = {};
|
|
4346
|
+
contents = deserializeAws_json1_0ListServiceInstanceProvisionedResourcesOutput(data, context);
|
|
4347
|
+
const response = {
|
|
4348
|
+
$metadata: deserializeMetadata(output),
|
|
4349
|
+
...contents,
|
|
4350
|
+
};
|
|
4351
|
+
return Promise.resolve(response);
|
|
4352
|
+
};
|
|
4353
|
+
exports.deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand = deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommand;
|
|
4354
|
+
const deserializeAws_json1_0ListServiceInstanceProvisionedResourcesCommandError = async (output, context) => {
|
|
4355
|
+
const parsedOutput = {
|
|
4356
|
+
...output,
|
|
4357
|
+
body: await parseBody(output.body, context),
|
|
4358
|
+
};
|
|
4359
|
+
let response;
|
|
4360
|
+
let errorCode = "UnknownError";
|
|
4361
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4362
|
+
switch (errorCode) {
|
|
4363
|
+
case "AccessDeniedException":
|
|
4364
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4365
|
+
response = {
|
|
4366
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4367
|
+
name: errorCode,
|
|
4368
|
+
$metadata: deserializeMetadata(output),
|
|
4369
|
+
};
|
|
4370
|
+
break;
|
|
4371
|
+
case "InternalServerException":
|
|
4372
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4373
|
+
response = {
|
|
4374
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4375
|
+
name: errorCode,
|
|
4376
|
+
$metadata: deserializeMetadata(output),
|
|
4377
|
+
};
|
|
4378
|
+
break;
|
|
4379
|
+
case "ResourceNotFoundException":
|
|
4380
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4381
|
+
response = {
|
|
4382
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4383
|
+
name: errorCode,
|
|
4384
|
+
$metadata: deserializeMetadata(output),
|
|
4385
|
+
};
|
|
4386
|
+
break;
|
|
4387
|
+
case "ThrottlingException":
|
|
4388
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4389
|
+
response = {
|
|
4390
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4391
|
+
name: errorCode,
|
|
4392
|
+
$metadata: deserializeMetadata(output),
|
|
4393
|
+
};
|
|
4394
|
+
break;
|
|
4395
|
+
case "ValidationException":
|
|
4396
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4397
|
+
response = {
|
|
4398
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4399
|
+
name: errorCode,
|
|
4400
|
+
$metadata: deserializeMetadata(output),
|
|
4401
|
+
};
|
|
4402
|
+
break;
|
|
4403
|
+
default:
|
|
4404
|
+
const parsedBody = parsedOutput.body;
|
|
4405
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4406
|
+
response = {
|
|
4407
|
+
...parsedBody,
|
|
4408
|
+
name: `${errorCode}`,
|
|
4409
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4410
|
+
$fault: "client",
|
|
4411
|
+
$metadata: deserializeMetadata(output),
|
|
4412
|
+
};
|
|
4413
|
+
}
|
|
4414
|
+
const message = response.message || response.Message || errorCode;
|
|
4415
|
+
response.message = message;
|
|
4416
|
+
delete response.Message;
|
|
4417
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4418
|
+
};
|
|
4419
|
+
const deserializeAws_json1_0ListServiceInstancesCommand = async (output, context) => {
|
|
4420
|
+
if (output.statusCode >= 300) {
|
|
4421
|
+
return deserializeAws_json1_0ListServiceInstancesCommandError(output, context);
|
|
4422
|
+
}
|
|
4423
|
+
const data = await parseBody(output.body, context);
|
|
4424
|
+
let contents = {};
|
|
4425
|
+
contents = deserializeAws_json1_0ListServiceInstancesOutput(data, context);
|
|
4426
|
+
const response = {
|
|
4427
|
+
$metadata: deserializeMetadata(output),
|
|
4428
|
+
...contents,
|
|
4429
|
+
};
|
|
4430
|
+
return Promise.resolve(response);
|
|
4431
|
+
};
|
|
4432
|
+
exports.deserializeAws_json1_0ListServiceInstancesCommand = deserializeAws_json1_0ListServiceInstancesCommand;
|
|
4433
|
+
const deserializeAws_json1_0ListServiceInstancesCommandError = async (output, context) => {
|
|
4434
|
+
const parsedOutput = {
|
|
4435
|
+
...output,
|
|
4436
|
+
body: await parseBody(output.body, context),
|
|
4437
|
+
};
|
|
4438
|
+
let response;
|
|
4439
|
+
let errorCode = "UnknownError";
|
|
4440
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4441
|
+
switch (errorCode) {
|
|
4442
|
+
case "AccessDeniedException":
|
|
4443
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4444
|
+
response = {
|
|
4445
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4446
|
+
name: errorCode,
|
|
4447
|
+
$metadata: deserializeMetadata(output),
|
|
4448
|
+
};
|
|
4449
|
+
break;
|
|
4450
|
+
case "InternalServerException":
|
|
4451
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4452
|
+
response = {
|
|
4453
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4454
|
+
name: errorCode,
|
|
4455
|
+
$metadata: deserializeMetadata(output),
|
|
4456
|
+
};
|
|
4457
|
+
break;
|
|
4458
|
+
case "ResourceNotFoundException":
|
|
4459
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4460
|
+
response = {
|
|
4461
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4462
|
+
name: errorCode,
|
|
4463
|
+
$metadata: deserializeMetadata(output),
|
|
4464
|
+
};
|
|
4465
|
+
break;
|
|
4466
|
+
case "ThrottlingException":
|
|
4467
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4468
|
+
response = {
|
|
4469
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4470
|
+
name: errorCode,
|
|
4471
|
+
$metadata: deserializeMetadata(output),
|
|
4472
|
+
};
|
|
4473
|
+
break;
|
|
4474
|
+
case "ValidationException":
|
|
4475
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4476
|
+
response = {
|
|
4477
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4478
|
+
name: errorCode,
|
|
4479
|
+
$metadata: deserializeMetadata(output),
|
|
4480
|
+
};
|
|
4481
|
+
break;
|
|
4482
|
+
default:
|
|
4483
|
+
const parsedBody = parsedOutput.body;
|
|
4484
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4485
|
+
response = {
|
|
4486
|
+
...parsedBody,
|
|
4487
|
+
name: `${errorCode}`,
|
|
4488
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4489
|
+
$fault: "client",
|
|
4490
|
+
$metadata: deserializeMetadata(output),
|
|
4491
|
+
};
|
|
4492
|
+
}
|
|
4493
|
+
const message = response.message || response.Message || errorCode;
|
|
4494
|
+
response.message = message;
|
|
4495
|
+
delete response.Message;
|
|
4496
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4497
|
+
};
|
|
4498
|
+
const deserializeAws_json1_0ListServicePipelineOutputsCommand = async (output, context) => {
|
|
4499
|
+
if (output.statusCode >= 300) {
|
|
4500
|
+
return deserializeAws_json1_0ListServicePipelineOutputsCommandError(output, context);
|
|
4501
|
+
}
|
|
4502
|
+
const data = await parseBody(output.body, context);
|
|
4503
|
+
let contents = {};
|
|
4504
|
+
contents = deserializeAws_json1_0ListServicePipelineOutputsOutput(data, context);
|
|
4505
|
+
const response = {
|
|
4506
|
+
$metadata: deserializeMetadata(output),
|
|
4507
|
+
...contents,
|
|
4508
|
+
};
|
|
4509
|
+
return Promise.resolve(response);
|
|
4510
|
+
};
|
|
4511
|
+
exports.deserializeAws_json1_0ListServicePipelineOutputsCommand = deserializeAws_json1_0ListServicePipelineOutputsCommand;
|
|
4512
|
+
const deserializeAws_json1_0ListServicePipelineOutputsCommandError = async (output, context) => {
|
|
4513
|
+
const parsedOutput = {
|
|
4514
|
+
...output,
|
|
4515
|
+
body: await parseBody(output.body, context),
|
|
4516
|
+
};
|
|
4517
|
+
let response;
|
|
4518
|
+
let errorCode = "UnknownError";
|
|
4519
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4520
|
+
switch (errorCode) {
|
|
4521
|
+
case "AccessDeniedException":
|
|
4522
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4523
|
+
response = {
|
|
4524
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4525
|
+
name: errorCode,
|
|
4526
|
+
$metadata: deserializeMetadata(output),
|
|
4527
|
+
};
|
|
4528
|
+
break;
|
|
4529
|
+
case "InternalServerException":
|
|
4530
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4531
|
+
response = {
|
|
4532
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4533
|
+
name: errorCode,
|
|
4534
|
+
$metadata: deserializeMetadata(output),
|
|
4535
|
+
};
|
|
4536
|
+
break;
|
|
4537
|
+
case "ResourceNotFoundException":
|
|
4538
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4539
|
+
response = {
|
|
4540
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4541
|
+
name: errorCode,
|
|
4542
|
+
$metadata: deserializeMetadata(output),
|
|
4543
|
+
};
|
|
4544
|
+
break;
|
|
4545
|
+
case "ThrottlingException":
|
|
4546
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4547
|
+
response = {
|
|
4548
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4549
|
+
name: errorCode,
|
|
4550
|
+
$metadata: deserializeMetadata(output),
|
|
4551
|
+
};
|
|
4552
|
+
break;
|
|
4553
|
+
case "ValidationException":
|
|
4554
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4555
|
+
response = {
|
|
4556
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4557
|
+
name: errorCode,
|
|
4558
|
+
$metadata: deserializeMetadata(output),
|
|
4559
|
+
};
|
|
4560
|
+
break;
|
|
4561
|
+
default:
|
|
4562
|
+
const parsedBody = parsedOutput.body;
|
|
4563
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4564
|
+
response = {
|
|
4565
|
+
...parsedBody,
|
|
4566
|
+
name: `${errorCode}`,
|
|
4567
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4568
|
+
$fault: "client",
|
|
4569
|
+
$metadata: deserializeMetadata(output),
|
|
4570
|
+
};
|
|
4571
|
+
}
|
|
4572
|
+
const message = response.message || response.Message || errorCode;
|
|
4573
|
+
response.message = message;
|
|
4574
|
+
delete response.Message;
|
|
4575
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4576
|
+
};
|
|
4577
|
+
const deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = async (output, context) => {
|
|
4578
|
+
if (output.statusCode >= 300) {
|
|
4579
|
+
return deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommandError(output, context);
|
|
4580
|
+
}
|
|
4581
|
+
const data = await parseBody(output.body, context);
|
|
4582
|
+
let contents = {};
|
|
4583
|
+
contents = deserializeAws_json1_0ListServicePipelineProvisionedResourcesOutput(data, context);
|
|
4584
|
+
const response = {
|
|
4585
|
+
$metadata: deserializeMetadata(output),
|
|
4586
|
+
...contents,
|
|
4587
|
+
};
|
|
4588
|
+
return Promise.resolve(response);
|
|
4589
|
+
};
|
|
4590
|
+
exports.deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommand = deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommand;
|
|
4591
|
+
const deserializeAws_json1_0ListServicePipelineProvisionedResourcesCommandError = async (output, context) => {
|
|
4592
|
+
const parsedOutput = {
|
|
4593
|
+
...output,
|
|
4594
|
+
body: await parseBody(output.body, context),
|
|
4595
|
+
};
|
|
4596
|
+
let response;
|
|
4597
|
+
let errorCode = "UnknownError";
|
|
4598
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4599
|
+
switch (errorCode) {
|
|
4600
|
+
case "AccessDeniedException":
|
|
4601
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4602
|
+
response = {
|
|
4603
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4604
|
+
name: errorCode,
|
|
4605
|
+
$metadata: deserializeMetadata(output),
|
|
4606
|
+
};
|
|
4607
|
+
break;
|
|
4608
|
+
case "InternalServerException":
|
|
4609
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4610
|
+
response = {
|
|
4611
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4612
|
+
name: errorCode,
|
|
4613
|
+
$metadata: deserializeMetadata(output),
|
|
4614
|
+
};
|
|
4615
|
+
break;
|
|
4616
|
+
case "ResourceNotFoundException":
|
|
4617
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4618
|
+
response = {
|
|
4619
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4620
|
+
name: errorCode,
|
|
4621
|
+
$metadata: deserializeMetadata(output),
|
|
4622
|
+
};
|
|
4623
|
+
break;
|
|
4624
|
+
case "ThrottlingException":
|
|
4625
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4626
|
+
response = {
|
|
4627
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4628
|
+
name: errorCode,
|
|
4629
|
+
$metadata: deserializeMetadata(output),
|
|
4630
|
+
};
|
|
4631
|
+
break;
|
|
4632
|
+
case "ValidationException":
|
|
4633
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4634
|
+
response = {
|
|
4635
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4636
|
+
name: errorCode,
|
|
4637
|
+
$metadata: deserializeMetadata(output),
|
|
4638
|
+
};
|
|
4639
|
+
break;
|
|
4640
|
+
default:
|
|
4641
|
+
const parsedBody = parsedOutput.body;
|
|
4642
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4643
|
+
response = {
|
|
4644
|
+
...parsedBody,
|
|
4645
|
+
name: `${errorCode}`,
|
|
4646
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4647
|
+
$fault: "client",
|
|
4648
|
+
$metadata: deserializeMetadata(output),
|
|
4649
|
+
};
|
|
4650
|
+
}
|
|
4651
|
+
const message = response.message || response.Message || errorCode;
|
|
4652
|
+
response.message = message;
|
|
4653
|
+
delete response.Message;
|
|
4654
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4655
|
+
};
|
|
4656
|
+
const deserializeAws_json1_0ListServicesCommand = async (output, context) => {
|
|
4657
|
+
if (output.statusCode >= 300) {
|
|
4658
|
+
return deserializeAws_json1_0ListServicesCommandError(output, context);
|
|
4659
|
+
}
|
|
4660
|
+
const data = await parseBody(output.body, context);
|
|
4661
|
+
let contents = {};
|
|
4662
|
+
contents = deserializeAws_json1_0ListServicesOutput(data, context);
|
|
4663
|
+
const response = {
|
|
4664
|
+
$metadata: deserializeMetadata(output),
|
|
4665
|
+
...contents,
|
|
4666
|
+
};
|
|
4667
|
+
return Promise.resolve(response);
|
|
4668
|
+
};
|
|
4669
|
+
exports.deserializeAws_json1_0ListServicesCommand = deserializeAws_json1_0ListServicesCommand;
|
|
4670
|
+
const deserializeAws_json1_0ListServicesCommandError = async (output, context) => {
|
|
4671
|
+
const parsedOutput = {
|
|
4672
|
+
...output,
|
|
4673
|
+
body: await parseBody(output.body, context),
|
|
4674
|
+
};
|
|
4675
|
+
let response;
|
|
4676
|
+
let errorCode = "UnknownError";
|
|
4677
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4678
|
+
switch (errorCode) {
|
|
4679
|
+
case "AccessDeniedException":
|
|
4680
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4681
|
+
response = {
|
|
4682
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4683
|
+
name: errorCode,
|
|
4684
|
+
$metadata: deserializeMetadata(output),
|
|
4685
|
+
};
|
|
4686
|
+
break;
|
|
4687
|
+
case "InternalServerException":
|
|
4688
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4689
|
+
response = {
|
|
4690
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4691
|
+
name: errorCode,
|
|
4692
|
+
$metadata: deserializeMetadata(output),
|
|
4693
|
+
};
|
|
4694
|
+
break;
|
|
4695
|
+
case "ThrottlingException":
|
|
4696
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4697
|
+
response = {
|
|
4698
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4699
|
+
name: errorCode,
|
|
4700
|
+
$metadata: deserializeMetadata(output),
|
|
4701
|
+
};
|
|
4702
|
+
break;
|
|
4703
|
+
case "ValidationException":
|
|
4704
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4705
|
+
response = {
|
|
4706
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4707
|
+
name: errorCode,
|
|
4708
|
+
$metadata: deserializeMetadata(output),
|
|
4709
|
+
};
|
|
4710
|
+
break;
|
|
4711
|
+
default:
|
|
4712
|
+
const parsedBody = parsedOutput.body;
|
|
4713
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4714
|
+
response = {
|
|
4715
|
+
...parsedBody,
|
|
4716
|
+
name: `${errorCode}`,
|
|
4717
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4718
|
+
$fault: "client",
|
|
4719
|
+
$metadata: deserializeMetadata(output),
|
|
4720
|
+
};
|
|
4721
|
+
}
|
|
4722
|
+
const message = response.message || response.Message || errorCode;
|
|
4723
|
+
response.message = message;
|
|
4724
|
+
delete response.Message;
|
|
4725
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4726
|
+
};
|
|
4727
|
+
const deserializeAws_json1_0ListServiceTemplatesCommand = async (output, context) => {
|
|
4728
|
+
if (output.statusCode >= 300) {
|
|
4729
|
+
return deserializeAws_json1_0ListServiceTemplatesCommandError(output, context);
|
|
4730
|
+
}
|
|
4731
|
+
const data = await parseBody(output.body, context);
|
|
4732
|
+
let contents = {};
|
|
4733
|
+
contents = deserializeAws_json1_0ListServiceTemplatesOutput(data, context);
|
|
4734
|
+
const response = {
|
|
4735
|
+
$metadata: deserializeMetadata(output),
|
|
4736
|
+
...contents,
|
|
4737
|
+
};
|
|
4738
|
+
return Promise.resolve(response);
|
|
4739
|
+
};
|
|
4740
|
+
exports.deserializeAws_json1_0ListServiceTemplatesCommand = deserializeAws_json1_0ListServiceTemplatesCommand;
|
|
4741
|
+
const deserializeAws_json1_0ListServiceTemplatesCommandError = async (output, context) => {
|
|
4742
|
+
const parsedOutput = {
|
|
4743
|
+
...output,
|
|
4744
|
+
body: await parseBody(output.body, context),
|
|
4745
|
+
};
|
|
4746
|
+
let response;
|
|
4747
|
+
let errorCode = "UnknownError";
|
|
4748
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4749
|
+
switch (errorCode) {
|
|
4750
|
+
case "AccessDeniedException":
|
|
4751
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4752
|
+
response = {
|
|
4753
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4754
|
+
name: errorCode,
|
|
4755
|
+
$metadata: deserializeMetadata(output),
|
|
4756
|
+
};
|
|
4757
|
+
break;
|
|
4758
|
+
case "InternalServerException":
|
|
4759
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4760
|
+
response = {
|
|
4761
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4762
|
+
name: errorCode,
|
|
4763
|
+
$metadata: deserializeMetadata(output),
|
|
4764
|
+
};
|
|
4765
|
+
break;
|
|
4766
|
+
case "ThrottlingException":
|
|
4767
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4768
|
+
response = {
|
|
4769
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4770
|
+
name: errorCode,
|
|
4771
|
+
$metadata: deserializeMetadata(output),
|
|
4772
|
+
};
|
|
4773
|
+
break;
|
|
4774
|
+
case "ValidationException":
|
|
4775
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4776
|
+
response = {
|
|
4777
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4778
|
+
name: errorCode,
|
|
4779
|
+
$metadata: deserializeMetadata(output),
|
|
4780
|
+
};
|
|
4781
|
+
break;
|
|
4782
|
+
default:
|
|
4783
|
+
const parsedBody = parsedOutput.body;
|
|
4784
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4785
|
+
response = {
|
|
4786
|
+
...parsedBody,
|
|
4787
|
+
name: `${errorCode}`,
|
|
4788
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4789
|
+
$fault: "client",
|
|
4790
|
+
$metadata: deserializeMetadata(output),
|
|
4791
|
+
};
|
|
4792
|
+
}
|
|
4793
|
+
const message = response.message || response.Message || errorCode;
|
|
4794
|
+
response.message = message;
|
|
4795
|
+
delete response.Message;
|
|
4796
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4797
|
+
};
|
|
4798
|
+
const deserializeAws_json1_0ListServiceTemplateVersionsCommand = async (output, context) => {
|
|
4799
|
+
if (output.statusCode >= 300) {
|
|
4800
|
+
return deserializeAws_json1_0ListServiceTemplateVersionsCommandError(output, context);
|
|
4801
|
+
}
|
|
4802
|
+
const data = await parseBody(output.body, context);
|
|
4803
|
+
let contents = {};
|
|
4804
|
+
contents = deserializeAws_json1_0ListServiceTemplateVersionsOutput(data, context);
|
|
4805
|
+
const response = {
|
|
4806
|
+
$metadata: deserializeMetadata(output),
|
|
4807
|
+
...contents,
|
|
4808
|
+
};
|
|
4809
|
+
return Promise.resolve(response);
|
|
4810
|
+
};
|
|
4811
|
+
exports.deserializeAws_json1_0ListServiceTemplateVersionsCommand = deserializeAws_json1_0ListServiceTemplateVersionsCommand;
|
|
4812
|
+
const deserializeAws_json1_0ListServiceTemplateVersionsCommandError = async (output, context) => {
|
|
4813
|
+
const parsedOutput = {
|
|
4814
|
+
...output,
|
|
4815
|
+
body: await parseBody(output.body, context),
|
|
4816
|
+
};
|
|
4817
|
+
let response;
|
|
4818
|
+
let errorCode = "UnknownError";
|
|
4819
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4820
|
+
switch (errorCode) {
|
|
4821
|
+
case "AccessDeniedException":
|
|
4822
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4823
|
+
response = {
|
|
4824
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4825
|
+
name: errorCode,
|
|
4826
|
+
$metadata: deserializeMetadata(output),
|
|
4827
|
+
};
|
|
4828
|
+
break;
|
|
4829
|
+
case "InternalServerException":
|
|
4830
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4831
|
+
response = {
|
|
4832
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4833
|
+
name: errorCode,
|
|
4834
|
+
$metadata: deserializeMetadata(output),
|
|
4835
|
+
};
|
|
4836
|
+
break;
|
|
4837
|
+
case "ResourceNotFoundException":
|
|
4838
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4839
|
+
response = {
|
|
4840
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4841
|
+
name: errorCode,
|
|
4842
|
+
$metadata: deserializeMetadata(output),
|
|
4843
|
+
};
|
|
4844
|
+
break;
|
|
4845
|
+
case "ThrottlingException":
|
|
4846
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4847
|
+
response = {
|
|
4848
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4849
|
+
name: errorCode,
|
|
4850
|
+
$metadata: deserializeMetadata(output),
|
|
4851
|
+
};
|
|
4852
|
+
break;
|
|
4853
|
+
case "ValidationException":
|
|
4854
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4855
|
+
response = {
|
|
4856
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4857
|
+
name: errorCode,
|
|
4858
|
+
$metadata: deserializeMetadata(output),
|
|
4859
|
+
};
|
|
4860
|
+
break;
|
|
4861
|
+
default:
|
|
4862
|
+
const parsedBody = parsedOutput.body;
|
|
4863
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4864
|
+
response = {
|
|
4865
|
+
...parsedBody,
|
|
4866
|
+
name: `${errorCode}`,
|
|
4867
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4868
|
+
$fault: "client",
|
|
4869
|
+
$metadata: deserializeMetadata(output),
|
|
4870
|
+
};
|
|
4871
|
+
}
|
|
4872
|
+
const message = response.message || response.Message || errorCode;
|
|
4873
|
+
response.message = message;
|
|
4874
|
+
delete response.Message;
|
|
4875
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4876
|
+
};
|
|
4877
|
+
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
4878
|
+
if (output.statusCode >= 300) {
|
|
4879
|
+
return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
|
|
4880
|
+
}
|
|
4881
|
+
const data = await parseBody(output.body, context);
|
|
4882
|
+
let contents = {};
|
|
4883
|
+
contents = deserializeAws_json1_0ListTagsForResourceOutput(data, context);
|
|
4884
|
+
const response = {
|
|
4885
|
+
$metadata: deserializeMetadata(output),
|
|
4886
|
+
...contents,
|
|
4887
|
+
};
|
|
4888
|
+
return Promise.resolve(response);
|
|
4889
|
+
};
|
|
4890
|
+
exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_0ListTagsForResourceCommand;
|
|
4891
|
+
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
4892
|
+
const parsedOutput = {
|
|
4893
|
+
...output,
|
|
4894
|
+
body: await parseBody(output.body, context),
|
|
4895
|
+
};
|
|
4896
|
+
let response;
|
|
4897
|
+
let errorCode = "UnknownError";
|
|
4898
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4899
|
+
switch (errorCode) {
|
|
4900
|
+
case "AccessDeniedException":
|
|
4901
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4902
|
+
response = {
|
|
4903
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4904
|
+
name: errorCode,
|
|
4905
|
+
$metadata: deserializeMetadata(output),
|
|
4906
|
+
};
|
|
4907
|
+
break;
|
|
4908
|
+
case "InternalServerException":
|
|
4909
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4910
|
+
response = {
|
|
4911
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4912
|
+
name: errorCode,
|
|
4913
|
+
$metadata: deserializeMetadata(output),
|
|
4914
|
+
};
|
|
4915
|
+
break;
|
|
4916
|
+
case "ResourceNotFoundException":
|
|
4917
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
4918
|
+
response = {
|
|
4919
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4920
|
+
name: errorCode,
|
|
4921
|
+
$metadata: deserializeMetadata(output),
|
|
4922
|
+
};
|
|
4923
|
+
break;
|
|
4924
|
+
case "ThrottlingException":
|
|
4925
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
4926
|
+
response = {
|
|
4927
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4928
|
+
name: errorCode,
|
|
4929
|
+
$metadata: deserializeMetadata(output),
|
|
4930
|
+
};
|
|
4931
|
+
break;
|
|
4932
|
+
case "ValidationException":
|
|
4933
|
+
case "com.amazonaws.proton#ValidationException":
|
|
4934
|
+
response = {
|
|
4935
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
4936
|
+
name: errorCode,
|
|
4937
|
+
$metadata: deserializeMetadata(output),
|
|
4938
|
+
};
|
|
4939
|
+
break;
|
|
4940
|
+
default:
|
|
4941
|
+
const parsedBody = parsedOutput.body;
|
|
4942
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4943
|
+
response = {
|
|
4944
|
+
...parsedBody,
|
|
4945
|
+
name: `${errorCode}`,
|
|
4946
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4947
|
+
$fault: "client",
|
|
4948
|
+
$metadata: deserializeMetadata(output),
|
|
4949
|
+
};
|
|
4950
|
+
}
|
|
4951
|
+
const message = response.message || response.Message || errorCode;
|
|
4952
|
+
response.message = message;
|
|
4953
|
+
delete response.Message;
|
|
4954
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4955
|
+
};
|
|
4956
|
+
const deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = async (output, context) => {
|
|
4957
|
+
if (output.statusCode >= 300) {
|
|
4958
|
+
return deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommandError(output, context);
|
|
4959
|
+
}
|
|
4960
|
+
const data = await parseBody(output.body, context);
|
|
4961
|
+
let contents = {};
|
|
4962
|
+
contents = deserializeAws_json1_0NotifyResourceDeploymentStatusChangeOutput(data, context);
|
|
4963
|
+
const response = {
|
|
4964
|
+
$metadata: deserializeMetadata(output),
|
|
4965
|
+
...contents,
|
|
4966
|
+
};
|
|
4967
|
+
return Promise.resolve(response);
|
|
4968
|
+
};
|
|
4969
|
+
exports.deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand = deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommand;
|
|
4970
|
+
const deserializeAws_json1_0NotifyResourceDeploymentStatusChangeCommandError = async (output, context) => {
|
|
4971
|
+
const parsedOutput = {
|
|
4972
|
+
...output,
|
|
4973
|
+
body: await parseBody(output.body, context),
|
|
4974
|
+
};
|
|
4975
|
+
let response;
|
|
4976
|
+
let errorCode = "UnknownError";
|
|
4977
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4978
|
+
switch (errorCode) {
|
|
4979
|
+
case "AccessDeniedException":
|
|
4980
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
4981
|
+
response = {
|
|
4982
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4983
|
+
name: errorCode,
|
|
4984
|
+
$metadata: deserializeMetadata(output),
|
|
4985
|
+
};
|
|
4986
|
+
break;
|
|
4987
|
+
case "ConflictException":
|
|
4988
|
+
case "com.amazonaws.proton#ConflictException":
|
|
4989
|
+
response = {
|
|
4990
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
4991
|
+
name: errorCode,
|
|
4992
|
+
$metadata: deserializeMetadata(output),
|
|
4993
|
+
};
|
|
4994
|
+
break;
|
|
4995
|
+
case "InternalServerException":
|
|
4996
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
4997
|
+
response = {
|
|
4998
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
4999
|
+
name: errorCode,
|
|
5000
|
+
$metadata: deserializeMetadata(output),
|
|
5001
|
+
};
|
|
5002
|
+
break;
|
|
5003
|
+
case "ResourceNotFoundException":
|
|
5004
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
5005
|
+
response = {
|
|
5006
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5007
|
+
name: errorCode,
|
|
5008
|
+
$metadata: deserializeMetadata(output),
|
|
5009
|
+
};
|
|
5010
|
+
break;
|
|
5011
|
+
case "ServiceQuotaExceededException":
|
|
5012
|
+
case "com.amazonaws.proton#ServiceQuotaExceededException":
|
|
5013
|
+
response = {
|
|
5014
|
+
...(await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
5015
|
+
name: errorCode,
|
|
5016
|
+
$metadata: deserializeMetadata(output),
|
|
5017
|
+
};
|
|
5018
|
+
break;
|
|
5019
|
+
case "ThrottlingException":
|
|
5020
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
5021
|
+
response = {
|
|
5022
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5023
|
+
name: errorCode,
|
|
5024
|
+
$metadata: deserializeMetadata(output),
|
|
5025
|
+
};
|
|
5026
|
+
break;
|
|
5027
|
+
case "ValidationException":
|
|
5028
|
+
case "com.amazonaws.proton#ValidationException":
|
|
5029
|
+
response = {
|
|
5030
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
5031
|
+
name: errorCode,
|
|
5032
|
+
$metadata: deserializeMetadata(output),
|
|
5033
|
+
};
|
|
5034
|
+
break;
|
|
5035
|
+
default:
|
|
5036
|
+
const parsedBody = parsedOutput.body;
|
|
5037
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5038
|
+
response = {
|
|
5039
|
+
...parsedBody,
|
|
5040
|
+
name: `${errorCode}`,
|
|
5041
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5042
|
+
$fault: "client",
|
|
5043
|
+
$metadata: deserializeMetadata(output),
|
|
5044
|
+
};
|
|
5045
|
+
}
|
|
5046
|
+
const message = response.message || response.Message || errorCode;
|
|
5047
|
+
response.message = message;
|
|
5048
|
+
delete response.Message;
|
|
5049
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5050
|
+
};
|
|
5051
|
+
const deserializeAws_json1_0RejectEnvironmentAccountConnectionCommand = async (output, context) => {
|
|
5052
|
+
if (output.statusCode >= 300) {
|
|
5053
|
+
return deserializeAws_json1_0RejectEnvironmentAccountConnectionCommandError(output, context);
|
|
5054
|
+
}
|
|
5055
|
+
const data = await parseBody(output.body, context);
|
|
5056
|
+
let contents = {};
|
|
5057
|
+
contents = deserializeAws_json1_0RejectEnvironmentAccountConnectionOutput(data, context);
|
|
5058
|
+
const response = {
|
|
5059
|
+
$metadata: deserializeMetadata(output),
|
|
5060
|
+
...contents,
|
|
5061
|
+
};
|
|
5062
|
+
return Promise.resolve(response);
|
|
5063
|
+
};
|
|
5064
|
+
exports.deserializeAws_json1_0RejectEnvironmentAccountConnectionCommand = deserializeAws_json1_0RejectEnvironmentAccountConnectionCommand;
|
|
5065
|
+
const deserializeAws_json1_0RejectEnvironmentAccountConnectionCommandError = async (output, context) => {
|
|
5066
|
+
const parsedOutput = {
|
|
5067
|
+
...output,
|
|
5068
|
+
body: await parseBody(output.body, context),
|
|
5069
|
+
};
|
|
5070
|
+
let response;
|
|
5071
|
+
let errorCode = "UnknownError";
|
|
5072
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5073
|
+
switch (errorCode) {
|
|
5074
|
+
case "AccessDeniedException":
|
|
5075
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
5076
|
+
response = {
|
|
5077
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5078
|
+
name: errorCode,
|
|
5079
|
+
$metadata: deserializeMetadata(output),
|
|
5080
|
+
};
|
|
5081
|
+
break;
|
|
5082
|
+
case "ConflictException":
|
|
5083
|
+
case "com.amazonaws.proton#ConflictException":
|
|
5084
|
+
response = {
|
|
5085
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
5086
|
+
name: errorCode,
|
|
5087
|
+
$metadata: deserializeMetadata(output),
|
|
5088
|
+
};
|
|
5089
|
+
break;
|
|
5090
|
+
case "InternalServerException":
|
|
5091
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
5092
|
+
response = {
|
|
5093
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
5094
|
+
name: errorCode,
|
|
5095
|
+
$metadata: deserializeMetadata(output),
|
|
5096
|
+
};
|
|
5097
|
+
break;
|
|
5098
|
+
case "ResourceNotFoundException":
|
|
5099
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
5100
|
+
response = {
|
|
5101
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5102
|
+
name: errorCode,
|
|
5103
|
+
$metadata: deserializeMetadata(output),
|
|
5104
|
+
};
|
|
5105
|
+
break;
|
|
5106
|
+
case "ThrottlingException":
|
|
5107
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
5108
|
+
response = {
|
|
5109
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5110
|
+
name: errorCode,
|
|
5111
|
+
$metadata: deserializeMetadata(output),
|
|
5112
|
+
};
|
|
5113
|
+
break;
|
|
5114
|
+
case "ValidationException":
|
|
5115
|
+
case "com.amazonaws.proton#ValidationException":
|
|
5116
|
+
response = {
|
|
5117
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
5118
|
+
name: errorCode,
|
|
5119
|
+
$metadata: deserializeMetadata(output),
|
|
5120
|
+
};
|
|
5121
|
+
break;
|
|
5122
|
+
default:
|
|
5123
|
+
const parsedBody = parsedOutput.body;
|
|
5124
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5125
|
+
response = {
|
|
5126
|
+
...parsedBody,
|
|
5127
|
+
name: `${errorCode}`,
|
|
5128
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5129
|
+
$fault: "client",
|
|
5130
|
+
$metadata: deserializeMetadata(output),
|
|
5131
|
+
};
|
|
5132
|
+
}
|
|
5133
|
+
const message = response.message || response.Message || errorCode;
|
|
5134
|
+
response.message = message;
|
|
5135
|
+
delete response.Message;
|
|
5136
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5137
|
+
};
|
|
5138
|
+
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
5139
|
+
if (output.statusCode >= 300) {
|
|
5140
|
+
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
5141
|
+
}
|
|
5142
|
+
const data = await parseBody(output.body, context);
|
|
5143
|
+
let contents = {};
|
|
5144
|
+
contents = deserializeAws_json1_0TagResourceOutput(data, context);
|
|
5145
|
+
const response = {
|
|
5146
|
+
$metadata: deserializeMetadata(output),
|
|
5147
|
+
...contents,
|
|
5148
|
+
};
|
|
5149
|
+
return Promise.resolve(response);
|
|
5150
|
+
};
|
|
5151
|
+
exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand;
|
|
5152
|
+
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
5153
|
+
const parsedOutput = {
|
|
5154
|
+
...output,
|
|
5155
|
+
body: await parseBody(output.body, context),
|
|
5156
|
+
};
|
|
5157
|
+
let response;
|
|
5158
|
+
let errorCode = "UnknownError";
|
|
5159
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5160
|
+
switch (errorCode) {
|
|
5161
|
+
case "AccessDeniedException":
|
|
5162
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
5163
|
+
response = {
|
|
5164
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5165
|
+
name: errorCode,
|
|
5166
|
+
$metadata: deserializeMetadata(output),
|
|
5167
|
+
};
|
|
5168
|
+
break;
|
|
5169
|
+
case "ConflictException":
|
|
5170
|
+
case "com.amazonaws.proton#ConflictException":
|
|
5171
|
+
response = {
|
|
5172
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
5173
|
+
name: errorCode,
|
|
5174
|
+
$metadata: deserializeMetadata(output),
|
|
5175
|
+
};
|
|
5176
|
+
break;
|
|
5177
|
+
case "InternalServerException":
|
|
5178
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
5179
|
+
response = {
|
|
5180
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
5181
|
+
name: errorCode,
|
|
5182
|
+
$metadata: deserializeMetadata(output),
|
|
5183
|
+
};
|
|
5184
|
+
break;
|
|
5185
|
+
case "ResourceNotFoundException":
|
|
5186
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
5187
|
+
response = {
|
|
5188
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5189
|
+
name: errorCode,
|
|
5190
|
+
$metadata: deserializeMetadata(output),
|
|
5191
|
+
};
|
|
5192
|
+
break;
|
|
5193
|
+
case "ThrottlingException":
|
|
5194
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
5195
|
+
response = {
|
|
5196
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5197
|
+
name: errorCode,
|
|
5198
|
+
$metadata: deserializeMetadata(output),
|
|
5199
|
+
};
|
|
5200
|
+
break;
|
|
5201
|
+
case "ValidationException":
|
|
5202
|
+
case "com.amazonaws.proton#ValidationException":
|
|
5203
|
+
response = {
|
|
5204
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
5205
|
+
name: errorCode,
|
|
5206
|
+
$metadata: deserializeMetadata(output),
|
|
5207
|
+
};
|
|
5208
|
+
break;
|
|
5209
|
+
default:
|
|
5210
|
+
const parsedBody = parsedOutput.body;
|
|
5211
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5212
|
+
response = {
|
|
5213
|
+
...parsedBody,
|
|
5214
|
+
name: `${errorCode}`,
|
|
5215
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5216
|
+
$fault: "client",
|
|
5217
|
+
$metadata: deserializeMetadata(output),
|
|
5218
|
+
};
|
|
5219
|
+
}
|
|
5220
|
+
const message = response.message || response.Message || errorCode;
|
|
5221
|
+
response.message = message;
|
|
5222
|
+
delete response.Message;
|
|
5223
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5224
|
+
};
|
|
5225
|
+
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
5226
|
+
if (output.statusCode >= 300) {
|
|
5227
|
+
return deserializeAws_json1_0UntagResourceCommandError(output, context);
|
|
5228
|
+
}
|
|
5229
|
+
const data = await parseBody(output.body, context);
|
|
5230
|
+
let contents = {};
|
|
5231
|
+
contents = deserializeAws_json1_0UntagResourceOutput(data, context);
|
|
5232
|
+
const response = {
|
|
5233
|
+
$metadata: deserializeMetadata(output),
|
|
5234
|
+
...contents,
|
|
5235
|
+
};
|
|
5236
|
+
return Promise.resolve(response);
|
|
5237
|
+
};
|
|
5238
|
+
exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand;
|
|
5239
|
+
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
5240
|
+
const parsedOutput = {
|
|
5241
|
+
...output,
|
|
5242
|
+
body: await parseBody(output.body, context),
|
|
5243
|
+
};
|
|
5244
|
+
let response;
|
|
5245
|
+
let errorCode = "UnknownError";
|
|
5246
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5247
|
+
switch (errorCode) {
|
|
5248
|
+
case "AccessDeniedException":
|
|
5249
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
5250
|
+
response = {
|
|
5251
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5252
|
+
name: errorCode,
|
|
5253
|
+
$metadata: deserializeMetadata(output),
|
|
5254
|
+
};
|
|
5255
|
+
break;
|
|
5256
|
+
case "ConflictException":
|
|
5257
|
+
case "com.amazonaws.proton#ConflictException":
|
|
5258
|
+
response = {
|
|
5259
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
5260
|
+
name: errorCode,
|
|
5261
|
+
$metadata: deserializeMetadata(output),
|
|
5262
|
+
};
|
|
5263
|
+
break;
|
|
5264
|
+
case "InternalServerException":
|
|
5265
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
5266
|
+
response = {
|
|
5267
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
5268
|
+
name: errorCode,
|
|
5269
|
+
$metadata: deserializeMetadata(output),
|
|
5270
|
+
};
|
|
5271
|
+
break;
|
|
5272
|
+
case "ResourceNotFoundException":
|
|
5273
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
5274
|
+
response = {
|
|
5275
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5276
|
+
name: errorCode,
|
|
5277
|
+
$metadata: deserializeMetadata(output),
|
|
5278
|
+
};
|
|
5279
|
+
break;
|
|
5280
|
+
case "ThrottlingException":
|
|
5281
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
5282
|
+
response = {
|
|
5283
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5284
|
+
name: errorCode,
|
|
5285
|
+
$metadata: deserializeMetadata(output),
|
|
5286
|
+
};
|
|
5287
|
+
break;
|
|
5288
|
+
case "ValidationException":
|
|
5289
|
+
case "com.amazonaws.proton#ValidationException":
|
|
5290
|
+
response = {
|
|
5291
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
5292
|
+
name: errorCode,
|
|
5293
|
+
$metadata: deserializeMetadata(output),
|
|
5294
|
+
};
|
|
5295
|
+
break;
|
|
5296
|
+
default:
|
|
5297
|
+
const parsedBody = parsedOutput.body;
|
|
5298
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5299
|
+
response = {
|
|
5300
|
+
...parsedBody,
|
|
5301
|
+
name: `${errorCode}`,
|
|
5302
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5303
|
+
$fault: "client",
|
|
5304
|
+
$metadata: deserializeMetadata(output),
|
|
5305
|
+
};
|
|
5306
|
+
}
|
|
5307
|
+
const message = response.message || response.Message || errorCode;
|
|
5308
|
+
response.message = message;
|
|
5309
|
+
delete response.Message;
|
|
5310
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5311
|
+
};
|
|
5312
|
+
const deserializeAws_json1_0UpdateAccountSettingsCommand = async (output, context) => {
|
|
5313
|
+
if (output.statusCode >= 300) {
|
|
5314
|
+
return deserializeAws_json1_0UpdateAccountSettingsCommandError(output, context);
|
|
5315
|
+
}
|
|
5316
|
+
const data = await parseBody(output.body, context);
|
|
5317
|
+
let contents = {};
|
|
5318
|
+
contents = deserializeAws_json1_0UpdateAccountSettingsOutput(data, context);
|
|
5319
|
+
const response = {
|
|
5320
|
+
$metadata: deserializeMetadata(output),
|
|
5321
|
+
...contents,
|
|
5322
|
+
};
|
|
5323
|
+
return Promise.resolve(response);
|
|
5324
|
+
};
|
|
5325
|
+
exports.deserializeAws_json1_0UpdateAccountSettingsCommand = deserializeAws_json1_0UpdateAccountSettingsCommand;
|
|
5326
|
+
const deserializeAws_json1_0UpdateAccountSettingsCommandError = async (output, context) => {
|
|
3763
5327
|
const parsedOutput = {
|
|
3764
5328
|
...output,
|
|
3765
5329
|
body: await parseBody(output.body, context),
|
|
@@ -4615,6 +6179,93 @@ const deserializeAws_json1_0UpdateServiceTemplateVersionCommandError = async (ou
|
|
|
4615
6179
|
delete response.Message;
|
|
4616
6180
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4617
6181
|
};
|
|
6182
|
+
const deserializeAws_json1_0UpdateTemplateSyncConfigCommand = async (output, context) => {
|
|
6183
|
+
if (output.statusCode >= 300) {
|
|
6184
|
+
return deserializeAws_json1_0UpdateTemplateSyncConfigCommandError(output, context);
|
|
6185
|
+
}
|
|
6186
|
+
const data = await parseBody(output.body, context);
|
|
6187
|
+
let contents = {};
|
|
6188
|
+
contents = deserializeAws_json1_0UpdateTemplateSyncConfigOutput(data, context);
|
|
6189
|
+
const response = {
|
|
6190
|
+
$metadata: deserializeMetadata(output),
|
|
6191
|
+
...contents,
|
|
6192
|
+
};
|
|
6193
|
+
return Promise.resolve(response);
|
|
6194
|
+
};
|
|
6195
|
+
exports.deserializeAws_json1_0UpdateTemplateSyncConfigCommand = deserializeAws_json1_0UpdateTemplateSyncConfigCommand;
|
|
6196
|
+
const deserializeAws_json1_0UpdateTemplateSyncConfigCommandError = async (output, context) => {
|
|
6197
|
+
const parsedOutput = {
|
|
6198
|
+
...output,
|
|
6199
|
+
body: await parseBody(output.body, context),
|
|
6200
|
+
};
|
|
6201
|
+
let response;
|
|
6202
|
+
let errorCode = "UnknownError";
|
|
6203
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6204
|
+
switch (errorCode) {
|
|
6205
|
+
case "AccessDeniedException":
|
|
6206
|
+
case "com.amazonaws.proton#AccessDeniedException":
|
|
6207
|
+
response = {
|
|
6208
|
+
...(await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
6209
|
+
name: errorCode,
|
|
6210
|
+
$metadata: deserializeMetadata(output),
|
|
6211
|
+
};
|
|
6212
|
+
break;
|
|
6213
|
+
case "ConflictException":
|
|
6214
|
+
case "com.amazonaws.proton#ConflictException":
|
|
6215
|
+
response = {
|
|
6216
|
+
...(await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)),
|
|
6217
|
+
name: errorCode,
|
|
6218
|
+
$metadata: deserializeMetadata(output),
|
|
6219
|
+
};
|
|
6220
|
+
break;
|
|
6221
|
+
case "InternalServerException":
|
|
6222
|
+
case "com.amazonaws.proton#InternalServerException":
|
|
6223
|
+
response = {
|
|
6224
|
+
...(await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)),
|
|
6225
|
+
name: errorCode,
|
|
6226
|
+
$metadata: deserializeMetadata(output),
|
|
6227
|
+
};
|
|
6228
|
+
break;
|
|
6229
|
+
case "ResourceNotFoundException":
|
|
6230
|
+
case "com.amazonaws.proton#ResourceNotFoundException":
|
|
6231
|
+
response = {
|
|
6232
|
+
...(await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6233
|
+
name: errorCode,
|
|
6234
|
+
$metadata: deserializeMetadata(output),
|
|
6235
|
+
};
|
|
6236
|
+
break;
|
|
6237
|
+
case "ThrottlingException":
|
|
6238
|
+
case "com.amazonaws.proton#ThrottlingException":
|
|
6239
|
+
response = {
|
|
6240
|
+
...(await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)),
|
|
6241
|
+
name: errorCode,
|
|
6242
|
+
$metadata: deserializeMetadata(output),
|
|
6243
|
+
};
|
|
6244
|
+
break;
|
|
6245
|
+
case "ValidationException":
|
|
6246
|
+
case "com.amazonaws.proton#ValidationException":
|
|
6247
|
+
response = {
|
|
6248
|
+
...(await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)),
|
|
6249
|
+
name: errorCode,
|
|
6250
|
+
$metadata: deserializeMetadata(output),
|
|
6251
|
+
};
|
|
6252
|
+
break;
|
|
6253
|
+
default:
|
|
6254
|
+
const parsedBody = parsedOutput.body;
|
|
6255
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
6256
|
+
response = {
|
|
6257
|
+
...parsedBody,
|
|
6258
|
+
name: `${errorCode}`,
|
|
6259
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
6260
|
+
$fault: "client",
|
|
6261
|
+
$metadata: deserializeMetadata(output),
|
|
6262
|
+
};
|
|
6263
|
+
}
|
|
6264
|
+
const message = response.message || response.Message || errorCode;
|
|
6265
|
+
response.message = message;
|
|
6266
|
+
delete response.Message;
|
|
6267
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
6268
|
+
};
|
|
4618
6269
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4619
6270
|
const body = parsedOutput.body;
|
|
4620
6271
|
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
@@ -4744,6 +6395,7 @@ const serializeAws_json1_0CreateEnvironmentAccountConnectionInput = (input, cont
|
|
|
4744
6395
|
...(input.managementAccountId !== undefined &&
|
|
4745
6396
|
input.managementAccountId !== null && { managementAccountId: input.managementAccountId }),
|
|
4746
6397
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
6398
|
+
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
4747
6399
|
};
|
|
4748
6400
|
};
|
|
4749
6401
|
const serializeAws_json1_0CreateEnvironmentInput = (input, context) => {
|
|
@@ -4756,6 +6408,10 @@ const serializeAws_json1_0CreateEnvironmentInput = (input, context) => {
|
|
|
4756
6408
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
4757
6409
|
...(input.protonServiceRoleArn !== undefined &&
|
|
4758
6410
|
input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn }),
|
|
6411
|
+
...(input.provisioningRepository !== undefined &&
|
|
6412
|
+
input.provisioningRepository !== null && {
|
|
6413
|
+
provisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.provisioningRepository, context),
|
|
6414
|
+
}),
|
|
4759
6415
|
...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
|
|
4760
6416
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
|
|
4761
6417
|
...(input.templateMajorVersion !== undefined &&
|
|
@@ -4787,6 +6443,14 @@ const serializeAws_json1_0CreateEnvironmentTemplateVersionInput = (input, contex
|
|
|
4787
6443
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
4788
6444
|
};
|
|
4789
6445
|
};
|
|
6446
|
+
const serializeAws_json1_0CreateRepositoryInput = (input, context) => {
|
|
6447
|
+
return {
|
|
6448
|
+
...(input.connectionArn !== undefined && input.connectionArn !== null && { connectionArn: input.connectionArn }),
|
|
6449
|
+
...(input.encryptionKey !== undefined && input.encryptionKey !== null && { encryptionKey: input.encryptionKey }),
|
|
6450
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
6451
|
+
...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
|
|
6452
|
+
};
|
|
6453
|
+
};
|
|
4790
6454
|
const serializeAws_json1_0CreateServiceInput = (input, context) => {
|
|
4791
6455
|
return {
|
|
4792
6456
|
...(input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName }),
|
|
@@ -4831,6 +6495,18 @@ const serializeAws_json1_0CreateServiceTemplateVersionInput = (input, context) =
|
|
|
4831
6495
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
4832
6496
|
};
|
|
4833
6497
|
};
|
|
6498
|
+
const serializeAws_json1_0CreateTemplateSyncConfigInput = (input, context) => {
|
|
6499
|
+
return {
|
|
6500
|
+
...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
|
|
6501
|
+
...(input.repositoryName !== undefined &&
|
|
6502
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
6503
|
+
...(input.repositoryProvider !== undefined &&
|
|
6504
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
|
|
6505
|
+
...(input.subdirectory !== undefined && input.subdirectory !== null && { subdirectory: input.subdirectory }),
|
|
6506
|
+
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
6507
|
+
...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
|
|
6508
|
+
};
|
|
6509
|
+
};
|
|
4834
6510
|
const serializeAws_json1_0DeleteEnvironmentAccountConnectionInput = (input, context) => {
|
|
4835
6511
|
return {
|
|
4836
6512
|
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
@@ -4853,6 +6529,12 @@ const serializeAws_json1_0DeleteEnvironmentTemplateVersionInput = (input, contex
|
|
|
4853
6529
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
4854
6530
|
};
|
|
4855
6531
|
};
|
|
6532
|
+
const serializeAws_json1_0DeleteRepositoryInput = (input, context) => {
|
|
6533
|
+
return {
|
|
6534
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
6535
|
+
...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
|
|
6536
|
+
};
|
|
6537
|
+
};
|
|
4856
6538
|
const serializeAws_json1_0DeleteServiceInput = (input, context) => {
|
|
4857
6539
|
return {
|
|
4858
6540
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
@@ -4870,6 +6552,12 @@ const serializeAws_json1_0DeleteServiceTemplateVersionInput = (input, context) =
|
|
|
4870
6552
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
4871
6553
|
};
|
|
4872
6554
|
};
|
|
6555
|
+
const serializeAws_json1_0DeleteTemplateSyncConfigInput = (input, context) => {
|
|
6556
|
+
return {
|
|
6557
|
+
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
6558
|
+
...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
|
|
6559
|
+
};
|
|
6560
|
+
};
|
|
4873
6561
|
const serializeAws_json1_0EnvironmentAccountConnectionStatusList = (input, context) => {
|
|
4874
6562
|
return input
|
|
4875
6563
|
.filter((e) => e != null)
|
|
@@ -4921,6 +6609,22 @@ const serializeAws_json1_0GetEnvironmentTemplateVersionInput = (input, context)
|
|
|
4921
6609
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
4922
6610
|
};
|
|
4923
6611
|
};
|
|
6612
|
+
const serializeAws_json1_0GetRepositoryInput = (input, context) => {
|
|
6613
|
+
return {
|
|
6614
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
6615
|
+
...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
|
|
6616
|
+
};
|
|
6617
|
+
};
|
|
6618
|
+
const serializeAws_json1_0GetRepositorySyncStatusInput = (input, context) => {
|
|
6619
|
+
return {
|
|
6620
|
+
...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
|
|
6621
|
+
...(input.repositoryName !== undefined &&
|
|
6622
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
6623
|
+
...(input.repositoryProvider !== undefined &&
|
|
6624
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
|
|
6625
|
+
...(input.syncType !== undefined && input.syncType !== null && { syncType: input.syncType }),
|
|
6626
|
+
};
|
|
6627
|
+
};
|
|
4924
6628
|
const serializeAws_json1_0GetServiceInput = (input, context) => {
|
|
4925
6629
|
return {
|
|
4926
6630
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
@@ -4944,17 +6648,45 @@ const serializeAws_json1_0GetServiceTemplateVersionInput = (input, context) => {
|
|
|
4944
6648
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
4945
6649
|
};
|
|
4946
6650
|
};
|
|
4947
|
-
const
|
|
6651
|
+
const serializeAws_json1_0GetTemplateSyncConfigInput = (input, context) => {
|
|
6652
|
+
return {
|
|
6653
|
+
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
6654
|
+
...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
|
|
6655
|
+
};
|
|
6656
|
+
};
|
|
6657
|
+
const serializeAws_json1_0GetTemplateSyncStatusInput = (input, context) => {
|
|
6658
|
+
return {
|
|
6659
|
+
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
6660
|
+
...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
|
|
6661
|
+
...(input.templateVersion !== undefined &&
|
|
6662
|
+
input.templateVersion !== null && { templateVersion: input.templateVersion }),
|
|
6663
|
+
};
|
|
6664
|
+
};
|
|
6665
|
+
const serializeAws_json1_0ListEnvironmentAccountConnectionsInput = (input, context) => {
|
|
6666
|
+
return {
|
|
6667
|
+
...(input.environmentName !== undefined &&
|
|
6668
|
+
input.environmentName !== null && { environmentName: input.environmentName }),
|
|
6669
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
6670
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6671
|
+
...(input.requestedBy !== undefined && input.requestedBy !== null && { requestedBy: input.requestedBy }),
|
|
6672
|
+
...(input.statuses !== undefined &&
|
|
6673
|
+
input.statuses !== null && {
|
|
6674
|
+
statuses: serializeAws_json1_0EnvironmentAccountConnectionStatusList(input.statuses, context),
|
|
6675
|
+
}),
|
|
6676
|
+
};
|
|
6677
|
+
};
|
|
6678
|
+
const serializeAws_json1_0ListEnvironmentOutputsInput = (input, context) => {
|
|
6679
|
+
return {
|
|
6680
|
+
...(input.environmentName !== undefined &&
|
|
6681
|
+
input.environmentName !== null && { environmentName: input.environmentName }),
|
|
6682
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6683
|
+
};
|
|
6684
|
+
};
|
|
6685
|
+
const serializeAws_json1_0ListEnvironmentProvisionedResourcesInput = (input, context) => {
|
|
4948
6686
|
return {
|
|
4949
6687
|
...(input.environmentName !== undefined &&
|
|
4950
6688
|
input.environmentName !== null && { environmentName: input.environmentName }),
|
|
4951
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
4952
6689
|
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
4953
|
-
...(input.requestedBy !== undefined && input.requestedBy !== null && { requestedBy: input.requestedBy }),
|
|
4954
|
-
...(input.statuses !== undefined &&
|
|
4955
|
-
input.statuses !== null && {
|
|
4956
|
-
statuses: serializeAws_json1_0EnvironmentAccountConnectionStatusList(input.statuses, context),
|
|
4957
|
-
}),
|
|
4958
6690
|
};
|
|
4959
6691
|
};
|
|
4960
6692
|
const serializeAws_json1_0ListEnvironmentsInput = (input, context) => {
|
|
@@ -4981,6 +6713,38 @@ const serializeAws_json1_0ListEnvironmentTemplateVersionsInput = (input, context
|
|
|
4981
6713
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
4982
6714
|
};
|
|
4983
6715
|
};
|
|
6716
|
+
const serializeAws_json1_0ListRepositoriesInput = (input, context) => {
|
|
6717
|
+
return {
|
|
6718
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
6719
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6720
|
+
};
|
|
6721
|
+
};
|
|
6722
|
+
const serializeAws_json1_0ListRepositorySyncDefinitionsInput = (input, context) => {
|
|
6723
|
+
return {
|
|
6724
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6725
|
+
...(input.repositoryName !== undefined &&
|
|
6726
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
6727
|
+
...(input.repositoryProvider !== undefined &&
|
|
6728
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
|
|
6729
|
+
...(input.syncType !== undefined && input.syncType !== null && { syncType: input.syncType }),
|
|
6730
|
+
};
|
|
6731
|
+
};
|
|
6732
|
+
const serializeAws_json1_0ListServiceInstanceOutputsInput = (input, context) => {
|
|
6733
|
+
return {
|
|
6734
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6735
|
+
...(input.serviceInstanceName !== undefined &&
|
|
6736
|
+
input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
|
|
6737
|
+
...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
|
|
6738
|
+
};
|
|
6739
|
+
};
|
|
6740
|
+
const serializeAws_json1_0ListServiceInstanceProvisionedResourcesInput = (input, context) => {
|
|
6741
|
+
return {
|
|
6742
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6743
|
+
...(input.serviceInstanceName !== undefined &&
|
|
6744
|
+
input.serviceInstanceName !== null && { serviceInstanceName: input.serviceInstanceName }),
|
|
6745
|
+
...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
|
|
6746
|
+
};
|
|
6747
|
+
};
|
|
4984
6748
|
const serializeAws_json1_0ListServiceInstancesInput = (input, context) => {
|
|
4985
6749
|
return {
|
|
4986
6750
|
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
@@ -4988,6 +6752,18 @@ const serializeAws_json1_0ListServiceInstancesInput = (input, context) => {
|
|
|
4988
6752
|
...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
|
|
4989
6753
|
};
|
|
4990
6754
|
};
|
|
6755
|
+
const serializeAws_json1_0ListServicePipelineOutputsInput = (input, context) => {
|
|
6756
|
+
return {
|
|
6757
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6758
|
+
...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
|
|
6759
|
+
};
|
|
6760
|
+
};
|
|
6761
|
+
const serializeAws_json1_0ListServicePipelineProvisionedResourcesInput = (input, context) => {
|
|
6762
|
+
return {
|
|
6763
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
6764
|
+
...(input.serviceName !== undefined && input.serviceName !== null && { serviceName: input.serviceName }),
|
|
6765
|
+
};
|
|
6766
|
+
};
|
|
4991
6767
|
const serializeAws_json1_0ListServicesInput = (input, context) => {
|
|
4992
6768
|
return {
|
|
4993
6769
|
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
@@ -5015,11 +6791,44 @@ const serializeAws_json1_0ListTagsForResourceInput = (input, context) => {
|
|
|
5015
6791
|
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
5016
6792
|
};
|
|
5017
6793
|
};
|
|
6794
|
+
const serializeAws_json1_0NotifyResourceDeploymentStatusChangeInput = (input, context) => {
|
|
6795
|
+
return {
|
|
6796
|
+
...(input.deploymentId !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId }),
|
|
6797
|
+
...(input.outputs !== undefined &&
|
|
6798
|
+
input.outputs !== null && { outputs: serializeAws_json1_0OutputsList(input.outputs, context) }),
|
|
6799
|
+
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
6800
|
+
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
6801
|
+
...(input.statusMessage !== undefined && input.statusMessage !== null && { statusMessage: input.statusMessage }),
|
|
6802
|
+
};
|
|
6803
|
+
};
|
|
6804
|
+
const serializeAws_json1_0Output = (input, context) => {
|
|
6805
|
+
return {
|
|
6806
|
+
...(input.key !== undefined && input.key !== null && { key: input.key }),
|
|
6807
|
+
...(input.valueString !== undefined && input.valueString !== null && { valueString: input.valueString }),
|
|
6808
|
+
};
|
|
6809
|
+
};
|
|
6810
|
+
const serializeAws_json1_0OutputsList = (input, context) => {
|
|
6811
|
+
return input
|
|
6812
|
+
.filter((e) => e != null)
|
|
6813
|
+
.map((entry) => {
|
|
6814
|
+
if (entry === null) {
|
|
6815
|
+
return null;
|
|
6816
|
+
}
|
|
6817
|
+
return serializeAws_json1_0Output(entry, context);
|
|
6818
|
+
});
|
|
6819
|
+
};
|
|
5018
6820
|
const serializeAws_json1_0RejectEnvironmentAccountConnectionInput = (input, context) => {
|
|
5019
6821
|
return {
|
|
5020
6822
|
...(input.id !== undefined && input.id !== null && { id: input.id }),
|
|
5021
6823
|
};
|
|
5022
6824
|
};
|
|
6825
|
+
const serializeAws_json1_0RepositoryBranchInput = (input, context) => {
|
|
6826
|
+
return {
|
|
6827
|
+
...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
|
|
6828
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
6829
|
+
...(input.provider !== undefined && input.provider !== null && { provider: input.provider }),
|
|
6830
|
+
};
|
|
6831
|
+
};
|
|
5023
6832
|
const serializeAws_json1_0S3ObjectSource = (input, context) => {
|
|
5024
6833
|
return {
|
|
5025
6834
|
...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
|
|
@@ -5073,6 +6882,10 @@ const serializeAws_json1_0UntagResourceInput = (input, context) => {
|
|
|
5073
6882
|
};
|
|
5074
6883
|
const serializeAws_json1_0UpdateAccountSettingsInput = (input, context) => {
|
|
5075
6884
|
return {
|
|
6885
|
+
...(input.pipelineProvisioningRepository !== undefined &&
|
|
6886
|
+
input.pipelineProvisioningRepository !== null && {
|
|
6887
|
+
pipelineProvisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.pipelineProvisioningRepository, context),
|
|
6888
|
+
}),
|
|
5076
6889
|
...(input.pipelineServiceRoleArn !== undefined &&
|
|
5077
6890
|
input.pipelineServiceRoleArn !== null && { pipelineServiceRoleArn: input.pipelineServiceRoleArn }),
|
|
5078
6891
|
};
|
|
@@ -5095,6 +6908,10 @@ const serializeAws_json1_0UpdateEnvironmentInput = (input, context) => {
|
|
|
5095
6908
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
5096
6909
|
...(input.protonServiceRoleArn !== undefined &&
|
|
5097
6910
|
input.protonServiceRoleArn !== null && { protonServiceRoleArn: input.protonServiceRoleArn }),
|
|
6911
|
+
...(input.provisioningRepository !== undefined &&
|
|
6912
|
+
input.provisioningRepository !== null && {
|
|
6913
|
+
provisioningRepository: serializeAws_json1_0RepositoryBranchInput(input.provisioningRepository, context),
|
|
6914
|
+
}),
|
|
5098
6915
|
...(input.spec !== undefined && input.spec !== null && { spec: input.spec }),
|
|
5099
6916
|
...(input.templateMajorVersion !== undefined &&
|
|
5100
6917
|
input.templateMajorVersion !== null && { templateMajorVersion: input.templateMajorVersion }),
|
|
@@ -5170,6 +6987,18 @@ const serializeAws_json1_0UpdateServiceTemplateVersionInput = (input, context) =
|
|
|
5170
6987
|
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
5171
6988
|
};
|
|
5172
6989
|
};
|
|
6990
|
+
const serializeAws_json1_0UpdateTemplateSyncConfigInput = (input, context) => {
|
|
6991
|
+
return {
|
|
6992
|
+
...(input.branch !== undefined && input.branch !== null && { branch: input.branch }),
|
|
6993
|
+
...(input.repositoryName !== undefined &&
|
|
6994
|
+
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
6995
|
+
...(input.repositoryProvider !== undefined &&
|
|
6996
|
+
input.repositoryProvider !== null && { repositoryProvider: input.repositoryProvider }),
|
|
6997
|
+
...(input.subdirectory !== undefined && input.subdirectory !== null && { subdirectory: input.subdirectory }),
|
|
6998
|
+
...(input.templateName !== undefined && input.templateName !== null && { templateName: input.templateName }),
|
|
6999
|
+
...(input.templateType !== undefined && input.templateType !== null && { templateType: input.templateType }),
|
|
7000
|
+
};
|
|
7001
|
+
};
|
|
5173
7002
|
const deserializeAws_json1_0AcceptEnvironmentAccountConnectionOutput = (output, context) => {
|
|
5174
7003
|
return {
|
|
5175
7004
|
environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
|
|
@@ -5184,6 +7013,9 @@ const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
|
5184
7013
|
};
|
|
5185
7014
|
const deserializeAws_json1_0AccountSettings = (output, context) => {
|
|
5186
7015
|
return {
|
|
7016
|
+
pipelineProvisioningRepository: output.pipelineProvisioningRepository !== undefined && output.pipelineProvisioningRepository !== null
|
|
7017
|
+
? deserializeAws_json1_0RepositoryBranch(output.pipelineProvisioningRepository, context)
|
|
7018
|
+
: undefined,
|
|
5187
7019
|
pipelineServiceRoleArn: smithy_client_1.expectString(output.pipelineServiceRoleArn),
|
|
5188
7020
|
};
|
|
5189
7021
|
};
|
|
@@ -5257,6 +7089,13 @@ const deserializeAws_json1_0CreateEnvironmentTemplateVersionOutput = (output, co
|
|
|
5257
7089
|
: undefined,
|
|
5258
7090
|
};
|
|
5259
7091
|
};
|
|
7092
|
+
const deserializeAws_json1_0CreateRepositoryOutput = (output, context) => {
|
|
7093
|
+
return {
|
|
7094
|
+
repository: output.repository !== undefined && output.repository !== null
|
|
7095
|
+
? deserializeAws_json1_0Repository(output.repository, context)
|
|
7096
|
+
: undefined,
|
|
7097
|
+
};
|
|
7098
|
+
};
|
|
5260
7099
|
const deserializeAws_json1_0CreateServiceOutput = (output, context) => {
|
|
5261
7100
|
return {
|
|
5262
7101
|
service: output.service !== undefined && output.service !== null
|
|
@@ -5278,6 +7117,13 @@ const deserializeAws_json1_0CreateServiceTemplateVersionOutput = (output, contex
|
|
|
5278
7117
|
: undefined,
|
|
5279
7118
|
};
|
|
5280
7119
|
};
|
|
7120
|
+
const deserializeAws_json1_0CreateTemplateSyncConfigOutput = (output, context) => {
|
|
7121
|
+
return {
|
|
7122
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
7123
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
7124
|
+
: undefined,
|
|
7125
|
+
};
|
|
7126
|
+
};
|
|
5281
7127
|
const deserializeAws_json1_0DeleteEnvironmentAccountConnectionOutput = (output, context) => {
|
|
5282
7128
|
return {
|
|
5283
7129
|
environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
|
|
@@ -5306,6 +7152,13 @@ const deserializeAws_json1_0DeleteEnvironmentTemplateVersionOutput = (output, co
|
|
|
5306
7152
|
: undefined,
|
|
5307
7153
|
};
|
|
5308
7154
|
};
|
|
7155
|
+
const deserializeAws_json1_0DeleteRepositoryOutput = (output, context) => {
|
|
7156
|
+
return {
|
|
7157
|
+
repository: output.repository !== undefined && output.repository !== null
|
|
7158
|
+
? deserializeAws_json1_0Repository(output.repository, context)
|
|
7159
|
+
: undefined,
|
|
7160
|
+
};
|
|
7161
|
+
};
|
|
5309
7162
|
const deserializeAws_json1_0DeleteServiceOutput = (output, context) => {
|
|
5310
7163
|
return {
|
|
5311
7164
|
service: output.service !== undefined && output.service !== null
|
|
@@ -5327,6 +7180,13 @@ const deserializeAws_json1_0DeleteServiceTemplateVersionOutput = (output, contex
|
|
|
5327
7180
|
: undefined,
|
|
5328
7181
|
};
|
|
5329
7182
|
};
|
|
7183
|
+
const deserializeAws_json1_0DeleteTemplateSyncConfigOutput = (output, context) => {
|
|
7184
|
+
return {
|
|
7185
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
7186
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
7187
|
+
: undefined,
|
|
7188
|
+
};
|
|
7189
|
+
};
|
|
5330
7190
|
const deserializeAws_json1_0Environment = (output, context) => {
|
|
5331
7191
|
return {
|
|
5332
7192
|
arn: smithy_client_1.expectString(output.arn),
|
|
@@ -5347,6 +7207,9 @@ const deserializeAws_json1_0Environment = (output, context) => {
|
|
|
5347
7207
|
name: smithy_client_1.expectString(output.name),
|
|
5348
7208
|
protonServiceRoleArn: smithy_client_1.expectString(output.protonServiceRoleArn),
|
|
5349
7209
|
provisioning: smithy_client_1.expectString(output.provisioning),
|
|
7210
|
+
provisioningRepository: output.provisioningRepository !== undefined && output.provisioningRepository !== null
|
|
7211
|
+
? deserializeAws_json1_0RepositoryBranch(output.provisioningRepository, context)
|
|
7212
|
+
: undefined,
|
|
5350
7213
|
spec: smithy_client_1.expectString(output.spec),
|
|
5351
7214
|
templateMajorVersion: smithy_client_1.expectString(output.templateMajorVersion),
|
|
5352
7215
|
templateMinorVersion: smithy_client_1.expectString(output.templateMinorVersion),
|
|
@@ -5557,6 +7420,20 @@ const deserializeAws_json1_0GetEnvironmentTemplateVersionOutput = (output, conte
|
|
|
5557
7420
|
: undefined,
|
|
5558
7421
|
};
|
|
5559
7422
|
};
|
|
7423
|
+
const deserializeAws_json1_0GetRepositoryOutput = (output, context) => {
|
|
7424
|
+
return {
|
|
7425
|
+
repository: output.repository !== undefined && output.repository !== null
|
|
7426
|
+
? deserializeAws_json1_0Repository(output.repository, context)
|
|
7427
|
+
: undefined,
|
|
7428
|
+
};
|
|
7429
|
+
};
|
|
7430
|
+
const deserializeAws_json1_0GetRepositorySyncStatusOutput = (output, context) => {
|
|
7431
|
+
return {
|
|
7432
|
+
latestSync: output.latestSync !== undefined && output.latestSync !== null
|
|
7433
|
+
? deserializeAws_json1_0RepositorySyncAttempt(output.latestSync, context)
|
|
7434
|
+
: undefined,
|
|
7435
|
+
};
|
|
7436
|
+
};
|
|
5560
7437
|
const deserializeAws_json1_0GetServiceInstanceOutput = (output, context) => {
|
|
5561
7438
|
return {
|
|
5562
7439
|
serviceInstance: output.serviceInstance !== undefined && output.serviceInstance !== null
|
|
@@ -5585,6 +7462,26 @@ const deserializeAws_json1_0GetServiceTemplateVersionOutput = (output, context)
|
|
|
5585
7462
|
: undefined,
|
|
5586
7463
|
};
|
|
5587
7464
|
};
|
|
7465
|
+
const deserializeAws_json1_0GetTemplateSyncConfigOutput = (output, context) => {
|
|
7466
|
+
return {
|
|
7467
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
7468
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
7469
|
+
: undefined,
|
|
7470
|
+
};
|
|
7471
|
+
};
|
|
7472
|
+
const deserializeAws_json1_0GetTemplateSyncStatusOutput = (output, context) => {
|
|
7473
|
+
return {
|
|
7474
|
+
desiredState: output.desiredState !== undefined && output.desiredState !== null
|
|
7475
|
+
? deserializeAws_json1_0Revision(output.desiredState, context)
|
|
7476
|
+
: undefined,
|
|
7477
|
+
latestSuccessfulSync: output.latestSuccessfulSync !== undefined && output.latestSuccessfulSync !== null
|
|
7478
|
+
? deserializeAws_json1_0ResourceSyncAttempt(output.latestSuccessfulSync, context)
|
|
7479
|
+
: undefined,
|
|
7480
|
+
latestSync: output.latestSync !== undefined && output.latestSync !== null
|
|
7481
|
+
? deserializeAws_json1_0ResourceSyncAttempt(output.latestSync, context)
|
|
7482
|
+
: undefined,
|
|
7483
|
+
};
|
|
7484
|
+
};
|
|
5588
7485
|
const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
5589
7486
|
return {
|
|
5590
7487
|
message: smithy_client_1.expectString(output.message),
|
|
@@ -5598,6 +7495,22 @@ const deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput = (output, c
|
|
|
5598
7495
|
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
5599
7496
|
};
|
|
5600
7497
|
};
|
|
7498
|
+
const deserializeAws_json1_0ListEnvironmentOutputsOutput = (output, context) => {
|
|
7499
|
+
return {
|
|
7500
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7501
|
+
outputs: output.outputs !== undefined && output.outputs !== null
|
|
7502
|
+
? deserializeAws_json1_0OutputsList(output.outputs, context)
|
|
7503
|
+
: undefined,
|
|
7504
|
+
};
|
|
7505
|
+
};
|
|
7506
|
+
const deserializeAws_json1_0ListEnvironmentProvisionedResourcesOutput = (output, context) => {
|
|
7507
|
+
return {
|
|
7508
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7509
|
+
provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
|
|
7510
|
+
? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
|
|
7511
|
+
: undefined,
|
|
7512
|
+
};
|
|
7513
|
+
};
|
|
5601
7514
|
const deserializeAws_json1_0ListEnvironmentsOutput = (output, context) => {
|
|
5602
7515
|
return {
|
|
5603
7516
|
environments: output.environments !== undefined && output.environments !== null
|
|
@@ -5622,6 +7535,38 @@ const deserializeAws_json1_0ListEnvironmentTemplateVersionsOutput = (output, con
|
|
|
5622
7535
|
: undefined,
|
|
5623
7536
|
};
|
|
5624
7537
|
};
|
|
7538
|
+
const deserializeAws_json1_0ListRepositoriesOutput = (output, context) => {
|
|
7539
|
+
return {
|
|
7540
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7541
|
+
repositories: output.repositories !== undefined && output.repositories !== null
|
|
7542
|
+
? deserializeAws_json1_0RepositorySummaryList(output.repositories, context)
|
|
7543
|
+
: undefined,
|
|
7544
|
+
};
|
|
7545
|
+
};
|
|
7546
|
+
const deserializeAws_json1_0ListRepositorySyncDefinitionsOutput = (output, context) => {
|
|
7547
|
+
return {
|
|
7548
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7549
|
+
syncDefinitions: output.syncDefinitions !== undefined && output.syncDefinitions !== null
|
|
7550
|
+
? deserializeAws_json1_0RepositorySyncDefinitionList(output.syncDefinitions, context)
|
|
7551
|
+
: undefined,
|
|
7552
|
+
};
|
|
7553
|
+
};
|
|
7554
|
+
const deserializeAws_json1_0ListServiceInstanceOutputsOutput = (output, context) => {
|
|
7555
|
+
return {
|
|
7556
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7557
|
+
outputs: output.outputs !== undefined && output.outputs !== null
|
|
7558
|
+
? deserializeAws_json1_0OutputsList(output.outputs, context)
|
|
7559
|
+
: undefined,
|
|
7560
|
+
};
|
|
7561
|
+
};
|
|
7562
|
+
const deserializeAws_json1_0ListServiceInstanceProvisionedResourcesOutput = (output, context) => {
|
|
7563
|
+
return {
|
|
7564
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7565
|
+
provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
|
|
7566
|
+
? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
|
|
7567
|
+
: undefined,
|
|
7568
|
+
};
|
|
7569
|
+
};
|
|
5625
7570
|
const deserializeAws_json1_0ListServiceInstancesOutput = (output, context) => {
|
|
5626
7571
|
return {
|
|
5627
7572
|
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
@@ -5630,6 +7575,22 @@ const deserializeAws_json1_0ListServiceInstancesOutput = (output, context) => {
|
|
|
5630
7575
|
: undefined,
|
|
5631
7576
|
};
|
|
5632
7577
|
};
|
|
7578
|
+
const deserializeAws_json1_0ListServicePipelineOutputsOutput = (output, context) => {
|
|
7579
|
+
return {
|
|
7580
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7581
|
+
outputs: output.outputs !== undefined && output.outputs !== null
|
|
7582
|
+
? deserializeAws_json1_0OutputsList(output.outputs, context)
|
|
7583
|
+
: undefined,
|
|
7584
|
+
};
|
|
7585
|
+
};
|
|
7586
|
+
const deserializeAws_json1_0ListServicePipelineProvisionedResourcesOutput = (output, context) => {
|
|
7587
|
+
return {
|
|
7588
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
7589
|
+
provisionedResources: output.provisionedResources !== undefined && output.provisionedResources !== null
|
|
7590
|
+
? deserializeAws_json1_0ProvisionedResourceList(output.provisionedResources, context)
|
|
7591
|
+
: undefined,
|
|
7592
|
+
};
|
|
7593
|
+
};
|
|
5633
7594
|
const deserializeAws_json1_0ListServicesOutput = (output, context) => {
|
|
5634
7595
|
return {
|
|
5635
7596
|
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
@@ -5662,6 +7623,42 @@ const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
|
|
|
5662
7623
|
: undefined,
|
|
5663
7624
|
};
|
|
5664
7625
|
};
|
|
7626
|
+
const deserializeAws_json1_0NotifyResourceDeploymentStatusChangeOutput = (output, context) => {
|
|
7627
|
+
return {};
|
|
7628
|
+
};
|
|
7629
|
+
const deserializeAws_json1_0Output = (output, context) => {
|
|
7630
|
+
return {
|
|
7631
|
+
key: smithy_client_1.expectString(output.key),
|
|
7632
|
+
valueString: smithy_client_1.expectString(output.valueString),
|
|
7633
|
+
};
|
|
7634
|
+
};
|
|
7635
|
+
const deserializeAws_json1_0OutputsList = (output, context) => {
|
|
7636
|
+
return (output || [])
|
|
7637
|
+
.filter((e) => e != null)
|
|
7638
|
+
.map((entry) => {
|
|
7639
|
+
if (entry === null) {
|
|
7640
|
+
return null;
|
|
7641
|
+
}
|
|
7642
|
+
return deserializeAws_json1_0Output(entry, context);
|
|
7643
|
+
});
|
|
7644
|
+
};
|
|
7645
|
+
const deserializeAws_json1_0ProvisionedResource = (output, context) => {
|
|
7646
|
+
return {
|
|
7647
|
+
identifier: smithy_client_1.expectString(output.identifier),
|
|
7648
|
+
name: smithy_client_1.expectString(output.name),
|
|
7649
|
+
provisioningEngine: smithy_client_1.expectString(output.provisioningEngine),
|
|
7650
|
+
};
|
|
7651
|
+
};
|
|
7652
|
+
const deserializeAws_json1_0ProvisionedResourceList = (output, context) => {
|
|
7653
|
+
return (output || [])
|
|
7654
|
+
.filter((e) => e != null)
|
|
7655
|
+
.map((entry) => {
|
|
7656
|
+
if (entry === null) {
|
|
7657
|
+
return null;
|
|
7658
|
+
}
|
|
7659
|
+
return deserializeAws_json1_0ProvisionedResource(entry, context);
|
|
7660
|
+
});
|
|
7661
|
+
};
|
|
5665
7662
|
const deserializeAws_json1_0RejectEnvironmentAccountConnectionOutput = (output, context) => {
|
|
5666
7663
|
return {
|
|
5667
7664
|
environmentAccountConnection: output.environmentAccountConnection !== undefined && output.environmentAccountConnection !== null
|
|
@@ -5669,11 +7666,141 @@ const deserializeAws_json1_0RejectEnvironmentAccountConnectionOutput = (output,
|
|
|
5669
7666
|
: undefined,
|
|
5670
7667
|
};
|
|
5671
7668
|
};
|
|
7669
|
+
const deserializeAws_json1_0Repository = (output, context) => {
|
|
7670
|
+
return {
|
|
7671
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
7672
|
+
connectionArn: smithy_client_1.expectString(output.connectionArn),
|
|
7673
|
+
encryptionKey: smithy_client_1.expectString(output.encryptionKey),
|
|
7674
|
+
name: smithy_client_1.expectString(output.name),
|
|
7675
|
+
provider: smithy_client_1.expectString(output.provider),
|
|
7676
|
+
};
|
|
7677
|
+
};
|
|
7678
|
+
const deserializeAws_json1_0RepositoryBranch = (output, context) => {
|
|
7679
|
+
return {
|
|
7680
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
7681
|
+
branch: smithy_client_1.expectString(output.branch),
|
|
7682
|
+
name: smithy_client_1.expectString(output.name),
|
|
7683
|
+
provider: smithy_client_1.expectString(output.provider),
|
|
7684
|
+
};
|
|
7685
|
+
};
|
|
7686
|
+
const deserializeAws_json1_0RepositorySummary = (output, context) => {
|
|
7687
|
+
return {
|
|
7688
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
7689
|
+
name: smithy_client_1.expectString(output.name),
|
|
7690
|
+
provider: smithy_client_1.expectString(output.provider),
|
|
7691
|
+
};
|
|
7692
|
+
};
|
|
7693
|
+
const deserializeAws_json1_0RepositorySummaryList = (output, context) => {
|
|
7694
|
+
return (output || [])
|
|
7695
|
+
.filter((e) => e != null)
|
|
7696
|
+
.map((entry) => {
|
|
7697
|
+
if (entry === null) {
|
|
7698
|
+
return null;
|
|
7699
|
+
}
|
|
7700
|
+
return deserializeAws_json1_0RepositorySummary(entry, context);
|
|
7701
|
+
});
|
|
7702
|
+
};
|
|
7703
|
+
const deserializeAws_json1_0RepositorySyncAttempt = (output, context) => {
|
|
7704
|
+
return {
|
|
7705
|
+
events: output.events !== undefined && output.events !== null
|
|
7706
|
+
? deserializeAws_json1_0RepositorySyncEvents(output.events, context)
|
|
7707
|
+
: undefined,
|
|
7708
|
+
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
7709
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startedAt)))
|
|
7710
|
+
: undefined,
|
|
7711
|
+
status: smithy_client_1.expectString(output.status),
|
|
7712
|
+
};
|
|
7713
|
+
};
|
|
7714
|
+
const deserializeAws_json1_0RepositorySyncDefinition = (output, context) => {
|
|
7715
|
+
return {
|
|
7716
|
+
branch: smithy_client_1.expectString(output.branch),
|
|
7717
|
+
directory: smithy_client_1.expectString(output.directory),
|
|
7718
|
+
parent: smithy_client_1.expectString(output.parent),
|
|
7719
|
+
target: smithy_client_1.expectString(output.target),
|
|
7720
|
+
};
|
|
7721
|
+
};
|
|
7722
|
+
const deserializeAws_json1_0RepositorySyncDefinitionList = (output, context) => {
|
|
7723
|
+
return (output || [])
|
|
7724
|
+
.filter((e) => e != null)
|
|
7725
|
+
.map((entry) => {
|
|
7726
|
+
if (entry === null) {
|
|
7727
|
+
return null;
|
|
7728
|
+
}
|
|
7729
|
+
return deserializeAws_json1_0RepositorySyncDefinition(entry, context);
|
|
7730
|
+
});
|
|
7731
|
+
};
|
|
7732
|
+
const deserializeAws_json1_0RepositorySyncEvent = (output, context) => {
|
|
7733
|
+
return {
|
|
7734
|
+
event: smithy_client_1.expectString(output.event),
|
|
7735
|
+
externalId: smithy_client_1.expectString(output.externalId),
|
|
7736
|
+
time: output.time !== undefined && output.time !== null
|
|
7737
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.time)))
|
|
7738
|
+
: undefined,
|
|
7739
|
+
type: smithy_client_1.expectString(output.type),
|
|
7740
|
+
};
|
|
7741
|
+
};
|
|
7742
|
+
const deserializeAws_json1_0RepositorySyncEvents = (output, context) => {
|
|
7743
|
+
return (output || [])
|
|
7744
|
+
.filter((e) => e != null)
|
|
7745
|
+
.map((entry) => {
|
|
7746
|
+
if (entry === null) {
|
|
7747
|
+
return null;
|
|
7748
|
+
}
|
|
7749
|
+
return deserializeAws_json1_0RepositorySyncEvent(entry, context);
|
|
7750
|
+
});
|
|
7751
|
+
};
|
|
5672
7752
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
5673
7753
|
return {
|
|
5674
7754
|
message: smithy_client_1.expectString(output.message),
|
|
5675
7755
|
};
|
|
5676
7756
|
};
|
|
7757
|
+
const deserializeAws_json1_0ResourceSyncAttempt = (output, context) => {
|
|
7758
|
+
return {
|
|
7759
|
+
events: output.events !== undefined && output.events !== null
|
|
7760
|
+
? deserializeAws_json1_0ResourceSyncEvents(output.events, context)
|
|
7761
|
+
: undefined,
|
|
7762
|
+
initialRevision: output.initialRevision !== undefined && output.initialRevision !== null
|
|
7763
|
+
? deserializeAws_json1_0Revision(output.initialRevision, context)
|
|
7764
|
+
: undefined,
|
|
7765
|
+
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
7766
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startedAt)))
|
|
7767
|
+
: undefined,
|
|
7768
|
+
status: smithy_client_1.expectString(output.status),
|
|
7769
|
+
target: smithy_client_1.expectString(output.target),
|
|
7770
|
+
targetRevision: output.targetRevision !== undefined && output.targetRevision !== null
|
|
7771
|
+
? deserializeAws_json1_0Revision(output.targetRevision, context)
|
|
7772
|
+
: undefined,
|
|
7773
|
+
};
|
|
7774
|
+
};
|
|
7775
|
+
const deserializeAws_json1_0ResourceSyncEvent = (output, context) => {
|
|
7776
|
+
return {
|
|
7777
|
+
event: smithy_client_1.expectString(output.event),
|
|
7778
|
+
externalId: smithy_client_1.expectString(output.externalId),
|
|
7779
|
+
time: output.time !== undefined && output.time !== null
|
|
7780
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.time)))
|
|
7781
|
+
: undefined,
|
|
7782
|
+
type: smithy_client_1.expectString(output.type),
|
|
7783
|
+
};
|
|
7784
|
+
};
|
|
7785
|
+
const deserializeAws_json1_0ResourceSyncEvents = (output, context) => {
|
|
7786
|
+
return (output || [])
|
|
7787
|
+
.filter((e) => e != null)
|
|
7788
|
+
.map((entry) => {
|
|
7789
|
+
if (entry === null) {
|
|
7790
|
+
return null;
|
|
7791
|
+
}
|
|
7792
|
+
return deserializeAws_json1_0ResourceSyncEvent(entry, context);
|
|
7793
|
+
});
|
|
7794
|
+
};
|
|
7795
|
+
const deserializeAws_json1_0Revision = (output, context) => {
|
|
7796
|
+
return {
|
|
7797
|
+
branch: smithy_client_1.expectString(output.branch),
|
|
7798
|
+
directory: smithy_client_1.expectString(output.directory),
|
|
7799
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
7800
|
+
repositoryProvider: smithy_client_1.expectString(output.repositoryProvider),
|
|
7801
|
+
sha: smithy_client_1.expectString(output.sha),
|
|
7802
|
+
};
|
|
7803
|
+
};
|
|
5677
7804
|
const deserializeAws_json1_0Service = (output, context) => {
|
|
5678
7805
|
return {
|
|
5679
7806
|
arn: smithy_client_1.expectString(output.arn),
|
|
@@ -5915,6 +8042,16 @@ const deserializeAws_json1_0TagList = (output, context) => {
|
|
|
5915
8042
|
const deserializeAws_json1_0TagResourceOutput = (output, context) => {
|
|
5916
8043
|
return {};
|
|
5917
8044
|
};
|
|
8045
|
+
const deserializeAws_json1_0TemplateSyncConfig = (output, context) => {
|
|
8046
|
+
return {
|
|
8047
|
+
branch: smithy_client_1.expectString(output.branch),
|
|
8048
|
+
repositoryName: smithy_client_1.expectString(output.repositoryName),
|
|
8049
|
+
repositoryProvider: smithy_client_1.expectString(output.repositoryProvider),
|
|
8050
|
+
subdirectory: smithy_client_1.expectString(output.subdirectory),
|
|
8051
|
+
templateName: smithy_client_1.expectString(output.templateName),
|
|
8052
|
+
templateType: smithy_client_1.expectString(output.templateType),
|
|
8053
|
+
};
|
|
8054
|
+
};
|
|
5918
8055
|
const deserializeAws_json1_0ThrottlingException = (output, context) => {
|
|
5919
8056
|
return {
|
|
5920
8057
|
message: smithy_client_1.expectString(output.message),
|
|
@@ -5993,6 +8130,13 @@ const deserializeAws_json1_0UpdateServiceTemplateVersionOutput = (output, contex
|
|
|
5993
8130
|
: undefined,
|
|
5994
8131
|
};
|
|
5995
8132
|
};
|
|
8133
|
+
const deserializeAws_json1_0UpdateTemplateSyncConfigOutput = (output, context) => {
|
|
8134
|
+
return {
|
|
8135
|
+
templateSyncConfig: output.templateSyncConfig !== undefined && output.templateSyncConfig !== null
|
|
8136
|
+
? deserializeAws_json1_0TemplateSyncConfig(output.templateSyncConfig, context)
|
|
8137
|
+
: undefined,
|
|
8138
|
+
};
|
|
8139
|
+
};
|
|
5996
8140
|
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
5997
8141
|
return {
|
|
5998
8142
|
message: smithy_client_1.expectString(output.message),
|