@aws-sdk/client-artifact 3.891.0 → 3.894.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 +1056 -10
- package/package.json +19 -19
- package/dist-cjs/Artifact.js +0 -25
- package/dist-cjs/ArtifactClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/GetAccountSettingsCommand.js +0 -26
- package/dist-cjs/commands/GetReportCommand.js +0 -26
- package/dist-cjs/commands/GetReportMetadataCommand.js +0 -26
- package/dist-cjs/commands/GetTermForReportCommand.js +0 -26
- package/dist-cjs/commands/ListCustomerAgreementsCommand.js +0 -26
- package/dist-cjs/commands/ListReportsCommand.js +0 -26
- package/dist-cjs/commands/PutAccountSettingsCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -10
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/ArtifactServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -162
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListCustomerAgreementsPaginator.js +0 -7
- package/dist-cjs/pagination/ListReportsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -6
- package/dist-cjs/protocols/Aws_restJson1.js +0 -440
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_PutAccountSettingsCommand = exports.de_ListReportsCommand = exports.de_ListCustomerAgreementsCommand = exports.de_GetTermForReportCommand = exports.de_GetReportMetadataCommand = exports.de_GetReportCommand = exports.de_GetAccountSettingsCommand = exports.se_PutAccountSettingsCommand = exports.se_ListReportsCommand = exports.se_ListCustomerAgreementsCommand = exports.se_GetTermForReportCommand = exports.se_GetReportMetadataCommand = exports.se_GetReportCommand = exports.se_GetAccountSettingsCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const ArtifactServiceException_1 = require("../models/ArtifactServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_GetAccountSettingsCommand = async (input, context) => {
|
|
10
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
|
-
const headers = {};
|
|
12
|
-
b.bp("/v1/account-settings/get");
|
|
13
|
-
let body;
|
|
14
|
-
b.m("GET").h(headers).b(body);
|
|
15
|
-
return b.build();
|
|
16
|
-
};
|
|
17
|
-
exports.se_GetAccountSettingsCommand = se_GetAccountSettingsCommand;
|
|
18
|
-
const se_GetReportCommand = async (input, context) => {
|
|
19
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
20
|
-
const headers = {};
|
|
21
|
-
b.bp("/v1/report/get");
|
|
22
|
-
const query = (0, smithy_client_1.map)({
|
|
23
|
-
[_rI]: [, (0, smithy_client_1.expectNonNull)(input[_rI], `reportId`)],
|
|
24
|
-
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
25
|
-
[_tT]: [, (0, smithy_client_1.expectNonNull)(input[_tT], `termToken`)],
|
|
26
|
-
});
|
|
27
|
-
let body;
|
|
28
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
29
|
-
return b.build();
|
|
30
|
-
};
|
|
31
|
-
exports.se_GetReportCommand = se_GetReportCommand;
|
|
32
|
-
const se_GetReportMetadataCommand = async (input, context) => {
|
|
33
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
34
|
-
const headers = {};
|
|
35
|
-
b.bp("/v1/report/getMetadata");
|
|
36
|
-
const query = (0, smithy_client_1.map)({
|
|
37
|
-
[_rI]: [, (0, smithy_client_1.expectNonNull)(input[_rI], `reportId`)],
|
|
38
|
-
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
39
|
-
});
|
|
40
|
-
let body;
|
|
41
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
42
|
-
return b.build();
|
|
43
|
-
};
|
|
44
|
-
exports.se_GetReportMetadataCommand = se_GetReportMetadataCommand;
|
|
45
|
-
const se_GetTermForReportCommand = async (input, context) => {
|
|
46
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
47
|
-
const headers = {};
|
|
48
|
-
b.bp("/v1/report/getTermForReport");
|
|
49
|
-
const query = (0, smithy_client_1.map)({
|
|
50
|
-
[_rI]: [, (0, smithy_client_1.expectNonNull)(input[_rI], `reportId`)],
|
|
51
|
-
[_rV]: [() => input.reportVersion !== void 0, () => input[_rV].toString()],
|
|
52
|
-
});
|
|
53
|
-
let body;
|
|
54
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
55
|
-
return b.build();
|
|
56
|
-
};
|
|
57
|
-
exports.se_GetTermForReportCommand = se_GetTermForReportCommand;
|
|
58
|
-
const se_ListCustomerAgreementsCommand = async (input, context) => {
|
|
59
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
60
|
-
const headers = {};
|
|
61
|
-
b.bp("/v1/customer-agreement/list");
|
|
62
|
-
const query = (0, smithy_client_1.map)({
|
|
63
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
64
|
-
[_nT]: [, input[_nT]],
|
|
65
|
-
});
|
|
66
|
-
let body;
|
|
67
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
exports.se_ListCustomerAgreementsCommand = se_ListCustomerAgreementsCommand;
|
|
71
|
-
const se_ListReportsCommand = async (input, context) => {
|
|
72
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
73
|
-
const headers = {};
|
|
74
|
-
b.bp("/v1/report/list");
|
|
75
|
-
const query = (0, smithy_client_1.map)({
|
|
76
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
77
|
-
[_nT]: [, input[_nT]],
|
|
78
|
-
});
|
|
79
|
-
let body;
|
|
80
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
81
|
-
return b.build();
|
|
82
|
-
};
|
|
83
|
-
exports.se_ListReportsCommand = se_ListReportsCommand;
|
|
84
|
-
const se_PutAccountSettingsCommand = async (input, context) => {
|
|
85
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
86
|
-
const headers = {
|
|
87
|
-
"content-type": "application/json",
|
|
88
|
-
};
|
|
89
|
-
b.bp("/v1/account-settings/put");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
92
|
-
notificationSubscriptionStatus: [],
|
|
93
|
-
}));
|
|
94
|
-
b.m("PUT").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
exports.se_PutAccountSettingsCommand = se_PutAccountSettingsCommand;
|
|
98
|
-
const de_GetAccountSettingsCommand = async (output, context) => {
|
|
99
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
100
|
-
return de_CommandError(output, context);
|
|
101
|
-
}
|
|
102
|
-
const contents = (0, smithy_client_1.map)({
|
|
103
|
-
$metadata: deserializeMetadata(output),
|
|
104
|
-
});
|
|
105
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
106
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
107
|
-
accountSettings: smithy_client_1._json,
|
|
108
|
-
});
|
|
109
|
-
Object.assign(contents, doc);
|
|
110
|
-
return contents;
|
|
111
|
-
};
|
|
112
|
-
exports.de_GetAccountSettingsCommand = de_GetAccountSettingsCommand;
|
|
113
|
-
const de_GetReportCommand = async (output, context) => {
|
|
114
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
115
|
-
return de_CommandError(output, context);
|
|
116
|
-
}
|
|
117
|
-
const contents = (0, smithy_client_1.map)({
|
|
118
|
-
$metadata: deserializeMetadata(output),
|
|
119
|
-
});
|
|
120
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
121
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
122
|
-
documentPresignedUrl: smithy_client_1.expectString,
|
|
123
|
-
});
|
|
124
|
-
Object.assign(contents, doc);
|
|
125
|
-
return contents;
|
|
126
|
-
};
|
|
127
|
-
exports.de_GetReportCommand = de_GetReportCommand;
|
|
128
|
-
const de_GetReportMetadataCommand = async (output, context) => {
|
|
129
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
130
|
-
return de_CommandError(output, context);
|
|
131
|
-
}
|
|
132
|
-
const contents = (0, smithy_client_1.map)({
|
|
133
|
-
$metadata: deserializeMetadata(output),
|
|
134
|
-
});
|
|
135
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
136
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
137
|
-
reportDetails: (_) => de_ReportDetail(_, context),
|
|
138
|
-
});
|
|
139
|
-
Object.assign(contents, doc);
|
|
140
|
-
return contents;
|
|
141
|
-
};
|
|
142
|
-
exports.de_GetReportMetadataCommand = de_GetReportMetadataCommand;
|
|
143
|
-
const de_GetTermForReportCommand = async (output, context) => {
|
|
144
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
145
|
-
return de_CommandError(output, context);
|
|
146
|
-
}
|
|
147
|
-
const contents = (0, smithy_client_1.map)({
|
|
148
|
-
$metadata: deserializeMetadata(output),
|
|
149
|
-
});
|
|
150
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
151
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
152
|
-
documentPresignedUrl: smithy_client_1.expectString,
|
|
153
|
-
termToken: smithy_client_1.expectString,
|
|
154
|
-
});
|
|
155
|
-
Object.assign(contents, doc);
|
|
156
|
-
return contents;
|
|
157
|
-
};
|
|
158
|
-
exports.de_GetTermForReportCommand = de_GetTermForReportCommand;
|
|
159
|
-
const de_ListCustomerAgreementsCommand = async (output, context) => {
|
|
160
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
161
|
-
return de_CommandError(output, context);
|
|
162
|
-
}
|
|
163
|
-
const contents = (0, smithy_client_1.map)({
|
|
164
|
-
$metadata: deserializeMetadata(output),
|
|
165
|
-
});
|
|
166
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
167
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
168
|
-
customerAgreements: (_) => de_CustomerAgreementList(_, context),
|
|
169
|
-
nextToken: smithy_client_1.expectString,
|
|
170
|
-
});
|
|
171
|
-
Object.assign(contents, doc);
|
|
172
|
-
return contents;
|
|
173
|
-
};
|
|
174
|
-
exports.de_ListCustomerAgreementsCommand = de_ListCustomerAgreementsCommand;
|
|
175
|
-
const de_ListReportsCommand = async (output, context) => {
|
|
176
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
177
|
-
return de_CommandError(output, context);
|
|
178
|
-
}
|
|
179
|
-
const contents = (0, smithy_client_1.map)({
|
|
180
|
-
$metadata: deserializeMetadata(output),
|
|
181
|
-
});
|
|
182
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
183
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
184
|
-
nextToken: smithy_client_1.expectString,
|
|
185
|
-
reports: (_) => de_ReportsList(_, context),
|
|
186
|
-
});
|
|
187
|
-
Object.assign(contents, doc);
|
|
188
|
-
return contents;
|
|
189
|
-
};
|
|
190
|
-
exports.de_ListReportsCommand = de_ListReportsCommand;
|
|
191
|
-
const de_PutAccountSettingsCommand = async (output, context) => {
|
|
192
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
193
|
-
return de_CommandError(output, context);
|
|
194
|
-
}
|
|
195
|
-
const contents = (0, smithy_client_1.map)({
|
|
196
|
-
$metadata: deserializeMetadata(output),
|
|
197
|
-
});
|
|
198
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
199
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
200
|
-
accountSettings: smithy_client_1._json,
|
|
201
|
-
});
|
|
202
|
-
Object.assign(contents, doc);
|
|
203
|
-
return contents;
|
|
204
|
-
};
|
|
205
|
-
exports.de_PutAccountSettingsCommand = de_PutAccountSettingsCommand;
|
|
206
|
-
const de_CommandError = async (output, context) => {
|
|
207
|
-
const parsedOutput = {
|
|
208
|
-
...output,
|
|
209
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
210
|
-
};
|
|
211
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
212
|
-
switch (errorCode) {
|
|
213
|
-
case "AccessDeniedException":
|
|
214
|
-
case "com.amazonaws.artifact#AccessDeniedException":
|
|
215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
216
|
-
case "ConflictException":
|
|
217
|
-
case "com.amazonaws.artifact#ConflictException":
|
|
218
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
219
|
-
case "InternalServerException":
|
|
220
|
-
case "com.amazonaws.artifact#InternalServerException":
|
|
221
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
222
|
-
case "ResourceNotFoundException":
|
|
223
|
-
case "com.amazonaws.artifact#ResourceNotFoundException":
|
|
224
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
225
|
-
case "ServiceQuotaExceededException":
|
|
226
|
-
case "com.amazonaws.artifact#ServiceQuotaExceededException":
|
|
227
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
228
|
-
case "ThrottlingException":
|
|
229
|
-
case "com.amazonaws.artifact#ThrottlingException":
|
|
230
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
231
|
-
case "ValidationException":
|
|
232
|
-
case "com.amazonaws.artifact#ValidationException":
|
|
233
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
234
|
-
default:
|
|
235
|
-
const parsedBody = parsedOutput.body;
|
|
236
|
-
return throwDefaultError({
|
|
237
|
-
output,
|
|
238
|
-
parsedBody,
|
|
239
|
-
errorCode,
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(ArtifactServiceException_1.ArtifactServiceException);
|
|
244
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
245
|
-
const contents = (0, smithy_client_1.map)({});
|
|
246
|
-
const data = parsedOutput.body;
|
|
247
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
248
|
-
message: smithy_client_1.expectString,
|
|
249
|
-
});
|
|
250
|
-
Object.assign(contents, doc);
|
|
251
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
252
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
253
|
-
...contents,
|
|
254
|
-
});
|
|
255
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
256
|
-
};
|
|
257
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
258
|
-
const contents = (0, smithy_client_1.map)({});
|
|
259
|
-
const data = parsedOutput.body;
|
|
260
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
261
|
-
message: smithy_client_1.expectString,
|
|
262
|
-
resourceId: smithy_client_1.expectString,
|
|
263
|
-
resourceType: smithy_client_1.expectString,
|
|
264
|
-
});
|
|
265
|
-
Object.assign(contents, doc);
|
|
266
|
-
const exception = new models_0_1.ConflictException({
|
|
267
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
268
|
-
...contents,
|
|
269
|
-
});
|
|
270
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
271
|
-
};
|
|
272
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
273
|
-
const contents = (0, smithy_client_1.map)({
|
|
274
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
275
|
-
});
|
|
276
|
-
const data = parsedOutput.body;
|
|
277
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
278
|
-
message: smithy_client_1.expectString,
|
|
279
|
-
});
|
|
280
|
-
Object.assign(contents, doc);
|
|
281
|
-
const exception = new models_0_1.InternalServerException({
|
|
282
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
283
|
-
...contents,
|
|
284
|
-
});
|
|
285
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
286
|
-
};
|
|
287
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
288
|
-
const contents = (0, smithy_client_1.map)({});
|
|
289
|
-
const data = parsedOutput.body;
|
|
290
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
291
|
-
message: smithy_client_1.expectString,
|
|
292
|
-
resourceId: smithy_client_1.expectString,
|
|
293
|
-
resourceType: smithy_client_1.expectString,
|
|
294
|
-
});
|
|
295
|
-
Object.assign(contents, doc);
|
|
296
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
297
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
298
|
-
...contents,
|
|
299
|
-
});
|
|
300
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
301
|
-
};
|
|
302
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
303
|
-
const contents = (0, smithy_client_1.map)({});
|
|
304
|
-
const data = parsedOutput.body;
|
|
305
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
306
|
-
message: smithy_client_1.expectString,
|
|
307
|
-
quotaCode: smithy_client_1.expectString,
|
|
308
|
-
resourceId: smithy_client_1.expectString,
|
|
309
|
-
resourceType: smithy_client_1.expectString,
|
|
310
|
-
serviceCode: smithy_client_1.expectString,
|
|
311
|
-
});
|
|
312
|
-
Object.assign(contents, doc);
|
|
313
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
314
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
315
|
-
...contents,
|
|
316
|
-
});
|
|
317
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
318
|
-
};
|
|
319
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
320
|
-
const contents = (0, smithy_client_1.map)({
|
|
321
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
322
|
-
});
|
|
323
|
-
const data = parsedOutput.body;
|
|
324
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
325
|
-
message: smithy_client_1.expectString,
|
|
326
|
-
quotaCode: smithy_client_1.expectString,
|
|
327
|
-
serviceCode: smithy_client_1.expectString,
|
|
328
|
-
});
|
|
329
|
-
Object.assign(contents, doc);
|
|
330
|
-
const exception = new models_0_1.ThrottlingException({
|
|
331
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
332
|
-
...contents,
|
|
333
|
-
});
|
|
334
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
335
|
-
};
|
|
336
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
337
|
-
const contents = (0, smithy_client_1.map)({});
|
|
338
|
-
const data = parsedOutput.body;
|
|
339
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
340
|
-
fieldList: smithy_client_1._json,
|
|
341
|
-
message: smithy_client_1.expectString,
|
|
342
|
-
reason: smithy_client_1.expectString,
|
|
343
|
-
});
|
|
344
|
-
Object.assign(contents, doc);
|
|
345
|
-
const exception = new models_0_1.ValidationException({
|
|
346
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
347
|
-
...contents,
|
|
348
|
-
});
|
|
349
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
350
|
-
};
|
|
351
|
-
const de_CustomerAgreementList = (output, context) => {
|
|
352
|
-
const retVal = (output || [])
|
|
353
|
-
.filter((e) => e != null)
|
|
354
|
-
.map((entry) => {
|
|
355
|
-
return de_CustomerAgreementSummary(entry, context);
|
|
356
|
-
});
|
|
357
|
-
return retVal;
|
|
358
|
-
};
|
|
359
|
-
const de_CustomerAgreementSummary = (output, context) => {
|
|
360
|
-
return (0, smithy_client_1.take)(output, {
|
|
361
|
-
acceptanceTerms: smithy_client_1._json,
|
|
362
|
-
agreementArn: smithy_client_1.expectString,
|
|
363
|
-
arn: smithy_client_1.expectString,
|
|
364
|
-
awsAccountId: smithy_client_1.expectString,
|
|
365
|
-
description: smithy_client_1.expectString,
|
|
366
|
-
effectiveEnd: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
367
|
-
effectiveStart: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
368
|
-
id: smithy_client_1.expectString,
|
|
369
|
-
name: smithy_client_1.expectString,
|
|
370
|
-
organizationArn: smithy_client_1.expectString,
|
|
371
|
-
state: smithy_client_1.expectString,
|
|
372
|
-
terminateTerms: smithy_client_1._json,
|
|
373
|
-
type: smithy_client_1.expectString,
|
|
374
|
-
});
|
|
375
|
-
};
|
|
376
|
-
const de_ReportDetail = (output, context) => {
|
|
377
|
-
return (0, smithy_client_1.take)(output, {
|
|
378
|
-
acceptanceType: smithy_client_1.expectString,
|
|
379
|
-
arn: smithy_client_1.expectString,
|
|
380
|
-
category: smithy_client_1.expectString,
|
|
381
|
-
companyName: smithy_client_1.expectString,
|
|
382
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
383
|
-
deletedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
384
|
-
description: smithy_client_1.expectString,
|
|
385
|
-
id: smithy_client_1.expectString,
|
|
386
|
-
lastModifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
387
|
-
name: smithy_client_1.expectString,
|
|
388
|
-
periodEnd: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
389
|
-
periodStart: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
390
|
-
productName: smithy_client_1.expectString,
|
|
391
|
-
sequenceNumber: smithy_client_1.expectLong,
|
|
392
|
-
series: smithy_client_1.expectString,
|
|
393
|
-
state: smithy_client_1.expectString,
|
|
394
|
-
statusMessage: smithy_client_1.expectString,
|
|
395
|
-
termArn: smithy_client_1.expectString,
|
|
396
|
-
uploadState: smithy_client_1.expectString,
|
|
397
|
-
version: smithy_client_1.expectLong,
|
|
398
|
-
});
|
|
399
|
-
};
|
|
400
|
-
const de_ReportsList = (output, context) => {
|
|
401
|
-
const retVal = (output || [])
|
|
402
|
-
.filter((e) => e != null)
|
|
403
|
-
.map((entry) => {
|
|
404
|
-
return de_ReportSummary(entry, context);
|
|
405
|
-
});
|
|
406
|
-
return retVal;
|
|
407
|
-
};
|
|
408
|
-
const de_ReportSummary = (output, context) => {
|
|
409
|
-
return (0, smithy_client_1.take)(output, {
|
|
410
|
-
acceptanceType: smithy_client_1.expectString,
|
|
411
|
-
arn: smithy_client_1.expectString,
|
|
412
|
-
category: smithy_client_1.expectString,
|
|
413
|
-
companyName: smithy_client_1.expectString,
|
|
414
|
-
description: smithy_client_1.expectString,
|
|
415
|
-
id: smithy_client_1.expectString,
|
|
416
|
-
name: smithy_client_1.expectString,
|
|
417
|
-
periodEnd: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
418
|
-
periodStart: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
419
|
-
productName: smithy_client_1.expectString,
|
|
420
|
-
series: smithy_client_1.expectString,
|
|
421
|
-
state: smithy_client_1.expectString,
|
|
422
|
-
statusMessage: smithy_client_1.expectString,
|
|
423
|
-
uploadState: smithy_client_1.expectString,
|
|
424
|
-
version: smithy_client_1.expectLong,
|
|
425
|
-
});
|
|
426
|
-
};
|
|
427
|
-
const deserializeMetadata = (output) => ({
|
|
428
|
-
httpStatusCode: output.statusCode,
|
|
429
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
430
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
431
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
432
|
-
});
|
|
433
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
434
|
-
const _mR = "maxResults";
|
|
435
|
-
const _nT = "nextToken";
|
|
436
|
-
const _rAS = "retryAfterSeconds";
|
|
437
|
-
const _rI = "reportId";
|
|
438
|
-
const _rV = "reportVersion";
|
|
439
|
-
const _ra = "retry-after";
|
|
440
|
-
const _tT = "termToken";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|