@aws-sdk/client-rolesanywhere 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 (46) hide show
  1. package/dist-cjs/RolesAnywhere.js +1 -67
  2. package/dist-cjs/RolesAnywhereClient.js +1 -43
  3. package/dist-cjs/commands/CreateProfileCommand.js +1 -29
  4. package/dist-cjs/commands/CreateTrustAnchorCommand.js +1 -29
  5. package/dist-cjs/commands/DeleteCrlCommand.js +1 -28
  6. package/dist-cjs/commands/DeleteProfileCommand.js +1 -28
  7. package/dist-cjs/commands/DeleteTrustAnchorCommand.js +1 -28
  8. package/dist-cjs/commands/DisableCrlCommand.js +1 -28
  9. package/dist-cjs/commands/DisableProfileCommand.js +1 -28
  10. package/dist-cjs/commands/DisableTrustAnchorCommand.js +1 -28
  11. package/dist-cjs/commands/EnableCrlCommand.js +1 -28
  12. package/dist-cjs/commands/EnableProfileCommand.js +1 -28
  13. package/dist-cjs/commands/EnableTrustAnchorCommand.js +1 -28
  14. package/dist-cjs/commands/GetCrlCommand.js +1 -28
  15. package/dist-cjs/commands/GetProfileCommand.js +1 -28
  16. package/dist-cjs/commands/GetSubjectCommand.js +1 -28
  17. package/dist-cjs/commands/GetTrustAnchorCommand.js +1 -28
  18. package/dist-cjs/commands/ImportCrlCommand.js +1 -29
  19. package/dist-cjs/commands/ListCrlsCommand.js +1 -28
  20. package/dist-cjs/commands/ListProfilesCommand.js +1 -28
  21. package/dist-cjs/commands/ListSubjectsCommand.js +1 -28
  22. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
  23. package/dist-cjs/commands/ListTrustAnchorsCommand.js +1 -28
  24. package/dist-cjs/commands/PutNotificationSettingsCommand.js +1 -28
  25. package/dist-cjs/commands/ResetNotificationSettingsCommand.js +1 -28
  26. package/dist-cjs/commands/TagResourceCommand.js +1 -29
  27. package/dist-cjs/commands/UntagResourceCommand.js +1 -29
  28. package/dist-cjs/commands/UpdateCrlCommand.js +1 -28
  29. package/dist-cjs/commands/UpdateProfileCommand.js +1 -28
  30. package/dist-cjs/commands/UpdateTrustAnchorCommand.js +1 -28
  31. package/dist-cjs/commands/index.js +1 -31
  32. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  33. package/dist-cjs/extensionConfiguration.js +1 -2
  34. package/dist-cjs/index.js +2499 -11
  35. package/dist-cjs/models/RolesAnywhereServiceException.js +1 -12
  36. package/dist-cjs/models/index.js +1 -4
  37. package/dist-cjs/models/models_0.js +1 -116
  38. package/dist-cjs/pagination/Interfaces.js +1 -2
  39. package/dist-cjs/pagination/ListCrlsPaginator.js +1 -7
  40. package/dist-cjs/pagination/ListProfilesPaginator.js +1 -7
  41. package/dist-cjs/pagination/ListSubjectsPaginator.js +1 -7
  42. package/dist-cjs/pagination/ListTrustAnchorsPaginator.js +1 -7
  43. package/dist-cjs/pagination/index.js +1 -8
  44. package/dist-cjs/protocols/Aws_restJson1.js +1 -1666
  45. package/dist-cjs/runtimeExtensions.js +1 -22
  46. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,2500 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RolesAnywhereServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./RolesAnywhereClient"), exports);
6
- tslib_1.__exportStar(require("./RolesAnywhere"), 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 RolesAnywhereServiceException_1 = require("./models/RolesAnywhereServiceException");
12
- Object.defineProperty(exports, "RolesAnywhereServiceException", { enumerable: true, get: function () { return RolesAnywhereServiceException_1.RolesAnywhereServiceException; } });
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
+ CreateProfileCommand: () => CreateProfileCommand,
26
+ CreateProfileRequestFilterSensitiveLog: () => CreateProfileRequestFilterSensitiveLog,
27
+ CreateTrustAnchorCommand: () => CreateTrustAnchorCommand,
28
+ CreateTrustAnchorRequestFilterSensitiveLog: () => CreateTrustAnchorRequestFilterSensitiveLog,
29
+ DeleteCrlCommand: () => DeleteCrlCommand,
30
+ DeleteProfileCommand: () => DeleteProfileCommand,
31
+ DeleteTrustAnchorCommand: () => DeleteTrustAnchorCommand,
32
+ DisableCrlCommand: () => DisableCrlCommand,
33
+ DisableProfileCommand: () => DisableProfileCommand,
34
+ DisableTrustAnchorCommand: () => DisableTrustAnchorCommand,
35
+ EnableCrlCommand: () => EnableCrlCommand,
36
+ EnableProfileCommand: () => EnableProfileCommand,
37
+ EnableTrustAnchorCommand: () => EnableTrustAnchorCommand,
38
+ GetCrlCommand: () => GetCrlCommand,
39
+ GetProfileCommand: () => GetProfileCommand,
40
+ GetSubjectCommand: () => GetSubjectCommand,
41
+ GetTrustAnchorCommand: () => GetTrustAnchorCommand,
42
+ ImportCrlCommand: () => ImportCrlCommand,
43
+ ImportCrlRequestFilterSensitiveLog: () => ImportCrlRequestFilterSensitiveLog,
44
+ ListCrlsCommand: () => ListCrlsCommand,
45
+ ListProfilesCommand: () => ListProfilesCommand,
46
+ ListSubjectsCommand: () => ListSubjectsCommand,
47
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
48
+ ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
49
+ ListTrustAnchorsCommand: () => ListTrustAnchorsCommand,
50
+ NotificationChannel: () => NotificationChannel,
51
+ NotificationEvent: () => NotificationEvent,
52
+ PutNotificationSettingsCommand: () => PutNotificationSettingsCommand,
53
+ ResetNotificationSettingsCommand: () => ResetNotificationSettingsCommand,
54
+ ResourceNotFoundException: () => ResourceNotFoundException,
55
+ RolesAnywhere: () => RolesAnywhere,
56
+ RolesAnywhereClient: () => RolesAnywhereClient,
57
+ RolesAnywhereServiceException: () => RolesAnywhereServiceException,
58
+ SourceData: () => SourceData,
59
+ TagFilterSensitiveLog: () => TagFilterSensitiveLog,
60
+ TagResourceCommand: () => TagResourceCommand,
61
+ TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
62
+ TooManyTagsException: () => TooManyTagsException,
63
+ TrustAnchorType: () => TrustAnchorType,
64
+ UntagResourceCommand: () => UntagResourceCommand,
65
+ UntagResourceRequestFilterSensitiveLog: () => UntagResourceRequestFilterSensitiveLog,
66
+ UpdateCrlCommand: () => UpdateCrlCommand,
67
+ UpdateProfileCommand: () => UpdateProfileCommand,
68
+ UpdateTrustAnchorCommand: () => UpdateTrustAnchorCommand,
69
+ ValidationException: () => ValidationException,
70
+ __Client: () => import_smithy_client.Client,
71
+ paginateListCrls: () => paginateListCrls,
72
+ paginateListProfiles: () => paginateListProfiles,
73
+ paginateListSubjects: () => paginateListSubjects,
74
+ paginateListTrustAnchors: () => paginateListTrustAnchors
75
+ });
76
+ module.exports = __toCommonJS(src_exports);
77
+
78
+ // src/RolesAnywhereClient.ts
79
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
80
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
81
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
82
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
83
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
84
+ var import_config_resolver = require("@smithy/config-resolver");
85
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
86
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
87
+ var import_middleware_retry = require("@smithy/middleware-retry");
88
+
89
+
90
+ // src/endpoint/EndpointParameters.ts
91
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
92
+ return {
93
+ ...options,
94
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
95
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
96
+ defaultSigningName: "rolesanywhere"
97
+ };
98
+ }, "resolveClientEndpointParameters");
99
+ var commonParams = {
100
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
101
+ Endpoint: { type: "builtInParams", name: "endpoint" },
102
+ Region: { type: "builtInParams", name: "region" },
103
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
104
+ };
105
+
106
+ // src/RolesAnywhereClient.ts
107
+ var import_runtimeConfig = require("././runtimeConfig");
108
+
109
+ // src/runtimeExtensions.ts
110
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
111
+ var import_protocol_http = require("@smithy/protocol-http");
112
+ var import_smithy_client = require("@smithy/smithy-client");
113
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
114
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
115
+ const extensionConfiguration = {
116
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
117
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
118
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
119
+ };
120
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
121
+ return {
122
+ ...runtimeConfig,
123
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
124
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
125
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
126
+ };
127
+ }, "resolveRuntimeExtensions");
128
+
129
+ // src/RolesAnywhereClient.ts
130
+ var _RolesAnywhereClient = class _RolesAnywhereClient extends import_smithy_client.Client {
131
+ constructor(...[configuration]) {
132
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
133
+ const _config_1 = resolveClientEndpointParameters(_config_0);
134
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
135
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
136
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
137
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
138
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
139
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
140
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
141
+ super(_config_8);
142
+ this.config = _config_8;
143
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
144
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
145
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
146
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
147
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
148
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
149
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
150
+ }
151
+ /**
152
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
153
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
154
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
155
+ */
156
+ destroy() {
157
+ super.destroy();
158
+ }
159
+ };
160
+ __name(_RolesAnywhereClient, "RolesAnywhereClient");
161
+ var RolesAnywhereClient = _RolesAnywhereClient;
162
+
163
+ // src/RolesAnywhere.ts
164
+
165
+
166
+ // src/commands/CreateProfileCommand.ts
167
+
168
+ var import_middleware_serde = require("@smithy/middleware-serde");
169
+
170
+ var import_types = require("@smithy/types");
171
+
172
+ // src/models/models_0.ts
173
+
174
+
175
+ // src/models/RolesAnywhereServiceException.ts
176
+
177
+ var _RolesAnywhereServiceException = class _RolesAnywhereServiceException extends import_smithy_client.ServiceException {
178
+ /**
179
+ * @internal
180
+ */
181
+ constructor(options) {
182
+ super(options);
183
+ Object.setPrototypeOf(this, _RolesAnywhereServiceException.prototype);
184
+ }
185
+ };
186
+ __name(_RolesAnywhereServiceException, "RolesAnywhereServiceException");
187
+ var RolesAnywhereServiceException = _RolesAnywhereServiceException;
188
+
189
+ // src/models/models_0.ts
190
+ var _AccessDeniedException = class _AccessDeniedException extends RolesAnywhereServiceException {
191
+ /**
192
+ * @internal
193
+ */
194
+ constructor(opts) {
195
+ super({
196
+ name: "AccessDeniedException",
197
+ $fault: "client",
198
+ ...opts
199
+ });
200
+ this.name = "AccessDeniedException";
201
+ this.$fault = "client";
202
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
203
+ }
204
+ };
205
+ __name(_AccessDeniedException, "AccessDeniedException");
206
+ var AccessDeniedException = _AccessDeniedException;
207
+ var _ValidationException = class _ValidationException extends RolesAnywhereServiceException {
208
+ /**
209
+ * @internal
210
+ */
211
+ constructor(opts) {
212
+ super({
213
+ name: "ValidationException",
214
+ $fault: "client",
215
+ ...opts
216
+ });
217
+ this.name = "ValidationException";
218
+ this.$fault = "client";
219
+ Object.setPrototypeOf(this, _ValidationException.prototype);
220
+ }
221
+ };
222
+ __name(_ValidationException, "ValidationException");
223
+ var ValidationException = _ValidationException;
224
+ var NotificationChannel = {
225
+ ALL: "ALL"
226
+ };
227
+ var NotificationEvent = {
228
+ CA_CERTIFICATE_EXPIRY: "CA_CERTIFICATE_EXPIRY",
229
+ END_ENTITY_CERTIFICATE_EXPIRY: "END_ENTITY_CERTIFICATE_EXPIRY"
230
+ };
231
+ var SourceData;
232
+ ((SourceData3) => {
233
+ SourceData3.visit = /* @__PURE__ */ __name((value, visitor) => {
234
+ if (value.x509CertificateData !== void 0)
235
+ return visitor.x509CertificateData(value.x509CertificateData);
236
+ if (value.acmPcaArn !== void 0)
237
+ return visitor.acmPcaArn(value.acmPcaArn);
238
+ return visitor._(value.$unknown[0], value.$unknown[1]);
239
+ }, "visit");
240
+ })(SourceData || (SourceData = {}));
241
+ var TrustAnchorType = {
242
+ AWS_ACM_PCA: "AWS_ACM_PCA",
243
+ CERTIFICATE_BUNDLE: "CERTIFICATE_BUNDLE",
244
+ SELF_SIGNED_REPOSITORY: "SELF_SIGNED_REPOSITORY"
245
+ };
246
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends RolesAnywhereServiceException {
247
+ /**
248
+ * @internal
249
+ */
250
+ constructor(opts) {
251
+ super({
252
+ name: "ResourceNotFoundException",
253
+ $fault: "client",
254
+ ...opts
255
+ });
256
+ this.name = "ResourceNotFoundException";
257
+ this.$fault = "client";
258
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
259
+ }
260
+ };
261
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
262
+ var ResourceNotFoundException = _ResourceNotFoundException;
263
+ var _TooManyTagsException = class _TooManyTagsException extends RolesAnywhereServiceException {
264
+ /**
265
+ * @internal
266
+ */
267
+ constructor(opts) {
268
+ super({
269
+ name: "TooManyTagsException",
270
+ $fault: "client",
271
+ ...opts
272
+ });
273
+ this.name = "TooManyTagsException";
274
+ this.$fault = "client";
275
+ Object.setPrototypeOf(this, _TooManyTagsException.prototype);
276
+ }
277
+ };
278
+ __name(_TooManyTagsException, "TooManyTagsException");
279
+ var TooManyTagsException = _TooManyTagsException;
280
+ var TagFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
281
+ ...obj,
282
+ ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
283
+ ...obj.value && { value: import_smithy_client.SENSITIVE_STRING }
284
+ }), "TagFilterSensitiveLog");
285
+ var CreateProfileRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
286
+ ...obj,
287
+ ...obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }
288
+ }), "CreateProfileRequestFilterSensitiveLog");
289
+ var CreateTrustAnchorRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
290
+ ...obj,
291
+ ...obj.source && { source: obj.source },
292
+ ...obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }
293
+ }), "CreateTrustAnchorRequestFilterSensitiveLog");
294
+ var ImportCrlRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
295
+ ...obj,
296
+ ...obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }
297
+ }), "ImportCrlRequestFilterSensitiveLog");
298
+ var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
299
+ ...obj,
300
+ ...obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }
301
+ }), "ListTagsForResourceResponseFilterSensitiveLog");
302
+ var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
303
+ ...obj,
304
+ ...obj.tags && { tags: obj.tags.map((item) => TagFilterSensitiveLog(item)) }
305
+ }), "TagResourceRequestFilterSensitiveLog");
306
+ var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
307
+ ...obj,
308
+ ...obj.tagKeys && { tagKeys: import_smithy_client.SENSITIVE_STRING }
309
+ }), "UntagResourceRequestFilterSensitiveLog");
310
+
311
+ // src/protocols/Aws_restJson1.ts
312
+ var import_core = require("@smithy/core");
313
+
314
+ var se_CreateProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
315
+ const b = (0, import_core.requestBuilder)(input, context);
316
+ const headers = {
317
+ "content-type": "application/json"
318
+ };
319
+ b.bp("/profiles");
320
+ let body;
321
+ body = JSON.stringify(
322
+ (0, import_smithy_client.take)(input, {
323
+ durationSeconds: [],
324
+ enabled: [],
325
+ managedPolicyArns: (_) => (0, import_smithy_client._json)(_),
326
+ name: [],
327
+ requireInstanceProperties: [],
328
+ roleArns: (_) => (0, import_smithy_client._json)(_),
329
+ sessionPolicy: [],
330
+ tags: (_) => (0, import_smithy_client._json)(_)
331
+ })
332
+ );
333
+ b.m("POST").h(headers).b(body);
334
+ return b.build();
335
+ }, "se_CreateProfileCommand");
336
+ var se_CreateTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context) => {
337
+ const b = (0, import_core.requestBuilder)(input, context);
338
+ const headers = {
339
+ "content-type": "application/json"
340
+ };
341
+ b.bp("/trustanchors");
342
+ let body;
343
+ body = JSON.stringify(
344
+ (0, import_smithy_client.take)(input, {
345
+ enabled: [],
346
+ name: [],
347
+ notificationSettings: (_) => (0, import_smithy_client._json)(_),
348
+ source: (_) => (0, import_smithy_client._json)(_),
349
+ tags: (_) => (0, import_smithy_client._json)(_)
350
+ })
351
+ );
352
+ b.m("POST").h(headers).b(body);
353
+ return b.build();
354
+ }, "se_CreateTrustAnchorCommand");
355
+ var se_DeleteCrlCommand = /* @__PURE__ */ __name(async (input, context) => {
356
+ const b = (0, import_core.requestBuilder)(input, context);
357
+ const headers = {};
358
+ b.bp("/crl/{crlId}");
359
+ b.p("crlId", () => input.crlId, "{crlId}", false);
360
+ let body;
361
+ b.m("DELETE").h(headers).b(body);
362
+ return b.build();
363
+ }, "se_DeleteCrlCommand");
364
+ var se_DeleteProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
365
+ const b = (0, import_core.requestBuilder)(input, context);
366
+ const headers = {};
367
+ b.bp("/profile/{profileId}");
368
+ b.p("profileId", () => input.profileId, "{profileId}", false);
369
+ let body;
370
+ b.m("DELETE").h(headers).b(body);
371
+ return b.build();
372
+ }, "se_DeleteProfileCommand");
373
+ var se_DeleteTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context) => {
374
+ const b = (0, import_core.requestBuilder)(input, context);
375
+ const headers = {};
376
+ b.bp("/trustanchor/{trustAnchorId}");
377
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
378
+ let body;
379
+ b.m("DELETE").h(headers).b(body);
380
+ return b.build();
381
+ }, "se_DeleteTrustAnchorCommand");
382
+ var se_DisableCrlCommand = /* @__PURE__ */ __name(async (input, context) => {
383
+ const b = (0, import_core.requestBuilder)(input, context);
384
+ const headers = {};
385
+ b.bp("/crl/{crlId}/disable");
386
+ b.p("crlId", () => input.crlId, "{crlId}", false);
387
+ let body;
388
+ b.m("POST").h(headers).b(body);
389
+ return b.build();
390
+ }, "se_DisableCrlCommand");
391
+ var se_DisableProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
392
+ const b = (0, import_core.requestBuilder)(input, context);
393
+ const headers = {};
394
+ b.bp("/profile/{profileId}/disable");
395
+ b.p("profileId", () => input.profileId, "{profileId}", false);
396
+ let body;
397
+ b.m("POST").h(headers).b(body);
398
+ return b.build();
399
+ }, "se_DisableProfileCommand");
400
+ var se_DisableTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context) => {
401
+ const b = (0, import_core.requestBuilder)(input, context);
402
+ const headers = {};
403
+ b.bp("/trustanchor/{trustAnchorId}/disable");
404
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
405
+ let body;
406
+ b.m("POST").h(headers).b(body);
407
+ return b.build();
408
+ }, "se_DisableTrustAnchorCommand");
409
+ var se_EnableCrlCommand = /* @__PURE__ */ __name(async (input, context) => {
410
+ const b = (0, import_core.requestBuilder)(input, context);
411
+ const headers = {};
412
+ b.bp("/crl/{crlId}/enable");
413
+ b.p("crlId", () => input.crlId, "{crlId}", false);
414
+ let body;
415
+ b.m("POST").h(headers).b(body);
416
+ return b.build();
417
+ }, "se_EnableCrlCommand");
418
+ var se_EnableProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
419
+ const b = (0, import_core.requestBuilder)(input, context);
420
+ const headers = {};
421
+ b.bp("/profile/{profileId}/enable");
422
+ b.p("profileId", () => input.profileId, "{profileId}", false);
423
+ let body;
424
+ b.m("POST").h(headers).b(body);
425
+ return b.build();
426
+ }, "se_EnableProfileCommand");
427
+ var se_EnableTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context) => {
428
+ const b = (0, import_core.requestBuilder)(input, context);
429
+ const headers = {};
430
+ b.bp("/trustanchor/{trustAnchorId}/enable");
431
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
432
+ let body;
433
+ b.m("POST").h(headers).b(body);
434
+ return b.build();
435
+ }, "se_EnableTrustAnchorCommand");
436
+ var se_GetCrlCommand = /* @__PURE__ */ __name(async (input, context) => {
437
+ const b = (0, import_core.requestBuilder)(input, context);
438
+ const headers = {};
439
+ b.bp("/crl/{crlId}");
440
+ b.p("crlId", () => input.crlId, "{crlId}", false);
441
+ let body;
442
+ b.m("GET").h(headers).b(body);
443
+ return b.build();
444
+ }, "se_GetCrlCommand");
445
+ var se_GetProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
446
+ const b = (0, import_core.requestBuilder)(input, context);
447
+ const headers = {};
448
+ b.bp("/profile/{profileId}");
449
+ b.p("profileId", () => input.profileId, "{profileId}", false);
450
+ let body;
451
+ b.m("GET").h(headers).b(body);
452
+ return b.build();
453
+ }, "se_GetProfileCommand");
454
+ var se_GetSubjectCommand = /* @__PURE__ */ __name(async (input, context) => {
455
+ const b = (0, import_core.requestBuilder)(input, context);
456
+ const headers = {};
457
+ b.bp("/subject/{subjectId}");
458
+ b.p("subjectId", () => input.subjectId, "{subjectId}", false);
459
+ let body;
460
+ b.m("GET").h(headers).b(body);
461
+ return b.build();
462
+ }, "se_GetSubjectCommand");
463
+ var se_GetTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context) => {
464
+ const b = (0, import_core.requestBuilder)(input, context);
465
+ const headers = {};
466
+ b.bp("/trustanchor/{trustAnchorId}");
467
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
468
+ let body;
469
+ b.m("GET").h(headers).b(body);
470
+ return b.build();
471
+ }, "se_GetTrustAnchorCommand");
472
+ var se_ImportCrlCommand = /* @__PURE__ */ __name(async (input, context) => {
473
+ const b = (0, import_core.requestBuilder)(input, context);
474
+ const headers = {
475
+ "content-type": "application/json"
476
+ };
477
+ b.bp("/crls");
478
+ let body;
479
+ body = JSON.stringify(
480
+ (0, import_smithy_client.take)(input, {
481
+ crlData: (_) => context.base64Encoder(_),
482
+ enabled: [],
483
+ name: [],
484
+ tags: (_) => (0, import_smithy_client._json)(_),
485
+ trustAnchorArn: []
486
+ })
487
+ );
488
+ b.m("POST").h(headers).b(body);
489
+ return b.build();
490
+ }, "se_ImportCrlCommand");
491
+ var se_ListCrlsCommand = /* @__PURE__ */ __name(async (input, context) => {
492
+ const b = (0, import_core.requestBuilder)(input, context);
493
+ const headers = {};
494
+ b.bp("/crls");
495
+ const query = (0, import_smithy_client.map)({
496
+ [_nT]: [, input[_nT]],
497
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()]
498
+ });
499
+ let body;
500
+ b.m("GET").h(headers).q(query).b(body);
501
+ return b.build();
502
+ }, "se_ListCrlsCommand");
503
+ var se_ListProfilesCommand = /* @__PURE__ */ __name(async (input, context) => {
504
+ const b = (0, import_core.requestBuilder)(input, context);
505
+ const headers = {};
506
+ b.bp("/profiles");
507
+ const query = (0, import_smithy_client.map)({
508
+ [_nT]: [, input[_nT]],
509
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()]
510
+ });
511
+ let body;
512
+ b.m("GET").h(headers).q(query).b(body);
513
+ return b.build();
514
+ }, "se_ListProfilesCommand");
515
+ var se_ListSubjectsCommand = /* @__PURE__ */ __name(async (input, context) => {
516
+ const b = (0, import_core.requestBuilder)(input, context);
517
+ const headers = {};
518
+ b.bp("/subjects");
519
+ const query = (0, import_smithy_client.map)({
520
+ [_nT]: [, input[_nT]],
521
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()]
522
+ });
523
+ let body;
524
+ b.m("GET").h(headers).q(query).b(body);
525
+ return b.build();
526
+ }, "se_ListSubjectsCommand");
527
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
528
+ const b = (0, import_core.requestBuilder)(input, context);
529
+ const headers = {};
530
+ b.bp("/ListTagsForResource");
531
+ const query = (0, import_smithy_client.map)({
532
+ [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]
533
+ });
534
+ let body;
535
+ b.m("GET").h(headers).q(query).b(body);
536
+ return b.build();
537
+ }, "se_ListTagsForResourceCommand");
538
+ var se_ListTrustAnchorsCommand = /* @__PURE__ */ __name(async (input, context) => {
539
+ const b = (0, import_core.requestBuilder)(input, context);
540
+ const headers = {};
541
+ b.bp("/trustanchors");
542
+ const query = (0, import_smithy_client.map)({
543
+ [_nT]: [, input[_nT]],
544
+ [_pS]: [() => input.pageSize !== void 0, () => input[_pS].toString()]
545
+ });
546
+ let body;
547
+ b.m("GET").h(headers).q(query).b(body);
548
+ return b.build();
549
+ }, "se_ListTrustAnchorsCommand");
550
+ var se_PutNotificationSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
551
+ const b = (0, import_core.requestBuilder)(input, context);
552
+ const headers = {
553
+ "content-type": "application/json"
554
+ };
555
+ b.bp("/put-notifications-settings");
556
+ let body;
557
+ body = JSON.stringify(
558
+ (0, import_smithy_client.take)(input, {
559
+ notificationSettings: (_) => (0, import_smithy_client._json)(_),
560
+ trustAnchorId: []
561
+ })
562
+ );
563
+ b.m("PATCH").h(headers).b(body);
564
+ return b.build();
565
+ }, "se_PutNotificationSettingsCommand");
566
+ var se_ResetNotificationSettingsCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const b = (0, import_core.requestBuilder)(input, context);
568
+ const headers = {
569
+ "content-type": "application/json"
570
+ };
571
+ b.bp("/reset-notifications-settings");
572
+ let body;
573
+ body = JSON.stringify(
574
+ (0, import_smithy_client.take)(input, {
575
+ notificationSettingKeys: (_) => (0, import_smithy_client._json)(_),
576
+ trustAnchorId: []
577
+ })
578
+ );
579
+ b.m("PATCH").h(headers).b(body);
580
+ return b.build();
581
+ }, "se_ResetNotificationSettingsCommand");
582
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
583
+ const b = (0, import_core.requestBuilder)(input, context);
584
+ const headers = {
585
+ "content-type": "application/json"
586
+ };
587
+ b.bp("/TagResource");
588
+ let body;
589
+ body = JSON.stringify(
590
+ (0, import_smithy_client.take)(input, {
591
+ resourceArn: [],
592
+ tags: (_) => (0, import_smithy_client._json)(_)
593
+ })
594
+ );
595
+ b.m("POST").h(headers).b(body);
596
+ return b.build();
597
+ }, "se_TagResourceCommand");
598
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
599
+ const b = (0, import_core.requestBuilder)(input, context);
600
+ const headers = {
601
+ "content-type": "application/json"
602
+ };
603
+ b.bp("/UntagResource");
604
+ let body;
605
+ body = JSON.stringify(
606
+ (0, import_smithy_client.take)(input, {
607
+ resourceArn: [],
608
+ tagKeys: (_) => (0, import_smithy_client._json)(_)
609
+ })
610
+ );
611
+ b.m("POST").h(headers).b(body);
612
+ return b.build();
613
+ }, "se_UntagResourceCommand");
614
+ var se_UpdateCrlCommand = /* @__PURE__ */ __name(async (input, context) => {
615
+ const b = (0, import_core.requestBuilder)(input, context);
616
+ const headers = {
617
+ "content-type": "application/json"
618
+ };
619
+ b.bp("/crl/{crlId}");
620
+ b.p("crlId", () => input.crlId, "{crlId}", false);
621
+ let body;
622
+ body = JSON.stringify(
623
+ (0, import_smithy_client.take)(input, {
624
+ crlData: (_) => context.base64Encoder(_),
625
+ name: []
626
+ })
627
+ );
628
+ b.m("PATCH").h(headers).b(body);
629
+ return b.build();
630
+ }, "se_UpdateCrlCommand");
631
+ var se_UpdateProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
632
+ const b = (0, import_core.requestBuilder)(input, context);
633
+ const headers = {
634
+ "content-type": "application/json"
635
+ };
636
+ b.bp("/profile/{profileId}");
637
+ b.p("profileId", () => input.profileId, "{profileId}", false);
638
+ let body;
639
+ body = JSON.stringify(
640
+ (0, import_smithy_client.take)(input, {
641
+ durationSeconds: [],
642
+ managedPolicyArns: (_) => (0, import_smithy_client._json)(_),
643
+ name: [],
644
+ roleArns: (_) => (0, import_smithy_client._json)(_),
645
+ sessionPolicy: []
646
+ })
647
+ );
648
+ b.m("PATCH").h(headers).b(body);
649
+ return b.build();
650
+ }, "se_UpdateProfileCommand");
651
+ var se_UpdateTrustAnchorCommand = /* @__PURE__ */ __name(async (input, context) => {
652
+ const b = (0, import_core.requestBuilder)(input, context);
653
+ const headers = {
654
+ "content-type": "application/json"
655
+ };
656
+ b.bp("/trustanchor/{trustAnchorId}");
657
+ b.p("trustAnchorId", () => input.trustAnchorId, "{trustAnchorId}", false);
658
+ let body;
659
+ body = JSON.stringify(
660
+ (0, import_smithy_client.take)(input, {
661
+ name: [],
662
+ source: (_) => (0, import_smithy_client._json)(_)
663
+ })
664
+ );
665
+ b.m("PATCH").h(headers).b(body);
666
+ return b.build();
667
+ }, "se_UpdateTrustAnchorCommand");
668
+ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
669
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
670
+ return de_CreateProfileCommandError(output, context);
671
+ }
672
+ const contents = (0, import_smithy_client.map)({
673
+ $metadata: deserializeMetadata(output)
674
+ });
675
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
676
+ const doc = (0, import_smithy_client.take)(data, {
677
+ profile: (_) => de_ProfileDetail(_, context)
678
+ });
679
+ Object.assign(contents, doc);
680
+ return contents;
681
+ }, "de_CreateProfileCommand");
682
+ var de_CreateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
683
+ const parsedOutput = {
684
+ ...output,
685
+ body: await parseErrorBody(output.body, context)
686
+ };
687
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
688
+ switch (errorCode) {
689
+ case "AccessDeniedException":
690
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
691
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
692
+ case "ValidationException":
693
+ case "com.amazonaws.rolesanywhere#ValidationException":
694
+ throw await de_ValidationExceptionRes(parsedOutput, context);
695
+ default:
696
+ const parsedBody = parsedOutput.body;
697
+ return throwDefaultError({
698
+ output,
699
+ parsedBody,
700
+ errorCode
701
+ });
702
+ }
703
+ }, "de_CreateProfileCommandError");
704
+ var de_CreateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
705
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
706
+ return de_CreateTrustAnchorCommandError(output, context);
707
+ }
708
+ const contents = (0, import_smithy_client.map)({
709
+ $metadata: deserializeMetadata(output)
710
+ });
711
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
712
+ const doc = (0, import_smithy_client.take)(data, {
713
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
714
+ });
715
+ Object.assign(contents, doc);
716
+ return contents;
717
+ }, "de_CreateTrustAnchorCommand");
718
+ var de_CreateTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
719
+ const parsedOutput = {
720
+ ...output,
721
+ body: await parseErrorBody(output.body, context)
722
+ };
723
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
724
+ switch (errorCode) {
725
+ case "AccessDeniedException":
726
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
727
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
728
+ case "ValidationException":
729
+ case "com.amazonaws.rolesanywhere#ValidationException":
730
+ throw await de_ValidationExceptionRes(parsedOutput, context);
731
+ default:
732
+ const parsedBody = parsedOutput.body;
733
+ return throwDefaultError({
734
+ output,
735
+ parsedBody,
736
+ errorCode
737
+ });
738
+ }
739
+ }, "de_CreateTrustAnchorCommandError");
740
+ var de_DeleteCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
741
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
742
+ return de_DeleteCrlCommandError(output, context);
743
+ }
744
+ const contents = (0, import_smithy_client.map)({
745
+ $metadata: deserializeMetadata(output)
746
+ });
747
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
748
+ const doc = (0, import_smithy_client.take)(data, {
749
+ crl: (_) => de_CrlDetail(_, context)
750
+ });
751
+ Object.assign(contents, doc);
752
+ return contents;
753
+ }, "de_DeleteCrlCommand");
754
+ var de_DeleteCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
755
+ const parsedOutput = {
756
+ ...output,
757
+ body: await parseErrorBody(output.body, context)
758
+ };
759
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
760
+ switch (errorCode) {
761
+ case "AccessDeniedException":
762
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
763
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
764
+ case "ResourceNotFoundException":
765
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
766
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
767
+ default:
768
+ const parsedBody = parsedOutput.body;
769
+ return throwDefaultError({
770
+ output,
771
+ parsedBody,
772
+ errorCode
773
+ });
774
+ }
775
+ }, "de_DeleteCrlCommandError");
776
+ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
777
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
778
+ return de_DeleteProfileCommandError(output, context);
779
+ }
780
+ const contents = (0, import_smithy_client.map)({
781
+ $metadata: deserializeMetadata(output)
782
+ });
783
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
784
+ const doc = (0, import_smithy_client.take)(data, {
785
+ profile: (_) => de_ProfileDetail(_, context)
786
+ });
787
+ Object.assign(contents, doc);
788
+ return contents;
789
+ }, "de_DeleteProfileCommand");
790
+ var de_DeleteProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
791
+ const parsedOutput = {
792
+ ...output,
793
+ body: await parseErrorBody(output.body, context)
794
+ };
795
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
796
+ switch (errorCode) {
797
+ case "AccessDeniedException":
798
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
799
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
800
+ case "ResourceNotFoundException":
801
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
802
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
803
+ default:
804
+ const parsedBody = parsedOutput.body;
805
+ return throwDefaultError({
806
+ output,
807
+ parsedBody,
808
+ errorCode
809
+ });
810
+ }
811
+ }, "de_DeleteProfileCommandError");
812
+ var de_DeleteTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
813
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
814
+ return de_DeleteTrustAnchorCommandError(output, context);
815
+ }
816
+ const contents = (0, import_smithy_client.map)({
817
+ $metadata: deserializeMetadata(output)
818
+ });
819
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
820
+ const doc = (0, import_smithy_client.take)(data, {
821
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
822
+ });
823
+ Object.assign(contents, doc);
824
+ return contents;
825
+ }, "de_DeleteTrustAnchorCommand");
826
+ var de_DeleteTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
827
+ const parsedOutput = {
828
+ ...output,
829
+ body: await parseErrorBody(output.body, context)
830
+ };
831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
832
+ switch (errorCode) {
833
+ case "AccessDeniedException":
834
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
835
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
836
+ case "ResourceNotFoundException":
837
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
838
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
839
+ default:
840
+ const parsedBody = parsedOutput.body;
841
+ return throwDefaultError({
842
+ output,
843
+ parsedBody,
844
+ errorCode
845
+ });
846
+ }
847
+ }, "de_DeleteTrustAnchorCommandError");
848
+ var de_DisableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
849
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
850
+ return de_DisableCrlCommandError(output, context);
851
+ }
852
+ const contents = (0, import_smithy_client.map)({
853
+ $metadata: deserializeMetadata(output)
854
+ });
855
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
856
+ const doc = (0, import_smithy_client.take)(data, {
857
+ crl: (_) => de_CrlDetail(_, context)
858
+ });
859
+ Object.assign(contents, doc);
860
+ return contents;
861
+ }, "de_DisableCrlCommand");
862
+ var de_DisableCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
863
+ const parsedOutput = {
864
+ ...output,
865
+ body: await parseErrorBody(output.body, context)
866
+ };
867
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
868
+ switch (errorCode) {
869
+ case "AccessDeniedException":
870
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
871
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
872
+ case "ResourceNotFoundException":
873
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
874
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
875
+ default:
876
+ const parsedBody = parsedOutput.body;
877
+ return throwDefaultError({
878
+ output,
879
+ parsedBody,
880
+ errorCode
881
+ });
882
+ }
883
+ }, "de_DisableCrlCommandError");
884
+ var de_DisableProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
885
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
886
+ return de_DisableProfileCommandError(output, context);
887
+ }
888
+ const contents = (0, import_smithy_client.map)({
889
+ $metadata: deserializeMetadata(output)
890
+ });
891
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
892
+ const doc = (0, import_smithy_client.take)(data, {
893
+ profile: (_) => de_ProfileDetail(_, context)
894
+ });
895
+ Object.assign(contents, doc);
896
+ return contents;
897
+ }, "de_DisableProfileCommand");
898
+ var de_DisableProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
899
+ const parsedOutput = {
900
+ ...output,
901
+ body: await parseErrorBody(output.body, context)
902
+ };
903
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
904
+ switch (errorCode) {
905
+ case "AccessDeniedException":
906
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
907
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
908
+ case "ResourceNotFoundException":
909
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
910
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
911
+ default:
912
+ const parsedBody = parsedOutput.body;
913
+ return throwDefaultError({
914
+ output,
915
+ parsedBody,
916
+ errorCode
917
+ });
918
+ }
919
+ }, "de_DisableProfileCommandError");
920
+ var de_DisableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
921
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
922
+ return de_DisableTrustAnchorCommandError(output, context);
923
+ }
924
+ const contents = (0, import_smithy_client.map)({
925
+ $metadata: deserializeMetadata(output)
926
+ });
927
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
928
+ const doc = (0, import_smithy_client.take)(data, {
929
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
930
+ });
931
+ Object.assign(contents, doc);
932
+ return contents;
933
+ }, "de_DisableTrustAnchorCommand");
934
+ var de_DisableTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
935
+ const parsedOutput = {
936
+ ...output,
937
+ body: await parseErrorBody(output.body, context)
938
+ };
939
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
940
+ switch (errorCode) {
941
+ case "AccessDeniedException":
942
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
943
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
944
+ case "ResourceNotFoundException":
945
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
946
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
947
+ default:
948
+ const parsedBody = parsedOutput.body;
949
+ return throwDefaultError({
950
+ output,
951
+ parsedBody,
952
+ errorCode
953
+ });
954
+ }
955
+ }, "de_DisableTrustAnchorCommandError");
956
+ var de_EnableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
957
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
958
+ return de_EnableCrlCommandError(output, context);
959
+ }
960
+ const contents = (0, import_smithy_client.map)({
961
+ $metadata: deserializeMetadata(output)
962
+ });
963
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
964
+ const doc = (0, import_smithy_client.take)(data, {
965
+ crl: (_) => de_CrlDetail(_, context)
966
+ });
967
+ Object.assign(contents, doc);
968
+ return contents;
969
+ }, "de_EnableCrlCommand");
970
+ var de_EnableCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
971
+ const parsedOutput = {
972
+ ...output,
973
+ body: await parseErrorBody(output.body, context)
974
+ };
975
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
976
+ switch (errorCode) {
977
+ case "AccessDeniedException":
978
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
979
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
980
+ case "ResourceNotFoundException":
981
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
982
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
983
+ default:
984
+ const parsedBody = parsedOutput.body;
985
+ return throwDefaultError({
986
+ output,
987
+ parsedBody,
988
+ errorCode
989
+ });
990
+ }
991
+ }, "de_EnableCrlCommandError");
992
+ var de_EnableProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
993
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
994
+ return de_EnableProfileCommandError(output, context);
995
+ }
996
+ const contents = (0, import_smithy_client.map)({
997
+ $metadata: deserializeMetadata(output)
998
+ });
999
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1000
+ const doc = (0, import_smithy_client.take)(data, {
1001
+ profile: (_) => de_ProfileDetail(_, context)
1002
+ });
1003
+ Object.assign(contents, doc);
1004
+ return contents;
1005
+ }, "de_EnableProfileCommand");
1006
+ var de_EnableProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1007
+ const parsedOutput = {
1008
+ ...output,
1009
+ body: await parseErrorBody(output.body, context)
1010
+ };
1011
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1012
+ switch (errorCode) {
1013
+ case "AccessDeniedException":
1014
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1015
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1016
+ case "ResourceNotFoundException":
1017
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1018
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1019
+ default:
1020
+ const parsedBody = parsedOutput.body;
1021
+ return throwDefaultError({
1022
+ output,
1023
+ parsedBody,
1024
+ errorCode
1025
+ });
1026
+ }
1027
+ }, "de_EnableProfileCommandError");
1028
+ var de_EnableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
1029
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1030
+ return de_EnableTrustAnchorCommandError(output, context);
1031
+ }
1032
+ const contents = (0, import_smithy_client.map)({
1033
+ $metadata: deserializeMetadata(output)
1034
+ });
1035
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1036
+ const doc = (0, import_smithy_client.take)(data, {
1037
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1038
+ });
1039
+ Object.assign(contents, doc);
1040
+ return contents;
1041
+ }, "de_EnableTrustAnchorCommand");
1042
+ var de_EnableTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1043
+ const parsedOutput = {
1044
+ ...output,
1045
+ body: await parseErrorBody(output.body, context)
1046
+ };
1047
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1048
+ switch (errorCode) {
1049
+ case "AccessDeniedException":
1050
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1051
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1052
+ case "ResourceNotFoundException":
1053
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1054
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1055
+ default:
1056
+ const parsedBody = parsedOutput.body;
1057
+ return throwDefaultError({
1058
+ output,
1059
+ parsedBody,
1060
+ errorCode
1061
+ });
1062
+ }
1063
+ }, "de_EnableTrustAnchorCommandError");
1064
+ var de_GetCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1065
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1066
+ return de_GetCrlCommandError(output, context);
1067
+ }
1068
+ const contents = (0, import_smithy_client.map)({
1069
+ $metadata: deserializeMetadata(output)
1070
+ });
1071
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1072
+ const doc = (0, import_smithy_client.take)(data, {
1073
+ crl: (_) => de_CrlDetail(_, context)
1074
+ });
1075
+ Object.assign(contents, doc);
1076
+ return contents;
1077
+ }, "de_GetCrlCommand");
1078
+ var de_GetCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
1079
+ const parsedOutput = {
1080
+ ...output,
1081
+ body: await parseErrorBody(output.body, context)
1082
+ };
1083
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1084
+ switch (errorCode) {
1085
+ case "ResourceNotFoundException":
1086
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1087
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1088
+ default:
1089
+ const parsedBody = parsedOutput.body;
1090
+ return throwDefaultError({
1091
+ output,
1092
+ parsedBody,
1093
+ errorCode
1094
+ });
1095
+ }
1096
+ }, "de_GetCrlCommandError");
1097
+ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1098
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1099
+ return de_GetProfileCommandError(output, context);
1100
+ }
1101
+ const contents = (0, import_smithy_client.map)({
1102
+ $metadata: deserializeMetadata(output)
1103
+ });
1104
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1105
+ const doc = (0, import_smithy_client.take)(data, {
1106
+ profile: (_) => de_ProfileDetail(_, context)
1107
+ });
1108
+ Object.assign(contents, doc);
1109
+ return contents;
1110
+ }, "de_GetProfileCommand");
1111
+ var de_GetProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1112
+ const parsedOutput = {
1113
+ ...output,
1114
+ body: await parseErrorBody(output.body, context)
1115
+ };
1116
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1117
+ switch (errorCode) {
1118
+ case "AccessDeniedException":
1119
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1120
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1121
+ case "ResourceNotFoundException":
1122
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1123
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1124
+ default:
1125
+ const parsedBody = parsedOutput.body;
1126
+ return throwDefaultError({
1127
+ output,
1128
+ parsedBody,
1129
+ errorCode
1130
+ });
1131
+ }
1132
+ }, "de_GetProfileCommandError");
1133
+ var de_GetSubjectCommand = /* @__PURE__ */ __name(async (output, context) => {
1134
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1135
+ return de_GetSubjectCommandError(output, context);
1136
+ }
1137
+ const contents = (0, import_smithy_client.map)({
1138
+ $metadata: deserializeMetadata(output)
1139
+ });
1140
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1141
+ const doc = (0, import_smithy_client.take)(data, {
1142
+ subject: (_) => de_SubjectDetail(_, context)
1143
+ });
1144
+ Object.assign(contents, doc);
1145
+ return contents;
1146
+ }, "de_GetSubjectCommand");
1147
+ var de_GetSubjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
1148
+ const parsedOutput = {
1149
+ ...output,
1150
+ body: await parseErrorBody(output.body, context)
1151
+ };
1152
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1153
+ switch (errorCode) {
1154
+ case "AccessDeniedException":
1155
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1156
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1157
+ case "ResourceNotFoundException":
1158
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1159
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1160
+ default:
1161
+ const parsedBody = parsedOutput.body;
1162
+ return throwDefaultError({
1163
+ output,
1164
+ parsedBody,
1165
+ errorCode
1166
+ });
1167
+ }
1168
+ }, "de_GetSubjectCommandError");
1169
+ var de_GetTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
1170
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1171
+ return de_GetTrustAnchorCommandError(output, context);
1172
+ }
1173
+ const contents = (0, import_smithy_client.map)({
1174
+ $metadata: deserializeMetadata(output)
1175
+ });
1176
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1177
+ const doc = (0, import_smithy_client.take)(data, {
1178
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1179
+ });
1180
+ Object.assign(contents, doc);
1181
+ return contents;
1182
+ }, "de_GetTrustAnchorCommand");
1183
+ var de_GetTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1184
+ const parsedOutput = {
1185
+ ...output,
1186
+ body: await parseErrorBody(output.body, context)
1187
+ };
1188
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1189
+ switch (errorCode) {
1190
+ case "AccessDeniedException":
1191
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1192
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1193
+ case "ResourceNotFoundException":
1194
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1195
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1196
+ case "ValidationException":
1197
+ case "com.amazonaws.rolesanywhere#ValidationException":
1198
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1199
+ default:
1200
+ const parsedBody = parsedOutput.body;
1201
+ return throwDefaultError({
1202
+ output,
1203
+ parsedBody,
1204
+ errorCode
1205
+ });
1206
+ }
1207
+ }, "de_GetTrustAnchorCommandError");
1208
+ var de_ImportCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1209
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1210
+ return de_ImportCrlCommandError(output, context);
1211
+ }
1212
+ const contents = (0, import_smithy_client.map)({
1213
+ $metadata: deserializeMetadata(output)
1214
+ });
1215
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1216
+ const doc = (0, import_smithy_client.take)(data, {
1217
+ crl: (_) => de_CrlDetail(_, context)
1218
+ });
1219
+ Object.assign(contents, doc);
1220
+ return contents;
1221
+ }, "de_ImportCrlCommand");
1222
+ var de_ImportCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
1223
+ const parsedOutput = {
1224
+ ...output,
1225
+ body: await parseErrorBody(output.body, context)
1226
+ };
1227
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1228
+ switch (errorCode) {
1229
+ case "AccessDeniedException":
1230
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1231
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1232
+ case "ValidationException":
1233
+ case "com.amazonaws.rolesanywhere#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_ImportCrlCommandError");
1244
+ var de_ListCrlsCommand = /* @__PURE__ */ __name(async (output, context) => {
1245
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1246
+ return de_ListCrlsCommandError(output, context);
1247
+ }
1248
+ const contents = (0, import_smithy_client.map)({
1249
+ $metadata: deserializeMetadata(output)
1250
+ });
1251
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1252
+ const doc = (0, import_smithy_client.take)(data, {
1253
+ crls: (_) => de_CrlDetails(_, context),
1254
+ nextToken: import_smithy_client.expectString
1255
+ });
1256
+ Object.assign(contents, doc);
1257
+ return contents;
1258
+ }, "de_ListCrlsCommand");
1259
+ var de_ListCrlsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1260
+ const parsedOutput = {
1261
+ ...output,
1262
+ body: await parseErrorBody(output.body, context)
1263
+ };
1264
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1265
+ switch (errorCode) {
1266
+ case "AccessDeniedException":
1267
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1268
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1269
+ case "ValidationException":
1270
+ case "com.amazonaws.rolesanywhere#ValidationException":
1271
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1272
+ default:
1273
+ const parsedBody = parsedOutput.body;
1274
+ return throwDefaultError({
1275
+ output,
1276
+ parsedBody,
1277
+ errorCode
1278
+ });
1279
+ }
1280
+ }, "de_ListCrlsCommandError");
1281
+ var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
1282
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1283
+ return de_ListProfilesCommandError(output, context);
1284
+ }
1285
+ const contents = (0, import_smithy_client.map)({
1286
+ $metadata: deserializeMetadata(output)
1287
+ });
1288
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1289
+ const doc = (0, import_smithy_client.take)(data, {
1290
+ nextToken: import_smithy_client.expectString,
1291
+ profiles: (_) => de_ProfileDetails(_, context)
1292
+ });
1293
+ Object.assign(contents, doc);
1294
+ return contents;
1295
+ }, "de_ListProfilesCommand");
1296
+ var de_ListProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1297
+ const parsedOutput = {
1298
+ ...output,
1299
+ body: await parseErrorBody(output.body, context)
1300
+ };
1301
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1302
+ switch (errorCode) {
1303
+ case "AccessDeniedException":
1304
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1305
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1306
+ case "ValidationException":
1307
+ case "com.amazonaws.rolesanywhere#ValidationException":
1308
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1309
+ default:
1310
+ const parsedBody = parsedOutput.body;
1311
+ return throwDefaultError({
1312
+ output,
1313
+ parsedBody,
1314
+ errorCode
1315
+ });
1316
+ }
1317
+ }, "de_ListProfilesCommandError");
1318
+ var de_ListSubjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
1319
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1320
+ return de_ListSubjectsCommandError(output, context);
1321
+ }
1322
+ const contents = (0, import_smithy_client.map)({
1323
+ $metadata: deserializeMetadata(output)
1324
+ });
1325
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1326
+ const doc = (0, import_smithy_client.take)(data, {
1327
+ nextToken: import_smithy_client.expectString,
1328
+ subjects: (_) => de_SubjectSummaries(_, context)
1329
+ });
1330
+ Object.assign(contents, doc);
1331
+ return contents;
1332
+ }, "de_ListSubjectsCommand");
1333
+ var de_ListSubjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1334
+ const parsedOutput = {
1335
+ ...output,
1336
+ body: await parseErrorBody(output.body, context)
1337
+ };
1338
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1339
+ switch (errorCode) {
1340
+ case "AccessDeniedException":
1341
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1342
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1343
+ case "ValidationException":
1344
+ case "com.amazonaws.rolesanywhere#ValidationException":
1345
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1346
+ default:
1347
+ const parsedBody = parsedOutput.body;
1348
+ return throwDefaultError({
1349
+ output,
1350
+ parsedBody,
1351
+ errorCode
1352
+ });
1353
+ }
1354
+ }, "de_ListSubjectsCommandError");
1355
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1356
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1357
+ return de_ListTagsForResourceCommandError(output, context);
1358
+ }
1359
+ const contents = (0, import_smithy_client.map)({
1360
+ $metadata: deserializeMetadata(output)
1361
+ });
1362
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1363
+ const doc = (0, import_smithy_client.take)(data, {
1364
+ tags: import_smithy_client._json
1365
+ });
1366
+ Object.assign(contents, doc);
1367
+ return contents;
1368
+ }, "de_ListTagsForResourceCommand");
1369
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1370
+ const parsedOutput = {
1371
+ ...output,
1372
+ body: await parseErrorBody(output.body, context)
1373
+ };
1374
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1375
+ switch (errorCode) {
1376
+ case "AccessDeniedException":
1377
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1378
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1379
+ case "ResourceNotFoundException":
1380
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1381
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1382
+ case "ValidationException":
1383
+ case "com.amazonaws.rolesanywhere#ValidationException":
1384
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1385
+ default:
1386
+ const parsedBody = parsedOutput.body;
1387
+ return throwDefaultError({
1388
+ output,
1389
+ parsedBody,
1390
+ errorCode
1391
+ });
1392
+ }
1393
+ }, "de_ListTagsForResourceCommandError");
1394
+ var de_ListTrustAnchorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1395
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1396
+ return de_ListTrustAnchorsCommandError(output, context);
1397
+ }
1398
+ const contents = (0, import_smithy_client.map)({
1399
+ $metadata: deserializeMetadata(output)
1400
+ });
1401
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1402
+ const doc = (0, import_smithy_client.take)(data, {
1403
+ nextToken: import_smithy_client.expectString,
1404
+ trustAnchors: (_) => de_TrustAnchorDetails(_, context)
1405
+ });
1406
+ Object.assign(contents, doc);
1407
+ return contents;
1408
+ }, "de_ListTrustAnchorsCommand");
1409
+ var de_ListTrustAnchorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1410
+ const parsedOutput = {
1411
+ ...output,
1412
+ body: await parseErrorBody(output.body, context)
1413
+ };
1414
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1415
+ switch (errorCode) {
1416
+ case "AccessDeniedException":
1417
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1418
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1419
+ case "ValidationException":
1420
+ case "com.amazonaws.rolesanywhere#ValidationException":
1421
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1422
+ default:
1423
+ const parsedBody = parsedOutput.body;
1424
+ return throwDefaultError({
1425
+ output,
1426
+ parsedBody,
1427
+ errorCode
1428
+ });
1429
+ }
1430
+ }, "de_ListTrustAnchorsCommandError");
1431
+ var de_PutNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1432
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1433
+ return de_PutNotificationSettingsCommandError(output, context);
1434
+ }
1435
+ const contents = (0, import_smithy_client.map)({
1436
+ $metadata: deserializeMetadata(output)
1437
+ });
1438
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1439
+ const doc = (0, import_smithy_client.take)(data, {
1440
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1441
+ });
1442
+ Object.assign(contents, doc);
1443
+ return contents;
1444
+ }, "de_PutNotificationSettingsCommand");
1445
+ var de_PutNotificationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1446
+ const parsedOutput = {
1447
+ ...output,
1448
+ body: await parseErrorBody(output.body, context)
1449
+ };
1450
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1451
+ switch (errorCode) {
1452
+ case "AccessDeniedException":
1453
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1454
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1455
+ case "ResourceNotFoundException":
1456
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1457
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1458
+ case "ValidationException":
1459
+ case "com.amazonaws.rolesanywhere#ValidationException":
1460
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1461
+ default:
1462
+ const parsedBody = parsedOutput.body;
1463
+ return throwDefaultError({
1464
+ output,
1465
+ parsedBody,
1466
+ errorCode
1467
+ });
1468
+ }
1469
+ }, "de_PutNotificationSettingsCommandError");
1470
+ var de_ResetNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1471
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1472
+ return de_ResetNotificationSettingsCommandError(output, context);
1473
+ }
1474
+ const contents = (0, import_smithy_client.map)({
1475
+ $metadata: deserializeMetadata(output)
1476
+ });
1477
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1478
+ const doc = (0, import_smithy_client.take)(data, {
1479
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1480
+ });
1481
+ Object.assign(contents, doc);
1482
+ return contents;
1483
+ }, "de_ResetNotificationSettingsCommand");
1484
+ var de_ResetNotificationSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1485
+ const parsedOutput = {
1486
+ ...output,
1487
+ body: await parseErrorBody(output.body, context)
1488
+ };
1489
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1490
+ switch (errorCode) {
1491
+ case "AccessDeniedException":
1492
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1493
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1494
+ case "ResourceNotFoundException":
1495
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1496
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1497
+ case "ValidationException":
1498
+ case "com.amazonaws.rolesanywhere#ValidationException":
1499
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1500
+ default:
1501
+ const parsedBody = parsedOutput.body;
1502
+ return throwDefaultError({
1503
+ output,
1504
+ parsedBody,
1505
+ errorCode
1506
+ });
1507
+ }
1508
+ }, "de_ResetNotificationSettingsCommandError");
1509
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1510
+ if (output.statusCode !== 201 && output.statusCode >= 300) {
1511
+ return de_TagResourceCommandError(output, context);
1512
+ }
1513
+ const contents = (0, import_smithy_client.map)({
1514
+ $metadata: deserializeMetadata(output)
1515
+ });
1516
+ await (0, import_smithy_client.collectBody)(output.body, context);
1517
+ return contents;
1518
+ }, "de_TagResourceCommand");
1519
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1520
+ const parsedOutput = {
1521
+ ...output,
1522
+ body: await parseErrorBody(output.body, context)
1523
+ };
1524
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1525
+ switch (errorCode) {
1526
+ case "AccessDeniedException":
1527
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1528
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1529
+ case "ResourceNotFoundException":
1530
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1531
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1532
+ case "TooManyTagsException":
1533
+ case "com.amazonaws.rolesanywhere#TooManyTagsException":
1534
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1535
+ case "ValidationException":
1536
+ case "com.amazonaws.rolesanywhere#ValidationException":
1537
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1538
+ default:
1539
+ const parsedBody = parsedOutput.body;
1540
+ return throwDefaultError({
1541
+ output,
1542
+ parsedBody,
1543
+ errorCode
1544
+ });
1545
+ }
1546
+ }, "de_TagResourceCommandError");
1547
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1548
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1549
+ return de_UntagResourceCommandError(output, context);
1550
+ }
1551
+ const contents = (0, import_smithy_client.map)({
1552
+ $metadata: deserializeMetadata(output)
1553
+ });
1554
+ await (0, import_smithy_client.collectBody)(output.body, context);
1555
+ return contents;
1556
+ }, "de_UntagResourceCommand");
1557
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1558
+ const parsedOutput = {
1559
+ ...output,
1560
+ body: await parseErrorBody(output.body, context)
1561
+ };
1562
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1563
+ switch (errorCode) {
1564
+ case "AccessDeniedException":
1565
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1566
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1567
+ case "ResourceNotFoundException":
1568
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1569
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1570
+ case "ValidationException":
1571
+ case "com.amazonaws.rolesanywhere#ValidationException":
1572
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1573
+ default:
1574
+ const parsedBody = parsedOutput.body;
1575
+ return throwDefaultError({
1576
+ output,
1577
+ parsedBody,
1578
+ errorCode
1579
+ });
1580
+ }
1581
+ }, "de_UntagResourceCommandError");
1582
+ var de_UpdateCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1583
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1584
+ return de_UpdateCrlCommandError(output, context);
1585
+ }
1586
+ const contents = (0, import_smithy_client.map)({
1587
+ $metadata: deserializeMetadata(output)
1588
+ });
1589
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1590
+ const doc = (0, import_smithy_client.take)(data, {
1591
+ crl: (_) => de_CrlDetail(_, context)
1592
+ });
1593
+ Object.assign(contents, doc);
1594
+ return contents;
1595
+ }, "de_UpdateCrlCommand");
1596
+ var de_UpdateCrlCommandError = /* @__PURE__ */ __name(async (output, context) => {
1597
+ const parsedOutput = {
1598
+ ...output,
1599
+ body: await parseErrorBody(output.body, context)
1600
+ };
1601
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1602
+ switch (errorCode) {
1603
+ case "AccessDeniedException":
1604
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1605
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1606
+ case "ResourceNotFoundException":
1607
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1608
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1609
+ case "ValidationException":
1610
+ case "com.amazonaws.rolesanywhere#ValidationException":
1611
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1612
+ default:
1613
+ const parsedBody = parsedOutput.body;
1614
+ return throwDefaultError({
1615
+ output,
1616
+ parsedBody,
1617
+ errorCode
1618
+ });
1619
+ }
1620
+ }, "de_UpdateCrlCommandError");
1621
+ var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1622
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1623
+ return de_UpdateProfileCommandError(output, context);
1624
+ }
1625
+ const contents = (0, import_smithy_client.map)({
1626
+ $metadata: deserializeMetadata(output)
1627
+ });
1628
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1629
+ const doc = (0, import_smithy_client.take)(data, {
1630
+ profile: (_) => de_ProfileDetail(_, context)
1631
+ });
1632
+ Object.assign(contents, doc);
1633
+ return contents;
1634
+ }, "de_UpdateProfileCommand");
1635
+ var de_UpdateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1636
+ const parsedOutput = {
1637
+ ...output,
1638
+ body: await parseErrorBody(output.body, context)
1639
+ };
1640
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1641
+ switch (errorCode) {
1642
+ case "AccessDeniedException":
1643
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1644
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1645
+ case "ResourceNotFoundException":
1646
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1647
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1648
+ case "ValidationException":
1649
+ case "com.amazonaws.rolesanywhere#ValidationException":
1650
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1651
+ default:
1652
+ const parsedBody = parsedOutput.body;
1653
+ return throwDefaultError({
1654
+ output,
1655
+ parsedBody,
1656
+ errorCode
1657
+ });
1658
+ }
1659
+ }, "de_UpdateProfileCommandError");
1660
+ var de_UpdateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) => {
1661
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1662
+ return de_UpdateTrustAnchorCommandError(output, context);
1663
+ }
1664
+ const contents = (0, import_smithy_client.map)({
1665
+ $metadata: deserializeMetadata(output)
1666
+ });
1667
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1668
+ const doc = (0, import_smithy_client.take)(data, {
1669
+ trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1670
+ });
1671
+ Object.assign(contents, doc);
1672
+ return contents;
1673
+ }, "de_UpdateTrustAnchorCommand");
1674
+ var de_UpdateTrustAnchorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1675
+ const parsedOutput = {
1676
+ ...output,
1677
+ body: await parseErrorBody(output.body, context)
1678
+ };
1679
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1680
+ switch (errorCode) {
1681
+ case "AccessDeniedException":
1682
+ case "com.amazonaws.rolesanywhere#AccessDeniedException":
1683
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1684
+ case "ResourceNotFoundException":
1685
+ case "com.amazonaws.rolesanywhere#ResourceNotFoundException":
1686
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1687
+ case "ValidationException":
1688
+ case "com.amazonaws.rolesanywhere#ValidationException":
1689
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1690
+ default:
1691
+ const parsedBody = parsedOutput.body;
1692
+ return throwDefaultError({
1693
+ output,
1694
+ parsedBody,
1695
+ errorCode
1696
+ });
1697
+ }
1698
+ }, "de_UpdateTrustAnchorCommandError");
1699
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(RolesAnywhereServiceException);
1700
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1701
+ const contents = (0, import_smithy_client.map)({});
1702
+ const data = parsedOutput.body;
1703
+ const doc = (0, import_smithy_client.take)(data, {
1704
+ message: import_smithy_client.expectString
1705
+ });
1706
+ Object.assign(contents, doc);
1707
+ const exception = new AccessDeniedException({
1708
+ $metadata: deserializeMetadata(parsedOutput),
1709
+ ...contents
1710
+ });
1711
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1712
+ }, "de_AccessDeniedExceptionRes");
1713
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1714
+ const contents = (0, import_smithy_client.map)({});
1715
+ const data = parsedOutput.body;
1716
+ const doc = (0, import_smithy_client.take)(data, {
1717
+ message: import_smithy_client.expectString
1718
+ });
1719
+ Object.assign(contents, doc);
1720
+ const exception = new ResourceNotFoundException({
1721
+ $metadata: deserializeMetadata(parsedOutput),
1722
+ ...contents
1723
+ });
1724
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1725
+ }, "de_ResourceNotFoundExceptionRes");
1726
+ var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1727
+ const contents = (0, import_smithy_client.map)({});
1728
+ const data = parsedOutput.body;
1729
+ const doc = (0, import_smithy_client.take)(data, {
1730
+ message: import_smithy_client.expectString
1731
+ });
1732
+ Object.assign(contents, doc);
1733
+ const exception = new TooManyTagsException({
1734
+ $metadata: deserializeMetadata(parsedOutput),
1735
+ ...contents
1736
+ });
1737
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1738
+ }, "de_TooManyTagsExceptionRes");
1739
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1740
+ const contents = (0, import_smithy_client.map)({});
1741
+ const data = parsedOutput.body;
1742
+ const doc = (0, import_smithy_client.take)(data, {
1743
+ message: import_smithy_client.expectString
1744
+ });
1745
+ Object.assign(contents, doc);
1746
+ const exception = new ValidationException({
1747
+ $metadata: deserializeMetadata(parsedOutput),
1748
+ ...contents
1749
+ });
1750
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1751
+ }, "de_ValidationExceptionRes");
1752
+ var de_CredentialSummaries = /* @__PURE__ */ __name((output, context) => {
1753
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1754
+ return de_CredentialSummary(entry, context);
1755
+ });
1756
+ return retVal;
1757
+ }, "de_CredentialSummaries");
1758
+ var de_CredentialSummary = /* @__PURE__ */ __name((output, context) => {
1759
+ return (0, import_smithy_client.take)(output, {
1760
+ enabled: import_smithy_client.expectBoolean,
1761
+ failed: import_smithy_client.expectBoolean,
1762
+ issuer: import_smithy_client.expectString,
1763
+ seenAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1764
+ serialNumber: import_smithy_client.expectString,
1765
+ x509CertificateData: import_smithy_client.expectString
1766
+ });
1767
+ }, "de_CredentialSummary");
1768
+ var de_CrlDetail = /* @__PURE__ */ __name((output, context) => {
1769
+ return (0, import_smithy_client.take)(output, {
1770
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1771
+ crlArn: import_smithy_client.expectString,
1772
+ crlData: context.base64Decoder,
1773
+ crlId: import_smithy_client.expectString,
1774
+ enabled: import_smithy_client.expectBoolean,
1775
+ name: import_smithy_client.expectString,
1776
+ trustAnchorArn: import_smithy_client.expectString,
1777
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1778
+ });
1779
+ }, "de_CrlDetail");
1780
+ var de_CrlDetails = /* @__PURE__ */ __name((output, context) => {
1781
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1782
+ return de_CrlDetail(entry, context);
1783
+ });
1784
+ return retVal;
1785
+ }, "de_CrlDetails");
1786
+ var de_InstanceProperties = /* @__PURE__ */ __name((output, context) => {
1787
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1788
+ return de_InstanceProperty(entry, context);
1789
+ });
1790
+ return retVal;
1791
+ }, "de_InstanceProperties");
1792
+ var de_InstanceProperty = /* @__PURE__ */ __name((output, context) => {
1793
+ return (0, import_smithy_client.take)(output, {
1794
+ failed: import_smithy_client.expectBoolean,
1795
+ properties: import_smithy_client._json,
1796
+ seenAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1797
+ });
1798
+ }, "de_InstanceProperty");
1799
+ var de_ProfileDetail = /* @__PURE__ */ __name((output, context) => {
1800
+ return (0, import_smithy_client.take)(output, {
1801
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1802
+ createdBy: import_smithy_client.expectString,
1803
+ durationSeconds: import_smithy_client.expectInt32,
1804
+ enabled: import_smithy_client.expectBoolean,
1805
+ managedPolicyArns: import_smithy_client._json,
1806
+ name: import_smithy_client.expectString,
1807
+ profileArn: import_smithy_client.expectString,
1808
+ profileId: import_smithy_client.expectString,
1809
+ requireInstanceProperties: import_smithy_client.expectBoolean,
1810
+ roleArns: import_smithy_client._json,
1811
+ sessionPolicy: import_smithy_client.expectString,
1812
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1813
+ });
1814
+ }, "de_ProfileDetail");
1815
+ var de_ProfileDetails = /* @__PURE__ */ __name((output, context) => {
1816
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1817
+ return de_ProfileDetail(entry, context);
1818
+ });
1819
+ return retVal;
1820
+ }, "de_ProfileDetails");
1821
+ var de_SubjectDetail = /* @__PURE__ */ __name((output, context) => {
1822
+ return (0, import_smithy_client.take)(output, {
1823
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1824
+ credentials: (_) => de_CredentialSummaries(_, context),
1825
+ enabled: import_smithy_client.expectBoolean,
1826
+ instanceProperties: (_) => de_InstanceProperties(_, context),
1827
+ lastSeenAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1828
+ subjectArn: import_smithy_client.expectString,
1829
+ subjectId: import_smithy_client.expectString,
1830
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1831
+ x509Subject: import_smithy_client.expectString
1832
+ });
1833
+ }, "de_SubjectDetail");
1834
+ var de_SubjectSummaries = /* @__PURE__ */ __name((output, context) => {
1835
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1836
+ return de_SubjectSummary(entry, context);
1837
+ });
1838
+ return retVal;
1839
+ }, "de_SubjectSummaries");
1840
+ var de_SubjectSummary = /* @__PURE__ */ __name((output, context) => {
1841
+ return (0, import_smithy_client.take)(output, {
1842
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1843
+ enabled: import_smithy_client.expectBoolean,
1844
+ lastSeenAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1845
+ subjectArn: import_smithy_client.expectString,
1846
+ subjectId: import_smithy_client.expectString,
1847
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1848
+ x509Subject: import_smithy_client.expectString
1849
+ });
1850
+ }, "de_SubjectSummary");
1851
+ var de_TrustAnchorDetail = /* @__PURE__ */ __name((output, context) => {
1852
+ return (0, import_smithy_client.take)(output, {
1853
+ createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
1854
+ enabled: import_smithy_client.expectBoolean,
1855
+ name: import_smithy_client.expectString,
1856
+ notificationSettings: import_smithy_client._json,
1857
+ source: import_smithy_client._json,
1858
+ trustAnchorArn: import_smithy_client.expectString,
1859
+ trustAnchorId: import_smithy_client.expectString,
1860
+ updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
1861
+ });
1862
+ }, "de_TrustAnchorDetail");
1863
+ var de_TrustAnchorDetails = /* @__PURE__ */ __name((output, context) => {
1864
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1865
+ return de_TrustAnchorDetail(entry, context);
1866
+ });
1867
+ return retVal;
1868
+ }, "de_TrustAnchorDetails");
1869
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1870
+ httpStatusCode: output.statusCode,
1871
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1872
+ extendedRequestId: output.headers["x-amz-id-2"],
1873
+ cfId: output.headers["x-amz-cf-id"]
1874
+ }), "deserializeMetadata");
1875
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1876
+ var _nT = "nextToken";
1877
+ var _pS = "pageSize";
1878
+ var _rA = "resourceArn";
1879
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1880
+ if (encoded.length) {
1881
+ return JSON.parse(encoded);
1882
+ }
1883
+ return {};
1884
+ }), "parseBody");
1885
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1886
+ const value = await parseBody(errorBody, context);
1887
+ value.message = value.message ?? value.Message;
1888
+ return value;
1889
+ }, "parseErrorBody");
1890
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1891
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1892
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1893
+ let cleanValue = rawValue;
1894
+ if (typeof cleanValue === "number") {
1895
+ cleanValue = cleanValue.toString();
1896
+ }
1897
+ if (cleanValue.indexOf(",") >= 0) {
1898
+ cleanValue = cleanValue.split(",")[0];
1899
+ }
1900
+ if (cleanValue.indexOf(":") >= 0) {
1901
+ cleanValue = cleanValue.split(":")[0];
1902
+ }
1903
+ if (cleanValue.indexOf("#") >= 0) {
1904
+ cleanValue = cleanValue.split("#")[1];
1905
+ }
1906
+ return cleanValue;
1907
+ }, "sanitizeErrorCode");
1908
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
1909
+ if (headerKey !== void 0) {
1910
+ return sanitizeErrorCode(output.headers[headerKey]);
1911
+ }
1912
+ if (data.code !== void 0) {
1913
+ return sanitizeErrorCode(data.code);
1914
+ }
1915
+ if (data["__type"] !== void 0) {
1916
+ return sanitizeErrorCode(data["__type"]);
1917
+ }
1918
+ }, "loadRestJsonErrorCode");
1919
+
1920
+ // src/commands/CreateProfileCommand.ts
1921
+ var _CreateProfileCommand = class _CreateProfileCommand extends import_smithy_client.Command.classBuilder().ep({
1922
+ ...commonParams
1923
+ }).m(function(Command, cs, config, o) {
1924
+ return [
1925
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1926
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1927
+ ];
1928
+ }).s("RolesAnywhere", "CreateProfile", {}).n("RolesAnywhereClient", "CreateProfileCommand").f(CreateProfileRequestFilterSensitiveLog, void 0).ser(se_CreateProfileCommand).de(de_CreateProfileCommand).build() {
1929
+ };
1930
+ __name(_CreateProfileCommand, "CreateProfileCommand");
1931
+ var CreateProfileCommand = _CreateProfileCommand;
1932
+
1933
+ // src/commands/CreateTrustAnchorCommand.ts
1934
+
1935
+
1936
+
1937
+
1938
+ var _CreateTrustAnchorCommand = class _CreateTrustAnchorCommand extends import_smithy_client.Command.classBuilder().ep({
1939
+ ...commonParams
1940
+ }).m(function(Command, cs, config, o) {
1941
+ return [
1942
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1943
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1944
+ ];
1945
+ }).s("RolesAnywhere", "CreateTrustAnchor", {}).n("RolesAnywhereClient", "CreateTrustAnchorCommand").f(CreateTrustAnchorRequestFilterSensitiveLog, void 0).ser(se_CreateTrustAnchorCommand).de(de_CreateTrustAnchorCommand).build() {
1946
+ };
1947
+ __name(_CreateTrustAnchorCommand, "CreateTrustAnchorCommand");
1948
+ var CreateTrustAnchorCommand = _CreateTrustAnchorCommand;
1949
+
1950
+ // src/commands/DeleteCrlCommand.ts
1951
+
1952
+
1953
+
1954
+
1955
+ var _DeleteCrlCommand = class _DeleteCrlCommand extends import_smithy_client.Command.classBuilder().ep({
1956
+ ...commonParams
1957
+ }).m(function(Command, cs, config, o) {
1958
+ return [
1959
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1960
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1961
+ ];
1962
+ }).s("RolesAnywhere", "DeleteCrl", {}).n("RolesAnywhereClient", "DeleteCrlCommand").f(void 0, void 0).ser(se_DeleteCrlCommand).de(de_DeleteCrlCommand).build() {
1963
+ };
1964
+ __name(_DeleteCrlCommand, "DeleteCrlCommand");
1965
+ var DeleteCrlCommand = _DeleteCrlCommand;
1966
+
1967
+ // src/commands/DeleteProfileCommand.ts
1968
+
1969
+
1970
+
1971
+
1972
+ var _DeleteProfileCommand = class _DeleteProfileCommand extends import_smithy_client.Command.classBuilder().ep({
1973
+ ...commonParams
1974
+ }).m(function(Command, cs, config, o) {
1975
+ return [
1976
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1977
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1978
+ ];
1979
+ }).s("RolesAnywhere", "DeleteProfile", {}).n("RolesAnywhereClient", "DeleteProfileCommand").f(void 0, void 0).ser(se_DeleteProfileCommand).de(de_DeleteProfileCommand).build() {
1980
+ };
1981
+ __name(_DeleteProfileCommand, "DeleteProfileCommand");
1982
+ var DeleteProfileCommand = _DeleteProfileCommand;
1983
+
1984
+ // src/commands/DeleteTrustAnchorCommand.ts
1985
+
1986
+
1987
+
1988
+
1989
+ var _DeleteTrustAnchorCommand = class _DeleteTrustAnchorCommand extends import_smithy_client.Command.classBuilder().ep({
1990
+ ...commonParams
1991
+ }).m(function(Command, cs, config, o) {
1992
+ return [
1993
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1994
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1995
+ ];
1996
+ }).s("RolesAnywhere", "DeleteTrustAnchor", {}).n("RolesAnywhereClient", "DeleteTrustAnchorCommand").f(void 0, void 0).ser(se_DeleteTrustAnchorCommand).de(de_DeleteTrustAnchorCommand).build() {
1997
+ };
1998
+ __name(_DeleteTrustAnchorCommand, "DeleteTrustAnchorCommand");
1999
+ var DeleteTrustAnchorCommand = _DeleteTrustAnchorCommand;
2000
+
2001
+ // src/commands/DisableCrlCommand.ts
2002
+
2003
+
2004
+
2005
+
2006
+ var _DisableCrlCommand = class _DisableCrlCommand extends import_smithy_client.Command.classBuilder().ep({
2007
+ ...commonParams
2008
+ }).m(function(Command, cs, config, o) {
2009
+ return [
2010
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2011
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2012
+ ];
2013
+ }).s("RolesAnywhere", "DisableCrl", {}).n("RolesAnywhereClient", "DisableCrlCommand").f(void 0, void 0).ser(se_DisableCrlCommand).de(de_DisableCrlCommand).build() {
2014
+ };
2015
+ __name(_DisableCrlCommand, "DisableCrlCommand");
2016
+ var DisableCrlCommand = _DisableCrlCommand;
2017
+
2018
+ // src/commands/DisableProfileCommand.ts
2019
+
2020
+
2021
+
2022
+
2023
+ var _DisableProfileCommand = class _DisableProfileCommand extends import_smithy_client.Command.classBuilder().ep({
2024
+ ...commonParams
2025
+ }).m(function(Command, cs, config, o) {
2026
+ return [
2027
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2028
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2029
+ ];
2030
+ }).s("RolesAnywhere", "DisableProfile", {}).n("RolesAnywhereClient", "DisableProfileCommand").f(void 0, void 0).ser(se_DisableProfileCommand).de(de_DisableProfileCommand).build() {
2031
+ };
2032
+ __name(_DisableProfileCommand, "DisableProfileCommand");
2033
+ var DisableProfileCommand = _DisableProfileCommand;
2034
+
2035
+ // src/commands/DisableTrustAnchorCommand.ts
2036
+
2037
+
2038
+
2039
+
2040
+ var _DisableTrustAnchorCommand = class _DisableTrustAnchorCommand extends import_smithy_client.Command.classBuilder().ep({
2041
+ ...commonParams
2042
+ }).m(function(Command, cs, config, o) {
2043
+ return [
2044
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2045
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2046
+ ];
2047
+ }).s("RolesAnywhere", "DisableTrustAnchor", {}).n("RolesAnywhereClient", "DisableTrustAnchorCommand").f(void 0, void 0).ser(se_DisableTrustAnchorCommand).de(de_DisableTrustAnchorCommand).build() {
2048
+ };
2049
+ __name(_DisableTrustAnchorCommand, "DisableTrustAnchorCommand");
2050
+ var DisableTrustAnchorCommand = _DisableTrustAnchorCommand;
2051
+
2052
+ // src/commands/EnableCrlCommand.ts
2053
+
2054
+
2055
+
2056
+
2057
+ var _EnableCrlCommand = class _EnableCrlCommand extends import_smithy_client.Command.classBuilder().ep({
2058
+ ...commonParams
2059
+ }).m(function(Command, cs, config, o) {
2060
+ return [
2061
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2062
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2063
+ ];
2064
+ }).s("RolesAnywhere", "EnableCrl", {}).n("RolesAnywhereClient", "EnableCrlCommand").f(void 0, void 0).ser(se_EnableCrlCommand).de(de_EnableCrlCommand).build() {
2065
+ };
2066
+ __name(_EnableCrlCommand, "EnableCrlCommand");
2067
+ var EnableCrlCommand = _EnableCrlCommand;
2068
+
2069
+ // src/commands/EnableProfileCommand.ts
2070
+
2071
+
2072
+
2073
+
2074
+ var _EnableProfileCommand = class _EnableProfileCommand extends import_smithy_client.Command.classBuilder().ep({
2075
+ ...commonParams
2076
+ }).m(function(Command, cs, config, o) {
2077
+ return [
2078
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2079
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2080
+ ];
2081
+ }).s("RolesAnywhere", "EnableProfile", {}).n("RolesAnywhereClient", "EnableProfileCommand").f(void 0, void 0).ser(se_EnableProfileCommand).de(de_EnableProfileCommand).build() {
2082
+ };
2083
+ __name(_EnableProfileCommand, "EnableProfileCommand");
2084
+ var EnableProfileCommand = _EnableProfileCommand;
2085
+
2086
+ // src/commands/EnableTrustAnchorCommand.ts
2087
+
2088
+
2089
+
2090
+
2091
+ var _EnableTrustAnchorCommand = class _EnableTrustAnchorCommand extends import_smithy_client.Command.classBuilder().ep({
2092
+ ...commonParams
2093
+ }).m(function(Command, cs, config, o) {
2094
+ return [
2095
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2096
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2097
+ ];
2098
+ }).s("RolesAnywhere", "EnableTrustAnchor", {}).n("RolesAnywhereClient", "EnableTrustAnchorCommand").f(void 0, void 0).ser(se_EnableTrustAnchorCommand).de(de_EnableTrustAnchorCommand).build() {
2099
+ };
2100
+ __name(_EnableTrustAnchorCommand, "EnableTrustAnchorCommand");
2101
+ var EnableTrustAnchorCommand = _EnableTrustAnchorCommand;
2102
+
2103
+ // src/commands/GetCrlCommand.ts
2104
+
2105
+
2106
+
2107
+
2108
+ var _GetCrlCommand = class _GetCrlCommand extends import_smithy_client.Command.classBuilder().ep({
2109
+ ...commonParams
2110
+ }).m(function(Command, cs, config, o) {
2111
+ return [
2112
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2113
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2114
+ ];
2115
+ }).s("RolesAnywhere", "GetCrl", {}).n("RolesAnywhereClient", "GetCrlCommand").f(void 0, void 0).ser(se_GetCrlCommand).de(de_GetCrlCommand).build() {
2116
+ };
2117
+ __name(_GetCrlCommand, "GetCrlCommand");
2118
+ var GetCrlCommand = _GetCrlCommand;
2119
+
2120
+ // src/commands/GetProfileCommand.ts
2121
+
2122
+
2123
+
2124
+
2125
+ var _GetProfileCommand = class _GetProfileCommand extends import_smithy_client.Command.classBuilder().ep({
2126
+ ...commonParams
2127
+ }).m(function(Command, cs, config, o) {
2128
+ return [
2129
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2130
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2131
+ ];
2132
+ }).s("RolesAnywhere", "GetProfile", {}).n("RolesAnywhereClient", "GetProfileCommand").f(void 0, void 0).ser(se_GetProfileCommand).de(de_GetProfileCommand).build() {
2133
+ };
2134
+ __name(_GetProfileCommand, "GetProfileCommand");
2135
+ var GetProfileCommand = _GetProfileCommand;
2136
+
2137
+ // src/commands/GetSubjectCommand.ts
2138
+
2139
+
2140
+
2141
+
2142
+ var _GetSubjectCommand = class _GetSubjectCommand extends import_smithy_client.Command.classBuilder().ep({
2143
+ ...commonParams
2144
+ }).m(function(Command, cs, config, o) {
2145
+ return [
2146
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2147
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2148
+ ];
2149
+ }).s("RolesAnywhere", "GetSubject", {}).n("RolesAnywhereClient", "GetSubjectCommand").f(void 0, void 0).ser(se_GetSubjectCommand).de(de_GetSubjectCommand).build() {
2150
+ };
2151
+ __name(_GetSubjectCommand, "GetSubjectCommand");
2152
+ var GetSubjectCommand = _GetSubjectCommand;
2153
+
2154
+ // src/commands/GetTrustAnchorCommand.ts
2155
+
2156
+
2157
+
2158
+
2159
+ var _GetTrustAnchorCommand = class _GetTrustAnchorCommand extends import_smithy_client.Command.classBuilder().ep({
2160
+ ...commonParams
2161
+ }).m(function(Command, cs, config, o) {
2162
+ return [
2163
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2164
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2165
+ ];
2166
+ }).s("RolesAnywhere", "GetTrustAnchor", {}).n("RolesAnywhereClient", "GetTrustAnchorCommand").f(void 0, void 0).ser(se_GetTrustAnchorCommand).de(de_GetTrustAnchorCommand).build() {
2167
+ };
2168
+ __name(_GetTrustAnchorCommand, "GetTrustAnchorCommand");
2169
+ var GetTrustAnchorCommand = _GetTrustAnchorCommand;
2170
+
2171
+ // src/commands/ImportCrlCommand.ts
2172
+
2173
+
2174
+
2175
+
2176
+ var _ImportCrlCommand = class _ImportCrlCommand extends import_smithy_client.Command.classBuilder().ep({
2177
+ ...commonParams
2178
+ }).m(function(Command, cs, config, o) {
2179
+ return [
2180
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2181
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2182
+ ];
2183
+ }).s("RolesAnywhere", "ImportCrl", {}).n("RolesAnywhereClient", "ImportCrlCommand").f(ImportCrlRequestFilterSensitiveLog, void 0).ser(se_ImportCrlCommand).de(de_ImportCrlCommand).build() {
2184
+ };
2185
+ __name(_ImportCrlCommand, "ImportCrlCommand");
2186
+ var ImportCrlCommand = _ImportCrlCommand;
2187
+
2188
+ // src/commands/ListCrlsCommand.ts
2189
+
2190
+
2191
+
2192
+
2193
+ var _ListCrlsCommand = class _ListCrlsCommand extends import_smithy_client.Command.classBuilder().ep({
2194
+ ...commonParams
2195
+ }).m(function(Command, cs, config, o) {
2196
+ return [
2197
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2198
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2199
+ ];
2200
+ }).s("RolesAnywhere", "ListCrls", {}).n("RolesAnywhereClient", "ListCrlsCommand").f(void 0, void 0).ser(se_ListCrlsCommand).de(de_ListCrlsCommand).build() {
2201
+ };
2202
+ __name(_ListCrlsCommand, "ListCrlsCommand");
2203
+ var ListCrlsCommand = _ListCrlsCommand;
2204
+
2205
+ // src/commands/ListProfilesCommand.ts
2206
+
2207
+
2208
+
2209
+
2210
+ var _ListProfilesCommand = class _ListProfilesCommand extends import_smithy_client.Command.classBuilder().ep({
2211
+ ...commonParams
2212
+ }).m(function(Command, cs, config, o) {
2213
+ return [
2214
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2215
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2216
+ ];
2217
+ }).s("RolesAnywhere", "ListProfiles", {}).n("RolesAnywhereClient", "ListProfilesCommand").f(void 0, void 0).ser(se_ListProfilesCommand).de(de_ListProfilesCommand).build() {
2218
+ };
2219
+ __name(_ListProfilesCommand, "ListProfilesCommand");
2220
+ var ListProfilesCommand = _ListProfilesCommand;
2221
+
2222
+ // src/commands/ListSubjectsCommand.ts
2223
+
2224
+
2225
+
2226
+
2227
+ var _ListSubjectsCommand = class _ListSubjectsCommand extends import_smithy_client.Command.classBuilder().ep({
2228
+ ...commonParams
2229
+ }).m(function(Command, cs, config, o) {
2230
+ return [
2231
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2232
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2233
+ ];
2234
+ }).s("RolesAnywhere", "ListSubjects", {}).n("RolesAnywhereClient", "ListSubjectsCommand").f(void 0, void 0).ser(se_ListSubjectsCommand).de(de_ListSubjectsCommand).build() {
2235
+ };
2236
+ __name(_ListSubjectsCommand, "ListSubjectsCommand");
2237
+ var ListSubjectsCommand = _ListSubjectsCommand;
2238
+
2239
+ // src/commands/ListTagsForResourceCommand.ts
2240
+
2241
+
2242
+
2243
+
2244
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2245
+ ...commonParams
2246
+ }).m(function(Command, cs, config, o) {
2247
+ return [
2248
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2249
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2250
+ ];
2251
+ }).s("RolesAnywhere", "ListTagsForResource", {}).n("RolesAnywhereClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2252
+ };
2253
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2254
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2255
+
2256
+ // src/commands/ListTrustAnchorsCommand.ts
2257
+
2258
+
2259
+
2260
+
2261
+ var _ListTrustAnchorsCommand = class _ListTrustAnchorsCommand extends import_smithy_client.Command.classBuilder().ep({
2262
+ ...commonParams
2263
+ }).m(function(Command, cs, config, o) {
2264
+ return [
2265
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2266
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2267
+ ];
2268
+ }).s("RolesAnywhere", "ListTrustAnchors", {}).n("RolesAnywhereClient", "ListTrustAnchorsCommand").f(void 0, void 0).ser(se_ListTrustAnchorsCommand).de(de_ListTrustAnchorsCommand).build() {
2269
+ };
2270
+ __name(_ListTrustAnchorsCommand, "ListTrustAnchorsCommand");
2271
+ var ListTrustAnchorsCommand = _ListTrustAnchorsCommand;
2272
+
2273
+ // src/commands/PutNotificationSettingsCommand.ts
2274
+
2275
+
2276
+
2277
+
2278
+ var _PutNotificationSettingsCommand = class _PutNotificationSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
2279
+ ...commonParams
2280
+ }).m(function(Command, cs, config, o) {
2281
+ return [
2282
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2283
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2284
+ ];
2285
+ }).s("RolesAnywhere", "PutNotificationSettings", {}).n("RolesAnywhereClient", "PutNotificationSettingsCommand").f(void 0, void 0).ser(se_PutNotificationSettingsCommand).de(de_PutNotificationSettingsCommand).build() {
2286
+ };
2287
+ __name(_PutNotificationSettingsCommand, "PutNotificationSettingsCommand");
2288
+ var PutNotificationSettingsCommand = _PutNotificationSettingsCommand;
2289
+
2290
+ // src/commands/ResetNotificationSettingsCommand.ts
2291
+
2292
+
2293
+
2294
+
2295
+ var _ResetNotificationSettingsCommand = class _ResetNotificationSettingsCommand extends import_smithy_client.Command.classBuilder().ep({
2296
+ ...commonParams
2297
+ }).m(function(Command, cs, config, o) {
2298
+ return [
2299
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2300
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2301
+ ];
2302
+ }).s("RolesAnywhere", "ResetNotificationSettings", {}).n("RolesAnywhereClient", "ResetNotificationSettingsCommand").f(void 0, void 0).ser(se_ResetNotificationSettingsCommand).de(de_ResetNotificationSettingsCommand).build() {
2303
+ };
2304
+ __name(_ResetNotificationSettingsCommand, "ResetNotificationSettingsCommand");
2305
+ var ResetNotificationSettingsCommand = _ResetNotificationSettingsCommand;
2306
+
2307
+ // src/commands/TagResourceCommand.ts
2308
+
2309
+
2310
+
2311
+
2312
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2313
+ ...commonParams
2314
+ }).m(function(Command, cs, config, o) {
2315
+ return [
2316
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2317
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2318
+ ];
2319
+ }).s("RolesAnywhere", "TagResource", {}).n("RolesAnywhereClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2320
+ };
2321
+ __name(_TagResourceCommand, "TagResourceCommand");
2322
+ var TagResourceCommand = _TagResourceCommand;
2323
+
2324
+ // src/commands/UntagResourceCommand.ts
2325
+
2326
+
2327
+
2328
+
2329
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2330
+ ...commonParams
2331
+ }).m(function(Command, cs, config, o) {
2332
+ return [
2333
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2334
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2335
+ ];
2336
+ }).s("RolesAnywhere", "UntagResource", {}).n("RolesAnywhereClient", "UntagResourceCommand").f(UntagResourceRequestFilterSensitiveLog, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2337
+ };
2338
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2339
+ var UntagResourceCommand = _UntagResourceCommand;
2340
+
2341
+ // src/commands/UpdateCrlCommand.ts
2342
+
2343
+
2344
+
2345
+
2346
+ var _UpdateCrlCommand = class _UpdateCrlCommand extends import_smithy_client.Command.classBuilder().ep({
2347
+ ...commonParams
2348
+ }).m(function(Command, cs, config, o) {
2349
+ return [
2350
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2351
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2352
+ ];
2353
+ }).s("RolesAnywhere", "UpdateCrl", {}).n("RolesAnywhereClient", "UpdateCrlCommand").f(void 0, void 0).ser(se_UpdateCrlCommand).de(de_UpdateCrlCommand).build() {
2354
+ };
2355
+ __name(_UpdateCrlCommand, "UpdateCrlCommand");
2356
+ var UpdateCrlCommand = _UpdateCrlCommand;
2357
+
2358
+ // src/commands/UpdateProfileCommand.ts
2359
+
2360
+
2361
+
2362
+
2363
+ var _UpdateProfileCommand = class _UpdateProfileCommand extends import_smithy_client.Command.classBuilder().ep({
2364
+ ...commonParams
2365
+ }).m(function(Command, cs, config, o) {
2366
+ return [
2367
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2368
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2369
+ ];
2370
+ }).s("RolesAnywhere", "UpdateProfile", {}).n("RolesAnywhereClient", "UpdateProfileCommand").f(void 0, void 0).ser(se_UpdateProfileCommand).de(de_UpdateProfileCommand).build() {
2371
+ };
2372
+ __name(_UpdateProfileCommand, "UpdateProfileCommand");
2373
+ var UpdateProfileCommand = _UpdateProfileCommand;
2374
+
2375
+ // src/commands/UpdateTrustAnchorCommand.ts
2376
+
2377
+
2378
+
2379
+
2380
+ var _UpdateTrustAnchorCommand = class _UpdateTrustAnchorCommand extends import_smithy_client.Command.classBuilder().ep({
2381
+ ...commonParams
2382
+ }).m(function(Command, cs, config, o) {
2383
+ return [
2384
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2385
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2386
+ ];
2387
+ }).s("RolesAnywhere", "UpdateTrustAnchor", {}).n("RolesAnywhereClient", "UpdateTrustAnchorCommand").f(void 0, void 0).ser(se_UpdateTrustAnchorCommand).de(de_UpdateTrustAnchorCommand).build() {
2388
+ };
2389
+ __name(_UpdateTrustAnchorCommand, "UpdateTrustAnchorCommand");
2390
+ var UpdateTrustAnchorCommand = _UpdateTrustAnchorCommand;
2391
+
2392
+ // src/RolesAnywhere.ts
2393
+ var commands = {
2394
+ CreateProfileCommand,
2395
+ CreateTrustAnchorCommand,
2396
+ DeleteCrlCommand,
2397
+ DeleteProfileCommand,
2398
+ DeleteTrustAnchorCommand,
2399
+ DisableCrlCommand,
2400
+ DisableProfileCommand,
2401
+ DisableTrustAnchorCommand,
2402
+ EnableCrlCommand,
2403
+ EnableProfileCommand,
2404
+ EnableTrustAnchorCommand,
2405
+ GetCrlCommand,
2406
+ GetProfileCommand,
2407
+ GetSubjectCommand,
2408
+ GetTrustAnchorCommand,
2409
+ ImportCrlCommand,
2410
+ ListCrlsCommand,
2411
+ ListProfilesCommand,
2412
+ ListSubjectsCommand,
2413
+ ListTagsForResourceCommand,
2414
+ ListTrustAnchorsCommand,
2415
+ PutNotificationSettingsCommand,
2416
+ ResetNotificationSettingsCommand,
2417
+ TagResourceCommand,
2418
+ UntagResourceCommand,
2419
+ UpdateCrlCommand,
2420
+ UpdateProfileCommand,
2421
+ UpdateTrustAnchorCommand
2422
+ };
2423
+ var _RolesAnywhere = class _RolesAnywhere extends RolesAnywhereClient {
2424
+ };
2425
+ __name(_RolesAnywhere, "RolesAnywhere");
2426
+ var RolesAnywhere = _RolesAnywhere;
2427
+ (0, import_smithy_client.createAggregatedClient)(commands, RolesAnywhere);
2428
+
2429
+ // src/pagination/ListCrlsPaginator.ts
2430
+
2431
+ var paginateListCrls = (0, import_core.createPaginator)(RolesAnywhereClient, ListCrlsCommand, "nextToken", "nextToken", "");
2432
+
2433
+ // src/pagination/ListProfilesPaginator.ts
2434
+
2435
+ var paginateListProfiles = (0, import_core.createPaginator)(RolesAnywhereClient, ListProfilesCommand, "nextToken", "nextToken", "");
2436
+
2437
+ // src/pagination/ListSubjectsPaginator.ts
2438
+
2439
+ var paginateListSubjects = (0, import_core.createPaginator)(RolesAnywhereClient, ListSubjectsCommand, "nextToken", "nextToken", "");
2440
+
2441
+ // src/pagination/ListTrustAnchorsPaginator.ts
2442
+
2443
+ var paginateListTrustAnchors = (0, import_core.createPaginator)(RolesAnywhereClient, ListTrustAnchorsCommand, "nextToken", "nextToken", "");
2444
+
2445
+ // src/index.ts
2446
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2447
+ // Annotate the CommonJS export names for ESM import in node:
2448
+ 0 && (module.exports = {
2449
+ AccessDeniedException,
2450
+ CreateProfileCommand,
2451
+ CreateProfileRequestFilterSensitiveLog,
2452
+ CreateTrustAnchorCommand,
2453
+ CreateTrustAnchorRequestFilterSensitiveLog,
2454
+ DeleteCrlCommand,
2455
+ DeleteProfileCommand,
2456
+ DeleteTrustAnchorCommand,
2457
+ DisableCrlCommand,
2458
+ DisableProfileCommand,
2459
+ DisableTrustAnchorCommand,
2460
+ EnableCrlCommand,
2461
+ EnableProfileCommand,
2462
+ EnableTrustAnchorCommand,
2463
+ GetCrlCommand,
2464
+ GetProfileCommand,
2465
+ GetSubjectCommand,
2466
+ GetTrustAnchorCommand,
2467
+ ImportCrlCommand,
2468
+ ImportCrlRequestFilterSensitiveLog,
2469
+ ListCrlsCommand,
2470
+ ListProfilesCommand,
2471
+ ListSubjectsCommand,
2472
+ ListTagsForResourceCommand,
2473
+ ListTagsForResourceResponseFilterSensitiveLog,
2474
+ ListTrustAnchorsCommand,
2475
+ NotificationChannel,
2476
+ NotificationEvent,
2477
+ PutNotificationSettingsCommand,
2478
+ ResetNotificationSettingsCommand,
2479
+ ResourceNotFoundException,
2480
+ RolesAnywhere,
2481
+ RolesAnywhereClient,
2482
+ RolesAnywhereServiceException,
2483
+ SourceData,
2484
+ TagFilterSensitiveLog,
2485
+ TagResourceCommand,
2486
+ TagResourceRequestFilterSensitiveLog,
2487
+ TooManyTagsException,
2488
+ TrustAnchorType,
2489
+ UntagResourceCommand,
2490
+ UntagResourceRequestFilterSensitiveLog,
2491
+ UpdateCrlCommand,
2492
+ UpdateProfileCommand,
2493
+ UpdateTrustAnchorCommand,
2494
+ ValidationException,
2495
+ __Client,
2496
+ paginateListCrls,
2497
+ paginateListProfiles,
2498
+ paginateListSubjects,
2499
+ paginateListTrustAnchors
2500
+ });