@aws-sdk/client-serverlessapplicationrepository 3.33.0 → 3.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/ServerlessApplicationRepository.js +2 -25
- package/dist-cjs/ServerlessApplicationRepositoryClient.js +35 -0
- package/{dist/cjs → dist-cjs}/commands/CreateApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateApplicationVersionCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateCloudFormationChangeSetCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/CreateCloudFormationTemplateCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DeleteApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetApplicationPolicyCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/GetCloudFormationTemplateCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListApplicationDependenciesCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListApplicationVersionsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListApplicationsCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutApplicationPolicyCommand.js +2 -30
- package/{dist/cjs → dist-cjs}/commands/UnshareApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UpdateApplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -127
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationDependenciesPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationVersionsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListApplicationsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -8
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/ServerlessApplicationRepository.js +3 -26
- package/dist-es/ServerlessApplicationRepositoryClient.js +37 -0
- package/{dist/es → dist-es}/commands/CreateApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateApplicationVersionCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateCloudFormationChangeSetCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateCloudFormationTemplateCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetApplicationPolicyCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetCloudFormationTemplateCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListApplicationDependenciesCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListApplicationVersionsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListApplicationsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PutApplicationPolicyCommand.js +4 -33
- package/{dist/es → dist-es}/commands/UnshareApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateApplicationCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -127
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListApplicationDependenciesPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListApplicationVersionsPaginator.js +17 -30
- package/{dist/es → dist-es}/pagination/ListApplicationsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +412 -418
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/ServerlessApplicationRepository.d.ts +3 -3
- package/{dist/types → dist-types}/ServerlessApplicationRepositoryClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CreateApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateApplicationVersionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateCloudFormationChangeSetCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateCloudFormationTemplateCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetApplicationPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetCloudFormationTemplateCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListApplicationDependenciesCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListApplicationVersionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListApplicationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutApplicationPolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UnshareApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateApplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationDependenciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/ServerlessApplicationRepository.d.ts +18 -70
- package/{dist/types → dist-types}/ts3.4/ServerlessApplicationRepositoryClient.d.ts +33 -117
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/CreateApplicationVersionCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/CreateCloudFormationChangeSetCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/CreateCloudFormationTemplateCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/GetApplicationPolicyCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/GetCloudFormationTemplateCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/ListApplicationDependenciesCommand.d.ts +5 -23
- package/{dist/types → dist-types}/ts3.4/commands/ListApplicationVersionsCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutApplicationPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UnshareApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +684 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationDependenciesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationVersionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListApplicationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/ServerlessApplicationRepository.ts +0 -547
- package/ServerlessApplicationRepositoryClient.ts +0 -321
- package/commands/CreateApplicationCommand.ts +0 -98
- package/commands/CreateApplicationVersionCommand.ts +0 -98
- package/commands/CreateCloudFormationChangeSetCommand.ts +0 -103
- package/commands/CreateCloudFormationTemplateCommand.ts +0 -103
- package/commands/DeleteApplicationCommand.ts +0 -98
- package/commands/GetApplicationCommand.ts +0 -98
- package/commands/GetApplicationPolicyCommand.ts +0 -98
- package/commands/GetCloudFormationTemplateCommand.ts +0 -101
- package/commands/ListApplicationDependenciesCommand.ts +0 -103
- package/commands/ListApplicationVersionsCommand.ts +0 -98
- package/commands/ListApplicationsCommand.ts +0 -98
- package/commands/PutApplicationPolicyCommand.ts +0 -101
- package/commands/UnshareApplicationCommand.ts +0 -98
- package/commands/UpdateApplicationCommand.ts +0 -98
- package/dist/cjs/ServerlessApplicationRepository.js.map +0 -1
- package/dist/cjs/ServerlessApplicationRepositoryClient.js +0 -63
- package/dist/cjs/ServerlessApplicationRepositoryClient.js.map +0 -1
- package/dist/cjs/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/CreateApplicationVersionCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCloudFormationChangeSetCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCloudFormationTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/GetApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/GetApplicationPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetCloudFormationTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationDependenciesCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationVersionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListApplicationsCommand.js.map +0 -1
- package/dist/cjs/commands/PutApplicationPolicyCommand.js.map +0 -1
- package/dist/cjs/commands/UnshareApplicationCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationDependenciesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationVersionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/ServerlessApplicationRepository.js.map +0 -1
- package/dist/es/ServerlessApplicationRepositoryClient.js +0 -65
- package/dist/es/ServerlessApplicationRepositoryClient.js.map +0 -1
- package/dist/es/commands/CreateApplicationCommand.js.map +0 -1
- package/dist/es/commands/CreateApplicationVersionCommand.js.map +0 -1
- package/dist/es/commands/CreateCloudFormationChangeSetCommand.js.map +0 -1
- package/dist/es/commands/CreateCloudFormationTemplateCommand.js.map +0 -1
- package/dist/es/commands/DeleteApplicationCommand.js.map +0 -1
- package/dist/es/commands/GetApplicationCommand.js.map +0 -1
- package/dist/es/commands/GetApplicationPolicyCommand.js.map +0 -1
- package/dist/es/commands/GetCloudFormationTemplateCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationDependenciesCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationVersionsCommand.js.map +0 -1
- package/dist/es/commands/ListApplicationsCommand.js.map +0 -1
- package/dist/es/commands/PutApplicationPolicyCommand.js.map +0 -1
- package/dist/es/commands/UnshareApplicationCommand.js.map +0 -1
- package/dist/es/commands/UpdateApplicationCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -22
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListApplicationDependenciesPaginator.js.map +0 -1
- package/dist/es/pagination/ListApplicationVersionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListApplicationsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/commands/CreateApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DeleteApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/GetApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/ListApplicationsCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutApplicationPolicyCommand.d.ts +0 -38
- package/dist/types/ts3.4/commands/UnshareApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UpdateApplicationCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1325
- package/endpoints.ts +0 -66
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1649
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListApplicationDependenciesPaginator.ts +0 -60
- package/pagination/ListApplicationVersionsPaginator.ts +0 -60
- package/pagination/ListApplicationsPaginator.ts +0 -60
- package/protocols/Aws_restJson1.ts +0 -2545
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {
|
|
@@ -16,7 +16,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
16
16
|
input.Labels !== null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.LicenseBody !== undefined && input.LicenseBody !== null && { licenseBody: input.LicenseBody })), (input.LicenseUrl !== undefined && input.LicenseUrl !== null && { licenseUrl: input.LicenseUrl })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.ReadmeBody !== undefined && input.ReadmeBody !== null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl })), (input.SemanticVersion !== undefined &&
|
|
17
17
|
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })), (input.SourceCodeArchiveUrl !== undefined &&
|
|
18
18
|
input.SourceCodeArchiveUrl !== null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl !== undefined && input.SourceCodeUrl !== null && { sourceCodeUrl: input.SourceCodeUrl })), (input.SpdxLicenseId !== undefined && input.SpdxLicenseId !== null && { spdxLicenseId: input.SpdxLicenseId })), (input.TemplateBody !== undefined && input.TemplateBody !== null && { templateBody: input.TemplateBody })), (input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl })));
|
|
19
|
-
return [2
|
|
19
|
+
return [2, new __HttpRequest({
|
|
20
20
|
protocol: protocol,
|
|
21
21
|
hostname: hostname,
|
|
22
22
|
port: port,
|
|
@@ -32,7 +32,7 @@ export var serializeAws_restJson1CreateApplicationVersionCommand = function (inp
|
|
|
32
32
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
33
33
|
return __generator(this, function (_c) {
|
|
34
34
|
switch (_c.label) {
|
|
35
|
-
case 0: return [4
|
|
35
|
+
case 0: return [4, context.endpoint()];
|
|
36
36
|
case 1:
|
|
37
37
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
38
38
|
headers = {
|
|
@@ -62,7 +62,7 @@ export var serializeAws_restJson1CreateApplicationVersionCommand = function (inp
|
|
|
62
62
|
}
|
|
63
63
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.SourceCodeArchiveUrl !== undefined &&
|
|
64
64
|
input.SourceCodeArchiveUrl !== null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl !== undefined && input.SourceCodeUrl !== null && { sourceCodeUrl: input.SourceCodeUrl })), (input.TemplateBody !== undefined && input.TemplateBody !== null && { templateBody: input.TemplateBody })), (input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl })));
|
|
65
|
-
return [2
|
|
65
|
+
return [2, new __HttpRequest({
|
|
66
66
|
protocol: protocol,
|
|
67
67
|
hostname: hostname,
|
|
68
68
|
port: port,
|
|
@@ -78,7 +78,7 @@ export var serializeAws_restJson1CreateCloudFormationChangeSetCommand = function
|
|
|
78
78
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
79
79
|
return __generator(this, function (_c) {
|
|
80
80
|
switch (_c.label) {
|
|
81
|
-
case 0: return [4
|
|
81
|
+
case 0: return [4, context.endpoint()];
|
|
82
82
|
case 1:
|
|
83
83
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
84
84
|
headers = {
|
|
@@ -113,7 +113,7 @@ export var serializeAws_restJson1CreateCloudFormationChangeSetCommand = function
|
|
|
113
113
|
})), (input.SemanticVersion !== undefined &&
|
|
114
114
|
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })), (input.StackName !== undefined && input.StackName !== null && { stackName: input.StackName })), (input.Tags !== undefined &&
|
|
115
115
|
input.Tags !== null && { tags: serializeAws_restJson1__listOfTag(input.Tags, context) })), (input.TemplateId !== undefined && input.TemplateId !== null && { templateId: input.TemplateId })));
|
|
116
|
-
return [2
|
|
116
|
+
return [2, new __HttpRequest({
|
|
117
117
|
protocol: protocol,
|
|
118
118
|
hostname: hostname,
|
|
119
119
|
port: port,
|
|
@@ -129,7 +129,7 @@ export var serializeAws_restJson1CreateCloudFormationTemplateCommand = function
|
|
|
129
129
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
130
130
|
return __generator(this, function (_c) {
|
|
131
131
|
switch (_c.label) {
|
|
132
|
-
case 0: return [4
|
|
132
|
+
case 0: return [4, context.endpoint()];
|
|
133
133
|
case 1:
|
|
134
134
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
135
135
|
headers = {
|
|
@@ -148,7 +148,7 @@ export var serializeAws_restJson1CreateCloudFormationTemplateCommand = function
|
|
|
148
148
|
}
|
|
149
149
|
body = JSON.stringify(__assign({}, (input.SemanticVersion !== undefined &&
|
|
150
150
|
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })));
|
|
151
|
-
return [2
|
|
151
|
+
return [2, new __HttpRequest({
|
|
152
152
|
protocol: protocol,
|
|
153
153
|
hostname: hostname,
|
|
154
154
|
port: port,
|
|
@@ -164,7 +164,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
164
164
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
165
165
|
return __generator(this, function (_c) {
|
|
166
166
|
switch (_c.label) {
|
|
167
|
-
case 0: return [4
|
|
167
|
+
case 0: return [4, context.endpoint()];
|
|
168
168
|
case 1:
|
|
169
169
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
170
170
|
headers = {};
|
|
@@ -179,7 +179,7 @@ export var serializeAws_restJson1DeleteApplicationCommand = function (input, con
|
|
|
179
179
|
else {
|
|
180
180
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
181
181
|
}
|
|
182
|
-
return [2
|
|
182
|
+
return [2, new __HttpRequest({
|
|
183
183
|
protocol: protocol,
|
|
184
184
|
hostname: hostname,
|
|
185
185
|
port: port,
|
|
@@ -195,7 +195,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
195
195
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
196
196
|
return __generator(this, function (_c) {
|
|
197
197
|
switch (_c.label) {
|
|
198
|
-
case 0: return [4
|
|
198
|
+
case 0: return [4, context.endpoint()];
|
|
199
199
|
case 1:
|
|
200
200
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
201
201
|
headers = {};
|
|
@@ -211,7 +211,7 @@ export var serializeAws_restJson1GetApplicationCommand = function (input, contex
|
|
|
211
211
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
212
212
|
}
|
|
213
213
|
query = __assign({}, (input.SemanticVersion !== undefined && { semanticVersion: input.SemanticVersion }));
|
|
214
|
-
return [2
|
|
214
|
+
return [2, new __HttpRequest({
|
|
215
215
|
protocol: protocol,
|
|
216
216
|
hostname: hostname,
|
|
217
217
|
port: port,
|
|
@@ -228,7 +228,7 @@ export var serializeAws_restJson1GetApplicationPolicyCommand = function (input,
|
|
|
228
228
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
229
229
|
return __generator(this, function (_c) {
|
|
230
230
|
switch (_c.label) {
|
|
231
|
-
case 0: return [4
|
|
231
|
+
case 0: return [4, context.endpoint()];
|
|
232
232
|
case 1:
|
|
233
233
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
234
234
|
headers = {};
|
|
@@ -243,7 +243,7 @@ export var serializeAws_restJson1GetApplicationPolicyCommand = function (input,
|
|
|
243
243
|
else {
|
|
244
244
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
245
245
|
}
|
|
246
|
-
return [2
|
|
246
|
+
return [2, new __HttpRequest({
|
|
247
247
|
protocol: protocol,
|
|
248
248
|
hostname: hostname,
|
|
249
249
|
port: port,
|
|
@@ -259,7 +259,7 @@ export var serializeAws_restJson1GetCloudFormationTemplateCommand = function (in
|
|
|
259
259
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
260
260
|
return __generator(this, function (_c) {
|
|
261
261
|
switch (_c.label) {
|
|
262
|
-
case 0: return [4
|
|
262
|
+
case 0: return [4, context.endpoint()];
|
|
263
263
|
case 1:
|
|
264
264
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
265
265
|
headers = {};
|
|
@@ -285,7 +285,7 @@ export var serializeAws_restJson1GetCloudFormationTemplateCommand = function (in
|
|
|
285
285
|
else {
|
|
286
286
|
throw new Error("No value provided for input HTTP label: TemplateId.");
|
|
287
287
|
}
|
|
288
|
-
return [2
|
|
288
|
+
return [2, new __HttpRequest({
|
|
289
289
|
protocol: protocol,
|
|
290
290
|
hostname: hostname,
|
|
291
291
|
port: port,
|
|
@@ -301,7 +301,7 @@ export var serializeAws_restJson1ListApplicationDependenciesCommand = function (
|
|
|
301
301
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
302
302
|
return __generator(this, function (_c) {
|
|
303
303
|
switch (_c.label) {
|
|
304
|
-
case 0: return [4
|
|
304
|
+
case 0: return [4, context.endpoint()];
|
|
305
305
|
case 1:
|
|
306
306
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
307
307
|
headers = {};
|
|
@@ -318,7 +318,7 @@ export var serializeAws_restJson1ListApplicationDependenciesCommand = function (
|
|
|
318
318
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
319
319
|
}
|
|
320
320
|
query = __assign(__assign(__assign({}, (input.MaxItems !== undefined && { maxItems: input.MaxItems.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.SemanticVersion !== undefined && { semanticVersion: input.SemanticVersion }));
|
|
321
|
-
return [2
|
|
321
|
+
return [2, new __HttpRequest({
|
|
322
322
|
protocol: protocol,
|
|
323
323
|
hostname: hostname,
|
|
324
324
|
port: port,
|
|
@@ -335,13 +335,13 @@ export var serializeAws_restJson1ListApplicationsCommand = function (input, cont
|
|
|
335
335
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
336
336
|
return __generator(this, function (_c) {
|
|
337
337
|
switch (_c.label) {
|
|
338
|
-
case 0: return [4
|
|
338
|
+
case 0: return [4, context.endpoint()];
|
|
339
339
|
case 1:
|
|
340
340
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
341
341
|
headers = {};
|
|
342
342
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
343
343
|
query = __assign(__assign({}, (input.MaxItems !== undefined && { maxItems: input.MaxItems.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
344
|
-
return [2
|
|
344
|
+
return [2, new __HttpRequest({
|
|
345
345
|
protocol: protocol,
|
|
346
346
|
hostname: hostname,
|
|
347
347
|
port: port,
|
|
@@ -358,7 +358,7 @@ export var serializeAws_restJson1ListApplicationVersionsCommand = function (inpu
|
|
|
358
358
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
359
359
|
return __generator(this, function (_c) {
|
|
360
360
|
switch (_c.label) {
|
|
361
|
-
case 0: return [4
|
|
361
|
+
case 0: return [4, context.endpoint()];
|
|
362
362
|
case 1:
|
|
363
363
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
364
364
|
headers = {};
|
|
@@ -374,7 +374,7 @@ export var serializeAws_restJson1ListApplicationVersionsCommand = function (inpu
|
|
|
374
374
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
375
375
|
}
|
|
376
376
|
query = __assign(__assign({}, (input.MaxItems !== undefined && { maxItems: input.MaxItems.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
377
|
-
return [2
|
|
377
|
+
return [2, new __HttpRequest({
|
|
378
378
|
protocol: protocol,
|
|
379
379
|
hostname: hostname,
|
|
380
380
|
port: port,
|
|
@@ -391,7 +391,7 @@ export var serializeAws_restJson1PutApplicationPolicyCommand = function (input,
|
|
|
391
391
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
392
392
|
return __generator(this, function (_c) {
|
|
393
393
|
switch (_c.label) {
|
|
394
|
-
case 0: return [4
|
|
394
|
+
case 0: return [4, context.endpoint()];
|
|
395
395
|
case 1:
|
|
396
396
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
397
397
|
headers = {
|
|
@@ -412,7 +412,7 @@ export var serializeAws_restJson1PutApplicationPolicyCommand = function (input,
|
|
|
412
412
|
input.Statements !== null && {
|
|
413
413
|
statements: serializeAws_restJson1__listOfApplicationPolicyStatement(input.Statements, context),
|
|
414
414
|
})));
|
|
415
|
-
return [2
|
|
415
|
+
return [2, new __HttpRequest({
|
|
416
416
|
protocol: protocol,
|
|
417
417
|
hostname: hostname,
|
|
418
418
|
port: port,
|
|
@@ -428,7 +428,7 @@ export var serializeAws_restJson1UnshareApplicationCommand = function (input, co
|
|
|
428
428
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
429
429
|
return __generator(this, function (_c) {
|
|
430
430
|
switch (_c.label) {
|
|
431
|
-
case 0: return [4
|
|
431
|
+
case 0: return [4, context.endpoint()];
|
|
432
432
|
case 1:
|
|
433
433
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
434
434
|
headers = {
|
|
@@ -447,7 +447,7 @@ export var serializeAws_restJson1UnshareApplicationCommand = function (input, co
|
|
|
447
447
|
}
|
|
448
448
|
body = JSON.stringify(__assign({}, (input.OrganizationId !== undefined &&
|
|
449
449
|
input.OrganizationId !== null && { organizationId: input.OrganizationId })));
|
|
450
|
-
return [2
|
|
450
|
+
return [2, new __HttpRequest({
|
|
451
451
|
protocol: protocol,
|
|
452
452
|
hostname: hostname,
|
|
453
453
|
port: port,
|
|
@@ -463,7 +463,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
463
463
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
464
464
|
return __generator(this, function (_c) {
|
|
465
465
|
switch (_c.label) {
|
|
466
|
-
case 0: return [4
|
|
466
|
+
case 0: return [4, context.endpoint()];
|
|
467
467
|
case 1:
|
|
468
468
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
469
469
|
headers = {
|
|
@@ -482,7 +482,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
482
482
|
}
|
|
483
483
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author !== undefined && input.Author !== null && { author: input.Author })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.HomePageUrl !== undefined && input.HomePageUrl !== null && { homePageUrl: input.HomePageUrl })), (input.Labels !== undefined &&
|
|
484
484
|
input.Labels !== null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.ReadmeBody !== undefined && input.ReadmeBody !== null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl })));
|
|
485
|
-
return [2
|
|
485
|
+
return [2, new __HttpRequest({
|
|
486
486
|
protocol: protocol,
|
|
487
487
|
hostname: hostname,
|
|
488
488
|
port: port,
|
|
@@ -500,7 +500,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
500
500
|
switch (_c.label) {
|
|
501
501
|
case 0:
|
|
502
502
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
503
|
-
return [2
|
|
503
|
+
return [2, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
|
|
504
504
|
}
|
|
505
505
|
contents = {
|
|
506
506
|
$metadata: deserializeMetadata(output),
|
|
@@ -520,7 +520,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
520
520
|
};
|
|
521
521
|
_a = __expectNonNull;
|
|
522
522
|
_b = __expectObject;
|
|
523
|
-
return [4
|
|
523
|
+
return [4, parseBody(output.body, context)];
|
|
524
524
|
case 1:
|
|
525
525
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
526
526
|
if (data.applicationId !== undefined && data.applicationId !== null) {
|
|
@@ -562,7 +562,7 @@ export var deserializeAws_restJson1CreateApplicationCommand = function (output,
|
|
|
562
562
|
if (data.version !== undefined && data.version !== null) {
|
|
563
563
|
contents.Version = deserializeAws_restJson1Version(data.version, context);
|
|
564
564
|
}
|
|
565
|
-
return [2
|
|
565
|
+
return [2, Promise.resolve(contents)];
|
|
566
566
|
}
|
|
567
567
|
});
|
|
568
568
|
}); };
|
|
@@ -574,55 +574,55 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
574
574
|
case 0:
|
|
575
575
|
_a = [__assign({}, output)];
|
|
576
576
|
_h = {};
|
|
577
|
-
return [4
|
|
577
|
+
return [4, parseBody(output.body, context)];
|
|
578
578
|
case 1:
|
|
579
579
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
580
580
|
errorCode = "UnknownError";
|
|
581
581
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
582
582
|
_b = errorCode;
|
|
583
583
|
switch (_b) {
|
|
584
|
-
case "BadRequestException": return [3
|
|
585
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
586
|
-
case "ConflictException": return [3
|
|
587
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3
|
|
588
|
-
case "ForbiddenException": return [3
|
|
589
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
590
|
-
case "InternalServerErrorException": return [3
|
|
591
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
592
|
-
case "TooManyRequestsException": return [3
|
|
593
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
594
|
-
}
|
|
595
|
-
return [3
|
|
584
|
+
case "BadRequestException": return [3, 2];
|
|
585
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
586
|
+
case "ConflictException": return [3, 4];
|
|
587
|
+
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3, 4];
|
|
588
|
+
case "ForbiddenException": return [3, 6];
|
|
589
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 6];
|
|
590
|
+
case "InternalServerErrorException": return [3, 8];
|
|
591
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 8];
|
|
592
|
+
case "TooManyRequestsException": return [3, 10];
|
|
593
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
594
|
+
}
|
|
595
|
+
return [3, 12];
|
|
596
596
|
case 2:
|
|
597
597
|
_c = [{}];
|
|
598
|
-
return [4
|
|
598
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
599
599
|
case 3:
|
|
600
600
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
601
|
-
return [3
|
|
601
|
+
return [3, 13];
|
|
602
602
|
case 4:
|
|
603
603
|
_d = [{}];
|
|
604
|
-
return [4
|
|
604
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
605
605
|
case 5:
|
|
606
606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
607
|
-
return [3
|
|
607
|
+
return [3, 13];
|
|
608
608
|
case 6:
|
|
609
609
|
_e = [{}];
|
|
610
|
-
return [4
|
|
610
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
611
611
|
case 7:
|
|
612
612
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
613
|
-
return [3
|
|
613
|
+
return [3, 13];
|
|
614
614
|
case 8:
|
|
615
615
|
_f = [{}];
|
|
616
|
-
return [4
|
|
616
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
617
617
|
case 9:
|
|
618
618
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
619
|
-
return [3
|
|
619
|
+
return [3, 13];
|
|
620
620
|
case 10:
|
|
621
621
|
_g = [{}];
|
|
622
|
-
return [4
|
|
622
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
623
623
|
case 11:
|
|
624
624
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
625
|
-
return [3
|
|
625
|
+
return [3, 13];
|
|
626
626
|
case 12:
|
|
627
627
|
parsedBody = parsedOutput.body;
|
|
628
628
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -632,7 +632,7 @@ var deserializeAws_restJson1CreateApplicationCommandError = function (output, co
|
|
|
632
632
|
message = response.message || response.Message || errorCode;
|
|
633
633
|
response.message = message;
|
|
634
634
|
delete response.Message;
|
|
635
|
-
return [2
|
|
635
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
636
636
|
}
|
|
637
637
|
});
|
|
638
638
|
}); };
|
|
@@ -642,7 +642,7 @@ export var deserializeAws_restJson1CreateApplicationVersionCommand = function (o
|
|
|
642
642
|
switch (_c.label) {
|
|
643
643
|
case 0:
|
|
644
644
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
645
|
-
return [2
|
|
645
|
+
return [2, deserializeAws_restJson1CreateApplicationVersionCommandError(output, context)];
|
|
646
646
|
}
|
|
647
647
|
contents = {
|
|
648
648
|
$metadata: deserializeMetadata(output),
|
|
@@ -658,7 +658,7 @@ export var deserializeAws_restJson1CreateApplicationVersionCommand = function (o
|
|
|
658
658
|
};
|
|
659
659
|
_a = __expectNonNull;
|
|
660
660
|
_b = __expectObject;
|
|
661
|
-
return [4
|
|
661
|
+
return [4, parseBody(output.body, context)];
|
|
662
662
|
case 1:
|
|
663
663
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
664
664
|
if (data.applicationId !== undefined && data.applicationId !== null) {
|
|
@@ -688,7 +688,7 @@ export var deserializeAws_restJson1CreateApplicationVersionCommand = function (o
|
|
|
688
688
|
if (data.templateUrl !== undefined && data.templateUrl !== null) {
|
|
689
689
|
contents.TemplateUrl = __expectString(data.templateUrl);
|
|
690
690
|
}
|
|
691
|
-
return [2
|
|
691
|
+
return [2, Promise.resolve(contents)];
|
|
692
692
|
}
|
|
693
693
|
});
|
|
694
694
|
}); };
|
|
@@ -700,55 +700,55 @@ var deserializeAws_restJson1CreateApplicationVersionCommandError = function (out
|
|
|
700
700
|
case 0:
|
|
701
701
|
_a = [__assign({}, output)];
|
|
702
702
|
_h = {};
|
|
703
|
-
return [4
|
|
703
|
+
return [4, parseBody(output.body, context)];
|
|
704
704
|
case 1:
|
|
705
705
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
706
706
|
errorCode = "UnknownError";
|
|
707
707
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
708
708
|
_b = errorCode;
|
|
709
709
|
switch (_b) {
|
|
710
|
-
case "BadRequestException": return [3
|
|
711
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
712
|
-
case "ConflictException": return [3
|
|
713
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3
|
|
714
|
-
case "ForbiddenException": return [3
|
|
715
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
716
|
-
case "InternalServerErrorException": return [3
|
|
717
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
718
|
-
case "TooManyRequestsException": return [3
|
|
719
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
720
|
-
}
|
|
721
|
-
return [3
|
|
710
|
+
case "BadRequestException": return [3, 2];
|
|
711
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
712
|
+
case "ConflictException": return [3, 4];
|
|
713
|
+
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3, 4];
|
|
714
|
+
case "ForbiddenException": return [3, 6];
|
|
715
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 6];
|
|
716
|
+
case "InternalServerErrorException": return [3, 8];
|
|
717
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 8];
|
|
718
|
+
case "TooManyRequestsException": return [3, 10];
|
|
719
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
720
|
+
}
|
|
721
|
+
return [3, 12];
|
|
722
722
|
case 2:
|
|
723
723
|
_c = [{}];
|
|
724
|
-
return [4
|
|
724
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
725
725
|
case 3:
|
|
726
726
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
727
|
-
return [3
|
|
727
|
+
return [3, 13];
|
|
728
728
|
case 4:
|
|
729
729
|
_d = [{}];
|
|
730
|
-
return [4
|
|
730
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
731
731
|
case 5:
|
|
732
732
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
733
|
-
return [3
|
|
733
|
+
return [3, 13];
|
|
734
734
|
case 6:
|
|
735
735
|
_e = [{}];
|
|
736
|
-
return [4
|
|
736
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
737
737
|
case 7:
|
|
738
738
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
739
|
-
return [3
|
|
739
|
+
return [3, 13];
|
|
740
740
|
case 8:
|
|
741
741
|
_f = [{}];
|
|
742
|
-
return [4
|
|
742
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
743
743
|
case 9:
|
|
744
744
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
745
|
-
return [3
|
|
745
|
+
return [3, 13];
|
|
746
746
|
case 10:
|
|
747
747
|
_g = [{}];
|
|
748
|
-
return [4
|
|
748
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
749
749
|
case 11:
|
|
750
750
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
751
|
-
return [3
|
|
751
|
+
return [3, 13];
|
|
752
752
|
case 12:
|
|
753
753
|
parsedBody = parsedOutput.body;
|
|
754
754
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -758,7 +758,7 @@ var deserializeAws_restJson1CreateApplicationVersionCommandError = function (out
|
|
|
758
758
|
message = response.message || response.Message || errorCode;
|
|
759
759
|
response.message = message;
|
|
760
760
|
delete response.Message;
|
|
761
|
-
return [2
|
|
761
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
}); };
|
|
@@ -768,7 +768,7 @@ export var deserializeAws_restJson1CreateCloudFormationChangeSetCommand = functi
|
|
|
768
768
|
switch (_c.label) {
|
|
769
769
|
case 0:
|
|
770
770
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
771
|
-
return [2
|
|
771
|
+
return [2, deserializeAws_restJson1CreateCloudFormationChangeSetCommandError(output, context)];
|
|
772
772
|
}
|
|
773
773
|
contents = {
|
|
774
774
|
$metadata: deserializeMetadata(output),
|
|
@@ -779,7 +779,7 @@ export var deserializeAws_restJson1CreateCloudFormationChangeSetCommand = functi
|
|
|
779
779
|
};
|
|
780
780
|
_a = __expectNonNull;
|
|
781
781
|
_b = __expectObject;
|
|
782
|
-
return [4
|
|
782
|
+
return [4, parseBody(output.body, context)];
|
|
783
783
|
case 1:
|
|
784
784
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
785
785
|
if (data.applicationId !== undefined && data.applicationId !== null) {
|
|
@@ -794,7 +794,7 @@ export var deserializeAws_restJson1CreateCloudFormationChangeSetCommand = functi
|
|
|
794
794
|
if (data.stackId !== undefined && data.stackId !== null) {
|
|
795
795
|
contents.StackId = __expectString(data.stackId);
|
|
796
796
|
}
|
|
797
|
-
return [2
|
|
797
|
+
return [2, Promise.resolve(contents)];
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
800
|
}); };
|
|
@@ -806,47 +806,47 @@ var deserializeAws_restJson1CreateCloudFormationChangeSetCommandError = function
|
|
|
806
806
|
case 0:
|
|
807
807
|
_a = [__assign({}, output)];
|
|
808
808
|
_g = {};
|
|
809
|
-
return [4
|
|
809
|
+
return [4, parseBody(output.body, context)];
|
|
810
810
|
case 1:
|
|
811
811
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
812
812
|
errorCode = "UnknownError";
|
|
813
813
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
814
814
|
_b = errorCode;
|
|
815
815
|
switch (_b) {
|
|
816
|
-
case "BadRequestException": return [3
|
|
817
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
818
|
-
case "ForbiddenException": return [3
|
|
819
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
820
|
-
case "InternalServerErrorException": return [3
|
|
821
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
822
|
-
case "TooManyRequestsException": return [3
|
|
823
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
824
|
-
}
|
|
825
|
-
return [3
|
|
816
|
+
case "BadRequestException": return [3, 2];
|
|
817
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
818
|
+
case "ForbiddenException": return [3, 4];
|
|
819
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
820
|
+
case "InternalServerErrorException": return [3, 6];
|
|
821
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
822
|
+
case "TooManyRequestsException": return [3, 8];
|
|
823
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 8];
|
|
824
|
+
}
|
|
825
|
+
return [3, 10];
|
|
826
826
|
case 2:
|
|
827
827
|
_c = [{}];
|
|
828
|
-
return [4
|
|
828
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
829
829
|
case 3:
|
|
830
830
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
831
|
-
return [3
|
|
831
|
+
return [3, 11];
|
|
832
832
|
case 4:
|
|
833
833
|
_d = [{}];
|
|
834
|
-
return [4
|
|
834
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
835
835
|
case 5:
|
|
836
836
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
837
|
-
return [3
|
|
837
|
+
return [3, 11];
|
|
838
838
|
case 6:
|
|
839
839
|
_e = [{}];
|
|
840
|
-
return [4
|
|
840
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
841
841
|
case 7:
|
|
842
842
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
843
|
-
return [3
|
|
843
|
+
return [3, 11];
|
|
844
844
|
case 8:
|
|
845
845
|
_f = [{}];
|
|
846
|
-
return [4
|
|
846
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
847
847
|
case 9:
|
|
848
848
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
849
|
-
return [3
|
|
849
|
+
return [3, 11];
|
|
850
850
|
case 10:
|
|
851
851
|
parsedBody = parsedOutput.body;
|
|
852
852
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -856,7 +856,7 @@ var deserializeAws_restJson1CreateCloudFormationChangeSetCommandError = function
|
|
|
856
856
|
message = response.message || response.Message || errorCode;
|
|
857
857
|
response.message = message;
|
|
858
858
|
delete response.Message;
|
|
859
|
-
return [2
|
|
859
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
860
860
|
}
|
|
861
861
|
});
|
|
862
862
|
}); };
|
|
@@ -866,7 +866,7 @@ export var deserializeAws_restJson1CreateCloudFormationTemplateCommand = functio
|
|
|
866
866
|
switch (_c.label) {
|
|
867
867
|
case 0:
|
|
868
868
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
869
|
-
return [2
|
|
869
|
+
return [2, deserializeAws_restJson1CreateCloudFormationTemplateCommandError(output, context)];
|
|
870
870
|
}
|
|
871
871
|
contents = {
|
|
872
872
|
$metadata: deserializeMetadata(output),
|
|
@@ -880,7 +880,7 @@ export var deserializeAws_restJson1CreateCloudFormationTemplateCommand = functio
|
|
|
880
880
|
};
|
|
881
881
|
_a = __expectNonNull;
|
|
882
882
|
_b = __expectObject;
|
|
883
|
-
return [4
|
|
883
|
+
return [4, parseBody(output.body, context)];
|
|
884
884
|
case 1:
|
|
885
885
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
886
886
|
if (data.applicationId !== undefined && data.applicationId !== null) {
|
|
@@ -904,7 +904,7 @@ export var deserializeAws_restJson1CreateCloudFormationTemplateCommand = functio
|
|
|
904
904
|
if (data.templateUrl !== undefined && data.templateUrl !== null) {
|
|
905
905
|
contents.TemplateUrl = __expectString(data.templateUrl);
|
|
906
906
|
}
|
|
907
|
-
return [2
|
|
907
|
+
return [2, Promise.resolve(contents)];
|
|
908
908
|
}
|
|
909
909
|
});
|
|
910
910
|
}); };
|
|
@@ -916,55 +916,55 @@ var deserializeAws_restJson1CreateCloudFormationTemplateCommandError = function
|
|
|
916
916
|
case 0:
|
|
917
917
|
_a = [__assign({}, output)];
|
|
918
918
|
_h = {};
|
|
919
|
-
return [4
|
|
919
|
+
return [4, parseBody(output.body, context)];
|
|
920
920
|
case 1:
|
|
921
921
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
922
922
|
errorCode = "UnknownError";
|
|
923
923
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
924
|
_b = errorCode;
|
|
925
925
|
switch (_b) {
|
|
926
|
-
case "BadRequestException": return [3
|
|
927
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
928
|
-
case "ForbiddenException": return [3
|
|
929
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
930
|
-
case "InternalServerErrorException": return [3
|
|
931
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
932
|
-
case "NotFoundException": return [3
|
|
933
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
934
|
-
case "TooManyRequestsException": return [3
|
|
935
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
936
|
-
}
|
|
937
|
-
return [3
|
|
926
|
+
case "BadRequestException": return [3, 2];
|
|
927
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
928
|
+
case "ForbiddenException": return [3, 4];
|
|
929
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
930
|
+
case "InternalServerErrorException": return [3, 6];
|
|
931
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
932
|
+
case "NotFoundException": return [3, 8];
|
|
933
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
934
|
+
case "TooManyRequestsException": return [3, 10];
|
|
935
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
936
|
+
}
|
|
937
|
+
return [3, 12];
|
|
938
938
|
case 2:
|
|
939
939
|
_c = [{}];
|
|
940
|
-
return [4
|
|
940
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
941
941
|
case 3:
|
|
942
942
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
943
|
-
return [3
|
|
943
|
+
return [3, 13];
|
|
944
944
|
case 4:
|
|
945
945
|
_d = [{}];
|
|
946
|
-
return [4
|
|
946
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
947
947
|
case 5:
|
|
948
948
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
949
|
-
return [3
|
|
949
|
+
return [3, 13];
|
|
950
950
|
case 6:
|
|
951
951
|
_e = [{}];
|
|
952
|
-
return [4
|
|
952
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
953
953
|
case 7:
|
|
954
954
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
955
|
-
return [3
|
|
955
|
+
return [3, 13];
|
|
956
956
|
case 8:
|
|
957
957
|
_f = [{}];
|
|
958
|
-
return [4
|
|
958
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
959
959
|
case 9:
|
|
960
960
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
961
|
-
return [3
|
|
961
|
+
return [3, 13];
|
|
962
962
|
case 10:
|
|
963
963
|
_g = [{}];
|
|
964
|
-
return [4
|
|
964
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
965
965
|
case 11:
|
|
966
966
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
967
|
-
return [3
|
|
967
|
+
return [3, 13];
|
|
968
968
|
case 12:
|
|
969
969
|
parsedBody = parsedOutput.body;
|
|
970
970
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -974,7 +974,7 @@ var deserializeAws_restJson1CreateCloudFormationTemplateCommandError = function
|
|
|
974
974
|
message = response.message || response.Message || errorCode;
|
|
975
975
|
response.message = message;
|
|
976
976
|
delete response.Message;
|
|
977
|
-
return [2
|
|
977
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
978
978
|
}
|
|
979
979
|
});
|
|
980
980
|
}); };
|
|
@@ -984,15 +984,15 @@ export var deserializeAws_restJson1DeleteApplicationCommand = function (output,
|
|
|
984
984
|
switch (_a.label) {
|
|
985
985
|
case 0:
|
|
986
986
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
987
|
-
return [2
|
|
987
|
+
return [2, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
|
|
988
988
|
}
|
|
989
989
|
contents = {
|
|
990
990
|
$metadata: deserializeMetadata(output),
|
|
991
991
|
};
|
|
992
|
-
return [4
|
|
992
|
+
return [4, collectBody(output.body, context)];
|
|
993
993
|
case 1:
|
|
994
994
|
_a.sent();
|
|
995
|
-
return [2
|
|
995
|
+
return [2, Promise.resolve(contents)];
|
|
996
996
|
}
|
|
997
997
|
});
|
|
998
998
|
}); };
|
|
@@ -1004,63 +1004,63 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
1004
1004
|
case 0:
|
|
1005
1005
|
_a = [__assign({}, output)];
|
|
1006
1006
|
_j = {};
|
|
1007
|
-
return [4
|
|
1007
|
+
return [4, parseBody(output.body, context)];
|
|
1008
1008
|
case 1:
|
|
1009
1009
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1010
1010
|
errorCode = "UnknownError";
|
|
1011
1011
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1012
1012
|
_b = errorCode;
|
|
1013
1013
|
switch (_b) {
|
|
1014
|
-
case "BadRequestException": return [3
|
|
1015
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1016
|
-
case "ConflictException": return [3
|
|
1017
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3
|
|
1018
|
-
case "ForbiddenException": return [3
|
|
1019
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1020
|
-
case "InternalServerErrorException": return [3
|
|
1021
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1022
|
-
case "NotFoundException": return [3
|
|
1023
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1024
|
-
case "TooManyRequestsException": return [3
|
|
1025
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1026
|
-
}
|
|
1027
|
-
return [3
|
|
1014
|
+
case "BadRequestException": return [3, 2];
|
|
1015
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1016
|
+
case "ConflictException": return [3, 4];
|
|
1017
|
+
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3, 4];
|
|
1018
|
+
case "ForbiddenException": return [3, 6];
|
|
1019
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 6];
|
|
1020
|
+
case "InternalServerErrorException": return [3, 8];
|
|
1021
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 8];
|
|
1022
|
+
case "NotFoundException": return [3, 10];
|
|
1023
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 10];
|
|
1024
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1025
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 12];
|
|
1026
|
+
}
|
|
1027
|
+
return [3, 14];
|
|
1028
1028
|
case 2:
|
|
1029
1029
|
_c = [{}];
|
|
1030
|
-
return [4
|
|
1030
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1031
1031
|
case 3:
|
|
1032
1032
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1033
|
-
return [3
|
|
1033
|
+
return [3, 15];
|
|
1034
1034
|
case 4:
|
|
1035
1035
|
_d = [{}];
|
|
1036
|
-
return [4
|
|
1036
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1037
1037
|
case 5:
|
|
1038
1038
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1039
|
-
return [3
|
|
1039
|
+
return [3, 15];
|
|
1040
1040
|
case 6:
|
|
1041
1041
|
_e = [{}];
|
|
1042
|
-
return [4
|
|
1042
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1043
1043
|
case 7:
|
|
1044
1044
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1045
|
-
return [3
|
|
1045
|
+
return [3, 15];
|
|
1046
1046
|
case 8:
|
|
1047
1047
|
_f = [{}];
|
|
1048
|
-
return [4
|
|
1048
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1049
1049
|
case 9:
|
|
1050
1050
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1051
|
-
return [3
|
|
1051
|
+
return [3, 15];
|
|
1052
1052
|
case 10:
|
|
1053
1053
|
_g = [{}];
|
|
1054
|
-
return [4
|
|
1054
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1055
1055
|
case 11:
|
|
1056
1056
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1057
|
-
return [3
|
|
1057
|
+
return [3, 15];
|
|
1058
1058
|
case 12:
|
|
1059
1059
|
_h = [{}];
|
|
1060
|
-
return [4
|
|
1060
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1061
1061
|
case 13:
|
|
1062
1062
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1063
|
-
return [3
|
|
1063
|
+
return [3, 15];
|
|
1064
1064
|
case 14:
|
|
1065
1065
|
parsedBody = parsedOutput.body;
|
|
1066
1066
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1070,7 +1070,7 @@ var deserializeAws_restJson1DeleteApplicationCommandError = function (output, co
|
|
|
1070
1070
|
message = response.message || response.Message || errorCode;
|
|
1071
1071
|
response.message = message;
|
|
1072
1072
|
delete response.Message;
|
|
1073
|
-
return [2
|
|
1073
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1074
1074
|
}
|
|
1075
1075
|
});
|
|
1076
1076
|
}); };
|
|
@@ -1080,7 +1080,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
1080
1080
|
switch (_c.label) {
|
|
1081
1081
|
case 0:
|
|
1082
1082
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1083
|
-
return [2
|
|
1083
|
+
return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
|
|
1084
1084
|
}
|
|
1085
1085
|
contents = {
|
|
1086
1086
|
$metadata: deserializeMetadata(output),
|
|
@@ -1100,7 +1100,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
1100
1100
|
};
|
|
1101
1101
|
_a = __expectNonNull;
|
|
1102
1102
|
_b = __expectObject;
|
|
1103
|
-
return [4
|
|
1103
|
+
return [4, parseBody(output.body, context)];
|
|
1104
1104
|
case 1:
|
|
1105
1105
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1106
1106
|
if (data.applicationId !== undefined && data.applicationId !== null) {
|
|
@@ -1142,7 +1142,7 @@ export var deserializeAws_restJson1GetApplicationCommand = function (output, con
|
|
|
1142
1142
|
if (data.version !== undefined && data.version !== null) {
|
|
1143
1143
|
contents.Version = deserializeAws_restJson1Version(data.version, context);
|
|
1144
1144
|
}
|
|
1145
|
-
return [2
|
|
1145
|
+
return [2, Promise.resolve(contents)];
|
|
1146
1146
|
}
|
|
1147
1147
|
});
|
|
1148
1148
|
}); };
|
|
@@ -1154,55 +1154,55 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
1154
1154
|
case 0:
|
|
1155
1155
|
_a = [__assign({}, output)];
|
|
1156
1156
|
_h = {};
|
|
1157
|
-
return [4
|
|
1157
|
+
return [4, parseBody(output.body, context)];
|
|
1158
1158
|
case 1:
|
|
1159
1159
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1160
1160
|
errorCode = "UnknownError";
|
|
1161
1161
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
1162
|
_b = errorCode;
|
|
1163
1163
|
switch (_b) {
|
|
1164
|
-
case "BadRequestException": return [3
|
|
1165
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1166
|
-
case "ForbiddenException": return [3
|
|
1167
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1168
|
-
case "InternalServerErrorException": return [3
|
|
1169
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1170
|
-
case "NotFoundException": return [3
|
|
1171
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1172
|
-
case "TooManyRequestsException": return [3
|
|
1173
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1174
|
-
}
|
|
1175
|
-
return [3
|
|
1164
|
+
case "BadRequestException": return [3, 2];
|
|
1165
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1166
|
+
case "ForbiddenException": return [3, 4];
|
|
1167
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1168
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1169
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1170
|
+
case "NotFoundException": return [3, 8];
|
|
1171
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1172
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1173
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
1174
|
+
}
|
|
1175
|
+
return [3, 12];
|
|
1176
1176
|
case 2:
|
|
1177
1177
|
_c = [{}];
|
|
1178
|
-
return [4
|
|
1178
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1179
1179
|
case 3:
|
|
1180
1180
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1181
|
-
return [3
|
|
1181
|
+
return [3, 13];
|
|
1182
1182
|
case 4:
|
|
1183
1183
|
_d = [{}];
|
|
1184
|
-
return [4
|
|
1184
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1185
1185
|
case 5:
|
|
1186
1186
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1187
|
-
return [3
|
|
1187
|
+
return [3, 13];
|
|
1188
1188
|
case 6:
|
|
1189
1189
|
_e = [{}];
|
|
1190
|
-
return [4
|
|
1190
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1191
1191
|
case 7:
|
|
1192
1192
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1193
|
-
return [3
|
|
1193
|
+
return [3, 13];
|
|
1194
1194
|
case 8:
|
|
1195
1195
|
_f = [{}];
|
|
1196
|
-
return [4
|
|
1196
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1197
1197
|
case 9:
|
|
1198
1198
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1199
|
-
return [3
|
|
1199
|
+
return [3, 13];
|
|
1200
1200
|
case 10:
|
|
1201
1201
|
_g = [{}];
|
|
1202
|
-
return [4
|
|
1202
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1203
1203
|
case 11:
|
|
1204
1204
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1205
|
-
return [3
|
|
1205
|
+
return [3, 13];
|
|
1206
1206
|
case 12:
|
|
1207
1207
|
parsedBody = parsedOutput.body;
|
|
1208
1208
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1212,7 +1212,7 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
1212
1212
|
message = response.message || response.Message || errorCode;
|
|
1213
1213
|
response.message = message;
|
|
1214
1214
|
delete response.Message;
|
|
1215
|
-
return [2
|
|
1215
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1216
1216
|
}
|
|
1217
1217
|
});
|
|
1218
1218
|
}); };
|
|
@@ -1222,7 +1222,7 @@ export var deserializeAws_restJson1GetApplicationPolicyCommand = function (outpu
|
|
|
1222
1222
|
switch (_c.label) {
|
|
1223
1223
|
case 0:
|
|
1224
1224
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1225
|
-
return [2
|
|
1225
|
+
return [2, deserializeAws_restJson1GetApplicationPolicyCommandError(output, context)];
|
|
1226
1226
|
}
|
|
1227
1227
|
contents = {
|
|
1228
1228
|
$metadata: deserializeMetadata(output),
|
|
@@ -1230,13 +1230,13 @@ export var deserializeAws_restJson1GetApplicationPolicyCommand = function (outpu
|
|
|
1230
1230
|
};
|
|
1231
1231
|
_a = __expectNonNull;
|
|
1232
1232
|
_b = __expectObject;
|
|
1233
|
-
return [4
|
|
1233
|
+
return [4, parseBody(output.body, context)];
|
|
1234
1234
|
case 1:
|
|
1235
1235
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1236
1236
|
if (data.statements !== undefined && data.statements !== null) {
|
|
1237
1237
|
contents.Statements = deserializeAws_restJson1__listOfApplicationPolicyStatement(data.statements, context);
|
|
1238
1238
|
}
|
|
1239
|
-
return [2
|
|
1239
|
+
return [2, Promise.resolve(contents)];
|
|
1240
1240
|
}
|
|
1241
1241
|
});
|
|
1242
1242
|
}); };
|
|
@@ -1248,55 +1248,55 @@ var deserializeAws_restJson1GetApplicationPolicyCommandError = function (output,
|
|
|
1248
1248
|
case 0:
|
|
1249
1249
|
_a = [__assign({}, output)];
|
|
1250
1250
|
_h = {};
|
|
1251
|
-
return [4
|
|
1251
|
+
return [4, parseBody(output.body, context)];
|
|
1252
1252
|
case 1:
|
|
1253
1253
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1254
1254
|
errorCode = "UnknownError";
|
|
1255
1255
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
1256
|
_b = errorCode;
|
|
1257
1257
|
switch (_b) {
|
|
1258
|
-
case "BadRequestException": return [3
|
|
1259
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1260
|
-
case "ForbiddenException": return [3
|
|
1261
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1262
|
-
case "InternalServerErrorException": return [3
|
|
1263
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1264
|
-
case "NotFoundException": return [3
|
|
1265
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1266
|
-
case "TooManyRequestsException": return [3
|
|
1267
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1268
|
-
}
|
|
1269
|
-
return [3
|
|
1258
|
+
case "BadRequestException": return [3, 2];
|
|
1259
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1260
|
+
case "ForbiddenException": return [3, 4];
|
|
1261
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1262
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1263
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1264
|
+
case "NotFoundException": return [3, 8];
|
|
1265
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1266
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1267
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
1268
|
+
}
|
|
1269
|
+
return [3, 12];
|
|
1270
1270
|
case 2:
|
|
1271
1271
|
_c = [{}];
|
|
1272
|
-
return [4
|
|
1272
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1273
1273
|
case 3:
|
|
1274
1274
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1275
|
-
return [3
|
|
1275
|
+
return [3, 13];
|
|
1276
1276
|
case 4:
|
|
1277
1277
|
_d = [{}];
|
|
1278
|
-
return [4
|
|
1278
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1279
1279
|
case 5:
|
|
1280
1280
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1281
|
-
return [3
|
|
1281
|
+
return [3, 13];
|
|
1282
1282
|
case 6:
|
|
1283
1283
|
_e = [{}];
|
|
1284
|
-
return [4
|
|
1284
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1285
1285
|
case 7:
|
|
1286
1286
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1287
|
-
return [3
|
|
1287
|
+
return [3, 13];
|
|
1288
1288
|
case 8:
|
|
1289
1289
|
_f = [{}];
|
|
1290
|
-
return [4
|
|
1290
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1291
1291
|
case 9:
|
|
1292
1292
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1293
|
-
return [3
|
|
1293
|
+
return [3, 13];
|
|
1294
1294
|
case 10:
|
|
1295
1295
|
_g = [{}];
|
|
1296
|
-
return [4
|
|
1296
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1297
1297
|
case 11:
|
|
1298
1298
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1299
|
-
return [3
|
|
1299
|
+
return [3, 13];
|
|
1300
1300
|
case 12:
|
|
1301
1301
|
parsedBody = parsedOutput.body;
|
|
1302
1302
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1306,7 +1306,7 @@ var deserializeAws_restJson1GetApplicationPolicyCommandError = function (output,
|
|
|
1306
1306
|
message = response.message || response.Message || errorCode;
|
|
1307
1307
|
response.message = message;
|
|
1308
1308
|
delete response.Message;
|
|
1309
|
-
return [2
|
|
1309
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1310
1310
|
}
|
|
1311
1311
|
});
|
|
1312
1312
|
}); };
|
|
@@ -1316,7 +1316,7 @@ export var deserializeAws_restJson1GetCloudFormationTemplateCommand = function (
|
|
|
1316
1316
|
switch (_c.label) {
|
|
1317
1317
|
case 0:
|
|
1318
1318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1319
|
-
return [2
|
|
1319
|
+
return [2, deserializeAws_restJson1GetCloudFormationTemplateCommandError(output, context)];
|
|
1320
1320
|
}
|
|
1321
1321
|
contents = {
|
|
1322
1322
|
$metadata: deserializeMetadata(output),
|
|
@@ -1330,7 +1330,7 @@ export var deserializeAws_restJson1GetCloudFormationTemplateCommand = function (
|
|
|
1330
1330
|
};
|
|
1331
1331
|
_a = __expectNonNull;
|
|
1332
1332
|
_b = __expectObject;
|
|
1333
|
-
return [4
|
|
1333
|
+
return [4, parseBody(output.body, context)];
|
|
1334
1334
|
case 1:
|
|
1335
1335
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1336
1336
|
if (data.applicationId !== undefined && data.applicationId !== null) {
|
|
@@ -1354,7 +1354,7 @@ export var deserializeAws_restJson1GetCloudFormationTemplateCommand = function (
|
|
|
1354
1354
|
if (data.templateUrl !== undefined && data.templateUrl !== null) {
|
|
1355
1355
|
contents.TemplateUrl = __expectString(data.templateUrl);
|
|
1356
1356
|
}
|
|
1357
|
-
return [2
|
|
1357
|
+
return [2, Promise.resolve(contents)];
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
1360
|
}); };
|
|
@@ -1366,55 +1366,55 @@ var deserializeAws_restJson1GetCloudFormationTemplateCommandError = function (ou
|
|
|
1366
1366
|
case 0:
|
|
1367
1367
|
_a = [__assign({}, output)];
|
|
1368
1368
|
_h = {};
|
|
1369
|
-
return [4
|
|
1369
|
+
return [4, parseBody(output.body, context)];
|
|
1370
1370
|
case 1:
|
|
1371
1371
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1372
1372
|
errorCode = "UnknownError";
|
|
1373
1373
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
1374
|
_b = errorCode;
|
|
1375
1375
|
switch (_b) {
|
|
1376
|
-
case "BadRequestException": return [3
|
|
1377
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1378
|
-
case "ForbiddenException": return [3
|
|
1379
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1380
|
-
case "InternalServerErrorException": return [3
|
|
1381
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1382
|
-
case "NotFoundException": return [3
|
|
1383
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1384
|
-
case "TooManyRequestsException": return [3
|
|
1385
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1386
|
-
}
|
|
1387
|
-
return [3
|
|
1376
|
+
case "BadRequestException": return [3, 2];
|
|
1377
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1378
|
+
case "ForbiddenException": return [3, 4];
|
|
1379
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1380
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1381
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1382
|
+
case "NotFoundException": return [3, 8];
|
|
1383
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1384
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1385
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
1386
|
+
}
|
|
1387
|
+
return [3, 12];
|
|
1388
1388
|
case 2:
|
|
1389
1389
|
_c = [{}];
|
|
1390
|
-
return [4
|
|
1390
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1391
1391
|
case 3:
|
|
1392
1392
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1393
|
-
return [3
|
|
1393
|
+
return [3, 13];
|
|
1394
1394
|
case 4:
|
|
1395
1395
|
_d = [{}];
|
|
1396
|
-
return [4
|
|
1396
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1397
1397
|
case 5:
|
|
1398
1398
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1399
|
-
return [3
|
|
1399
|
+
return [3, 13];
|
|
1400
1400
|
case 6:
|
|
1401
1401
|
_e = [{}];
|
|
1402
|
-
return [4
|
|
1402
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1403
1403
|
case 7:
|
|
1404
1404
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1405
|
-
return [3
|
|
1405
|
+
return [3, 13];
|
|
1406
1406
|
case 8:
|
|
1407
1407
|
_f = [{}];
|
|
1408
|
-
return [4
|
|
1408
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1409
1409
|
case 9:
|
|
1410
1410
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1411
|
-
return [3
|
|
1411
|
+
return [3, 13];
|
|
1412
1412
|
case 10:
|
|
1413
1413
|
_g = [{}];
|
|
1414
|
-
return [4
|
|
1414
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1415
1415
|
case 11:
|
|
1416
1416
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1417
|
-
return [3
|
|
1417
|
+
return [3, 13];
|
|
1418
1418
|
case 12:
|
|
1419
1419
|
parsedBody = parsedOutput.body;
|
|
1420
1420
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1424,7 +1424,7 @@ var deserializeAws_restJson1GetCloudFormationTemplateCommandError = function (ou
|
|
|
1424
1424
|
message = response.message || response.Message || errorCode;
|
|
1425
1425
|
response.message = message;
|
|
1426
1426
|
delete response.Message;
|
|
1427
|
-
return [2
|
|
1427
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1428
1428
|
}
|
|
1429
1429
|
});
|
|
1430
1430
|
}); };
|
|
@@ -1434,7 +1434,7 @@ export var deserializeAws_restJson1ListApplicationDependenciesCommand = function
|
|
|
1434
1434
|
switch (_c.label) {
|
|
1435
1435
|
case 0:
|
|
1436
1436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1437
|
-
return [2
|
|
1437
|
+
return [2, deserializeAws_restJson1ListApplicationDependenciesCommandError(output, context)];
|
|
1438
1438
|
}
|
|
1439
1439
|
contents = {
|
|
1440
1440
|
$metadata: deserializeMetadata(output),
|
|
@@ -1443,7 +1443,7 @@ export var deserializeAws_restJson1ListApplicationDependenciesCommand = function
|
|
|
1443
1443
|
};
|
|
1444
1444
|
_a = __expectNonNull;
|
|
1445
1445
|
_b = __expectObject;
|
|
1446
|
-
return [4
|
|
1446
|
+
return [4, parseBody(output.body, context)];
|
|
1447
1447
|
case 1:
|
|
1448
1448
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1449
1449
|
if (data.dependencies !== undefined && data.dependencies !== null) {
|
|
@@ -1452,7 +1452,7 @@ export var deserializeAws_restJson1ListApplicationDependenciesCommand = function
|
|
|
1452
1452
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1453
1453
|
contents.NextToken = __expectString(data.nextToken);
|
|
1454
1454
|
}
|
|
1455
|
-
return [2
|
|
1455
|
+
return [2, Promise.resolve(contents)];
|
|
1456
1456
|
}
|
|
1457
1457
|
});
|
|
1458
1458
|
}); };
|
|
@@ -1464,55 +1464,55 @@ var deserializeAws_restJson1ListApplicationDependenciesCommandError = function (
|
|
|
1464
1464
|
case 0:
|
|
1465
1465
|
_a = [__assign({}, output)];
|
|
1466
1466
|
_h = {};
|
|
1467
|
-
return [4
|
|
1467
|
+
return [4, parseBody(output.body, context)];
|
|
1468
1468
|
case 1:
|
|
1469
1469
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1470
1470
|
errorCode = "UnknownError";
|
|
1471
1471
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1472
1472
|
_b = errorCode;
|
|
1473
1473
|
switch (_b) {
|
|
1474
|
-
case "BadRequestException": return [3
|
|
1475
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1476
|
-
case "ForbiddenException": return [3
|
|
1477
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1478
|
-
case "InternalServerErrorException": return [3
|
|
1479
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1480
|
-
case "NotFoundException": return [3
|
|
1481
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1482
|
-
case "TooManyRequestsException": return [3
|
|
1483
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1484
|
-
}
|
|
1485
|
-
return [3
|
|
1474
|
+
case "BadRequestException": return [3, 2];
|
|
1475
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1476
|
+
case "ForbiddenException": return [3, 4];
|
|
1477
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1478
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1479
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1480
|
+
case "NotFoundException": return [3, 8];
|
|
1481
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1482
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1483
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
1484
|
+
}
|
|
1485
|
+
return [3, 12];
|
|
1486
1486
|
case 2:
|
|
1487
1487
|
_c = [{}];
|
|
1488
|
-
return [4
|
|
1488
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1489
1489
|
case 3:
|
|
1490
1490
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1491
|
-
return [3
|
|
1491
|
+
return [3, 13];
|
|
1492
1492
|
case 4:
|
|
1493
1493
|
_d = [{}];
|
|
1494
|
-
return [4
|
|
1494
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1495
1495
|
case 5:
|
|
1496
1496
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1497
|
-
return [3
|
|
1497
|
+
return [3, 13];
|
|
1498
1498
|
case 6:
|
|
1499
1499
|
_e = [{}];
|
|
1500
|
-
return [4
|
|
1500
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1501
1501
|
case 7:
|
|
1502
1502
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1503
|
-
return [3
|
|
1503
|
+
return [3, 13];
|
|
1504
1504
|
case 8:
|
|
1505
1505
|
_f = [{}];
|
|
1506
|
-
return [4
|
|
1506
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1507
1507
|
case 9:
|
|
1508
1508
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1509
|
-
return [3
|
|
1509
|
+
return [3, 13];
|
|
1510
1510
|
case 10:
|
|
1511
1511
|
_g = [{}];
|
|
1512
|
-
return [4
|
|
1512
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1513
1513
|
case 11:
|
|
1514
1514
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1515
|
-
return [3
|
|
1515
|
+
return [3, 13];
|
|
1516
1516
|
case 12:
|
|
1517
1517
|
parsedBody = parsedOutput.body;
|
|
1518
1518
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1522,7 +1522,7 @@ var deserializeAws_restJson1ListApplicationDependenciesCommandError = function (
|
|
|
1522
1522
|
message = response.message || response.Message || errorCode;
|
|
1523
1523
|
response.message = message;
|
|
1524
1524
|
delete response.Message;
|
|
1525
|
-
return [2
|
|
1525
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1526
1526
|
}
|
|
1527
1527
|
});
|
|
1528
1528
|
}); };
|
|
@@ -1532,7 +1532,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
1532
1532
|
switch (_c.label) {
|
|
1533
1533
|
case 0:
|
|
1534
1534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1535
|
-
return [2
|
|
1535
|
+
return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
|
|
1536
1536
|
}
|
|
1537
1537
|
contents = {
|
|
1538
1538
|
$metadata: deserializeMetadata(output),
|
|
@@ -1541,7 +1541,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
1541
1541
|
};
|
|
1542
1542
|
_a = __expectNonNull;
|
|
1543
1543
|
_b = __expectObject;
|
|
1544
|
-
return [4
|
|
1544
|
+
return [4, parseBody(output.body, context)];
|
|
1545
1545
|
case 1:
|
|
1546
1546
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1547
1547
|
if (data.applications !== undefined && data.applications !== null) {
|
|
@@ -1550,7 +1550,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
1550
1550
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1551
1551
|
contents.NextToken = __expectString(data.nextToken);
|
|
1552
1552
|
}
|
|
1553
|
-
return [2
|
|
1553
|
+
return [2, Promise.resolve(contents)];
|
|
1554
1554
|
}
|
|
1555
1555
|
});
|
|
1556
1556
|
}); };
|
|
@@ -1562,47 +1562,47 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
1562
1562
|
case 0:
|
|
1563
1563
|
_a = [__assign({}, output)];
|
|
1564
1564
|
_g = {};
|
|
1565
|
-
return [4
|
|
1565
|
+
return [4, parseBody(output.body, context)];
|
|
1566
1566
|
case 1:
|
|
1567
1567
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1568
1568
|
errorCode = "UnknownError";
|
|
1569
1569
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1570
1570
|
_b = errorCode;
|
|
1571
1571
|
switch (_b) {
|
|
1572
|
-
case "BadRequestException": return [3
|
|
1573
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1574
|
-
case "ForbiddenException": return [3
|
|
1575
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1576
|
-
case "InternalServerErrorException": return [3
|
|
1577
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1578
|
-
case "NotFoundException": return [3
|
|
1579
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1580
|
-
}
|
|
1581
|
-
return [3
|
|
1572
|
+
case "BadRequestException": return [3, 2];
|
|
1573
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1574
|
+
case "ForbiddenException": return [3, 4];
|
|
1575
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1576
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1577
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1578
|
+
case "NotFoundException": return [3, 8];
|
|
1579
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1580
|
+
}
|
|
1581
|
+
return [3, 10];
|
|
1582
1582
|
case 2:
|
|
1583
1583
|
_c = [{}];
|
|
1584
|
-
return [4
|
|
1584
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1585
1585
|
case 3:
|
|
1586
1586
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1587
|
-
return [3
|
|
1587
|
+
return [3, 11];
|
|
1588
1588
|
case 4:
|
|
1589
1589
|
_d = [{}];
|
|
1590
|
-
return [4
|
|
1590
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1591
1591
|
case 5:
|
|
1592
1592
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1593
|
-
return [3
|
|
1593
|
+
return [3, 11];
|
|
1594
1594
|
case 6:
|
|
1595
1595
|
_e = [{}];
|
|
1596
|
-
return [4
|
|
1596
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1597
1597
|
case 7:
|
|
1598
1598
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1599
|
-
return [3
|
|
1599
|
+
return [3, 11];
|
|
1600
1600
|
case 8:
|
|
1601
1601
|
_f = [{}];
|
|
1602
|
-
return [4
|
|
1602
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1603
1603
|
case 9:
|
|
1604
1604
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1605
|
-
return [3
|
|
1605
|
+
return [3, 11];
|
|
1606
1606
|
case 10:
|
|
1607
1607
|
parsedBody = parsedOutput.body;
|
|
1608
1608
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1612,7 +1612,7 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
1612
1612
|
message = response.message || response.Message || errorCode;
|
|
1613
1613
|
response.message = message;
|
|
1614
1614
|
delete response.Message;
|
|
1615
|
-
return [2
|
|
1615
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1616
1616
|
}
|
|
1617
1617
|
});
|
|
1618
1618
|
}); };
|
|
@@ -1622,7 +1622,7 @@ export var deserializeAws_restJson1ListApplicationVersionsCommand = function (ou
|
|
|
1622
1622
|
switch (_c.label) {
|
|
1623
1623
|
case 0:
|
|
1624
1624
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1625
|
-
return [2
|
|
1625
|
+
return [2, deserializeAws_restJson1ListApplicationVersionsCommandError(output, context)];
|
|
1626
1626
|
}
|
|
1627
1627
|
contents = {
|
|
1628
1628
|
$metadata: deserializeMetadata(output),
|
|
@@ -1631,7 +1631,7 @@ export var deserializeAws_restJson1ListApplicationVersionsCommand = function (ou
|
|
|
1631
1631
|
};
|
|
1632
1632
|
_a = __expectNonNull;
|
|
1633
1633
|
_b = __expectObject;
|
|
1634
|
-
return [4
|
|
1634
|
+
return [4, parseBody(output.body, context)];
|
|
1635
1635
|
case 1:
|
|
1636
1636
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1637
1637
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
@@ -1640,7 +1640,7 @@ export var deserializeAws_restJson1ListApplicationVersionsCommand = function (ou
|
|
|
1640
1640
|
if (data.versions !== undefined && data.versions !== null) {
|
|
1641
1641
|
contents.Versions = deserializeAws_restJson1__listOfVersionSummary(data.versions, context);
|
|
1642
1642
|
}
|
|
1643
|
-
return [2
|
|
1643
|
+
return [2, Promise.resolve(contents)];
|
|
1644
1644
|
}
|
|
1645
1645
|
});
|
|
1646
1646
|
}); };
|
|
@@ -1652,55 +1652,55 @@ var deserializeAws_restJson1ListApplicationVersionsCommandError = function (outp
|
|
|
1652
1652
|
case 0:
|
|
1653
1653
|
_a = [__assign({}, output)];
|
|
1654
1654
|
_h = {};
|
|
1655
|
-
return [4
|
|
1655
|
+
return [4, parseBody(output.body, context)];
|
|
1656
1656
|
case 1:
|
|
1657
1657
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1658
1658
|
errorCode = "UnknownError";
|
|
1659
1659
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
1660
|
_b = errorCode;
|
|
1661
1661
|
switch (_b) {
|
|
1662
|
-
case "BadRequestException": return [3
|
|
1663
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1664
|
-
case "ForbiddenException": return [3
|
|
1665
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1666
|
-
case "InternalServerErrorException": return [3
|
|
1667
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1668
|
-
case "NotFoundException": return [3
|
|
1669
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1670
|
-
case "TooManyRequestsException": return [3
|
|
1671
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1672
|
-
}
|
|
1673
|
-
return [3
|
|
1662
|
+
case "BadRequestException": return [3, 2];
|
|
1663
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1664
|
+
case "ForbiddenException": return [3, 4];
|
|
1665
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1666
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1667
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1668
|
+
case "NotFoundException": return [3, 8];
|
|
1669
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1670
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1671
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
1672
|
+
}
|
|
1673
|
+
return [3, 12];
|
|
1674
1674
|
case 2:
|
|
1675
1675
|
_c = [{}];
|
|
1676
|
-
return [4
|
|
1676
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1677
1677
|
case 3:
|
|
1678
1678
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1679
|
-
return [3
|
|
1679
|
+
return [3, 13];
|
|
1680
1680
|
case 4:
|
|
1681
1681
|
_d = [{}];
|
|
1682
|
-
return [4
|
|
1682
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1683
1683
|
case 5:
|
|
1684
1684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1685
|
-
return [3
|
|
1685
|
+
return [3, 13];
|
|
1686
1686
|
case 6:
|
|
1687
1687
|
_e = [{}];
|
|
1688
|
-
return [4
|
|
1688
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1689
1689
|
case 7:
|
|
1690
1690
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1691
|
-
return [3
|
|
1691
|
+
return [3, 13];
|
|
1692
1692
|
case 8:
|
|
1693
1693
|
_f = [{}];
|
|
1694
|
-
return [4
|
|
1694
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1695
1695
|
case 9:
|
|
1696
1696
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1697
|
-
return [3
|
|
1697
|
+
return [3, 13];
|
|
1698
1698
|
case 10:
|
|
1699
1699
|
_g = [{}];
|
|
1700
|
-
return [4
|
|
1700
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1701
1701
|
case 11:
|
|
1702
1702
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
|
-
return [3
|
|
1703
|
+
return [3, 13];
|
|
1704
1704
|
case 12:
|
|
1705
1705
|
parsedBody = parsedOutput.body;
|
|
1706
1706
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1710,7 +1710,7 @@ var deserializeAws_restJson1ListApplicationVersionsCommandError = function (outp
|
|
|
1710
1710
|
message = response.message || response.Message || errorCode;
|
|
1711
1711
|
response.message = message;
|
|
1712
1712
|
delete response.Message;
|
|
1713
|
-
return [2
|
|
1713
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1714
1714
|
}
|
|
1715
1715
|
});
|
|
1716
1716
|
}); };
|
|
@@ -1720,7 +1720,7 @@ export var deserializeAws_restJson1PutApplicationPolicyCommand = function (outpu
|
|
|
1720
1720
|
switch (_c.label) {
|
|
1721
1721
|
case 0:
|
|
1722
1722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1723
|
-
return [2
|
|
1723
|
+
return [2, deserializeAws_restJson1PutApplicationPolicyCommandError(output, context)];
|
|
1724
1724
|
}
|
|
1725
1725
|
contents = {
|
|
1726
1726
|
$metadata: deserializeMetadata(output),
|
|
@@ -1728,13 +1728,13 @@ export var deserializeAws_restJson1PutApplicationPolicyCommand = function (outpu
|
|
|
1728
1728
|
};
|
|
1729
1729
|
_a = __expectNonNull;
|
|
1730
1730
|
_b = __expectObject;
|
|
1731
|
-
return [4
|
|
1731
|
+
return [4, parseBody(output.body, context)];
|
|
1732
1732
|
case 1:
|
|
1733
1733
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1734
1734
|
if (data.statements !== undefined && data.statements !== null) {
|
|
1735
1735
|
contents.Statements = deserializeAws_restJson1__listOfApplicationPolicyStatement(data.statements, context);
|
|
1736
1736
|
}
|
|
1737
|
-
return [2
|
|
1737
|
+
return [2, Promise.resolve(contents)];
|
|
1738
1738
|
}
|
|
1739
1739
|
});
|
|
1740
1740
|
}); };
|
|
@@ -1746,55 +1746,55 @@ var deserializeAws_restJson1PutApplicationPolicyCommandError = function (output,
|
|
|
1746
1746
|
case 0:
|
|
1747
1747
|
_a = [__assign({}, output)];
|
|
1748
1748
|
_h = {};
|
|
1749
|
-
return [4
|
|
1749
|
+
return [4, parseBody(output.body, context)];
|
|
1750
1750
|
case 1:
|
|
1751
1751
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1752
1752
|
errorCode = "UnknownError";
|
|
1753
1753
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
1754
|
_b = errorCode;
|
|
1755
1755
|
switch (_b) {
|
|
1756
|
-
case "BadRequestException": return [3
|
|
1757
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1758
|
-
case "ForbiddenException": return [3
|
|
1759
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1760
|
-
case "InternalServerErrorException": return [3
|
|
1761
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1762
|
-
case "NotFoundException": return [3
|
|
1763
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1764
|
-
case "TooManyRequestsException": return [3
|
|
1765
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1766
|
-
}
|
|
1767
|
-
return [3
|
|
1756
|
+
case "BadRequestException": return [3, 2];
|
|
1757
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1758
|
+
case "ForbiddenException": return [3, 4];
|
|
1759
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1760
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1761
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1762
|
+
case "NotFoundException": return [3, 8];
|
|
1763
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1764
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1765
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
1766
|
+
}
|
|
1767
|
+
return [3, 12];
|
|
1768
1768
|
case 2:
|
|
1769
1769
|
_c = [{}];
|
|
1770
|
-
return [4
|
|
1770
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1771
1771
|
case 3:
|
|
1772
1772
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1773
|
-
return [3
|
|
1773
|
+
return [3, 13];
|
|
1774
1774
|
case 4:
|
|
1775
1775
|
_d = [{}];
|
|
1776
|
-
return [4
|
|
1776
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1777
1777
|
case 5:
|
|
1778
1778
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1779
|
-
return [3
|
|
1779
|
+
return [3, 13];
|
|
1780
1780
|
case 6:
|
|
1781
1781
|
_e = [{}];
|
|
1782
|
-
return [4
|
|
1782
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1783
1783
|
case 7:
|
|
1784
1784
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1785
|
-
return [3
|
|
1785
|
+
return [3, 13];
|
|
1786
1786
|
case 8:
|
|
1787
1787
|
_f = [{}];
|
|
1788
|
-
return [4
|
|
1788
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1789
1789
|
case 9:
|
|
1790
1790
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1791
|
-
return [3
|
|
1791
|
+
return [3, 13];
|
|
1792
1792
|
case 10:
|
|
1793
1793
|
_g = [{}];
|
|
1794
|
-
return [4
|
|
1794
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1795
1795
|
case 11:
|
|
1796
1796
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1797
|
-
return [3
|
|
1797
|
+
return [3, 13];
|
|
1798
1798
|
case 12:
|
|
1799
1799
|
parsedBody = parsedOutput.body;
|
|
1800
1800
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1804,7 +1804,7 @@ var deserializeAws_restJson1PutApplicationPolicyCommandError = function (output,
|
|
|
1804
1804
|
message = response.message || response.Message || errorCode;
|
|
1805
1805
|
response.message = message;
|
|
1806
1806
|
delete response.Message;
|
|
1807
|
-
return [2
|
|
1807
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1808
1808
|
}
|
|
1809
1809
|
});
|
|
1810
1810
|
}); };
|
|
@@ -1814,15 +1814,15 @@ export var deserializeAws_restJson1UnshareApplicationCommand = function (output,
|
|
|
1814
1814
|
switch (_a.label) {
|
|
1815
1815
|
case 0:
|
|
1816
1816
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1817
|
-
return [2
|
|
1817
|
+
return [2, deserializeAws_restJson1UnshareApplicationCommandError(output, context)];
|
|
1818
1818
|
}
|
|
1819
1819
|
contents = {
|
|
1820
1820
|
$metadata: deserializeMetadata(output),
|
|
1821
1821
|
};
|
|
1822
|
-
return [4
|
|
1822
|
+
return [4, collectBody(output.body, context)];
|
|
1823
1823
|
case 1:
|
|
1824
1824
|
_a.sent();
|
|
1825
|
-
return [2
|
|
1825
|
+
return [2, Promise.resolve(contents)];
|
|
1826
1826
|
}
|
|
1827
1827
|
});
|
|
1828
1828
|
}); };
|
|
@@ -1834,55 +1834,55 @@ var deserializeAws_restJson1UnshareApplicationCommandError = function (output, c
|
|
|
1834
1834
|
case 0:
|
|
1835
1835
|
_a = [__assign({}, output)];
|
|
1836
1836
|
_h = {};
|
|
1837
|
-
return [4
|
|
1837
|
+
return [4, parseBody(output.body, context)];
|
|
1838
1838
|
case 1:
|
|
1839
1839
|
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
1840
1840
|
errorCode = "UnknownError";
|
|
1841
1841
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
1842
|
_b = errorCode;
|
|
1843
1843
|
switch (_b) {
|
|
1844
|
-
case "BadRequestException": return [3
|
|
1845
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1846
|
-
case "ForbiddenException": return [3
|
|
1847
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1848
|
-
case "InternalServerErrorException": return [3
|
|
1849
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1850
|
-
case "NotFoundException": return [3
|
|
1851
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1852
|
-
case "TooManyRequestsException": return [3
|
|
1853
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1854
|
-
}
|
|
1855
|
-
return [3
|
|
1844
|
+
case "BadRequestException": return [3, 2];
|
|
1845
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1846
|
+
case "ForbiddenException": return [3, 4];
|
|
1847
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 4];
|
|
1848
|
+
case "InternalServerErrorException": return [3, 6];
|
|
1849
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 6];
|
|
1850
|
+
case "NotFoundException": return [3, 8];
|
|
1851
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 8];
|
|
1852
|
+
case "TooManyRequestsException": return [3, 10];
|
|
1853
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 10];
|
|
1854
|
+
}
|
|
1855
|
+
return [3, 12];
|
|
1856
1856
|
case 2:
|
|
1857
1857
|
_c = [{}];
|
|
1858
|
-
return [4
|
|
1858
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1859
1859
|
case 3:
|
|
1860
1860
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1861
|
-
return [3
|
|
1861
|
+
return [3, 13];
|
|
1862
1862
|
case 4:
|
|
1863
1863
|
_d = [{}];
|
|
1864
|
-
return [4
|
|
1864
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
1865
1865
|
case 5:
|
|
1866
1866
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1867
|
-
return [3
|
|
1867
|
+
return [3, 13];
|
|
1868
1868
|
case 6:
|
|
1869
1869
|
_e = [{}];
|
|
1870
|
-
return [4
|
|
1870
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
1871
1871
|
case 7:
|
|
1872
1872
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1873
|
-
return [3
|
|
1873
|
+
return [3, 13];
|
|
1874
1874
|
case 8:
|
|
1875
1875
|
_f = [{}];
|
|
1876
|
-
return [4
|
|
1876
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1877
1877
|
case 9:
|
|
1878
1878
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1879
|
-
return [3
|
|
1879
|
+
return [3, 13];
|
|
1880
1880
|
case 10:
|
|
1881
1881
|
_g = [{}];
|
|
1882
|
-
return [4
|
|
1882
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1883
1883
|
case 11:
|
|
1884
1884
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1885
|
-
return [3
|
|
1885
|
+
return [3, 13];
|
|
1886
1886
|
case 12:
|
|
1887
1887
|
parsedBody = parsedOutput.body;
|
|
1888
1888
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1892,7 +1892,7 @@ var deserializeAws_restJson1UnshareApplicationCommandError = function (output, c
|
|
|
1892
1892
|
message = response.message || response.Message || errorCode;
|
|
1893
1893
|
response.message = message;
|
|
1894
1894
|
delete response.Message;
|
|
1895
|
-
return [2
|
|
1895
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
}); };
|
|
@@ -1902,7 +1902,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
|
|
|
1902
1902
|
switch (_c.label) {
|
|
1903
1903
|
case 0:
|
|
1904
1904
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1905
|
-
return [2
|
|
1905
|
+
return [2, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
|
|
1906
1906
|
}
|
|
1907
1907
|
contents = {
|
|
1908
1908
|
$metadata: deserializeMetadata(output),
|
|
@@ -1922,7 +1922,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
|
|
|
1922
1922
|
};
|
|
1923
1923
|
_a = __expectNonNull;
|
|
1924
1924
|
_b = __expectObject;
|
|
1925
|
-
return [4
|
|
1925
|
+
return [4, parseBody(output.body, context)];
|
|
1926
1926
|
case 1:
|
|
1927
1927
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1928
1928
|
if (data.applicationId !== undefined && data.applicationId !== null) {
|
|
@@ -1964,7 +1964,7 @@ export var deserializeAws_restJson1UpdateApplicationCommand = function (output,
|
|
|
1964
1964
|
if (data.version !== undefined && data.version !== null) {
|
|
1965
1965
|
contents.Version = deserializeAws_restJson1Version(data.version, context);
|
|
1966
1966
|
}
|
|
1967
|
-
return [2
|
|
1967
|
+
return [2, Promise.resolve(contents)];
|
|
1968
1968
|
}
|
|
1969
1969
|
});
|
|
1970
1970
|
}); };
|
|
@@ -1976,63 +1976,63 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
1976
1976
|
case 0:
|
|
1977
1977
|
_a = [__assign({}, output)];
|
|
1978
1978
|
_j = {};
|
|
1979
|
-
return [4
|
|
1979
|
+
return [4, parseBody(output.body, context)];
|
|
1980
1980
|
case 1:
|
|
1981
1981
|
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1982
1982
|
errorCode = "UnknownError";
|
|
1983
1983
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1984
1984
|
_b = errorCode;
|
|
1985
1985
|
switch (_b) {
|
|
1986
|
-
case "BadRequestException": return [3
|
|
1987
|
-
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3
|
|
1988
|
-
case "ConflictException": return [3
|
|
1989
|
-
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3
|
|
1990
|
-
case "ForbiddenException": return [3
|
|
1991
|
-
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3
|
|
1992
|
-
case "InternalServerErrorException": return [3
|
|
1993
|
-
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3
|
|
1994
|
-
case "NotFoundException": return [3
|
|
1995
|
-
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3
|
|
1996
|
-
case "TooManyRequestsException": return [3
|
|
1997
|
-
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3
|
|
1998
|
-
}
|
|
1999
|
-
return [3
|
|
1986
|
+
case "BadRequestException": return [3, 2];
|
|
1987
|
+
case "com.amazonaws.serverlessapplicationrepository#BadRequestException": return [3, 2];
|
|
1988
|
+
case "ConflictException": return [3, 4];
|
|
1989
|
+
case "com.amazonaws.serverlessapplicationrepository#ConflictException": return [3, 4];
|
|
1990
|
+
case "ForbiddenException": return [3, 6];
|
|
1991
|
+
case "com.amazonaws.serverlessapplicationrepository#ForbiddenException": return [3, 6];
|
|
1992
|
+
case "InternalServerErrorException": return [3, 8];
|
|
1993
|
+
case "com.amazonaws.serverlessapplicationrepository#InternalServerErrorException": return [3, 8];
|
|
1994
|
+
case "NotFoundException": return [3, 10];
|
|
1995
|
+
case "com.amazonaws.serverlessapplicationrepository#NotFoundException": return [3, 10];
|
|
1996
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1997
|
+
case "com.amazonaws.serverlessapplicationrepository#TooManyRequestsException": return [3, 12];
|
|
1998
|
+
}
|
|
1999
|
+
return [3, 14];
|
|
2000
2000
|
case 2:
|
|
2001
2001
|
_c = [{}];
|
|
2002
|
-
return [4
|
|
2002
|
+
return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2003
2003
|
case 3:
|
|
2004
2004
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2005
|
-
return [3
|
|
2005
|
+
return [3, 15];
|
|
2006
2006
|
case 4:
|
|
2007
2007
|
_d = [{}];
|
|
2008
|
-
return [4
|
|
2008
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2009
2009
|
case 5:
|
|
2010
2010
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2011
|
-
return [3
|
|
2011
|
+
return [3, 15];
|
|
2012
2012
|
case 6:
|
|
2013
2013
|
_e = [{}];
|
|
2014
|
-
return [4
|
|
2014
|
+
return [4, deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)];
|
|
2015
2015
|
case 7:
|
|
2016
2016
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2017
|
-
return [3
|
|
2017
|
+
return [3, 15];
|
|
2018
2018
|
case 8:
|
|
2019
2019
|
_f = [{}];
|
|
2020
|
-
return [4
|
|
2020
|
+
return [4, deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)];
|
|
2021
2021
|
case 9:
|
|
2022
2022
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2023
|
-
return [3
|
|
2023
|
+
return [3, 15];
|
|
2024
2024
|
case 10:
|
|
2025
2025
|
_g = [{}];
|
|
2026
|
-
return [4
|
|
2026
|
+
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2027
2027
|
case 11:
|
|
2028
2028
|
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2029
|
-
return [3
|
|
2029
|
+
return [3, 15];
|
|
2030
2030
|
case 12:
|
|
2031
2031
|
_h = [{}];
|
|
2032
|
-
return [4
|
|
2032
|
+
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2033
2033
|
case 13:
|
|
2034
2034
|
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2035
|
-
return [3
|
|
2035
|
+
return [3, 15];
|
|
2036
2036
|
case 14:
|
|
2037
2037
|
parsedBody = parsedOutput.body;
|
|
2038
2038
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -2042,7 +2042,7 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
2042
2042
|
message = response.message || response.Message || errorCode;
|
|
2043
2043
|
response.message = message;
|
|
2044
2044
|
delete response.Message;
|
|
2045
|
-
return [2
|
|
2045
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2046
2046
|
}
|
|
2047
2047
|
});
|
|
2048
2048
|
}); };
|
|
@@ -2063,7 +2063,7 @@ var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput
|
|
|
2063
2063
|
if (data.message !== undefined && data.message !== null) {
|
|
2064
2064
|
contents.Message = __expectString(data.message);
|
|
2065
2065
|
}
|
|
2066
|
-
return [2
|
|
2066
|
+
return [2, contents];
|
|
2067
2067
|
});
|
|
2068
2068
|
}); };
|
|
2069
2069
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2083,7 +2083,7 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
2083
2083
|
if (data.message !== undefined && data.message !== null) {
|
|
2084
2084
|
contents.Message = __expectString(data.message);
|
|
2085
2085
|
}
|
|
2086
|
-
return [2
|
|
2086
|
+
return [2, contents];
|
|
2087
2087
|
});
|
|
2088
2088
|
}); };
|
|
2089
2089
|
var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2103,7 +2103,7 @@ var deserializeAws_restJson1ForbiddenExceptionResponse = function (parsedOutput,
|
|
|
2103
2103
|
if (data.message !== undefined && data.message !== null) {
|
|
2104
2104
|
contents.Message = __expectString(data.message);
|
|
2105
2105
|
}
|
|
2106
|
-
return [2
|
|
2106
|
+
return [2, contents];
|
|
2107
2107
|
});
|
|
2108
2108
|
}); };
|
|
2109
2109
|
var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2123,7 +2123,7 @@ var deserializeAws_restJson1InternalServerErrorExceptionResponse = function (par
|
|
|
2123
2123
|
if (data.message !== undefined && data.message !== null) {
|
|
2124
2124
|
contents.Message = __expectString(data.message);
|
|
2125
2125
|
}
|
|
2126
|
-
return [2
|
|
2126
|
+
return [2, contents];
|
|
2127
2127
|
});
|
|
2128
2128
|
}); };
|
|
2129
2129
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2143,7 +2143,7 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
2143
2143
|
if (data.message !== undefined && data.message !== null) {
|
|
2144
2144
|
contents.Message = __expectString(data.message);
|
|
2145
2145
|
}
|
|
2146
|
-
return [2
|
|
2146
|
+
return [2, contents];
|
|
2147
2147
|
});
|
|
2148
2148
|
}); };
|
|
2149
2149
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -2163,7 +2163,7 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
2163
2163
|
if (data.message !== undefined && data.message !== null) {
|
|
2164
2164
|
contents.Message = __expectString(data.message);
|
|
2165
2165
|
}
|
|
2166
|
-
return [2
|
|
2166
|
+
return [2, contents];
|
|
2167
2167
|
});
|
|
2168
2168
|
}); };
|
|
2169
2169
|
var serializeAws_restJson1__listOf__string = function (input, context) {
|
|
@@ -2399,7 +2399,6 @@ var deserializeMetadata = function (output) {
|
|
|
2399
2399
|
cfId: output.headers["x-amz-cf-id"],
|
|
2400
2400
|
});
|
|
2401
2401
|
};
|
|
2402
|
-
// Collect low-level response body stream to Uint8Array.
|
|
2403
2402
|
var collectBody = function (streamBody, context) {
|
|
2404
2403
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2405
2404
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -2407,7 +2406,6 @@ var collectBody = function (streamBody, context) {
|
|
|
2407
2406
|
}
|
|
2408
2407
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2409
2408
|
};
|
|
2410
|
-
// Encode Uint8Array data into string with utf-8.
|
|
2411
2409
|
var collectBodyString = function (streamBody, context) {
|
|
2412
2410
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2413
2411
|
};
|
|
@@ -2426,9 +2424,6 @@ var parseBody = function (streamBody, context) {
|
|
|
2426
2424
|
return {};
|
|
2427
2425
|
});
|
|
2428
2426
|
};
|
|
2429
|
-
/**
|
|
2430
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
2431
|
-
*/
|
|
2432
2427
|
var loadRestJsonErrorCode = function (output, data) {
|
|
2433
2428
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2434
2429
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -2453,4 +2448,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2453
2448
|
}
|
|
2454
2449
|
return "";
|
|
2455
2450
|
};
|
|
2456
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|