@aws-sdk/client-artifact 3.928.0 → 3.929.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 +2 -2
- 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
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class ArtifactClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,18 +110,18 @@ class ArtifactClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class ArtifactServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let ArtifactServiceException$1 = class ArtifactServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, ArtifactServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const AcceptanceType = {
|
|
121
121
|
EXPLICIT: "EXPLICIT",
|
|
122
122
|
PASSTHROUGH: "PASSTHROUGH",
|
|
123
123
|
};
|
|
124
|
-
class AccessDeniedException extends ArtifactServiceException {
|
|
124
|
+
let AccessDeniedException$1 = class AccessDeniedException extends ArtifactServiceException$1 {
|
|
125
125
|
name = "AccessDeniedException";
|
|
126
126
|
$fault = "client";
|
|
127
127
|
constructor(opts) {
|
|
@@ -132,12 +132,12 @@ class AccessDeniedException extends ArtifactServiceException {
|
|
|
132
132
|
});
|
|
133
133
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
134
134
|
}
|
|
135
|
-
}
|
|
135
|
+
};
|
|
136
136
|
const NotificationSubscriptionStatus = {
|
|
137
137
|
NOT_SUBSCRIBED: "NOT_SUBSCRIBED",
|
|
138
138
|
SUBSCRIBED: "SUBSCRIBED",
|
|
139
139
|
};
|
|
140
|
-
class ConflictException extends ArtifactServiceException {
|
|
140
|
+
let ConflictException$1 = class ConflictException extends ArtifactServiceException$1 {
|
|
141
141
|
name = "ConflictException";
|
|
142
142
|
$fault = "client";
|
|
143
143
|
resourceId;
|
|
@@ -152,8 +152,8 @@ class ConflictException extends ArtifactServiceException {
|
|
|
152
152
|
this.resourceId = opts.resourceId;
|
|
153
153
|
this.resourceType = opts.resourceType;
|
|
154
154
|
}
|
|
155
|
-
}
|
|
156
|
-
class InternalServerException extends ArtifactServiceException {
|
|
155
|
+
};
|
|
156
|
+
let InternalServerException$1 = class InternalServerException extends ArtifactServiceException$1 {
|
|
157
157
|
name = "InternalServerException";
|
|
158
158
|
$fault = "server";
|
|
159
159
|
$retryable = {};
|
|
@@ -167,8 +167,8 @@ class InternalServerException extends ArtifactServiceException {
|
|
|
167
167
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
168
168
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
169
169
|
}
|
|
170
|
-
}
|
|
171
|
-
class ResourceNotFoundException extends ArtifactServiceException {
|
|
170
|
+
};
|
|
171
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends ArtifactServiceException$1 {
|
|
172
172
|
name = "ResourceNotFoundException";
|
|
173
173
|
$fault = "client";
|
|
174
174
|
resourceId;
|
|
@@ -183,8 +183,8 @@ class ResourceNotFoundException extends ArtifactServiceException {
|
|
|
183
183
|
this.resourceId = opts.resourceId;
|
|
184
184
|
this.resourceType = opts.resourceType;
|
|
185
185
|
}
|
|
186
|
-
}
|
|
187
|
-
class ServiceQuotaExceededException extends ArtifactServiceException {
|
|
186
|
+
};
|
|
187
|
+
let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends ArtifactServiceException$1 {
|
|
188
188
|
name = "ServiceQuotaExceededException";
|
|
189
189
|
$fault = "client";
|
|
190
190
|
resourceId;
|
|
@@ -203,8 +203,8 @@ class ServiceQuotaExceededException extends ArtifactServiceException {
|
|
|
203
203
|
this.serviceCode = opts.serviceCode;
|
|
204
204
|
this.quotaCode = opts.quotaCode;
|
|
205
205
|
}
|
|
206
|
-
}
|
|
207
|
-
class ThrottlingException extends ArtifactServiceException {
|
|
206
|
+
};
|
|
207
|
+
let ThrottlingException$1 = class ThrottlingException extends ArtifactServiceException$1 {
|
|
208
208
|
name = "ThrottlingException";
|
|
209
209
|
$fault = "client";
|
|
210
210
|
$retryable = {
|
|
@@ -224,7 +224,7 @@ class ThrottlingException extends ArtifactServiceException {
|
|
|
224
224
|
this.quotaCode = opts.quotaCode;
|
|
225
225
|
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
226
226
|
}
|
|
227
|
-
}
|
|
227
|
+
};
|
|
228
228
|
const ValidationExceptionReason = {
|
|
229
229
|
CANNOT_PARSE: "cannotParse",
|
|
230
230
|
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
@@ -232,7 +232,7 @@ const ValidationExceptionReason = {
|
|
|
232
232
|
OTHER: "other",
|
|
233
233
|
UNKNOWN_OPERATION: "unknownOperation",
|
|
234
234
|
};
|
|
235
|
-
class ValidationException extends ArtifactServiceException {
|
|
235
|
+
let ValidationException$1 = class ValidationException extends ArtifactServiceException$1 {
|
|
236
236
|
name = "ValidationException";
|
|
237
237
|
$fault = "client";
|
|
238
238
|
reason;
|
|
@@ -247,7 +247,7 @@ class ValidationException extends ArtifactServiceException {
|
|
|
247
247
|
this.reason = opts.reason;
|
|
248
248
|
this.fieldList = opts.fieldList;
|
|
249
249
|
}
|
|
250
|
-
}
|
|
250
|
+
};
|
|
251
251
|
const AgreementType = {
|
|
252
252
|
CUSTOM: "CUSTOM",
|
|
253
253
|
DEFAULT: "DEFAULT",
|
|
@@ -269,438 +269,439 @@ const UploadState = {
|
|
|
269
269
|
PROCESSING: "PROCESSING",
|
|
270
270
|
};
|
|
271
271
|
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
const
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
const
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
const
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
335
|
-
[_nT]: [, input[_nT]],
|
|
336
|
-
});
|
|
337
|
-
let body;
|
|
338
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
339
|
-
return b.build();
|
|
340
|
-
};
|
|
341
|
-
const se_PutAccountSettingsCommand = async (input, context) => {
|
|
342
|
-
const b = core.requestBuilder(input, context);
|
|
343
|
-
const headers = {
|
|
344
|
-
"content-type": "application/json",
|
|
345
|
-
};
|
|
346
|
-
b.bp("/v1/account-settings/put");
|
|
347
|
-
let body;
|
|
348
|
-
body = JSON.stringify(smithyClient.take(input, {
|
|
349
|
-
notificationSubscriptionStatus: [],
|
|
350
|
-
}));
|
|
351
|
-
b.m("PUT").h(headers).b(body);
|
|
352
|
-
return b.build();
|
|
353
|
-
};
|
|
354
|
-
const de_GetAccountSettingsCommand = async (output, context) => {
|
|
355
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
356
|
-
return de_CommandError(output, context);
|
|
357
|
-
}
|
|
358
|
-
const contents = smithyClient.map({
|
|
359
|
-
$metadata: deserializeMetadata(output),
|
|
360
|
-
});
|
|
361
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
362
|
-
const doc = smithyClient.take(data, {
|
|
363
|
-
accountSettings: smithyClient._json,
|
|
364
|
-
});
|
|
365
|
-
Object.assign(contents, doc);
|
|
366
|
-
return contents;
|
|
367
|
-
};
|
|
368
|
-
const de_GetReportCommand = async (output, context) => {
|
|
369
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
370
|
-
return de_CommandError(output, context);
|
|
371
|
-
}
|
|
372
|
-
const contents = smithyClient.map({
|
|
373
|
-
$metadata: deserializeMetadata(output),
|
|
374
|
-
});
|
|
375
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
376
|
-
const doc = smithyClient.take(data, {
|
|
377
|
-
documentPresignedUrl: smithyClient.expectString,
|
|
378
|
-
});
|
|
379
|
-
Object.assign(contents, doc);
|
|
380
|
-
return contents;
|
|
381
|
-
};
|
|
382
|
-
const de_GetReportMetadataCommand = async (output, context) => {
|
|
383
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
|
-
return de_CommandError(output, context);
|
|
385
|
-
}
|
|
386
|
-
const contents = smithyClient.map({
|
|
387
|
-
$metadata: deserializeMetadata(output),
|
|
388
|
-
});
|
|
389
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
390
|
-
const doc = smithyClient.take(data, {
|
|
391
|
-
reportDetails: (_) => de_ReportDetail(_),
|
|
392
|
-
});
|
|
393
|
-
Object.assign(contents, doc);
|
|
394
|
-
return contents;
|
|
395
|
-
};
|
|
396
|
-
const de_GetTermForReportCommand = async (output, context) => {
|
|
397
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
398
|
-
return de_CommandError(output, context);
|
|
399
|
-
}
|
|
400
|
-
const contents = smithyClient.map({
|
|
401
|
-
$metadata: deserializeMetadata(output),
|
|
402
|
-
});
|
|
403
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
404
|
-
const doc = smithyClient.take(data, {
|
|
405
|
-
documentPresignedUrl: smithyClient.expectString,
|
|
406
|
-
termToken: smithyClient.expectString,
|
|
407
|
-
});
|
|
408
|
-
Object.assign(contents, doc);
|
|
409
|
-
return contents;
|
|
410
|
-
};
|
|
411
|
-
const de_ListCustomerAgreementsCommand = async (output, context) => {
|
|
412
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
413
|
-
return de_CommandError(output, context);
|
|
414
|
-
}
|
|
415
|
-
const contents = smithyClient.map({
|
|
416
|
-
$metadata: deserializeMetadata(output),
|
|
417
|
-
});
|
|
418
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
419
|
-
const doc = smithyClient.take(data, {
|
|
420
|
-
customerAgreements: (_) => de_CustomerAgreementList(_),
|
|
421
|
-
nextToken: smithyClient.expectString,
|
|
422
|
-
});
|
|
423
|
-
Object.assign(contents, doc);
|
|
424
|
-
return contents;
|
|
425
|
-
};
|
|
426
|
-
const de_ListReportsCommand = async (output, context) => {
|
|
427
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
-
return de_CommandError(output, context);
|
|
429
|
-
}
|
|
430
|
-
const contents = smithyClient.map({
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
});
|
|
433
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
434
|
-
const doc = smithyClient.take(data, {
|
|
435
|
-
nextToken: smithyClient.expectString,
|
|
436
|
-
reports: (_) => de_ReportsList(_),
|
|
437
|
-
});
|
|
438
|
-
Object.assign(contents, doc);
|
|
439
|
-
return contents;
|
|
440
|
-
};
|
|
441
|
-
const de_PutAccountSettingsCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const contents = smithyClient.map({
|
|
446
|
-
$metadata: deserializeMetadata(output),
|
|
447
|
-
});
|
|
448
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
449
|
-
const doc = smithyClient.take(data, {
|
|
450
|
-
accountSettings: smithyClient._json,
|
|
451
|
-
});
|
|
452
|
-
Object.assign(contents, doc);
|
|
453
|
-
return contents;
|
|
454
|
-
};
|
|
455
|
-
const de_CommandError = async (output, context) => {
|
|
456
|
-
const parsedOutput = {
|
|
457
|
-
...output,
|
|
458
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
459
|
-
};
|
|
460
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
461
|
-
switch (errorCode) {
|
|
462
|
-
case "AccessDeniedException":
|
|
463
|
-
case "com.amazonaws.artifact#AccessDeniedException":
|
|
464
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
465
|
-
case "ConflictException":
|
|
466
|
-
case "com.amazonaws.artifact#ConflictException":
|
|
467
|
-
throw await de_ConflictExceptionRes(parsedOutput);
|
|
468
|
-
case "InternalServerException":
|
|
469
|
-
case "com.amazonaws.artifact#InternalServerException":
|
|
470
|
-
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
471
|
-
case "ResourceNotFoundException":
|
|
472
|
-
case "com.amazonaws.artifact#ResourceNotFoundException":
|
|
473
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
474
|
-
case "ServiceQuotaExceededException":
|
|
475
|
-
case "com.amazonaws.artifact#ServiceQuotaExceededException":
|
|
476
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
477
|
-
case "ThrottlingException":
|
|
478
|
-
case "com.amazonaws.artifact#ThrottlingException":
|
|
479
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
480
|
-
case "ValidationException":
|
|
481
|
-
case "com.amazonaws.artifact#ValidationException":
|
|
482
|
-
throw await de_ValidationExceptionRes(parsedOutput);
|
|
483
|
-
default:
|
|
484
|
-
const parsedBody = parsedOutput.body;
|
|
485
|
-
return throwDefaultError({
|
|
486
|
-
output,
|
|
487
|
-
parsedBody,
|
|
488
|
-
errorCode,
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
};
|
|
492
|
-
const throwDefaultError = smithyClient.withBaseException(ArtifactServiceException);
|
|
493
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
494
|
-
const contents = smithyClient.map({});
|
|
495
|
-
const data = parsedOutput.body;
|
|
496
|
-
const doc = smithyClient.take(data, {
|
|
497
|
-
message: smithyClient.expectString,
|
|
498
|
-
});
|
|
499
|
-
Object.assign(contents, doc);
|
|
500
|
-
const exception = new AccessDeniedException({
|
|
501
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
502
|
-
...contents,
|
|
503
|
-
});
|
|
504
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
505
|
-
};
|
|
506
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
507
|
-
const contents = smithyClient.map({});
|
|
508
|
-
const data = parsedOutput.body;
|
|
509
|
-
const doc = smithyClient.take(data, {
|
|
510
|
-
message: smithyClient.expectString,
|
|
511
|
-
resourceId: smithyClient.expectString,
|
|
512
|
-
resourceType: smithyClient.expectString,
|
|
513
|
-
});
|
|
514
|
-
Object.assign(contents, doc);
|
|
515
|
-
const exception = new ConflictException({
|
|
516
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
517
|
-
...contents,
|
|
518
|
-
});
|
|
519
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
520
|
-
};
|
|
521
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
522
|
-
const contents = smithyClient.map({
|
|
523
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
524
|
-
});
|
|
525
|
-
const data = parsedOutput.body;
|
|
526
|
-
const doc = smithyClient.take(data, {
|
|
527
|
-
message: smithyClient.expectString,
|
|
528
|
-
});
|
|
529
|
-
Object.assign(contents, doc);
|
|
530
|
-
const exception = new InternalServerException({
|
|
531
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
532
|
-
...contents,
|
|
533
|
-
});
|
|
534
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
535
|
-
};
|
|
536
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
537
|
-
const contents = smithyClient.map({});
|
|
538
|
-
const data = parsedOutput.body;
|
|
539
|
-
const doc = smithyClient.take(data, {
|
|
540
|
-
message: smithyClient.expectString,
|
|
541
|
-
resourceId: smithyClient.expectString,
|
|
542
|
-
resourceType: smithyClient.expectString,
|
|
543
|
-
});
|
|
544
|
-
Object.assign(contents, doc);
|
|
545
|
-
const exception = new ResourceNotFoundException({
|
|
546
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
547
|
-
...contents,
|
|
548
|
-
});
|
|
549
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
550
|
-
};
|
|
551
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
552
|
-
const contents = smithyClient.map({});
|
|
553
|
-
const data = parsedOutput.body;
|
|
554
|
-
const doc = smithyClient.take(data, {
|
|
555
|
-
message: smithyClient.expectString,
|
|
556
|
-
quotaCode: smithyClient.expectString,
|
|
557
|
-
resourceId: smithyClient.expectString,
|
|
558
|
-
resourceType: smithyClient.expectString,
|
|
559
|
-
serviceCode: smithyClient.expectString,
|
|
560
|
-
});
|
|
561
|
-
Object.assign(contents, doc);
|
|
562
|
-
const exception = new ServiceQuotaExceededException({
|
|
563
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
564
|
-
...contents,
|
|
565
|
-
});
|
|
566
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
567
|
-
};
|
|
568
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
569
|
-
const contents = smithyClient.map({
|
|
570
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
571
|
-
});
|
|
572
|
-
const data = parsedOutput.body;
|
|
573
|
-
const doc = smithyClient.take(data, {
|
|
574
|
-
message: smithyClient.expectString,
|
|
575
|
-
quotaCode: smithyClient.expectString,
|
|
576
|
-
serviceCode: smithyClient.expectString,
|
|
577
|
-
});
|
|
578
|
-
Object.assign(contents, doc);
|
|
579
|
-
const exception = new ThrottlingException({
|
|
580
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
581
|
-
...contents,
|
|
582
|
-
});
|
|
583
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
584
|
-
};
|
|
585
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
586
|
-
const contents = smithyClient.map({});
|
|
587
|
-
const data = parsedOutput.body;
|
|
588
|
-
const doc = smithyClient.take(data, {
|
|
589
|
-
fieldList: smithyClient._json,
|
|
590
|
-
message: smithyClient.expectString,
|
|
591
|
-
reason: smithyClient.expectString,
|
|
592
|
-
});
|
|
593
|
-
Object.assign(contents, doc);
|
|
594
|
-
const exception = new ValidationException({
|
|
595
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
596
|
-
...contents,
|
|
597
|
-
});
|
|
598
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
599
|
-
};
|
|
600
|
-
const de_CustomerAgreementList = (output, context) => {
|
|
601
|
-
const retVal = (output || [])
|
|
602
|
-
.filter((e) => e != null)
|
|
603
|
-
.map((entry) => {
|
|
604
|
-
return de_CustomerAgreementSummary(entry);
|
|
605
|
-
});
|
|
606
|
-
return retVal;
|
|
607
|
-
};
|
|
608
|
-
const de_CustomerAgreementSummary = (output, context) => {
|
|
609
|
-
return smithyClient.take(output, {
|
|
610
|
-
acceptanceTerms: smithyClient._json,
|
|
611
|
-
agreementArn: smithyClient.expectString,
|
|
612
|
-
arn: smithyClient.expectString,
|
|
613
|
-
awsAccountId: smithyClient.expectString,
|
|
614
|
-
description: smithyClient.expectString,
|
|
615
|
-
effectiveEnd: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
616
|
-
effectiveStart: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
617
|
-
id: smithyClient.expectString,
|
|
618
|
-
name: smithyClient.expectString,
|
|
619
|
-
organizationArn: smithyClient.expectString,
|
|
620
|
-
state: smithyClient.expectString,
|
|
621
|
-
terminateTerms: smithyClient._json,
|
|
622
|
-
type: smithyClient.expectString,
|
|
623
|
-
});
|
|
624
|
-
};
|
|
625
|
-
const de_ReportDetail = (output, context) => {
|
|
626
|
-
return smithyClient.take(output, {
|
|
627
|
-
acceptanceType: smithyClient.expectString,
|
|
628
|
-
arn: smithyClient.expectString,
|
|
629
|
-
category: smithyClient.expectString,
|
|
630
|
-
companyName: smithyClient.expectString,
|
|
631
|
-
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
632
|
-
deletedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
633
|
-
description: smithyClient.expectString,
|
|
634
|
-
id: smithyClient.expectString,
|
|
635
|
-
lastModifiedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
636
|
-
name: smithyClient.expectString,
|
|
637
|
-
periodEnd: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
638
|
-
periodStart: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
639
|
-
productName: smithyClient.expectString,
|
|
640
|
-
sequenceNumber: smithyClient.expectLong,
|
|
641
|
-
series: smithyClient.expectString,
|
|
642
|
-
state: smithyClient.expectString,
|
|
643
|
-
statusMessage: smithyClient.expectString,
|
|
644
|
-
termArn: smithyClient.expectString,
|
|
645
|
-
uploadState: smithyClient.expectString,
|
|
646
|
-
version: smithyClient.expectLong,
|
|
647
|
-
});
|
|
648
|
-
};
|
|
649
|
-
const de_ReportsList = (output, context) => {
|
|
650
|
-
const retVal = (output || [])
|
|
651
|
-
.filter((e) => e != null)
|
|
652
|
-
.map((entry) => {
|
|
653
|
-
return de_ReportSummary(entry);
|
|
654
|
-
});
|
|
655
|
-
return retVal;
|
|
656
|
-
};
|
|
657
|
-
const de_ReportSummary = (output, context) => {
|
|
658
|
-
return smithyClient.take(output, {
|
|
659
|
-
acceptanceType: smithyClient.expectString,
|
|
660
|
-
arn: smithyClient.expectString,
|
|
661
|
-
category: smithyClient.expectString,
|
|
662
|
-
companyName: smithyClient.expectString,
|
|
663
|
-
description: smithyClient.expectString,
|
|
664
|
-
id: smithyClient.expectString,
|
|
665
|
-
name: smithyClient.expectString,
|
|
666
|
-
periodEnd: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
667
|
-
periodStart: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
668
|
-
productName: smithyClient.expectString,
|
|
669
|
-
series: smithyClient.expectString,
|
|
670
|
-
state: smithyClient.expectString,
|
|
671
|
-
statusMessage: smithyClient.expectString,
|
|
672
|
-
uploadState: smithyClient.expectString,
|
|
673
|
-
version: smithyClient.expectLong,
|
|
674
|
-
});
|
|
675
|
-
};
|
|
676
|
-
const deserializeMetadata = (output) => ({
|
|
677
|
-
httpStatusCode: output.statusCode,
|
|
678
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
679
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
680
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
681
|
-
});
|
|
272
|
+
const _ADE = "AccessDeniedException";
|
|
273
|
+
const _AS = "AccountSettings";
|
|
274
|
+
const _CAL = "CustomerAgreementList";
|
|
275
|
+
const _CAS = "CustomerAgreementSummary";
|
|
276
|
+
const _CE = "ConflictException";
|
|
277
|
+
const _GAS = "GetAccountSettings";
|
|
278
|
+
const _GASR = "GetAccountSettingsRequest";
|
|
279
|
+
const _GASRe = "GetAccountSettingsResponse";
|
|
280
|
+
const _GR = "GetReport";
|
|
281
|
+
const _GRM = "GetReportMetadata";
|
|
282
|
+
const _GRMR = "GetReportMetadataRequest";
|
|
283
|
+
const _GRMRe = "GetReportMetadataResponse";
|
|
284
|
+
const _GRR = "GetReportRequest";
|
|
285
|
+
const _GRRe = "GetReportResponse";
|
|
286
|
+
const _GTFR = "GetTermForReport";
|
|
287
|
+
const _GTFRR = "GetTermForReportRequest";
|
|
288
|
+
const _GTFRRe = "GetTermForReportResponse";
|
|
289
|
+
const _ISE = "InternalServerException";
|
|
290
|
+
const _LCA = "ListCustomerAgreements";
|
|
291
|
+
const _LCAR = "ListCustomerAgreementsRequest";
|
|
292
|
+
const _LCARi = "ListCustomerAgreementsResponse";
|
|
293
|
+
const _LR = "ListReports";
|
|
294
|
+
const _LRR = "ListReportsRequest";
|
|
295
|
+
const _LRRi = "ListReportsResponse";
|
|
296
|
+
const _PAS = "PutAccountSettings";
|
|
297
|
+
const _PASR = "PutAccountSettingsRequest";
|
|
298
|
+
const _PASRu = "PutAccountSettingsResponse";
|
|
299
|
+
const _RA = "Retry-After";
|
|
300
|
+
const _RD = "ReportDetail";
|
|
301
|
+
const _RL = "ReportsList";
|
|
302
|
+
const _RNFE = "ResourceNotFoundException";
|
|
303
|
+
const _RS = "ReportSummary";
|
|
304
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
305
|
+
const _TE = "ThrottlingException";
|
|
306
|
+
const _VE = "ValidationException";
|
|
307
|
+
const _VEF = "ValidationExceptionField";
|
|
308
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
309
|
+
const _a = "arn";
|
|
310
|
+
const _aA = "agreementArn";
|
|
311
|
+
const _aAI = "awsAccountId";
|
|
312
|
+
const _aS = "accountSettings";
|
|
313
|
+
const _aT = "acceptanceTerms";
|
|
314
|
+
const _aTc = "acceptanceType";
|
|
315
|
+
const _c = "client";
|
|
316
|
+
const _cA = "customerAgreements";
|
|
317
|
+
const _cAr = "createdAt";
|
|
318
|
+
const _cN = "companyName";
|
|
319
|
+
const _ca = "category";
|
|
320
|
+
const _d = "description";
|
|
321
|
+
const _dA = "deletedAt";
|
|
322
|
+
const _dPU = "documentPresignedUrl";
|
|
323
|
+
const _e = "error";
|
|
324
|
+
const _eE = "effectiveEnd";
|
|
325
|
+
const _eS = "effectiveStart";
|
|
326
|
+
const _fL = "fieldList";
|
|
327
|
+
const _h = "http";
|
|
328
|
+
const _hE = "httpError";
|
|
329
|
+
const _hH = "httpHeader";
|
|
330
|
+
const _hQ = "httpQuery";
|
|
331
|
+
const _i = "id";
|
|
332
|
+
const _lMA = "lastModifiedAt";
|
|
333
|
+
const _m = "message";
|
|
682
334
|
const _mR = "maxResults";
|
|
335
|
+
const _n = "name";
|
|
336
|
+
const _nSS = "notificationSubscriptionStatus";
|
|
683
337
|
const _nT = "nextToken";
|
|
338
|
+
const _oA = "organizationArn";
|
|
339
|
+
const _pE = "periodEnd";
|
|
340
|
+
const _pN = "productName";
|
|
341
|
+
const _pS = "periodStart";
|
|
342
|
+
const _qC = "quotaCode";
|
|
343
|
+
const _r = "reports";
|
|
684
344
|
const _rAS = "retryAfterSeconds";
|
|
685
|
-
const
|
|
345
|
+
const _rD = "reportDetails";
|
|
346
|
+
const _rI = "resourceId";
|
|
347
|
+
const _rIe = "reportId";
|
|
348
|
+
const _rT = "resourceType";
|
|
686
349
|
const _rV = "reportVersion";
|
|
687
|
-
const
|
|
688
|
-
const
|
|
350
|
+
const _re = "reason";
|
|
351
|
+
const _s = "state";
|
|
352
|
+
const _sC = "serviceCode";
|
|
353
|
+
const _sM = "statusMessage";
|
|
354
|
+
const _sN = "sequenceNumber";
|
|
355
|
+
const _se = "server";
|
|
356
|
+
const _ser = "series";
|
|
357
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.artifact";
|
|
358
|
+
const _t = "type";
|
|
359
|
+
const _tA = "termArn";
|
|
360
|
+
const _tT = "terminateTerms";
|
|
361
|
+
const _tTe = "termToken";
|
|
362
|
+
const _uS = "uploadState";
|
|
363
|
+
const _v = "version";
|
|
364
|
+
const n0 = "com.amazonaws.artifact";
|
|
365
|
+
var AccessDeniedException = [
|
|
366
|
+
-3,
|
|
367
|
+
n0,
|
|
368
|
+
_ADE,
|
|
369
|
+
{
|
|
370
|
+
[_e]: _c,
|
|
371
|
+
[_hE]: 403,
|
|
372
|
+
},
|
|
373
|
+
[_m],
|
|
374
|
+
[0],
|
|
375
|
+
];
|
|
376
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
377
|
+
var AccountSettings = [3, n0, _AS, 0, [_nSS], [0]];
|
|
378
|
+
var ConflictException = [
|
|
379
|
+
-3,
|
|
380
|
+
n0,
|
|
381
|
+
_CE,
|
|
382
|
+
{
|
|
383
|
+
[_e]: _c,
|
|
384
|
+
[_hE]: 409,
|
|
385
|
+
},
|
|
386
|
+
[_m, _rI, _rT],
|
|
387
|
+
[0, 0, 0],
|
|
388
|
+
];
|
|
389
|
+
schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
|
|
390
|
+
var CustomerAgreementSummary = [
|
|
391
|
+
3,
|
|
392
|
+
n0,
|
|
393
|
+
_CAS,
|
|
394
|
+
0,
|
|
395
|
+
[_n, _a, _i, _aA, _aAI, _oA, _eS, _eE, _s, _d, _aT, _tT, _t],
|
|
396
|
+
[0, 0, 0, 0, 0, 0, 5, 5, 0, 0, 64 | 0, 64 | 0, 0],
|
|
397
|
+
];
|
|
398
|
+
var GetAccountSettingsRequest = [3, n0, _GASR, 0, [], []];
|
|
399
|
+
var GetAccountSettingsResponse = [3, n0, _GASRe, 0, [_aS], [() => AccountSettings]];
|
|
400
|
+
var GetReportMetadataRequest = [
|
|
401
|
+
3,
|
|
402
|
+
n0,
|
|
403
|
+
_GRMR,
|
|
404
|
+
0,
|
|
405
|
+
[_rIe, _rV],
|
|
406
|
+
[
|
|
407
|
+
[
|
|
408
|
+
0,
|
|
409
|
+
{
|
|
410
|
+
[_hQ]: _rIe,
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
[
|
|
414
|
+
1,
|
|
415
|
+
{
|
|
416
|
+
[_hQ]: _rV,
|
|
417
|
+
},
|
|
418
|
+
],
|
|
419
|
+
],
|
|
420
|
+
];
|
|
421
|
+
var GetReportMetadataResponse = [3, n0, _GRMRe, 0, [_rD], [() => ReportDetail]];
|
|
422
|
+
var GetReportRequest = [
|
|
423
|
+
3,
|
|
424
|
+
n0,
|
|
425
|
+
_GRR,
|
|
426
|
+
0,
|
|
427
|
+
[_rIe, _rV, _tTe],
|
|
428
|
+
[
|
|
429
|
+
[
|
|
430
|
+
0,
|
|
431
|
+
{
|
|
432
|
+
[_hQ]: _rIe,
|
|
433
|
+
},
|
|
434
|
+
],
|
|
435
|
+
[
|
|
436
|
+
1,
|
|
437
|
+
{
|
|
438
|
+
[_hQ]: _rV,
|
|
439
|
+
},
|
|
440
|
+
],
|
|
441
|
+
[
|
|
442
|
+
0,
|
|
443
|
+
{
|
|
444
|
+
[_hQ]: _tTe,
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
],
|
|
448
|
+
];
|
|
449
|
+
var GetReportResponse = [3, n0, _GRRe, 0, [_dPU], [0]];
|
|
450
|
+
var GetTermForReportRequest = [
|
|
451
|
+
3,
|
|
452
|
+
n0,
|
|
453
|
+
_GTFRR,
|
|
454
|
+
0,
|
|
455
|
+
[_rIe, _rV],
|
|
456
|
+
[
|
|
457
|
+
[
|
|
458
|
+
0,
|
|
459
|
+
{
|
|
460
|
+
[_hQ]: _rIe,
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
[
|
|
464
|
+
1,
|
|
465
|
+
{
|
|
466
|
+
[_hQ]: _rV,
|
|
467
|
+
},
|
|
468
|
+
],
|
|
469
|
+
],
|
|
470
|
+
];
|
|
471
|
+
var GetTermForReportResponse = [3, n0, _GTFRRe, 0, [_dPU, _tTe], [0, 0]];
|
|
472
|
+
var InternalServerException = [
|
|
473
|
+
-3,
|
|
474
|
+
n0,
|
|
475
|
+
_ISE,
|
|
476
|
+
{
|
|
477
|
+
[_e]: _se,
|
|
478
|
+
[_hE]: 500,
|
|
479
|
+
},
|
|
480
|
+
[_m, _rAS],
|
|
481
|
+
[
|
|
482
|
+
0,
|
|
483
|
+
[
|
|
484
|
+
1,
|
|
485
|
+
{
|
|
486
|
+
[_hH]: _RA,
|
|
487
|
+
},
|
|
488
|
+
],
|
|
489
|
+
],
|
|
490
|
+
];
|
|
491
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
492
|
+
var ListCustomerAgreementsRequest = [
|
|
493
|
+
3,
|
|
494
|
+
n0,
|
|
495
|
+
_LCAR,
|
|
496
|
+
0,
|
|
497
|
+
[_mR, _nT],
|
|
498
|
+
[
|
|
499
|
+
[
|
|
500
|
+
1,
|
|
501
|
+
{
|
|
502
|
+
[_hQ]: _mR,
|
|
503
|
+
},
|
|
504
|
+
],
|
|
505
|
+
[
|
|
506
|
+
0,
|
|
507
|
+
{
|
|
508
|
+
[_hQ]: _nT,
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
],
|
|
512
|
+
];
|
|
513
|
+
var ListCustomerAgreementsResponse = [
|
|
514
|
+
3,
|
|
515
|
+
n0,
|
|
516
|
+
_LCARi,
|
|
517
|
+
0,
|
|
518
|
+
[_cA, _nT],
|
|
519
|
+
[() => CustomerAgreementList, 0],
|
|
520
|
+
];
|
|
521
|
+
var ListReportsRequest = [
|
|
522
|
+
3,
|
|
523
|
+
n0,
|
|
524
|
+
_LRR,
|
|
525
|
+
0,
|
|
526
|
+
[_mR, _nT],
|
|
527
|
+
[
|
|
528
|
+
[
|
|
529
|
+
1,
|
|
530
|
+
{
|
|
531
|
+
[_hQ]: _mR,
|
|
532
|
+
},
|
|
533
|
+
],
|
|
534
|
+
[
|
|
535
|
+
0,
|
|
536
|
+
{
|
|
537
|
+
[_hQ]: _nT,
|
|
538
|
+
},
|
|
539
|
+
],
|
|
540
|
+
],
|
|
541
|
+
];
|
|
542
|
+
var ListReportsResponse = [3, n0, _LRRi, 0, [_r, _nT], [() => ReportsList, 0]];
|
|
543
|
+
var PutAccountSettingsRequest = [3, n0, _PASR, 0, [_nSS], [0]];
|
|
544
|
+
var PutAccountSettingsResponse = [3, n0, _PASRu, 0, [_aS], [() => AccountSettings]];
|
|
545
|
+
var ReportDetail = [
|
|
546
|
+
3,
|
|
547
|
+
n0,
|
|
548
|
+
_RD,
|
|
549
|
+
0,
|
|
550
|
+
[_i, _n, _d, _pS, _pE, _cAr, _lMA, _dA, _s, _a, _ser, _ca, _cN, _pN, _tA, _v, _aTc, _sN, _uS, _sM],
|
|
551
|
+
[0, 0, 0, 5, 5, 5, 5, 5, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0],
|
|
552
|
+
];
|
|
553
|
+
var ReportSummary = [
|
|
554
|
+
3,
|
|
555
|
+
n0,
|
|
556
|
+
_RS,
|
|
557
|
+
0,
|
|
558
|
+
[_i, _n, _s, _a, _v, _uS, _d, _pS, _pE, _ser, _ca, _cN, _pN, _sM, _aTc],
|
|
559
|
+
[0, 0, 0, 0, 1, 0, 0, 5, 5, 0, 0, 0, 0, 0, 0],
|
|
560
|
+
];
|
|
561
|
+
var ResourceNotFoundException = [
|
|
562
|
+
-3,
|
|
563
|
+
n0,
|
|
564
|
+
_RNFE,
|
|
565
|
+
{
|
|
566
|
+
[_e]: _c,
|
|
567
|
+
[_hE]: 404,
|
|
568
|
+
},
|
|
569
|
+
[_m, _rI, _rT],
|
|
570
|
+
[0, 0, 0],
|
|
571
|
+
];
|
|
572
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
573
|
+
var ServiceQuotaExceededException = [
|
|
574
|
+
-3,
|
|
575
|
+
n0,
|
|
576
|
+
_SQEE,
|
|
577
|
+
{
|
|
578
|
+
[_e]: _c,
|
|
579
|
+
[_hE]: 402,
|
|
580
|
+
},
|
|
581
|
+
[_m, _rI, _rT, _sC, _qC],
|
|
582
|
+
[0, 0, 0, 0, 0],
|
|
583
|
+
];
|
|
584
|
+
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
585
|
+
var ThrottlingException = [
|
|
586
|
+
-3,
|
|
587
|
+
n0,
|
|
588
|
+
_TE,
|
|
589
|
+
{
|
|
590
|
+
[_e]: _c,
|
|
591
|
+
[_hE]: 429,
|
|
592
|
+
},
|
|
593
|
+
[_m, _sC, _qC, _rAS],
|
|
594
|
+
[
|
|
595
|
+
0,
|
|
596
|
+
0,
|
|
597
|
+
0,
|
|
598
|
+
[
|
|
599
|
+
1,
|
|
600
|
+
{
|
|
601
|
+
[_hH]: _RA,
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
],
|
|
605
|
+
];
|
|
606
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
607
|
+
var ValidationException = [
|
|
608
|
+
-3,
|
|
609
|
+
n0,
|
|
610
|
+
_VE,
|
|
611
|
+
{
|
|
612
|
+
[_e]: _c,
|
|
613
|
+
[_hE]: 400,
|
|
614
|
+
},
|
|
615
|
+
[_m, _re, _fL],
|
|
616
|
+
[0, 0, () => ValidationExceptionFieldList],
|
|
617
|
+
];
|
|
618
|
+
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
619
|
+
var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
|
|
620
|
+
var ArtifactServiceException = [-3, _sm, "ArtifactServiceException", 0, [], []];
|
|
621
|
+
schema.TypeRegistry.for(_sm).registerError(ArtifactServiceException, ArtifactServiceException$1);
|
|
622
|
+
var CustomerAgreementList = [1, n0, _CAL, 0, () => CustomerAgreementSummary];
|
|
623
|
+
var ReportsList = [1, n0, _RL, 0, () => ReportSummary];
|
|
624
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
|
|
625
|
+
var GetAccountSettings = [
|
|
626
|
+
9,
|
|
627
|
+
n0,
|
|
628
|
+
_GAS,
|
|
629
|
+
{
|
|
630
|
+
[_h]: ["GET", "/v1/account-settings/get", 200],
|
|
631
|
+
},
|
|
632
|
+
() => GetAccountSettingsRequest,
|
|
633
|
+
() => GetAccountSettingsResponse,
|
|
634
|
+
];
|
|
635
|
+
var GetReport = [
|
|
636
|
+
9,
|
|
637
|
+
n0,
|
|
638
|
+
_GR,
|
|
639
|
+
{
|
|
640
|
+
[_h]: ["GET", "/v1/report/get", 200],
|
|
641
|
+
},
|
|
642
|
+
() => GetReportRequest,
|
|
643
|
+
() => GetReportResponse,
|
|
644
|
+
];
|
|
645
|
+
var GetReportMetadata = [
|
|
646
|
+
9,
|
|
647
|
+
n0,
|
|
648
|
+
_GRM,
|
|
649
|
+
{
|
|
650
|
+
[_h]: ["GET", "/v1/report/getMetadata", 200],
|
|
651
|
+
},
|
|
652
|
+
() => GetReportMetadataRequest,
|
|
653
|
+
() => GetReportMetadataResponse,
|
|
654
|
+
];
|
|
655
|
+
var GetTermForReport = [
|
|
656
|
+
9,
|
|
657
|
+
n0,
|
|
658
|
+
_GTFR,
|
|
659
|
+
{
|
|
660
|
+
[_h]: ["GET", "/v1/report/getTermForReport", 200],
|
|
661
|
+
},
|
|
662
|
+
() => GetTermForReportRequest,
|
|
663
|
+
() => GetTermForReportResponse,
|
|
664
|
+
];
|
|
665
|
+
var ListCustomerAgreements = [
|
|
666
|
+
9,
|
|
667
|
+
n0,
|
|
668
|
+
_LCA,
|
|
669
|
+
{
|
|
670
|
+
[_h]: ["GET", "/v1/customer-agreement/list", 200],
|
|
671
|
+
},
|
|
672
|
+
() => ListCustomerAgreementsRequest,
|
|
673
|
+
() => ListCustomerAgreementsResponse,
|
|
674
|
+
];
|
|
675
|
+
var ListReports = [
|
|
676
|
+
9,
|
|
677
|
+
n0,
|
|
678
|
+
_LR,
|
|
679
|
+
{
|
|
680
|
+
[_h]: ["GET", "/v1/report/list", 200],
|
|
681
|
+
},
|
|
682
|
+
() => ListReportsRequest,
|
|
683
|
+
() => ListReportsResponse,
|
|
684
|
+
];
|
|
685
|
+
var PutAccountSettings = [
|
|
686
|
+
9,
|
|
687
|
+
n0,
|
|
688
|
+
_PAS,
|
|
689
|
+
{
|
|
690
|
+
[_h]: ["PUT", "/v1/account-settings/put", 200],
|
|
691
|
+
},
|
|
692
|
+
() => PutAccountSettingsRequest,
|
|
693
|
+
() => PutAccountSettingsResponse,
|
|
694
|
+
];
|
|
689
695
|
|
|
690
696
|
class GetAccountSettingsCommand extends smithyClient.Command
|
|
691
697
|
.classBuilder()
|
|
692
698
|
.ep(commonParams)
|
|
693
699
|
.m(function (Command, cs, config, o) {
|
|
694
|
-
return [
|
|
695
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
696
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
697
|
-
];
|
|
700
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
698
701
|
})
|
|
699
702
|
.s("Artifact", "GetAccountSettings", {})
|
|
700
703
|
.n("ArtifactClient", "GetAccountSettingsCommand")
|
|
701
|
-
.
|
|
702
|
-
.ser(se_GetAccountSettingsCommand)
|
|
703
|
-
.de(de_GetAccountSettingsCommand)
|
|
704
|
+
.sc(GetAccountSettings)
|
|
704
705
|
.build() {
|
|
705
706
|
}
|
|
706
707
|
|
|
@@ -708,16 +709,11 @@ class GetReportCommand extends smithyClient.Command
|
|
|
708
709
|
.classBuilder()
|
|
709
710
|
.ep(commonParams)
|
|
710
711
|
.m(function (Command, cs, config, o) {
|
|
711
|
-
return [
|
|
712
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
713
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
714
|
-
];
|
|
712
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
715
713
|
})
|
|
716
714
|
.s("Artifact", "GetReport", {})
|
|
717
715
|
.n("ArtifactClient", "GetReportCommand")
|
|
718
|
-
.
|
|
719
|
-
.ser(se_GetReportCommand)
|
|
720
|
-
.de(de_GetReportCommand)
|
|
716
|
+
.sc(GetReport)
|
|
721
717
|
.build() {
|
|
722
718
|
}
|
|
723
719
|
|
|
@@ -725,16 +721,11 @@ class GetReportMetadataCommand extends smithyClient.Command
|
|
|
725
721
|
.classBuilder()
|
|
726
722
|
.ep(commonParams)
|
|
727
723
|
.m(function (Command, cs, config, o) {
|
|
728
|
-
return [
|
|
729
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
730
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
731
|
-
];
|
|
724
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
732
725
|
})
|
|
733
726
|
.s("Artifact", "GetReportMetadata", {})
|
|
734
727
|
.n("ArtifactClient", "GetReportMetadataCommand")
|
|
735
|
-
.
|
|
736
|
-
.ser(se_GetReportMetadataCommand)
|
|
737
|
-
.de(de_GetReportMetadataCommand)
|
|
728
|
+
.sc(GetReportMetadata)
|
|
738
729
|
.build() {
|
|
739
730
|
}
|
|
740
731
|
|
|
@@ -742,16 +733,11 @@ class GetTermForReportCommand extends smithyClient.Command
|
|
|
742
733
|
.classBuilder()
|
|
743
734
|
.ep(commonParams)
|
|
744
735
|
.m(function (Command, cs, config, o) {
|
|
745
|
-
return [
|
|
746
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
747
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
748
|
-
];
|
|
736
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
749
737
|
})
|
|
750
738
|
.s("Artifact", "GetTermForReport", {})
|
|
751
739
|
.n("ArtifactClient", "GetTermForReportCommand")
|
|
752
|
-
.
|
|
753
|
-
.ser(se_GetTermForReportCommand)
|
|
754
|
-
.de(de_GetTermForReportCommand)
|
|
740
|
+
.sc(GetTermForReport)
|
|
755
741
|
.build() {
|
|
756
742
|
}
|
|
757
743
|
|
|
@@ -759,16 +745,11 @@ class ListCustomerAgreementsCommand extends smithyClient.Command
|
|
|
759
745
|
.classBuilder()
|
|
760
746
|
.ep(commonParams)
|
|
761
747
|
.m(function (Command, cs, config, o) {
|
|
762
|
-
return [
|
|
763
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
764
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
765
|
-
];
|
|
748
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
766
749
|
})
|
|
767
750
|
.s("Artifact", "ListCustomerAgreements", {})
|
|
768
751
|
.n("ArtifactClient", "ListCustomerAgreementsCommand")
|
|
769
|
-
.
|
|
770
|
-
.ser(se_ListCustomerAgreementsCommand)
|
|
771
|
-
.de(de_ListCustomerAgreementsCommand)
|
|
752
|
+
.sc(ListCustomerAgreements)
|
|
772
753
|
.build() {
|
|
773
754
|
}
|
|
774
755
|
|
|
@@ -776,16 +757,11 @@ class ListReportsCommand extends smithyClient.Command
|
|
|
776
757
|
.classBuilder()
|
|
777
758
|
.ep(commonParams)
|
|
778
759
|
.m(function (Command, cs, config, o) {
|
|
779
|
-
return [
|
|
780
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
781
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
782
|
-
];
|
|
760
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
783
761
|
})
|
|
784
762
|
.s("Artifact", "ListReports", {})
|
|
785
763
|
.n("ArtifactClient", "ListReportsCommand")
|
|
786
|
-
.
|
|
787
|
-
.ser(se_ListReportsCommand)
|
|
788
|
-
.de(de_ListReportsCommand)
|
|
764
|
+
.sc(ListReports)
|
|
789
765
|
.build() {
|
|
790
766
|
}
|
|
791
767
|
|
|
@@ -793,16 +769,11 @@ class PutAccountSettingsCommand extends smithyClient.Command
|
|
|
793
769
|
.classBuilder()
|
|
794
770
|
.ep(commonParams)
|
|
795
771
|
.m(function (Command, cs, config, o) {
|
|
796
|
-
return [
|
|
797
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
798
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
799
|
-
];
|
|
772
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
800
773
|
})
|
|
801
774
|
.s("Artifact", "PutAccountSettings", {})
|
|
802
775
|
.n("ArtifactClient", "PutAccountSettingsCommand")
|
|
803
|
-
.
|
|
804
|
-
.ser(se_PutAccountSettingsCommand)
|
|
805
|
-
.de(de_PutAccountSettingsCommand)
|
|
776
|
+
.sc(PutAccountSettings)
|
|
806
777
|
.build() {
|
|
807
778
|
}
|
|
808
779
|
|
|
@@ -832,28 +803,28 @@ Object.defineProperty(exports, "__Client", {
|
|
|
832
803
|
get: function () { return smithyClient.Client; }
|
|
833
804
|
});
|
|
834
805
|
exports.AcceptanceType = AcceptanceType;
|
|
835
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
806
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
836
807
|
exports.AgreementType = AgreementType;
|
|
837
808
|
exports.Artifact = Artifact;
|
|
838
809
|
exports.ArtifactClient = ArtifactClient;
|
|
839
|
-
exports.ArtifactServiceException = ArtifactServiceException;
|
|
840
|
-
exports.ConflictException = ConflictException;
|
|
810
|
+
exports.ArtifactServiceException = ArtifactServiceException$1;
|
|
811
|
+
exports.ConflictException = ConflictException$1;
|
|
841
812
|
exports.CustomerAgreementState = CustomerAgreementState;
|
|
842
813
|
exports.GetAccountSettingsCommand = GetAccountSettingsCommand;
|
|
843
814
|
exports.GetReportCommand = GetReportCommand;
|
|
844
815
|
exports.GetReportMetadataCommand = GetReportMetadataCommand;
|
|
845
816
|
exports.GetTermForReportCommand = GetTermForReportCommand;
|
|
846
|
-
exports.InternalServerException = InternalServerException;
|
|
817
|
+
exports.InternalServerException = InternalServerException$1;
|
|
847
818
|
exports.ListCustomerAgreementsCommand = ListCustomerAgreementsCommand;
|
|
848
819
|
exports.ListReportsCommand = ListReportsCommand;
|
|
849
820
|
exports.NotificationSubscriptionStatus = NotificationSubscriptionStatus;
|
|
850
821
|
exports.PublishedState = PublishedState;
|
|
851
822
|
exports.PutAccountSettingsCommand = PutAccountSettingsCommand;
|
|
852
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
853
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
854
|
-
exports.ThrottlingException = ThrottlingException;
|
|
823
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
824
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
825
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
855
826
|
exports.UploadState = UploadState;
|
|
856
|
-
exports.ValidationException = ValidationException;
|
|
827
|
+
exports.ValidationException = ValidationException$1;
|
|
857
828
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
858
829
|
exports.paginateListCustomerAgreements = paginateListCustomerAgreements;
|
|
859
830
|
exports.paginateListReports = paginateListReports;
|