@aws-sdk/client-acm 3.180.0 → 3.183.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 (44) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +3 -3
  3. package/dist-cjs/models/models_0.js +11 -2
  4. package/dist-cjs/protocols/Aws_json1_1.js +65 -15
  5. package/dist-es/ACM.js +62 -69
  6. package/dist-es/ACMClient.js +22 -28
  7. package/dist-es/commands/AddTagsToCertificateCommand.js +22 -29
  8. package/dist-es/commands/DeleteCertificateCommand.js +22 -29
  9. package/dist-es/commands/DescribeCertificateCommand.js +21 -28
  10. package/dist-es/commands/ExportCertificateCommand.js +21 -28
  11. package/dist-es/commands/GetAccountConfigurationCommand.js +22 -29
  12. package/dist-es/commands/GetCertificateCommand.js +21 -28
  13. package/dist-es/commands/ImportCertificateCommand.js +21 -28
  14. package/dist-es/commands/ListCertificatesCommand.js +21 -28
  15. package/dist-es/commands/ListTagsForCertificateCommand.js +21 -28
  16. package/dist-es/commands/PutAccountConfigurationCommand.js +22 -29
  17. package/dist-es/commands/RemoveTagsFromCertificateCommand.js +22 -29
  18. package/dist-es/commands/RenewCertificateCommand.js +22 -29
  19. package/dist-es/commands/RequestCertificateCommand.js +21 -28
  20. package/dist-es/commands/ResendValidationEmailCommand.js +22 -29
  21. package/dist-es/commands/UpdateCertificateOptionsCommand.js +22 -29
  22. package/dist-es/endpoints.js +8 -8
  23. package/dist-es/models/ACMServiceException.js +5 -10
  24. package/dist-es/models/models_0.js +291 -212
  25. package/dist-es/pagination/ListCertificatesPaginator.js +25 -68
  26. package/dist-es/protocols/Aws_json1_1.js +1164 -1432
  27. package/dist-es/runtimeConfig.browser.js +26 -12
  28. package/dist-es/runtimeConfig.js +30 -12
  29. package/dist-es/runtimeConfig.native.js +8 -5
  30. package/dist-es/runtimeConfig.shared.js +8 -11
  31. package/dist-es/waiters/waitForCertificateValidated.js +61 -102
  32. package/dist-types/ACM.d.ts +18 -27
  33. package/dist-types/ACMClient.d.ts +3 -3
  34. package/dist-types/commands/AddTagsToCertificateCommand.d.ts +0 -2
  35. package/dist-types/commands/DescribeCertificateCommand.d.ts +2 -0
  36. package/dist-types/commands/GetAccountConfigurationCommand.d.ts +1 -2
  37. package/dist-types/commands/ImportCertificateCommand.d.ts +2 -7
  38. package/dist-types/commands/PutAccountConfigurationCommand.d.ts +3 -6
  39. package/dist-types/commands/RemoveTagsFromCertificateCommand.d.ts +0 -1
  40. package/dist-types/commands/RenewCertificateCommand.d.ts +2 -2
  41. package/dist-types/commands/RequestCertificateCommand.d.ts +5 -4
  42. package/dist-types/models/models_0.d.ts +153 -50
  43. package/dist-types/ts3.4/models/models_0.d.ts +25 -0
  44. 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 { RemoveTagsFromCertificateRequestFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RemoveTagsFromCertificateCommand, serializeAws_json1_1RemoveTagsFromCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var RemoveTagsFromCertificateCommand = (function (_super) {
7
- __extends(RemoveTagsFromCertificateCommand, _super);
8
- function RemoveTagsFromCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RemoveTagsFromCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RemoveTagsFromCertificateCommand.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 = "ACMClient";
18
- var commandName = "RemoveTagsFromCertificateCommand";
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 = "ACMClient";
15
+ const commandName = "RemoveTagsFromCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RemoveTagsFromCertificateRequestFilterSensitiveLog,
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
- RemoveTagsFromCertificateCommand.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_1RemoveTagsFromCertificateCommand(input, context);
33
- };
34
- RemoveTagsFromCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RemoveTagsFromCertificateCommand(output, context);
36
- };
37
- return RemoveTagsFromCertificateCommand;
38
- }($Command));
39
- export { RemoveTagsFromCertificateCommand };
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 { RenewCertificateRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RenewCertificateCommand, serializeAws_json1_1RenewCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var RenewCertificateCommand = (function (_super) {
7
- __extends(RenewCertificateCommand, _super);
8
- function RenewCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RenewCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RenewCertificateCommand.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 = "ACMClient";
18
- var commandName = "RenewCertificateCommand";
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 = "ACMClient";
15
+ const commandName = "RenewCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RenewCertificateRequestFilterSensitiveLog,
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
- RenewCertificateCommand.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_1RenewCertificateCommand(input, context);
33
- };
34
- RenewCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RenewCertificateCommand(output, context);
36
- };
37
- return RenewCertificateCommand;
38
- }($Command));
39
- export { RenewCertificateCommand };
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 { RequestCertificateRequestFilterSensitiveLog, RequestCertificateResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1RequestCertificateCommand, serializeAws_json1_1RequestCertificateCommand, } from "../protocols/Aws_json1_1";
6
- var RequestCertificateCommand = (function (_super) {
7
- __extends(RequestCertificateCommand, _super);
8
- function RequestCertificateCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class RequestCertificateCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- RequestCertificateCommand.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 = "ACMClient";
18
- var commandName = "RequestCertificateCommand";
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 = "ACMClient";
15
+ const commandName = "RequestCertificateCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: RequestCertificateRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: RequestCertificateResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- RequestCertificateCommand.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_1RequestCertificateCommand(input, context);
33
- };
34
- RequestCertificateCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1RequestCertificateCommand(output, context);
36
- };
37
- return RequestCertificateCommand;
38
- }($Command));
39
- export { RequestCertificateCommand };
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 { ResendValidationEmailRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1ResendValidationEmailCommand, serializeAws_json1_1ResendValidationEmailCommand, } from "../protocols/Aws_json1_1";
6
- var ResendValidationEmailCommand = (function (_super) {
7
- __extends(ResendValidationEmailCommand, _super);
8
- function ResendValidationEmailCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ResendValidationEmailCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ResendValidationEmailCommand.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 = "ACMClient";
18
- var commandName = "ResendValidationEmailCommand";
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 = "ACMClient";
15
+ const commandName = "ResendValidationEmailCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ResendValidationEmailRequestFilterSensitiveLog,
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
- ResendValidationEmailCommand.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_1ResendValidationEmailCommand(input, context);
33
- };
34
- ResendValidationEmailCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1ResendValidationEmailCommand(output, context);
36
- };
37
- return ResendValidationEmailCommand;
38
- }($Command));
39
- export { ResendValidationEmailCommand };
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 { UpdateCertificateOptionsRequestFilterSensitiveLog } from "../models/models_0";
5
4
  import { deserializeAws_json1_1UpdateCertificateOptionsCommand, serializeAws_json1_1UpdateCertificateOptionsCommand, } from "../protocols/Aws_json1_1";
6
- var UpdateCertificateOptionsCommand = (function (_super) {
7
- __extends(UpdateCertificateOptionsCommand, _super);
8
- function UpdateCertificateOptionsCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class UpdateCertificateOptionsCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- UpdateCertificateOptionsCommand.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 = "ACMClient";
18
- var commandName = "UpdateCertificateOptionsCommand";
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 = "ACMClient";
15
+ const commandName = "UpdateCertificateOptionsCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: UpdateCertificateOptionsRequestFilterSensitiveLog,
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
- UpdateCertificateOptionsCommand.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_1UpdateCertificateOptionsCommand(input, context);
33
- };
34
- UpdateCertificateOptionsCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1UpdateCertificateOptionsCommand(output, context);
36
- };
37
- return UpdateCertificateOptionsCommand;
38
- }($Command));
39
- export { UpdateCertificateOptionsCommand };
31
+ }
32
+ }
@@ -1,6 +1,5 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
- var regionHash = {
2
+ const regionHash = {
4
3
  "ca-central-1": {
5
4
  variants: [
6
5
  {
@@ -60,7 +59,7 @@ var regionHash = {
60
59
  ],
61
60
  },
62
61
  };
63
- var partitionHash = {
62
+ const partitionHash = {
64
63
  aws: {
65
64
  regions: [
66
65
  "af-south-1",
@@ -185,8 +184,9 @@ var partitionHash = {
185
184
  ],
186
185
  },
187
186
  };
188
- export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
189
- return __generator(this, function (_a) {
190
- return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "acm", regionHash: regionHash, partitionHash: partitionHash }))];
191
- });
192
- }); };
187
+ export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
188
+ ...options,
189
+ signingService: "acm",
190
+ regionHash,
191
+ partitionHash,
192
+ });
@@ -1,12 +1,7 @@
1
- import { __extends } from "tslib";
2
1
  import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
- var ACMServiceException = (function (_super) {
4
- __extends(ACMServiceException, _super);
5
- function ACMServiceException(options) {
6
- var _this = _super.call(this, options) || this;
7
- Object.setPrototypeOf(_this, ACMServiceException.prototype);
8
- return _this;
2
+ export class ACMServiceException extends __ServiceException {
3
+ constructor(options) {
4
+ super(options);
5
+ Object.setPrototypeOf(this, ACMServiceException.prototype);
9
6
  }
10
- return ACMServiceException;
11
- }(__ServiceException));
12
- export { ACMServiceException };
7
+ }