@aws-sdk/client-acm-pca 3.185.0 → 3.188.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 (41) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/ACMPCA.js +94 -101
  3. package/dist-es/ACMPCAClient.js +22 -28
  4. package/dist-es/commands/CreateCertificateAuthorityAuditReportCommand.js +21 -28
  5. package/dist-es/commands/CreateCertificateAuthorityCommand.js +21 -28
  6. package/dist-es/commands/CreatePermissionCommand.js +22 -29
  7. package/dist-es/commands/DeleteCertificateAuthorityCommand.js +22 -29
  8. package/dist-es/commands/DeletePermissionCommand.js +22 -29
  9. package/dist-es/commands/DeletePolicyCommand.js +22 -29
  10. package/dist-es/commands/DescribeCertificateAuthorityAuditReportCommand.js +21 -28
  11. package/dist-es/commands/DescribeCertificateAuthorityCommand.js +21 -28
  12. package/dist-es/commands/GetCertificateAuthorityCertificateCommand.js +21 -28
  13. package/dist-es/commands/GetCertificateAuthorityCsrCommand.js +21 -28
  14. package/dist-es/commands/GetCertificateCommand.js +21 -28
  15. package/dist-es/commands/GetPolicyCommand.js +21 -28
  16. package/dist-es/commands/ImportCertificateAuthorityCertificateCommand.js +22 -29
  17. package/dist-es/commands/IssueCertificateCommand.js +21 -28
  18. package/dist-es/commands/ListCertificateAuthoritiesCommand.js +21 -28
  19. package/dist-es/commands/ListPermissionsCommand.js +21 -28
  20. package/dist-es/commands/ListTagsCommand.js +21 -28
  21. package/dist-es/commands/PutPolicyCommand.js +22 -29
  22. package/dist-es/commands/RestoreCertificateAuthorityCommand.js +22 -29
  23. package/dist-es/commands/RevokeCertificateCommand.js +22 -29
  24. package/dist-es/commands/TagCertificateAuthorityCommand.js +22 -29
  25. package/dist-es/commands/UntagCertificateAuthorityCommand.js +22 -29
  26. package/dist-es/commands/UpdateCertificateAuthorityCommand.js +22 -29
  27. package/dist-es/endpoints.js +8 -8
  28. package/dist-es/models/ACMPCAServiceException.js +5 -10
  29. package/dist-es/models/models_0.js +386 -269
  30. package/dist-es/pagination/ListCertificateAuthoritiesPaginator.js +25 -68
  31. package/dist-es/pagination/ListPermissionsPaginator.js +25 -68
  32. package/dist-es/pagination/ListTagsPaginator.js +25 -68
  33. package/dist-es/protocols/Aws_json1_1.js +1817 -2238
  34. package/dist-es/runtimeConfig.browser.js +26 -12
  35. package/dist-es/runtimeConfig.js +30 -12
  36. package/dist-es/runtimeConfig.native.js +8 -5
  37. package/dist-es/runtimeConfig.shared.js +8 -11
  38. package/dist-es/waiters/waitForAuditReportCreated.js +36 -56
  39. package/dist-es/waiters/waitForCertificateAuthorityCSRCreated.js +23 -42
  40. package/dist-es/waiters/waitForCertificateIssued.js +23 -42
  41. package/package.json +34 -34
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ImportCertificateAuthorityCertificateRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand, serializeAws_json1_1ImportCertificateAuthorityCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var ImportCertificateAuthorityCertificateCommand = (function (_super) {
7
- __extends(ImportCertificateAuthorityCertificateCommand, _super);
8
- function ImportCertificateAuthorityCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ImportCertificateAuthorityCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ImportCertificateAuthorityCertificateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "ImportCertificateAuthorityCertificateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "ImportCertificateAuthorityCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ImportCertificateAuthorityCertificateRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ImportCertificateAuthorityCertificateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ImportCertificateAuthorityCertificateCommand(input, context);
33
- };
34
- ImportCertificateAuthorityCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ImportCertificateAuthorityCertificateCommand(output, context);
36
- };
37
- return ImportCertificateAuthorityCertificateCommand;
38
- }($Command));
39
- export { ImportCertificateAuthorityCertificateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { IssueCertificateRequestFilterSensitiveLog, IssueCertificateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1IssueCertificateCommand, serializeAws_json1_1IssueCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var IssueCertificateCommand = (function (_super) {
7
- __extends(IssueCertificateCommand, _super);
8
- function IssueCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class IssueCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- IssueCertificateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "IssueCertificateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "IssueCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: IssueCertificateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: IssueCertificateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- IssueCertificateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1IssueCertificateCommand(input, context);
33
- };
34
- IssueCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1IssueCertificateCommand(output, context);
36
- };
37
- return IssueCertificateCommand;
38
- }($Command));
39
- export { IssueCertificateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListCertificateAuthoritiesRequestFilterSensitiveLog, ListCertificateAuthoritiesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListCertificateAuthoritiesCommand, serializeAws_json1_1ListCertificateAuthoritiesCommand, } from "../protocols/Aws_json1_1";
6
- var ListCertificateAuthoritiesCommand = (function (_super) {
7
- __extends(ListCertificateAuthoritiesCommand, _super);
8
- function ListCertificateAuthoritiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListCertificateAuthoritiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListCertificateAuthoritiesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "ListCertificateAuthoritiesCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "ListCertificateAuthoritiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListCertificateAuthoritiesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListCertificateAuthoritiesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListCertificateAuthoritiesCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListCertificateAuthoritiesCommand(input, context);
33
- };
34
- ListCertificateAuthoritiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListCertificateAuthoritiesCommand(output, context);
36
- };
37
- return ListCertificateAuthoritiesCommand;
38
- }($Command));
39
- export { ListCertificateAuthoritiesCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListPermissionsRequestFilterSensitiveLog, ListPermissionsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListPermissionsCommand, serializeAws_json1_1ListPermissionsCommand, } from "../protocols/Aws_json1_1";
6
- var ListPermissionsCommand = (function (_super) {
7
- __extends(ListPermissionsCommand, _super);
8
- function ListPermissionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListPermissionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListPermissionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "ListPermissionsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "ListPermissionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListPermissionsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListPermissionsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListPermissionsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListPermissionsCommand(input, context);
33
- };
34
- ListPermissionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListPermissionsCommand(output, context);
36
- };
37
- return ListPermissionsCommand;
38
- }($Command));
39
- export { ListPermissionsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { ListTagsRequestFilterSensitiveLog, ListTagsResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ListTagsCommand, serializeAws_json1_1ListTagsCommand } from "../protocols/Aws_json1_1";
6
- var ListTagsCommand = (function (_super) {
7
- __extends(ListTagsCommand, _super);
8
- function ListTagsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListTagsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListTagsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "ListTagsCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "ListTagsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListTagsRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListTagsResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListTagsCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1ListTagsCommand(input, context);
33
- };
34
- ListTagsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ListTagsCommand(output, context);
36
- };
37
- return ListTagsCommand;
38
- }($Command));
39
- export { ListTagsCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { PutPolicyRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1PutPolicyCommand, serializeAws_json1_1PutPolicyCommand } from "../protocols/Aws_json1_1";
6
- var PutPolicyCommand = (function (_super) {
7
- __extends(PutPolicyCommand, _super);
8
- function PutPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class PutPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- PutPolicyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "PutPolicyCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "PutPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: PutPolicyRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- PutPolicyCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1PutPolicyCommand(input, context);
33
- };
34
- PutPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1PutPolicyCommand(output, context);
36
- };
37
- return PutPolicyCommand;
38
- }($Command));
39
- export { PutPolicyCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RestoreCertificateAuthorityRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RestoreCertificateAuthorityCommand, serializeAws_json1_1RestoreCertificateAuthorityCommand, } from "../protocols/Aws_json1_1";
6
- var RestoreCertificateAuthorityCommand = (function (_super) {
7
- __extends(RestoreCertificateAuthorityCommand, _super);
8
- function RestoreCertificateAuthorityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RestoreCertificateAuthorityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RestoreCertificateAuthorityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "RestoreCertificateAuthorityCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "RestoreCertificateAuthorityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RestoreCertificateAuthorityRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RestoreCertificateAuthorityCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1RestoreCertificateAuthorityCommand(input, context);
33
- };
34
- RestoreCertificateAuthorityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RestoreCertificateAuthorityCommand(output, context);
36
- };
37
- return RestoreCertificateAuthorityCommand;
38
- }($Command));
39
- export { RestoreCertificateAuthorityCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { RevokeCertificateRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RevokeCertificateCommand, serializeAws_json1_1RevokeCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var RevokeCertificateCommand = (function (_super) {
7
- __extends(RevokeCertificateCommand, _super);
8
- function RevokeCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RevokeCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RevokeCertificateCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "RevokeCertificateCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "RevokeCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RevokeCertificateRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RevokeCertificateCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1RevokeCertificateCommand(input, context);
33
- };
34
- RevokeCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RevokeCertificateCommand(output, context);
36
- };
37
- return RevokeCertificateCommand;
38
- }($Command));
39
- export { RevokeCertificateCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { TagCertificateAuthorityRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1TagCertificateAuthorityCommand, serializeAws_json1_1TagCertificateAuthorityCommand, } from "../protocols/Aws_json1_1";
6
- var TagCertificateAuthorityCommand = (function (_super) {
7
- __extends(TagCertificateAuthorityCommand, _super);
8
- function TagCertificateAuthorityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class TagCertificateAuthorityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- TagCertificateAuthorityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "TagCertificateAuthorityCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "TagCertificateAuthorityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: TagCertificateAuthorityRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- TagCertificateAuthorityCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1TagCertificateAuthorityCommand(input, context);
33
- };
34
- TagCertificateAuthorityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1TagCertificateAuthorityCommand(output, context);
36
- };
37
- return TagCertificateAuthorityCommand;
38
- }($Command));
39
- export { TagCertificateAuthorityCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { UntagCertificateAuthorityRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UntagCertificateAuthorityCommand, serializeAws_json1_1UntagCertificateAuthorityCommand, } from "../protocols/Aws_json1_1";
6
- var UntagCertificateAuthorityCommand = (function (_super) {
7
- __extends(UntagCertificateAuthorityCommand, _super);
8
- function UntagCertificateAuthorityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UntagCertificateAuthorityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UntagCertificateAuthorityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "ACMPCAClient";
18
- var commandName = "UntagCertificateAuthorityCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "ACMPCAClient";
15
+ const commandName = "UntagCertificateAuthorityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UntagCertificateAuthorityRequestFilterSensitiveLog,
24
- outputFilterSensitiveLog: function (output) { return output; },
21
+ outputFilterSensitiveLog: (output) => output,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- UntagCertificateAuthorityCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_json1_1UntagCertificateAuthorityCommand(input, context);
33
- };
34
- UntagCertificateAuthorityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UntagCertificateAuthorityCommand(output, context);
36
- };
37
- return UntagCertificateAuthorityCommand;
38
- }($Command));
39
- export { UntagCertificateAuthorityCommand };
31
+ }
32
+ }