@aws-sdk/client-service-catalog-appregistry 3.183.0 → 3.185.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/ServiceCatalogAppRegistry.js +97 -90
- package/dist-es/ServiceCatalogAppRegistryClient.js +28 -22
- package/dist-es/commands/AssociateAttributeGroupCommand.js +28 -21
- package/dist-es/commands/AssociateResourceCommand.js +28 -21
- package/dist-es/commands/CreateApplicationCommand.js +28 -21
- package/dist-es/commands/CreateAttributeGroupCommand.js +28 -21
- package/dist-es/commands/DeleteApplicationCommand.js +28 -21
- package/dist-es/commands/DeleteAttributeGroupCommand.js +28 -21
- package/dist-es/commands/DisassociateAttributeGroupCommand.js +28 -21
- package/dist-es/commands/DisassociateResourceCommand.js +28 -21
- package/dist-es/commands/GetApplicationCommand.js +28 -21
- package/dist-es/commands/GetAssociatedResourceCommand.js +28 -21
- package/dist-es/commands/GetAttributeGroupCommand.js +28 -21
- package/dist-es/commands/ListApplicationsCommand.js +28 -21
- package/dist-es/commands/ListAssociatedAttributeGroupsCommand.js +28 -21
- package/dist-es/commands/ListAssociatedResourcesCommand.js +28 -21
- package/dist-es/commands/ListAttributeGroupsCommand.js +28 -21
- package/dist-es/commands/ListAttributeGroupsForApplicationCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/SyncResourceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateApplicationCommand.js +28 -21
- package/dist-es/commands/UpdateAttributeGroupCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ServiceCatalogAppRegistryServiceException.js +10 -5
- package/dist-es/models/models_0.js +110 -217
- package/dist-es/pagination/ListApplicationsPaginator.js +68 -25
- package/dist-es/pagination/ListAssociatedAttributeGroupsPaginator.js +68 -25
- package/dist-es/pagination/ListAssociatedResourcesPaginator.js +68 -25
- package/dist-es/pagination/ListAttributeGroupsForApplicationPaginator.js +68 -25
- package/dist-es/pagination/ListAttributeGroupsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +2149 -1464
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
|
@@ -1,1463 +1,2131 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
5
6
|
import { ServiceCatalogAppRegistryServiceException as __BaseException } from "../models/ServiceCatalogAppRegistryServiceException";
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
export var serializeAws_restJson1AssociateAttributeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
8
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
9
|
+
return __generator(this, function (_c) {
|
|
10
|
+
switch (_c.label) {
|
|
11
|
+
case 0: return [4, context.endpoint()];
|
|
12
|
+
case 1:
|
|
13
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
14
|
+
headers = {};
|
|
15
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
16
|
+
"/applications/{application}/attribute-groups/{attributeGroup}";
|
|
17
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
18
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "attributeGroup", function () { return input.attributeGroup; }, "{attributeGroup}", false);
|
|
19
|
+
return [2, new __HttpRequest({
|
|
20
|
+
protocol: protocol,
|
|
21
|
+
hostname: hostname,
|
|
22
|
+
port: port,
|
|
23
|
+
method: "PUT",
|
|
24
|
+
headers: headers,
|
|
25
|
+
path: resolvedPath,
|
|
26
|
+
body: body,
|
|
27
|
+
})];
|
|
28
|
+
}
|
|
22
29
|
});
|
|
23
|
-
};
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
}); };
|
|
31
|
+
export var serializeAws_restJson1AssociateResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
32
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
33
|
+
return __generator(this, function (_c) {
|
|
34
|
+
switch (_c.label) {
|
|
35
|
+
case 0: return [4, context.endpoint()];
|
|
36
|
+
case 1:
|
|
37
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
38
|
+
headers = {};
|
|
39
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
40
|
+
"/applications/{application}/resources/{resourceType}/{resource}";
|
|
41
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
42
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceType", function () { return input.resourceType; }, "{resourceType}", false);
|
|
43
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resource", function () { return input.resource; }, "{resource}", false);
|
|
44
|
+
return [2, new __HttpRequest({
|
|
45
|
+
protocol: protocol,
|
|
46
|
+
hostname: hostname,
|
|
47
|
+
port: port,
|
|
48
|
+
method: "PUT",
|
|
49
|
+
headers: headers,
|
|
50
|
+
path: resolvedPath,
|
|
51
|
+
body: body,
|
|
52
|
+
})];
|
|
53
|
+
}
|
|
41
54
|
});
|
|
42
|
-
};
|
|
43
|
-
export
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
}); };
|
|
56
|
+
export var serializeAws_restJson1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
57
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
58
|
+
var _c;
|
|
59
|
+
return __generator(this, function (_d) {
|
|
60
|
+
switch (_d.label) {
|
|
61
|
+
case 0: return [4, context.endpoint()];
|
|
62
|
+
case 1:
|
|
63
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/json",
|
|
66
|
+
};
|
|
67
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
68
|
+
body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
69
|
+
return [2, new __HttpRequest({
|
|
70
|
+
protocol: protocol,
|
|
71
|
+
hostname: hostname,
|
|
72
|
+
port: port,
|
|
73
|
+
method: "POST",
|
|
74
|
+
headers: headers,
|
|
75
|
+
path: resolvedPath,
|
|
76
|
+
body: body,
|
|
77
|
+
})];
|
|
78
|
+
}
|
|
64
79
|
});
|
|
65
|
-
};
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
}); };
|
|
81
|
+
export var serializeAws_restJson1CreateAttributeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
83
|
+
var _c;
|
|
84
|
+
return __generator(this, function (_d) {
|
|
85
|
+
switch (_d.label) {
|
|
86
|
+
case 0: return [4, context.endpoint()];
|
|
87
|
+
case 1:
|
|
88
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
89
|
+
headers = {
|
|
90
|
+
"content-type": "application/json",
|
|
91
|
+
};
|
|
92
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attribute-groups";
|
|
93
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.attributes != null && { attributes: input.attributes })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
94
|
+
return [2, new __HttpRequest({
|
|
95
|
+
protocol: protocol,
|
|
96
|
+
hostname: hostname,
|
|
97
|
+
port: port,
|
|
98
|
+
method: "POST",
|
|
99
|
+
headers: headers,
|
|
100
|
+
path: resolvedPath,
|
|
101
|
+
body: body,
|
|
102
|
+
})];
|
|
103
|
+
}
|
|
88
104
|
});
|
|
89
|
-
};
|
|
90
|
-
export
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
105
|
+
}); };
|
|
106
|
+
export var serializeAws_restJson1DeleteApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
107
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
108
|
+
return __generator(this, function (_c) {
|
|
109
|
+
switch (_c.label) {
|
|
110
|
+
case 0: return [4, context.endpoint()];
|
|
111
|
+
case 1:
|
|
112
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
113
|
+
headers = {};
|
|
114
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{application}";
|
|
115
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
116
|
+
return [2, new __HttpRequest({
|
|
117
|
+
protocol: protocol,
|
|
118
|
+
hostname: hostname,
|
|
119
|
+
port: port,
|
|
120
|
+
method: "DELETE",
|
|
121
|
+
headers: headers,
|
|
122
|
+
path: resolvedPath,
|
|
123
|
+
body: body,
|
|
124
|
+
})];
|
|
125
|
+
}
|
|
104
126
|
});
|
|
105
|
-
};
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
127
|
+
}); };
|
|
128
|
+
export var serializeAws_restJson1DeleteAttributeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
129
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
130
|
+
return __generator(this, function (_c) {
|
|
131
|
+
switch (_c.label) {
|
|
132
|
+
case 0: return [4, context.endpoint()];
|
|
133
|
+
case 1:
|
|
134
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
135
|
+
headers = {};
|
|
136
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attribute-groups/{attributeGroup}";
|
|
137
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "attributeGroup", function () { return input.attributeGroup; }, "{attributeGroup}", false);
|
|
138
|
+
return [2, new __HttpRequest({
|
|
139
|
+
protocol: protocol,
|
|
140
|
+
hostname: hostname,
|
|
141
|
+
port: port,
|
|
142
|
+
method: "DELETE",
|
|
143
|
+
headers: headers,
|
|
144
|
+
path: resolvedPath,
|
|
145
|
+
body: body,
|
|
146
|
+
})];
|
|
147
|
+
}
|
|
120
148
|
});
|
|
121
|
-
};
|
|
122
|
-
export
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
149
|
+
}); };
|
|
150
|
+
export var serializeAws_restJson1DisassociateAttributeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
152
|
+
return __generator(this, function (_c) {
|
|
153
|
+
switch (_c.label) {
|
|
154
|
+
case 0: return [4, context.endpoint()];
|
|
155
|
+
case 1:
|
|
156
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
157
|
+
headers = {};
|
|
158
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
159
|
+
"/applications/{application}/attribute-groups/{attributeGroup}";
|
|
160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
161
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "attributeGroup", function () { return input.attributeGroup; }, "{attributeGroup}", false);
|
|
162
|
+
return [2, new __HttpRequest({
|
|
163
|
+
protocol: protocol,
|
|
164
|
+
hostname: hostname,
|
|
165
|
+
port: port,
|
|
166
|
+
method: "DELETE",
|
|
167
|
+
headers: headers,
|
|
168
|
+
path: resolvedPath,
|
|
169
|
+
body: body,
|
|
170
|
+
})];
|
|
171
|
+
}
|
|
138
172
|
});
|
|
139
|
-
};
|
|
140
|
-
export
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
173
|
+
}); };
|
|
174
|
+
export var serializeAws_restJson1DisassociateResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
175
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
176
|
+
return __generator(this, function (_c) {
|
|
177
|
+
switch (_c.label) {
|
|
178
|
+
case 0: return [4, context.endpoint()];
|
|
179
|
+
case 1:
|
|
180
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
181
|
+
headers = {};
|
|
182
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
183
|
+
"/applications/{application}/resources/{resourceType}/{resource}";
|
|
184
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
185
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceType", function () { return input.resourceType; }, "{resourceType}", false);
|
|
186
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resource", function () { return input.resource; }, "{resource}", false);
|
|
187
|
+
return [2, new __HttpRequest({
|
|
188
|
+
protocol: protocol,
|
|
189
|
+
hostname: hostname,
|
|
190
|
+
port: port,
|
|
191
|
+
method: "DELETE",
|
|
192
|
+
headers: headers,
|
|
193
|
+
path: resolvedPath,
|
|
194
|
+
body: body,
|
|
195
|
+
})];
|
|
196
|
+
}
|
|
157
197
|
});
|
|
158
|
-
};
|
|
159
|
-
export
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
198
|
+
}); };
|
|
199
|
+
export var serializeAws_restJson1GetApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
200
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
201
|
+
return __generator(this, function (_c) {
|
|
202
|
+
switch (_c.label) {
|
|
203
|
+
case 0: return [4, context.endpoint()];
|
|
204
|
+
case 1:
|
|
205
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
206
|
+
headers = {};
|
|
207
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{application}";
|
|
208
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
209
|
+
return [2, new __HttpRequest({
|
|
210
|
+
protocol: protocol,
|
|
211
|
+
hostname: hostname,
|
|
212
|
+
port: port,
|
|
213
|
+
method: "GET",
|
|
214
|
+
headers: headers,
|
|
215
|
+
path: resolvedPath,
|
|
216
|
+
body: body,
|
|
217
|
+
})];
|
|
218
|
+
}
|
|
173
219
|
});
|
|
174
|
-
};
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
220
|
+
}); };
|
|
221
|
+
export var serializeAws_restJson1GetAssociatedResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
223
|
+
return __generator(this, function (_c) {
|
|
224
|
+
switch (_c.label) {
|
|
225
|
+
case 0: return [4, context.endpoint()];
|
|
226
|
+
case 1:
|
|
227
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
228
|
+
headers = {};
|
|
229
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
230
|
+
"/applications/{application}/resources/{resourceType}/{resource}";
|
|
231
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
232
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceType", function () { return input.resourceType; }, "{resourceType}", false);
|
|
233
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resource", function () { return input.resource; }, "{resource}", false);
|
|
234
|
+
return [2, new __HttpRequest({
|
|
235
|
+
protocol: protocol,
|
|
236
|
+
hostname: hostname,
|
|
237
|
+
port: port,
|
|
238
|
+
method: "GET",
|
|
239
|
+
headers: headers,
|
|
240
|
+
path: resolvedPath,
|
|
241
|
+
body: body,
|
|
242
|
+
})];
|
|
243
|
+
}
|
|
192
244
|
});
|
|
193
|
-
};
|
|
194
|
-
export
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
245
|
+
}); };
|
|
246
|
+
export var serializeAws_restJson1GetAttributeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
247
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
248
|
+
return __generator(this, function (_c) {
|
|
249
|
+
switch (_c.label) {
|
|
250
|
+
case 0: return [4, context.endpoint()];
|
|
251
|
+
case 1:
|
|
252
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
253
|
+
headers = {};
|
|
254
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attribute-groups/{attributeGroup}";
|
|
255
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "attributeGroup", function () { return input.attributeGroup; }, "{attributeGroup}", false);
|
|
256
|
+
return [2, new __HttpRequest({
|
|
257
|
+
protocol: protocol,
|
|
258
|
+
hostname: hostname,
|
|
259
|
+
port: port,
|
|
260
|
+
method: "GET",
|
|
261
|
+
headers: headers,
|
|
262
|
+
path: resolvedPath,
|
|
263
|
+
body: body,
|
|
264
|
+
})];
|
|
265
|
+
}
|
|
208
266
|
});
|
|
209
|
-
};
|
|
210
|
-
export
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
267
|
+
}); };
|
|
268
|
+
export var serializeAws_restJson1ListApplicationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
269
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
270
|
+
return __generator(this, function (_c) {
|
|
271
|
+
switch (_c.label) {
|
|
272
|
+
case 0: return [4, context.endpoint()];
|
|
273
|
+
case 1:
|
|
274
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
275
|
+
headers = {};
|
|
276
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
277
|
+
query = map({
|
|
278
|
+
nextToken: [, input.nextToken],
|
|
279
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
280
|
+
});
|
|
281
|
+
return [2, new __HttpRequest({
|
|
282
|
+
protocol: protocol,
|
|
283
|
+
hostname: hostname,
|
|
284
|
+
port: port,
|
|
285
|
+
method: "GET",
|
|
286
|
+
headers: headers,
|
|
287
|
+
path: resolvedPath,
|
|
288
|
+
query: query,
|
|
289
|
+
body: body,
|
|
290
|
+
})];
|
|
291
|
+
}
|
|
228
292
|
});
|
|
229
|
-
};
|
|
230
|
-
export
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
293
|
+
}); };
|
|
294
|
+
export var serializeAws_restJson1ListAssociatedAttributeGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
295
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
296
|
+
return __generator(this, function (_c) {
|
|
297
|
+
switch (_c.label) {
|
|
298
|
+
case 0: return [4, context.endpoint()];
|
|
299
|
+
case 1:
|
|
300
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
301
|
+
headers = {};
|
|
302
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
303
|
+
"/applications/{application}/attribute-groups";
|
|
304
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
305
|
+
query = map({
|
|
306
|
+
nextToken: [, input.nextToken],
|
|
307
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
308
|
+
});
|
|
309
|
+
return [2, new __HttpRequest({
|
|
310
|
+
protocol: protocol,
|
|
311
|
+
hostname: hostname,
|
|
312
|
+
port: port,
|
|
313
|
+
method: "GET",
|
|
314
|
+
headers: headers,
|
|
315
|
+
path: resolvedPath,
|
|
316
|
+
query: query,
|
|
317
|
+
body: body,
|
|
318
|
+
})];
|
|
319
|
+
}
|
|
250
320
|
});
|
|
251
|
-
};
|
|
252
|
-
export
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
321
|
+
}); };
|
|
322
|
+
export var serializeAws_restJson1ListAssociatedResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
323
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
324
|
+
return __generator(this, function (_c) {
|
|
325
|
+
switch (_c.label) {
|
|
326
|
+
case 0: return [4, context.endpoint()];
|
|
327
|
+
case 1:
|
|
328
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
329
|
+
headers = {};
|
|
330
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{application}/resources";
|
|
331
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
332
|
+
query = map({
|
|
333
|
+
nextToken: [, input.nextToken],
|
|
334
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
335
|
+
});
|
|
336
|
+
return [2, new __HttpRequest({
|
|
337
|
+
protocol: protocol,
|
|
338
|
+
hostname: hostname,
|
|
339
|
+
port: port,
|
|
340
|
+
method: "GET",
|
|
341
|
+
headers: headers,
|
|
342
|
+
path: resolvedPath,
|
|
343
|
+
query: query,
|
|
344
|
+
body: body,
|
|
345
|
+
})];
|
|
346
|
+
}
|
|
271
347
|
});
|
|
272
|
-
};
|
|
273
|
-
export
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
348
|
+
}); };
|
|
349
|
+
export var serializeAws_restJson1ListAttributeGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
350
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
351
|
+
return __generator(this, function (_c) {
|
|
352
|
+
switch (_c.label) {
|
|
353
|
+
case 0: return [4, context.endpoint()];
|
|
354
|
+
case 1:
|
|
355
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
356
|
+
headers = {};
|
|
357
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attribute-groups";
|
|
358
|
+
query = map({
|
|
359
|
+
nextToken: [, input.nextToken],
|
|
360
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
361
|
+
});
|
|
362
|
+
return [2, new __HttpRequest({
|
|
363
|
+
protocol: protocol,
|
|
364
|
+
hostname: hostname,
|
|
365
|
+
port: port,
|
|
366
|
+
method: "GET",
|
|
367
|
+
headers: headers,
|
|
368
|
+
path: resolvedPath,
|
|
369
|
+
query: query,
|
|
370
|
+
body: body,
|
|
371
|
+
})];
|
|
372
|
+
}
|
|
291
373
|
});
|
|
292
|
-
};
|
|
293
|
-
export
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
374
|
+
}); };
|
|
375
|
+
export var serializeAws_restJson1ListAttributeGroupsForApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
376
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
377
|
+
return __generator(this, function (_c) {
|
|
378
|
+
switch (_c.label) {
|
|
379
|
+
case 0: return [4, context.endpoint()];
|
|
380
|
+
case 1:
|
|
381
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
382
|
+
headers = {};
|
|
383
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
384
|
+
"/applications/{application}/attribute-group-details";
|
|
385
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
386
|
+
query = map({
|
|
387
|
+
nextToken: [, input.nextToken],
|
|
388
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
389
|
+
});
|
|
390
|
+
return [2, new __HttpRequest({
|
|
391
|
+
protocol: protocol,
|
|
392
|
+
hostname: hostname,
|
|
393
|
+
port: port,
|
|
394
|
+
method: "GET",
|
|
395
|
+
headers: headers,
|
|
396
|
+
path: resolvedPath,
|
|
397
|
+
query: query,
|
|
398
|
+
body: body,
|
|
399
|
+
})];
|
|
400
|
+
}
|
|
313
401
|
});
|
|
314
|
-
};
|
|
315
|
-
export
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
402
|
+
}); };
|
|
403
|
+
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
404
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
405
|
+
return __generator(this, function (_c) {
|
|
406
|
+
switch (_c.label) {
|
|
407
|
+
case 0: return [4, context.endpoint()];
|
|
408
|
+
case 1:
|
|
409
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
410
|
+
headers = {};
|
|
411
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
412
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
413
|
+
return [2, new __HttpRequest({
|
|
414
|
+
protocol: protocol,
|
|
415
|
+
hostname: hostname,
|
|
416
|
+
port: port,
|
|
417
|
+
method: "GET",
|
|
418
|
+
headers: headers,
|
|
419
|
+
path: resolvedPath,
|
|
420
|
+
body: body,
|
|
421
|
+
})];
|
|
422
|
+
}
|
|
329
423
|
});
|
|
330
|
-
};
|
|
331
|
-
export
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
424
|
+
}); };
|
|
425
|
+
export var serializeAws_restJson1SyncResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
426
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
427
|
+
return __generator(this, function (_c) {
|
|
428
|
+
switch (_c.label) {
|
|
429
|
+
case 0: return [4, context.endpoint()];
|
|
430
|
+
case 1:
|
|
431
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
432
|
+
headers = {};
|
|
433
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/sync/{resourceType}/{resource}";
|
|
434
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceType", function () { return input.resourceType; }, "{resourceType}", false);
|
|
435
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resource", function () { return input.resource; }, "{resource}", false);
|
|
436
|
+
return [2, new __HttpRequest({
|
|
437
|
+
protocol: protocol,
|
|
438
|
+
hostname: hostname,
|
|
439
|
+
port: port,
|
|
440
|
+
method: "POST",
|
|
441
|
+
headers: headers,
|
|
442
|
+
path: resolvedPath,
|
|
443
|
+
body: body,
|
|
444
|
+
})];
|
|
445
|
+
}
|
|
346
446
|
});
|
|
347
|
-
};
|
|
348
|
-
export
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
447
|
+
}); };
|
|
448
|
+
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
449
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
450
|
+
return __generator(this, function (_c) {
|
|
451
|
+
switch (_c.label) {
|
|
452
|
+
case 0: return [4, context.endpoint()];
|
|
453
|
+
case 1:
|
|
454
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
455
|
+
headers = {
|
|
456
|
+
"content-type": "application/json",
|
|
457
|
+
};
|
|
458
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
459
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
460
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })));
|
|
461
|
+
return [2, new __HttpRequest({
|
|
462
|
+
protocol: protocol,
|
|
463
|
+
hostname: hostname,
|
|
464
|
+
port: port,
|
|
465
|
+
method: "POST",
|
|
466
|
+
headers: headers,
|
|
467
|
+
path: resolvedPath,
|
|
468
|
+
body: body,
|
|
469
|
+
})];
|
|
470
|
+
}
|
|
367
471
|
});
|
|
368
|
-
};
|
|
369
|
-
export
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
472
|
+
}); };
|
|
473
|
+
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
474
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
475
|
+
return __generator(this, function (_c) {
|
|
476
|
+
switch (_c.label) {
|
|
477
|
+
case 0: return [4, context.endpoint()];
|
|
478
|
+
case 1:
|
|
479
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
480
|
+
headers = {};
|
|
481
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
482
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
483
|
+
query = map({
|
|
484
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
485
|
+
});
|
|
486
|
+
return [2, new __HttpRequest({
|
|
487
|
+
protocol: protocol,
|
|
488
|
+
hostname: hostname,
|
|
489
|
+
port: port,
|
|
490
|
+
method: "DELETE",
|
|
491
|
+
headers: headers,
|
|
492
|
+
path: resolvedPath,
|
|
493
|
+
query: query,
|
|
494
|
+
body: body,
|
|
495
|
+
})];
|
|
496
|
+
}
|
|
387
497
|
});
|
|
388
|
-
};
|
|
389
|
-
export
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
498
|
+
}); };
|
|
499
|
+
export var serializeAws_restJson1UpdateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
500
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
501
|
+
return __generator(this, function (_c) {
|
|
502
|
+
switch (_c.label) {
|
|
503
|
+
case 0: return [4, context.endpoint()];
|
|
504
|
+
case 1:
|
|
505
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
506
|
+
headers = {
|
|
507
|
+
"content-type": "application/json",
|
|
508
|
+
};
|
|
509
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications/{application}";
|
|
510
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "application", function () { return input.application; }, "{application}", false);
|
|
511
|
+
body = JSON.stringify(__assign(__assign({}, (input.description != null && { description: input.description })), (input.name != null && { name: input.name })));
|
|
512
|
+
return [2, new __HttpRequest({
|
|
513
|
+
protocol: protocol,
|
|
514
|
+
hostname: hostname,
|
|
515
|
+
port: port,
|
|
516
|
+
method: "PATCH",
|
|
517
|
+
headers: headers,
|
|
518
|
+
path: resolvedPath,
|
|
519
|
+
body: body,
|
|
520
|
+
})];
|
|
521
|
+
}
|
|
409
522
|
});
|
|
410
|
-
};
|
|
411
|
-
export
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
523
|
+
}); };
|
|
524
|
+
export var serializeAws_restJson1UpdateAttributeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
525
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
526
|
+
return __generator(this, function (_c) {
|
|
527
|
+
switch (_c.label) {
|
|
528
|
+
case 0: return [4, context.endpoint()];
|
|
529
|
+
case 1:
|
|
530
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
531
|
+
headers = {
|
|
532
|
+
"content-type": "application/json",
|
|
533
|
+
};
|
|
534
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/attribute-groups/{attributeGroup}";
|
|
535
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "attributeGroup", function () { return input.attributeGroup; }, "{attributeGroup}", false);
|
|
536
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.attributes != null && { attributes: input.attributes })), (input.description != null && { description: input.description })), (input.name != null && { name: input.name })));
|
|
537
|
+
return [2, new __HttpRequest({
|
|
538
|
+
protocol: protocol,
|
|
539
|
+
hostname: hostname,
|
|
540
|
+
port: port,
|
|
541
|
+
method: "PATCH",
|
|
542
|
+
headers: headers,
|
|
543
|
+
path: resolvedPath,
|
|
544
|
+
body: body,
|
|
545
|
+
})];
|
|
546
|
+
}
|
|
432
547
|
});
|
|
433
|
-
};
|
|
434
|
-
export
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
548
|
+
}); };
|
|
549
|
+
export var deserializeAws_restJson1AssociateAttributeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
550
|
+
var contents, data, _a, _b;
|
|
551
|
+
return __generator(this, function (_c) {
|
|
552
|
+
switch (_c.label) {
|
|
553
|
+
case 0:
|
|
554
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
555
|
+
return [2, deserializeAws_restJson1AssociateAttributeGroupCommandError(output, context)];
|
|
556
|
+
}
|
|
557
|
+
contents = map({
|
|
558
|
+
$metadata: deserializeMetadata(output),
|
|
559
|
+
});
|
|
560
|
+
_a = __expectNonNull;
|
|
561
|
+
_b = __expectObject;
|
|
562
|
+
return [4, parseBody(output.body, context)];
|
|
563
|
+
case 1:
|
|
564
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
565
|
+
if (data.applicationArn != null) {
|
|
566
|
+
contents.applicationArn = __expectString(data.applicationArn);
|
|
567
|
+
}
|
|
568
|
+
if (data.attributeGroupArn != null) {
|
|
569
|
+
contents.attributeGroupArn = __expectString(data.attributeGroupArn);
|
|
570
|
+
}
|
|
571
|
+
return [2, contents];
|
|
572
|
+
}
|
|
440
573
|
});
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
throw
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
574
|
+
}); };
|
|
575
|
+
var deserializeAws_restJson1AssociateAttributeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
576
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
577
|
+
var _c;
|
|
578
|
+
return __generator(this, function (_d) {
|
|
579
|
+
switch (_d.label) {
|
|
580
|
+
case 0:
|
|
581
|
+
_a = [__assign({}, output)];
|
|
582
|
+
_c = {};
|
|
583
|
+
return [4, parseErrorBody(output.body, context)];
|
|
584
|
+
case 1:
|
|
585
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
586
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
587
|
+
_b = errorCode;
|
|
588
|
+
switch (_b) {
|
|
589
|
+
case "ConflictException": return [3, 2];
|
|
590
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
591
|
+
case "InternalServerException": return [3, 4];
|
|
592
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
593
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
594
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
|
|
595
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
596
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 8];
|
|
597
|
+
case "ValidationException": return [3, 10];
|
|
598
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 10];
|
|
599
|
+
}
|
|
600
|
+
return [3, 12];
|
|
601
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
602
|
+
case 3: throw _d.sent();
|
|
603
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
604
|
+
case 5: throw _d.sent();
|
|
605
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
606
|
+
case 7: throw _d.sent();
|
|
607
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
608
|
+
case 9: throw _d.sent();
|
|
609
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
610
|
+
case 11: throw _d.sent();
|
|
611
|
+
case 12:
|
|
612
|
+
parsedBody = parsedOutput.body;
|
|
613
|
+
throwDefaultError({
|
|
614
|
+
output: output,
|
|
615
|
+
parsedBody: parsedBody,
|
|
616
|
+
exceptionCtor: __BaseException,
|
|
617
|
+
errorCode: errorCode,
|
|
618
|
+
});
|
|
619
|
+
_d.label = 13;
|
|
620
|
+
case 13: return [2];
|
|
621
|
+
}
|
|
488
622
|
});
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
case "ServiceQuotaExceededException":
|
|
515
|
-
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException":
|
|
516
|
-
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
517
|
-
case "ValidationException":
|
|
518
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
519
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
520
|
-
default:
|
|
521
|
-
const parsedBody = parsedOutput.body;
|
|
522
|
-
throwDefaultError({
|
|
523
|
-
output,
|
|
524
|
-
parsedBody,
|
|
525
|
-
exceptionCtor: __BaseException,
|
|
526
|
-
errorCode,
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
};
|
|
530
|
-
export const deserializeAws_restJson1CreateApplicationCommand = async (output, context) => {
|
|
531
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
532
|
-
return deserializeAws_restJson1CreateApplicationCommandError(output, context);
|
|
533
|
-
}
|
|
534
|
-
const contents = map({
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
+
}); };
|
|
624
|
+
export var deserializeAws_restJson1AssociateResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
625
|
+
var contents, data, _a, _b;
|
|
626
|
+
return __generator(this, function (_c) {
|
|
627
|
+
switch (_c.label) {
|
|
628
|
+
case 0:
|
|
629
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
+
return [2, deserializeAws_restJson1AssociateResourceCommandError(output, context)];
|
|
631
|
+
}
|
|
632
|
+
contents = map({
|
|
633
|
+
$metadata: deserializeMetadata(output),
|
|
634
|
+
});
|
|
635
|
+
_a = __expectNonNull;
|
|
636
|
+
_b = __expectObject;
|
|
637
|
+
return [4, parseBody(output.body, context)];
|
|
638
|
+
case 1:
|
|
639
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
640
|
+
if (data.applicationArn != null) {
|
|
641
|
+
contents.applicationArn = __expectString(data.applicationArn);
|
|
642
|
+
}
|
|
643
|
+
if (data.resourceArn != null) {
|
|
644
|
+
contents.resourceArn = __expectString(data.resourceArn);
|
|
645
|
+
}
|
|
646
|
+
return [2, contents];
|
|
647
|
+
}
|
|
536
648
|
});
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
return
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
649
|
+
}); };
|
|
650
|
+
var deserializeAws_restJson1AssociateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
651
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
652
|
+
var _c;
|
|
653
|
+
return __generator(this, function (_d) {
|
|
654
|
+
switch (_d.label) {
|
|
655
|
+
case 0:
|
|
656
|
+
_a = [__assign({}, output)];
|
|
657
|
+
_c = {};
|
|
658
|
+
return [4, parseErrorBody(output.body, context)];
|
|
659
|
+
case 1:
|
|
660
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
661
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
662
|
+
_b = errorCode;
|
|
663
|
+
switch (_b) {
|
|
664
|
+
case "ConflictException": return [3, 2];
|
|
665
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
666
|
+
case "InternalServerException": return [3, 4];
|
|
667
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
668
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
669
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
|
|
670
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
671
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 8];
|
|
672
|
+
case "ValidationException": return [3, 10];
|
|
673
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 10];
|
|
674
|
+
}
|
|
675
|
+
return [3, 12];
|
|
676
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
677
|
+
case 3: throw _d.sent();
|
|
678
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
679
|
+
case 5: throw _d.sent();
|
|
680
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
681
|
+
case 7: throw _d.sent();
|
|
682
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
683
|
+
case 9: throw _d.sent();
|
|
684
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
685
|
+
case 11: throw _d.sent();
|
|
686
|
+
case 12:
|
|
687
|
+
parsedBody = parsedOutput.body;
|
|
688
|
+
throwDefaultError({
|
|
689
|
+
output: output,
|
|
690
|
+
parsedBody: parsedBody,
|
|
691
|
+
exceptionCtor: __BaseException,
|
|
692
|
+
errorCode: errorCode,
|
|
693
|
+
});
|
|
694
|
+
_d.label = 13;
|
|
695
|
+
case 13: return [2];
|
|
696
|
+
}
|
|
578
697
|
});
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
case "ValidationException":
|
|
602
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
603
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
604
|
-
default:
|
|
605
|
-
const parsedBody = parsedOutput.body;
|
|
606
|
-
throwDefaultError({
|
|
607
|
-
output,
|
|
608
|
-
parsedBody,
|
|
609
|
-
exceptionCtor: __BaseException,
|
|
610
|
-
errorCode,
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
export const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
|
|
615
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
-
return deserializeAws_restJson1DeleteApplicationCommandError(output, context);
|
|
617
|
-
}
|
|
618
|
-
const contents = map({
|
|
619
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
+
}); };
|
|
699
|
+
export var deserializeAws_restJson1CreateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
700
|
+
var contents, data, _a, _b;
|
|
701
|
+
return __generator(this, function (_c) {
|
|
702
|
+
switch (_c.label) {
|
|
703
|
+
case 0:
|
|
704
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
705
|
+
return [2, deserializeAws_restJson1CreateApplicationCommandError(output, context)];
|
|
706
|
+
}
|
|
707
|
+
contents = map({
|
|
708
|
+
$metadata: deserializeMetadata(output),
|
|
709
|
+
});
|
|
710
|
+
_a = __expectNonNull;
|
|
711
|
+
_b = __expectObject;
|
|
712
|
+
return [4, parseBody(output.body, context)];
|
|
713
|
+
case 1:
|
|
714
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
715
|
+
if (data.application != null) {
|
|
716
|
+
contents.application = deserializeAws_restJson1Application(data.application, context);
|
|
717
|
+
}
|
|
718
|
+
return [2, contents];
|
|
719
|
+
}
|
|
620
720
|
});
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
return
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
721
|
+
}); };
|
|
722
|
+
var deserializeAws_restJson1CreateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
723
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
724
|
+
var _c;
|
|
725
|
+
return __generator(this, function (_d) {
|
|
726
|
+
switch (_d.label) {
|
|
727
|
+
case 0:
|
|
728
|
+
_a = [__assign({}, output)];
|
|
729
|
+
_c = {};
|
|
730
|
+
return [4, parseErrorBody(output.body, context)];
|
|
731
|
+
case 1:
|
|
732
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
733
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
734
|
+
_b = errorCode;
|
|
735
|
+
switch (_b) {
|
|
736
|
+
case "ConflictException": return [3, 2];
|
|
737
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
738
|
+
case "InternalServerException": return [3, 4];
|
|
739
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
740
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
741
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 6];
|
|
742
|
+
case "ValidationException": return [3, 8];
|
|
743
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
|
|
744
|
+
}
|
|
745
|
+
return [3, 10];
|
|
746
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
747
|
+
case 3: throw _d.sent();
|
|
748
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
749
|
+
case 5: throw _d.sent();
|
|
750
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
751
|
+
case 7: throw _d.sent();
|
|
752
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
753
|
+
case 9: throw _d.sent();
|
|
754
|
+
case 10:
|
|
755
|
+
parsedBody = parsedOutput.body;
|
|
756
|
+
throwDefaultError({
|
|
757
|
+
output: output,
|
|
758
|
+
parsedBody: parsedBody,
|
|
759
|
+
exceptionCtor: __BaseException,
|
|
760
|
+
errorCode: errorCode,
|
|
761
|
+
});
|
|
762
|
+
_d.label = 11;
|
|
763
|
+
case 11: return [2];
|
|
764
|
+
}
|
|
659
765
|
});
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
default:
|
|
683
|
-
const parsedBody = parsedOutput.body;
|
|
684
|
-
throwDefaultError({
|
|
685
|
-
output,
|
|
686
|
-
parsedBody,
|
|
687
|
-
exceptionCtor: __BaseException,
|
|
688
|
-
errorCode,
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
|
-
export const deserializeAws_restJson1DisassociateAttributeGroupCommand = async (output, context) => {
|
|
693
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
-
return deserializeAws_restJson1DisassociateAttributeGroupCommandError(output, context);
|
|
695
|
-
}
|
|
696
|
-
const contents = map({
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
766
|
+
}); };
|
|
767
|
+
export var deserializeAws_restJson1CreateAttributeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
768
|
+
var contents, data, _a, _b;
|
|
769
|
+
return __generator(this, function (_c) {
|
|
770
|
+
switch (_c.label) {
|
|
771
|
+
case 0:
|
|
772
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
773
|
+
return [2, deserializeAws_restJson1CreateAttributeGroupCommandError(output, context)];
|
|
774
|
+
}
|
|
775
|
+
contents = map({
|
|
776
|
+
$metadata: deserializeMetadata(output),
|
|
777
|
+
});
|
|
778
|
+
_a = __expectNonNull;
|
|
779
|
+
_b = __expectObject;
|
|
780
|
+
return [4, parseBody(output.body, context)];
|
|
781
|
+
case 1:
|
|
782
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
783
|
+
if (data.attributeGroup != null) {
|
|
784
|
+
contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
|
|
785
|
+
}
|
|
786
|
+
return [2, contents];
|
|
787
|
+
}
|
|
698
788
|
});
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
};
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
789
|
+
}); };
|
|
790
|
+
var deserializeAws_restJson1CreateAttributeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
791
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
792
|
+
var _c;
|
|
793
|
+
return __generator(this, function (_d) {
|
|
794
|
+
switch (_d.label) {
|
|
795
|
+
case 0:
|
|
796
|
+
_a = [__assign({}, output)];
|
|
797
|
+
_c = {};
|
|
798
|
+
return [4, parseErrorBody(output.body, context)];
|
|
799
|
+
case 1:
|
|
800
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
801
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
802
|
+
_b = errorCode;
|
|
803
|
+
switch (_b) {
|
|
804
|
+
case "ConflictException": return [3, 2];
|
|
805
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
806
|
+
case "InternalServerException": return [3, 4];
|
|
807
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
808
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
809
|
+
case "com.amazonaws.servicecatalogappregistry#ServiceQuotaExceededException": return [3, 6];
|
|
810
|
+
case "ValidationException": return [3, 8];
|
|
811
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
|
|
812
|
+
}
|
|
813
|
+
return [3, 10];
|
|
814
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
815
|
+
case 3: throw _d.sent();
|
|
816
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
817
|
+
case 5: throw _d.sent();
|
|
818
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
819
|
+
case 7: throw _d.sent();
|
|
820
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
821
|
+
case 9: throw _d.sent();
|
|
822
|
+
case 10:
|
|
823
|
+
parsedBody = parsedOutput.body;
|
|
824
|
+
throwDefaultError({
|
|
825
|
+
output: output,
|
|
826
|
+
parsedBody: parsedBody,
|
|
827
|
+
exceptionCtor: __BaseException,
|
|
828
|
+
errorCode: errorCode,
|
|
829
|
+
});
|
|
830
|
+
_d.label = 11;
|
|
831
|
+
case 11: return [2];
|
|
832
|
+
}
|
|
740
833
|
});
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
case "ValidationException":
|
|
764
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
765
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
766
|
-
default:
|
|
767
|
-
const parsedBody = parsedOutput.body;
|
|
768
|
-
throwDefaultError({
|
|
769
|
-
output,
|
|
770
|
-
parsedBody,
|
|
771
|
-
exceptionCtor: __BaseException,
|
|
772
|
-
errorCode,
|
|
773
|
-
});
|
|
774
|
-
}
|
|
775
|
-
};
|
|
776
|
-
export const deserializeAws_restJson1GetApplicationCommand = async (output, context) => {
|
|
777
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
778
|
-
return deserializeAws_restJson1GetApplicationCommandError(output, context);
|
|
779
|
-
}
|
|
780
|
-
const contents = map({
|
|
781
|
-
$metadata: deserializeMetadata(output),
|
|
834
|
+
}); };
|
|
835
|
+
export var deserializeAws_restJson1DeleteApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
836
|
+
var contents, data, _a, _b;
|
|
837
|
+
return __generator(this, function (_c) {
|
|
838
|
+
switch (_c.label) {
|
|
839
|
+
case 0:
|
|
840
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
841
|
+
return [2, deserializeAws_restJson1DeleteApplicationCommandError(output, context)];
|
|
842
|
+
}
|
|
843
|
+
contents = map({
|
|
844
|
+
$metadata: deserializeMetadata(output),
|
|
845
|
+
});
|
|
846
|
+
_a = __expectNonNull;
|
|
847
|
+
_b = __expectObject;
|
|
848
|
+
return [4, parseBody(output.body, context)];
|
|
849
|
+
case 1:
|
|
850
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
851
|
+
if (data.application != null) {
|
|
852
|
+
contents.application = deserializeAws_restJson1ApplicationSummary(data.application, context);
|
|
853
|
+
}
|
|
854
|
+
return [2, contents];
|
|
855
|
+
}
|
|
782
856
|
});
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
case "InternalServerException":
|
|
824
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
825
|
-
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
826
|
-
case "ResourceNotFoundException":
|
|
827
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
828
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
829
|
-
case "ValidationException":
|
|
830
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
831
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
exceptionCtor: __BaseException,
|
|
838
|
-
errorCode,
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
};
|
|
842
|
-
export const deserializeAws_restJson1GetAssociatedResourceCommand = async (output, context) => {
|
|
843
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
|
-
return deserializeAws_restJson1GetAssociatedResourceCommandError(output, context);
|
|
845
|
-
}
|
|
846
|
-
const contents = map({
|
|
847
|
-
$metadata: deserializeMetadata(output),
|
|
857
|
+
}); };
|
|
858
|
+
var deserializeAws_restJson1DeleteApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
859
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
860
|
+
var _c;
|
|
861
|
+
return __generator(this, function (_d) {
|
|
862
|
+
switch (_d.label) {
|
|
863
|
+
case 0:
|
|
864
|
+
_a = [__assign({}, output)];
|
|
865
|
+
_c = {};
|
|
866
|
+
return [4, parseErrorBody(output.body, context)];
|
|
867
|
+
case 1:
|
|
868
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
869
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
870
|
+
_b = errorCode;
|
|
871
|
+
switch (_b) {
|
|
872
|
+
case "InternalServerException": return [3, 2];
|
|
873
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
874
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
875
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
876
|
+
case "ValidationException": return [3, 6];
|
|
877
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
878
|
+
}
|
|
879
|
+
return [3, 8];
|
|
880
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
881
|
+
case 3: throw _d.sent();
|
|
882
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
883
|
+
case 5: throw _d.sent();
|
|
884
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
885
|
+
case 7: throw _d.sent();
|
|
886
|
+
case 8:
|
|
887
|
+
parsedBody = parsedOutput.body;
|
|
888
|
+
throwDefaultError({
|
|
889
|
+
output: output,
|
|
890
|
+
parsedBody: parsedBody,
|
|
891
|
+
exceptionCtor: __BaseException,
|
|
892
|
+
errorCode: errorCode,
|
|
893
|
+
});
|
|
894
|
+
_d.label = 9;
|
|
895
|
+
case 9: return [2];
|
|
896
|
+
}
|
|
848
897
|
});
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
default:
|
|
872
|
-
const parsedBody = parsedOutput.body;
|
|
873
|
-
throwDefaultError({
|
|
874
|
-
output,
|
|
875
|
-
parsedBody,
|
|
876
|
-
exceptionCtor: __BaseException,
|
|
877
|
-
errorCode,
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
export const deserializeAws_restJson1GetAttributeGroupCommand = async (output, context) => {
|
|
882
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
883
|
-
return deserializeAws_restJson1GetAttributeGroupCommandError(output, context);
|
|
884
|
-
}
|
|
885
|
-
const contents = map({
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
898
|
+
}); };
|
|
899
|
+
export var deserializeAws_restJson1DeleteAttributeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
900
|
+
var contents, data, _a, _b;
|
|
901
|
+
return __generator(this, function (_c) {
|
|
902
|
+
switch (_c.label) {
|
|
903
|
+
case 0:
|
|
904
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
+
return [2, deserializeAws_restJson1DeleteAttributeGroupCommandError(output, context)];
|
|
906
|
+
}
|
|
907
|
+
contents = map({
|
|
908
|
+
$metadata: deserializeMetadata(output),
|
|
909
|
+
});
|
|
910
|
+
_a = __expectNonNull;
|
|
911
|
+
_b = __expectObject;
|
|
912
|
+
return [4, parseBody(output.body, context)];
|
|
913
|
+
case 1:
|
|
914
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
915
|
+
if (data.attributeGroup != null) {
|
|
916
|
+
contents.attributeGroup = deserializeAws_restJson1AttributeGroupSummary(data.attributeGroup, context);
|
|
917
|
+
}
|
|
918
|
+
return [2, contents];
|
|
919
|
+
}
|
|
887
920
|
});
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
case "ResourceNotFoundException":
|
|
929
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
930
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
931
|
-
case "ValidationException":
|
|
932
|
-
case "com.amazonaws.servicecatalogappregistry#ValidationException":
|
|
933
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
934
|
-
default:
|
|
935
|
-
const parsedBody = parsedOutput.body;
|
|
936
|
-
throwDefaultError({
|
|
937
|
-
output,
|
|
938
|
-
parsedBody,
|
|
939
|
-
exceptionCtor: __BaseException,
|
|
940
|
-
errorCode,
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
export const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
945
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
946
|
-
return deserializeAws_restJson1ListApplicationsCommandError(output, context);
|
|
947
|
-
}
|
|
948
|
-
const contents = map({
|
|
949
|
-
$metadata: deserializeMetadata(output),
|
|
921
|
+
}); };
|
|
922
|
+
var deserializeAws_restJson1DeleteAttributeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
923
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
924
|
+
var _c;
|
|
925
|
+
return __generator(this, function (_d) {
|
|
926
|
+
switch (_d.label) {
|
|
927
|
+
case 0:
|
|
928
|
+
_a = [__assign({}, output)];
|
|
929
|
+
_c = {};
|
|
930
|
+
return [4, parseErrorBody(output.body, context)];
|
|
931
|
+
case 1:
|
|
932
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
933
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
+
_b = errorCode;
|
|
935
|
+
switch (_b) {
|
|
936
|
+
case "InternalServerException": return [3, 2];
|
|
937
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
938
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
939
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
940
|
+
case "ValidationException": return [3, 6];
|
|
941
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
942
|
+
}
|
|
943
|
+
return [3, 8];
|
|
944
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
945
|
+
case 3: throw _d.sent();
|
|
946
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
947
|
+
case 5: throw _d.sent();
|
|
948
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
949
|
+
case 7: throw _d.sent();
|
|
950
|
+
case 8:
|
|
951
|
+
parsedBody = parsedOutput.body;
|
|
952
|
+
throwDefaultError({
|
|
953
|
+
output: output,
|
|
954
|
+
parsedBody: parsedBody,
|
|
955
|
+
exceptionCtor: __BaseException,
|
|
956
|
+
errorCode: errorCode,
|
|
957
|
+
});
|
|
958
|
+
_d.label = 9;
|
|
959
|
+
case 9: return [2];
|
|
960
|
+
}
|
|
950
961
|
});
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
exceptionCtor: __BaseException,
|
|
979
|
-
errorCode,
|
|
980
|
-
});
|
|
981
|
-
}
|
|
982
|
-
};
|
|
983
|
-
export const deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = async (output, context) => {
|
|
984
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
-
return deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError(output, context);
|
|
986
|
-
}
|
|
987
|
-
const contents = map({
|
|
988
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
+
}); };
|
|
963
|
+
export var deserializeAws_restJson1DisassociateAttributeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
964
|
+
var contents, data, _a, _b;
|
|
965
|
+
return __generator(this, function (_c) {
|
|
966
|
+
switch (_c.label) {
|
|
967
|
+
case 0:
|
|
968
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
969
|
+
return [2, deserializeAws_restJson1DisassociateAttributeGroupCommandError(output, context)];
|
|
970
|
+
}
|
|
971
|
+
contents = map({
|
|
972
|
+
$metadata: deserializeMetadata(output),
|
|
973
|
+
});
|
|
974
|
+
_a = __expectNonNull;
|
|
975
|
+
_b = __expectObject;
|
|
976
|
+
return [4, parseBody(output.body, context)];
|
|
977
|
+
case 1:
|
|
978
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
979
|
+
if (data.applicationArn != null) {
|
|
980
|
+
contents.applicationArn = __expectString(data.applicationArn);
|
|
981
|
+
}
|
|
982
|
+
if (data.attributeGroupArn != null) {
|
|
983
|
+
contents.attributeGroupArn = __expectString(data.attributeGroupArn);
|
|
984
|
+
}
|
|
985
|
+
return [2, contents];
|
|
986
|
+
}
|
|
989
987
|
});
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
};
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
throw
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
+
}); };
|
|
989
|
+
var deserializeAws_restJson1DisassociateAttributeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
990
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
991
|
+
var _c;
|
|
992
|
+
return __generator(this, function (_d) {
|
|
993
|
+
switch (_d.label) {
|
|
994
|
+
case 0:
|
|
995
|
+
_a = [__assign({}, output)];
|
|
996
|
+
_c = {};
|
|
997
|
+
return [4, parseErrorBody(output.body, context)];
|
|
998
|
+
case 1:
|
|
999
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1000
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
+
_b = errorCode;
|
|
1002
|
+
switch (_b) {
|
|
1003
|
+
case "InternalServerException": return [3, 2];
|
|
1004
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1005
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1006
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1007
|
+
case "ValidationException": return [3, 6];
|
|
1008
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1009
|
+
}
|
|
1010
|
+
return [3, 8];
|
|
1011
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1012
|
+
case 3: throw _d.sent();
|
|
1013
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1014
|
+
case 5: throw _d.sent();
|
|
1015
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1016
|
+
case 7: throw _d.sent();
|
|
1017
|
+
case 8:
|
|
1018
|
+
parsedBody = parsedOutput.body;
|
|
1019
|
+
throwDefaultError({
|
|
1020
|
+
output: output,
|
|
1021
|
+
parsedBody: parsedBody,
|
|
1022
|
+
exceptionCtor: __BaseException,
|
|
1023
|
+
errorCode: errorCode,
|
|
1024
|
+
});
|
|
1025
|
+
_d.label = 9;
|
|
1026
|
+
case 9: return [2];
|
|
1027
|
+
}
|
|
1031
1028
|
});
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
default:
|
|
1058
|
-
const parsedBody = parsedOutput.body;
|
|
1059
|
-
throwDefaultError({
|
|
1060
|
-
output,
|
|
1061
|
-
parsedBody,
|
|
1062
|
-
exceptionCtor: __BaseException,
|
|
1063
|
-
errorCode,
|
|
1064
|
-
});
|
|
1065
|
-
}
|
|
1066
|
-
};
|
|
1067
|
-
export const deserializeAws_restJson1ListAttributeGroupsCommand = async (output, context) => {
|
|
1068
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1069
|
-
return deserializeAws_restJson1ListAttributeGroupsCommandError(output, context);
|
|
1070
|
-
}
|
|
1071
|
-
const contents = map({
|
|
1072
|
-
$metadata: deserializeMetadata(output),
|
|
1029
|
+
}); };
|
|
1030
|
+
export var deserializeAws_restJson1DisassociateResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1031
|
+
var contents, data, _a, _b;
|
|
1032
|
+
return __generator(this, function (_c) {
|
|
1033
|
+
switch (_c.label) {
|
|
1034
|
+
case 0:
|
|
1035
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1036
|
+
return [2, deserializeAws_restJson1DisassociateResourceCommandError(output, context)];
|
|
1037
|
+
}
|
|
1038
|
+
contents = map({
|
|
1039
|
+
$metadata: deserializeMetadata(output),
|
|
1040
|
+
});
|
|
1041
|
+
_a = __expectNonNull;
|
|
1042
|
+
_b = __expectObject;
|
|
1043
|
+
return [4, parseBody(output.body, context)];
|
|
1044
|
+
case 1:
|
|
1045
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1046
|
+
if (data.applicationArn != null) {
|
|
1047
|
+
contents.applicationArn = __expectString(data.applicationArn);
|
|
1048
|
+
}
|
|
1049
|
+
if (data.resourceArn != null) {
|
|
1050
|
+
contents.resourceArn = __expectString(data.resourceArn);
|
|
1051
|
+
}
|
|
1052
|
+
return [2, contents];
|
|
1053
|
+
}
|
|
1073
1054
|
});
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
};
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1055
|
+
}); };
|
|
1056
|
+
var deserializeAws_restJson1DisassociateResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1057
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1058
|
+
var _c;
|
|
1059
|
+
return __generator(this, function (_d) {
|
|
1060
|
+
switch (_d.label) {
|
|
1061
|
+
case 0:
|
|
1062
|
+
_a = [__assign({}, output)];
|
|
1063
|
+
_c = {};
|
|
1064
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1065
|
+
case 1:
|
|
1066
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1067
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
+
_b = errorCode;
|
|
1069
|
+
switch (_b) {
|
|
1070
|
+
case "InternalServerException": return [3, 2];
|
|
1071
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1072
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1073
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1074
|
+
case "ValidationException": return [3, 6];
|
|
1075
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1076
|
+
}
|
|
1077
|
+
return [3, 8];
|
|
1078
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1079
|
+
case 3: throw _d.sent();
|
|
1080
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1081
|
+
case 5: throw _d.sent();
|
|
1082
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1083
|
+
case 7: throw _d.sent();
|
|
1084
|
+
case 8:
|
|
1085
|
+
parsedBody = parsedOutput.body;
|
|
1086
|
+
throwDefaultError({
|
|
1087
|
+
output: output,
|
|
1088
|
+
parsedBody: parsedBody,
|
|
1089
|
+
exceptionCtor: __BaseException,
|
|
1090
|
+
errorCode: errorCode,
|
|
1091
|
+
});
|
|
1092
|
+
_d.label = 9;
|
|
1093
|
+
case 9: return [2];
|
|
1094
|
+
}
|
|
1112
1095
|
});
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1096
|
+
}); };
|
|
1097
|
+
export var deserializeAws_restJson1GetApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1098
|
+
var contents, data, _a, _b;
|
|
1099
|
+
return __generator(this, function (_c) {
|
|
1100
|
+
switch (_c.label) {
|
|
1101
|
+
case 0:
|
|
1102
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1103
|
+
return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
|
|
1104
|
+
}
|
|
1105
|
+
contents = map({
|
|
1106
|
+
$metadata: deserializeMetadata(output),
|
|
1107
|
+
});
|
|
1108
|
+
_a = __expectNonNull;
|
|
1109
|
+
_b = __expectObject;
|
|
1110
|
+
return [4, parseBody(output.body, context)];
|
|
1111
|
+
case 1:
|
|
1112
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1113
|
+
if (data.arn != null) {
|
|
1114
|
+
contents.arn = __expectString(data.arn);
|
|
1115
|
+
}
|
|
1116
|
+
if (data.associatedResourceCount != null) {
|
|
1117
|
+
contents.associatedResourceCount = __expectInt32(data.associatedResourceCount);
|
|
1118
|
+
}
|
|
1119
|
+
if (data.creationTime != null) {
|
|
1120
|
+
contents.creationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
1121
|
+
}
|
|
1122
|
+
if (data.description != null) {
|
|
1123
|
+
contents.description = __expectString(data.description);
|
|
1124
|
+
}
|
|
1125
|
+
if (data.id != null) {
|
|
1126
|
+
contents.id = __expectString(data.id);
|
|
1127
|
+
}
|
|
1128
|
+
if (data.integrations != null) {
|
|
1129
|
+
contents.integrations = deserializeAws_restJson1Integrations(data.integrations, context);
|
|
1130
|
+
}
|
|
1131
|
+
if (data.lastUpdateTime != null) {
|
|
1132
|
+
contents.lastUpdateTime = __expectNonNull(__parseRfc3339DateTime(data.lastUpdateTime));
|
|
1133
|
+
}
|
|
1134
|
+
if (data.name != null) {
|
|
1135
|
+
contents.name = __expectString(data.name);
|
|
1136
|
+
}
|
|
1137
|
+
if (data.tags != null) {
|
|
1138
|
+
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1139
|
+
}
|
|
1140
|
+
return [2, contents];
|
|
1141
|
+
}
|
|
1154
1142
|
});
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
return
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1143
|
+
}); };
|
|
1144
|
+
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1145
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1146
|
+
var _c;
|
|
1147
|
+
return __generator(this, function (_d) {
|
|
1148
|
+
switch (_d.label) {
|
|
1149
|
+
case 0:
|
|
1150
|
+
_a = [__assign({}, output)];
|
|
1151
|
+
_c = {};
|
|
1152
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1153
|
+
case 1:
|
|
1154
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1155
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1156
|
+
_b = errorCode;
|
|
1157
|
+
switch (_b) {
|
|
1158
|
+
case "ConflictException": return [3, 2];
|
|
1159
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
1160
|
+
case "InternalServerException": return [3, 4];
|
|
1161
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
1162
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1163
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
|
|
1164
|
+
case "ValidationException": return [3, 8];
|
|
1165
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
|
|
1166
|
+
}
|
|
1167
|
+
return [3, 10];
|
|
1168
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1169
|
+
case 3: throw _d.sent();
|
|
1170
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1171
|
+
case 5: throw _d.sent();
|
|
1172
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1173
|
+
case 7: throw _d.sent();
|
|
1174
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1175
|
+
case 9: throw _d.sent();
|
|
1176
|
+
case 10:
|
|
1177
|
+
parsedBody = parsedOutput.body;
|
|
1178
|
+
throwDefaultError({
|
|
1179
|
+
output: output,
|
|
1180
|
+
parsedBody: parsedBody,
|
|
1181
|
+
exceptionCtor: __BaseException,
|
|
1182
|
+
errorCode: errorCode,
|
|
1183
|
+
});
|
|
1184
|
+
_d.label = 11;
|
|
1185
|
+
case 11: return [2];
|
|
1186
|
+
}
|
|
1193
1187
|
});
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
};
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
case "InternalServerException":
|
|
1217
|
-
case "com.amazonaws.servicecatalogappregistry#InternalServerException":
|
|
1218
|
-
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1219
|
-
case "ResourceNotFoundException":
|
|
1220
|
-
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException":
|
|
1221
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1222
|
-
default:
|
|
1223
|
-
const parsedBody = parsedOutput.body;
|
|
1224
|
-
throwDefaultError({
|
|
1225
|
-
output,
|
|
1226
|
-
parsedBody,
|
|
1227
|
-
exceptionCtor: __BaseException,
|
|
1228
|
-
errorCode,
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
export const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1233
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1234
|
-
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1235
|
-
}
|
|
1236
|
-
const contents = map({
|
|
1237
|
-
$metadata: deserializeMetadata(output),
|
|
1188
|
+
}); };
|
|
1189
|
+
export var deserializeAws_restJson1GetAssociatedResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1190
|
+
var contents, data, _a, _b;
|
|
1191
|
+
return __generator(this, function (_c) {
|
|
1192
|
+
switch (_c.label) {
|
|
1193
|
+
case 0:
|
|
1194
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1195
|
+
return [2, deserializeAws_restJson1GetAssociatedResourceCommandError(output, context)];
|
|
1196
|
+
}
|
|
1197
|
+
contents = map({
|
|
1198
|
+
$metadata: deserializeMetadata(output),
|
|
1199
|
+
});
|
|
1200
|
+
_a = __expectNonNull;
|
|
1201
|
+
_b = __expectObject;
|
|
1202
|
+
return [4, parseBody(output.body, context)];
|
|
1203
|
+
case 1:
|
|
1204
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1205
|
+
if (data.resource != null) {
|
|
1206
|
+
contents.resource = deserializeAws_restJson1Resource(data.resource, context);
|
|
1207
|
+
}
|
|
1208
|
+
return [2, contents];
|
|
1209
|
+
}
|
|
1238
1210
|
});
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1211
|
+
}); };
|
|
1212
|
+
var deserializeAws_restJson1GetAssociatedResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1213
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1214
|
+
var _c;
|
|
1215
|
+
return __generator(this, function (_d) {
|
|
1216
|
+
switch (_d.label) {
|
|
1217
|
+
case 0:
|
|
1218
|
+
_a = [__assign({}, output)];
|
|
1219
|
+
_c = {};
|
|
1220
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1221
|
+
case 1:
|
|
1222
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1223
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1224
|
+
_b = errorCode;
|
|
1225
|
+
switch (_b) {
|
|
1226
|
+
case "InternalServerException": return [3, 2];
|
|
1227
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1228
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1229
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1230
|
+
case "ValidationException": return [3, 6];
|
|
1231
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1232
|
+
}
|
|
1233
|
+
return [3, 8];
|
|
1234
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1235
|
+
case 3: throw _d.sent();
|
|
1236
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1237
|
+
case 5: throw _d.sent();
|
|
1238
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1239
|
+
case 7: throw _d.sent();
|
|
1240
|
+
case 8:
|
|
1241
|
+
parsedBody = parsedOutput.body;
|
|
1242
|
+
throwDefaultError({
|
|
1243
|
+
output: output,
|
|
1244
|
+
parsedBody: parsedBody,
|
|
1245
|
+
exceptionCtor: __BaseException,
|
|
1246
|
+
errorCode: errorCode,
|
|
1247
|
+
});
|
|
1248
|
+
_d.label = 9;
|
|
1249
|
+
case 9: return [2];
|
|
1250
|
+
}
|
|
1274
1251
|
});
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1252
|
+
}); };
|
|
1253
|
+
export var deserializeAws_restJson1GetAttributeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1254
|
+
var contents, data, _a, _b;
|
|
1255
|
+
return __generator(this, function (_c) {
|
|
1256
|
+
switch (_c.label) {
|
|
1257
|
+
case 0:
|
|
1258
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
+
return [2, deserializeAws_restJson1GetAttributeGroupCommandError(output, context)];
|
|
1260
|
+
}
|
|
1261
|
+
contents = map({
|
|
1262
|
+
$metadata: deserializeMetadata(output),
|
|
1263
|
+
});
|
|
1264
|
+
_a = __expectNonNull;
|
|
1265
|
+
_b = __expectObject;
|
|
1266
|
+
return [4, parseBody(output.body, context)];
|
|
1267
|
+
case 1:
|
|
1268
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1269
|
+
if (data.arn != null) {
|
|
1270
|
+
contents.arn = __expectString(data.arn);
|
|
1271
|
+
}
|
|
1272
|
+
if (data.attributes != null) {
|
|
1273
|
+
contents.attributes = __expectString(data.attributes);
|
|
1274
|
+
}
|
|
1275
|
+
if (data.creationTime != null) {
|
|
1276
|
+
contents.creationTime = __expectNonNull(__parseRfc3339DateTime(data.creationTime));
|
|
1277
|
+
}
|
|
1278
|
+
if (data.description != null) {
|
|
1279
|
+
contents.description = __expectString(data.description);
|
|
1280
|
+
}
|
|
1281
|
+
if (data.id != null) {
|
|
1282
|
+
contents.id = __expectString(data.id);
|
|
1283
|
+
}
|
|
1284
|
+
if (data.lastUpdateTime != null) {
|
|
1285
|
+
contents.lastUpdateTime = __expectNonNull(__parseRfc3339DateTime(data.lastUpdateTime));
|
|
1286
|
+
}
|
|
1287
|
+
if (data.name != null) {
|
|
1288
|
+
contents.name = __expectString(data.name);
|
|
1289
|
+
}
|
|
1290
|
+
if (data.tags != null) {
|
|
1291
|
+
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1292
|
+
}
|
|
1293
|
+
return [2, contents];
|
|
1294
|
+
}
|
|
1310
1295
|
});
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
return
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1296
|
+
}); };
|
|
1297
|
+
var deserializeAws_restJson1GetAttributeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1298
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1299
|
+
var _c;
|
|
1300
|
+
return __generator(this, function (_d) {
|
|
1301
|
+
switch (_d.label) {
|
|
1302
|
+
case 0:
|
|
1303
|
+
_a = [__assign({}, output)];
|
|
1304
|
+
_c = {};
|
|
1305
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1306
|
+
case 1:
|
|
1307
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1308
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
|
+
_b = errorCode;
|
|
1310
|
+
switch (_b) {
|
|
1311
|
+
case "ConflictException": return [3, 2];
|
|
1312
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
1313
|
+
case "InternalServerException": return [3, 4];
|
|
1314
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
1315
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1316
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
|
|
1317
|
+
case "ValidationException": return [3, 8];
|
|
1318
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
|
|
1319
|
+
}
|
|
1320
|
+
return [3, 10];
|
|
1321
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1322
|
+
case 3: throw _d.sent();
|
|
1323
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1324
|
+
case 5: throw _d.sent();
|
|
1325
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1326
|
+
case 7: throw _d.sent();
|
|
1327
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1328
|
+
case 9: throw _d.sent();
|
|
1329
|
+
case 10:
|
|
1330
|
+
parsedBody = parsedOutput.body;
|
|
1331
|
+
throwDefaultError({
|
|
1332
|
+
output: output,
|
|
1333
|
+
parsedBody: parsedBody,
|
|
1334
|
+
exceptionCtor: __BaseException,
|
|
1335
|
+
errorCode: errorCode,
|
|
1336
|
+
});
|
|
1337
|
+
_d.label = 11;
|
|
1338
|
+
case 11: return [2];
|
|
1339
|
+
}
|
|
1352
1340
|
});
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
default:
|
|
1379
|
-
const parsedBody = parsedOutput.body;
|
|
1380
|
-
throwDefaultError({
|
|
1381
|
-
output,
|
|
1382
|
-
parsedBody,
|
|
1383
|
-
exceptionCtor: __BaseException,
|
|
1384
|
-
errorCode,
|
|
1385
|
-
});
|
|
1386
|
-
}
|
|
1387
|
-
};
|
|
1388
|
-
const map = __map;
|
|
1389
|
-
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1390
|
-
const contents = map({});
|
|
1391
|
-
const data = parsedOutput.body;
|
|
1392
|
-
if (data.message != null) {
|
|
1393
|
-
contents.message = __expectString(data.message);
|
|
1394
|
-
}
|
|
1395
|
-
const exception = new ConflictException({
|
|
1396
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1397
|
-
...contents,
|
|
1341
|
+
}); };
|
|
1342
|
+
export var deserializeAws_restJson1ListApplicationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1343
|
+
var contents, data, _a, _b;
|
|
1344
|
+
return __generator(this, function (_c) {
|
|
1345
|
+
switch (_c.label) {
|
|
1346
|
+
case 0:
|
|
1347
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1348
|
+
return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
|
|
1349
|
+
}
|
|
1350
|
+
contents = map({
|
|
1351
|
+
$metadata: deserializeMetadata(output),
|
|
1352
|
+
});
|
|
1353
|
+
_a = __expectNonNull;
|
|
1354
|
+
_b = __expectObject;
|
|
1355
|
+
return [4, parseBody(output.body, context)];
|
|
1356
|
+
case 1:
|
|
1357
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1358
|
+
if (data.applications != null) {
|
|
1359
|
+
contents.applications = deserializeAws_restJson1ApplicationSummaries(data.applications, context);
|
|
1360
|
+
}
|
|
1361
|
+
if (data.nextToken != null) {
|
|
1362
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1363
|
+
}
|
|
1364
|
+
return [2, contents];
|
|
1365
|
+
}
|
|
1398
1366
|
});
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1367
|
+
}); };
|
|
1368
|
+
var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1369
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1370
|
+
var _c;
|
|
1371
|
+
return __generator(this, function (_d) {
|
|
1372
|
+
switch (_d.label) {
|
|
1373
|
+
case 0:
|
|
1374
|
+
_a = [__assign({}, output)];
|
|
1375
|
+
_c = {};
|
|
1376
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1377
|
+
case 1:
|
|
1378
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1379
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1380
|
+
_b = errorCode;
|
|
1381
|
+
switch (_b) {
|
|
1382
|
+
case "InternalServerException": return [3, 2];
|
|
1383
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1384
|
+
case "ValidationException": return [3, 4];
|
|
1385
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 4];
|
|
1386
|
+
}
|
|
1387
|
+
return [3, 6];
|
|
1388
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1389
|
+
case 3: throw _d.sent();
|
|
1390
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1391
|
+
case 5: throw _d.sent();
|
|
1392
|
+
case 6:
|
|
1393
|
+
parsedBody = parsedOutput.body;
|
|
1394
|
+
throwDefaultError({
|
|
1395
|
+
output: output,
|
|
1396
|
+
parsedBody: parsedBody,
|
|
1397
|
+
exceptionCtor: __BaseException,
|
|
1398
|
+
errorCode: errorCode,
|
|
1399
|
+
});
|
|
1400
|
+
_d.label = 7;
|
|
1401
|
+
case 7: return [2];
|
|
1402
|
+
}
|
|
1410
1403
|
});
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1404
|
+
}); };
|
|
1405
|
+
export var deserializeAws_restJson1ListAssociatedAttributeGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1406
|
+
var contents, data, _a, _b;
|
|
1407
|
+
return __generator(this, function (_c) {
|
|
1408
|
+
switch (_c.label) {
|
|
1409
|
+
case 0:
|
|
1410
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1411
|
+
return [2, deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError(output, context)];
|
|
1412
|
+
}
|
|
1413
|
+
contents = map({
|
|
1414
|
+
$metadata: deserializeMetadata(output),
|
|
1415
|
+
});
|
|
1416
|
+
_a = __expectNonNull;
|
|
1417
|
+
_b = __expectObject;
|
|
1418
|
+
return [4, parseBody(output.body, context)];
|
|
1419
|
+
case 1:
|
|
1420
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1421
|
+
if (data.attributeGroups != null) {
|
|
1422
|
+
contents.attributeGroups = deserializeAws_restJson1AttributeGroupIds(data.attributeGroups, context);
|
|
1423
|
+
}
|
|
1424
|
+
if (data.nextToken != null) {
|
|
1425
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1426
|
+
}
|
|
1427
|
+
return [2, contents];
|
|
1428
|
+
}
|
|
1422
1429
|
});
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1430
|
+
}); };
|
|
1431
|
+
var deserializeAws_restJson1ListAssociatedAttributeGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1432
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1433
|
+
var _c;
|
|
1434
|
+
return __generator(this, function (_d) {
|
|
1435
|
+
switch (_d.label) {
|
|
1436
|
+
case 0:
|
|
1437
|
+
_a = [__assign({}, output)];
|
|
1438
|
+
_c = {};
|
|
1439
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1440
|
+
case 1:
|
|
1441
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1442
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
+
_b = errorCode;
|
|
1444
|
+
switch (_b) {
|
|
1445
|
+
case "InternalServerException": return [3, 2];
|
|
1446
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1447
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1448
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1449
|
+
case "ValidationException": return [3, 6];
|
|
1450
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1451
|
+
}
|
|
1452
|
+
return [3, 8];
|
|
1453
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1454
|
+
case 3: throw _d.sent();
|
|
1455
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1456
|
+
case 5: throw _d.sent();
|
|
1457
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1458
|
+
case 7: throw _d.sent();
|
|
1459
|
+
case 8:
|
|
1460
|
+
parsedBody = parsedOutput.body;
|
|
1461
|
+
throwDefaultError({
|
|
1462
|
+
output: output,
|
|
1463
|
+
parsedBody: parsedBody,
|
|
1464
|
+
exceptionCtor: __BaseException,
|
|
1465
|
+
errorCode: errorCode,
|
|
1466
|
+
});
|
|
1467
|
+
_d.label = 9;
|
|
1468
|
+
case 9: return [2];
|
|
1469
|
+
}
|
|
1434
1470
|
});
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1471
|
+
}); };
|
|
1472
|
+
export var deserializeAws_restJson1ListAssociatedResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1473
|
+
var contents, data, _a, _b;
|
|
1474
|
+
return __generator(this, function (_c) {
|
|
1475
|
+
switch (_c.label) {
|
|
1476
|
+
case 0:
|
|
1477
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1478
|
+
return [2, deserializeAws_restJson1ListAssociatedResourcesCommandError(output, context)];
|
|
1479
|
+
}
|
|
1480
|
+
contents = map({
|
|
1481
|
+
$metadata: deserializeMetadata(output),
|
|
1482
|
+
});
|
|
1483
|
+
_a = __expectNonNull;
|
|
1484
|
+
_b = __expectObject;
|
|
1485
|
+
return [4, parseBody(output.body, context)];
|
|
1486
|
+
case 1:
|
|
1487
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1488
|
+
if (data.nextToken != null) {
|
|
1489
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1490
|
+
}
|
|
1491
|
+
if (data.resources != null) {
|
|
1492
|
+
contents.resources = deserializeAws_restJson1Resources(data.resources, context);
|
|
1493
|
+
}
|
|
1494
|
+
return [2, contents];
|
|
1495
|
+
}
|
|
1446
1496
|
});
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1497
|
+
}); };
|
|
1498
|
+
var deserializeAws_restJson1ListAssociatedResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1499
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1500
|
+
var _c;
|
|
1501
|
+
return __generator(this, function (_d) {
|
|
1502
|
+
switch (_d.label) {
|
|
1503
|
+
case 0:
|
|
1504
|
+
_a = [__assign({}, output)];
|
|
1505
|
+
_c = {};
|
|
1506
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1507
|
+
case 1:
|
|
1508
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1509
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1510
|
+
_b = errorCode;
|
|
1511
|
+
switch (_b) {
|
|
1512
|
+
case "InternalServerException": return [3, 2];
|
|
1513
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1514
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1515
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1516
|
+
case "ValidationException": return [3, 6];
|
|
1517
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1518
|
+
}
|
|
1519
|
+
return [3, 8];
|
|
1520
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1521
|
+
case 3: throw _d.sent();
|
|
1522
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1523
|
+
case 5: throw _d.sent();
|
|
1524
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1525
|
+
case 7: throw _d.sent();
|
|
1526
|
+
case 8:
|
|
1527
|
+
parsedBody = parsedOutput.body;
|
|
1528
|
+
throwDefaultError({
|
|
1529
|
+
output: output,
|
|
1530
|
+
parsedBody: parsedBody,
|
|
1531
|
+
exceptionCtor: __BaseException,
|
|
1532
|
+
errorCode: errorCode,
|
|
1533
|
+
});
|
|
1534
|
+
_d.label = 9;
|
|
1535
|
+
case 9: return [2];
|
|
1536
|
+
}
|
|
1537
|
+
});
|
|
1538
|
+
}); };
|
|
1539
|
+
export var deserializeAws_restJson1ListAttributeGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1540
|
+
var contents, data, _a, _b;
|
|
1541
|
+
return __generator(this, function (_c) {
|
|
1542
|
+
switch (_c.label) {
|
|
1543
|
+
case 0:
|
|
1544
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1545
|
+
return [2, deserializeAws_restJson1ListAttributeGroupsCommandError(output, context)];
|
|
1546
|
+
}
|
|
1547
|
+
contents = map({
|
|
1548
|
+
$metadata: deserializeMetadata(output),
|
|
1549
|
+
});
|
|
1550
|
+
_a = __expectNonNull;
|
|
1551
|
+
_b = __expectObject;
|
|
1552
|
+
return [4, parseBody(output.body, context)];
|
|
1553
|
+
case 1:
|
|
1554
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1555
|
+
if (data.attributeGroups != null) {
|
|
1556
|
+
contents.attributeGroups = deserializeAws_restJson1AttributeGroupSummaries(data.attributeGroups, context);
|
|
1557
|
+
}
|
|
1558
|
+
if (data.nextToken != null) {
|
|
1559
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1560
|
+
}
|
|
1561
|
+
return [2, contents];
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
}); };
|
|
1565
|
+
var deserializeAws_restJson1ListAttributeGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1566
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1567
|
+
var _c;
|
|
1568
|
+
return __generator(this, function (_d) {
|
|
1569
|
+
switch (_d.label) {
|
|
1570
|
+
case 0:
|
|
1571
|
+
_a = [__assign({}, output)];
|
|
1572
|
+
_c = {};
|
|
1573
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1574
|
+
case 1:
|
|
1575
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1576
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1577
|
+
_b = errorCode;
|
|
1578
|
+
switch (_b) {
|
|
1579
|
+
case "InternalServerException": return [3, 2];
|
|
1580
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1581
|
+
case "ValidationException": return [3, 4];
|
|
1582
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 4];
|
|
1583
|
+
}
|
|
1584
|
+
return [3, 6];
|
|
1585
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1586
|
+
case 3: throw _d.sent();
|
|
1587
|
+
case 4: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1588
|
+
case 5: throw _d.sent();
|
|
1589
|
+
case 6:
|
|
1590
|
+
parsedBody = parsedOutput.body;
|
|
1591
|
+
throwDefaultError({
|
|
1592
|
+
output: output,
|
|
1593
|
+
parsedBody: parsedBody,
|
|
1594
|
+
exceptionCtor: __BaseException,
|
|
1595
|
+
errorCode: errorCode,
|
|
1596
|
+
});
|
|
1597
|
+
_d.label = 7;
|
|
1598
|
+
case 7: return [2];
|
|
1599
|
+
}
|
|
1600
|
+
});
|
|
1601
|
+
}); };
|
|
1602
|
+
export var deserializeAws_restJson1ListAttributeGroupsForApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1603
|
+
var contents, data, _a, _b;
|
|
1604
|
+
return __generator(this, function (_c) {
|
|
1605
|
+
switch (_c.label) {
|
|
1606
|
+
case 0:
|
|
1607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1608
|
+
return [2, deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError(output, context)];
|
|
1609
|
+
}
|
|
1610
|
+
contents = map({
|
|
1611
|
+
$metadata: deserializeMetadata(output),
|
|
1612
|
+
});
|
|
1613
|
+
_a = __expectNonNull;
|
|
1614
|
+
_b = __expectObject;
|
|
1615
|
+
return [4, parseBody(output.body, context)];
|
|
1616
|
+
case 1:
|
|
1617
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1618
|
+
if (data.attributeGroupsDetails != null) {
|
|
1619
|
+
contents.attributeGroupsDetails = deserializeAws_restJson1AttributeGroupDetailsList(data.attributeGroupsDetails, context);
|
|
1620
|
+
}
|
|
1621
|
+
if (data.nextToken != null) {
|
|
1622
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1623
|
+
}
|
|
1624
|
+
return [2, contents];
|
|
1625
|
+
}
|
|
1626
|
+
});
|
|
1627
|
+
}); };
|
|
1628
|
+
var deserializeAws_restJson1ListAttributeGroupsForApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1629
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1630
|
+
var _c;
|
|
1631
|
+
return __generator(this, function (_d) {
|
|
1632
|
+
switch (_d.label) {
|
|
1633
|
+
case 0:
|
|
1634
|
+
_a = [__assign({}, output)];
|
|
1635
|
+
_c = {};
|
|
1636
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1637
|
+
case 1:
|
|
1638
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1639
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
+
_b = errorCode;
|
|
1641
|
+
switch (_b) {
|
|
1642
|
+
case "InternalServerException": return [3, 2];
|
|
1643
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1644
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1645
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1646
|
+
case "ValidationException": return [3, 6];
|
|
1647
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1648
|
+
}
|
|
1649
|
+
return [3, 8];
|
|
1650
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1651
|
+
case 3: throw _d.sent();
|
|
1652
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1653
|
+
case 5: throw _d.sent();
|
|
1654
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1655
|
+
case 7: throw _d.sent();
|
|
1656
|
+
case 8:
|
|
1657
|
+
parsedBody = parsedOutput.body;
|
|
1658
|
+
throwDefaultError({
|
|
1659
|
+
output: output,
|
|
1660
|
+
parsedBody: parsedBody,
|
|
1661
|
+
exceptionCtor: __BaseException,
|
|
1662
|
+
errorCode: errorCode,
|
|
1663
|
+
});
|
|
1664
|
+
_d.label = 9;
|
|
1665
|
+
case 9: return [2];
|
|
1666
|
+
}
|
|
1667
|
+
});
|
|
1668
|
+
}); };
|
|
1669
|
+
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1670
|
+
var contents, data, _a, _b;
|
|
1671
|
+
return __generator(this, function (_c) {
|
|
1672
|
+
switch (_c.label) {
|
|
1673
|
+
case 0:
|
|
1674
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1675
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1676
|
+
}
|
|
1677
|
+
contents = map({
|
|
1678
|
+
$metadata: deserializeMetadata(output),
|
|
1679
|
+
});
|
|
1680
|
+
_a = __expectNonNull;
|
|
1681
|
+
_b = __expectObject;
|
|
1682
|
+
return [4, parseBody(output.body, context)];
|
|
1683
|
+
case 1:
|
|
1684
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1685
|
+
if (data.tags != null) {
|
|
1686
|
+
contents.tags = deserializeAws_restJson1Tags(data.tags, context);
|
|
1687
|
+
}
|
|
1688
|
+
return [2, contents];
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
}); };
|
|
1692
|
+
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1693
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1694
|
+
var _c;
|
|
1695
|
+
return __generator(this, function (_d) {
|
|
1696
|
+
switch (_d.label) {
|
|
1697
|
+
case 0:
|
|
1698
|
+
_a = [__assign({}, output)];
|
|
1699
|
+
_c = {};
|
|
1700
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1701
|
+
case 1:
|
|
1702
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1703
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
+
_b = errorCode;
|
|
1705
|
+
switch (_b) {
|
|
1706
|
+
case "InternalServerException": return [3, 2];
|
|
1707
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1708
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1709
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1710
|
+
case "ValidationException": return [3, 6];
|
|
1711
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1712
|
+
}
|
|
1713
|
+
return [3, 8];
|
|
1714
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1715
|
+
case 3: throw _d.sent();
|
|
1716
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1717
|
+
case 5: throw _d.sent();
|
|
1718
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1719
|
+
case 7: throw _d.sent();
|
|
1720
|
+
case 8:
|
|
1721
|
+
parsedBody = parsedOutput.body;
|
|
1722
|
+
throwDefaultError({
|
|
1723
|
+
output: output,
|
|
1724
|
+
parsedBody: parsedBody,
|
|
1725
|
+
exceptionCtor: __BaseException,
|
|
1726
|
+
errorCode: errorCode,
|
|
1727
|
+
});
|
|
1728
|
+
_d.label = 9;
|
|
1729
|
+
case 9: return [2];
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
1732
|
+
}); };
|
|
1733
|
+
export var deserializeAws_restJson1SyncResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1734
|
+
var contents, data, _a, _b;
|
|
1735
|
+
return __generator(this, function (_c) {
|
|
1736
|
+
switch (_c.label) {
|
|
1737
|
+
case 0:
|
|
1738
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1739
|
+
return [2, deserializeAws_restJson1SyncResourceCommandError(output, context)];
|
|
1740
|
+
}
|
|
1741
|
+
contents = map({
|
|
1742
|
+
$metadata: deserializeMetadata(output),
|
|
1743
|
+
});
|
|
1744
|
+
_a = __expectNonNull;
|
|
1745
|
+
_b = __expectObject;
|
|
1746
|
+
return [4, parseBody(output.body, context)];
|
|
1747
|
+
case 1:
|
|
1748
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1749
|
+
if (data.actionTaken != null) {
|
|
1750
|
+
contents.actionTaken = __expectString(data.actionTaken);
|
|
1751
|
+
}
|
|
1752
|
+
if (data.applicationArn != null) {
|
|
1753
|
+
contents.applicationArn = __expectString(data.applicationArn);
|
|
1754
|
+
}
|
|
1755
|
+
if (data.resourceArn != null) {
|
|
1756
|
+
contents.resourceArn = __expectString(data.resourceArn);
|
|
1757
|
+
}
|
|
1758
|
+
return [2, contents];
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
}); };
|
|
1762
|
+
var deserializeAws_restJson1SyncResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1763
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1764
|
+
var _c;
|
|
1765
|
+
return __generator(this, function (_d) {
|
|
1766
|
+
switch (_d.label) {
|
|
1767
|
+
case 0:
|
|
1768
|
+
_a = [__assign({}, output)];
|
|
1769
|
+
_c = {};
|
|
1770
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1771
|
+
case 1:
|
|
1772
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1773
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
+
_b = errorCode;
|
|
1775
|
+
switch (_b) {
|
|
1776
|
+
case "ConflictException": return [3, 2];
|
|
1777
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
1778
|
+
case "InternalServerException": return [3, 4];
|
|
1779
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
1780
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1781
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
|
|
1782
|
+
}
|
|
1783
|
+
return [3, 8];
|
|
1784
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1785
|
+
case 3: throw _d.sent();
|
|
1786
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1787
|
+
case 5: throw _d.sent();
|
|
1788
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1789
|
+
case 7: throw _d.sent();
|
|
1790
|
+
case 8:
|
|
1791
|
+
parsedBody = parsedOutput.body;
|
|
1792
|
+
throwDefaultError({
|
|
1793
|
+
output: output,
|
|
1794
|
+
parsedBody: parsedBody,
|
|
1795
|
+
exceptionCtor: __BaseException,
|
|
1796
|
+
errorCode: errorCode,
|
|
1797
|
+
});
|
|
1798
|
+
_d.label = 9;
|
|
1799
|
+
case 9: return [2];
|
|
1800
|
+
}
|
|
1801
|
+
});
|
|
1802
|
+
}); };
|
|
1803
|
+
export var deserializeAws_restJson1TagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1804
|
+
var contents;
|
|
1805
|
+
return __generator(this, function (_a) {
|
|
1806
|
+
switch (_a.label) {
|
|
1807
|
+
case 0:
|
|
1808
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1809
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1810
|
+
}
|
|
1811
|
+
contents = map({
|
|
1812
|
+
$metadata: deserializeMetadata(output),
|
|
1813
|
+
});
|
|
1814
|
+
return [4, collectBody(output.body, context)];
|
|
1815
|
+
case 1:
|
|
1816
|
+
_a.sent();
|
|
1817
|
+
return [2, contents];
|
|
1818
|
+
}
|
|
1819
|
+
});
|
|
1820
|
+
}); };
|
|
1821
|
+
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1822
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1823
|
+
var _c;
|
|
1824
|
+
return __generator(this, function (_d) {
|
|
1825
|
+
switch (_d.label) {
|
|
1826
|
+
case 0:
|
|
1827
|
+
_a = [__assign({}, output)];
|
|
1828
|
+
_c = {};
|
|
1829
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1830
|
+
case 1:
|
|
1831
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1832
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
+
_b = errorCode;
|
|
1834
|
+
switch (_b) {
|
|
1835
|
+
case "InternalServerException": return [3, 2];
|
|
1836
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1837
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1838
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1839
|
+
case "ValidationException": return [3, 6];
|
|
1840
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1841
|
+
}
|
|
1842
|
+
return [3, 8];
|
|
1843
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1844
|
+
case 3: throw _d.sent();
|
|
1845
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1846
|
+
case 5: throw _d.sent();
|
|
1847
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1848
|
+
case 7: throw _d.sent();
|
|
1849
|
+
case 8:
|
|
1850
|
+
parsedBody = parsedOutput.body;
|
|
1851
|
+
throwDefaultError({
|
|
1852
|
+
output: output,
|
|
1853
|
+
parsedBody: parsedBody,
|
|
1854
|
+
exceptionCtor: __BaseException,
|
|
1855
|
+
errorCode: errorCode,
|
|
1856
|
+
});
|
|
1857
|
+
_d.label = 9;
|
|
1858
|
+
case 9: return [2];
|
|
1859
|
+
}
|
|
1860
|
+
});
|
|
1861
|
+
}); };
|
|
1862
|
+
export var deserializeAws_restJson1UntagResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1863
|
+
var contents;
|
|
1864
|
+
return __generator(this, function (_a) {
|
|
1865
|
+
switch (_a.label) {
|
|
1866
|
+
case 0:
|
|
1867
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1868
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1869
|
+
}
|
|
1870
|
+
contents = map({
|
|
1871
|
+
$metadata: deserializeMetadata(output),
|
|
1872
|
+
});
|
|
1873
|
+
return [4, collectBody(output.body, context)];
|
|
1874
|
+
case 1:
|
|
1875
|
+
_a.sent();
|
|
1876
|
+
return [2, contents];
|
|
1877
|
+
}
|
|
1878
|
+
});
|
|
1879
|
+
}); };
|
|
1880
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1881
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1882
|
+
var _c;
|
|
1883
|
+
return __generator(this, function (_d) {
|
|
1884
|
+
switch (_d.label) {
|
|
1885
|
+
case 0:
|
|
1886
|
+
_a = [__assign({}, output)];
|
|
1887
|
+
_c = {};
|
|
1888
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1889
|
+
case 1:
|
|
1890
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1891
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1892
|
+
_b = errorCode;
|
|
1893
|
+
switch (_b) {
|
|
1894
|
+
case "InternalServerException": return [3, 2];
|
|
1895
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 2];
|
|
1896
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1897
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 4];
|
|
1898
|
+
case "ValidationException": return [3, 6];
|
|
1899
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 6];
|
|
1900
|
+
}
|
|
1901
|
+
return [3, 8];
|
|
1902
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1903
|
+
case 3: throw _d.sent();
|
|
1904
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1905
|
+
case 5: throw _d.sent();
|
|
1906
|
+
case 6: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1907
|
+
case 7: throw _d.sent();
|
|
1908
|
+
case 8:
|
|
1909
|
+
parsedBody = parsedOutput.body;
|
|
1910
|
+
throwDefaultError({
|
|
1911
|
+
output: output,
|
|
1912
|
+
parsedBody: parsedBody,
|
|
1913
|
+
exceptionCtor: __BaseException,
|
|
1914
|
+
errorCode: errorCode,
|
|
1915
|
+
});
|
|
1916
|
+
_d.label = 9;
|
|
1917
|
+
case 9: return [2];
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1920
|
+
}); };
|
|
1921
|
+
export var deserializeAws_restJson1UpdateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1922
|
+
var contents, data, _a, _b;
|
|
1923
|
+
return __generator(this, function (_c) {
|
|
1924
|
+
switch (_c.label) {
|
|
1925
|
+
case 0:
|
|
1926
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1927
|
+
return [2, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
|
|
1928
|
+
}
|
|
1929
|
+
contents = map({
|
|
1930
|
+
$metadata: deserializeMetadata(output),
|
|
1931
|
+
});
|
|
1932
|
+
_a = __expectNonNull;
|
|
1933
|
+
_b = __expectObject;
|
|
1934
|
+
return [4, parseBody(output.body, context)];
|
|
1935
|
+
case 1:
|
|
1936
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1937
|
+
if (data.application != null) {
|
|
1938
|
+
contents.application = deserializeAws_restJson1Application(data.application, context);
|
|
1939
|
+
}
|
|
1940
|
+
return [2, contents];
|
|
1941
|
+
}
|
|
1942
|
+
});
|
|
1943
|
+
}); };
|
|
1944
|
+
var deserializeAws_restJson1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1945
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1946
|
+
var _c;
|
|
1947
|
+
return __generator(this, function (_d) {
|
|
1948
|
+
switch (_d.label) {
|
|
1949
|
+
case 0:
|
|
1950
|
+
_a = [__assign({}, output)];
|
|
1951
|
+
_c = {};
|
|
1952
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1953
|
+
case 1:
|
|
1954
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1955
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1956
|
+
_b = errorCode;
|
|
1957
|
+
switch (_b) {
|
|
1958
|
+
case "ConflictException": return [3, 2];
|
|
1959
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
1960
|
+
case "InternalServerException": return [3, 4];
|
|
1961
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
1962
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1963
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
|
|
1964
|
+
case "ValidationException": return [3, 8];
|
|
1965
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
|
|
1966
|
+
}
|
|
1967
|
+
return [3, 10];
|
|
1968
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1969
|
+
case 3: throw _d.sent();
|
|
1970
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1971
|
+
case 5: throw _d.sent();
|
|
1972
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1973
|
+
case 7: throw _d.sent();
|
|
1974
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1975
|
+
case 9: throw _d.sent();
|
|
1976
|
+
case 10:
|
|
1977
|
+
parsedBody = parsedOutput.body;
|
|
1978
|
+
throwDefaultError({
|
|
1979
|
+
output: output,
|
|
1980
|
+
parsedBody: parsedBody,
|
|
1981
|
+
exceptionCtor: __BaseException,
|
|
1982
|
+
errorCode: errorCode,
|
|
1983
|
+
});
|
|
1984
|
+
_d.label = 11;
|
|
1985
|
+
case 11: return [2];
|
|
1986
|
+
}
|
|
1987
|
+
});
|
|
1988
|
+
}); };
|
|
1989
|
+
export var deserializeAws_restJson1UpdateAttributeGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1990
|
+
var contents, data, _a, _b;
|
|
1991
|
+
return __generator(this, function (_c) {
|
|
1992
|
+
switch (_c.label) {
|
|
1993
|
+
case 0:
|
|
1994
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1995
|
+
return [2, deserializeAws_restJson1UpdateAttributeGroupCommandError(output, context)];
|
|
1996
|
+
}
|
|
1997
|
+
contents = map({
|
|
1998
|
+
$metadata: deserializeMetadata(output),
|
|
1999
|
+
});
|
|
2000
|
+
_a = __expectNonNull;
|
|
2001
|
+
_b = __expectObject;
|
|
2002
|
+
return [4, parseBody(output.body, context)];
|
|
2003
|
+
case 1:
|
|
2004
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2005
|
+
if (data.attributeGroup != null) {
|
|
2006
|
+
contents.attributeGroup = deserializeAws_restJson1AttributeGroup(data.attributeGroup, context);
|
|
2007
|
+
}
|
|
2008
|
+
return [2, contents];
|
|
2009
|
+
}
|
|
2010
|
+
});
|
|
2011
|
+
}); };
|
|
2012
|
+
var deserializeAws_restJson1UpdateAttributeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2013
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2014
|
+
var _c;
|
|
2015
|
+
return __generator(this, function (_d) {
|
|
2016
|
+
switch (_d.label) {
|
|
2017
|
+
case 0:
|
|
2018
|
+
_a = [__assign({}, output)];
|
|
2019
|
+
_c = {};
|
|
2020
|
+
return [4, parseErrorBody(output.body, context)];
|
|
2021
|
+
case 1:
|
|
2022
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2023
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
|
+
_b = errorCode;
|
|
2025
|
+
switch (_b) {
|
|
2026
|
+
case "ConflictException": return [3, 2];
|
|
2027
|
+
case "com.amazonaws.servicecatalogappregistry#ConflictException": return [3, 2];
|
|
2028
|
+
case "InternalServerException": return [3, 4];
|
|
2029
|
+
case "com.amazonaws.servicecatalogappregistry#InternalServerException": return [3, 4];
|
|
2030
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2031
|
+
case "com.amazonaws.servicecatalogappregistry#ResourceNotFoundException": return [3, 6];
|
|
2032
|
+
case "ValidationException": return [3, 8];
|
|
2033
|
+
case "com.amazonaws.servicecatalogappregistry#ValidationException": return [3, 8];
|
|
2034
|
+
}
|
|
2035
|
+
return [3, 10];
|
|
2036
|
+
case 2: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
2037
|
+
case 3: throw _d.sent();
|
|
2038
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2039
|
+
case 5: throw _d.sent();
|
|
2040
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2041
|
+
case 7: throw _d.sent();
|
|
2042
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2043
|
+
case 9: throw _d.sent();
|
|
2044
|
+
case 10:
|
|
2045
|
+
parsedBody = parsedOutput.body;
|
|
2046
|
+
throwDefaultError({
|
|
2047
|
+
output: output,
|
|
2048
|
+
parsedBody: parsedBody,
|
|
2049
|
+
exceptionCtor: __BaseException,
|
|
2050
|
+
errorCode: errorCode,
|
|
2051
|
+
});
|
|
2052
|
+
_d.label = 11;
|
|
2053
|
+
case 11: return [2];
|
|
2054
|
+
}
|
|
2055
|
+
});
|
|
2056
|
+
}); };
|
|
2057
|
+
var map = __map;
|
|
2058
|
+
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2059
|
+
var contents, data, exception;
|
|
2060
|
+
return __generator(this, function (_a) {
|
|
2061
|
+
contents = map({});
|
|
2062
|
+
data = parsedOutput.body;
|
|
2063
|
+
if (data.message != null) {
|
|
2064
|
+
contents.message = __expectString(data.message);
|
|
2065
|
+
}
|
|
2066
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2067
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2068
|
+
});
|
|
2069
|
+
}); };
|
|
2070
|
+
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2071
|
+
var contents, data, exception;
|
|
2072
|
+
return __generator(this, function (_a) {
|
|
2073
|
+
contents = map({});
|
|
2074
|
+
data = parsedOutput.body;
|
|
2075
|
+
if (data.message != null) {
|
|
2076
|
+
contents.message = __expectString(data.message);
|
|
2077
|
+
}
|
|
2078
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2079
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2080
|
+
});
|
|
2081
|
+
}); };
|
|
2082
|
+
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2083
|
+
var contents, data, exception;
|
|
2084
|
+
return __generator(this, function (_a) {
|
|
2085
|
+
contents = map({});
|
|
2086
|
+
data = parsedOutput.body;
|
|
2087
|
+
if (data.message != null) {
|
|
2088
|
+
contents.message = __expectString(data.message);
|
|
2089
|
+
}
|
|
2090
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2091
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2092
|
+
});
|
|
2093
|
+
}); };
|
|
2094
|
+
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2095
|
+
var contents, data, exception;
|
|
2096
|
+
return __generator(this, function (_a) {
|
|
2097
|
+
contents = map({});
|
|
2098
|
+
data = parsedOutput.body;
|
|
2099
|
+
if (data.message != null) {
|
|
2100
|
+
contents.message = __expectString(data.message);
|
|
2101
|
+
}
|
|
2102
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2103
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2104
|
+
});
|
|
2105
|
+
}); };
|
|
2106
|
+
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2107
|
+
var contents, data, exception;
|
|
2108
|
+
return __generator(this, function (_a) {
|
|
2109
|
+
contents = map({});
|
|
2110
|
+
data = parsedOutput.body;
|
|
2111
|
+
if (data.message != null) {
|
|
2112
|
+
contents.message = __expectString(data.message);
|
|
2113
|
+
}
|
|
2114
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2115
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2116
|
+
});
|
|
2117
|
+
}); };
|
|
2118
|
+
var serializeAws_restJson1Tags = function (input, context) {
|
|
2119
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2120
|
+
var _b;
|
|
2121
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1451
2122
|
if (value === null) {
|
|
1452
2123
|
return acc;
|
|
1453
2124
|
}
|
|
1454
|
-
return {
|
|
1455
|
-
...acc,
|
|
1456
|
-
[key]: value,
|
|
1457
|
-
};
|
|
2125
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
1458
2126
|
}, {});
|
|
1459
2127
|
};
|
|
1460
|
-
|
|
2128
|
+
var deserializeAws_restJson1Application = function (output, context) {
|
|
1461
2129
|
return {
|
|
1462
2130
|
arn: __expectString(output.arn),
|
|
1463
2131
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
@@ -1468,10 +2136,10 @@ const deserializeAws_restJson1Application = (output, context) => {
|
|
|
1468
2136
|
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1469
2137
|
};
|
|
1470
2138
|
};
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
.filter((e)
|
|
1474
|
-
.map((entry)
|
|
2139
|
+
var deserializeAws_restJson1ApplicationSummaries = function (output, context) {
|
|
2140
|
+
var retVal = (output || [])
|
|
2141
|
+
.filter(function (e) { return e != null; })
|
|
2142
|
+
.map(function (entry) {
|
|
1475
2143
|
if (entry === null) {
|
|
1476
2144
|
return null;
|
|
1477
2145
|
}
|
|
@@ -1479,7 +2147,7 @@ const deserializeAws_restJson1ApplicationSummaries = (output, context) => {
|
|
|
1479
2147
|
});
|
|
1480
2148
|
return retVal;
|
|
1481
2149
|
};
|
|
1482
|
-
|
|
2150
|
+
var deserializeAws_restJson1ApplicationSummary = function (output, context) {
|
|
1483
2151
|
return {
|
|
1484
2152
|
arn: __expectString(output.arn),
|
|
1485
2153
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
@@ -1489,7 +2157,7 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1489
2157
|
name: __expectString(output.name),
|
|
1490
2158
|
};
|
|
1491
2159
|
};
|
|
1492
|
-
|
|
2160
|
+
var deserializeAws_restJson1AttributeGroup = function (output, context) {
|
|
1493
2161
|
return {
|
|
1494
2162
|
arn: __expectString(output.arn),
|
|
1495
2163
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
@@ -1500,17 +2168,17 @@ const deserializeAws_restJson1AttributeGroup = (output, context) => {
|
|
|
1500
2168
|
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
1501
2169
|
};
|
|
1502
2170
|
};
|
|
1503
|
-
|
|
2171
|
+
var deserializeAws_restJson1AttributeGroupDetails = function (output, context) {
|
|
1504
2172
|
return {
|
|
1505
2173
|
arn: __expectString(output.arn),
|
|
1506
2174
|
id: __expectString(output.id),
|
|
1507
2175
|
name: __expectString(output.name),
|
|
1508
2176
|
};
|
|
1509
2177
|
};
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
.filter((e)
|
|
1513
|
-
.map((entry)
|
|
2178
|
+
var deserializeAws_restJson1AttributeGroupDetailsList = function (output, context) {
|
|
2179
|
+
var retVal = (output || [])
|
|
2180
|
+
.filter(function (e) { return e != null; })
|
|
2181
|
+
.map(function (entry) {
|
|
1514
2182
|
if (entry === null) {
|
|
1515
2183
|
return null;
|
|
1516
2184
|
}
|
|
@@ -1518,10 +2186,10 @@ const deserializeAws_restJson1AttributeGroupDetailsList = (output, context) => {
|
|
|
1518
2186
|
});
|
|
1519
2187
|
return retVal;
|
|
1520
2188
|
};
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
.filter((e)
|
|
1524
|
-
.map((entry)
|
|
2189
|
+
var deserializeAws_restJson1AttributeGroupIds = function (output, context) {
|
|
2190
|
+
var retVal = (output || [])
|
|
2191
|
+
.filter(function (e) { return e != null; })
|
|
2192
|
+
.map(function (entry) {
|
|
1525
2193
|
if (entry === null) {
|
|
1526
2194
|
return null;
|
|
1527
2195
|
}
|
|
@@ -1529,10 +2197,10 @@ const deserializeAws_restJson1AttributeGroupIds = (output, context) => {
|
|
|
1529
2197
|
});
|
|
1530
2198
|
return retVal;
|
|
1531
2199
|
};
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
.filter((e)
|
|
1535
|
-
.map((entry)
|
|
2200
|
+
var deserializeAws_restJson1AttributeGroupSummaries = function (output, context) {
|
|
2201
|
+
var retVal = (output || [])
|
|
2202
|
+
.filter(function (e) { return e != null; })
|
|
2203
|
+
.map(function (entry) {
|
|
1536
2204
|
if (entry === null) {
|
|
1537
2205
|
return null;
|
|
1538
2206
|
}
|
|
@@ -1540,7 +2208,7 @@ const deserializeAws_restJson1AttributeGroupSummaries = (output, context) => {
|
|
|
1540
2208
|
});
|
|
1541
2209
|
return retVal;
|
|
1542
2210
|
};
|
|
1543
|
-
|
|
2211
|
+
var deserializeAws_restJson1AttributeGroupSummary = function (output, context) {
|
|
1544
2212
|
return {
|
|
1545
2213
|
arn: __expectString(output.arn),
|
|
1546
2214
|
creationTime: output.creationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.creationTime)) : undefined,
|
|
@@ -1550,12 +2218,12 @@ const deserializeAws_restJson1AttributeGroupSummary = (output, context) => {
|
|
|
1550
2218
|
name: __expectString(output.name),
|
|
1551
2219
|
};
|
|
1552
2220
|
};
|
|
1553
|
-
|
|
2221
|
+
var deserializeAws_restJson1Integrations = function (output, context) {
|
|
1554
2222
|
return {
|
|
1555
2223
|
resourceGroup: output.resourceGroup != null ? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1556
2224
|
};
|
|
1557
2225
|
};
|
|
1558
|
-
|
|
2226
|
+
var deserializeAws_restJson1Resource = function (output, context) {
|
|
1559
2227
|
return {
|
|
1560
2228
|
arn: __expectString(output.arn),
|
|
1561
2229
|
associationTime: output.associationTime != null ? __expectNonNull(__parseRfc3339DateTime(output.associationTime)) : undefined,
|
|
@@ -1565,28 +2233,28 @@ const deserializeAws_restJson1Resource = (output, context) => {
|
|
|
1565
2233
|
name: __expectString(output.name),
|
|
1566
2234
|
};
|
|
1567
2235
|
};
|
|
1568
|
-
|
|
2236
|
+
var deserializeAws_restJson1ResourceGroup = function (output, context) {
|
|
1569
2237
|
return {
|
|
1570
2238
|
arn: __expectString(output.arn),
|
|
1571
2239
|
errorMessage: __expectString(output.errorMessage),
|
|
1572
2240
|
state: __expectString(output.state),
|
|
1573
2241
|
};
|
|
1574
2242
|
};
|
|
1575
|
-
|
|
2243
|
+
var deserializeAws_restJson1ResourceInfo = function (output, context) {
|
|
1576
2244
|
return {
|
|
1577
2245
|
arn: __expectString(output.arn),
|
|
1578
2246
|
name: __expectString(output.name),
|
|
1579
2247
|
};
|
|
1580
2248
|
};
|
|
1581
|
-
|
|
2249
|
+
var deserializeAws_restJson1ResourceIntegrations = function (output, context) {
|
|
1582
2250
|
return {
|
|
1583
2251
|
resourceGroup: output.resourceGroup != null ? deserializeAws_restJson1ResourceGroup(output.resourceGroup, context) : undefined,
|
|
1584
2252
|
};
|
|
1585
2253
|
};
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
.filter((e)
|
|
1589
|
-
.map((entry)
|
|
2254
|
+
var deserializeAws_restJson1Resources = function (output, context) {
|
|
2255
|
+
var retVal = (output || [])
|
|
2256
|
+
.filter(function (e) { return e != null; })
|
|
2257
|
+
.map(function (entry) {
|
|
1590
2258
|
if (entry === null) {
|
|
1591
2259
|
return null;
|
|
1592
2260
|
}
|
|
@@ -1594,50 +2262,67 @@ const deserializeAws_restJson1Resources = (output, context) => {
|
|
|
1594
2262
|
});
|
|
1595
2263
|
return retVal;
|
|
1596
2264
|
};
|
|
1597
|
-
|
|
1598
|
-
return Object.entries(output).reduce((acc,
|
|
2265
|
+
var deserializeAws_restJson1Tags = function (output, context) {
|
|
2266
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2267
|
+
var _b;
|
|
2268
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1599
2269
|
if (value === null) {
|
|
1600
2270
|
return acc;
|
|
1601
2271
|
}
|
|
1602
|
-
return {
|
|
1603
|
-
...acc,
|
|
1604
|
-
[key]: __expectString(value),
|
|
1605
|
-
};
|
|
2272
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1606
2273
|
}, {});
|
|
1607
2274
|
};
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
2275
|
+
var deserializeMetadata = function (output) {
|
|
2276
|
+
var _a, _b;
|
|
2277
|
+
return ({
|
|
2278
|
+
httpStatusCode: output.statusCode,
|
|
2279
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2280
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2281
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2282
|
+
});
|
|
2283
|
+
};
|
|
2284
|
+
var collectBody = function (streamBody, context) {
|
|
2285
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1615
2286
|
if (streamBody instanceof Uint8Array) {
|
|
1616
2287
|
return Promise.resolve(streamBody);
|
|
1617
2288
|
}
|
|
1618
2289
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1619
2290
|
};
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
value !== null &&
|
|
1623
|
-
value !== "" &&
|
|
1624
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1625
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1626
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1627
|
-
if (encoded.length) {
|
|
1628
|
-
return JSON.parse(encoded);
|
|
1629
|
-
}
|
|
1630
|
-
return {};
|
|
1631
|
-
});
|
|
1632
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1633
|
-
const value = await parseBody(errorBody, context);
|
|
1634
|
-
value.message = value.message ?? value.Message;
|
|
1635
|
-
return value;
|
|
2291
|
+
var collectBodyString = function (streamBody, context) {
|
|
2292
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1636
2293
|
};
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
2294
|
+
var isSerializableHeaderValue = function (value) {
|
|
2295
|
+
return value !== undefined &&
|
|
2296
|
+
value !== null &&
|
|
2297
|
+
value !== "" &&
|
|
2298
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2299
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2300
|
+
};
|
|
2301
|
+
var parseBody = function (streamBody, context) {
|
|
2302
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2303
|
+
if (encoded.length) {
|
|
2304
|
+
return JSON.parse(encoded);
|
|
2305
|
+
}
|
|
2306
|
+
return {};
|
|
2307
|
+
});
|
|
2308
|
+
};
|
|
2309
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2310
|
+
var value;
|
|
2311
|
+
var _a;
|
|
2312
|
+
return __generator(this, function (_b) {
|
|
2313
|
+
switch (_b.label) {
|
|
2314
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2315
|
+
case 1:
|
|
2316
|
+
value = _b.sent();
|
|
2317
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2318
|
+
return [2, value];
|
|
2319
|
+
}
|
|
2320
|
+
});
|
|
2321
|
+
}); };
|
|
2322
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2323
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2324
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2325
|
+
var cleanValue = rawValue;
|
|
1641
2326
|
if (typeof cleanValue === "number") {
|
|
1642
2327
|
cleanValue = cleanValue.toString();
|
|
1643
2328
|
}
|
|
@@ -1652,7 +2337,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1652
2337
|
}
|
|
1653
2338
|
return cleanValue;
|
|
1654
2339
|
};
|
|
1655
|
-
|
|
2340
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1656
2341
|
if (headerKey !== undefined) {
|
|
1657
2342
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1658
2343
|
}
|