@aws-sdk/client-marketplace-catalog 3.928.0 → 3.930.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/dist-cjs/index.js +1104 -740
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/MarketplaceCatalogClient.js +2 -0
- package/dist-es/commands/BatchDescribeEntitiesCommand.js +3 -9
- package/dist-es/commands/CancelChangeSetCommand.js +3 -9
- package/dist-es/commands/DeleteResourcePolicyCommand.js +3 -9
- package/dist-es/commands/DescribeChangeSetCommand.js +3 -9
- package/dist-es/commands/DescribeEntityCommand.js +3 -9
- package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
- package/dist-es/commands/ListChangeSetsCommand.js +3 -9
- package/dist-es/commands/ListEntitiesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutResourcePolicyCommand.js +3 -9
- package/dist-es/commands/StartChangeSetCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -40
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1098 -0
- package/dist-types/MarketplaceCatalogClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +8 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +187 -0
- package/dist-types/ts3.4/MarketplaceCatalogClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +193 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -593
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -119
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -161
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-catalog",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Catalog Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.930.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-marketplace-catalog",
|
|
@@ -20,43 +20,42 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
-
"@aws-sdk/types": "3.
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
34
|
-
"@smithy/config-resolver": "^4.4.
|
|
35
|
-
"@smithy/core": "^3.
|
|
36
|
-
"@smithy/fetch-http-handler": "^5.3.
|
|
37
|
-
"@smithy/hash-node": "^4.2.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
39
|
-
"@smithy/middleware-content-length": "^4.2.
|
|
40
|
-
"@smithy/middleware-endpoint": "^4.3.
|
|
41
|
-
"@smithy/middleware-retry": "^4.4.
|
|
42
|
-
"@smithy/middleware-serde": "^4.2.
|
|
43
|
-
"@smithy/middleware-stack": "^4.2.
|
|
44
|
-
"@smithy/node-config-provider": "^4.3.
|
|
45
|
-
"@smithy/node-http-handler": "^4.4.
|
|
46
|
-
"@smithy/protocol-http": "^5.3.
|
|
47
|
-
"@smithy/smithy-client": "^4.9.
|
|
48
|
-
"@smithy/types": "^4.
|
|
49
|
-
"@smithy/url-parser": "^4.2.
|
|
23
|
+
"@aws-sdk/core": "3.930.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.930.0",
|
|
25
|
+
"@aws-sdk/middleware-host-header": "3.930.0",
|
|
26
|
+
"@aws-sdk/middleware-logger": "3.930.0",
|
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.930.0",
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.930.0",
|
|
29
|
+
"@aws-sdk/region-config-resolver": "3.930.0",
|
|
30
|
+
"@aws-sdk/types": "3.930.0",
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.930.0",
|
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.930.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.930.0",
|
|
34
|
+
"@smithy/config-resolver": "^4.4.3",
|
|
35
|
+
"@smithy/core": "^3.18.2",
|
|
36
|
+
"@smithy/fetch-http-handler": "^5.3.6",
|
|
37
|
+
"@smithy/hash-node": "^4.2.5",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.2.5",
|
|
39
|
+
"@smithy/middleware-content-length": "^4.2.5",
|
|
40
|
+
"@smithy/middleware-endpoint": "^4.3.9",
|
|
41
|
+
"@smithy/middleware-retry": "^4.4.9",
|
|
42
|
+
"@smithy/middleware-serde": "^4.2.5",
|
|
43
|
+
"@smithy/middleware-stack": "^4.2.5",
|
|
44
|
+
"@smithy/node-config-provider": "^4.3.5",
|
|
45
|
+
"@smithy/node-http-handler": "^4.4.5",
|
|
46
|
+
"@smithy/protocol-http": "^5.3.5",
|
|
47
|
+
"@smithy/smithy-client": "^4.9.5",
|
|
48
|
+
"@smithy/types": "^4.9.0",
|
|
49
|
+
"@smithy/url-parser": "^4.2.5",
|
|
50
50
|
"@smithy/util-base64": "^4.3.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
55
|
-
"@smithy/util-endpoints": "^3.2.
|
|
56
|
-
"@smithy/util-middleware": "^4.2.
|
|
57
|
-
"@smithy/util-retry": "^4.2.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^4.3.8",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^4.2.11",
|
|
55
|
+
"@smithy/util-endpoints": "^3.2.5",
|
|
56
|
+
"@smithy/util-middleware": "^4.2.5",
|
|
57
|
+
"@smithy/util-retry": "^4.2.5",
|
|
58
58
|
"@smithy/util-utf8": "^4.2.0",
|
|
59
|
-
"@smithy/uuid": "^1.1.0",
|
|
60
59
|
"tslib": "^2.6.2"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
@@ -1,593 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { MarketplaceCatalogServiceException as __BaseException } from "../models/MarketplaceCatalogServiceException";
|
|
6
|
-
import { AccessDeniedException, InternalServiceException, ResourceInUseException, ResourceNotFoundException, ResourceNotSupportedException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_BatchDescribeEntitiesCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/BatchDescribeEntities");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
EntityRequestList: (_) => _json(_),
|
|
16
|
-
}));
|
|
17
|
-
b.m("POST").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
export const se_CancelChangeSetCommand = async (input, context) => {
|
|
21
|
-
const b = rb(input, context);
|
|
22
|
-
const headers = {};
|
|
23
|
-
b.bp("/CancelChangeSet");
|
|
24
|
-
const query = map({
|
|
25
|
-
[_c]: [, __expectNonNull(input[_C], `Catalog`)],
|
|
26
|
-
[_cSI]: [, __expectNonNull(input[_CSI], `ChangeSetId`)],
|
|
27
|
-
});
|
|
28
|
-
let body;
|
|
29
|
-
b.m("PATCH").h(headers).q(query).b(body);
|
|
30
|
-
return b.build();
|
|
31
|
-
};
|
|
32
|
-
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
33
|
-
const b = rb(input, context);
|
|
34
|
-
const headers = {};
|
|
35
|
-
b.bp("/DeleteResourcePolicy");
|
|
36
|
-
const query = map({
|
|
37
|
-
[_rA]: [, __expectNonNull(input[_RA], `ResourceArn`)],
|
|
38
|
-
});
|
|
39
|
-
let body;
|
|
40
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
41
|
-
return b.build();
|
|
42
|
-
};
|
|
43
|
-
export const se_DescribeChangeSetCommand = async (input, context) => {
|
|
44
|
-
const b = rb(input, context);
|
|
45
|
-
const headers = {};
|
|
46
|
-
b.bp("/DescribeChangeSet");
|
|
47
|
-
const query = map({
|
|
48
|
-
[_c]: [, __expectNonNull(input[_C], `Catalog`)],
|
|
49
|
-
[_cSI]: [, __expectNonNull(input[_CSI], `ChangeSetId`)],
|
|
50
|
-
});
|
|
51
|
-
let body;
|
|
52
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
53
|
-
return b.build();
|
|
54
|
-
};
|
|
55
|
-
export const se_DescribeEntityCommand = async (input, context) => {
|
|
56
|
-
const b = rb(input, context);
|
|
57
|
-
const headers = {};
|
|
58
|
-
b.bp("/DescribeEntity");
|
|
59
|
-
const query = map({
|
|
60
|
-
[_c]: [, __expectNonNull(input[_C], `Catalog`)],
|
|
61
|
-
[_eI]: [, __expectNonNull(input[_EI], `EntityId`)],
|
|
62
|
-
});
|
|
63
|
-
let body;
|
|
64
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
export const se_GetResourcePolicyCommand = async (input, context) => {
|
|
68
|
-
const b = rb(input, context);
|
|
69
|
-
const headers = {};
|
|
70
|
-
b.bp("/GetResourcePolicy");
|
|
71
|
-
const query = map({
|
|
72
|
-
[_rA]: [, __expectNonNull(input[_RA], `ResourceArn`)],
|
|
73
|
-
});
|
|
74
|
-
let body;
|
|
75
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
76
|
-
return b.build();
|
|
77
|
-
};
|
|
78
|
-
export const se_ListChangeSetsCommand = async (input, context) => {
|
|
79
|
-
const b = rb(input, context);
|
|
80
|
-
const headers = {
|
|
81
|
-
"content-type": "application/json",
|
|
82
|
-
};
|
|
83
|
-
b.bp("/ListChangeSets");
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify(take(input, {
|
|
86
|
-
Catalog: [],
|
|
87
|
-
FilterList: (_) => _json(_),
|
|
88
|
-
MaxResults: [],
|
|
89
|
-
NextToken: [],
|
|
90
|
-
Sort: (_) => _json(_),
|
|
91
|
-
}));
|
|
92
|
-
b.m("POST").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_ListEntitiesCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {
|
|
98
|
-
"content-type": "application/json",
|
|
99
|
-
};
|
|
100
|
-
b.bp("/ListEntities");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify(take(input, {
|
|
103
|
-
Catalog: [],
|
|
104
|
-
EntityType: [],
|
|
105
|
-
EntityTypeFilters: (_) => _json(_),
|
|
106
|
-
EntityTypeSort: (_) => _json(_),
|
|
107
|
-
FilterList: (_) => _json(_),
|
|
108
|
-
MaxResults: [],
|
|
109
|
-
NextToken: [],
|
|
110
|
-
OwnershipType: [],
|
|
111
|
-
Sort: (_) => _json(_),
|
|
112
|
-
}));
|
|
113
|
-
b.m("POST").h(headers).b(body);
|
|
114
|
-
return b.build();
|
|
115
|
-
};
|
|
116
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
117
|
-
const b = rb(input, context);
|
|
118
|
-
const headers = {
|
|
119
|
-
"content-type": "application/json",
|
|
120
|
-
};
|
|
121
|
-
b.bp("/ListTagsForResource");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(take(input, {
|
|
124
|
-
ResourceArn: [],
|
|
125
|
-
}));
|
|
126
|
-
b.m("POST").h(headers).b(body);
|
|
127
|
-
return b.build();
|
|
128
|
-
};
|
|
129
|
-
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
130
|
-
const b = rb(input, context);
|
|
131
|
-
const headers = {
|
|
132
|
-
"content-type": "application/json",
|
|
133
|
-
};
|
|
134
|
-
b.bp("/PutResourcePolicy");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(take(input, {
|
|
137
|
-
Policy: [],
|
|
138
|
-
ResourceArn: [],
|
|
139
|
-
}));
|
|
140
|
-
b.m("POST").h(headers).b(body);
|
|
141
|
-
return b.build();
|
|
142
|
-
};
|
|
143
|
-
export const se_StartChangeSetCommand = async (input, context) => {
|
|
144
|
-
const b = rb(input, context);
|
|
145
|
-
const headers = {
|
|
146
|
-
"content-type": "application/json",
|
|
147
|
-
};
|
|
148
|
-
b.bp("/StartChangeSet");
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify(take(input, {
|
|
151
|
-
Catalog: [],
|
|
152
|
-
ChangeSet: (_) => se_RequestedChangeList(_, context),
|
|
153
|
-
ChangeSetName: [],
|
|
154
|
-
ChangeSetTags: (_) => _json(_),
|
|
155
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
156
|
-
Intent: [],
|
|
157
|
-
}));
|
|
158
|
-
b.m("POST").h(headers).b(body);
|
|
159
|
-
return b.build();
|
|
160
|
-
};
|
|
161
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
162
|
-
const b = rb(input, context);
|
|
163
|
-
const headers = {
|
|
164
|
-
"content-type": "application/json",
|
|
165
|
-
};
|
|
166
|
-
b.bp("/TagResource");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify(take(input, {
|
|
169
|
-
ResourceArn: [],
|
|
170
|
-
Tags: (_) => _json(_),
|
|
171
|
-
}));
|
|
172
|
-
b.m("POST").h(headers).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
176
|
-
const b = rb(input, context);
|
|
177
|
-
const headers = {
|
|
178
|
-
"content-type": "application/json",
|
|
179
|
-
};
|
|
180
|
-
b.bp("/UntagResource");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify(take(input, {
|
|
183
|
-
ResourceArn: [],
|
|
184
|
-
TagKeys: (_) => _json(_),
|
|
185
|
-
}));
|
|
186
|
-
b.m("POST").h(headers).b(body);
|
|
187
|
-
return b.build();
|
|
188
|
-
};
|
|
189
|
-
export const de_BatchDescribeEntitiesCommand = async (output, context) => {
|
|
190
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
191
|
-
return de_CommandError(output, context);
|
|
192
|
-
}
|
|
193
|
-
const contents = map({
|
|
194
|
-
$metadata: deserializeMetadata(output),
|
|
195
|
-
});
|
|
196
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
197
|
-
const doc = take(data, {
|
|
198
|
-
EntityDetails: (_) => de_EntityDetails(_, context),
|
|
199
|
-
Errors: _json,
|
|
200
|
-
});
|
|
201
|
-
Object.assign(contents, doc);
|
|
202
|
-
return contents;
|
|
203
|
-
};
|
|
204
|
-
export const de_CancelChangeSetCommand = async (output, context) => {
|
|
205
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
206
|
-
return de_CommandError(output, context);
|
|
207
|
-
}
|
|
208
|
-
const contents = map({
|
|
209
|
-
$metadata: deserializeMetadata(output),
|
|
210
|
-
});
|
|
211
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
212
|
-
const doc = take(data, {
|
|
213
|
-
ChangeSetArn: __expectString,
|
|
214
|
-
ChangeSetId: __expectString,
|
|
215
|
-
});
|
|
216
|
-
Object.assign(contents, doc);
|
|
217
|
-
return contents;
|
|
218
|
-
};
|
|
219
|
-
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
220
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
221
|
-
return de_CommandError(output, context);
|
|
222
|
-
}
|
|
223
|
-
const contents = map({
|
|
224
|
-
$metadata: deserializeMetadata(output),
|
|
225
|
-
});
|
|
226
|
-
await collectBody(output.body, context);
|
|
227
|
-
return contents;
|
|
228
|
-
};
|
|
229
|
-
export const de_DescribeChangeSetCommand = async (output, context) => {
|
|
230
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
231
|
-
return de_CommandError(output, context);
|
|
232
|
-
}
|
|
233
|
-
const contents = map({
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
});
|
|
236
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
237
|
-
const doc = take(data, {
|
|
238
|
-
ChangeSet: (_) => de_ChangeSetDescription(_, context),
|
|
239
|
-
ChangeSetArn: __expectString,
|
|
240
|
-
ChangeSetId: __expectString,
|
|
241
|
-
ChangeSetName: __expectString,
|
|
242
|
-
EndTime: __expectString,
|
|
243
|
-
FailureCode: __expectString,
|
|
244
|
-
FailureDescription: __expectString,
|
|
245
|
-
Intent: __expectString,
|
|
246
|
-
StartTime: __expectString,
|
|
247
|
-
Status: __expectString,
|
|
248
|
-
});
|
|
249
|
-
Object.assign(contents, doc);
|
|
250
|
-
return contents;
|
|
251
|
-
};
|
|
252
|
-
export const de_DescribeEntityCommand = async (output, context) => {
|
|
253
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
|
-
return de_CommandError(output, context);
|
|
255
|
-
}
|
|
256
|
-
const contents = map({
|
|
257
|
-
$metadata: deserializeMetadata(output),
|
|
258
|
-
});
|
|
259
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
260
|
-
const doc = take(data, {
|
|
261
|
-
Details: __expectString,
|
|
262
|
-
DetailsDocument: (_) => de_JsonDocumentType(_, context),
|
|
263
|
-
EntityArn: __expectString,
|
|
264
|
-
EntityIdentifier: __expectString,
|
|
265
|
-
EntityType: __expectString,
|
|
266
|
-
LastModifiedDate: __expectString,
|
|
267
|
-
});
|
|
268
|
-
Object.assign(contents, doc);
|
|
269
|
-
return contents;
|
|
270
|
-
};
|
|
271
|
-
export const de_GetResourcePolicyCommand = async (output, context) => {
|
|
272
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
273
|
-
return de_CommandError(output, context);
|
|
274
|
-
}
|
|
275
|
-
const contents = map({
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
});
|
|
278
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
279
|
-
const doc = take(data, {
|
|
280
|
-
Policy: __expectString,
|
|
281
|
-
});
|
|
282
|
-
Object.assign(contents, doc);
|
|
283
|
-
return contents;
|
|
284
|
-
};
|
|
285
|
-
export const de_ListChangeSetsCommand = async (output, context) => {
|
|
286
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
287
|
-
return de_CommandError(output, context);
|
|
288
|
-
}
|
|
289
|
-
const contents = map({
|
|
290
|
-
$metadata: deserializeMetadata(output),
|
|
291
|
-
});
|
|
292
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
293
|
-
const doc = take(data, {
|
|
294
|
-
ChangeSetSummaryList: _json,
|
|
295
|
-
NextToken: __expectString,
|
|
296
|
-
});
|
|
297
|
-
Object.assign(contents, doc);
|
|
298
|
-
return contents;
|
|
299
|
-
};
|
|
300
|
-
export const de_ListEntitiesCommand = async (output, context) => {
|
|
301
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
302
|
-
return de_CommandError(output, context);
|
|
303
|
-
}
|
|
304
|
-
const contents = map({
|
|
305
|
-
$metadata: deserializeMetadata(output),
|
|
306
|
-
});
|
|
307
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
308
|
-
const doc = take(data, {
|
|
309
|
-
EntitySummaryList: _json,
|
|
310
|
-
NextToken: __expectString,
|
|
311
|
-
});
|
|
312
|
-
Object.assign(contents, doc);
|
|
313
|
-
return contents;
|
|
314
|
-
};
|
|
315
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
316
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
317
|
-
return de_CommandError(output, context);
|
|
318
|
-
}
|
|
319
|
-
const contents = map({
|
|
320
|
-
$metadata: deserializeMetadata(output),
|
|
321
|
-
});
|
|
322
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
323
|
-
const doc = take(data, {
|
|
324
|
-
ResourceArn: __expectString,
|
|
325
|
-
Tags: _json,
|
|
326
|
-
});
|
|
327
|
-
Object.assign(contents, doc);
|
|
328
|
-
return contents;
|
|
329
|
-
};
|
|
330
|
-
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
331
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
332
|
-
return de_CommandError(output, context);
|
|
333
|
-
}
|
|
334
|
-
const contents = map({
|
|
335
|
-
$metadata: deserializeMetadata(output),
|
|
336
|
-
});
|
|
337
|
-
await collectBody(output.body, context);
|
|
338
|
-
return contents;
|
|
339
|
-
};
|
|
340
|
-
export const de_StartChangeSetCommand = async (output, context) => {
|
|
341
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
342
|
-
return de_CommandError(output, context);
|
|
343
|
-
}
|
|
344
|
-
const contents = map({
|
|
345
|
-
$metadata: deserializeMetadata(output),
|
|
346
|
-
});
|
|
347
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
348
|
-
const doc = take(data, {
|
|
349
|
-
ChangeSetArn: __expectString,
|
|
350
|
-
ChangeSetId: __expectString,
|
|
351
|
-
});
|
|
352
|
-
Object.assign(contents, doc);
|
|
353
|
-
return contents;
|
|
354
|
-
};
|
|
355
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
356
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
357
|
-
return de_CommandError(output, context);
|
|
358
|
-
}
|
|
359
|
-
const contents = map({
|
|
360
|
-
$metadata: deserializeMetadata(output),
|
|
361
|
-
});
|
|
362
|
-
await collectBody(output.body, context);
|
|
363
|
-
return contents;
|
|
364
|
-
};
|
|
365
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
366
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
367
|
-
return de_CommandError(output, context);
|
|
368
|
-
}
|
|
369
|
-
const contents = map({
|
|
370
|
-
$metadata: deserializeMetadata(output),
|
|
371
|
-
});
|
|
372
|
-
await collectBody(output.body, context);
|
|
373
|
-
return contents;
|
|
374
|
-
};
|
|
375
|
-
const de_CommandError = async (output, context) => {
|
|
376
|
-
const parsedOutput = {
|
|
377
|
-
...output,
|
|
378
|
-
body: await parseErrorBody(output.body, context),
|
|
379
|
-
};
|
|
380
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
381
|
-
switch (errorCode) {
|
|
382
|
-
case "AccessDeniedException":
|
|
383
|
-
case "com.amazonaws.marketplacecatalog#AccessDeniedException":
|
|
384
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
385
|
-
case "InternalServiceException":
|
|
386
|
-
case "com.amazonaws.marketplacecatalog#InternalServiceException":
|
|
387
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
388
|
-
case "ThrottlingException":
|
|
389
|
-
case "com.amazonaws.marketplacecatalog#ThrottlingException":
|
|
390
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
391
|
-
case "ValidationException":
|
|
392
|
-
case "com.amazonaws.marketplacecatalog#ValidationException":
|
|
393
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ResourceInUseException":
|
|
395
|
-
case "com.amazonaws.marketplacecatalog#ResourceInUseException":
|
|
396
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
397
|
-
case "ResourceNotFoundException":
|
|
398
|
-
case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
|
|
399
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ResourceNotSupportedException":
|
|
401
|
-
case "com.amazonaws.marketplacecatalog#ResourceNotSupportedException":
|
|
402
|
-
throw await de_ResourceNotSupportedExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ServiceQuotaExceededException":
|
|
404
|
-
case "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException":
|
|
405
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
406
|
-
default:
|
|
407
|
-
const parsedBody = parsedOutput.body;
|
|
408
|
-
return throwDefaultError({
|
|
409
|
-
output,
|
|
410
|
-
parsedBody,
|
|
411
|
-
errorCode,
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
416
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
417
|
-
const contents = map({});
|
|
418
|
-
const data = parsedOutput.body;
|
|
419
|
-
const doc = take(data, {
|
|
420
|
-
Message: __expectString,
|
|
421
|
-
});
|
|
422
|
-
Object.assign(contents, doc);
|
|
423
|
-
const exception = new AccessDeniedException({
|
|
424
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
425
|
-
...contents,
|
|
426
|
-
});
|
|
427
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
428
|
-
};
|
|
429
|
-
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
430
|
-
const contents = map({});
|
|
431
|
-
const data = parsedOutput.body;
|
|
432
|
-
const doc = take(data, {
|
|
433
|
-
Message: __expectString,
|
|
434
|
-
});
|
|
435
|
-
Object.assign(contents, doc);
|
|
436
|
-
const exception = new InternalServiceException({
|
|
437
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
438
|
-
...contents,
|
|
439
|
-
});
|
|
440
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
441
|
-
};
|
|
442
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
443
|
-
const contents = map({});
|
|
444
|
-
const data = parsedOutput.body;
|
|
445
|
-
const doc = take(data, {
|
|
446
|
-
Message: __expectString,
|
|
447
|
-
});
|
|
448
|
-
Object.assign(contents, doc);
|
|
449
|
-
const exception = new ResourceInUseException({
|
|
450
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
451
|
-
...contents,
|
|
452
|
-
});
|
|
453
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
454
|
-
};
|
|
455
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
456
|
-
const contents = map({});
|
|
457
|
-
const data = parsedOutput.body;
|
|
458
|
-
const doc = take(data, {
|
|
459
|
-
Message: __expectString,
|
|
460
|
-
});
|
|
461
|
-
Object.assign(contents, doc);
|
|
462
|
-
const exception = new ResourceNotFoundException({
|
|
463
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
464
|
-
...contents,
|
|
465
|
-
});
|
|
466
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
467
|
-
};
|
|
468
|
-
const de_ResourceNotSupportedExceptionRes = async (parsedOutput, context) => {
|
|
469
|
-
const contents = map({});
|
|
470
|
-
const data = parsedOutput.body;
|
|
471
|
-
const doc = take(data, {
|
|
472
|
-
Message: __expectString,
|
|
473
|
-
});
|
|
474
|
-
Object.assign(contents, doc);
|
|
475
|
-
const exception = new ResourceNotSupportedException({
|
|
476
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
477
|
-
...contents,
|
|
478
|
-
});
|
|
479
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
480
|
-
};
|
|
481
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
482
|
-
const contents = map({});
|
|
483
|
-
const data = parsedOutput.body;
|
|
484
|
-
const doc = take(data, {
|
|
485
|
-
Message: __expectString,
|
|
486
|
-
});
|
|
487
|
-
Object.assign(contents, doc);
|
|
488
|
-
const exception = new ServiceQuotaExceededException({
|
|
489
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
490
|
-
...contents,
|
|
491
|
-
});
|
|
492
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
493
|
-
};
|
|
494
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
495
|
-
const contents = map({});
|
|
496
|
-
const data = parsedOutput.body;
|
|
497
|
-
const doc = take(data, {
|
|
498
|
-
Message: __expectString,
|
|
499
|
-
});
|
|
500
|
-
Object.assign(contents, doc);
|
|
501
|
-
const exception = new ThrottlingException({
|
|
502
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
503
|
-
...contents,
|
|
504
|
-
});
|
|
505
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
506
|
-
};
|
|
507
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
508
|
-
const contents = map({});
|
|
509
|
-
const data = parsedOutput.body;
|
|
510
|
-
const doc = take(data, {
|
|
511
|
-
Message: __expectString,
|
|
512
|
-
});
|
|
513
|
-
Object.assign(contents, doc);
|
|
514
|
-
const exception = new ValidationException({
|
|
515
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
516
|
-
...contents,
|
|
517
|
-
});
|
|
518
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
519
|
-
};
|
|
520
|
-
const se_Change = (input, context) => {
|
|
521
|
-
return take(input, {
|
|
522
|
-
ChangeName: [],
|
|
523
|
-
ChangeType: [],
|
|
524
|
-
Details: [],
|
|
525
|
-
DetailsDocument: (_) => se_JsonDocumentType(_, context),
|
|
526
|
-
Entity: _json,
|
|
527
|
-
EntityTags: _json,
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
|
-
const se_JsonDocumentType = (input, context) => {
|
|
531
|
-
return input;
|
|
532
|
-
};
|
|
533
|
-
const se_RequestedChangeList = (input, context) => {
|
|
534
|
-
return input
|
|
535
|
-
.filter((e) => e != null)
|
|
536
|
-
.map((entry) => {
|
|
537
|
-
return se_Change(entry, context);
|
|
538
|
-
});
|
|
539
|
-
};
|
|
540
|
-
const de_ChangeSetDescription = (output, context) => {
|
|
541
|
-
const retVal = (output || [])
|
|
542
|
-
.filter((e) => e != null)
|
|
543
|
-
.map((entry) => {
|
|
544
|
-
return de_ChangeSummary(entry, context);
|
|
545
|
-
});
|
|
546
|
-
return retVal;
|
|
547
|
-
};
|
|
548
|
-
const de_ChangeSummary = (output, context) => {
|
|
549
|
-
return take(output, {
|
|
550
|
-
ChangeName: __expectString,
|
|
551
|
-
ChangeType: __expectString,
|
|
552
|
-
Details: __expectString,
|
|
553
|
-
DetailsDocument: (_) => de_JsonDocumentType(_, context),
|
|
554
|
-
Entity: _json,
|
|
555
|
-
ErrorDetailList: _json,
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
|
-
const de_EntityDetail = (output, context) => {
|
|
559
|
-
return take(output, {
|
|
560
|
-
DetailsDocument: (_) => de_JsonDocumentType(_, context),
|
|
561
|
-
EntityArn: __expectString,
|
|
562
|
-
EntityIdentifier: __expectString,
|
|
563
|
-
EntityType: __expectString,
|
|
564
|
-
LastModifiedDate: __expectString,
|
|
565
|
-
});
|
|
566
|
-
};
|
|
567
|
-
const de_EntityDetails = (output, context) => {
|
|
568
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
569
|
-
if (value === null) {
|
|
570
|
-
return acc;
|
|
571
|
-
}
|
|
572
|
-
acc[key] = de_EntityDetail(value, context);
|
|
573
|
-
return acc;
|
|
574
|
-
}, {});
|
|
575
|
-
};
|
|
576
|
-
const de_JsonDocumentType = (output, context) => {
|
|
577
|
-
return output;
|
|
578
|
-
};
|
|
579
|
-
const deserializeMetadata = (output) => ({
|
|
580
|
-
httpStatusCode: output.statusCode,
|
|
581
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
582
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
583
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
584
|
-
});
|
|
585
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
586
|
-
const _C = "Catalog";
|
|
587
|
-
const _CSI = "ChangeSetId";
|
|
588
|
-
const _EI = "EntityId";
|
|
589
|
-
const _RA = "ResourceArn";
|
|
590
|
-
const _c = "catalog";
|
|
591
|
-
const _cSI = "changeSetId";
|
|
592
|
-
const _eI = "entityId";
|
|
593
|
-
const _rA = "resourceArn";
|