@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 { CreatePermissionRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreatePermissionCommand, serializeAws_json1_1CreatePermissionCommand, } from "../protocols/Aws_json1_1";
6
- var CreatePermissionCommand = (function (_super) {
7
- __extends(CreatePermissionCommand, _super);
8
- function CreatePermissionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreatePermissionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreatePermissionCommand.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 = "CreatePermissionCommand";
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 = "CreatePermissionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreatePermissionRequestFilterSensitiveLog,
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
- CreatePermissionCommand.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_1CreatePermissionCommand(input, context);
33
- };
34
- CreatePermissionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreatePermissionCommand(output, context);
36
- };
37
- return CreatePermissionCommand;
38
- }($Command));
39
- export { CreatePermissionCommand };
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 { DeleteCertificateAuthorityRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeleteCertificateAuthorityCommand, serializeAws_json1_1DeleteCertificateAuthorityCommand, } from "../protocols/Aws_json1_1";
6
- var DeleteCertificateAuthorityCommand = (function (_super) {
7
- __extends(DeleteCertificateAuthorityCommand, _super);
8
- function DeleteCertificateAuthorityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteCertificateAuthorityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteCertificateAuthorityCommand.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 = "DeleteCertificateAuthorityCommand";
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 = "DeleteCertificateAuthorityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteCertificateAuthorityRequestFilterSensitiveLog,
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
- DeleteCertificateAuthorityCommand.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_1DeleteCertificateAuthorityCommand(input, context);
33
- };
34
- DeleteCertificateAuthorityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeleteCertificateAuthorityCommand(output, context);
36
- };
37
- return DeleteCertificateAuthorityCommand;
38
- }($Command));
39
- export { DeleteCertificateAuthorityCommand };
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 { DeletePermissionRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeletePermissionCommand, serializeAws_json1_1DeletePermissionCommand, } from "../protocols/Aws_json1_1";
6
- var DeletePermissionCommand = (function (_super) {
7
- __extends(DeletePermissionCommand, _super);
8
- function DeletePermissionCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeletePermissionCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeletePermissionCommand.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 = "DeletePermissionCommand";
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 = "DeletePermissionCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeletePermissionRequestFilterSensitiveLog,
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
- DeletePermissionCommand.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_1DeletePermissionCommand(input, context);
33
- };
34
- DeletePermissionCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeletePermissionCommand(output, context);
36
- };
37
- return DeletePermissionCommand;
38
- }($Command));
39
- export { DeletePermissionCommand };
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 { DeletePolicyRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DeletePolicyCommand, serializeAws_json1_1DeletePolicyCommand, } from "../protocols/Aws_json1_1";
6
- var DeletePolicyCommand = (function (_super) {
7
- __extends(DeletePolicyCommand, _super);
8
- function DeletePolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeletePolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeletePolicyCommand.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 = "DeletePolicyCommand";
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 = "DeletePolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeletePolicyRequestFilterSensitiveLog,
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
- DeletePolicyCommand.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_1DeletePolicyCommand(input, context);
33
- };
34
- DeletePolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DeletePolicyCommand(output, context);
36
- };
37
- return DeletePolicyCommand;
38
- }($Command));
39
- export { DeletePolicyCommand };
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 { DescribeCertificateAuthorityAuditReportRequestFilterSensitiveLog, DescribeCertificateAuthorityAuditReportResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand, serializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeCertificateAuthorityAuditReportCommand = (function (_super) {
7
- __extends(DescribeCertificateAuthorityAuditReportCommand, _super);
8
- function DescribeCertificateAuthorityAuditReportCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeCertificateAuthorityAuditReportCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeCertificateAuthorityAuditReportCommand.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 = "DescribeCertificateAuthorityAuditReportCommand";
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 = "DescribeCertificateAuthorityAuditReportCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeCertificateAuthorityAuditReportRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeCertificateAuthorityAuditReportResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeCertificateAuthorityAuditReportCommand.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_1DescribeCertificateAuthorityAuditReportCommand(input, context);
33
- };
34
- DescribeCertificateAuthorityAuditReportCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeCertificateAuthorityAuditReportCommand(output, context);
36
- };
37
- return DescribeCertificateAuthorityAuditReportCommand;
38
- }($Command));
39
- export { DescribeCertificateAuthorityAuditReportCommand };
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 { DescribeCertificateAuthorityRequestFilterSensitiveLog, DescribeCertificateAuthorityResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeCertificateAuthorityCommand, serializeAws_json1_1DescribeCertificateAuthorityCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeCertificateAuthorityCommand = (function (_super) {
7
- __extends(DescribeCertificateAuthorityCommand, _super);
8
- function DescribeCertificateAuthorityCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeCertificateAuthorityCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeCertificateAuthorityCommand.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 = "DescribeCertificateAuthorityCommand";
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 = "DescribeCertificateAuthorityCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeCertificateAuthorityRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeCertificateAuthorityResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeCertificateAuthorityCommand.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_1DescribeCertificateAuthorityCommand(input, context);
33
- };
34
- DescribeCertificateAuthorityCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeCertificateAuthorityCommand(output, context);
36
- };
37
- return DescribeCertificateAuthorityCommand;
38
- }($Command));
39
- export { DescribeCertificateAuthorityCommand };
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 { GetCertificateAuthorityCertificateRequestFilterSensitiveLog, GetCertificateAuthorityCertificateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetCertificateAuthorityCertificateCommand, serializeAws_json1_1GetCertificateAuthorityCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var GetCertificateAuthorityCertificateCommand = (function (_super) {
7
- __extends(GetCertificateAuthorityCertificateCommand, _super);
8
- function GetCertificateAuthorityCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCertificateAuthorityCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCertificateAuthorityCertificateCommand.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 = "GetCertificateAuthorityCertificateCommand";
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 = "GetCertificateAuthorityCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCertificateAuthorityCertificateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCertificateAuthorityCertificateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCertificateAuthorityCertificateCommand.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_1GetCertificateAuthorityCertificateCommand(input, context);
33
- };
34
- GetCertificateAuthorityCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetCertificateAuthorityCertificateCommand(output, context);
36
- };
37
- return GetCertificateAuthorityCertificateCommand;
38
- }($Command));
39
- export { GetCertificateAuthorityCertificateCommand };
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 { GetCertificateAuthorityCsrRequestFilterSensitiveLog, GetCertificateAuthorityCsrResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetCertificateAuthorityCsrCommand, serializeAws_json1_1GetCertificateAuthorityCsrCommand, } from "../protocols/Aws_json1_1";
6
- var GetCertificateAuthorityCsrCommand = (function (_super) {
7
- __extends(GetCertificateAuthorityCsrCommand, _super);
8
- function GetCertificateAuthorityCsrCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCertificateAuthorityCsrCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCertificateAuthorityCsrCommand.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 = "GetCertificateAuthorityCsrCommand";
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 = "GetCertificateAuthorityCsrCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCertificateAuthorityCsrRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCertificateAuthorityCsrResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCertificateAuthorityCsrCommand.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_1GetCertificateAuthorityCsrCommand(input, context);
33
- };
34
- GetCertificateAuthorityCsrCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetCertificateAuthorityCsrCommand(output, context);
36
- };
37
- return GetCertificateAuthorityCsrCommand;
38
- }($Command));
39
- export { GetCertificateAuthorityCsrCommand };
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 { GetCertificateRequestFilterSensitiveLog, GetCertificateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetCertificateCommand, serializeAws_json1_1GetCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var GetCertificateCommand = (function (_super) {
7
- __extends(GetCertificateCommand, _super);
8
- function GetCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetCertificateCommand.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 = "GetCertificateCommand";
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 = "GetCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetCertificateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetCertificateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetCertificateCommand.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_1GetCertificateCommand(input, context);
33
- };
34
- GetCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetCertificateCommand(output, context);
36
- };
37
- return GetCertificateCommand;
38
- }($Command));
39
- export { GetCertificateCommand };
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 { GetPolicyRequestFilterSensitiveLog, GetPolicyResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1GetPolicyCommand, serializeAws_json1_1GetPolicyCommand } from "../protocols/Aws_json1_1";
6
- var GetPolicyCommand = (function (_super) {
7
- __extends(GetPolicyCommand, _super);
8
- function GetPolicyCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class GetPolicyCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- GetPolicyCommand.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 = "GetPolicyCommand";
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 = "GetPolicyCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: GetPolicyRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: GetPolicyResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- GetPolicyCommand.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_1GetPolicyCommand(input, context);
33
- };
34
- GetPolicyCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1GetPolicyCommand(output, context);
36
- };
37
- return GetPolicyCommand;
38
- }($Command));
39
- export { GetPolicyCommand };
31
+ }
32
+ }