@aws-sdk/client-acm-pca 3.312.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ACMPCA = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const ACMPCAClient_1 = require("./ACMPCAClient");
5
6
  const CreateCertificateAuthorityAuditReportCommand_1 = require("./commands/CreateCertificateAuthorityAuditReportCommand");
6
7
  const CreateCertificateAuthorityCommand_1 = require("./commands/CreateCertificateAuthorityCommand");
@@ -25,328 +26,32 @@ const RevokeCertificateCommand_1 = require("./commands/RevokeCertificateCommand"
25
26
  const TagCertificateAuthorityCommand_1 = require("./commands/TagCertificateAuthorityCommand");
26
27
  const UntagCertificateAuthorityCommand_1 = require("./commands/UntagCertificateAuthorityCommand");
27
28
  const UpdateCertificateAuthorityCommand_1 = require("./commands/UpdateCertificateAuthorityCommand");
29
+ const commands = {
30
+ CreateCertificateAuthorityCommand: CreateCertificateAuthorityCommand_1.CreateCertificateAuthorityCommand,
31
+ CreateCertificateAuthorityAuditReportCommand: CreateCertificateAuthorityAuditReportCommand_1.CreateCertificateAuthorityAuditReportCommand,
32
+ CreatePermissionCommand: CreatePermissionCommand_1.CreatePermissionCommand,
33
+ DeleteCertificateAuthorityCommand: DeleteCertificateAuthorityCommand_1.DeleteCertificateAuthorityCommand,
34
+ DeletePermissionCommand: DeletePermissionCommand_1.DeletePermissionCommand,
35
+ DeletePolicyCommand: DeletePolicyCommand_1.DeletePolicyCommand,
36
+ DescribeCertificateAuthorityCommand: DescribeCertificateAuthorityCommand_1.DescribeCertificateAuthorityCommand,
37
+ DescribeCertificateAuthorityAuditReportCommand: DescribeCertificateAuthorityAuditReportCommand_1.DescribeCertificateAuthorityAuditReportCommand,
38
+ GetCertificateCommand: GetCertificateCommand_1.GetCertificateCommand,
39
+ GetCertificateAuthorityCertificateCommand: GetCertificateAuthorityCertificateCommand_1.GetCertificateAuthorityCertificateCommand,
40
+ GetCertificateAuthorityCsrCommand: GetCertificateAuthorityCsrCommand_1.GetCertificateAuthorityCsrCommand,
41
+ GetPolicyCommand: GetPolicyCommand_1.GetPolicyCommand,
42
+ ImportCertificateAuthorityCertificateCommand: ImportCertificateAuthorityCertificateCommand_1.ImportCertificateAuthorityCertificateCommand,
43
+ IssueCertificateCommand: IssueCertificateCommand_1.IssueCertificateCommand,
44
+ ListCertificateAuthoritiesCommand: ListCertificateAuthoritiesCommand_1.ListCertificateAuthoritiesCommand,
45
+ ListPermissionsCommand: ListPermissionsCommand_1.ListPermissionsCommand,
46
+ ListTagsCommand: ListTagsCommand_1.ListTagsCommand,
47
+ PutPolicyCommand: PutPolicyCommand_1.PutPolicyCommand,
48
+ RestoreCertificateAuthorityCommand: RestoreCertificateAuthorityCommand_1.RestoreCertificateAuthorityCommand,
49
+ RevokeCertificateCommand: RevokeCertificateCommand_1.RevokeCertificateCommand,
50
+ TagCertificateAuthorityCommand: TagCertificateAuthorityCommand_1.TagCertificateAuthorityCommand,
51
+ UntagCertificateAuthorityCommand: UntagCertificateAuthorityCommand_1.UntagCertificateAuthorityCommand,
52
+ UpdateCertificateAuthorityCommand: UpdateCertificateAuthorityCommand_1.UpdateCertificateAuthorityCommand,
53
+ };
28
54
  class ACMPCA extends ACMPCAClient_1.ACMPCAClient {
29
- createCertificateAuthority(args, optionsOrCb, cb) {
30
- const command = new CreateCertificateAuthorityCommand_1.CreateCertificateAuthorityCommand(args);
31
- if (typeof optionsOrCb === "function") {
32
- this.send(command, optionsOrCb);
33
- }
34
- else if (typeof cb === "function") {
35
- if (typeof optionsOrCb !== "object")
36
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
37
- this.send(command, optionsOrCb || {}, cb);
38
- }
39
- else {
40
- return this.send(command, optionsOrCb);
41
- }
42
- }
43
- createCertificateAuthorityAuditReport(args, optionsOrCb, cb) {
44
- const command = new CreateCertificateAuthorityAuditReportCommand_1.CreateCertificateAuthorityAuditReportCommand(args);
45
- if (typeof optionsOrCb === "function") {
46
- this.send(command, optionsOrCb);
47
- }
48
- else if (typeof cb === "function") {
49
- if (typeof optionsOrCb !== "object")
50
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
51
- this.send(command, optionsOrCb || {}, cb);
52
- }
53
- else {
54
- return this.send(command, optionsOrCb);
55
- }
56
- }
57
- createPermission(args, optionsOrCb, cb) {
58
- const command = new CreatePermissionCommand_1.CreatePermissionCommand(args);
59
- if (typeof optionsOrCb === "function") {
60
- this.send(command, optionsOrCb);
61
- }
62
- else if (typeof cb === "function") {
63
- if (typeof optionsOrCb !== "object")
64
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
65
- this.send(command, optionsOrCb || {}, cb);
66
- }
67
- else {
68
- return this.send(command, optionsOrCb);
69
- }
70
- }
71
- deleteCertificateAuthority(args, optionsOrCb, cb) {
72
- const command = new DeleteCertificateAuthorityCommand_1.DeleteCertificateAuthorityCommand(args);
73
- if (typeof optionsOrCb === "function") {
74
- this.send(command, optionsOrCb);
75
- }
76
- else if (typeof cb === "function") {
77
- if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
79
- this.send(command, optionsOrCb || {}, cb);
80
- }
81
- else {
82
- return this.send(command, optionsOrCb);
83
- }
84
- }
85
- deletePermission(args, optionsOrCb, cb) {
86
- const command = new DeletePermissionCommand_1.DeletePermissionCommand(args);
87
- if (typeof optionsOrCb === "function") {
88
- this.send(command, optionsOrCb);
89
- }
90
- else if (typeof cb === "function") {
91
- if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
93
- this.send(command, optionsOrCb || {}, cb);
94
- }
95
- else {
96
- return this.send(command, optionsOrCb);
97
- }
98
- }
99
- deletePolicy(args, optionsOrCb, cb) {
100
- const command = new DeletePolicyCommand_1.DeletePolicyCommand(args);
101
- if (typeof optionsOrCb === "function") {
102
- this.send(command, optionsOrCb);
103
- }
104
- else if (typeof cb === "function") {
105
- if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
107
- this.send(command, optionsOrCb || {}, cb);
108
- }
109
- else {
110
- return this.send(command, optionsOrCb);
111
- }
112
- }
113
- describeCertificateAuthority(args, optionsOrCb, cb) {
114
- const command = new DescribeCertificateAuthorityCommand_1.DescribeCertificateAuthorityCommand(args);
115
- if (typeof optionsOrCb === "function") {
116
- this.send(command, optionsOrCb);
117
- }
118
- else if (typeof cb === "function") {
119
- if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
121
- this.send(command, optionsOrCb || {}, cb);
122
- }
123
- else {
124
- return this.send(command, optionsOrCb);
125
- }
126
- }
127
- describeCertificateAuthorityAuditReport(args, optionsOrCb, cb) {
128
- const command = new DescribeCertificateAuthorityAuditReportCommand_1.DescribeCertificateAuthorityAuditReportCommand(args);
129
- if (typeof optionsOrCb === "function") {
130
- this.send(command, optionsOrCb);
131
- }
132
- else if (typeof cb === "function") {
133
- if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
135
- this.send(command, optionsOrCb || {}, cb);
136
- }
137
- else {
138
- return this.send(command, optionsOrCb);
139
- }
140
- }
141
- getCertificate(args, optionsOrCb, cb) {
142
- const command = new GetCertificateCommand_1.GetCertificateCommand(args);
143
- if (typeof optionsOrCb === "function") {
144
- this.send(command, optionsOrCb);
145
- }
146
- else if (typeof cb === "function") {
147
- if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
149
- this.send(command, optionsOrCb || {}, cb);
150
- }
151
- else {
152
- return this.send(command, optionsOrCb);
153
- }
154
- }
155
- getCertificateAuthorityCertificate(args, optionsOrCb, cb) {
156
- const command = new GetCertificateAuthorityCertificateCommand_1.GetCertificateAuthorityCertificateCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- }
160
- else if (typeof cb === "function") {
161
- if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
163
- this.send(command, optionsOrCb || {}, cb);
164
- }
165
- else {
166
- return this.send(command, optionsOrCb);
167
- }
168
- }
169
- getCertificateAuthorityCsr(args, optionsOrCb, cb) {
170
- const command = new GetCertificateAuthorityCsrCommand_1.GetCertificateAuthorityCsrCommand(args);
171
- if (typeof optionsOrCb === "function") {
172
- this.send(command, optionsOrCb);
173
- }
174
- else if (typeof cb === "function") {
175
- if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
177
- this.send(command, optionsOrCb || {}, cb);
178
- }
179
- else {
180
- return this.send(command, optionsOrCb);
181
- }
182
- }
183
- getPolicy(args, optionsOrCb, cb) {
184
- const command = new GetPolicyCommand_1.GetPolicyCommand(args);
185
- if (typeof optionsOrCb === "function") {
186
- this.send(command, optionsOrCb);
187
- }
188
- else if (typeof cb === "function") {
189
- if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
191
- this.send(command, optionsOrCb || {}, cb);
192
- }
193
- else {
194
- return this.send(command, optionsOrCb);
195
- }
196
- }
197
- importCertificateAuthorityCertificate(args, optionsOrCb, cb) {
198
- const command = new ImportCertificateAuthorityCertificateCommand_1.ImportCertificateAuthorityCertificateCommand(args);
199
- if (typeof optionsOrCb === "function") {
200
- this.send(command, optionsOrCb);
201
- }
202
- else if (typeof cb === "function") {
203
- if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
205
- this.send(command, optionsOrCb || {}, cb);
206
- }
207
- else {
208
- return this.send(command, optionsOrCb);
209
- }
210
- }
211
- issueCertificate(args, optionsOrCb, cb) {
212
- const command = new IssueCertificateCommand_1.IssueCertificateCommand(args);
213
- if (typeof optionsOrCb === "function") {
214
- this.send(command, optionsOrCb);
215
- }
216
- else if (typeof cb === "function") {
217
- if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
219
- this.send(command, optionsOrCb || {}, cb);
220
- }
221
- else {
222
- return this.send(command, optionsOrCb);
223
- }
224
- }
225
- listCertificateAuthorities(args, optionsOrCb, cb) {
226
- const command = new ListCertificateAuthoritiesCommand_1.ListCertificateAuthoritiesCommand(args);
227
- if (typeof optionsOrCb === "function") {
228
- this.send(command, optionsOrCb);
229
- }
230
- else if (typeof cb === "function") {
231
- if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
233
- this.send(command, optionsOrCb || {}, cb);
234
- }
235
- else {
236
- return this.send(command, optionsOrCb);
237
- }
238
- }
239
- listPermissions(args, optionsOrCb, cb) {
240
- const command = new ListPermissionsCommand_1.ListPermissionsCommand(args);
241
- if (typeof optionsOrCb === "function") {
242
- this.send(command, optionsOrCb);
243
- }
244
- else if (typeof cb === "function") {
245
- if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
247
- this.send(command, optionsOrCb || {}, cb);
248
- }
249
- else {
250
- return this.send(command, optionsOrCb);
251
- }
252
- }
253
- listTags(args, optionsOrCb, cb) {
254
- const command = new ListTagsCommand_1.ListTagsCommand(args);
255
- if (typeof optionsOrCb === "function") {
256
- this.send(command, optionsOrCb);
257
- }
258
- else if (typeof cb === "function") {
259
- if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
261
- this.send(command, optionsOrCb || {}, cb);
262
- }
263
- else {
264
- return this.send(command, optionsOrCb);
265
- }
266
- }
267
- putPolicy(args, optionsOrCb, cb) {
268
- const command = new PutPolicyCommand_1.PutPolicyCommand(args);
269
- if (typeof optionsOrCb === "function") {
270
- this.send(command, optionsOrCb);
271
- }
272
- else if (typeof cb === "function") {
273
- if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
275
- this.send(command, optionsOrCb || {}, cb);
276
- }
277
- else {
278
- return this.send(command, optionsOrCb);
279
- }
280
- }
281
- restoreCertificateAuthority(args, optionsOrCb, cb) {
282
- const command = new RestoreCertificateAuthorityCommand_1.RestoreCertificateAuthorityCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- }
286
- else if (typeof cb === "function") {
287
- if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
289
- this.send(command, optionsOrCb || {}, cb);
290
- }
291
- else {
292
- return this.send(command, optionsOrCb);
293
- }
294
- }
295
- revokeCertificate(args, optionsOrCb, cb) {
296
- const command = new RevokeCertificateCommand_1.RevokeCertificateCommand(args);
297
- if (typeof optionsOrCb === "function") {
298
- this.send(command, optionsOrCb);
299
- }
300
- else if (typeof cb === "function") {
301
- if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
303
- this.send(command, optionsOrCb || {}, cb);
304
- }
305
- else {
306
- return this.send(command, optionsOrCb);
307
- }
308
- }
309
- tagCertificateAuthority(args, optionsOrCb, cb) {
310
- const command = new TagCertificateAuthorityCommand_1.TagCertificateAuthorityCommand(args);
311
- if (typeof optionsOrCb === "function") {
312
- this.send(command, optionsOrCb);
313
- }
314
- else if (typeof cb === "function") {
315
- if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
317
- this.send(command, optionsOrCb || {}, cb);
318
- }
319
- else {
320
- return this.send(command, optionsOrCb);
321
- }
322
- }
323
- untagCertificateAuthority(args, optionsOrCb, cb) {
324
- const command = new UntagCertificateAuthorityCommand_1.UntagCertificateAuthorityCommand(args);
325
- if (typeof optionsOrCb === "function") {
326
- this.send(command, optionsOrCb);
327
- }
328
- else if (typeof cb === "function") {
329
- if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
331
- this.send(command, optionsOrCb || {}, cb);
332
- }
333
- else {
334
- return this.send(command, optionsOrCb);
335
- }
336
- }
337
- updateCertificateAuthority(args, optionsOrCb, cb) {
338
- const command = new UpdateCertificateAuthorityCommand_1.UpdateCertificateAuthorityCommand(args);
339
- if (typeof optionsOrCb === "function") {
340
- this.send(command, optionsOrCb);
341
- }
342
- else if (typeof cb === "function") {
343
- if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
345
- this.send(command, optionsOrCb || {}, cb);
346
- }
347
- else {
348
- return this.send(command, optionsOrCb);
349
- }
350
- }
351
55
  }
352
56
  exports.ACMPCA = ACMPCA;
57
+ (0, smithy_client_1.createAggregatedClient)(commands, ACMPCA);