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