@aws-sdk/client-acm-pca 3.183.0 → 3.185.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/ACMPCA.js +101 -94
  4. package/dist-es/ACMPCAClient.js +28 -22
  5. package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +28 -21
  6. package/dist-es/commands/CreateCertificateAuthorityCommand.js +28 -21
  7. package/dist-es/commands/CreatePermissionCommand.js +29 -22
  8. package/dist-es/commands/DeleteCertificateAuthorityCommand.js +29 -22
  9. package/dist-es/commands/DeletePermissionCommand.js +29 -22
  10. package/dist-es/commands/DeletePolicyCommand.js +29 -22
  11. package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +28 -21
  12. package/dist-es/commands/DescribeCertificateAuthorityCommand.js +28 -21
  13. package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +28 -21
  14. package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +28 -21
  15. package/dist-es/commands/GetCertificateCommand.js +28 -21
  16. package/dist-es/commands/GetPolicyCommand.js +28 -21
  17. package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +29 -22
  18. package/dist-es/commands/IssueCertificateCommand.js +28 -21
  19. package/dist-es/commands/ListCertificateAuthoritiesCommand.js +28 -21
  20. package/dist-es/commands/ListPermissionsCommand.js +28 -21
  21. package/dist-es/commands/ListTagsCommand.js +28 -21
  22. package/dist-es/commands/PutPolicyCommand.js +29 -22
  23. package/dist-es/commands/RestoreCertificateAuthorityCommand.js +29 -22
  24. package/dist-es/commands/RevokeCertificateCommand.js +29 -22
  25. package/dist-es/commands/TagCertificateAuthorityCommand.js +29 -22
  26. package/dist-es/commands/UntagCertificateAuthorityCommand.js +29 -22
  27. package/dist-es/commands/UpdateCertificateAuthorityCommand.js +29 -22
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/ACMPCAServiceException.js +10 -5
  30. package/dist-es/models/models_0.js +269 -386
  31. package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +68 -25
  32. package/dist-es/pagination/ListPermissionsPaginator.js +68 -25
  33. package/dist-es/pagination/ListTagsPaginator.js +68 -25
  34. package/dist-es/protocols/Aws_json1_1.js +2238 -1817
  35. package/dist-es/runtimeConfig.browser.js +12 -26
  36. package/dist-es/runtimeConfig.js +12 -30
  37. package/dist-es/runtimeConfig.native.js +5 -8
  38. package/dist-es/runtimeConfig.shared.js +11 -8
  39. package/dist-es/waiters/waitForAuditReportCreated.js +56 -36
  40. package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +42 -23
  41. package/dist-es/waiters/waitForCertificateIssued.js +42 -23
  42. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-acm-pca
@@ -2229,10 +2229,10 @@ const deserializeAws_json1_1TooManyTagsException = (output, context) => {
2229
2229
  };
2230
2230
  };
2231
2231
  const deserializeMetadata = (output) => {
2232
- var _a;
2232
+ var _a, _b;
2233
2233
  return ({
2234
2234
  httpStatusCode: output.statusCode,
2235
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
2235
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
2236
2236
  extendedRequestId: output.headers["x-amz-id-2"],
2237
2237
  cfId: output.headers["x-amz-cf-id"],
2238
2238
  });
package/dist-es/ACMPCA.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { ACMPCAClient } from "./ACMPCAClient";
2
3
  import { CreateCertificateAuthorityAuditReportCommand, } from "./commands/CreateCertificateAuthorityAuditReportCommand";
3
4
  import { CreateCertificateAuthorityCommand, } from "./commands/CreateCertificateAuthorityCommand";
@@ -22,327 +23,333 @@ import { RevokeCertificateCommand, } from "./commands/RevokeCertificateCommand";
22
23
  import { TagCertificateAuthorityCommand, } from "./commands/TagCertificateAuthorityCommand";
23
24
  import { UntagCertificateAuthorityCommand, } from "./commands/UntagCertificateAuthorityCommand";
24
25
  import { UpdateCertificateAuthorityCommand, } from "./commands/UpdateCertificateAuthorityCommand";
25
- export class ACMPCA extends ACMPCAClient {
26
- createCertificateAuthority(args, optionsOrCb, cb) {
27
- const command = new CreateCertificateAuthorityCommand(args);
26
+ var ACMPCA = (function (_super) {
27
+ __extends(ACMPCA, _super);
28
+ function ACMPCA() {
29
+ return _super !== null && _super.apply(this, arguments) || this;
30
+ }
31
+ ACMPCA.prototype.createCertificateAuthority = function (args, optionsOrCb, cb) {
32
+ var command = new CreateCertificateAuthorityCommand(args);
28
33
  if (typeof optionsOrCb === "function") {
29
34
  this.send(command, optionsOrCb);
30
35
  }
31
36
  else if (typeof cb === "function") {
32
37
  if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
38
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
34
39
  this.send(command, optionsOrCb || {}, cb);
35
40
  }
36
41
  else {
37
42
  return this.send(command, optionsOrCb);
38
43
  }
39
- }
40
- createCertificateAuthorityAuditReport(args, optionsOrCb, cb) {
41
- const command = new CreateCertificateAuthorityAuditReportCommand(args);
44
+ };
45
+ ACMPCA.prototype.createCertificateAuthorityAuditReport = function (args, optionsOrCb, cb) {
46
+ var command = new CreateCertificateAuthorityAuditReportCommand(args);
42
47
  if (typeof optionsOrCb === "function") {
43
48
  this.send(command, optionsOrCb);
44
49
  }
45
50
  else if (typeof cb === "function") {
46
51
  if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
52
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
48
53
  this.send(command, optionsOrCb || {}, cb);
49
54
  }
50
55
  else {
51
56
  return this.send(command, optionsOrCb);
52
57
  }
53
- }
54
- createPermission(args, optionsOrCb, cb) {
55
- const command = new CreatePermissionCommand(args);
58
+ };
59
+ ACMPCA.prototype.createPermission = function (args, optionsOrCb, cb) {
60
+ var command = new CreatePermissionCommand(args);
56
61
  if (typeof optionsOrCb === "function") {
57
62
  this.send(command, optionsOrCb);
58
63
  }
59
64
  else if (typeof cb === "function") {
60
65
  if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
66
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
62
67
  this.send(command, optionsOrCb || {}, cb);
63
68
  }
64
69
  else {
65
70
  return this.send(command, optionsOrCb);
66
71
  }
67
- }
68
- deleteCertificateAuthority(args, optionsOrCb, cb) {
69
- const command = new DeleteCertificateAuthorityCommand(args);
72
+ };
73
+ ACMPCA.prototype.deleteCertificateAuthority = function (args, optionsOrCb, cb) {
74
+ var command = new DeleteCertificateAuthorityCommand(args);
70
75
  if (typeof optionsOrCb === "function") {
71
76
  this.send(command, optionsOrCb);
72
77
  }
73
78
  else if (typeof cb === "function") {
74
79
  if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
80
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
81
  this.send(command, optionsOrCb || {}, cb);
77
82
  }
78
83
  else {
79
84
  return this.send(command, optionsOrCb);
80
85
  }
81
- }
82
- deletePermission(args, optionsOrCb, cb) {
83
- const command = new DeletePermissionCommand(args);
86
+ };
87
+ ACMPCA.prototype.deletePermission = function (args, optionsOrCb, cb) {
88
+ var command = new DeletePermissionCommand(args);
84
89
  if (typeof optionsOrCb === "function") {
85
90
  this.send(command, optionsOrCb);
86
91
  }
87
92
  else if (typeof cb === "function") {
88
93
  if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
94
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
95
  this.send(command, optionsOrCb || {}, cb);
91
96
  }
92
97
  else {
93
98
  return this.send(command, optionsOrCb);
94
99
  }
95
- }
96
- deletePolicy(args, optionsOrCb, cb) {
97
- const command = new DeletePolicyCommand(args);
100
+ };
101
+ ACMPCA.prototype.deletePolicy = function (args, optionsOrCb, cb) {
102
+ var command = new DeletePolicyCommand(args);
98
103
  if (typeof optionsOrCb === "function") {
99
104
  this.send(command, optionsOrCb);
100
105
  }
101
106
  else if (typeof cb === "function") {
102
107
  if (typeof optionsOrCb !== "object")
103
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
108
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
109
  this.send(command, optionsOrCb || {}, cb);
105
110
  }
106
111
  else {
107
112
  return this.send(command, optionsOrCb);
108
113
  }
109
- }
110
- describeCertificateAuthority(args, optionsOrCb, cb) {
111
- const command = new DescribeCertificateAuthorityCommand(args);
114
+ };
115
+ ACMPCA.prototype.describeCertificateAuthority = function (args, optionsOrCb, cb) {
116
+ var command = new DescribeCertificateAuthorityCommand(args);
112
117
  if (typeof optionsOrCb === "function") {
113
118
  this.send(command, optionsOrCb);
114
119
  }
115
120
  else if (typeof cb === "function") {
116
121
  if (typeof optionsOrCb !== "object")
117
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
122
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
123
  this.send(command, optionsOrCb || {}, cb);
119
124
  }
120
125
  else {
121
126
  return this.send(command, optionsOrCb);
122
127
  }
123
- }
124
- describeCertificateAuthorityAuditReport(args, optionsOrCb, cb) {
125
- const command = new DescribeCertificateAuthorityAuditReportCommand(args);
128
+ };
129
+ ACMPCA.prototype.describeCertificateAuthorityAuditReport = function (args, optionsOrCb, cb) {
130
+ var command = new DescribeCertificateAuthorityAuditReportCommand(args);
126
131
  if (typeof optionsOrCb === "function") {
127
132
  this.send(command, optionsOrCb);
128
133
  }
129
134
  else if (typeof cb === "function") {
130
135
  if (typeof optionsOrCb !== "object")
131
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
136
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
137
  this.send(command, optionsOrCb || {}, cb);
133
138
  }
134
139
  else {
135
140
  return this.send(command, optionsOrCb);
136
141
  }
137
- }
138
- getCertificate(args, optionsOrCb, cb) {
139
- const command = new GetCertificateCommand(args);
142
+ };
143
+ ACMPCA.prototype.getCertificate = function (args, optionsOrCb, cb) {
144
+ var command = new GetCertificateCommand(args);
140
145
  if (typeof optionsOrCb === "function") {
141
146
  this.send(command, optionsOrCb);
142
147
  }
143
148
  else if (typeof cb === "function") {
144
149
  if (typeof optionsOrCb !== "object")
145
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
150
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
151
  this.send(command, optionsOrCb || {}, cb);
147
152
  }
148
153
  else {
149
154
  return this.send(command, optionsOrCb);
150
155
  }
151
- }
152
- getCertificateAuthorityCertificate(args, optionsOrCb, cb) {
153
- const command = new GetCertificateAuthorityCertificateCommand(args);
156
+ };
157
+ ACMPCA.prototype.getCertificateAuthorityCertificate = function (args, optionsOrCb, cb) {
158
+ var command = new GetCertificateAuthorityCertificateCommand(args);
154
159
  if (typeof optionsOrCb === "function") {
155
160
  this.send(command, optionsOrCb);
156
161
  }
157
162
  else if (typeof cb === "function") {
158
163
  if (typeof optionsOrCb !== "object")
159
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
164
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
160
165
  this.send(command, optionsOrCb || {}, cb);
161
166
  }
162
167
  else {
163
168
  return this.send(command, optionsOrCb);
164
169
  }
165
- }
166
- getCertificateAuthorityCsr(args, optionsOrCb, cb) {
167
- const command = new GetCertificateAuthorityCsrCommand(args);
170
+ };
171
+ ACMPCA.prototype.getCertificateAuthorityCsr = function (args, optionsOrCb, cb) {
172
+ var command = new GetCertificateAuthorityCsrCommand(args);
168
173
  if (typeof optionsOrCb === "function") {
169
174
  this.send(command, optionsOrCb);
170
175
  }
171
176
  else if (typeof cb === "function") {
172
177
  if (typeof optionsOrCb !== "object")
173
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
178
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
174
179
  this.send(command, optionsOrCb || {}, cb);
175
180
  }
176
181
  else {
177
182
  return this.send(command, optionsOrCb);
178
183
  }
179
- }
180
- getPolicy(args, optionsOrCb, cb) {
181
- const command = new GetPolicyCommand(args);
184
+ };
185
+ ACMPCA.prototype.getPolicy = function (args, optionsOrCb, cb) {
186
+ var command = new GetPolicyCommand(args);
182
187
  if (typeof optionsOrCb === "function") {
183
188
  this.send(command, optionsOrCb);
184
189
  }
185
190
  else if (typeof cb === "function") {
186
191
  if (typeof optionsOrCb !== "object")
187
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
192
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
188
193
  this.send(command, optionsOrCb || {}, cb);
189
194
  }
190
195
  else {
191
196
  return this.send(command, optionsOrCb);
192
197
  }
193
- }
194
- importCertificateAuthorityCertificate(args, optionsOrCb, cb) {
195
- const command = new ImportCertificateAuthorityCertificateCommand(args);
198
+ };
199
+ ACMPCA.prototype.importCertificateAuthorityCertificate = function (args, optionsOrCb, cb) {
200
+ var command = new ImportCertificateAuthorityCertificateCommand(args);
196
201
  if (typeof optionsOrCb === "function") {
197
202
  this.send(command, optionsOrCb);
198
203
  }
199
204
  else if (typeof cb === "function") {
200
205
  if (typeof optionsOrCb !== "object")
201
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
206
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
202
207
  this.send(command, optionsOrCb || {}, cb);
203
208
  }
204
209
  else {
205
210
  return this.send(command, optionsOrCb);
206
211
  }
207
- }
208
- issueCertificate(args, optionsOrCb, cb) {
209
- const command = new IssueCertificateCommand(args);
212
+ };
213
+ ACMPCA.prototype.issueCertificate = function (args, optionsOrCb, cb) {
214
+ var command = new IssueCertificateCommand(args);
210
215
  if (typeof optionsOrCb === "function") {
211
216
  this.send(command, optionsOrCb);
212
217
  }
213
218
  else if (typeof cb === "function") {
214
219
  if (typeof optionsOrCb !== "object")
215
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
220
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
216
221
  this.send(command, optionsOrCb || {}, cb);
217
222
  }
218
223
  else {
219
224
  return this.send(command, optionsOrCb);
220
225
  }
221
- }
222
- listCertificateAuthorities(args, optionsOrCb, cb) {
223
- const command = new ListCertificateAuthoritiesCommand(args);
226
+ };
227
+ ACMPCA.prototype.listCertificateAuthorities = function (args, optionsOrCb, cb) {
228
+ var command = new ListCertificateAuthoritiesCommand(args);
224
229
  if (typeof optionsOrCb === "function") {
225
230
  this.send(command, optionsOrCb);
226
231
  }
227
232
  else if (typeof cb === "function") {
228
233
  if (typeof optionsOrCb !== "object")
229
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
234
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
230
235
  this.send(command, optionsOrCb || {}, cb);
231
236
  }
232
237
  else {
233
238
  return this.send(command, optionsOrCb);
234
239
  }
235
- }
236
- listPermissions(args, optionsOrCb, cb) {
237
- const command = new ListPermissionsCommand(args);
240
+ };
241
+ ACMPCA.prototype.listPermissions = function (args, optionsOrCb, cb) {
242
+ var command = new ListPermissionsCommand(args);
238
243
  if (typeof optionsOrCb === "function") {
239
244
  this.send(command, optionsOrCb);
240
245
  }
241
246
  else if (typeof cb === "function") {
242
247
  if (typeof optionsOrCb !== "object")
243
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
248
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
244
249
  this.send(command, optionsOrCb || {}, cb);
245
250
  }
246
251
  else {
247
252
  return this.send(command, optionsOrCb);
248
253
  }
249
- }
250
- listTags(args, optionsOrCb, cb) {
251
- const command = new ListTagsCommand(args);
254
+ };
255
+ ACMPCA.prototype.listTags = function (args, optionsOrCb, cb) {
256
+ var command = new ListTagsCommand(args);
252
257
  if (typeof optionsOrCb === "function") {
253
258
  this.send(command, optionsOrCb);
254
259
  }
255
260
  else if (typeof cb === "function") {
256
261
  if (typeof optionsOrCb !== "object")
257
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
262
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
258
263
  this.send(command, optionsOrCb || {}, cb);
259
264
  }
260
265
  else {
261
266
  return this.send(command, optionsOrCb);
262
267
  }
263
- }
264
- putPolicy(args, optionsOrCb, cb) {
265
- const command = new PutPolicyCommand(args);
268
+ };
269
+ ACMPCA.prototype.putPolicy = function (args, optionsOrCb, cb) {
270
+ var command = new PutPolicyCommand(args);
266
271
  if (typeof optionsOrCb === "function") {
267
272
  this.send(command, optionsOrCb);
268
273
  }
269
274
  else if (typeof cb === "function") {
270
275
  if (typeof optionsOrCb !== "object")
271
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
276
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
272
277
  this.send(command, optionsOrCb || {}, cb);
273
278
  }
274
279
  else {
275
280
  return this.send(command, optionsOrCb);
276
281
  }
277
- }
278
- restoreCertificateAuthority(args, optionsOrCb, cb) {
279
- const command = new RestoreCertificateAuthorityCommand(args);
282
+ };
283
+ ACMPCA.prototype.restoreCertificateAuthority = function (args, optionsOrCb, cb) {
284
+ var command = new RestoreCertificateAuthorityCommand(args);
280
285
  if (typeof optionsOrCb === "function") {
281
286
  this.send(command, optionsOrCb);
282
287
  }
283
288
  else if (typeof cb === "function") {
284
289
  if (typeof optionsOrCb !== "object")
285
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
290
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
286
291
  this.send(command, optionsOrCb || {}, cb);
287
292
  }
288
293
  else {
289
294
  return this.send(command, optionsOrCb);
290
295
  }
291
- }
292
- revokeCertificate(args, optionsOrCb, cb) {
293
- const command = new RevokeCertificateCommand(args);
296
+ };
297
+ ACMPCA.prototype.revokeCertificate = function (args, optionsOrCb, cb) {
298
+ var command = new RevokeCertificateCommand(args);
294
299
  if (typeof optionsOrCb === "function") {
295
300
  this.send(command, optionsOrCb);
296
301
  }
297
302
  else if (typeof cb === "function") {
298
303
  if (typeof optionsOrCb !== "object")
299
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
304
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
300
305
  this.send(command, optionsOrCb || {}, cb);
301
306
  }
302
307
  else {
303
308
  return this.send(command, optionsOrCb);
304
309
  }
305
- }
306
- tagCertificateAuthority(args, optionsOrCb, cb) {
307
- const command = new TagCertificateAuthorityCommand(args);
310
+ };
311
+ ACMPCA.prototype.tagCertificateAuthority = function (args, optionsOrCb, cb) {
312
+ var command = new TagCertificateAuthorityCommand(args);
308
313
  if (typeof optionsOrCb === "function") {
309
314
  this.send(command, optionsOrCb);
310
315
  }
311
316
  else if (typeof cb === "function") {
312
317
  if (typeof optionsOrCb !== "object")
313
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
318
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
314
319
  this.send(command, optionsOrCb || {}, cb);
315
320
  }
316
321
  else {
317
322
  return this.send(command, optionsOrCb);
318
323
  }
319
- }
320
- untagCertificateAuthority(args, optionsOrCb, cb) {
321
- const command = new UntagCertificateAuthorityCommand(args);
324
+ };
325
+ ACMPCA.prototype.untagCertificateAuthority = function (args, optionsOrCb, cb) {
326
+ var command = new UntagCertificateAuthorityCommand(args);
322
327
  if (typeof optionsOrCb === "function") {
323
328
  this.send(command, optionsOrCb);
324
329
  }
325
330
  else if (typeof cb === "function") {
326
331
  if (typeof optionsOrCb !== "object")
327
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
332
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
328
333
  this.send(command, optionsOrCb || {}, cb);
329
334
  }
330
335
  else {
331
336
  return this.send(command, optionsOrCb);
332
337
  }
333
- }
334
- updateCertificateAuthority(args, optionsOrCb, cb) {
335
- const command = new UpdateCertificateAuthorityCommand(args);
338
+ };
339
+ ACMPCA.prototype.updateCertificateAuthority = function (args, optionsOrCb, cb) {
340
+ var command = new UpdateCertificateAuthorityCommand(args);
336
341
  if (typeof optionsOrCb === "function") {
337
342
  this.send(command, optionsOrCb);
338
343
  }
339
344
  else if (typeof cb === "function") {
340
345
  if (typeof optionsOrCb !== "object")
341
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
346
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
342
347
  this.send(command, optionsOrCb || {}, cb);
343
348
  }
344
349
  else {
345
350
  return this.send(command, optionsOrCb);
346
351
  }
347
- }
348
- }
352
+ };
353
+ return ACMPCA;
354
+ }(ACMPCAClient));
355
+ export { ACMPCA };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class ACMPCAClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var ACMPCAClient = (function (_super) {
13
+ __extends(ACMPCAClient, _super);
14
+ function ACMPCAClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ ACMPCAClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return ACMPCAClient;
38
+ }(__Client));
39
+ export { ACMPCAClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateCertificateAuthorityAuditReportRequestFilterSensitiveLog, CreateCertificateAuthorityAuditReportResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommand, serializeAws_json1_1CreateCertificateAuthorityAuditReportCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateCertificateAuthorityAuditReportCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateCertificateAuthorityAuditReportCommand = (function (_super) {
7
+ __extends(CreateCertificateAuthorityAuditReportCommand, _super);
8
+ function CreateCertificateAuthorityAuditReportCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateCertificateAuthorityAuditReportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "ACMPCAClient";
15
- const commandName = "CreateCertificateAuthorityAuditReportCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "ACMPCAClient";
18
+ var commandName = "CreateCertificateAuthorityAuditReportCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateCertificateAuthorityAuditReportRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateCertificateAuthorityAuditReportResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateCertificateAuthorityAuditReportCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateCertificateAuthorityAuditReportCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateCertificateAuthorityAuditReportCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateCertificateAuthorityAuditReportCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateCertificateAuthorityAuditReportCommand;
38
+ }($Command));
39
+ export { CreateCertificateAuthorityAuditReportCommand };