@aws-sdk/client-acm-pca 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.ACMPCAServiceException = 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 ACMPCAServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ACMPCAServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ACMPCAServiceException = ACMPCAServiceException;
@@ -0,0 +1,251 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TooManyTagsException = exports.RequestAlreadyProcessedException = exports.InvalidNextTokenException = exports.MalformedCSRException = exports.MalformedCertificateException = exports.InvalidRequestException = exports.CertificateMismatchException = exports.LockoutPreventedException = exports.ConcurrentModificationException = exports.PermissionAlreadyExistsException = exports.ResourceNotFoundException = exports.RequestInProgressException = exports.RequestFailedException = exports.InvalidStateException = exports.InvalidArnException = exports.LimitExceededException = exports.InvalidTagException = exports.InvalidPolicyException = exports.InvalidArgsException = void 0;
4
+ const ACMPCAServiceException_1 = require("./ACMPCAServiceException");
5
+ class InvalidArgsException extends ACMPCAServiceException_1.ACMPCAServiceException {
6
+ name = "InvalidArgsException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "InvalidArgsException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, InvalidArgsException.prototype);
15
+ }
16
+ }
17
+ exports.InvalidArgsException = InvalidArgsException;
18
+ class InvalidPolicyException extends ACMPCAServiceException_1.ACMPCAServiceException {
19
+ name = "InvalidPolicyException";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "InvalidPolicyException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, InvalidPolicyException.prototype);
28
+ }
29
+ }
30
+ exports.InvalidPolicyException = InvalidPolicyException;
31
+ class InvalidTagException extends ACMPCAServiceException_1.ACMPCAServiceException {
32
+ name = "InvalidTagException";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "InvalidTagException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InvalidTagException.prototype);
41
+ }
42
+ }
43
+ exports.InvalidTagException = InvalidTagException;
44
+ class LimitExceededException extends ACMPCAServiceException_1.ACMPCAServiceException {
45
+ name = "LimitExceededException";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "LimitExceededException",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
54
+ }
55
+ }
56
+ exports.LimitExceededException = LimitExceededException;
57
+ class InvalidArnException extends ACMPCAServiceException_1.ACMPCAServiceException {
58
+ name = "InvalidArnException";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "InvalidArnException",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, InvalidArnException.prototype);
67
+ }
68
+ }
69
+ exports.InvalidArnException = InvalidArnException;
70
+ class InvalidStateException extends ACMPCAServiceException_1.ACMPCAServiceException {
71
+ name = "InvalidStateException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "InvalidStateException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, InvalidStateException.prototype);
80
+ }
81
+ }
82
+ exports.InvalidStateException = InvalidStateException;
83
+ class RequestFailedException extends ACMPCAServiceException_1.ACMPCAServiceException {
84
+ name = "RequestFailedException";
85
+ $fault = "client";
86
+ constructor(opts) {
87
+ super({
88
+ name: "RequestFailedException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ Object.setPrototypeOf(this, RequestFailedException.prototype);
93
+ }
94
+ }
95
+ exports.RequestFailedException = RequestFailedException;
96
+ class RequestInProgressException extends ACMPCAServiceException_1.ACMPCAServiceException {
97
+ name = "RequestInProgressException";
98
+ $fault = "client";
99
+ constructor(opts) {
100
+ super({
101
+ name: "RequestInProgressException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, RequestInProgressException.prototype);
106
+ }
107
+ }
108
+ exports.RequestInProgressException = RequestInProgressException;
109
+ class ResourceNotFoundException extends ACMPCAServiceException_1.ACMPCAServiceException {
110
+ name = "ResourceNotFoundException";
111
+ $fault = "client";
112
+ constructor(opts) {
113
+ super({
114
+ name: "ResourceNotFoundException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
119
+ }
120
+ }
121
+ exports.ResourceNotFoundException = ResourceNotFoundException;
122
+ class PermissionAlreadyExistsException extends ACMPCAServiceException_1.ACMPCAServiceException {
123
+ name = "PermissionAlreadyExistsException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "PermissionAlreadyExistsException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, PermissionAlreadyExistsException.prototype);
132
+ }
133
+ }
134
+ exports.PermissionAlreadyExistsException = PermissionAlreadyExistsException;
135
+ class ConcurrentModificationException extends ACMPCAServiceException_1.ACMPCAServiceException {
136
+ name = "ConcurrentModificationException";
137
+ $fault = "client";
138
+ constructor(opts) {
139
+ super({
140
+ name: "ConcurrentModificationException",
141
+ $fault: "client",
142
+ ...opts,
143
+ });
144
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
145
+ }
146
+ }
147
+ exports.ConcurrentModificationException = ConcurrentModificationException;
148
+ class LockoutPreventedException extends ACMPCAServiceException_1.ACMPCAServiceException {
149
+ name = "LockoutPreventedException";
150
+ $fault = "client";
151
+ constructor(opts) {
152
+ super({
153
+ name: "LockoutPreventedException",
154
+ $fault: "client",
155
+ ...opts,
156
+ });
157
+ Object.setPrototypeOf(this, LockoutPreventedException.prototype);
158
+ }
159
+ }
160
+ exports.LockoutPreventedException = LockoutPreventedException;
161
+ class CertificateMismatchException extends ACMPCAServiceException_1.ACMPCAServiceException {
162
+ name = "CertificateMismatchException";
163
+ $fault = "client";
164
+ constructor(opts) {
165
+ super({
166
+ name: "CertificateMismatchException",
167
+ $fault: "client",
168
+ ...opts,
169
+ });
170
+ Object.setPrototypeOf(this, CertificateMismatchException.prototype);
171
+ }
172
+ }
173
+ exports.CertificateMismatchException = CertificateMismatchException;
174
+ class InvalidRequestException extends ACMPCAServiceException_1.ACMPCAServiceException {
175
+ name = "InvalidRequestException";
176
+ $fault = "client";
177
+ constructor(opts) {
178
+ super({
179
+ name: "InvalidRequestException",
180
+ $fault: "client",
181
+ ...opts,
182
+ });
183
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
184
+ }
185
+ }
186
+ exports.InvalidRequestException = InvalidRequestException;
187
+ class MalformedCertificateException extends ACMPCAServiceException_1.ACMPCAServiceException {
188
+ name = "MalformedCertificateException";
189
+ $fault = "client";
190
+ constructor(opts) {
191
+ super({
192
+ name: "MalformedCertificateException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, MalformedCertificateException.prototype);
197
+ }
198
+ }
199
+ exports.MalformedCertificateException = MalformedCertificateException;
200
+ class MalformedCSRException extends ACMPCAServiceException_1.ACMPCAServiceException {
201
+ name = "MalformedCSRException";
202
+ $fault = "client";
203
+ constructor(opts) {
204
+ super({
205
+ name: "MalformedCSRException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, MalformedCSRException.prototype);
210
+ }
211
+ }
212
+ exports.MalformedCSRException = MalformedCSRException;
213
+ class InvalidNextTokenException extends ACMPCAServiceException_1.ACMPCAServiceException {
214
+ name = "InvalidNextTokenException";
215
+ $fault = "client";
216
+ constructor(opts) {
217
+ super({
218
+ name: "InvalidNextTokenException",
219
+ $fault: "client",
220
+ ...opts,
221
+ });
222
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
223
+ }
224
+ }
225
+ exports.InvalidNextTokenException = InvalidNextTokenException;
226
+ class RequestAlreadyProcessedException extends ACMPCAServiceException_1.ACMPCAServiceException {
227
+ name = "RequestAlreadyProcessedException";
228
+ $fault = "client";
229
+ constructor(opts) {
230
+ super({
231
+ name: "RequestAlreadyProcessedException",
232
+ $fault: "client",
233
+ ...opts,
234
+ });
235
+ Object.setPrototypeOf(this, RequestAlreadyProcessedException.prototype);
236
+ }
237
+ }
238
+ exports.RequestAlreadyProcessedException = RequestAlreadyProcessedException;
239
+ class TooManyTagsException extends ACMPCAServiceException_1.ACMPCAServiceException {
240
+ name = "TooManyTagsException";
241
+ $fault = "client";
242
+ constructor(opts) {
243
+ super({
244
+ name: "TooManyTagsException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
249
+ }
250
+ }
251
+ 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: "",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.acmpca",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  serviceTarget: "ACMPrivateCA",
33
35
  },
34
36
  serviceId: config?.serviceId ?? "ACM PCA",