@aws-sdk/client-pca-connector-ad 3.489.0 → 3.495.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/dist-cjs/PcaConnectorAd.js +1 -61
  2. package/dist-cjs/PcaConnectorAdClient.js +1 -43
  3. package/dist-cjs/commands/CreateConnectorCommand.js +1 -28
  4. package/dist-cjs/commands/CreateDirectoryRegistrationCommand.js +1 -28
  5. package/dist-cjs/commands/CreateServicePrincipalNameCommand.js +1 -28
  6. package/dist-cjs/commands/CreateTemplateCommand.js +1 -28
  7. package/dist-cjs/commands/CreateTemplateGroupAccessControlEntryCommand.js +1 -28
  8. package/dist-cjs/commands/DeleteConnectorCommand.js +1 -28
  9. package/dist-cjs/commands/DeleteDirectoryRegistrationCommand.js +1 -28
  10. package/dist-cjs/commands/DeleteServicePrincipalNameCommand.js +1 -28
  11. package/dist-cjs/commands/DeleteTemplateCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteTemplateGroupAccessControlEntryCommand.js +1 -28
  13. package/dist-cjs/commands/GetConnectorCommand.js +1 -28
  14. package/dist-cjs/commands/GetDirectoryRegistrationCommand.js +1 -28
  15. package/dist-cjs/commands/GetServicePrincipalNameCommand.js +1 -28
  16. package/dist-cjs/commands/GetTemplateCommand.js +1 -28
  17. package/dist-cjs/commands/GetTemplateGroupAccessControlEntryCommand.js +1 -28
  18. package/dist-cjs/commands/ListConnectorsCommand.js +1 -28
  19. package/dist-cjs/commands/ListDirectoryRegistrationsCommand.js +1 -28
  20. package/dist-cjs/commands/ListServicePrincipalNamesCommand.js +1 -28
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  22. package/dist-cjs/commands/ListTemplateGroupAccessControlEntriesCommand.js +1 -28
  23. package/dist-cjs/commands/ListTemplatesCommand.js +1 -28
  24. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  25. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  26. package/dist-cjs/commands/UpdateTemplateCommand.js +1 -28
  27. package/dist-cjs/commands/UpdateTemplateGroupAccessControlEntryCommand.js +1 -28
  28. package/dist-cjs/commands/index.js +1 -28
  29. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  30. package/dist-cjs/extensionConfiguration.js +1 -2
  31. package/dist-cjs/index.js +2836 -11
  32. package/dist-cjs/models/PcaConnectorAdServiceException.js +1 -12
  33. package/dist-cjs/models/index.js +1 -4
  34. package/dist-cjs/models/models_0.js +1 -324
  35. package/dist-cjs/pagination/Interfaces.js +1 -2
  36. package/dist-cjs/pagination/ListConnectorsPaginator.js +1 -7
  37. package/dist-cjs/pagination/ListDirectoryRegistrationsPaginator.js +1 -7
  38. package/dist-cjs/pagination/ListServicePrincipalNamesPaginator.js +1 -7
  39. package/dist-cjs/pagination/ListTemplateGroupAccessControlEntriesPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListTemplatesPaginator.js +1 -7
  41. package/dist-cjs/pagination/index.js +1 -9
  42. package/dist-cjs/protocols/Aws_restJson1.js +1 -1799
  43. package/dist-cjs/runtimeExtensions.js +1 -22
  44. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2837 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PcaConnectorAdServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./PcaConnectorAdClient"), exports);
6
- tslib_1.__exportStar(require("./PcaConnectorAd"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var PcaConnectorAdServiceException_1 = require("./models/PcaConnectorAdServiceException");
12
- Object.defineProperty(exports, "PcaConnectorAdServiceException", { enumerable: true, get: function () { return PcaConnectorAdServiceException_1.PcaConnectorAdServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AccessRight: () => AccessRight,
26
+ ApplicationPolicy: () => ApplicationPolicy,
27
+ ApplicationPolicyType: () => ApplicationPolicyType,
28
+ ClientCompatibilityV2: () => ClientCompatibilityV2,
29
+ ClientCompatibilityV3: () => ClientCompatibilityV3,
30
+ ClientCompatibilityV4: () => ClientCompatibilityV4,
31
+ ConflictException: () => ConflictException,
32
+ ConnectorStatus: () => ConnectorStatus,
33
+ ConnectorStatusReason: () => ConnectorStatusReason,
34
+ CreateConnectorCommand: () => CreateConnectorCommand,
35
+ CreateDirectoryRegistrationCommand: () => CreateDirectoryRegistrationCommand,
36
+ CreateServicePrincipalNameCommand: () => CreateServicePrincipalNameCommand,
37
+ CreateTemplateCommand: () => CreateTemplateCommand,
38
+ CreateTemplateGroupAccessControlEntryCommand: () => CreateTemplateGroupAccessControlEntryCommand,
39
+ DeleteConnectorCommand: () => DeleteConnectorCommand,
40
+ DeleteDirectoryRegistrationCommand: () => DeleteDirectoryRegistrationCommand,
41
+ DeleteServicePrincipalNameCommand: () => DeleteServicePrincipalNameCommand,
42
+ DeleteTemplateCommand: () => DeleteTemplateCommand,
43
+ DeleteTemplateGroupAccessControlEntryCommand: () => DeleteTemplateGroupAccessControlEntryCommand,
44
+ DirectoryRegistrationStatus: () => DirectoryRegistrationStatus,
45
+ DirectoryRegistrationStatusReason: () => DirectoryRegistrationStatusReason,
46
+ GetConnectorCommand: () => GetConnectorCommand,
47
+ GetDirectoryRegistrationCommand: () => GetDirectoryRegistrationCommand,
48
+ GetServicePrincipalNameCommand: () => GetServicePrincipalNameCommand,
49
+ GetTemplateCommand: () => GetTemplateCommand,
50
+ GetTemplateGroupAccessControlEntryCommand: () => GetTemplateGroupAccessControlEntryCommand,
51
+ HashAlgorithm: () => HashAlgorithm,
52
+ InternalServerException: () => InternalServerException,
53
+ KeySpec: () => KeySpec,
54
+ KeyUsageProperty: () => KeyUsageProperty,
55
+ KeyUsagePropertyType: () => KeyUsagePropertyType,
56
+ ListConnectorsCommand: () => ListConnectorsCommand,
57
+ ListDirectoryRegistrationsCommand: () => ListDirectoryRegistrationsCommand,
58
+ ListServicePrincipalNamesCommand: () => ListServicePrincipalNamesCommand,
59
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
60
+ ListTemplateGroupAccessControlEntriesCommand: () => ListTemplateGroupAccessControlEntriesCommand,
61
+ ListTemplatesCommand: () => ListTemplatesCommand,
62
+ PcaConnectorAd: () => PcaConnectorAd,
63
+ PcaConnectorAdClient: () => PcaConnectorAdClient,
64
+ PcaConnectorAdServiceException: () => PcaConnectorAdServiceException,
65
+ PrivateKeyAlgorithm: () => PrivateKeyAlgorithm,
66
+ ResourceNotFoundException: () => ResourceNotFoundException,
67
+ ServicePrincipalNameStatus: () => ServicePrincipalNameStatus,
68
+ ServicePrincipalNameStatusReason: () => ServicePrincipalNameStatusReason,
69
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
70
+ TagResourceCommand: () => TagResourceCommand,
71
+ TemplateDefinition: () => TemplateDefinition,
72
+ TemplateStatus: () => TemplateStatus,
73
+ ThrottlingException: () => ThrottlingException,
74
+ UntagResourceCommand: () => UntagResourceCommand,
75
+ UpdateTemplateCommand: () => UpdateTemplateCommand,
76
+ UpdateTemplateGroupAccessControlEntryCommand: () => UpdateTemplateGroupAccessControlEntryCommand,
77
+ ValidationException: () => ValidationException,
78
+ ValidationExceptionReason: () => ValidationExceptionReason,
79
+ ValidityPeriodType: () => ValidityPeriodType,
80
+ __Client: () => import_smithy_client.Client,
81
+ paginateListConnectors: () => paginateListConnectors,
82
+ paginateListDirectoryRegistrations: () => paginateListDirectoryRegistrations,
83
+ paginateListServicePrincipalNames: () => paginateListServicePrincipalNames,
84
+ paginateListTemplateGroupAccessControlEntries: () => paginateListTemplateGroupAccessControlEntries,
85
+ paginateListTemplates: () => paginateListTemplates
86
+ });
87
+ module.exports = __toCommonJS(src_exports);
88
+
89
+ // src/PcaConnectorAdClient.ts
90
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
91
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
92
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
93
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
94
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
95
+ var import_config_resolver = require("@smithy/config-resolver");
96
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
97
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
98
+ var import_middleware_retry = require("@smithy/middleware-retry");
99
+
100
+
101
+ // src/endpoint/EndpointParameters.ts
102
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
103
+ return {
104
+ ...options,
105
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
106
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
107
+ defaultSigningName: "pca-connector-ad"
108
+ };
109
+ }, "resolveClientEndpointParameters");
110
+ var commonParams = {
111
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
112
+ Endpoint: { type: "builtInParams", name: "endpoint" },
113
+ Region: { type: "builtInParams", name: "region" },
114
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
115
+ };
116
+
117
+ // src/PcaConnectorAdClient.ts
118
+ var import_runtimeConfig = require("././runtimeConfig");
119
+
120
+ // src/runtimeExtensions.ts
121
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
122
+ var import_protocol_http = require("@smithy/protocol-http");
123
+ var import_smithy_client = require("@smithy/smithy-client");
124
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
125
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
126
+ const extensionConfiguration = {
127
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
128
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
129
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
130
+ };
131
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
132
+ return {
133
+ ...runtimeConfig,
134
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
135
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
136
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
137
+ };
138
+ }, "resolveRuntimeExtensions");
139
+
140
+ // src/PcaConnectorAdClient.ts
141
+ var _PcaConnectorAdClient = class _PcaConnectorAdClient extends import_smithy_client.Client {
142
+ constructor(...[configuration]) {
143
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
144
+ const _config_1 = resolveClientEndpointParameters(_config_0);
145
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
146
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
147
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
148
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
149
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
150
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
151
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
152
+ super(_config_8);
153
+ this.config = _config_8;
154
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
155
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
156
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
157
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
158
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
159
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
160
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
161
+ }
162
+ /**
163
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
164
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
165
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
166
+ */
167
+ destroy() {
168
+ super.destroy();
169
+ }
170
+ };
171
+ __name(_PcaConnectorAdClient, "PcaConnectorAdClient");
172
+ var PcaConnectorAdClient = _PcaConnectorAdClient;
173
+
174
+ // src/PcaConnectorAd.ts
175
+
176
+
177
+ // src/commands/CreateConnectorCommand.ts
178
+
179
+ var import_middleware_serde = require("@smithy/middleware-serde");
180
+
181
+ var import_types = require("@smithy/types");
182
+
183
+ // src/protocols/Aws_restJson1.ts
184
+ var import_core = require("@aws-sdk/core");
185
+ var import_core2 = require("@smithy/core");
186
+
187
+ var import_uuid = require("uuid");
188
+
189
+ // src/models/PcaConnectorAdServiceException.ts
190
+
191
+ var _PcaConnectorAdServiceException = class _PcaConnectorAdServiceException extends import_smithy_client.ServiceException {
192
+ /**
193
+ * @internal
194
+ */
195
+ constructor(options) {
196
+ super(options);
197
+ Object.setPrototypeOf(this, _PcaConnectorAdServiceException.prototype);
198
+ }
199
+ };
200
+ __name(_PcaConnectorAdServiceException, "PcaConnectorAdServiceException");
201
+ var PcaConnectorAdServiceException = _PcaConnectorAdServiceException;
202
+
203
+ // src/models/models_0.ts
204
+ var AccessRight = {
205
+ ALLOW: "ALLOW",
206
+ DENY: "DENY"
207
+ };
208
+ var _AccessDeniedException = class _AccessDeniedException extends PcaConnectorAdServiceException {
209
+ /**
210
+ * @internal
211
+ */
212
+ constructor(opts) {
213
+ super({
214
+ name: "AccessDeniedException",
215
+ $fault: "client",
216
+ ...opts
217
+ });
218
+ this.name = "AccessDeniedException";
219
+ this.$fault = "client";
220
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
221
+ this.Message = opts.Message;
222
+ }
223
+ };
224
+ __name(_AccessDeniedException, "AccessDeniedException");
225
+ var AccessDeniedException = _AccessDeniedException;
226
+ var ApplicationPolicyType = {
227
+ ALL_APPLICATION_POLICIES: "ALL_APPLICATION_POLICIES",
228
+ ANY_PURPOSE: "ANY_PURPOSE",
229
+ ATTESTATION_IDENTITY_KEY_CERTIFICATE: "ATTESTATION_IDENTITY_KEY_CERTIFICATE",
230
+ CERTIFICATE_REQUEST_AGENT: "CERTIFICATE_REQUEST_AGENT",
231
+ CLIENT_AUTHENTICATION: "CLIENT_AUTHENTICATION",
232
+ CODE_SIGNING: "CODE_SIGNING",
233
+ CTL_USAGE: "CTL_USAGE",
234
+ DIGITAL_RIGHTS: "DIGITAL_RIGHTS",
235
+ DIRECTORY_SERVICE_EMAIL_REPLICATION: "DIRECTORY_SERVICE_EMAIL_REPLICATION",
236
+ DISALLOWED_LIST: "DISALLOWED_LIST",
237
+ DNS_SERVER_TRUST: "DNS_SERVER_TRUST",
238
+ DOCUMENT_ENCRYPTION: "DOCUMENT_ENCRYPTION",
239
+ DOCUMENT_SIGNING: "DOCUMENT_SIGNING",
240
+ DYNAMIC_CODE_GENERATOR: "DYNAMIC_CODE_GENERATOR",
241
+ EARLY_LAUNCH_ANTIMALWARE_DRIVER: "EARLY_LAUNCH_ANTIMALWARE_DRIVER",
242
+ EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION: "EMBEDDED_WINDOWS_SYSTEM_COMPONENT_VERIFICATION",
243
+ ENCLAVE: "ENCLAVE",
244
+ ENCRYPTING_FILE_SYSTEM: "ENCRYPTING_FILE_SYSTEM",
245
+ ENDORSEMENT_KEY_CERTIFICATE: "ENDORSEMENT_KEY_CERTIFICATE",
246
+ FILE_RECOVERY: "FILE_RECOVERY",
247
+ HAL_EXTENSION: "HAL_EXTENSION",
248
+ IP_SECURITY_END_SYSTEM: "IP_SECURITY_END_SYSTEM",
249
+ IP_SECURITY_IKE_INTERMEDIATE: "IP_SECURITY_IKE_INTERMEDIATE",
250
+ IP_SECURITY_TUNNEL_TERMINATION: "IP_SECURITY_TUNNEL_TERMINATION",
251
+ IP_SECURITY_USER: "IP_SECURITY_USER",
252
+ ISOLATED_USER_MODE: "ISOLATED_USER_MODE",
253
+ KDC_AUTHENTICATION: "KDC_AUTHENTICATION",
254
+ KERNEL_MODE_CODE_SIGNING: "KERNEL_MODE_CODE_SIGNING",
255
+ KEY_PACK_LICENSES: "KEY_PACK_LICENSES",
256
+ KEY_RECOVERY: "KEY_RECOVERY",
257
+ KEY_RECOVERY_AGENT: "KEY_RECOVERY_AGENT",
258
+ LICENSE_SERVER_VERIFICATION: "LICENSE_SERVER_VERIFICATION",
259
+ LIFETIME_SIGNING: "LIFETIME_SIGNING",
260
+ MICROSOFT_PUBLISHER: "MICROSOFT_PUBLISHER",
261
+ MICROSOFT_TIME_STAMPING: "MICROSOFT_TIME_STAMPING",
262
+ MICROSOFT_TRUST_LIST_SIGNING: "MICROSOFT_TRUST_LIST_SIGNING",
263
+ OCSP_SIGNING: "OCSP_SIGNING",
264
+ OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION: "OEM_WINDOWS_SYSTEM_COMPONENT_VERIFICATION",
265
+ PLATFORM_CERTIFICATE: "PLATFORM_CERTIFICATE",
266
+ PREVIEW_BUILD_SIGNING: "PREVIEW_BUILD_SIGNING",
267
+ PRIVATE_KEY_ARCHIVAL: "PRIVATE_KEY_ARCHIVAL",
268
+ PROTECTED_PROCESS_LIGHT_VERIFICATION: "PROTECTED_PROCESS_LIGHT_VERIFICATION",
269
+ PROTECTED_PROCESS_VERIFICATION: "PROTECTED_PROCESS_VERIFICATION",
270
+ QUALIFIED_SUBORDINATION: "QUALIFIED_SUBORDINATION",
271
+ REVOKED_LIST_SIGNER: "REVOKED_LIST_SIGNER",
272
+ ROOT_LIST_SIGNER: "ROOT_LIST_SIGNER",
273
+ ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION: "ROOT_PROGRAM_AUTO_UPDATE_CA_REVOCATION",
274
+ ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION: "ROOT_PROGRAM_AUTO_UPDATE_END_REVOCATION",
275
+ ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL: "ROOT_PROGRAM_NO_OSCP_FAILOVER_TO_CRL",
276
+ SECURE_EMAIL: "SECURE_EMAIL",
277
+ SERVER_AUTHENTICATION: "SERVER_AUTHENTICATION",
278
+ SMART_CARD_LOGIN: "SMART_CARD_LOGIN",
279
+ SPC_ENCRYPTED_DIGEST_RETRY_COUNT: "SPC_ENCRYPTED_DIGEST_RETRY_COUNT",
280
+ SPC_RELAXED_PE_MARKER_CHECK: "SPC_RELAXED_PE_MARKER_CHECK",
281
+ TIME_STAMPING: "TIME_STAMPING",
282
+ WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION: "WINDOWS_HARDWARE_DRIVER_ATTESTED_VERIFICATION",
283
+ WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION: "WINDOWS_HARDWARE_DRIVER_EXTENDED_VERIFICATION",
284
+ WINDOWS_HARDWARE_DRIVER_VERIFICATION: "WINDOWS_HARDWARE_DRIVER_VERIFICATION",
285
+ WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION: "WINDOWS_HELLO_RECOVERY_KEY_ENCRYPTION",
286
+ WINDOWS_KITS_COMPONENT: "WINDOWS_KITS_COMPONENT",
287
+ WINDOWS_RT_VERIFICATION: "WINDOWS_RT_VERIFICATION",
288
+ WINDOWS_SOFTWARE_EXTENSION_VERIFICATION: "WINDOWS_SOFTWARE_EXTENSION_VERIFICATION",
289
+ WINDOWS_STORE: "WINDOWS_STORE",
290
+ WINDOWS_SYSTEM_COMPONENT_VERIFICATION: "WINDOWS_SYSTEM_COMPONENT_VERIFICATION",
291
+ WINDOWS_TCB_COMPONENT: "WINDOWS_TCB_COMPONENT",
292
+ WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT: "WINDOWS_THIRD_PARTY_APPLICATION_COMPONENT",
293
+ WINDOWS_UPDATE: "WINDOWS_UPDATE"
294
+ };
295
+ var ApplicationPolicy;
296
+ ((ApplicationPolicy3) => {
297
+ ApplicationPolicy3.visit = /* @__PURE__ */ __name((value, visitor) => {
298
+ if (value.PolicyType !== void 0)
299
+ return visitor.PolicyType(value.PolicyType);
300
+ if (value.PolicyObjectIdentifier !== void 0)
301
+ return visitor.PolicyObjectIdentifier(value.PolicyObjectIdentifier);
302
+ return visitor._(value.$unknown[0], value.$unknown[1]);
303
+ }, "visit");
304
+ })(ApplicationPolicy || (ApplicationPolicy = {}));
305
+ var ValidityPeriodType = {
306
+ DAYS: "DAYS",
307
+ HOURS: "HOURS",
308
+ MONTHS: "MONTHS",
309
+ WEEKS: "WEEKS",
310
+ YEARS: "YEARS"
311
+ };
312
+ var ClientCompatibilityV2 = {
313
+ WINDOWS_SERVER_2003: "WINDOWS_SERVER_2003",
314
+ WINDOWS_SERVER_2008: "WINDOWS_SERVER_2008",
315
+ WINDOWS_SERVER_2008_R2: "WINDOWS_SERVER_2008_R2",
316
+ WINDOWS_SERVER_2012: "WINDOWS_SERVER_2012",
317
+ WINDOWS_SERVER_2012_R2: "WINDOWS_SERVER_2012_R2",
318
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016"
319
+ };
320
+ var ClientCompatibilityV3 = {
321
+ WINDOWS_SERVER_2008: "WINDOWS_SERVER_2008",
322
+ WINDOWS_SERVER_2008_R2: "WINDOWS_SERVER_2008_R2",
323
+ WINDOWS_SERVER_2012: "WINDOWS_SERVER_2012",
324
+ WINDOWS_SERVER_2012_R2: "WINDOWS_SERVER_2012_R2",
325
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016"
326
+ };
327
+ var ClientCompatibilityV4 = {
328
+ WINDOWS_SERVER_2012: "WINDOWS_SERVER_2012",
329
+ WINDOWS_SERVER_2012_R2: "WINDOWS_SERVER_2012_R2",
330
+ WINDOWS_SERVER_2016: "WINDOWS_SERVER_2016"
331
+ };
332
+ var _ConflictException = class _ConflictException extends PcaConnectorAdServiceException {
333
+ /**
334
+ * @internal
335
+ */
336
+ constructor(opts) {
337
+ super({
338
+ name: "ConflictException",
339
+ $fault: "client",
340
+ ...opts
341
+ });
342
+ this.name = "ConflictException";
343
+ this.$fault = "client";
344
+ Object.setPrototypeOf(this, _ConflictException.prototype);
345
+ this.Message = opts.Message;
346
+ this.ResourceId = opts.ResourceId;
347
+ this.ResourceType = opts.ResourceType;
348
+ }
349
+ };
350
+ __name(_ConflictException, "ConflictException");
351
+ var ConflictException = _ConflictException;
352
+ var ConnectorStatus = {
353
+ ACTIVE: "ACTIVE",
354
+ CREATING: "CREATING",
355
+ DELETING: "DELETING",
356
+ FAILED: "FAILED"
357
+ };
358
+ var ConnectorStatusReason = {
359
+ DIRECTORY_ACCESS_DENIED: "DIRECTORY_ACCESS_DENIED",
360
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
361
+ PRIVATECA_ACCESS_DENIED: "PRIVATECA_ACCESS_DENIED",
362
+ PRIVATECA_RESOURCE_NOT_FOUND: "PRIVATECA_RESOURCE_NOT_FOUND",
363
+ SECURITY_GROUP_NOT_IN_VPC: "SECURITY_GROUP_NOT_IN_VPC",
364
+ VPC_ACCESS_DENIED: "VPC_ACCESS_DENIED",
365
+ VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED",
366
+ VPC_RESOURCE_NOT_FOUND: "VPC_RESOURCE_NOT_FOUND"
367
+ };
368
+ var _InternalServerException = class _InternalServerException extends PcaConnectorAdServiceException {
369
+ /**
370
+ * @internal
371
+ */
372
+ constructor(opts) {
373
+ super({
374
+ name: "InternalServerException",
375
+ $fault: "server",
376
+ ...opts
377
+ });
378
+ this.name = "InternalServerException";
379
+ this.$fault = "server";
380
+ this.$retryable = {};
381
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
382
+ this.Message = opts.Message;
383
+ }
384
+ };
385
+ __name(_InternalServerException, "InternalServerException");
386
+ var InternalServerException = _InternalServerException;
387
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends PcaConnectorAdServiceException {
388
+ /**
389
+ * @internal
390
+ */
391
+ constructor(opts) {
392
+ super({
393
+ name: "ResourceNotFoundException",
394
+ $fault: "client",
395
+ ...opts
396
+ });
397
+ this.name = "ResourceNotFoundException";
398
+ this.$fault = "client";
399
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
400
+ this.Message = opts.Message;
401
+ this.ResourceId = opts.ResourceId;
402
+ this.ResourceType = opts.ResourceType;
403
+ }
404
+ };
405
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
406
+ var ResourceNotFoundException = _ResourceNotFoundException;
407
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends PcaConnectorAdServiceException {
408
+ /**
409
+ * @internal
410
+ */
411
+ constructor(opts) {
412
+ super({
413
+ name: "ServiceQuotaExceededException",
414
+ $fault: "client",
415
+ ...opts
416
+ });
417
+ this.name = "ServiceQuotaExceededException";
418
+ this.$fault = "client";
419
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
420
+ this.Message = opts.Message;
421
+ this.ResourceId = opts.ResourceId;
422
+ this.ResourceType = opts.ResourceType;
423
+ this.ServiceCode = opts.ServiceCode;
424
+ this.QuotaCode = opts.QuotaCode;
425
+ }
426
+ };
427
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
428
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
429
+ var _ThrottlingException = class _ThrottlingException extends PcaConnectorAdServiceException {
430
+ /**
431
+ * @internal
432
+ */
433
+ constructor(opts) {
434
+ super({
435
+ name: "ThrottlingException",
436
+ $fault: "client",
437
+ ...opts
438
+ });
439
+ this.name = "ThrottlingException";
440
+ this.$fault = "client";
441
+ this.$retryable = {
442
+ throttling: true
443
+ };
444
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
445
+ this.Message = opts.Message;
446
+ this.ServiceCode = opts.ServiceCode;
447
+ this.QuotaCode = opts.QuotaCode;
448
+ }
449
+ };
450
+ __name(_ThrottlingException, "ThrottlingException");
451
+ var ThrottlingException = _ThrottlingException;
452
+ var ValidationExceptionReason = {
453
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
454
+ INVALID_PERMISSION: "INVALID_PERMISSION",
455
+ INVALID_STATE: "INVALID_STATE",
456
+ MISMATCHED_CONNECTOR: "MISMATCHED_CONNECTOR",
457
+ MISMATCHED_VPC: "MISMATCHED_VPC",
458
+ NO_CLIENT_TOKEN: "NO_CLIENT_TOKEN",
459
+ OTHER: "OTHER",
460
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
461
+ };
462
+ var _ValidationException = class _ValidationException extends PcaConnectorAdServiceException {
463
+ /**
464
+ * @internal
465
+ */
466
+ constructor(opts) {
467
+ super({
468
+ name: "ValidationException",
469
+ $fault: "client",
470
+ ...opts
471
+ });
472
+ this.name = "ValidationException";
473
+ this.$fault = "client";
474
+ Object.setPrototypeOf(this, _ValidationException.prototype);
475
+ this.Message = opts.Message;
476
+ this.Reason = opts.Reason;
477
+ }
478
+ };
479
+ __name(_ValidationException, "ValidationException");
480
+ var ValidationException = _ValidationException;
481
+ var KeySpec = {
482
+ KEY_EXCHANGE: "KEY_EXCHANGE",
483
+ SIGNATURE: "SIGNATURE"
484
+ };
485
+ var HashAlgorithm = {
486
+ SHA256: "SHA256",
487
+ SHA384: "SHA384",
488
+ SHA512: "SHA512"
489
+ };
490
+ var PrivateKeyAlgorithm = {
491
+ ECDH_P256: "ECDH_P256",
492
+ ECDH_P384: "ECDH_P384",
493
+ ECDH_P521: "ECDH_P521",
494
+ RSA: "RSA"
495
+ };
496
+ var KeyUsagePropertyType = {
497
+ ALL: "ALL"
498
+ };
499
+ var KeyUsageProperty;
500
+ ((KeyUsageProperty3) => {
501
+ KeyUsageProperty3.visit = /* @__PURE__ */ __name((value, visitor) => {
502
+ if (value.PropertyType !== void 0)
503
+ return visitor.PropertyType(value.PropertyType);
504
+ if (value.PropertyFlags !== void 0)
505
+ return visitor.PropertyFlags(value.PropertyFlags);
506
+ return visitor._(value.$unknown[0], value.$unknown[1]);
507
+ }, "visit");
508
+ })(KeyUsageProperty || (KeyUsageProperty = {}));
509
+ var TemplateDefinition;
510
+ ((TemplateDefinition3) => {
511
+ TemplateDefinition3.visit = /* @__PURE__ */ __name((value, visitor) => {
512
+ if (value.TemplateV2 !== void 0)
513
+ return visitor.TemplateV2(value.TemplateV2);
514
+ if (value.TemplateV3 !== void 0)
515
+ return visitor.TemplateV3(value.TemplateV3);
516
+ if (value.TemplateV4 !== void 0)
517
+ return visitor.TemplateV4(value.TemplateV4);
518
+ return visitor._(value.$unknown[0], value.$unknown[1]);
519
+ }, "visit");
520
+ })(TemplateDefinition || (TemplateDefinition = {}));
521
+ var DirectoryRegistrationStatus = {
522
+ ACTIVE: "ACTIVE",
523
+ CREATING: "CREATING",
524
+ DELETING: "DELETING",
525
+ FAILED: "FAILED"
526
+ };
527
+ var DirectoryRegistrationStatusReason = {
528
+ DIRECTORY_ACCESS_DENIED: "DIRECTORY_ACCESS_DENIED",
529
+ DIRECTORY_NOT_ACTIVE: "DIRECTORY_NOT_ACTIVE",
530
+ DIRECTORY_NOT_REACHABLE: "DIRECTORY_NOT_REACHABLE",
531
+ DIRECTORY_RESOURCE_NOT_FOUND: "DIRECTORY_RESOURCE_NOT_FOUND",
532
+ DIRECTORY_TYPE_NOT_SUPPORTED: "DIRECTORY_TYPE_NOT_SUPPORTED",
533
+ INTERNAL_FAILURE: "INTERNAL_FAILURE"
534
+ };
535
+ var ServicePrincipalNameStatus = {
536
+ ACTIVE: "ACTIVE",
537
+ CREATING: "CREATING",
538
+ DELETING: "DELETING",
539
+ FAILED: "FAILED"
540
+ };
541
+ var ServicePrincipalNameStatusReason = {
542
+ DIRECTORY_ACCESS_DENIED: "DIRECTORY_ACCESS_DENIED",
543
+ DIRECTORY_NOT_REACHABLE: "DIRECTORY_NOT_REACHABLE",
544
+ DIRECTORY_RESOURCE_NOT_FOUND: "DIRECTORY_RESOURCE_NOT_FOUND",
545
+ INTERNAL_FAILURE: "INTERNAL_FAILURE",
546
+ SPN_EXISTS_ON_DIFFERENT_AD_OBJECT: "SPN_EXISTS_ON_DIFFERENT_AD_OBJECT"
547
+ };
548
+ var TemplateStatus = {
549
+ ACTIVE: "ACTIVE",
550
+ DELETING: "DELETING"
551
+ };
552
+
553
+ // src/protocols/Aws_restJson1.ts
554
+ var se_CreateConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
555
+ const b = (0, import_core2.requestBuilder)(input, context);
556
+ const headers = {
557
+ "content-type": "application/json"
558
+ };
559
+ b.bp("/connectors");
560
+ let body;
561
+ body = JSON.stringify(
562
+ (0, import_smithy_client.take)(input, {
563
+ CertificateAuthorityArn: [],
564
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
565
+ DirectoryId: [],
566
+ Tags: (_) => (0, import_smithy_client._json)(_),
567
+ VpcInformation: (_) => (0, import_smithy_client._json)(_)
568
+ })
569
+ );
570
+ b.m("POST").h(headers).b(body);
571
+ return b.build();
572
+ }, "se_CreateConnectorCommand");
573
+ var se_CreateDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
574
+ const b = (0, import_core2.requestBuilder)(input, context);
575
+ const headers = {
576
+ "content-type": "application/json"
577
+ };
578
+ b.bp("/directoryRegistrations");
579
+ let body;
580
+ body = JSON.stringify(
581
+ (0, import_smithy_client.take)(input, {
582
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
583
+ DirectoryId: [],
584
+ Tags: (_) => (0, import_smithy_client._json)(_)
585
+ })
586
+ );
587
+ b.m("POST").h(headers).b(body);
588
+ return b.build();
589
+ }, "se_CreateDirectoryRegistrationCommand");
590
+ var se_CreateServicePrincipalNameCommand = /* @__PURE__ */ __name(async (input, context) => {
591
+ const b = (0, import_core2.requestBuilder)(input, context);
592
+ const headers = {
593
+ "content-type": "application/json"
594
+ };
595
+ b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
596
+ b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
597
+ b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
598
+ let body;
599
+ body = JSON.stringify(
600
+ (0, import_smithy_client.take)(input, {
601
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()]
602
+ })
603
+ );
604
+ b.m("POST").h(headers).b(body);
605
+ return b.build();
606
+ }, "se_CreateServicePrincipalNameCommand");
607
+ var se_CreateTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
608
+ const b = (0, import_core2.requestBuilder)(input, context);
609
+ const headers = {
610
+ "content-type": "application/json"
611
+ };
612
+ b.bp("/templates");
613
+ let body;
614
+ body = JSON.stringify(
615
+ (0, import_smithy_client.take)(input, {
616
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
617
+ ConnectorArn: [],
618
+ Definition: (_) => (0, import_smithy_client._json)(_),
619
+ Name: [],
620
+ Tags: (_) => (0, import_smithy_client._json)(_)
621
+ })
622
+ );
623
+ b.m("POST").h(headers).b(body);
624
+ return b.build();
625
+ }, "se_CreateTemplateCommand");
626
+ var se_CreateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (input, context) => {
627
+ const b = (0, import_core2.requestBuilder)(input, context);
628
+ const headers = {
629
+ "content-type": "application/json"
630
+ };
631
+ b.bp("/templates/{TemplateArn}/accessControlEntries");
632
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
633
+ let body;
634
+ body = JSON.stringify(
635
+ (0, import_smithy_client.take)(input, {
636
+ AccessRights: (_) => (0, import_smithy_client._json)(_),
637
+ ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
638
+ GroupDisplayName: [],
639
+ GroupSecurityIdentifier: []
640
+ })
641
+ );
642
+ b.m("POST").h(headers).b(body);
643
+ return b.build();
644
+ }, "se_CreateTemplateGroupAccessControlEntryCommand");
645
+ var se_DeleteConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const b = (0, import_core2.requestBuilder)(input, context);
647
+ const headers = {};
648
+ b.bp("/connectors/{ConnectorArn}");
649
+ b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
650
+ let body;
651
+ b.m("DELETE").h(headers).b(body);
652
+ return b.build();
653
+ }, "se_DeleteConnectorCommand");
654
+ var se_DeleteDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
655
+ const b = (0, import_core2.requestBuilder)(input, context);
656
+ const headers = {};
657
+ b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
658
+ b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
659
+ let body;
660
+ b.m("DELETE").h(headers).b(body);
661
+ return b.build();
662
+ }, "se_DeleteDirectoryRegistrationCommand");
663
+ var se_DeleteServicePrincipalNameCommand = /* @__PURE__ */ __name(async (input, context) => {
664
+ const b = (0, import_core2.requestBuilder)(input, context);
665
+ const headers = {};
666
+ b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
667
+ b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
668
+ b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
669
+ let body;
670
+ b.m("DELETE").h(headers).b(body);
671
+ return b.build();
672
+ }, "se_DeleteServicePrincipalNameCommand");
673
+ var se_DeleteTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
674
+ const b = (0, import_core2.requestBuilder)(input, context);
675
+ const headers = {};
676
+ b.bp("/templates/{TemplateArn}");
677
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
678
+ let body;
679
+ b.m("DELETE").h(headers).b(body);
680
+ return b.build();
681
+ }, "se_DeleteTemplateCommand");
682
+ var se_DeleteTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (input, context) => {
683
+ const b = (0, import_core2.requestBuilder)(input, context);
684
+ const headers = {};
685
+ b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
686
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
687
+ b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
688
+ let body;
689
+ b.m("DELETE").h(headers).b(body);
690
+ return b.build();
691
+ }, "se_DeleteTemplateGroupAccessControlEntryCommand");
692
+ var se_GetConnectorCommand = /* @__PURE__ */ __name(async (input, context) => {
693
+ const b = (0, import_core2.requestBuilder)(input, context);
694
+ const headers = {};
695
+ b.bp("/connectors/{ConnectorArn}");
696
+ b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
697
+ let body;
698
+ b.m("GET").h(headers).b(body);
699
+ return b.build();
700
+ }, "se_GetConnectorCommand");
701
+ var se_GetDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (input, context) => {
702
+ const b = (0, import_core2.requestBuilder)(input, context);
703
+ const headers = {};
704
+ b.bp("/directoryRegistrations/{DirectoryRegistrationArn}");
705
+ b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
706
+ let body;
707
+ b.m("GET").h(headers).b(body);
708
+ return b.build();
709
+ }, "se_GetDirectoryRegistrationCommand");
710
+ var se_GetServicePrincipalNameCommand = /* @__PURE__ */ __name(async (input, context) => {
711
+ const b = (0, import_core2.requestBuilder)(input, context);
712
+ const headers = {};
713
+ b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames/{ConnectorArn}");
714
+ b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
715
+ b.p("ConnectorArn", () => input.ConnectorArn, "{ConnectorArn}", false);
716
+ let body;
717
+ b.m("GET").h(headers).b(body);
718
+ return b.build();
719
+ }, "se_GetServicePrincipalNameCommand");
720
+ var se_GetTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
721
+ const b = (0, import_core2.requestBuilder)(input, context);
722
+ const headers = {};
723
+ b.bp("/templates/{TemplateArn}");
724
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
725
+ let body;
726
+ b.m("GET").h(headers).b(body);
727
+ return b.build();
728
+ }, "se_GetTemplateCommand");
729
+ var se_GetTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (input, context) => {
730
+ const b = (0, import_core2.requestBuilder)(input, context);
731
+ const headers = {};
732
+ b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
733
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
734
+ b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
735
+ let body;
736
+ b.m("GET").h(headers).b(body);
737
+ return b.build();
738
+ }, "se_GetTemplateGroupAccessControlEntryCommand");
739
+ var se_ListConnectorsCommand = /* @__PURE__ */ __name(async (input, context) => {
740
+ const b = (0, import_core2.requestBuilder)(input, context);
741
+ const headers = {};
742
+ b.bp("/connectors");
743
+ const query = (0, import_smithy_client.map)({
744
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
745
+ [_NT]: [, input[_NT]]
746
+ });
747
+ let body;
748
+ b.m("GET").h(headers).q(query).b(body);
749
+ return b.build();
750
+ }, "se_ListConnectorsCommand");
751
+ var se_ListDirectoryRegistrationsCommand = /* @__PURE__ */ __name(async (input, context) => {
752
+ const b = (0, import_core2.requestBuilder)(input, context);
753
+ const headers = {};
754
+ b.bp("/directoryRegistrations");
755
+ const query = (0, import_smithy_client.map)({
756
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
757
+ [_NT]: [, input[_NT]]
758
+ });
759
+ let body;
760
+ b.m("GET").h(headers).q(query).b(body);
761
+ return b.build();
762
+ }, "se_ListDirectoryRegistrationsCommand");
763
+ var se_ListServicePrincipalNamesCommand = /* @__PURE__ */ __name(async (input, context) => {
764
+ const b = (0, import_core2.requestBuilder)(input, context);
765
+ const headers = {};
766
+ b.bp("/directoryRegistrations/{DirectoryRegistrationArn}/servicePrincipalNames");
767
+ b.p("DirectoryRegistrationArn", () => input.DirectoryRegistrationArn, "{DirectoryRegistrationArn}", false);
768
+ const query = (0, import_smithy_client.map)({
769
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
770
+ [_NT]: [, input[_NT]]
771
+ });
772
+ let body;
773
+ b.m("GET").h(headers).q(query).b(body);
774
+ return b.build();
775
+ }, "se_ListServicePrincipalNamesCommand");
776
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
777
+ const b = (0, import_core2.requestBuilder)(input, context);
778
+ const headers = {};
779
+ b.bp("/tags/{ResourceArn}");
780
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
781
+ let body;
782
+ b.m("GET").h(headers).b(body);
783
+ return b.build();
784
+ }, "se_ListTagsForResourceCommand");
785
+ var se_ListTemplateGroupAccessControlEntriesCommand = /* @__PURE__ */ __name(async (input, context) => {
786
+ const b = (0, import_core2.requestBuilder)(input, context);
787
+ const headers = {};
788
+ b.bp("/templates/{TemplateArn}/accessControlEntries");
789
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
790
+ const query = (0, import_smithy_client.map)({
791
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
792
+ [_NT]: [, input[_NT]]
793
+ });
794
+ let body;
795
+ b.m("GET").h(headers).q(query).b(body);
796
+ return b.build();
797
+ }, "se_ListTemplateGroupAccessControlEntriesCommand");
798
+ var se_ListTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
799
+ const b = (0, import_core2.requestBuilder)(input, context);
800
+ const headers = {};
801
+ b.bp("/templates");
802
+ const query = (0, import_smithy_client.map)({
803
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
804
+ [_NT]: [, input[_NT]],
805
+ [_CA]: [, (0, import_smithy_client.expectNonNull)(input[_CA], `ConnectorArn`)]
806
+ });
807
+ let body;
808
+ b.m("GET").h(headers).q(query).b(body);
809
+ return b.build();
810
+ }, "se_ListTemplatesCommand");
811
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
812
+ const b = (0, import_core2.requestBuilder)(input, context);
813
+ const headers = {
814
+ "content-type": "application/json"
815
+ };
816
+ b.bp("/tags/{ResourceArn}");
817
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
818
+ let body;
819
+ body = JSON.stringify(
820
+ (0, import_smithy_client.take)(input, {
821
+ Tags: (_) => (0, import_smithy_client._json)(_)
822
+ })
823
+ );
824
+ b.m("POST").h(headers).b(body);
825
+ return b.build();
826
+ }, "se_TagResourceCommand");
827
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
828
+ const b = (0, import_core2.requestBuilder)(input, context);
829
+ const headers = {};
830
+ b.bp("/tags/{ResourceArn}");
831
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
832
+ const query = (0, import_smithy_client.map)({
833
+ [_tK]: [
834
+ (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
835
+ () => (input[_TK] || []).map((_entry) => _entry)
836
+ ]
837
+ });
838
+ let body;
839
+ b.m("DELETE").h(headers).q(query).b(body);
840
+ return b.build();
841
+ }, "se_UntagResourceCommand");
842
+ var se_UpdateTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
843
+ const b = (0, import_core2.requestBuilder)(input, context);
844
+ const headers = {
845
+ "content-type": "application/json"
846
+ };
847
+ b.bp("/templates/{TemplateArn}");
848
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
849
+ let body;
850
+ body = JSON.stringify(
851
+ (0, import_smithy_client.take)(input, {
852
+ Definition: (_) => (0, import_smithy_client._json)(_),
853
+ ReenrollAllCertificateHolders: []
854
+ })
855
+ );
856
+ b.m("PATCH").h(headers).b(body);
857
+ return b.build();
858
+ }, "se_UpdateTemplateCommand");
859
+ var se_UpdateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (input, context) => {
860
+ const b = (0, import_core2.requestBuilder)(input, context);
861
+ const headers = {
862
+ "content-type": "application/json"
863
+ };
864
+ b.bp("/templates/{TemplateArn}/accessControlEntries/{GroupSecurityIdentifier}");
865
+ b.p("TemplateArn", () => input.TemplateArn, "{TemplateArn}", false);
866
+ b.p("GroupSecurityIdentifier", () => input.GroupSecurityIdentifier, "{GroupSecurityIdentifier}", false);
867
+ let body;
868
+ body = JSON.stringify(
869
+ (0, import_smithy_client.take)(input, {
870
+ AccessRights: (_) => (0, import_smithy_client._json)(_),
871
+ GroupDisplayName: []
872
+ })
873
+ );
874
+ b.m("PATCH").h(headers).b(body);
875
+ return b.build();
876
+ }, "se_UpdateTemplateGroupAccessControlEntryCommand");
877
+ var de_CreateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
878
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
879
+ return de_CreateConnectorCommandError(output, context);
880
+ }
881
+ const contents = (0, import_smithy_client.map)({
882
+ $metadata: deserializeMetadata(output)
883
+ });
884
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
885
+ const doc = (0, import_smithy_client.take)(data, {
886
+ ConnectorArn: import_smithy_client.expectString
887
+ });
888
+ Object.assign(contents, doc);
889
+ return contents;
890
+ }, "de_CreateConnectorCommand");
891
+ var de_CreateConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
892
+ const parsedOutput = {
893
+ ...output,
894
+ body: await parseErrorBody(output.body, context)
895
+ };
896
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
897
+ switch (errorCode) {
898
+ case "AccessDeniedException":
899
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
900
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
901
+ case "ConflictException":
902
+ case "com.amazonaws.pcaconnectorad#ConflictException":
903
+ throw await de_ConflictExceptionRes(parsedOutput, context);
904
+ case "InternalServerException":
905
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
906
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
907
+ case "ResourceNotFoundException":
908
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
909
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
910
+ case "ServiceQuotaExceededException":
911
+ case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
912
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
913
+ case "ThrottlingException":
914
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
915
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
916
+ case "ValidationException":
917
+ case "com.amazonaws.pcaconnectorad#ValidationException":
918
+ throw await de_ValidationExceptionRes(parsedOutput, context);
919
+ default:
920
+ const parsedBody = parsedOutput.body;
921
+ return throwDefaultError({
922
+ output,
923
+ parsedBody,
924
+ errorCode
925
+ });
926
+ }
927
+ }, "de_CreateConnectorCommandError");
928
+ var de_CreateDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
929
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
930
+ return de_CreateDirectoryRegistrationCommandError(output, context);
931
+ }
932
+ const contents = (0, import_smithy_client.map)({
933
+ $metadata: deserializeMetadata(output)
934
+ });
935
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
936
+ const doc = (0, import_smithy_client.take)(data, {
937
+ DirectoryRegistrationArn: import_smithy_client.expectString
938
+ });
939
+ Object.assign(contents, doc);
940
+ return contents;
941
+ }, "de_CreateDirectoryRegistrationCommand");
942
+ var de_CreateDirectoryRegistrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
943
+ const parsedOutput = {
944
+ ...output,
945
+ body: await parseErrorBody(output.body, context)
946
+ };
947
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
948
+ switch (errorCode) {
949
+ case "AccessDeniedException":
950
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
951
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
952
+ case "ConflictException":
953
+ case "com.amazonaws.pcaconnectorad#ConflictException":
954
+ throw await de_ConflictExceptionRes(parsedOutput, context);
955
+ case "InternalServerException":
956
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
957
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
958
+ case "ResourceNotFoundException":
959
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
960
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
961
+ case "ThrottlingException":
962
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
963
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
964
+ case "ValidationException":
965
+ case "com.amazonaws.pcaconnectorad#ValidationException":
966
+ throw await de_ValidationExceptionRes(parsedOutput, context);
967
+ default:
968
+ const parsedBody = parsedOutput.body;
969
+ return throwDefaultError({
970
+ output,
971
+ parsedBody,
972
+ errorCode
973
+ });
974
+ }
975
+ }, "de_CreateDirectoryRegistrationCommandError");
976
+ var de_CreateServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output, context) => {
977
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
978
+ return de_CreateServicePrincipalNameCommandError(output, context);
979
+ }
980
+ const contents = (0, import_smithy_client.map)({
981
+ $metadata: deserializeMetadata(output)
982
+ });
983
+ await (0, import_smithy_client.collectBody)(output.body, context);
984
+ return contents;
985
+ }, "de_CreateServicePrincipalNameCommand");
986
+ var de_CreateServicePrincipalNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
987
+ const parsedOutput = {
988
+ ...output,
989
+ body: await parseErrorBody(output.body, context)
990
+ };
991
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
992
+ switch (errorCode) {
993
+ case "AccessDeniedException":
994
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
995
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
996
+ case "ConflictException":
997
+ case "com.amazonaws.pcaconnectorad#ConflictException":
998
+ throw await de_ConflictExceptionRes(parsedOutput, context);
999
+ case "InternalServerException":
1000
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1001
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1002
+ case "ResourceNotFoundException":
1003
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1004
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1005
+ case "ThrottlingException":
1006
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1007
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1008
+ case "ValidationException":
1009
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1010
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1011
+ default:
1012
+ const parsedBody = parsedOutput.body;
1013
+ return throwDefaultError({
1014
+ output,
1015
+ parsedBody,
1016
+ errorCode
1017
+ });
1018
+ }
1019
+ }, "de_CreateServicePrincipalNameCommandError");
1020
+ var de_CreateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1021
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1022
+ return de_CreateTemplateCommandError(output, context);
1023
+ }
1024
+ const contents = (0, import_smithy_client.map)({
1025
+ $metadata: deserializeMetadata(output)
1026
+ });
1027
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1028
+ const doc = (0, import_smithy_client.take)(data, {
1029
+ TemplateArn: import_smithy_client.expectString
1030
+ });
1031
+ Object.assign(contents, doc);
1032
+ return contents;
1033
+ }, "de_CreateTemplateCommand");
1034
+ var de_CreateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1035
+ const parsedOutput = {
1036
+ ...output,
1037
+ body: await parseErrorBody(output.body, context)
1038
+ };
1039
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1040
+ switch (errorCode) {
1041
+ case "AccessDeniedException":
1042
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1043
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1044
+ case "ConflictException":
1045
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1046
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1047
+ case "InternalServerException":
1048
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1049
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1050
+ case "ResourceNotFoundException":
1051
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1052
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1053
+ case "ServiceQuotaExceededException":
1054
+ case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
1055
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1056
+ case "ThrottlingException":
1057
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1058
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1059
+ case "ValidationException":
1060
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1061
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1062
+ default:
1063
+ const parsedBody = parsedOutput.body;
1064
+ return throwDefaultError({
1065
+ output,
1066
+ parsedBody,
1067
+ errorCode
1068
+ });
1069
+ }
1070
+ }, "de_CreateTemplateCommandError");
1071
+ var de_CreateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
1072
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1073
+ return de_CreateTemplateGroupAccessControlEntryCommandError(output, context);
1074
+ }
1075
+ const contents = (0, import_smithy_client.map)({
1076
+ $metadata: deserializeMetadata(output)
1077
+ });
1078
+ await (0, import_smithy_client.collectBody)(output.body, context);
1079
+ return contents;
1080
+ }, "de_CreateTemplateGroupAccessControlEntryCommand");
1081
+ var de_CreateTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1082
+ const parsedOutput = {
1083
+ ...output,
1084
+ body: await parseErrorBody(output.body, context)
1085
+ };
1086
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1087
+ switch (errorCode) {
1088
+ case "AccessDeniedException":
1089
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1090
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1091
+ case "ConflictException":
1092
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1093
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1094
+ case "InternalServerException":
1095
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1096
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1097
+ case "ResourceNotFoundException":
1098
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1099
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1100
+ case "ServiceQuotaExceededException":
1101
+ case "com.amazonaws.pcaconnectorad#ServiceQuotaExceededException":
1102
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1103
+ case "ThrottlingException":
1104
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1105
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1106
+ case "ValidationException":
1107
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1108
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1109
+ default:
1110
+ const parsedBody = parsedOutput.body;
1111
+ return throwDefaultError({
1112
+ output,
1113
+ parsedBody,
1114
+ errorCode
1115
+ });
1116
+ }
1117
+ }, "de_CreateTemplateGroupAccessControlEntryCommandError");
1118
+ var de_DeleteConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
1119
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1120
+ return de_DeleteConnectorCommandError(output, context);
1121
+ }
1122
+ const contents = (0, import_smithy_client.map)({
1123
+ $metadata: deserializeMetadata(output)
1124
+ });
1125
+ await (0, import_smithy_client.collectBody)(output.body, context);
1126
+ return contents;
1127
+ }, "de_DeleteConnectorCommand");
1128
+ var de_DeleteConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1129
+ const parsedOutput = {
1130
+ ...output,
1131
+ body: await parseErrorBody(output.body, context)
1132
+ };
1133
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1134
+ switch (errorCode) {
1135
+ case "AccessDeniedException":
1136
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1137
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1138
+ case "ConflictException":
1139
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1140
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1141
+ case "InternalServerException":
1142
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1143
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1144
+ case "ResourceNotFoundException":
1145
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1146
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1147
+ case "ThrottlingException":
1148
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1149
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1150
+ case "ValidationException":
1151
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1152
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1153
+ default:
1154
+ const parsedBody = parsedOutput.body;
1155
+ return throwDefaultError({
1156
+ output,
1157
+ parsedBody,
1158
+ errorCode
1159
+ });
1160
+ }
1161
+ }, "de_DeleteConnectorCommandError");
1162
+ var de_DeleteDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1163
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1164
+ return de_DeleteDirectoryRegistrationCommandError(output, context);
1165
+ }
1166
+ const contents = (0, import_smithy_client.map)({
1167
+ $metadata: deserializeMetadata(output)
1168
+ });
1169
+ await (0, import_smithy_client.collectBody)(output.body, context);
1170
+ return contents;
1171
+ }, "de_DeleteDirectoryRegistrationCommand");
1172
+ var de_DeleteDirectoryRegistrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1173
+ const parsedOutput = {
1174
+ ...output,
1175
+ body: await parseErrorBody(output.body, context)
1176
+ };
1177
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1178
+ switch (errorCode) {
1179
+ case "AccessDeniedException":
1180
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1181
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1182
+ case "ConflictException":
1183
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1184
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1185
+ case "InternalServerException":
1186
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1187
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1188
+ case "ThrottlingException":
1189
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1190
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1191
+ case "ValidationException":
1192
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1193
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1194
+ default:
1195
+ const parsedBody = parsedOutput.body;
1196
+ return throwDefaultError({
1197
+ output,
1198
+ parsedBody,
1199
+ errorCode
1200
+ });
1201
+ }
1202
+ }, "de_DeleteDirectoryRegistrationCommandError");
1203
+ var de_DeleteServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output, context) => {
1204
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1205
+ return de_DeleteServicePrincipalNameCommandError(output, context);
1206
+ }
1207
+ const contents = (0, import_smithy_client.map)({
1208
+ $metadata: deserializeMetadata(output)
1209
+ });
1210
+ await (0, import_smithy_client.collectBody)(output.body, context);
1211
+ return contents;
1212
+ }, "de_DeleteServicePrincipalNameCommand");
1213
+ var de_DeleteServicePrincipalNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
1214
+ const parsedOutput = {
1215
+ ...output,
1216
+ body: await parseErrorBody(output.body, context)
1217
+ };
1218
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1219
+ switch (errorCode) {
1220
+ case "AccessDeniedException":
1221
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1222
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1223
+ case "ConflictException":
1224
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1225
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1226
+ case "InternalServerException":
1227
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1228
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1229
+ case "ThrottlingException":
1230
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1231
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1232
+ case "ValidationException":
1233
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1234
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1235
+ default:
1236
+ const parsedBody = parsedOutput.body;
1237
+ return throwDefaultError({
1238
+ output,
1239
+ parsedBody,
1240
+ errorCode
1241
+ });
1242
+ }
1243
+ }, "de_DeleteServicePrincipalNameCommandError");
1244
+ var de_DeleteTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1245
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
1246
+ return de_DeleteTemplateCommandError(output, context);
1247
+ }
1248
+ const contents = (0, import_smithy_client.map)({
1249
+ $metadata: deserializeMetadata(output)
1250
+ });
1251
+ await (0, import_smithy_client.collectBody)(output.body, context);
1252
+ return contents;
1253
+ }, "de_DeleteTemplateCommand");
1254
+ var de_DeleteTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1255
+ const parsedOutput = {
1256
+ ...output,
1257
+ body: await parseErrorBody(output.body, context)
1258
+ };
1259
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1260
+ switch (errorCode) {
1261
+ case "AccessDeniedException":
1262
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1263
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1264
+ case "ConflictException":
1265
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1266
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1267
+ case "InternalServerException":
1268
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1269
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1270
+ case "ResourceNotFoundException":
1271
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1272
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1273
+ case "ThrottlingException":
1274
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1275
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1276
+ case "ValidationException":
1277
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1278
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1279
+ default:
1280
+ const parsedBody = parsedOutput.body;
1281
+ return throwDefaultError({
1282
+ output,
1283
+ parsedBody,
1284
+ errorCode
1285
+ });
1286
+ }
1287
+ }, "de_DeleteTemplateCommandError");
1288
+ var de_DeleteTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
1289
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1290
+ return de_DeleteTemplateGroupAccessControlEntryCommandError(output, context);
1291
+ }
1292
+ const contents = (0, import_smithy_client.map)({
1293
+ $metadata: deserializeMetadata(output)
1294
+ });
1295
+ await (0, import_smithy_client.collectBody)(output.body, context);
1296
+ return contents;
1297
+ }, "de_DeleteTemplateGroupAccessControlEntryCommand");
1298
+ var de_DeleteTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1299
+ const parsedOutput = {
1300
+ ...output,
1301
+ body: await parseErrorBody(output.body, context)
1302
+ };
1303
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1304
+ switch (errorCode) {
1305
+ case "AccessDeniedException":
1306
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1307
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1308
+ case "ConflictException":
1309
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1310
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1311
+ case "InternalServerException":
1312
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1313
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1314
+ case "ResourceNotFoundException":
1315
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1316
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1317
+ case "ThrottlingException":
1318
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1319
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1320
+ case "ValidationException":
1321
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1322
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1323
+ default:
1324
+ const parsedBody = parsedOutput.body;
1325
+ return throwDefaultError({
1326
+ output,
1327
+ parsedBody,
1328
+ errorCode
1329
+ });
1330
+ }
1331
+ }, "de_DeleteTemplateGroupAccessControlEntryCommandError");
1332
+ var de_GetConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
1333
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1334
+ return de_GetConnectorCommandError(output, context);
1335
+ }
1336
+ const contents = (0, import_smithy_client.map)({
1337
+ $metadata: deserializeMetadata(output)
1338
+ });
1339
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1340
+ const doc = (0, import_smithy_client.take)(data, {
1341
+ Connector: (_) => de_Connector(_, context)
1342
+ });
1343
+ Object.assign(contents, doc);
1344
+ return contents;
1345
+ }, "de_GetConnectorCommand");
1346
+ var de_GetConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1347
+ const parsedOutput = {
1348
+ ...output,
1349
+ body: await parseErrorBody(output.body, context)
1350
+ };
1351
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1352
+ switch (errorCode) {
1353
+ case "AccessDeniedException":
1354
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1355
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1356
+ case "InternalServerException":
1357
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1358
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1359
+ case "ResourceNotFoundException":
1360
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1361
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1362
+ case "ThrottlingException":
1363
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1364
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1365
+ case "ValidationException":
1366
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1367
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1368
+ default:
1369
+ const parsedBody = parsedOutput.body;
1370
+ return throwDefaultError({
1371
+ output,
1372
+ parsedBody,
1373
+ errorCode
1374
+ });
1375
+ }
1376
+ }, "de_GetConnectorCommandError");
1377
+ var de_GetDirectoryRegistrationCommand = /* @__PURE__ */ __name(async (output, context) => {
1378
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1379
+ return de_GetDirectoryRegistrationCommandError(output, context);
1380
+ }
1381
+ const contents = (0, import_smithy_client.map)({
1382
+ $metadata: deserializeMetadata(output)
1383
+ });
1384
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1385
+ const doc = (0, import_smithy_client.take)(data, {
1386
+ DirectoryRegistration: (_) => de_DirectoryRegistration(_, context)
1387
+ });
1388
+ Object.assign(contents, doc);
1389
+ return contents;
1390
+ }, "de_GetDirectoryRegistrationCommand");
1391
+ var de_GetDirectoryRegistrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1392
+ const parsedOutput = {
1393
+ ...output,
1394
+ body: await parseErrorBody(output.body, context)
1395
+ };
1396
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1397
+ switch (errorCode) {
1398
+ case "AccessDeniedException":
1399
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1400
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1401
+ case "InternalServerException":
1402
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1403
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1404
+ case "ResourceNotFoundException":
1405
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1406
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1407
+ case "ThrottlingException":
1408
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1409
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1410
+ case "ValidationException":
1411
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1412
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1413
+ default:
1414
+ const parsedBody = parsedOutput.body;
1415
+ return throwDefaultError({
1416
+ output,
1417
+ parsedBody,
1418
+ errorCode
1419
+ });
1420
+ }
1421
+ }, "de_GetDirectoryRegistrationCommandError");
1422
+ var de_GetServicePrincipalNameCommand = /* @__PURE__ */ __name(async (output, context) => {
1423
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1424
+ return de_GetServicePrincipalNameCommandError(output, context);
1425
+ }
1426
+ const contents = (0, import_smithy_client.map)({
1427
+ $metadata: deserializeMetadata(output)
1428
+ });
1429
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1430
+ const doc = (0, import_smithy_client.take)(data, {
1431
+ ServicePrincipalName: (_) => de_ServicePrincipalName(_, context)
1432
+ });
1433
+ Object.assign(contents, doc);
1434
+ return contents;
1435
+ }, "de_GetServicePrincipalNameCommand");
1436
+ var de_GetServicePrincipalNameCommandError = /* @__PURE__ */ __name(async (output, context) => {
1437
+ const parsedOutput = {
1438
+ ...output,
1439
+ body: await parseErrorBody(output.body, context)
1440
+ };
1441
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1442
+ switch (errorCode) {
1443
+ case "AccessDeniedException":
1444
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1445
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1446
+ case "InternalServerException":
1447
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1448
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1449
+ case "ResourceNotFoundException":
1450
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1451
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1452
+ case "ThrottlingException":
1453
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1454
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1455
+ case "ValidationException":
1456
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1457
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1458
+ default:
1459
+ const parsedBody = parsedOutput.body;
1460
+ return throwDefaultError({
1461
+ output,
1462
+ parsedBody,
1463
+ errorCode
1464
+ });
1465
+ }
1466
+ }, "de_GetServicePrincipalNameCommandError");
1467
+ var de_GetTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1468
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1469
+ return de_GetTemplateCommandError(output, context);
1470
+ }
1471
+ const contents = (0, import_smithy_client.map)({
1472
+ $metadata: deserializeMetadata(output)
1473
+ });
1474
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1475
+ const doc = (0, import_smithy_client.take)(data, {
1476
+ Template: (_) => de_Template(_, context)
1477
+ });
1478
+ Object.assign(contents, doc);
1479
+ return contents;
1480
+ }, "de_GetTemplateCommand");
1481
+ var de_GetTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1482
+ const parsedOutput = {
1483
+ ...output,
1484
+ body: await parseErrorBody(output.body, context)
1485
+ };
1486
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1487
+ switch (errorCode) {
1488
+ case "AccessDeniedException":
1489
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1490
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1491
+ case "InternalServerException":
1492
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1493
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1494
+ case "ResourceNotFoundException":
1495
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1496
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1497
+ case "ThrottlingException":
1498
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1499
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1500
+ case "ValidationException":
1501
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1502
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1503
+ default:
1504
+ const parsedBody = parsedOutput.body;
1505
+ return throwDefaultError({
1506
+ output,
1507
+ parsedBody,
1508
+ errorCode
1509
+ });
1510
+ }
1511
+ }, "de_GetTemplateCommandError");
1512
+ var de_GetTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
1513
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1514
+ return de_GetTemplateGroupAccessControlEntryCommandError(output, context);
1515
+ }
1516
+ const contents = (0, import_smithy_client.map)({
1517
+ $metadata: deserializeMetadata(output)
1518
+ });
1519
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1520
+ const doc = (0, import_smithy_client.take)(data, {
1521
+ AccessControlEntry: (_) => de_AccessControlEntry(_, context)
1522
+ });
1523
+ Object.assign(contents, doc);
1524
+ return contents;
1525
+ }, "de_GetTemplateGroupAccessControlEntryCommand");
1526
+ var de_GetTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1527
+ const parsedOutput = {
1528
+ ...output,
1529
+ body: await parseErrorBody(output.body, context)
1530
+ };
1531
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1532
+ switch (errorCode) {
1533
+ case "AccessDeniedException":
1534
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1535
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1536
+ case "InternalServerException":
1537
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1538
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1539
+ case "ResourceNotFoundException":
1540
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1541
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1542
+ case "ThrottlingException":
1543
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1544
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1545
+ case "ValidationException":
1546
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1547
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1548
+ default:
1549
+ const parsedBody = parsedOutput.body;
1550
+ return throwDefaultError({
1551
+ output,
1552
+ parsedBody,
1553
+ errorCode
1554
+ });
1555
+ }
1556
+ }, "de_GetTemplateGroupAccessControlEntryCommandError");
1557
+ var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1558
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1559
+ return de_ListConnectorsCommandError(output, context);
1560
+ }
1561
+ const contents = (0, import_smithy_client.map)({
1562
+ $metadata: deserializeMetadata(output)
1563
+ });
1564
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1565
+ const doc = (0, import_smithy_client.take)(data, {
1566
+ Connectors: (_) => de_ConnectorList(_, context),
1567
+ NextToken: import_smithy_client.expectString
1568
+ });
1569
+ Object.assign(contents, doc);
1570
+ return contents;
1571
+ }, "de_ListConnectorsCommand");
1572
+ var de_ListConnectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1573
+ const parsedOutput = {
1574
+ ...output,
1575
+ body: await parseErrorBody(output.body, context)
1576
+ };
1577
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1578
+ switch (errorCode) {
1579
+ case "AccessDeniedException":
1580
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1581
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1582
+ case "InternalServerException":
1583
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1584
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1585
+ case "ThrottlingException":
1586
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1587
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1588
+ case "ValidationException":
1589
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1590
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1591
+ default:
1592
+ const parsedBody = parsedOutput.body;
1593
+ return throwDefaultError({
1594
+ output,
1595
+ parsedBody,
1596
+ errorCode
1597
+ });
1598
+ }
1599
+ }, "de_ListConnectorsCommandError");
1600
+ var de_ListDirectoryRegistrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1601
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1602
+ return de_ListDirectoryRegistrationsCommandError(output, context);
1603
+ }
1604
+ const contents = (0, import_smithy_client.map)({
1605
+ $metadata: deserializeMetadata(output)
1606
+ });
1607
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1608
+ const doc = (0, import_smithy_client.take)(data, {
1609
+ DirectoryRegistrations: (_) => de_DirectoryRegistrationList(_, context),
1610
+ NextToken: import_smithy_client.expectString
1611
+ });
1612
+ Object.assign(contents, doc);
1613
+ return contents;
1614
+ }, "de_ListDirectoryRegistrationsCommand");
1615
+ var de_ListDirectoryRegistrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1616
+ const parsedOutput = {
1617
+ ...output,
1618
+ body: await parseErrorBody(output.body, context)
1619
+ };
1620
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1621
+ switch (errorCode) {
1622
+ case "AccessDeniedException":
1623
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1624
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1625
+ case "InternalServerException":
1626
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1627
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1628
+ case "ThrottlingException":
1629
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1630
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1631
+ case "ValidationException":
1632
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1633
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1634
+ default:
1635
+ const parsedBody = parsedOutput.body;
1636
+ return throwDefaultError({
1637
+ output,
1638
+ parsedBody,
1639
+ errorCode
1640
+ });
1641
+ }
1642
+ }, "de_ListDirectoryRegistrationsCommandError");
1643
+ var de_ListServicePrincipalNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
1644
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1645
+ return de_ListServicePrincipalNamesCommandError(output, context);
1646
+ }
1647
+ const contents = (0, import_smithy_client.map)({
1648
+ $metadata: deserializeMetadata(output)
1649
+ });
1650
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1651
+ const doc = (0, import_smithy_client.take)(data, {
1652
+ NextToken: import_smithy_client.expectString,
1653
+ ServicePrincipalNames: (_) => de_ServicePrincipalNameList(_, context)
1654
+ });
1655
+ Object.assign(contents, doc);
1656
+ return contents;
1657
+ }, "de_ListServicePrincipalNamesCommand");
1658
+ var de_ListServicePrincipalNamesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1659
+ const parsedOutput = {
1660
+ ...output,
1661
+ body: await parseErrorBody(output.body, context)
1662
+ };
1663
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
+ switch (errorCode) {
1665
+ case "AccessDeniedException":
1666
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1667
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1668
+ case "InternalServerException":
1669
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1670
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1671
+ case "ResourceNotFoundException":
1672
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1673
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1674
+ case "ThrottlingException":
1675
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1676
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1677
+ case "ValidationException":
1678
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1679
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1680
+ default:
1681
+ const parsedBody = parsedOutput.body;
1682
+ return throwDefaultError({
1683
+ output,
1684
+ parsedBody,
1685
+ errorCode
1686
+ });
1687
+ }
1688
+ }, "de_ListServicePrincipalNamesCommandError");
1689
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1690
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1691
+ return de_ListTagsForResourceCommandError(output, context);
1692
+ }
1693
+ const contents = (0, import_smithy_client.map)({
1694
+ $metadata: deserializeMetadata(output)
1695
+ });
1696
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1697
+ const doc = (0, import_smithy_client.take)(data, {
1698
+ Tags: import_smithy_client._json
1699
+ });
1700
+ Object.assign(contents, doc);
1701
+ return contents;
1702
+ }, "de_ListTagsForResourceCommand");
1703
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1704
+ const parsedOutput = {
1705
+ ...output,
1706
+ body: await parseErrorBody(output.body, context)
1707
+ };
1708
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1709
+ switch (errorCode) {
1710
+ case "AccessDeniedException":
1711
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1712
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1713
+ case "InternalServerException":
1714
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1715
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1716
+ case "ResourceNotFoundException":
1717
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1718
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1719
+ case "ThrottlingException":
1720
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1721
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1722
+ case "ValidationException":
1723
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1724
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1725
+ default:
1726
+ const parsedBody = parsedOutput.body;
1727
+ return throwDefaultError({
1728
+ output,
1729
+ parsedBody,
1730
+ errorCode
1731
+ });
1732
+ }
1733
+ }, "de_ListTagsForResourceCommandError");
1734
+ var de_ListTemplateGroupAccessControlEntriesCommand = /* @__PURE__ */ __name(async (output, context) => {
1735
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
+ return de_ListTemplateGroupAccessControlEntriesCommandError(output, context);
1737
+ }
1738
+ const contents = (0, import_smithy_client.map)({
1739
+ $metadata: deserializeMetadata(output)
1740
+ });
1741
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1742
+ const doc = (0, import_smithy_client.take)(data, {
1743
+ AccessControlEntries: (_) => de_AccessControlEntryList(_, context),
1744
+ NextToken: import_smithy_client.expectString
1745
+ });
1746
+ Object.assign(contents, doc);
1747
+ return contents;
1748
+ }, "de_ListTemplateGroupAccessControlEntriesCommand");
1749
+ var de_ListTemplateGroupAccessControlEntriesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1750
+ const parsedOutput = {
1751
+ ...output,
1752
+ body: await parseErrorBody(output.body, context)
1753
+ };
1754
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1755
+ switch (errorCode) {
1756
+ case "AccessDeniedException":
1757
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1758
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1759
+ case "InternalServerException":
1760
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1761
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1762
+ case "ResourceNotFoundException":
1763
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1764
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1765
+ case "ThrottlingException":
1766
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1767
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1768
+ case "ValidationException":
1769
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1770
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1771
+ default:
1772
+ const parsedBody = parsedOutput.body;
1773
+ return throwDefaultError({
1774
+ output,
1775
+ parsedBody,
1776
+ errorCode
1777
+ });
1778
+ }
1779
+ }, "de_ListTemplateGroupAccessControlEntriesCommandError");
1780
+ var de_ListTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1781
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1782
+ return de_ListTemplatesCommandError(output, context);
1783
+ }
1784
+ const contents = (0, import_smithy_client.map)({
1785
+ $metadata: deserializeMetadata(output)
1786
+ });
1787
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1788
+ const doc = (0, import_smithy_client.take)(data, {
1789
+ NextToken: import_smithy_client.expectString,
1790
+ Templates: (_) => de_TemplateList(_, context)
1791
+ });
1792
+ Object.assign(contents, doc);
1793
+ return contents;
1794
+ }, "de_ListTemplatesCommand");
1795
+ var de_ListTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1796
+ const parsedOutput = {
1797
+ ...output,
1798
+ body: await parseErrorBody(output.body, context)
1799
+ };
1800
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1801
+ switch (errorCode) {
1802
+ case "AccessDeniedException":
1803
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1804
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1805
+ case "InternalServerException":
1806
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1807
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1808
+ case "ResourceNotFoundException":
1809
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1810
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1811
+ case "ThrottlingException":
1812
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1813
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1814
+ case "ValidationException":
1815
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1816
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1817
+ default:
1818
+ const parsedBody = parsedOutput.body;
1819
+ return throwDefaultError({
1820
+ output,
1821
+ parsedBody,
1822
+ errorCode
1823
+ });
1824
+ }
1825
+ }, "de_ListTemplatesCommandError");
1826
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1827
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1828
+ return de_TagResourceCommandError(output, context);
1829
+ }
1830
+ const contents = (0, import_smithy_client.map)({
1831
+ $metadata: deserializeMetadata(output)
1832
+ });
1833
+ await (0, import_smithy_client.collectBody)(output.body, context);
1834
+ return contents;
1835
+ }, "de_TagResourceCommand");
1836
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1837
+ const parsedOutput = {
1838
+ ...output,
1839
+ body: await parseErrorBody(output.body, context)
1840
+ };
1841
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1842
+ switch (errorCode) {
1843
+ case "AccessDeniedException":
1844
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1845
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1846
+ case "InternalServerException":
1847
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1848
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1849
+ case "ResourceNotFoundException":
1850
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1851
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1852
+ case "ThrottlingException":
1853
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1854
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1855
+ case "ValidationException":
1856
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1857
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1858
+ default:
1859
+ const parsedBody = parsedOutput.body;
1860
+ return throwDefaultError({
1861
+ output,
1862
+ parsedBody,
1863
+ errorCode
1864
+ });
1865
+ }
1866
+ }, "de_TagResourceCommandError");
1867
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1868
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1869
+ return de_UntagResourceCommandError(output, context);
1870
+ }
1871
+ const contents = (0, import_smithy_client.map)({
1872
+ $metadata: deserializeMetadata(output)
1873
+ });
1874
+ await (0, import_smithy_client.collectBody)(output.body, context);
1875
+ return contents;
1876
+ }, "de_UntagResourceCommand");
1877
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1878
+ const parsedOutput = {
1879
+ ...output,
1880
+ body: await parseErrorBody(output.body, context)
1881
+ };
1882
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1883
+ switch (errorCode) {
1884
+ case "AccessDeniedException":
1885
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1886
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1887
+ case "InternalServerException":
1888
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1889
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1890
+ case "ResourceNotFoundException":
1891
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1892
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1893
+ case "ThrottlingException":
1894
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1895
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1896
+ case "ValidationException":
1897
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1898
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1899
+ default:
1900
+ const parsedBody = parsedOutput.body;
1901
+ return throwDefaultError({
1902
+ output,
1903
+ parsedBody,
1904
+ errorCode
1905
+ });
1906
+ }
1907
+ }, "de_UntagResourceCommandError");
1908
+ var de_UpdateTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1909
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1910
+ return de_UpdateTemplateCommandError(output, context);
1911
+ }
1912
+ const contents = (0, import_smithy_client.map)({
1913
+ $metadata: deserializeMetadata(output)
1914
+ });
1915
+ await (0, import_smithy_client.collectBody)(output.body, context);
1916
+ return contents;
1917
+ }, "de_UpdateTemplateCommand");
1918
+ var de_UpdateTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1919
+ const parsedOutput = {
1920
+ ...output,
1921
+ body: await parseErrorBody(output.body, context)
1922
+ };
1923
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1924
+ switch (errorCode) {
1925
+ case "AccessDeniedException":
1926
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1927
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1928
+ case "ConflictException":
1929
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1930
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1931
+ case "InternalServerException":
1932
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1933
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1934
+ case "ResourceNotFoundException":
1935
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1936
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1937
+ case "ThrottlingException":
1938
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1940
+ case "ValidationException":
1941
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1942
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1943
+ default:
1944
+ const parsedBody = parsedOutput.body;
1945
+ return throwDefaultError({
1946
+ output,
1947
+ parsedBody,
1948
+ errorCode
1949
+ });
1950
+ }
1951
+ }, "de_UpdateTemplateCommandError");
1952
+ var de_UpdateTemplateGroupAccessControlEntryCommand = /* @__PURE__ */ __name(async (output, context) => {
1953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1954
+ return de_UpdateTemplateGroupAccessControlEntryCommandError(output, context);
1955
+ }
1956
+ const contents = (0, import_smithy_client.map)({
1957
+ $metadata: deserializeMetadata(output)
1958
+ });
1959
+ await (0, import_smithy_client.collectBody)(output.body, context);
1960
+ return contents;
1961
+ }, "de_UpdateTemplateGroupAccessControlEntryCommand");
1962
+ var de_UpdateTemplateGroupAccessControlEntryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1963
+ const parsedOutput = {
1964
+ ...output,
1965
+ body: await parseErrorBody(output.body, context)
1966
+ };
1967
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1968
+ switch (errorCode) {
1969
+ case "AccessDeniedException":
1970
+ case "com.amazonaws.pcaconnectorad#AccessDeniedException":
1971
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1972
+ case "ConflictException":
1973
+ case "com.amazonaws.pcaconnectorad#ConflictException":
1974
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1975
+ case "InternalServerException":
1976
+ case "com.amazonaws.pcaconnectorad#InternalServerException":
1977
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1978
+ case "ResourceNotFoundException":
1979
+ case "com.amazonaws.pcaconnectorad#ResourceNotFoundException":
1980
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1981
+ case "ThrottlingException":
1982
+ case "com.amazonaws.pcaconnectorad#ThrottlingException":
1983
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1984
+ case "ValidationException":
1985
+ case "com.amazonaws.pcaconnectorad#ValidationException":
1986
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1987
+ default:
1988
+ const parsedBody = parsedOutput.body;
1989
+ return throwDefaultError({
1990
+ output,
1991
+ parsedBody,
1992
+ errorCode
1993
+ });
1994
+ }
1995
+ }, "de_UpdateTemplateGroupAccessControlEntryCommandError");
1996
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(PcaConnectorAdServiceException);
1997
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1998
+ const contents = (0, import_smithy_client.map)({});
1999
+ const data = parsedOutput.body;
2000
+ const doc = (0, import_smithy_client.take)(data, {
2001
+ Message: import_smithy_client.expectString
2002
+ });
2003
+ Object.assign(contents, doc);
2004
+ const exception = new AccessDeniedException({
2005
+ $metadata: deserializeMetadata(parsedOutput),
2006
+ ...contents
2007
+ });
2008
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2009
+ }, "de_AccessDeniedExceptionRes");
2010
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2011
+ const contents = (0, import_smithy_client.map)({});
2012
+ const data = parsedOutput.body;
2013
+ const doc = (0, import_smithy_client.take)(data, {
2014
+ Message: import_smithy_client.expectString,
2015
+ ResourceId: import_smithy_client.expectString,
2016
+ ResourceType: import_smithy_client.expectString
2017
+ });
2018
+ Object.assign(contents, doc);
2019
+ const exception = new ConflictException({
2020
+ $metadata: deserializeMetadata(parsedOutput),
2021
+ ...contents
2022
+ });
2023
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2024
+ }, "de_ConflictExceptionRes");
2025
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2026
+ const contents = (0, import_smithy_client.map)({});
2027
+ const data = parsedOutput.body;
2028
+ const doc = (0, import_smithy_client.take)(data, {
2029
+ Message: import_smithy_client.expectString
2030
+ });
2031
+ Object.assign(contents, doc);
2032
+ const exception = new InternalServerException({
2033
+ $metadata: deserializeMetadata(parsedOutput),
2034
+ ...contents
2035
+ });
2036
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2037
+ }, "de_InternalServerExceptionRes");
2038
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2039
+ const contents = (0, import_smithy_client.map)({});
2040
+ const data = parsedOutput.body;
2041
+ const doc = (0, import_smithy_client.take)(data, {
2042
+ Message: import_smithy_client.expectString,
2043
+ ResourceId: import_smithy_client.expectString,
2044
+ ResourceType: import_smithy_client.expectString
2045
+ });
2046
+ Object.assign(contents, doc);
2047
+ const exception = new ResourceNotFoundException({
2048
+ $metadata: deserializeMetadata(parsedOutput),
2049
+ ...contents
2050
+ });
2051
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2052
+ }, "de_ResourceNotFoundExceptionRes");
2053
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2054
+ const contents = (0, import_smithy_client.map)({});
2055
+ const data = parsedOutput.body;
2056
+ const doc = (0, import_smithy_client.take)(data, {
2057
+ Message: import_smithy_client.expectString,
2058
+ QuotaCode: import_smithy_client.expectString,
2059
+ ResourceId: import_smithy_client.expectString,
2060
+ ResourceType: import_smithy_client.expectString,
2061
+ ServiceCode: import_smithy_client.expectString
2062
+ });
2063
+ Object.assign(contents, doc);
2064
+ const exception = new ServiceQuotaExceededException({
2065
+ $metadata: deserializeMetadata(parsedOutput),
2066
+ ...contents
2067
+ });
2068
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2069
+ }, "de_ServiceQuotaExceededExceptionRes");
2070
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2071
+ const contents = (0, import_smithy_client.map)({});
2072
+ const data = parsedOutput.body;
2073
+ const doc = (0, import_smithy_client.take)(data, {
2074
+ Message: import_smithy_client.expectString,
2075
+ QuotaCode: import_smithy_client.expectString,
2076
+ ServiceCode: import_smithy_client.expectString
2077
+ });
2078
+ Object.assign(contents, doc);
2079
+ const exception = new ThrottlingException({
2080
+ $metadata: deserializeMetadata(parsedOutput),
2081
+ ...contents
2082
+ });
2083
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2084
+ }, "de_ThrottlingExceptionRes");
2085
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2086
+ const contents = (0, import_smithy_client.map)({});
2087
+ const data = parsedOutput.body;
2088
+ const doc = (0, import_smithy_client.take)(data, {
2089
+ Message: import_smithy_client.expectString,
2090
+ Reason: import_smithy_client.expectString
2091
+ });
2092
+ Object.assign(contents, doc);
2093
+ const exception = new ValidationException({
2094
+ $metadata: deserializeMetadata(parsedOutput),
2095
+ ...contents
2096
+ });
2097
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2098
+ }, "de_ValidationExceptionRes");
2099
+ var de_AccessControlEntry = /* @__PURE__ */ __name((output, context) => {
2100
+ return (0, import_smithy_client.take)(output, {
2101
+ AccessRights: import_smithy_client._json,
2102
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2103
+ GroupDisplayName: import_smithy_client.expectString,
2104
+ GroupSecurityIdentifier: import_smithy_client.expectString,
2105
+ TemplateArn: import_smithy_client.expectString,
2106
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2107
+ });
2108
+ }, "de_AccessControlEntry");
2109
+ var de_AccessControlEntryList = /* @__PURE__ */ __name((output, context) => {
2110
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2111
+ return de_AccessControlEntrySummary(entry, context);
2112
+ });
2113
+ return retVal;
2114
+ }, "de_AccessControlEntryList");
2115
+ var de_AccessControlEntrySummary = /* @__PURE__ */ __name((output, context) => {
2116
+ return (0, import_smithy_client.take)(output, {
2117
+ AccessRights: import_smithy_client._json,
2118
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2119
+ GroupDisplayName: import_smithy_client.expectString,
2120
+ GroupSecurityIdentifier: import_smithy_client.expectString,
2121
+ TemplateArn: import_smithy_client.expectString,
2122
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2123
+ });
2124
+ }, "de_AccessControlEntrySummary");
2125
+ var de_Connector = /* @__PURE__ */ __name((output, context) => {
2126
+ return (0, import_smithy_client.take)(output, {
2127
+ Arn: import_smithy_client.expectString,
2128
+ CertificateAuthorityArn: import_smithy_client.expectString,
2129
+ CertificateEnrollmentPolicyServerEndpoint: import_smithy_client.expectString,
2130
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2131
+ DirectoryId: import_smithy_client.expectString,
2132
+ Status: import_smithy_client.expectString,
2133
+ StatusReason: import_smithy_client.expectString,
2134
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2135
+ VpcInformation: import_smithy_client._json
2136
+ });
2137
+ }, "de_Connector");
2138
+ var de_ConnectorList = /* @__PURE__ */ __name((output, context) => {
2139
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2140
+ return de_ConnectorSummary(entry, context);
2141
+ });
2142
+ return retVal;
2143
+ }, "de_ConnectorList");
2144
+ var de_ConnectorSummary = /* @__PURE__ */ __name((output, context) => {
2145
+ return (0, import_smithy_client.take)(output, {
2146
+ Arn: import_smithy_client.expectString,
2147
+ CertificateAuthorityArn: import_smithy_client.expectString,
2148
+ CertificateEnrollmentPolicyServerEndpoint: import_smithy_client.expectString,
2149
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2150
+ DirectoryId: import_smithy_client.expectString,
2151
+ Status: import_smithy_client.expectString,
2152
+ StatusReason: import_smithy_client.expectString,
2153
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2154
+ VpcInformation: import_smithy_client._json
2155
+ });
2156
+ }, "de_ConnectorSummary");
2157
+ var de_DirectoryRegistration = /* @__PURE__ */ __name((output, context) => {
2158
+ return (0, import_smithy_client.take)(output, {
2159
+ Arn: import_smithy_client.expectString,
2160
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2161
+ DirectoryId: import_smithy_client.expectString,
2162
+ Status: import_smithy_client.expectString,
2163
+ StatusReason: import_smithy_client.expectString,
2164
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2165
+ });
2166
+ }, "de_DirectoryRegistration");
2167
+ var de_DirectoryRegistrationList = /* @__PURE__ */ __name((output, context) => {
2168
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2169
+ return de_DirectoryRegistrationSummary(entry, context);
2170
+ });
2171
+ return retVal;
2172
+ }, "de_DirectoryRegistrationList");
2173
+ var de_DirectoryRegistrationSummary = /* @__PURE__ */ __name((output, context) => {
2174
+ return (0, import_smithy_client.take)(output, {
2175
+ Arn: import_smithy_client.expectString,
2176
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2177
+ DirectoryId: import_smithy_client.expectString,
2178
+ Status: import_smithy_client.expectString,
2179
+ StatusReason: import_smithy_client.expectString,
2180
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2181
+ });
2182
+ }, "de_DirectoryRegistrationSummary");
2183
+ var de_ServicePrincipalName = /* @__PURE__ */ __name((output, context) => {
2184
+ return (0, import_smithy_client.take)(output, {
2185
+ ConnectorArn: import_smithy_client.expectString,
2186
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2187
+ DirectoryRegistrationArn: import_smithy_client.expectString,
2188
+ Status: import_smithy_client.expectString,
2189
+ StatusReason: import_smithy_client.expectString,
2190
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2191
+ });
2192
+ }, "de_ServicePrincipalName");
2193
+ var de_ServicePrincipalNameList = /* @__PURE__ */ __name((output, context) => {
2194
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2195
+ return de_ServicePrincipalNameSummary(entry, context);
2196
+ });
2197
+ return retVal;
2198
+ }, "de_ServicePrincipalNameList");
2199
+ var de_ServicePrincipalNameSummary = /* @__PURE__ */ __name((output, context) => {
2200
+ return (0, import_smithy_client.take)(output, {
2201
+ ConnectorArn: import_smithy_client.expectString,
2202
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2203
+ DirectoryRegistrationArn: import_smithy_client.expectString,
2204
+ Status: import_smithy_client.expectString,
2205
+ StatusReason: import_smithy_client.expectString,
2206
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2207
+ });
2208
+ }, "de_ServicePrincipalNameSummary");
2209
+ var de_Template = /* @__PURE__ */ __name((output, context) => {
2210
+ return (0, import_smithy_client.take)(output, {
2211
+ Arn: import_smithy_client.expectString,
2212
+ ConnectorArn: import_smithy_client.expectString,
2213
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2214
+ Definition: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2215
+ Name: import_smithy_client.expectString,
2216
+ ObjectIdentifier: import_smithy_client.expectString,
2217
+ PolicySchema: import_smithy_client.expectInt32,
2218
+ Revision: import_smithy_client._json,
2219
+ Status: import_smithy_client.expectString,
2220
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2221
+ });
2222
+ }, "de_Template");
2223
+ var de_TemplateList = /* @__PURE__ */ __name((output, context) => {
2224
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2225
+ return de_TemplateSummary(entry, context);
2226
+ });
2227
+ return retVal;
2228
+ }, "de_TemplateList");
2229
+ var de_TemplateSummary = /* @__PURE__ */ __name((output, context) => {
2230
+ return (0, import_smithy_client.take)(output, {
2231
+ Arn: import_smithy_client.expectString,
2232
+ ConnectorArn: import_smithy_client.expectString,
2233
+ CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
2234
+ Definition: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2235
+ Name: import_smithy_client.expectString,
2236
+ ObjectIdentifier: import_smithy_client.expectString,
2237
+ PolicySchema: import_smithy_client.expectInt32,
2238
+ Revision: import_smithy_client._json,
2239
+ Status: import_smithy_client.expectString,
2240
+ UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
2241
+ });
2242
+ }, "de_TemplateSummary");
2243
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2244
+ httpStatusCode: output.statusCode,
2245
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2246
+ extendedRequestId: output.headers["x-amz-id-2"],
2247
+ cfId: output.headers["x-amz-cf-id"]
2248
+ }), "deserializeMetadata");
2249
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2250
+ var _CA = "ConnectorArn";
2251
+ var _MR = "MaxResults";
2252
+ var _NT = "NextToken";
2253
+ var _TK = "TagKeys";
2254
+ var _tK = "tagKeys";
2255
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2256
+ if (encoded.length) {
2257
+ return JSON.parse(encoded);
2258
+ }
2259
+ return {};
2260
+ }), "parseBody");
2261
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2262
+ const value = await parseBody(errorBody, context);
2263
+ value.message = value.message ?? value.Message;
2264
+ return value;
2265
+ }, "parseErrorBody");
2266
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2267
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2268
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2269
+ let cleanValue = rawValue;
2270
+ if (typeof cleanValue === "number") {
2271
+ cleanValue = cleanValue.toString();
2272
+ }
2273
+ if (cleanValue.indexOf(",") >= 0) {
2274
+ cleanValue = cleanValue.split(",")[0];
2275
+ }
2276
+ if (cleanValue.indexOf(":") >= 0) {
2277
+ cleanValue = cleanValue.split(":")[0];
2278
+ }
2279
+ if (cleanValue.indexOf("#") >= 0) {
2280
+ cleanValue = cleanValue.split("#")[1];
2281
+ }
2282
+ return cleanValue;
2283
+ }, "sanitizeErrorCode");
2284
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2285
+ if (headerKey !== void 0) {
2286
+ return sanitizeErrorCode(output.headers[headerKey]);
2287
+ }
2288
+ if (data.code !== void 0) {
2289
+ return sanitizeErrorCode(data.code);
2290
+ }
2291
+ if (data["__type"] !== void 0) {
2292
+ return sanitizeErrorCode(data["__type"]);
2293
+ }
2294
+ }, "loadRestJsonErrorCode");
2295
+
2296
+ // src/commands/CreateConnectorCommand.ts
2297
+ var _CreateConnectorCommand = class _CreateConnectorCommand extends import_smithy_client.Command.classBuilder().ep({
2298
+ ...commonParams
2299
+ }).m(function(Command, cs, config, o) {
2300
+ return [
2301
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2302
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2303
+ ];
2304
+ }).s("PcaConnectorAd", "CreateConnector", {}).n("PcaConnectorAdClient", "CreateConnectorCommand").f(void 0, void 0).ser(se_CreateConnectorCommand).de(de_CreateConnectorCommand).build() {
2305
+ };
2306
+ __name(_CreateConnectorCommand, "CreateConnectorCommand");
2307
+ var CreateConnectorCommand = _CreateConnectorCommand;
2308
+
2309
+ // src/commands/CreateDirectoryRegistrationCommand.ts
2310
+
2311
+
2312
+
2313
+
2314
+ var _CreateDirectoryRegistrationCommand = class _CreateDirectoryRegistrationCommand extends import_smithy_client.Command.classBuilder().ep({
2315
+ ...commonParams
2316
+ }).m(function(Command, cs, config, o) {
2317
+ return [
2318
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2319
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2320
+ ];
2321
+ }).s("PcaConnectorAd", "CreateDirectoryRegistration", {}).n("PcaConnectorAdClient", "CreateDirectoryRegistrationCommand").f(void 0, void 0).ser(se_CreateDirectoryRegistrationCommand).de(de_CreateDirectoryRegistrationCommand).build() {
2322
+ };
2323
+ __name(_CreateDirectoryRegistrationCommand, "CreateDirectoryRegistrationCommand");
2324
+ var CreateDirectoryRegistrationCommand = _CreateDirectoryRegistrationCommand;
2325
+
2326
+ // src/commands/CreateServicePrincipalNameCommand.ts
2327
+
2328
+
2329
+
2330
+
2331
+ var _CreateServicePrincipalNameCommand = class _CreateServicePrincipalNameCommand extends import_smithy_client.Command.classBuilder().ep({
2332
+ ...commonParams
2333
+ }).m(function(Command, cs, config, o) {
2334
+ return [
2335
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2336
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2337
+ ];
2338
+ }).s("PcaConnectorAd", "CreateServicePrincipalName", {}).n("PcaConnectorAdClient", "CreateServicePrincipalNameCommand").f(void 0, void 0).ser(se_CreateServicePrincipalNameCommand).de(de_CreateServicePrincipalNameCommand).build() {
2339
+ };
2340
+ __name(_CreateServicePrincipalNameCommand, "CreateServicePrincipalNameCommand");
2341
+ var CreateServicePrincipalNameCommand = _CreateServicePrincipalNameCommand;
2342
+
2343
+ // src/commands/CreateTemplateCommand.ts
2344
+
2345
+
2346
+
2347
+
2348
+ var _CreateTemplateCommand = class _CreateTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2349
+ ...commonParams
2350
+ }).m(function(Command, cs, config, o) {
2351
+ return [
2352
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2353
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2354
+ ];
2355
+ }).s("PcaConnectorAd", "CreateTemplate", {}).n("PcaConnectorAdClient", "CreateTemplateCommand").f(void 0, void 0).ser(se_CreateTemplateCommand).de(de_CreateTemplateCommand).build() {
2356
+ };
2357
+ __name(_CreateTemplateCommand, "CreateTemplateCommand");
2358
+ var CreateTemplateCommand = _CreateTemplateCommand;
2359
+
2360
+ // src/commands/CreateTemplateGroupAccessControlEntryCommand.ts
2361
+
2362
+
2363
+
2364
+
2365
+ var _CreateTemplateGroupAccessControlEntryCommand = class _CreateTemplateGroupAccessControlEntryCommand extends import_smithy_client.Command.classBuilder().ep({
2366
+ ...commonParams
2367
+ }).m(function(Command, cs, config, o) {
2368
+ return [
2369
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2370
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2371
+ ];
2372
+ }).s("PcaConnectorAd", "CreateTemplateGroupAccessControlEntry", {}).n("PcaConnectorAdClient", "CreateTemplateGroupAccessControlEntryCommand").f(void 0, void 0).ser(se_CreateTemplateGroupAccessControlEntryCommand).de(de_CreateTemplateGroupAccessControlEntryCommand).build() {
2373
+ };
2374
+ __name(_CreateTemplateGroupAccessControlEntryCommand, "CreateTemplateGroupAccessControlEntryCommand");
2375
+ var CreateTemplateGroupAccessControlEntryCommand = _CreateTemplateGroupAccessControlEntryCommand;
2376
+
2377
+ // src/commands/DeleteConnectorCommand.ts
2378
+
2379
+
2380
+
2381
+
2382
+ var _DeleteConnectorCommand = class _DeleteConnectorCommand extends import_smithy_client.Command.classBuilder().ep({
2383
+ ...commonParams
2384
+ }).m(function(Command, cs, config, o) {
2385
+ return [
2386
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2387
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2388
+ ];
2389
+ }).s("PcaConnectorAd", "DeleteConnector", {}).n("PcaConnectorAdClient", "DeleteConnectorCommand").f(void 0, void 0).ser(se_DeleteConnectorCommand).de(de_DeleteConnectorCommand).build() {
2390
+ };
2391
+ __name(_DeleteConnectorCommand, "DeleteConnectorCommand");
2392
+ var DeleteConnectorCommand = _DeleteConnectorCommand;
2393
+
2394
+ // src/commands/DeleteDirectoryRegistrationCommand.ts
2395
+
2396
+
2397
+
2398
+
2399
+ var _DeleteDirectoryRegistrationCommand = class _DeleteDirectoryRegistrationCommand extends import_smithy_client.Command.classBuilder().ep({
2400
+ ...commonParams
2401
+ }).m(function(Command, cs, config, o) {
2402
+ return [
2403
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2404
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2405
+ ];
2406
+ }).s("PcaConnectorAd", "DeleteDirectoryRegistration", {}).n("PcaConnectorAdClient", "DeleteDirectoryRegistrationCommand").f(void 0, void 0).ser(se_DeleteDirectoryRegistrationCommand).de(de_DeleteDirectoryRegistrationCommand).build() {
2407
+ };
2408
+ __name(_DeleteDirectoryRegistrationCommand, "DeleteDirectoryRegistrationCommand");
2409
+ var DeleteDirectoryRegistrationCommand = _DeleteDirectoryRegistrationCommand;
2410
+
2411
+ // src/commands/DeleteServicePrincipalNameCommand.ts
2412
+
2413
+
2414
+
2415
+
2416
+ var _DeleteServicePrincipalNameCommand = class _DeleteServicePrincipalNameCommand extends import_smithy_client.Command.classBuilder().ep({
2417
+ ...commonParams
2418
+ }).m(function(Command, cs, config, o) {
2419
+ return [
2420
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2421
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2422
+ ];
2423
+ }).s("PcaConnectorAd", "DeleteServicePrincipalName", {}).n("PcaConnectorAdClient", "DeleteServicePrincipalNameCommand").f(void 0, void 0).ser(se_DeleteServicePrincipalNameCommand).de(de_DeleteServicePrincipalNameCommand).build() {
2424
+ };
2425
+ __name(_DeleteServicePrincipalNameCommand, "DeleteServicePrincipalNameCommand");
2426
+ var DeleteServicePrincipalNameCommand = _DeleteServicePrincipalNameCommand;
2427
+
2428
+ // src/commands/DeleteTemplateCommand.ts
2429
+
2430
+
2431
+
2432
+
2433
+ var _DeleteTemplateCommand = class _DeleteTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2434
+ ...commonParams
2435
+ }).m(function(Command, cs, config, o) {
2436
+ return [
2437
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2438
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2439
+ ];
2440
+ }).s("PcaConnectorAd", "DeleteTemplate", {}).n("PcaConnectorAdClient", "DeleteTemplateCommand").f(void 0, void 0).ser(se_DeleteTemplateCommand).de(de_DeleteTemplateCommand).build() {
2441
+ };
2442
+ __name(_DeleteTemplateCommand, "DeleteTemplateCommand");
2443
+ var DeleteTemplateCommand = _DeleteTemplateCommand;
2444
+
2445
+ // src/commands/DeleteTemplateGroupAccessControlEntryCommand.ts
2446
+
2447
+
2448
+
2449
+
2450
+ var _DeleteTemplateGroupAccessControlEntryCommand = class _DeleteTemplateGroupAccessControlEntryCommand extends import_smithy_client.Command.classBuilder().ep({
2451
+ ...commonParams
2452
+ }).m(function(Command, cs, config, o) {
2453
+ return [
2454
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2455
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2456
+ ];
2457
+ }).s("PcaConnectorAd", "DeleteTemplateGroupAccessControlEntry", {}).n("PcaConnectorAdClient", "DeleteTemplateGroupAccessControlEntryCommand").f(void 0, void 0).ser(se_DeleteTemplateGroupAccessControlEntryCommand).de(de_DeleteTemplateGroupAccessControlEntryCommand).build() {
2458
+ };
2459
+ __name(_DeleteTemplateGroupAccessControlEntryCommand, "DeleteTemplateGroupAccessControlEntryCommand");
2460
+ var DeleteTemplateGroupAccessControlEntryCommand = _DeleteTemplateGroupAccessControlEntryCommand;
2461
+
2462
+ // src/commands/GetConnectorCommand.ts
2463
+
2464
+
2465
+
2466
+
2467
+ var _GetConnectorCommand = class _GetConnectorCommand extends import_smithy_client.Command.classBuilder().ep({
2468
+ ...commonParams
2469
+ }).m(function(Command, cs, config, o) {
2470
+ return [
2471
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2472
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2473
+ ];
2474
+ }).s("PcaConnectorAd", "GetConnector", {}).n("PcaConnectorAdClient", "GetConnectorCommand").f(void 0, void 0).ser(se_GetConnectorCommand).de(de_GetConnectorCommand).build() {
2475
+ };
2476
+ __name(_GetConnectorCommand, "GetConnectorCommand");
2477
+ var GetConnectorCommand = _GetConnectorCommand;
2478
+
2479
+ // src/commands/GetDirectoryRegistrationCommand.ts
2480
+
2481
+
2482
+
2483
+
2484
+ var _GetDirectoryRegistrationCommand = class _GetDirectoryRegistrationCommand extends import_smithy_client.Command.classBuilder().ep({
2485
+ ...commonParams
2486
+ }).m(function(Command, cs, config, o) {
2487
+ return [
2488
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2489
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2490
+ ];
2491
+ }).s("PcaConnectorAd", "GetDirectoryRegistration", {}).n("PcaConnectorAdClient", "GetDirectoryRegistrationCommand").f(void 0, void 0).ser(se_GetDirectoryRegistrationCommand).de(de_GetDirectoryRegistrationCommand).build() {
2492
+ };
2493
+ __name(_GetDirectoryRegistrationCommand, "GetDirectoryRegistrationCommand");
2494
+ var GetDirectoryRegistrationCommand = _GetDirectoryRegistrationCommand;
2495
+
2496
+ // src/commands/GetServicePrincipalNameCommand.ts
2497
+
2498
+
2499
+
2500
+
2501
+ var _GetServicePrincipalNameCommand = class _GetServicePrincipalNameCommand extends import_smithy_client.Command.classBuilder().ep({
2502
+ ...commonParams
2503
+ }).m(function(Command, cs, config, o) {
2504
+ return [
2505
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2506
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2507
+ ];
2508
+ }).s("PcaConnectorAd", "GetServicePrincipalName", {}).n("PcaConnectorAdClient", "GetServicePrincipalNameCommand").f(void 0, void 0).ser(se_GetServicePrincipalNameCommand).de(de_GetServicePrincipalNameCommand).build() {
2509
+ };
2510
+ __name(_GetServicePrincipalNameCommand, "GetServicePrincipalNameCommand");
2511
+ var GetServicePrincipalNameCommand = _GetServicePrincipalNameCommand;
2512
+
2513
+ // src/commands/GetTemplateCommand.ts
2514
+
2515
+
2516
+
2517
+
2518
+ var _GetTemplateCommand = class _GetTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2519
+ ...commonParams
2520
+ }).m(function(Command, cs, config, o) {
2521
+ return [
2522
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2523
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2524
+ ];
2525
+ }).s("PcaConnectorAd", "GetTemplate", {}).n("PcaConnectorAdClient", "GetTemplateCommand").f(void 0, void 0).ser(se_GetTemplateCommand).de(de_GetTemplateCommand).build() {
2526
+ };
2527
+ __name(_GetTemplateCommand, "GetTemplateCommand");
2528
+ var GetTemplateCommand = _GetTemplateCommand;
2529
+
2530
+ // src/commands/GetTemplateGroupAccessControlEntryCommand.ts
2531
+
2532
+
2533
+
2534
+
2535
+ var _GetTemplateGroupAccessControlEntryCommand = class _GetTemplateGroupAccessControlEntryCommand extends import_smithy_client.Command.classBuilder().ep({
2536
+ ...commonParams
2537
+ }).m(function(Command, cs, config, o) {
2538
+ return [
2539
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2540
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2541
+ ];
2542
+ }).s("PcaConnectorAd", "GetTemplateGroupAccessControlEntry", {}).n("PcaConnectorAdClient", "GetTemplateGroupAccessControlEntryCommand").f(void 0, void 0).ser(se_GetTemplateGroupAccessControlEntryCommand).de(de_GetTemplateGroupAccessControlEntryCommand).build() {
2543
+ };
2544
+ __name(_GetTemplateGroupAccessControlEntryCommand, "GetTemplateGroupAccessControlEntryCommand");
2545
+ var GetTemplateGroupAccessControlEntryCommand = _GetTemplateGroupAccessControlEntryCommand;
2546
+
2547
+ // src/commands/ListConnectorsCommand.ts
2548
+
2549
+
2550
+
2551
+
2552
+ var _ListConnectorsCommand = class _ListConnectorsCommand extends import_smithy_client.Command.classBuilder().ep({
2553
+ ...commonParams
2554
+ }).m(function(Command, cs, config, o) {
2555
+ return [
2556
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2557
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2558
+ ];
2559
+ }).s("PcaConnectorAd", "ListConnectors", {}).n("PcaConnectorAdClient", "ListConnectorsCommand").f(void 0, void 0).ser(se_ListConnectorsCommand).de(de_ListConnectorsCommand).build() {
2560
+ };
2561
+ __name(_ListConnectorsCommand, "ListConnectorsCommand");
2562
+ var ListConnectorsCommand = _ListConnectorsCommand;
2563
+
2564
+ // src/commands/ListDirectoryRegistrationsCommand.ts
2565
+
2566
+
2567
+
2568
+
2569
+ var _ListDirectoryRegistrationsCommand = class _ListDirectoryRegistrationsCommand extends import_smithy_client.Command.classBuilder().ep({
2570
+ ...commonParams
2571
+ }).m(function(Command, cs, config, o) {
2572
+ return [
2573
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2574
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2575
+ ];
2576
+ }).s("PcaConnectorAd", "ListDirectoryRegistrations", {}).n("PcaConnectorAdClient", "ListDirectoryRegistrationsCommand").f(void 0, void 0).ser(se_ListDirectoryRegistrationsCommand).de(de_ListDirectoryRegistrationsCommand).build() {
2577
+ };
2578
+ __name(_ListDirectoryRegistrationsCommand, "ListDirectoryRegistrationsCommand");
2579
+ var ListDirectoryRegistrationsCommand = _ListDirectoryRegistrationsCommand;
2580
+
2581
+ // src/commands/ListServicePrincipalNamesCommand.ts
2582
+
2583
+
2584
+
2585
+
2586
+ var _ListServicePrincipalNamesCommand = class _ListServicePrincipalNamesCommand extends import_smithy_client.Command.classBuilder().ep({
2587
+ ...commonParams
2588
+ }).m(function(Command, cs, config, o) {
2589
+ return [
2590
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2591
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2592
+ ];
2593
+ }).s("PcaConnectorAd", "ListServicePrincipalNames", {}).n("PcaConnectorAdClient", "ListServicePrincipalNamesCommand").f(void 0, void 0).ser(se_ListServicePrincipalNamesCommand).de(de_ListServicePrincipalNamesCommand).build() {
2594
+ };
2595
+ __name(_ListServicePrincipalNamesCommand, "ListServicePrincipalNamesCommand");
2596
+ var ListServicePrincipalNamesCommand = _ListServicePrincipalNamesCommand;
2597
+
2598
+ // src/commands/ListTagsForResourceCommand.ts
2599
+
2600
+
2601
+
2602
+
2603
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2604
+ ...commonParams
2605
+ }).m(function(Command, cs, config, o) {
2606
+ return [
2607
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2608
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2609
+ ];
2610
+ }).s("PcaConnectorAd", "ListTagsForResource", {}).n("PcaConnectorAdClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2611
+ };
2612
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2613
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2614
+
2615
+ // src/commands/ListTemplateGroupAccessControlEntriesCommand.ts
2616
+
2617
+
2618
+
2619
+
2620
+ var _ListTemplateGroupAccessControlEntriesCommand = class _ListTemplateGroupAccessControlEntriesCommand extends import_smithy_client.Command.classBuilder().ep({
2621
+ ...commonParams
2622
+ }).m(function(Command, cs, config, o) {
2623
+ return [
2624
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2625
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2626
+ ];
2627
+ }).s("PcaConnectorAd", "ListTemplateGroupAccessControlEntries", {}).n("PcaConnectorAdClient", "ListTemplateGroupAccessControlEntriesCommand").f(void 0, void 0).ser(se_ListTemplateGroupAccessControlEntriesCommand).de(de_ListTemplateGroupAccessControlEntriesCommand).build() {
2628
+ };
2629
+ __name(_ListTemplateGroupAccessControlEntriesCommand, "ListTemplateGroupAccessControlEntriesCommand");
2630
+ var ListTemplateGroupAccessControlEntriesCommand = _ListTemplateGroupAccessControlEntriesCommand;
2631
+
2632
+ // src/commands/ListTemplatesCommand.ts
2633
+
2634
+
2635
+
2636
+
2637
+ var _ListTemplatesCommand = class _ListTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
2638
+ ...commonParams
2639
+ }).m(function(Command, cs, config, o) {
2640
+ return [
2641
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2642
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2643
+ ];
2644
+ }).s("PcaConnectorAd", "ListTemplates", {}).n("PcaConnectorAdClient", "ListTemplatesCommand").f(void 0, void 0).ser(se_ListTemplatesCommand).de(de_ListTemplatesCommand).build() {
2645
+ };
2646
+ __name(_ListTemplatesCommand, "ListTemplatesCommand");
2647
+ var ListTemplatesCommand = _ListTemplatesCommand;
2648
+
2649
+ // src/commands/TagResourceCommand.ts
2650
+
2651
+
2652
+
2653
+
2654
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2655
+ ...commonParams
2656
+ }).m(function(Command, cs, config, o) {
2657
+ return [
2658
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2659
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2660
+ ];
2661
+ }).s("PcaConnectorAd", "TagResource", {}).n("PcaConnectorAdClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2662
+ };
2663
+ __name(_TagResourceCommand, "TagResourceCommand");
2664
+ var TagResourceCommand = _TagResourceCommand;
2665
+
2666
+ // src/commands/UntagResourceCommand.ts
2667
+
2668
+
2669
+
2670
+
2671
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2672
+ ...commonParams
2673
+ }).m(function(Command, cs, config, o) {
2674
+ return [
2675
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2676
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2677
+ ];
2678
+ }).s("PcaConnectorAd", "UntagResource", {}).n("PcaConnectorAdClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2679
+ };
2680
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2681
+ var UntagResourceCommand = _UntagResourceCommand;
2682
+
2683
+ // src/commands/UpdateTemplateCommand.ts
2684
+
2685
+
2686
+
2687
+
2688
+ var _UpdateTemplateCommand = class _UpdateTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2689
+ ...commonParams
2690
+ }).m(function(Command, cs, config, o) {
2691
+ return [
2692
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2693
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2694
+ ];
2695
+ }).s("PcaConnectorAd", "UpdateTemplate", {}).n("PcaConnectorAdClient", "UpdateTemplateCommand").f(void 0, void 0).ser(se_UpdateTemplateCommand).de(de_UpdateTemplateCommand).build() {
2696
+ };
2697
+ __name(_UpdateTemplateCommand, "UpdateTemplateCommand");
2698
+ var UpdateTemplateCommand = _UpdateTemplateCommand;
2699
+
2700
+ // src/commands/UpdateTemplateGroupAccessControlEntryCommand.ts
2701
+
2702
+
2703
+
2704
+
2705
+ var _UpdateTemplateGroupAccessControlEntryCommand = class _UpdateTemplateGroupAccessControlEntryCommand extends import_smithy_client.Command.classBuilder().ep({
2706
+ ...commonParams
2707
+ }).m(function(Command, cs, config, o) {
2708
+ return [
2709
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2710
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2711
+ ];
2712
+ }).s("PcaConnectorAd", "UpdateTemplateGroupAccessControlEntry", {}).n("PcaConnectorAdClient", "UpdateTemplateGroupAccessControlEntryCommand").f(void 0, void 0).ser(se_UpdateTemplateGroupAccessControlEntryCommand).de(de_UpdateTemplateGroupAccessControlEntryCommand).build() {
2713
+ };
2714
+ __name(_UpdateTemplateGroupAccessControlEntryCommand, "UpdateTemplateGroupAccessControlEntryCommand");
2715
+ var UpdateTemplateGroupAccessControlEntryCommand = _UpdateTemplateGroupAccessControlEntryCommand;
2716
+
2717
+ // src/PcaConnectorAd.ts
2718
+ var commands = {
2719
+ CreateConnectorCommand,
2720
+ CreateDirectoryRegistrationCommand,
2721
+ CreateServicePrincipalNameCommand,
2722
+ CreateTemplateCommand,
2723
+ CreateTemplateGroupAccessControlEntryCommand,
2724
+ DeleteConnectorCommand,
2725
+ DeleteDirectoryRegistrationCommand,
2726
+ DeleteServicePrincipalNameCommand,
2727
+ DeleteTemplateCommand,
2728
+ DeleteTemplateGroupAccessControlEntryCommand,
2729
+ GetConnectorCommand,
2730
+ GetDirectoryRegistrationCommand,
2731
+ GetServicePrincipalNameCommand,
2732
+ GetTemplateCommand,
2733
+ GetTemplateGroupAccessControlEntryCommand,
2734
+ ListConnectorsCommand,
2735
+ ListDirectoryRegistrationsCommand,
2736
+ ListServicePrincipalNamesCommand,
2737
+ ListTagsForResourceCommand,
2738
+ ListTemplateGroupAccessControlEntriesCommand,
2739
+ ListTemplatesCommand,
2740
+ TagResourceCommand,
2741
+ UntagResourceCommand,
2742
+ UpdateTemplateCommand,
2743
+ UpdateTemplateGroupAccessControlEntryCommand
2744
+ };
2745
+ var _PcaConnectorAd = class _PcaConnectorAd extends PcaConnectorAdClient {
2746
+ };
2747
+ __name(_PcaConnectorAd, "PcaConnectorAd");
2748
+ var PcaConnectorAd = _PcaConnectorAd;
2749
+ (0, import_smithy_client.createAggregatedClient)(commands, PcaConnectorAd);
2750
+
2751
+ // src/pagination/ListConnectorsPaginator.ts
2752
+ var import_core3 = require("@smithy/core");
2753
+ var paginateListConnectors = (0, import_core3.createPaginator)(PcaConnectorAdClient, ListConnectorsCommand, "NextToken", "NextToken", "MaxResults");
2754
+
2755
+ // src/pagination/ListDirectoryRegistrationsPaginator.ts
2756
+ var import_core4 = require("@smithy/core");
2757
+ var paginateListDirectoryRegistrations = (0, import_core4.createPaginator)(PcaConnectorAdClient, ListDirectoryRegistrationsCommand, "NextToken", "NextToken", "MaxResults");
2758
+
2759
+ // src/pagination/ListServicePrincipalNamesPaginator.ts
2760
+ var import_core5 = require("@smithy/core");
2761
+ var paginateListServicePrincipalNames = (0, import_core5.createPaginator)(PcaConnectorAdClient, ListServicePrincipalNamesCommand, "NextToken", "NextToken", "MaxResults");
2762
+
2763
+ // src/pagination/ListTemplateGroupAccessControlEntriesPaginator.ts
2764
+ var import_core6 = require("@smithy/core");
2765
+ var paginateListTemplateGroupAccessControlEntries = (0, import_core6.createPaginator)(PcaConnectorAdClient, ListTemplateGroupAccessControlEntriesCommand, "NextToken", "NextToken", "MaxResults");
2766
+
2767
+ // src/pagination/ListTemplatesPaginator.ts
2768
+ var import_core7 = require("@smithy/core");
2769
+ var paginateListTemplates = (0, import_core7.createPaginator)(PcaConnectorAdClient, ListTemplatesCommand, "NextToken", "NextToken", "MaxResults");
2770
+
2771
+ // src/index.ts
2772
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2773
+ // Annotate the CommonJS export names for ESM import in node:
2774
+ 0 && (module.exports = {
2775
+ AccessDeniedException,
2776
+ AccessRight,
2777
+ ApplicationPolicy,
2778
+ ApplicationPolicyType,
2779
+ ClientCompatibilityV2,
2780
+ ClientCompatibilityV3,
2781
+ ClientCompatibilityV4,
2782
+ ConflictException,
2783
+ ConnectorStatus,
2784
+ ConnectorStatusReason,
2785
+ CreateConnectorCommand,
2786
+ CreateDirectoryRegistrationCommand,
2787
+ CreateServicePrincipalNameCommand,
2788
+ CreateTemplateCommand,
2789
+ CreateTemplateGroupAccessControlEntryCommand,
2790
+ DeleteConnectorCommand,
2791
+ DeleteDirectoryRegistrationCommand,
2792
+ DeleteServicePrincipalNameCommand,
2793
+ DeleteTemplateCommand,
2794
+ DeleteTemplateGroupAccessControlEntryCommand,
2795
+ DirectoryRegistrationStatus,
2796
+ DirectoryRegistrationStatusReason,
2797
+ GetConnectorCommand,
2798
+ GetDirectoryRegistrationCommand,
2799
+ GetServicePrincipalNameCommand,
2800
+ GetTemplateCommand,
2801
+ GetTemplateGroupAccessControlEntryCommand,
2802
+ HashAlgorithm,
2803
+ InternalServerException,
2804
+ KeySpec,
2805
+ KeyUsageProperty,
2806
+ KeyUsagePropertyType,
2807
+ ListConnectorsCommand,
2808
+ ListDirectoryRegistrationsCommand,
2809
+ ListServicePrincipalNamesCommand,
2810
+ ListTagsForResourceCommand,
2811
+ ListTemplateGroupAccessControlEntriesCommand,
2812
+ ListTemplatesCommand,
2813
+ PcaConnectorAd,
2814
+ PcaConnectorAdClient,
2815
+ PcaConnectorAdServiceException,
2816
+ PrivateKeyAlgorithm,
2817
+ ResourceNotFoundException,
2818
+ ServicePrincipalNameStatus,
2819
+ ServicePrincipalNameStatusReason,
2820
+ ServiceQuotaExceededException,
2821
+ TagResourceCommand,
2822
+ TemplateDefinition,
2823
+ TemplateStatus,
2824
+ ThrottlingException,
2825
+ UntagResourceCommand,
2826
+ UpdateTemplateCommand,
2827
+ UpdateTemplateGroupAccessControlEntryCommand,
2828
+ ValidationException,
2829
+ ValidationExceptionReason,
2830
+ ValidityPeriodType,
2831
+ __Client,
2832
+ paginateListConnectors,
2833
+ paginateListDirectoryRegistrations,
2834
+ paginateListServicePrincipalNames,
2835
+ paginateListTemplateGroupAccessControlEntries,
2836
+ paginateListTemplates
2837
+ });