@aws-sdk/client-dataexchange 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DataExchangeServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class DataExchangeServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, DataExchangeServiceException.prototype);
10
+ }
11
+ }
12
+ exports.DataExchangeServiceException = DataExchangeServiceException;
@@ -0,0 +1,123 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceLimitExceededException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const DataExchangeServiceException_1 = require("./DataExchangeServiceException");
5
+ class AccessDeniedException extends DataExchangeServiceException_1.DataExchangeServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class ConflictException extends DataExchangeServiceException_1.DataExchangeServiceException {
21
+ name = "ConflictException";
22
+ $fault = "client";
23
+ Message;
24
+ ResourceId;
25
+ ResourceType;
26
+ constructor(opts) {
27
+ super({
28
+ name: "ConflictException",
29
+ $fault: "client",
30
+ ...opts,
31
+ });
32
+ Object.setPrototypeOf(this, ConflictException.prototype);
33
+ this.Message = opts.Message;
34
+ this.ResourceId = opts.ResourceId;
35
+ this.ResourceType = opts.ResourceType;
36
+ }
37
+ }
38
+ exports.ConflictException = ConflictException;
39
+ class InternalServerException extends DataExchangeServiceException_1.DataExchangeServiceException {
40
+ name = "InternalServerException";
41
+ $fault = "server";
42
+ Message;
43
+ constructor(opts) {
44
+ super({
45
+ name: "InternalServerException",
46
+ $fault: "server",
47
+ ...opts,
48
+ });
49
+ Object.setPrototypeOf(this, InternalServerException.prototype);
50
+ this.Message = opts.Message;
51
+ }
52
+ }
53
+ exports.InternalServerException = InternalServerException;
54
+ class ResourceNotFoundException extends DataExchangeServiceException_1.DataExchangeServiceException {
55
+ name = "ResourceNotFoundException";
56
+ $fault = "client";
57
+ Message;
58
+ ResourceId;
59
+ ResourceType;
60
+ constructor(opts) {
61
+ super({
62
+ name: "ResourceNotFoundException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
67
+ this.Message = opts.Message;
68
+ this.ResourceId = opts.ResourceId;
69
+ this.ResourceType = opts.ResourceType;
70
+ }
71
+ }
72
+ exports.ResourceNotFoundException = ResourceNotFoundException;
73
+ class ThrottlingException extends DataExchangeServiceException_1.DataExchangeServiceException {
74
+ name = "ThrottlingException";
75
+ $fault = "client";
76
+ Message;
77
+ constructor(opts) {
78
+ super({
79
+ name: "ThrottlingException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
84
+ this.Message = opts.Message;
85
+ }
86
+ }
87
+ exports.ThrottlingException = ThrottlingException;
88
+ class ValidationException extends DataExchangeServiceException_1.DataExchangeServiceException {
89
+ name = "ValidationException";
90
+ $fault = "client";
91
+ Message;
92
+ ExceptionCause;
93
+ constructor(opts) {
94
+ super({
95
+ name: "ValidationException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ Object.setPrototypeOf(this, ValidationException.prototype);
100
+ this.Message = opts.Message;
101
+ this.ExceptionCause = opts.ExceptionCause;
102
+ }
103
+ }
104
+ exports.ValidationException = ValidationException;
105
+ class ServiceLimitExceededException extends DataExchangeServiceException_1.DataExchangeServiceException {
106
+ name = "ServiceLimitExceededException";
107
+ $fault = "client";
108
+ LimitName;
109
+ LimitValue;
110
+ Message;
111
+ constructor(opts) {
112
+ super({
113
+ name: "ServiceLimitExceededException",
114
+ $fault: "client",
115
+ ...opts,
116
+ });
117
+ Object.setPrototypeOf(this, ServiceLimitExceededException.prototype);
118
+ this.LimitName = opts.LimitName;
119
+ this.LimitValue = opts.LimitValue;
120
+ this.Message = opts.Message;
121
+ }
122
+ }
123
+ exports.ServiceLimitExceededException = ServiceLimitExceededException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2017-07-25",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.dataexchange",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2017-07-25",
33
35
  serviceTarget: "DataExchange",
34
36
  },