@aws-sdk/client-acm 3.1076.0 → 3.1077.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 (166) hide show
  1. package/README.md +161 -7
  2. package/dist-cjs/index.js +1406 -152
  3. package/dist-es/ACM.js +60 -0
  4. package/dist-es/commands/AddTagsToCertificateCommand.js +4 -1
  5. package/dist-es/commands/CreateAcmeDomainValidationCommand.js +19 -0
  6. package/dist-es/commands/CreateAcmeEndpointCommand.js +19 -0
  7. package/dist-es/commands/CreateAcmeExternalAccountBindingCommand.js +19 -0
  8. package/dist-es/commands/DeleteAcmeDomainValidationCommand.js +19 -0
  9. package/dist-es/commands/DeleteAcmeEndpointCommand.js +19 -0
  10. package/dist-es/commands/DeleteAcmeExternalAccountBindingCommand.js +19 -0
  11. package/dist-es/commands/DeleteCertificateCommand.js +4 -1
  12. package/dist-es/commands/DescribeAcmeAccountCommand.js +19 -0
  13. package/dist-es/commands/DescribeAcmeDomainValidationCommand.js +19 -0
  14. package/dist-es/commands/DescribeAcmeEndpointCommand.js +19 -0
  15. package/dist-es/commands/DescribeAcmeExternalAccountBindingCommand.js +19 -0
  16. package/dist-es/commands/DescribeCertificateCommand.js +4 -1
  17. package/dist-es/commands/ExportCertificateCommand.js +4 -1
  18. package/dist-es/commands/GetAccountConfigurationCommand.js +4 -1
  19. package/dist-es/commands/GetAcmeExternalAccountBindingCredentialsCommand.js +19 -0
  20. package/dist-es/commands/GetCertificateCommand.js +4 -1
  21. package/dist-es/commands/ImportCertificateCommand.js +4 -1
  22. package/dist-es/commands/ListAcmeAccountsCommand.js +19 -0
  23. package/dist-es/commands/ListAcmeDomainValidationsCommand.js +19 -0
  24. package/dist-es/commands/ListAcmeEndpointsCommand.js +19 -0
  25. package/dist-es/commands/ListAcmeExternalAccountBindingsCommand.js +19 -0
  26. package/dist-es/commands/ListCertificatesCommand.js +4 -1
  27. package/dist-es/commands/ListTagsForCertificateCommand.js +4 -1
  28. package/dist-es/commands/ListTagsForResourceCommand.js +19 -0
  29. package/dist-es/commands/PutAccountConfigurationCommand.js +4 -1
  30. package/dist-es/commands/RemoveTagsFromCertificateCommand.js +4 -1
  31. package/dist-es/commands/RenewCertificateCommand.js +4 -1
  32. package/dist-es/commands/RequestCertificateCommand.js +4 -1
  33. package/dist-es/commands/ResendValidationEmailCommand.js +4 -1
  34. package/dist-es/commands/RevokeAcmeAccountCommand.js +19 -0
  35. package/dist-es/commands/RevokeAcmeExternalAccountBindingCommand.js +19 -0
  36. package/dist-es/commands/RevokeCertificateCommand.js +4 -1
  37. package/dist-es/commands/SearchCertificatesCommand.js +4 -1
  38. package/dist-es/commands/TagResourceCommand.js +19 -0
  39. package/dist-es/commands/UntagResourceCommand.js +19 -0
  40. package/dist-es/commands/UpdateAcmeDomainValidationCommand.js +19 -0
  41. package/dist-es/commands/UpdateAcmeEndpointCommand.js +19 -0
  42. package/dist-es/commands/UpdateCertificateOptionsCommand.js +4 -1
  43. package/dist-es/commands/index.js +22 -0
  44. package/dist-es/endpoint/EndpointParameters.js +4 -1
  45. package/dist-es/endpoint/bdd.js +27 -35
  46. package/dist-es/endpoint/endpointResolver.js +1 -1
  47. package/dist-es/models/enums.js +60 -0
  48. package/dist-es/models/errors.js +37 -12
  49. package/dist-es/pagination/ListAcmeAccountsPaginator.js +4 -0
  50. package/dist-es/pagination/ListAcmeDomainValidationsPaginator.js +4 -0
  51. package/dist-es/pagination/ListAcmeEndpointsPaginator.js +4 -0
  52. package/dist-es/pagination/ListAcmeExternalAccountBindingsPaginator.js +4 -0
  53. package/dist-es/pagination/index.js +4 -0
  54. package/dist-es/runtimeConfig.browser.js +0 -2
  55. package/dist-es/runtimeConfig.js +1 -2
  56. package/dist-es/runtimeConfig.native.js +0 -2
  57. package/dist-es/runtimeConfig.shared.js +2 -0
  58. package/dist-es/schemas/schemas_0.js +512 -39
  59. package/dist-es/waiters/index.js +4 -0
  60. package/dist-es/waiters/waitForAcmeDomainValidationDeleted.js +34 -0
  61. package/dist-es/waiters/waitForAcmeDomainValidationValidated.js +49 -0
  62. package/dist-es/waiters/waitForAcmeEndpointActive.js +49 -0
  63. package/dist-es/waiters/waitForAcmeEndpointDeleted.js +34 -0
  64. package/dist-types/ACM.d.ts +208 -0
  65. package/dist-types/ACMClient.d.ts +24 -2
  66. package/dist-types/commands/AddTagsToCertificateCommand.d.ts +4 -1
  67. package/dist-types/commands/CreateAcmeDomainValidationCommand.d.ts +115 -0
  68. package/dist-types/commands/CreateAcmeEndpointCommand.d.ts +115 -0
  69. package/dist-types/commands/CreateAcmeExternalAccountBindingCommand.d.ts +118 -0
  70. package/dist-types/commands/DeleteAcmeDomainValidationCommand.d.ts +89 -0
  71. package/dist-types/commands/DeleteAcmeEndpointCommand.d.ts +89 -0
  72. package/dist-types/commands/DeleteAcmeExternalAccountBindingCommand.d.ts +86 -0
  73. package/dist-types/commands/DeleteCertificateCommand.d.ts +4 -1
  74. package/dist-types/commands/DescribeAcmeAccountCommand.d.ts +101 -0
  75. package/dist-types/commands/DescribeAcmeDomainValidationCommand.d.ts +118 -0
  76. package/dist-types/commands/DescribeAcmeEndpointCommand.d.ts +113 -0
  77. package/dist-types/commands/DescribeAcmeExternalAccountBindingCommand.d.ts +100 -0
  78. package/dist-types/commands/DescribeCertificateCommand.d.ts +6 -0
  79. package/dist-types/commands/ExportCertificateCommand.d.ts +3 -0
  80. package/dist-types/commands/GetAcmeExternalAccountBindingCredentialsCommand.d.ts +92 -0
  81. package/dist-types/commands/GetCertificateCommand.d.ts +3 -0
  82. package/dist-types/commands/ImportCertificateCommand.d.ts +3 -0
  83. package/dist-types/commands/ListAcmeAccountsCommand.d.ts +105 -0
  84. package/dist-types/commands/ListAcmeDomainValidationsCommand.d.ts +123 -0
  85. package/dist-types/commands/ListAcmeEndpointsCommand.d.ts +114 -0
  86. package/dist-types/commands/ListAcmeExternalAccountBindingsCommand.d.ts +105 -0
  87. package/dist-types/commands/ListCertificatesCommand.d.ts +5 -1
  88. package/dist-types/commands/ListTagsForCertificateCommand.d.ts +4 -1
  89. package/dist-types/commands/ListTagsForResourceCommand.d.ts +87 -0
  90. package/dist-types/commands/RemoveTagsFromCertificateCommand.d.ts +4 -1
  91. package/dist-types/commands/RenewCertificateCommand.d.ts +3 -0
  92. package/dist-types/commands/ResendValidationEmailCommand.d.ts +3 -0
  93. package/dist-types/commands/RevokeAcmeAccountCommand.d.ts +93 -0
  94. package/dist-types/commands/RevokeAcmeExternalAccountBindingCommand.d.ts +92 -0
  95. package/dist-types/commands/RevokeCertificateCommand.d.ts +3 -0
  96. package/dist-types/commands/SearchCertificatesCommand.d.ts +10 -1
  97. package/dist-types/commands/TagResourceCommand.d.ts +89 -0
  98. package/dist-types/commands/UntagResourceCommand.d.ts +83 -0
  99. package/dist-types/commands/UpdateAcmeDomainValidationCommand.d.ts +102 -0
  100. package/dist-types/commands/UpdateAcmeEndpointCommand.d.ts +101 -0
  101. package/dist-types/commands/UpdateCertificateOptionsCommand.d.ts +3 -0
  102. package/dist-types/commands/index.d.ts +22 -0
  103. package/dist-types/endpoint/EndpointParameters.d.ts +14 -5
  104. package/dist-types/models/enums.d.ts +148 -0
  105. package/dist-types/models/errors.d.ts +37 -12
  106. package/dist-types/models/models_0.d.ts +1284 -67
  107. package/dist-types/pagination/ListAcmeAccountsPaginator.d.ts +7 -0
  108. package/dist-types/pagination/ListAcmeDomainValidationsPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListAcmeEndpointsPaginator.d.ts +7 -0
  110. package/dist-types/pagination/ListAcmeExternalAccountBindingsPaginator.d.ts +7 -0
  111. package/dist-types/pagination/index.d.ts +4 -0
  112. package/dist-types/runtimeConfig.browser.d.ts +5 -1
  113. package/dist-types/runtimeConfig.d.ts +5 -1
  114. package/dist-types/runtimeConfig.native.d.ts +5 -1
  115. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  116. package/dist-types/schemas/schemas_0.d.ts +76 -0
  117. package/dist-types/ts3.4/ACM.d.ts +452 -0
  118. package/dist-types/ts3.4/ACMClient.d.ts +132 -0
  119. package/dist-types/ts3.4/commands/CreateAcmeDomainValidationCommand.d.ts +53 -0
  120. package/dist-types/ts3.4/commands/CreateAcmeEndpointCommand.d.ts +53 -0
  121. package/dist-types/ts3.4/commands/CreateAcmeExternalAccountBindingCommand.d.ts +53 -0
  122. package/dist-types/ts3.4/commands/DeleteAcmeDomainValidationCommand.d.ts +49 -0
  123. package/dist-types/ts3.4/commands/DeleteAcmeEndpointCommand.d.ts +48 -0
  124. package/dist-types/ts3.4/commands/DeleteAcmeExternalAccountBindingCommand.d.ts +49 -0
  125. package/dist-types/ts3.4/commands/DescribeAcmeAccountCommand.d.ts +53 -0
  126. package/dist-types/ts3.4/commands/DescribeAcmeDomainValidationCommand.d.ts +53 -0
  127. package/dist-types/ts3.4/commands/DescribeAcmeEndpointCommand.d.ts +53 -0
  128. package/dist-types/ts3.4/commands/DescribeAcmeExternalAccountBindingCommand.d.ts +53 -0
  129. package/dist-types/ts3.4/commands/GetAcmeExternalAccountBindingCredentialsCommand.d.ts +53 -0
  130. package/dist-types/ts3.4/commands/ListAcmeAccountsCommand.d.ts +52 -0
  131. package/dist-types/ts3.4/commands/ListAcmeDomainValidationsCommand.d.ts +53 -0
  132. package/dist-types/ts3.4/commands/ListAcmeEndpointsCommand.d.ts +53 -0
  133. package/dist-types/ts3.4/commands/ListAcmeExternalAccountBindingsCommand.d.ts +53 -0
  134. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +53 -0
  135. package/dist-types/ts3.4/commands/RevokeAcmeAccountCommand.d.ts +48 -0
  136. package/dist-types/ts3.4/commands/RevokeAcmeExternalAccountBindingCommand.d.ts +49 -0
  137. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  138. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +47 -0
  139. package/dist-types/ts3.4/commands/UpdateAcmeDomainValidationCommand.d.ts +49 -0
  140. package/dist-types/ts3.4/commands/UpdateAcmeEndpointCommand.d.ts +48 -0
  141. package/dist-types/ts3.4/commands/index.d.ts +22 -0
  142. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +14 -5
  143. package/dist-types/ts3.4/models/enums.d.ts +80 -0
  144. package/dist-types/ts3.4/models/errors.d.ts +22 -7
  145. package/dist-types/ts3.4/models/models_0.d.ts +395 -5
  146. package/dist-types/ts3.4/pagination/ListAcmeAccountsPaginator.d.ts +11 -0
  147. package/dist-types/ts3.4/pagination/ListAcmeDomainValidationsPaginator.d.ts +11 -0
  148. package/dist-types/ts3.4/pagination/ListAcmeEndpointsPaginator.d.ts +11 -0
  149. package/dist-types/ts3.4/pagination/ListAcmeExternalAccountBindingsPaginator.d.ts +11 -0
  150. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  151. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +11 -1
  152. package/dist-types/ts3.4/runtimeConfig.d.ts +11 -1
  153. package/dist-types/ts3.4/runtimeConfig.native.d.ts +11 -1
  154. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  155. package/dist-types/ts3.4/schemas/schemas_0.d.ts +76 -0
  156. package/dist-types/ts3.4/waiters/index.d.ts +4 -0
  157. package/dist-types/ts3.4/waiters/waitForAcmeDomainValidationDeleted.d.ts +18 -0
  158. package/dist-types/ts3.4/waiters/waitForAcmeDomainValidationValidated.d.ts +17 -0
  159. package/dist-types/ts3.4/waiters/waitForAcmeEndpointActive.d.ts +17 -0
  160. package/dist-types/ts3.4/waiters/waitForAcmeEndpointDeleted.d.ts +18 -0
  161. package/dist-types/waiters/index.d.ts +4 -0
  162. package/dist-types/waiters/waitForAcmeDomainValidationDeleted.d.ts +16 -0
  163. package/dist-types/waiters/waitForAcmeDomainValidationValidated.d.ts +15 -0
  164. package/dist-types/waiters/waitForAcmeEndpointActive.d.ts +15 -0
  165. package/dist-types/waiters/waitForAcmeEndpointDeleted.d.ts +16 -0
  166. package/package.json +6 -8
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { RevokeAcmeExternalAccountBinding$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class RevokeAcmeExternalAccountBindingCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM-ACME` },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("CertificateManager", "RevokeAcmeExternalAccountBinding", {})
16
+ .n("ACMClient", "RevokeAcmeExternalAccountBindingCommand")
17
+ .sc(RevokeAcmeExternalAccountBinding$)
18
+ .build() {
19
+ }
@@ -5,7 +5,10 @@ import { RevokeCertificate$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class RevokeCertificateCommand extends $Command
7
7
  .classBuilder()
8
- .ep(commonParams)
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM` },
11
+ })
9
12
  .m(function (Command, cs, config, o) {
10
13
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
14
  })
@@ -5,7 +5,10 @@ import { SearchCertificates$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SearchCertificatesCommand extends $Command
7
7
  .classBuilder()
8
- .ep(commonParams)
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM` },
11
+ })
9
12
  .m(function (Command, cs, config, o) {
10
13
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
14
  })
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { TagResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM` },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("CertificateManager", "TagResource", {})
16
+ .n("ACMClient", "TagResourceCommand")
17
+ .sc(TagResource$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UntagResource$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM` },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("CertificateManager", "UntagResource", {})
16
+ .n("ACMClient", "UntagResourceCommand")
17
+ .sc(UntagResource$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateAcmeDomainValidation$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateAcmeDomainValidationCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM-ACME` },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("CertificateManager", "UpdateAcmeDomainValidation", {})
16
+ .n("ACMClient", "UpdateAcmeDomainValidationCommand")
17
+ .sc(UpdateAcmeDomainValidation$)
18
+ .build() {
19
+ }
@@ -0,0 +1,19 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateAcmeEndpoint$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateAcmeEndpointCommand extends $Command
7
+ .classBuilder()
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM-ACME` },
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("CertificateManager", "UpdateAcmeEndpoint", {})
16
+ .n("ACMClient", "UpdateAcmeEndpointCommand")
17
+ .sc(UpdateAcmeEndpoint$)
18
+ .build() {
19
+ }
@@ -5,7 +5,10 @@ import { UpdateCertificateOptions$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UpdateCertificateOptionsCommand extends $Command
7
7
  .classBuilder()
8
- .ep(commonParams)
8
+ .ep({
9
+ ...commonParams,
10
+ ServiceType: { type: "staticContextParams", value: `ACM` },
11
+ })
9
12
  .m(function (Command, cs, config, o) {
10
13
  return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
14
  })
@@ -1,17 +1,39 @@
1
1
  export * from "./AddTagsToCertificateCommand";
2
+ export * from "./CreateAcmeDomainValidationCommand";
3
+ export * from "./CreateAcmeEndpointCommand";
4
+ export * from "./CreateAcmeExternalAccountBindingCommand";
5
+ export * from "./DeleteAcmeDomainValidationCommand";
6
+ export * from "./DeleteAcmeEndpointCommand";
7
+ export * from "./DeleteAcmeExternalAccountBindingCommand";
2
8
  export * from "./DeleteCertificateCommand";
9
+ export * from "./DescribeAcmeAccountCommand";
10
+ export * from "./DescribeAcmeDomainValidationCommand";
11
+ export * from "./DescribeAcmeEndpointCommand";
12
+ export * from "./DescribeAcmeExternalAccountBindingCommand";
3
13
  export * from "./DescribeCertificateCommand";
4
14
  export * from "./ExportCertificateCommand";
5
15
  export * from "./GetAccountConfigurationCommand";
16
+ export * from "./GetAcmeExternalAccountBindingCredentialsCommand";
6
17
  export * from "./GetCertificateCommand";
7
18
  export * from "./ImportCertificateCommand";
19
+ export * from "./ListAcmeAccountsCommand";
20
+ export * from "./ListAcmeDomainValidationsCommand";
21
+ export * from "./ListAcmeEndpointsCommand";
22
+ export * from "./ListAcmeExternalAccountBindingsCommand";
8
23
  export * from "./ListCertificatesCommand";
9
24
  export * from "./ListTagsForCertificateCommand";
25
+ export * from "./ListTagsForResourceCommand";
10
26
  export * from "./PutAccountConfigurationCommand";
11
27
  export * from "./RemoveTagsFromCertificateCommand";
12
28
  export * from "./RenewCertificateCommand";
13
29
  export * from "./RequestCertificateCommand";
14
30
  export * from "./ResendValidationEmailCommand";
31
+ export * from "./RevokeAcmeAccountCommand";
32
+ export * from "./RevokeAcmeExternalAccountBindingCommand";
15
33
  export * from "./RevokeCertificateCommand";
16
34
  export * from "./SearchCertificatesCommand";
35
+ export * from "./TagResourceCommand";
36
+ export * from "./UntagResourceCommand";
37
+ export * from "./UpdateAcmeDomainValidationCommand";
38
+ export * from "./UpdateAcmeEndpointCommand";
17
39
  export * from "./UpdateCertificateOptionsCommand";
@@ -1,11 +1,14 @@
1
+ const clientContextParamDefaults = {};
1
2
  export const resolveClientEndpointParameters = (options) => {
2
3
  return Object.assign(options, {
3
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
4
4
  useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
6
  defaultSigningName: "acm",
7
+ clientContextParams: options.clientContextParams ?? {},
6
8
  });
7
9
  };
8
10
  export const commonParams = {
11
+ ServiceType: { type: "clientContextParams", name: "serviceType" },
9
12
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
13
  Endpoint: { type: "builtInParams", name: "endpoint" },
11
14
  Region: { type: "builtInParams", name: "region" },
@@ -1,49 +1,41 @@
1
1
  import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
- const k = "ref";
3
- const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
2
+ const a = "PartitionResult", b = "stringEquals", c = "booleanEquals", d = { "fn": "getAttr", "argv": [{ "ref": a }, "name"] }, e = {};
4
3
  const _data = {
5
4
  conditions: [
6
- [c, [g]],
7
- [c, j],
8
- ["aws.partition", j, d],
9
- [e, [{ [k]: "UseFIPS" }, b]],
10
- [e, [{ [k]: "UseDualStack" }, b]],
11
- [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
12
- [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]],
13
- ["stringEquals", [{ fn: f, argv: [h, "name"] }, "aws-us-gov"]]
5
+ ["isSet", [{ ref: "Endpoint" }]],
6
+ ["aws.partition", [{ ref: "Region" }], a],
7
+ [b, [{ ref: "ServiceType" }, "ACM-ACME"]],
8
+ [b, [d, "aws"]],
9
+ [c, [{ ref: "UseFIPS" }, true]],
10
+ [c, [{ ref: "UseDualStack" }, true]],
11
+ [b, [d, "aws-us-gov"]]
14
12
  ],
15
13
  results: [
16
- [a],
17
- [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
18
- [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
19
- [g, i],
20
- ["https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
21
- [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
22
- ["https://acm.{Region}.amazonaws.com", i],
23
- ["https://acm-fips.{Region}.{PartitionResult#dnsSuffix}", i],
24
- [a, "FIPS is enabled but this partition does not support FIPS"],
25
- ["https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
26
- [a, "DualStack is enabled but this partition does not support DualStack"],
27
- ["https://acm.{Region}.{PartitionResult#dnsSuffix}", i],
28
- [a, "Invalid Configuration: Missing Region"]
14
+ [-1],
15
+ ["{Endpoint}", e],
16
+ [-1, "FIPS endpoints are not available for ACME operations"],
17
+ ["https://acm-acme.{Region}.{PartitionResult#dualStackDnsSuffix}", e],
18
+ [-1, "ACME operations are only available in commercial AWS partitions"],
19
+ ["https://acm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", e],
20
+ ["https://acm.{Region}.amazonaws.com", e],
21
+ ["https://acm-fips.{Region}.{PartitionResult#dnsSuffix}", e],
22
+ ["https://acm.{Region}.{PartitionResult#dualStackDnsSuffix}", e],
23
+ ["https://acm.{Region}.{PartitionResult#dnsSuffix}", e],
24
+ [-1, "Region must be set to resolve an endpoint."]
29
25
  ]
30
26
  };
31
27
  const root = 2;
32
28
  const r = 100_000_000;
33
29
  const nodes = new Int32Array([
34
30
  -1, 1, -1,
35
- 0, 13, 3,
36
- 1, 4, r + 12,
37
- 2, 5, r + 12,
38
- 3, 8, 6,
39
- 4, 7, r + 11,
40
- 5, r + 9, r + 10,
41
- 4, 11, 9,
42
- 6, 10, r + 8,
43
- 7, r + 6, r + 7,
44
- 5, 12, r + 5,
45
- 6, r + 4, r + 5,
46
- 3, r + 1, 14,
31
+ 0, r + 1, 3,
32
+ 1, 4, r + 10,
33
+ 2, 9, 5,
34
+ 4, 7, 6,
35
+ 5, r + 8, r + 9,
36
+ 5, r + 5, 8,
37
+ 6, r + 6, r + 7,
38
+ 3, 10, r + 4,
47
39
  4, r + 2, r + 3,
48
40
  ]);
49
41
  export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -3,7 +3,7 @@ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/
3
3
  import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
6
- params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
6
+ params: ["Endpoint", "Region", "ServiceType", "UseDualStack", "UseFIPS"],
7
7
  });
8
8
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
9
  return cache.get(endpointParams, () => decideEndpoint(bdd, {
@@ -1,3 +1,8 @@
1
+ export const CertificateKeyPairOrigin = {
2
+ ACME: "ACME",
3
+ AWS_MANAGED: "AWS_MANAGED",
4
+ CUSTOMER_PROVIDED: "CUSTOMER_PROVIDED",
5
+ };
1
6
  export const CertificateExport = {
2
7
  DISABLED: "DISABLED",
3
8
  ENABLED: "ENABLED",
@@ -34,9 +39,56 @@ export const ValidationMethod = {
34
39
  EMAIL: "EMAIL",
35
40
  HTTP: "HTTP",
36
41
  };
42
+ export const AcmeAccountStatus = {
43
+ DEACTIVATED: "DEACTIVATED",
44
+ REVOKED: "REVOKED",
45
+ VALID: "VALID",
46
+ };
47
+ export const AcmeAuthorizationBehavior = {
48
+ PRE_APPROVED: "PRE_APPROVED",
49
+ };
50
+ export const AcmeContact = {
51
+ NOT_REQUIRED: "NOT_REQUIRED",
52
+ REQUIRED: "REQUIRED",
53
+ };
54
+ export const AcmeDomainValidationFailureReason = {
55
+ ACCESS_DENIED: "ACCESS_DENIED",
56
+ DOMAIN_MISMATCH: "DOMAIN_MISMATCH",
57
+ DOMAIN_NOT_ALLOWED: "DOMAIN_NOT_ALLOWED",
58
+ ENDPOINT_NOT_ACTIVE: "ENDPOINT_NOT_ACTIVE",
59
+ HOSTED_ZONE_NOT_FOUND: "HOSTED_ZONE_NOT_FOUND",
60
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
61
+ INVALID_CHANGE_BATCH: "INVALID_CHANGE_BATCH",
62
+ INVALID_PUBLIC_DOMAIN: "INVALID_PUBLIC_DOMAIN",
63
+ TIMED_OUT: "TIMED_OUT",
64
+ };
65
+ export const DomainScopeOption = {
66
+ DISABLED: "DISABLED",
67
+ ENABLED: "ENABLED",
68
+ };
37
69
  export const RecordType = {
38
70
  CNAME: "CNAME",
39
71
  };
72
+ export const PrevalidationType = {
73
+ DNS_PREVALIDATION: "DNS_PREVALIDATION",
74
+ };
75
+ export const AcmeDomainValidationStatus = {
76
+ DELETING: "DELETING",
77
+ INVALID: "INVALID",
78
+ VALID: "VALID",
79
+ VALIDATING: "VALIDATING",
80
+ };
81
+ export const PublicKeyAlgorithm = {
82
+ EC_PRIME256_V1: "EC_prime256v1",
83
+ EC_SECP384_R1: "EC_secp384r1",
84
+ RSA_2048: "RSA_2048",
85
+ };
86
+ export const AcmeEndpointStatus = {
87
+ ACTIVE: "ACTIVE",
88
+ CREATING: "CREATING",
89
+ DELETING: "DELETING",
90
+ FAILED: "FAILED",
91
+ };
40
92
  export const DomainStatus = {
41
93
  FAILED: "FAILED",
42
94
  PENDING_VALIDATION: "PENDING_VALIDATION",
@@ -118,6 +170,11 @@ export const ComparisonOperator = {
118
170
  CONTAINS: "CONTAINS",
119
171
  EQUALS: "EQUALS",
120
172
  };
173
+ export const TimeType = {
174
+ DAYS: "DAYS",
175
+ HOURS: "HOURS",
176
+ MINUTES: "MINUTES",
177
+ };
121
178
  export const SortBy = {
122
179
  CREATED_AT: "CREATED_AT",
123
180
  };
@@ -126,7 +183,10 @@ export const SortOrder = {
126
183
  DESCENDING: "DESCENDING",
127
184
  };
128
185
  export const SearchCertificatesSortBy = {
186
+ ACME_ACCOUNT_ID: "ACME_ACCOUNT_ID",
187
+ ACME_ENDPOINT_ARN: "ACME_ENDPOINT_ARN",
129
188
  CERTIFICATE_ARN: "CERTIFICATE_ARN",
189
+ CERTIFICATE_KEY_PAIR_ORIGIN: "CERTIFICATE_KEY_PAIR_ORIGIN",
130
190
  COMMON_NAME: "COMMON_NAME",
131
191
  CREATED_AT: "CREATED_AT",
132
192
  EXPORTED: "EXPORTED",
@@ -99,6 +99,18 @@ export class TooManyTagsException extends __BaseException {
99
99
  Object.setPrototypeOf(this, TooManyTagsException.prototype);
100
100
  }
101
101
  }
102
+ export class ValidationException extends __BaseException {
103
+ name = "ValidationException";
104
+ $fault = "client";
105
+ constructor(opts) {
106
+ super({
107
+ name: "ValidationException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ Object.setPrototypeOf(this, ValidationException.prototype);
112
+ }
113
+ }
102
114
  export class ConflictException extends __BaseException {
103
115
  name = "ConflictException";
104
116
  $fault = "client";
@@ -111,6 +123,31 @@ export class ConflictException extends __BaseException {
111
123
  Object.setPrototypeOf(this, ConflictException.prototype);
112
124
  }
113
125
  }
126
+ export class InternalServerException extends __BaseException {
127
+ name = "InternalServerException";
128
+ $fault = "server";
129
+ $retryable = {};
130
+ constructor(opts) {
131
+ super({
132
+ name: "InternalServerException",
133
+ $fault: "server",
134
+ ...opts,
135
+ });
136
+ Object.setPrototypeOf(this, InternalServerException.prototype);
137
+ }
138
+ }
139
+ export class ServiceQuotaExceededException extends __BaseException {
140
+ name = "ServiceQuotaExceededException";
141
+ $fault = "client";
142
+ constructor(opts) {
143
+ super({
144
+ name: "ServiceQuotaExceededException",
145
+ $fault: "client",
146
+ ...opts,
147
+ });
148
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
149
+ }
150
+ }
114
151
  export class ResourceInUseException extends __BaseException {
115
152
  name = "ResourceInUseException";
116
153
  $fault = "client";
@@ -159,18 +196,6 @@ export class InvalidArgsException extends __BaseException {
159
196
  Object.setPrototypeOf(this, InvalidArgsException.prototype);
160
197
  }
161
198
  }
162
- export class ValidationException extends __BaseException {
163
- name = "ValidationException";
164
- $fault = "client";
165
- constructor(opts) {
166
- super({
167
- name: "ValidationException",
168
- $fault: "client",
169
- ...opts,
170
- });
171
- Object.setPrototypeOf(this, ValidationException.prototype);
172
- }
173
- }
174
199
  export class InvalidDomainValidationOptionsException extends __BaseException {
175
200
  name = "InvalidDomainValidationOptionsException";
176
201
  $fault = "client";
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ACMClient } from "../ACMClient";
3
+ import { ListAcmeAccountsCommand, } from "../commands/ListAcmeAccountsCommand";
4
+ export const paginateListAcmeAccounts = createPaginator(ACMClient, ListAcmeAccountsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ACMClient } from "../ACMClient";
3
+ import { ListAcmeDomainValidationsCommand, } from "../commands/ListAcmeDomainValidationsCommand";
4
+ export const paginateListAcmeDomainValidations = createPaginator(ACMClient, ListAcmeDomainValidationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ACMClient } from "../ACMClient";
3
+ import { ListAcmeEndpointsCommand, } from "../commands/ListAcmeEndpointsCommand";
4
+ export const paginateListAcmeEndpoints = createPaginator(ACMClient, ListAcmeEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ACMClient } from "../ACMClient";
3
+ import { ListAcmeExternalAccountBindingsCommand, } from "../commands/ListAcmeExternalAccountBindingsCommand";
4
+ export const paginateListAcmeExternalAccountBindings = createPaginator(ACMClient, ListAcmeExternalAccountBindingsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,3 +1,7 @@
1
1
  export * from "./Interfaces";
2
+ export * from "./ListAcmeAccountsPaginator";
3
+ export * from "./ListAcmeDomainValidationsPaginator";
4
+ export * from "./ListAcmeEndpointsPaginator";
5
+ export * from "./ListAcmeExternalAccountBindingsPaginator";
2
6
  export * from "./ListCertificatesPaginator";
3
7
  export * from "./SearchCertificatesPaginator";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "CertificateManager",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "ACM",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,