@aws-sdk/client-qconnect 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.QConnectServiceException = 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 QConnectServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, QConnectServiceException.prototype);
10
+ }
11
+ }
12
+ exports.QConnectServiceException = QConnectServiceException;
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TooManyTagsException = exports.PreconditionFailedException = exports.UnprocessableContentException = exports.DependencyFailedException = exports.RequestTimeoutException = exports.UnauthorizedException = exports.ServiceQuotaExceededException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const QConnectServiceException_1 = require("./QConnectServiceException");
5
+ class AccessDeniedException extends QConnectServiceException_1.QConnectServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends QConnectServiceException_1.QConnectServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "ConflictException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, ConflictException.prototype);
28
+ }
29
+ }
30
+ exports.ConflictException = ConflictException;
31
+ class ResourceNotFoundException extends QConnectServiceException_1.QConnectServiceException {
32
+ name = "ResourceNotFoundException";
33
+ $fault = "client";
34
+ resourceName;
35
+ constructor(opts) {
36
+ super({
37
+ name: "ResourceNotFoundException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
42
+ this.resourceName = opts.resourceName;
43
+ }
44
+ }
45
+ exports.ResourceNotFoundException = ResourceNotFoundException;
46
+ class ThrottlingException extends QConnectServiceException_1.QConnectServiceException {
47
+ name = "ThrottlingException";
48
+ $fault = "client";
49
+ $retryable = {};
50
+ constructor(opts) {
51
+ super({
52
+ name: "ThrottlingException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
57
+ }
58
+ }
59
+ exports.ThrottlingException = ThrottlingException;
60
+ class ValidationException extends QConnectServiceException_1.QConnectServiceException {
61
+ name = "ValidationException";
62
+ $fault = "client";
63
+ constructor(opts) {
64
+ super({
65
+ name: "ValidationException",
66
+ $fault: "client",
67
+ ...opts,
68
+ });
69
+ Object.setPrototypeOf(this, ValidationException.prototype);
70
+ }
71
+ }
72
+ exports.ValidationException = ValidationException;
73
+ class ServiceQuotaExceededException extends QConnectServiceException_1.QConnectServiceException {
74
+ name = "ServiceQuotaExceededException";
75
+ $fault = "client";
76
+ constructor(opts) {
77
+ super({
78
+ name: "ServiceQuotaExceededException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
83
+ }
84
+ }
85
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
86
+ class UnauthorizedException extends QConnectServiceException_1.QConnectServiceException {
87
+ name = "UnauthorizedException";
88
+ $fault = "client";
89
+ constructor(opts) {
90
+ super({
91
+ name: "UnauthorizedException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
96
+ }
97
+ }
98
+ exports.UnauthorizedException = UnauthorizedException;
99
+ class RequestTimeoutException extends QConnectServiceException_1.QConnectServiceException {
100
+ name = "RequestTimeoutException";
101
+ $fault = "client";
102
+ $retryable = {};
103
+ constructor(opts) {
104
+ super({
105
+ name: "RequestTimeoutException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ Object.setPrototypeOf(this, RequestTimeoutException.prototype);
110
+ }
111
+ }
112
+ exports.RequestTimeoutException = RequestTimeoutException;
113
+ class DependencyFailedException extends QConnectServiceException_1.QConnectServiceException {
114
+ name = "DependencyFailedException";
115
+ $fault = "client";
116
+ constructor(opts) {
117
+ super({
118
+ name: "DependencyFailedException",
119
+ $fault: "client",
120
+ ...opts,
121
+ });
122
+ Object.setPrototypeOf(this, DependencyFailedException.prototype);
123
+ }
124
+ }
125
+ exports.DependencyFailedException = DependencyFailedException;
126
+ class UnprocessableContentException extends QConnectServiceException_1.QConnectServiceException {
127
+ name = "UnprocessableContentException";
128
+ $fault = "client";
129
+ constructor(opts) {
130
+ super({
131
+ name: "UnprocessableContentException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, UnprocessableContentException.prototype);
136
+ }
137
+ }
138
+ exports.UnprocessableContentException = UnprocessableContentException;
139
+ class PreconditionFailedException extends QConnectServiceException_1.QConnectServiceException {
140
+ name = "PreconditionFailedException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "PreconditionFailedException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, PreconditionFailedException.prototype);
149
+ }
150
+ }
151
+ exports.PreconditionFailedException = PreconditionFailedException;
152
+ class TooManyTagsException extends QConnectServiceException_1.QConnectServiceException {
153
+ name = "TooManyTagsException";
154
+ $fault = "client";
155
+ resourceName;
156
+ constructor(opts) {
157
+ super({
158
+ name: "TooManyTagsException",
159
+ $fault: "client",
160
+ ...opts,
161
+ });
162
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
163
+ this.resourceName = opts.resourceName;
164
+ }
165
+ }
166
+ exports.TooManyTagsException = TooManyTagsException;
@@ -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: "2020-10-19",
@@ -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.qconnect",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2020-10-19",
33
35
  serviceTarget: "WisdomService",
34
36
  },