@aws-sdk/client-pca-connector-ad 3.403.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 (199) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +407 -0
  3. package/dist-cjs/PcaConnectorAd.js +61 -0
  4. package/dist-cjs/PcaConnectorAdClient.js +43 -0
  5. package/dist-cjs/commands/CreateConnectorCommand.js +46 -0
  6. package/dist-cjs/commands/CreateDirectoryRegistrationCommand.js +46 -0
  7. package/dist-cjs/commands/CreateServicePrincipalNameCommand.js +46 -0
  8. package/dist-cjs/commands/CreateTemplateCommand.js +46 -0
  9. package/dist-cjs/commands/CreateTemplateGroupAccessControlEntryCommand.js +46 -0
  10. package/dist-cjs/commands/DeleteConnectorCommand.js +46 -0
  11. package/dist-cjs/commands/DeleteDirectoryRegistrationCommand.js +46 -0
  12. package/dist-cjs/commands/DeleteServicePrincipalNameCommand.js +46 -0
  13. package/dist-cjs/commands/DeleteTemplateCommand.js +46 -0
  14. package/dist-cjs/commands/DeleteTemplateGroupAccessControlEntryCommand.js +46 -0
  15. package/dist-cjs/commands/GetConnectorCommand.js +46 -0
  16. package/dist-cjs/commands/GetDirectoryRegistrationCommand.js +46 -0
  17. package/dist-cjs/commands/GetServicePrincipalNameCommand.js +46 -0
  18. package/dist-cjs/commands/GetTemplateCommand.js +46 -0
  19. package/dist-cjs/commands/GetTemplateGroupAccessControlEntryCommand.js +46 -0
  20. package/dist-cjs/commands/ListConnectorsCommand.js +46 -0
  21. package/dist-cjs/commands/ListDirectoryRegistrationsCommand.js +46 -0
  22. package/dist-cjs/commands/ListServicePrincipalNamesCommand.js +46 -0
  23. package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
  24. package/dist-cjs/commands/ListTemplateGroupAccessControlEntriesCommand.js +46 -0
  25. package/dist-cjs/commands/ListTemplatesCommand.js +46 -0
  26. package/dist-cjs/commands/TagResourceCommand.js +46 -0
  27. package/dist-cjs/commands/UntagResourceCommand.js +46 -0
  28. package/dist-cjs/commands/UpdateTemplateCommand.js +46 -0
  29. package/dist-cjs/commands/UpdateTemplateGroupAccessControlEntryCommand.js +46 -0
  30. package/dist-cjs/commands/index.js +28 -0
  31. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  32. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  33. package/dist-cjs/endpoint/ruleset.js +7 -0
  34. package/dist-cjs/extensionConfiguration.js +2 -0
  35. package/dist-cjs/index.js +11 -0
  36. package/dist-cjs/models/PcaConnectorAdServiceException.js +12 -0
  37. package/dist-cjs/models/index.js +4 -0
  38. package/dist-cjs/models/models_0.js +324 -0
  39. package/dist-cjs/pagination/Interfaces.js +2 -0
  40. package/dist-cjs/pagination/ListConnectorsPaginator.js +29 -0
  41. package/dist-cjs/pagination/ListDirectoryRegistrationsPaginator.js +29 -0
  42. package/dist-cjs/pagination/ListServicePrincipalNamesPaginator.js +29 -0
  43. package/dist-cjs/pagination/ListTemplateGroupAccessControlEntriesPaginator.js +29 -0
  44. package/dist-cjs/pagination/ListTemplatesPaginator.js +29 -0
  45. package/dist-cjs/pagination/index.js +9 -0
  46. package/dist-cjs/protocols/Aws_restJson1.js +1985 -0
  47. package/dist-cjs/runtimeConfig.browser.js +39 -0
  48. package/dist-cjs/runtimeConfig.js +48 -0
  49. package/dist-cjs/runtimeConfig.native.js +15 -0
  50. package/dist-cjs/runtimeConfig.shared.js +22 -0
  51. package/dist-cjs/runtimeExtensions.js +16 -0
  52. package/dist-es/PcaConnectorAd.js +57 -0
  53. package/dist-es/PcaConnectorAdClient.js +39 -0
  54. package/dist-es/commands/CreateConnectorCommand.js +42 -0
  55. package/dist-es/commands/CreateDirectoryRegistrationCommand.js +42 -0
  56. package/dist-es/commands/CreateServicePrincipalNameCommand.js +42 -0
  57. package/dist-es/commands/CreateTemplateCommand.js +42 -0
  58. package/dist-es/commands/CreateTemplateGroupAccessControlEntryCommand.js +42 -0
  59. package/dist-es/commands/DeleteConnectorCommand.js +42 -0
  60. package/dist-es/commands/DeleteDirectoryRegistrationCommand.js +42 -0
  61. package/dist-es/commands/DeleteServicePrincipalNameCommand.js +42 -0
  62. package/dist-es/commands/DeleteTemplateCommand.js +42 -0
  63. package/dist-es/commands/DeleteTemplateGroupAccessControlEntryCommand.js +42 -0
  64. package/dist-es/commands/GetConnectorCommand.js +42 -0
  65. package/dist-es/commands/GetDirectoryRegistrationCommand.js +42 -0
  66. package/dist-es/commands/GetServicePrincipalNameCommand.js +42 -0
  67. package/dist-es/commands/GetTemplateCommand.js +42 -0
  68. package/dist-es/commands/GetTemplateGroupAccessControlEntryCommand.js +42 -0
  69. package/dist-es/commands/ListConnectorsCommand.js +42 -0
  70. package/dist-es/commands/ListDirectoryRegistrationsCommand.js +42 -0
  71. package/dist-es/commands/ListServicePrincipalNamesCommand.js +42 -0
  72. package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
  73. package/dist-es/commands/ListTemplateGroupAccessControlEntriesCommand.js +42 -0
  74. package/dist-es/commands/ListTemplatesCommand.js +42 -0
  75. package/dist-es/commands/TagResourceCommand.js +42 -0
  76. package/dist-es/commands/UntagResourceCommand.js +42 -0
  77. package/dist-es/commands/UpdateTemplateCommand.js +42 -0
  78. package/dist-es/commands/UpdateTemplateGroupAccessControlEntryCommand.js +42 -0
  79. package/dist-es/commands/index.js +25 -0
  80. package/dist-es/endpoint/EndpointParameters.js +8 -0
  81. package/dist-es/endpoint/endpointResolver.js +8 -0
  82. package/dist-es/endpoint/ruleset.js +4 -0
  83. package/dist-es/extensionConfiguration.js +1 -0
  84. package/dist-es/index.js +6 -0
  85. package/dist-es/models/PcaConnectorAdServiceException.js +8 -0
  86. package/dist-es/models/index.js +1 -0
  87. package/dist-es/models/models_0.js +314 -0
  88. package/dist-es/pagination/Interfaces.js +1 -0
  89. package/dist-es/pagination/ListConnectorsPaginator.js +25 -0
  90. package/dist-es/pagination/ListDirectoryRegistrationsPaginator.js +25 -0
  91. package/dist-es/pagination/ListServicePrincipalNamesPaginator.js +25 -0
  92. package/dist-es/pagination/ListTemplateGroupAccessControlEntriesPaginator.js +25 -0
  93. package/dist-es/pagination/ListTemplatesPaginator.js +25 -0
  94. package/dist-es/pagination/index.js +6 -0
  95. package/dist-es/protocols/Aws_restJson1.js +1932 -0
  96. package/dist-es/runtimeConfig.browser.js +34 -0
  97. package/dist-es/runtimeConfig.js +43 -0
  98. package/dist-es/runtimeConfig.native.js +11 -0
  99. package/dist-es/runtimeConfig.shared.js +18 -0
  100. package/dist-es/runtimeExtensions.js +12 -0
  101. package/dist-types/PcaConnectorAd.d.ts +187 -0
  102. package/dist-types/PcaConnectorAdClient.d.ts +194 -0
  103. package/dist-types/commands/CreateConnectorCommand.d.ts +113 -0
  104. package/dist-types/commands/CreateDirectoryRegistrationCommand.d.ts +104 -0
  105. package/dist-types/commands/CreateServicePrincipalNameCommand.d.ts +101 -0
  106. package/dist-types/commands/CreateTemplateCommand.d.ts +344 -0
  107. package/dist-types/commands/CreateTemplateGroupAccessControlEntryCommand.d.ts +108 -0
  108. package/dist-types/commands/DeleteConnectorCommand.d.ts +101 -0
  109. package/dist-types/commands/DeleteDirectoryRegistrationCommand.d.ts +94 -0
  110. package/dist-types/commands/DeleteServicePrincipalNameCommand.d.ts +95 -0
  111. package/dist-types/commands/DeleteTemplateCommand.d.ts +98 -0
  112. package/dist-types/commands/DeleteTemplateGroupAccessControlEntryCommand.d.ts +98 -0
  113. package/dist-types/commands/GetConnectorCommand.d.ts +110 -0
  114. package/dist-types/commands/GetDirectoryRegistrationCommand.d.ts +102 -0
  115. package/dist-types/commands/GetServicePrincipalNameCommand.d.ts +104 -0
  116. package/dist-types/commands/GetTemplateCommand.d.ts +345 -0
  117. package/dist-types/commands/GetTemplateGroupAccessControlEntryCommand.d.ts +106 -0
  118. package/dist-types/commands/ListConnectorsCommand.d.ts +109 -0
  119. package/dist-types/commands/ListDirectoryRegistrationsCommand.d.ts +103 -0
  120. package/dist-types/commands/ListServicePrincipalNamesCommand.d.ts +108 -0
  121. package/dist-types/commands/ListTagsForResourceCommand.d.ts +97 -0
  122. package/dist-types/commands/ListTemplateGroupAccessControlEntriesCommand.d.ts +110 -0
  123. package/dist-types/commands/ListTemplatesCommand.d.ts +349 -0
  124. package/dist-types/commands/TagResourceCommand.d.ts +96 -0
  125. package/dist-types/commands/UntagResourceCommand.d.ts +96 -0
  126. package/dist-types/commands/UpdateTemplateCommand.d.ts +334 -0
  127. package/dist-types/commands/UpdateTemplateGroupAccessControlEntryCommand.d.ts +103 -0
  128. package/dist-types/commands/index.d.ts +25 -0
  129. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  130. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  131. package/dist-types/endpoint/ruleset.d.ts +2 -0
  132. package/dist-types/extensionConfiguration.d.ts +6 -0
  133. package/dist-types/index.d.ts +14 -0
  134. package/dist-types/models/PcaConnectorAdServiceException.d.ts +13 -0
  135. package/dist-types/models/index.d.ts +1 -0
  136. package/dist-types/models/models_0.d.ts +2690 -0
  137. package/dist-types/pagination/Interfaces.d.ts +8 -0
  138. package/dist-types/pagination/ListConnectorsPaginator.d.ts +7 -0
  139. package/dist-types/pagination/ListDirectoryRegistrationsPaginator.d.ts +7 -0
  140. package/dist-types/pagination/ListServicePrincipalNamesPaginator.d.ts +7 -0
  141. package/dist-types/pagination/ListTemplateGroupAccessControlEntriesPaginator.d.ts +7 -0
  142. package/dist-types/pagination/ListTemplatesPaginator.d.ts +7 -0
  143. package/dist-types/pagination/index.d.ts +6 -0
  144. package/dist-types/protocols/Aws_restJson1.d.ts +227 -0
  145. package/dist-types/runtimeConfig.browser.d.ts +43 -0
  146. package/dist-types/runtimeConfig.d.ts +43 -0
  147. package/dist-types/runtimeConfig.native.d.ts +42 -0
  148. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  149. package/dist-types/runtimeExtensions.d.ts +17 -0
  150. package/dist-types/ts3.4/PcaConnectorAd.d.ts +462 -0
  151. package/dist-types/ts3.4/PcaConnectorAdClient.d.ts +269 -0
  152. package/dist-types/ts3.4/commands/CreateConnectorCommand.d.ts +38 -0
  153. package/dist-types/ts3.4/commands/CreateDirectoryRegistrationCommand.d.ts +42 -0
  154. package/dist-types/ts3.4/commands/CreateServicePrincipalNameCommand.d.ts +38 -0
  155. package/dist-types/ts3.4/commands/CreateTemplateCommand.d.ts +38 -0
  156. package/dist-types/ts3.4/commands/CreateTemplateGroupAccessControlEntryCommand.d.ts +38 -0
  157. package/dist-types/ts3.4/commands/DeleteConnectorCommand.d.ts +33 -0
  158. package/dist-types/ts3.4/commands/DeleteDirectoryRegistrationCommand.d.ts +38 -0
  159. package/dist-types/ts3.4/commands/DeleteServicePrincipalNameCommand.d.ts +38 -0
  160. package/dist-types/ts3.4/commands/DeleteTemplateCommand.d.ts +33 -0
  161. package/dist-types/ts3.4/commands/DeleteTemplateGroupAccessControlEntryCommand.d.ts +38 -0
  162. package/dist-types/ts3.4/commands/GetConnectorCommand.d.ts +35 -0
  163. package/dist-types/ts3.4/commands/GetDirectoryRegistrationCommand.d.ts +42 -0
  164. package/dist-types/ts3.4/commands/GetServicePrincipalNameCommand.d.ts +42 -0
  165. package/dist-types/ts3.4/commands/GetTemplateCommand.d.ts +35 -0
  166. package/dist-types/ts3.4/commands/GetTemplateGroupAccessControlEntryCommand.d.ts +42 -0
  167. package/dist-types/ts3.4/commands/ListConnectorsCommand.d.ts +38 -0
  168. package/dist-types/ts3.4/commands/ListDirectoryRegistrationsCommand.d.ts +42 -0
  169. package/dist-types/ts3.4/commands/ListServicePrincipalNamesCommand.d.ts +42 -0
  170. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  171. package/dist-types/ts3.4/commands/ListTemplateGroupAccessControlEntriesCommand.d.ts +42 -0
  172. package/dist-types/ts3.4/commands/ListTemplatesCommand.d.ts +38 -0
  173. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +33 -0
  174. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +33 -0
  175. package/dist-types/ts3.4/commands/UpdateTemplateCommand.d.ts +33 -0
  176. package/dist-types/ts3.4/commands/UpdateTemplateGroupAccessControlEntryCommand.d.ts +38 -0
  177. package/dist-types/ts3.4/commands/index.d.ts +25 -0
  178. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  179. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  180. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  181. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -0
  182. package/dist-types/ts3.4/index.d.ts +7 -0
  183. package/dist-types/ts3.4/models/PcaConnectorAdServiceException.d.ts +8 -0
  184. package/dist-types/ts3.4/models/index.d.ts +1 -0
  185. package/dist-types/ts3.4/models/models_0.d.ts +812 -0
  186. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  187. package/dist-types/ts3.4/pagination/ListConnectorsPaginator.d.ts +11 -0
  188. package/dist-types/ts3.4/pagination/ListDirectoryRegistrationsPaginator.d.ts +11 -0
  189. package/dist-types/ts3.4/pagination/ListServicePrincipalNamesPaginator.d.ts +11 -0
  190. package/dist-types/ts3.4/pagination/ListTemplateGroupAccessControlEntriesPaginator.d.ts +11 -0
  191. package/dist-types/ts3.4/pagination/ListTemplatesPaginator.d.ts +11 -0
  192. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  193. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +305 -0
  194. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +90 -0
  195. package/dist-types/ts3.4/runtimeConfig.d.ts +90 -0
  196. package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
  197. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  198. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  199. package/package.json +101 -0
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { de_UpdateTemplateGroupAccessControlEntryCommand, se_UpdateTemplateGroupAccessControlEntryCommand, } from "../protocols/Aws_restJson1";
5
+ export { $Command };
6
+ export class UpdateTemplateGroupAccessControlEntryCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateTemplateGroupAccessControlEntryCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "PcaConnectorAdClient";
25
+ const commandName = "UpdateTemplateGroupAccessControlEntryCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_UpdateTemplateGroupAccessControlEntryCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_UpdateTemplateGroupAccessControlEntryCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,25 @@
1
+ export * from "./CreateConnectorCommand";
2
+ export * from "./CreateDirectoryRegistrationCommand";
3
+ export * from "./CreateServicePrincipalNameCommand";
4
+ export * from "./CreateTemplateCommand";
5
+ export * from "./CreateTemplateGroupAccessControlEntryCommand";
6
+ export * from "./DeleteConnectorCommand";
7
+ export * from "./DeleteDirectoryRegistrationCommand";
8
+ export * from "./DeleteServicePrincipalNameCommand";
9
+ export * from "./DeleteTemplateCommand";
10
+ export * from "./DeleteTemplateGroupAccessControlEntryCommand";
11
+ export * from "./GetConnectorCommand";
12
+ export * from "./GetDirectoryRegistrationCommand";
13
+ export * from "./GetServicePrincipalNameCommand";
14
+ export * from "./GetTemplateCommand";
15
+ export * from "./GetTemplateGroupAccessControlEntryCommand";
16
+ export * from "./ListConnectorsCommand";
17
+ export * from "./ListDirectoryRegistrationsCommand";
18
+ export * from "./ListServicePrincipalNamesCommand";
19
+ export * from "./ListTagsForResourceCommand";
20
+ export * from "./ListTemplateGroupAccessControlEntriesCommand";
21
+ export * from "./ListTemplatesCommand";
22
+ export * from "./TagResourceCommand";
23
+ export * from "./UntagResourceCommand";
24
+ export * from "./UpdateTemplateCommand";
25
+ export * from "./UpdateTemplateGroupAccessControlEntryCommand";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "pca-connector-ad",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@aws-sdk/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };
@@ -0,0 +1,4 @@
1
+ const q = "required", r = "fn", s = "argv", t = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pca-connector-ad-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pca-connector-ad-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://pca-connector-ad.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://pca-connector-ad.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from "./PcaConnectorAdClient";
2
+ export * from "./PcaConnectorAd";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models";
6
+ export { PcaConnectorAdServiceException } from "./models/PcaConnectorAdServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class PcaConnectorAdServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, PcaConnectorAdServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,314 @@
1
+ import { PcaConnectorAdServiceException as __BaseException } from "./PcaConnectorAdServiceException";
2
+ export const AccessRight = {
3
+ ALLOW: "ALLOW",
4
+ DENY: "DENY",
5
+ };
6
+ export class AccessDeniedException extends __BaseException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ export const ApplicationPolicyType = {
20
+ ALL_APPLICATION_POLICIES: "ALL_APPLICATION_POLICIES",
21
+ ANY_PURPOSE: "ANY_PURPOSE",
22
+ ATTESTATION_IDENTITY_KEY_CERTIFICATE: "ATTESTATION_IDENTITY_KEY_CERTIFICATE",
23
+ CERTIFICATE_REQUEST_AGENT: "CERTIFICATE_REQUEST_AGENT",
24
+ CLIENT_AUTHENTICATION: "CLIENT_AUTHENTICATION",
25
+ CODE_SIGNING: "CODE_SIGNING",
26
+ CTL_USAGE: "CTL_USAGE",
27
+ DIGITAL_RIGHTS: "DIGITAL_RIGHTS",
28
+ DIRECTORY_SERVICE_EMAIL_REPLICATION: "DIRECTORY_SERVICE_EMAIL_REPLICATION",
29
+ DISALLOWED_LIST: "DISALLOWED_LIST",
30
+ DNS_SERVER_TRUST: "DNS_SERVER_TRUST",
31
+ DOCUMENT_ENCRYPTION: "DOCUMENT_ENCRYPTION",
32
+ DOCUMENT_SIGNING: "DOCUMENT_SIGNING",
33
+ DYNAMIC_CODE_GENERATOR: "DYNAMIC_CODE_GENERATOR",
34
+ EARLY_LAUNCH_ANTIMALWARE_DRIVER: "EARLY_LAUNCH_ANTIMALWARE_DRIVER",
35
+ EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION: "EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION",
36
+ ENCLAVE: "ENCLAVE",
37
+ ENCRYPTING_FILE_SYSTEM: "ENCRYPTING_FILE_SYSTEM",
38
+ ENDORSEMENT_KEY_CERTIFICATE: "ENDORSEMENT_KEY_CERTIFICATE",
39
+ FILE_RECOVERY: "FILE_RECOVERY",
40
+ HAL_EXTENSION: "HAL_EXTENSION",
41
+ IP_SECURITY_END_SYSTEM: "IP_SECURITY_END_SYSTEM",
42
+ IP_SECURITY_IKE_INTERMEDIATE: "IP_SECURITY_IKE_INTERMEDIATE",
43
+ IP_SECURITY_TUNNEL_TERMINATION: "IP_SECURITY_TUNNEL_TERMINATION",
44
+ IP_SECURITY_USER: "IP_SECURITY_USER",
45
+ ISOLATED_USER_MODE: "ISOLATED_USER_MODE",
46
+ KDC_AUTHENTICATION: "KDC_AUTHENTICATION",
47
+ KERNEL_MODE_CODE_SIGNING: "KERNEL_MODE_CODE_SIGNING",
48
+ KEY_PACK_LICENSES: "KEY_PACK_LICENSES",
49
+ KEY_RECOVERY: "KEY_RECOVERY",
50
+ KEY_RECOVERY_AGENT: "KEY_RECOVERY_AGENT",
51
+ LICENSE_SERVER_VERIFICATION: "LICENSE_SERVER_VERIFICATION",
52
+ LIFETIME_SIGNING: "LIFETIME_SIGNING",
53
+ MICROSOFT_PUBLISHER: "MICROSOFT_PUBLISHER",
54
+ MICROSOFT_TIME_STAMPING: "MICROSOFT_TIME_STAMPING",
55
+ MICROSOFT_TRUST_LIST_SIGNING: "MICROSOFT_TRUST_LIST_SIGNING",
56
+ OCSP_SIGNING: "OCSP_SIGNING",
57
+ OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION: "OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION",
58
+ PLATFORM_CERTIFICATE: "PLATFORM_CERTIFICATE",
59
+ PREVIEW_BUILD_SIGNING: "PREVIEW_BUILD_SIGNING",
60
+ PRIVATE_KEY_ARCHIVAL: "PRIVATE_KEY_ARCHIVAL",
61
+ PROTECTED_PROCESS_LIGHT_VERIFICATION: "PROTECTED_PROCESS_LIGHT_VERIFICATION",
62
+ PROTECTED_PROCESS_VERIFICATION: "PROTECTED_PROCESS_VERIFICATION",
63
+ QUALIFIED_SUBORDINATION: "QUALIFIED_SUBORDINATION",
64
+ REVOKED_LIST_SIGNER: "REVOKED_LIST_SIGNER",
65
+ ROOT_LIST_SIGNER: "ROOT_LIST_SIGNER",
66
+ ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION: "ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION",
67
+ ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION: "ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION",
68
+ ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL: "ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL",
69
+ SECURE_EMAIL: "SECURE_EMAIL",
70
+ SERVER_AUTHENTICATION: "SERVER_AUTHENTICATION",
71
+ SMART_CARD_LOGIN: "SMART_CARD_LOGIN",
72
+ SPC_ENCRYPTED_DIGEST_RETRY_COUNT: "SPC_ENCRYPTED_DIGEST_RETRY_COUNT",
73
+ SPC_RELAXED_PE_MARKER_CHECK: "SPC_RELAXED_PE_MARKER_CHECK",
74
+ TIME_STAMPING: "TIME_STAMPING",
75
+ WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION: "WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION",
76
+ WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION: "WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION",
77
+ WINDOWS_HARDWARE_DRIVER_VERIFICATION: "WINDOWS_HARDWARE_DRIVER_VERIFICATION",
78
+ WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION: "WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION",
79
+ WINDOWS_KITS_COMPONENT: "WINDOWS_KITS_COMPONENT",
80
+ WINDOWS_RT_VERIFICATION: "WINDOWS_RT_VERIFICATION",
81
+ WINDOWS_SOFTWARE_EXTENSION_VERIFICATION: "WINDOWS_SOFTWARE_EXTENSION_VERIFICATION",
82
+ WINDOWS_STORE: "WINDOWS_STORE",
83
+ WINDOWS_SYSTEM_COMPONENT_VERIFICATION: "WINDOWS_SYSTEM_COMPONENT_VERIFICATION",
84
+ WINDOWS_TCB_COMPONENT: "WINDOWS_TCB_COMPONENT",
85
+ WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT: "WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT",
86
+ WINDOWS_UPDATE: "WINDOWS_UPDATE",
87
+ };
88
+ export var ApplicationPolicy;
89
+ (function (ApplicationPolicy) {
90
+ ApplicationPolicy.visit = (value, visitor) => {
91
+ if (value.PolicyType !== undefined)
92
+ return visitor.PolicyType(value.PolicyType);
93
+ if (value.PolicyObjectIdentifier !== undefined)
94
+ return visitor.PolicyObjectIdentifier(value.PolicyObjectIdentifier);
95
+ return visitor._(value.$unknown[0], value.$unknown[1]);
96
+ };
97
+ })(ApplicationPolicy || (ApplicationPolicy = {}));
98
+ export const ValidityPeriodType = {
99
+ DAYS: "DAYS",
100
+ HOURS: "HOURS",
101
+ MONTHS: "MONTHS",
102
+ WEEKS: "WEEKS",
103
+ YEARS: "YEARS",
104
+ };
105
+ export const ClientCompatibilityV2 = {
106
+ WINDOWS_SERVER_2003: "WINDOWS_SERVER_2003",
107
+ WINDOWS_SERVER_2008: "WINDOWS_SERVER_2008",
108
+ WINDOWS_SERVER_2008_R2: "WINDOWS_SERVER_2008_R2",
109
+ WINDOWS_SERVER_2012: "WINDOWS_SERVER_2012",
110
+ WINDOWS_SERVER_2012_R2: "WINDOWS_SERVER_2012_R2",
111
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016",
112
+ };
113
+ export const ClientCompatibilityV3 = {
114
+ WINDOWS_SERVER_2008: "WINDOWS_SERVER_2008",
115
+ WINDOWS_SERVER_2008_R2: "WINDOWS_SERVER_2008_R2",
116
+ WINDOWS_SERVER_2012: "WINDOWS_SERVER_2012",
117
+ WINDOWS_SERVER_2012_R2: "WINDOWS_SERVER_2012_R2",
118
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016",
119
+ };
120
+ export const ClientCompatibilityV4 = {
121
+ WINDOWS_SERVER_2012: "WINDOWS_SERVER_2012",
122
+ WINDOWS_SERVER_2012_R2: "WINDOWS_SERVER_2012_R2",
123
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016",
124
+ };
125
+ export class ConflictException extends __BaseException {
126
+ constructor(opts) {
127
+ super({
128
+ name: "ConflictException",
129
+ $fault: "client",
130
+ ...opts,
131
+ });
132
+ this.name = "ConflictException";
133
+ this.$fault = "client";
134
+ Object.setPrototypeOf(this, ConflictException.prototype);
135
+ this.Message = opts.Message;
136
+ this.ResourceId = opts.ResourceId;
137
+ this.ResourceType = opts.ResourceType;
138
+ }
139
+ }
140
+ export const ConnectorStatus = {
141
+ ACTIVE: "ACTIVE",
142
+ CREATING: "CREATING",
143
+ DELETING: "DELETING",
144
+ FAILED: "FAILED",
145
+ };
146
+ export const ConnectorStatusReason = {
147
+ DIRECTORY_ACCESS_DENIED: "DIRECTORY_ACCESS_DENIED",
148
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
149
+ PRIVATECA_ACCESS_DENIED: "PRIVATECA_ACCESS_DENIED",
150
+ PRIVATECA_RESOURCE_NOT_FOUND: "PRIVATECA_RESOURCE_NOT_FOUND",
151
+ SECURITY_GROUP_NOT_IN_VPC: "SECURITY_GROUP_NOT_IN_VPC",
152
+ VPC_ACCESS_DENIED: "VPC_ACCESS_DENIED",
153
+ VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
154
+ VPC_RESOURCE_NOT_FOUND: "VPC_RESOURCE_NOT_FOUND",
155
+ };
156
+ export class InternalServerException extends __BaseException {
157
+ constructor(opts) {
158
+ super({
159
+ name: "InternalServerException",
160
+ $fault: "server",
161
+ ...opts,
162
+ });
163
+ this.name = "InternalServerException";
164
+ this.$fault = "server";
165
+ this.$retryable = {};
166
+ Object.setPrototypeOf(this, InternalServerException.prototype);
167
+ this.Message = opts.Message;
168
+ }
169
+ }
170
+ export class ResourceNotFoundException extends __BaseException {
171
+ constructor(opts) {
172
+ super({
173
+ name: "ResourceNotFoundException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ this.name = "ResourceNotFoundException";
178
+ this.$fault = "client";
179
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
180
+ this.Message = opts.Message;
181
+ this.ResourceId = opts.ResourceId;
182
+ this.ResourceType = opts.ResourceType;
183
+ }
184
+ }
185
+ export class ServiceQuotaExceededException extends __BaseException {
186
+ constructor(opts) {
187
+ super({
188
+ name: "ServiceQuotaExceededException",
189
+ $fault: "client",
190
+ ...opts,
191
+ });
192
+ this.name = "ServiceQuotaExceededException";
193
+ this.$fault = "client";
194
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
195
+ this.Message = opts.Message;
196
+ this.ResourceId = opts.ResourceId;
197
+ this.ResourceType = opts.ResourceType;
198
+ this.ServiceCode = opts.ServiceCode;
199
+ this.QuotaCode = opts.QuotaCode;
200
+ }
201
+ }
202
+ export class ThrottlingException extends __BaseException {
203
+ constructor(opts) {
204
+ super({
205
+ name: "ThrottlingException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ this.name = "ThrottlingException";
210
+ this.$fault = "client";
211
+ this.$retryable = {
212
+ throttling: true,
213
+ };
214
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
215
+ this.Message = opts.Message;
216
+ this.ServiceCode = opts.ServiceCode;
217
+ this.QuotaCode = opts.QuotaCode;
218
+ }
219
+ }
220
+ export const ValidationExceptionReason = {
221
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
222
+ INVALID_PERMISSION: "INVALID_PERMISSION",
223
+ INVALID_STATE: "INVALID_STATE",
224
+ MISMATCHED_CONNECTOR: "MISMATCHED_CONNECTOR",
225
+ MISMATCHED_VPC: "MISMATCHED_VPC",
226
+ NO_CLIENT_TOKEN: "NO_CLIENT_TOKEN",
227
+ OTHER: "OTHER",
228
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
229
+ };
230
+ export class ValidationException extends __BaseException {
231
+ constructor(opts) {
232
+ super({
233
+ name: "ValidationException",
234
+ $fault: "client",
235
+ ...opts,
236
+ });
237
+ this.name = "ValidationException";
238
+ this.$fault = "client";
239
+ Object.setPrototypeOf(this, ValidationException.prototype);
240
+ this.Message = opts.Message;
241
+ this.Reason = opts.Reason;
242
+ }
243
+ }
244
+ export const KeySpec = {
245
+ KEY_EXCHANGE: "KEY_EXCHANGE",
246
+ SIGNATURE: "SIGNATURE",
247
+ };
248
+ export const HashAlgorithm = {
249
+ SHA256: "SHA256",
250
+ SHA384: "SHA384",
251
+ SHA512: "SHA512",
252
+ };
253
+ export const PrivateKeyAlgorithm = {
254
+ ECDH_P256: "ECDH_P256",
255
+ ECDH_P384: "ECDH_P384",
256
+ ECDH_P521: "ECDH_P521",
257
+ RSA: "RSA",
258
+ };
259
+ export const KeyUsagePropertyType = {
260
+ ALL: "ALL",
261
+ };
262
+ export var KeyUsageProperty;
263
+ (function (KeyUsageProperty) {
264
+ KeyUsageProperty.visit = (value, visitor) => {
265
+ if (value.PropertyType !== undefined)
266
+ return visitor.PropertyType(value.PropertyType);
267
+ if (value.PropertyFlags !== undefined)
268
+ return visitor.PropertyFlags(value.PropertyFlags);
269
+ return visitor._(value.$unknown[0], value.$unknown[1]);
270
+ };
271
+ })(KeyUsageProperty || (KeyUsageProperty = {}));
272
+ export var TemplateDefinition;
273
+ (function (TemplateDefinition) {
274
+ TemplateDefinition.visit = (value, visitor) => {
275
+ if (value.TemplateV2 !== undefined)
276
+ return visitor.TemplateV2(value.TemplateV2);
277
+ if (value.TemplateV3 !== undefined)
278
+ return visitor.TemplateV3(value.TemplateV3);
279
+ if (value.TemplateV4 !== undefined)
280
+ return visitor.TemplateV4(value.TemplateV4);
281
+ return visitor._(value.$unknown[0], value.$unknown[1]);
282
+ };
283
+ })(TemplateDefinition || (TemplateDefinition = {}));
284
+ export const DirectoryRegistrationStatus = {
285
+ ACTIVE: "ACTIVE",
286
+ CREATING: "CREATING",
287
+ DELETING: "DELETING",
288
+ FAILED: "FAILED",
289
+ };
290
+ export const DirectoryRegistrationStatusReason = {
291
+ DIRECTORY_ACCESS_DENIED: "DIRECTORY_ACCESS_DENIED",
292
+ DIRECTORY_NOT_ACTIVE: "DIRECTORY_NOT_ACTIVE",
293
+ DIRECTORY_NOT_REACHABLE: "DIRECTORY_NOT_REACHABLE",
294
+ DIRECTORY_RESOURCE_NOT_FOUND: "DIRECTORY_RESOURCE_NOT_FOUND",
295
+ DIRECTORY_TYPE_NOT_SUPPORTED: "DIRECTORY_TYPE_NOT_SUPPORTED",
296
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
297
+ };
298
+ export const ServicePrincipalNameStatus = {
299
+ ACTIVE: "ACTIVE",
300
+ CREATING: "CREATING",
301
+ DELETING: "DELETING",
302
+ FAILED: "FAILED",
303
+ };
304
+ export const ServicePrincipalNameStatusReason = {
305
+ DIRECTORY_ACCESS_DENIED: "DIRECTORY_ACCESS_DENIED",
306
+ DIRECTORY_NOT_REACHABLE: "DIRECTORY_NOT_REACHABLE",
307
+ DIRECTORY_RESOURCE_NOT_FOUND: "DIRECTORY_RESOURCE_NOT_FOUND",
308
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
309
+ SPN_EXISTS_ON_DIFFERENT_AD_OBJECT: "SPN_EXISTS_ON_DIFFERENT_AD_OBJECT",
310
+ };
311
+ export const TemplateStatus = {
312
+ ACTIVE: "ACTIVE",
313
+ DELETING: "DELETING",
314
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import { ListConnectorsCommand, } from "../commands/ListConnectorsCommand";
2
+ import { PcaConnectorAdClient } from "../PcaConnectorAdClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListConnectorsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListConnectors(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof PcaConnectorAdClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected PcaConnectorAd | PcaConnectorAdClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListDirectoryRegistrationsCommand, } from "../commands/ListDirectoryRegistrationsCommand";
2
+ import { PcaConnectorAdClient } from "../PcaConnectorAdClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListDirectoryRegistrationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListDirectoryRegistrations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof PcaConnectorAdClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected PcaConnectorAd | PcaConnectorAdClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListServicePrincipalNamesCommand, } from "../commands/ListServicePrincipalNamesCommand";
2
+ import { PcaConnectorAdClient } from "../PcaConnectorAdClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListServicePrincipalNamesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListServicePrincipalNames(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof PcaConnectorAdClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected PcaConnectorAd | PcaConnectorAdClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListTemplateGroupAccessControlEntriesCommand, } from "../commands/ListTemplateGroupAccessControlEntriesCommand";
2
+ import { PcaConnectorAdClient } from "../PcaConnectorAdClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListTemplateGroupAccessControlEntriesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListTemplateGroupAccessControlEntries(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof PcaConnectorAdClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected PcaConnectorAd | PcaConnectorAdClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,25 @@
1
+ import { ListTemplatesCommand, } from "../commands/ListTemplatesCommand";
2
+ import { PcaConnectorAdClient } from "../PcaConnectorAdClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListTemplatesCommand(input), ...args);
5
+ };
6
+ export async function* paginateListTemplates(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.NextToken = token;
12
+ input["MaxResults"] = config.pageSize;
13
+ if (config.client instanceof PcaConnectorAdClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected PcaConnectorAd | PcaConnectorAdClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.NextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListConnectorsPaginator";
3
+ export * from "./ListDirectoryRegistrationsPaginator";
4
+ export * from "./ListServicePrincipalNamesPaginator";
5
+ export * from "./ListTemplateGroupAccessControlEntriesPaginator";
6
+ export * from "./ListTemplatesPaginator";