@aws-sdk/client-verifiedpermissions 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 (43) hide show
  1. package/dist-cjs/VerifiedPermissions.js +1 -61
  2. package/dist-cjs/VerifiedPermissionsClient.js +1 -43
  3. package/dist-cjs/commands/BatchIsAuthorizedCommand.js +1 -29
  4. package/dist-cjs/commands/CreateIdentitySourceCommand.js +1 -29
  5. package/dist-cjs/commands/CreatePolicyCommand.js +1 -29
  6. package/dist-cjs/commands/CreatePolicyStoreCommand.js +1 -29
  7. package/dist-cjs/commands/CreatePolicyTemplateCommand.js +1 -29
  8. package/dist-cjs/commands/DeleteIdentitySourceCommand.js +1 -28
  9. package/dist-cjs/commands/DeletePolicyCommand.js +1 -28
  10. package/dist-cjs/commands/DeletePolicyStoreCommand.js +1 -28
  11. package/dist-cjs/commands/DeletePolicyTemplateCommand.js +1 -28
  12. package/dist-cjs/commands/GetIdentitySourceCommand.js +1 -29
  13. package/dist-cjs/commands/GetPolicyCommand.js +1 -29
  14. package/dist-cjs/commands/GetPolicyStoreCommand.js +1 -29
  15. package/dist-cjs/commands/GetPolicyTemplateCommand.js +1 -29
  16. package/dist-cjs/commands/GetSchemaCommand.js +1 -29
  17. package/dist-cjs/commands/IsAuthorizedCommand.js +1 -29
  18. package/dist-cjs/commands/IsAuthorizedWithTokenCommand.js +1 -29
  19. package/dist-cjs/commands/ListIdentitySourcesCommand.js +1 -29
  20. package/dist-cjs/commands/ListPoliciesCommand.js +1 -29
  21. package/dist-cjs/commands/ListPolicyStoresCommand.js +1 -29
  22. package/dist-cjs/commands/ListPolicyTemplatesCommand.js +1 -29
  23. package/dist-cjs/commands/PutSchemaCommand.js +1 -29
  24. package/dist-cjs/commands/UpdateIdentitySourceCommand.js +1 -29
  25. package/dist-cjs/commands/UpdatePolicyCommand.js +1 -29
  26. package/dist-cjs/commands/UpdatePolicyStoreCommand.js +1 -29
  27. package/dist-cjs/commands/UpdatePolicyTemplateCommand.js +1 -29
  28. package/dist-cjs/commands/index.js +1 -28
  29. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  30. package/dist-cjs/extensionConfiguration.js +1 -2
  31. package/dist-cjs/index.js +3348 -11
  32. package/dist-cjs/models/VerifiedPermissionsServiceException.js +1 -12
  33. package/dist-cjs/models/index.js +1 -4
  34. package/dist-cjs/models/models_0.js +1 -648
  35. package/dist-cjs/pagination/Interfaces.js +1 -2
  36. package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +1 -7
  37. package/dist-cjs/pagination/ListPoliciesPaginator.js +1 -7
  38. package/dist-cjs/pagination/ListPolicyStoresPaginator.js +1 -7
  39. package/dist-cjs/pagination/ListPolicyTemplatesPaginator.js +1 -7
  40. package/dist-cjs/pagination/index.js +1 -8
  41. package/dist-cjs/protocols/Aws_json1_0.js +1 -1948
  42. package/dist-cjs/runtimeExtensions.js +1 -22
  43. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3349 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VerifiedPermissionsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./VerifiedPermissionsClient"), exports);
6
- tslib_1.__exportStar(require("./VerifiedPermissions"), 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 VerifiedPermissionsServiceException_1 = require("./models/VerifiedPermissionsServiceException");
12
- Object.defineProperty(exports, "VerifiedPermissionsServiceException", { enumerable: true, get: function () { return VerifiedPermissionsServiceException_1.VerifiedPermissionsServiceException; } });
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
+ ActionIdentifierFilterSensitiveLog: () => ActionIdentifierFilterSensitiveLog,
26
+ AttributeValue: () => AttributeValue,
27
+ AttributeValueFilterSensitiveLog: () => AttributeValueFilterSensitiveLog,
28
+ BatchIsAuthorizedCommand: () => BatchIsAuthorizedCommand,
29
+ BatchIsAuthorizedInputFilterSensitiveLog: () => BatchIsAuthorizedInputFilterSensitiveLog,
30
+ BatchIsAuthorizedInputItemFilterSensitiveLog: () => BatchIsAuthorizedInputItemFilterSensitiveLog,
31
+ BatchIsAuthorizedOutputFilterSensitiveLog: () => BatchIsAuthorizedOutputFilterSensitiveLog,
32
+ BatchIsAuthorizedOutputItemFilterSensitiveLog: () => BatchIsAuthorizedOutputItemFilterSensitiveLog,
33
+ CognitoUserPoolConfigurationFilterSensitiveLog: () => CognitoUserPoolConfigurationFilterSensitiveLog,
34
+ Configuration: () => Configuration,
35
+ ConfigurationFilterSensitiveLog: () => ConfigurationFilterSensitiveLog,
36
+ ConflictException: () => ConflictException,
37
+ ContextDefinition: () => ContextDefinition,
38
+ ContextDefinitionFilterSensitiveLog: () => ContextDefinitionFilterSensitiveLog,
39
+ CreateIdentitySourceCommand: () => CreateIdentitySourceCommand,
40
+ CreateIdentitySourceInputFilterSensitiveLog: () => CreateIdentitySourceInputFilterSensitiveLog,
41
+ CreatePolicyCommand: () => CreatePolicyCommand,
42
+ CreatePolicyInputFilterSensitiveLog: () => CreatePolicyInputFilterSensitiveLog,
43
+ CreatePolicyOutputFilterSensitiveLog: () => CreatePolicyOutputFilterSensitiveLog,
44
+ CreatePolicyStoreCommand: () => CreatePolicyStoreCommand,
45
+ CreatePolicyStoreInputFilterSensitiveLog: () => CreatePolicyStoreInputFilterSensitiveLog,
46
+ CreatePolicyTemplateCommand: () => CreatePolicyTemplateCommand,
47
+ CreatePolicyTemplateInputFilterSensitiveLog: () => CreatePolicyTemplateInputFilterSensitiveLog,
48
+ Decision: () => Decision,
49
+ DeleteIdentitySourceCommand: () => DeleteIdentitySourceCommand,
50
+ DeletePolicyCommand: () => DeletePolicyCommand,
51
+ DeletePolicyStoreCommand: () => DeletePolicyStoreCommand,
52
+ DeletePolicyTemplateCommand: () => DeletePolicyTemplateCommand,
53
+ EntitiesDefinition: () => EntitiesDefinition,
54
+ EntitiesDefinitionFilterSensitiveLog: () => EntitiesDefinitionFilterSensitiveLog,
55
+ EntityIdentifierFilterSensitiveLog: () => EntityIdentifierFilterSensitiveLog,
56
+ EntityItemFilterSensitiveLog: () => EntityItemFilterSensitiveLog,
57
+ EntityReference: () => EntityReference,
58
+ EntityReferenceFilterSensitiveLog: () => EntityReferenceFilterSensitiveLog,
59
+ EvaluationErrorItemFilterSensitiveLog: () => EvaluationErrorItemFilterSensitiveLog,
60
+ GetIdentitySourceCommand: () => GetIdentitySourceCommand,
61
+ GetIdentitySourceOutputFilterSensitiveLog: () => GetIdentitySourceOutputFilterSensitiveLog,
62
+ GetPolicyCommand: () => GetPolicyCommand,
63
+ GetPolicyOutputFilterSensitiveLog: () => GetPolicyOutputFilterSensitiveLog,
64
+ GetPolicyStoreCommand: () => GetPolicyStoreCommand,
65
+ GetPolicyStoreOutputFilterSensitiveLog: () => GetPolicyStoreOutputFilterSensitiveLog,
66
+ GetPolicyTemplateCommand: () => GetPolicyTemplateCommand,
67
+ GetPolicyTemplateOutputFilterSensitiveLog: () => GetPolicyTemplateOutputFilterSensitiveLog,
68
+ GetSchemaCommand: () => GetSchemaCommand,
69
+ GetSchemaOutputFilterSensitiveLog: () => GetSchemaOutputFilterSensitiveLog,
70
+ IdentitySourceDetailsFilterSensitiveLog: () => IdentitySourceDetailsFilterSensitiveLog,
71
+ IdentitySourceFilterFilterSensitiveLog: () => IdentitySourceFilterFilterSensitiveLog,
72
+ IdentitySourceItemDetailsFilterSensitiveLog: () => IdentitySourceItemDetailsFilterSensitiveLog,
73
+ IdentitySourceItemFilterSensitiveLog: () => IdentitySourceItemFilterSensitiveLog,
74
+ InternalServerException: () => InternalServerException,
75
+ IsAuthorizedCommand: () => IsAuthorizedCommand,
76
+ IsAuthorizedInputFilterSensitiveLog: () => IsAuthorizedInputFilterSensitiveLog,
77
+ IsAuthorizedOutputFilterSensitiveLog: () => IsAuthorizedOutputFilterSensitiveLog,
78
+ IsAuthorizedWithTokenCommand: () => IsAuthorizedWithTokenCommand,
79
+ IsAuthorizedWithTokenInputFilterSensitiveLog: () => IsAuthorizedWithTokenInputFilterSensitiveLog,
80
+ IsAuthorizedWithTokenOutputFilterSensitiveLog: () => IsAuthorizedWithTokenOutputFilterSensitiveLog,
81
+ ListIdentitySourcesCommand: () => ListIdentitySourcesCommand,
82
+ ListIdentitySourcesInputFilterSensitiveLog: () => ListIdentitySourcesInputFilterSensitiveLog,
83
+ ListIdentitySourcesOutputFilterSensitiveLog: () => ListIdentitySourcesOutputFilterSensitiveLog,
84
+ ListPoliciesCommand: () => ListPoliciesCommand,
85
+ ListPoliciesInputFilterSensitiveLog: () => ListPoliciesInputFilterSensitiveLog,
86
+ ListPoliciesOutputFilterSensitiveLog: () => ListPoliciesOutputFilterSensitiveLog,
87
+ ListPolicyStoresCommand: () => ListPolicyStoresCommand,
88
+ ListPolicyStoresOutputFilterSensitiveLog: () => ListPolicyStoresOutputFilterSensitiveLog,
89
+ ListPolicyTemplatesCommand: () => ListPolicyTemplatesCommand,
90
+ ListPolicyTemplatesOutputFilterSensitiveLog: () => ListPolicyTemplatesOutputFilterSensitiveLog,
91
+ OpenIdIssuer: () => OpenIdIssuer,
92
+ PolicyDefinition: () => PolicyDefinition,
93
+ PolicyDefinitionDetail: () => PolicyDefinitionDetail,
94
+ PolicyDefinitionDetailFilterSensitiveLog: () => PolicyDefinitionDetailFilterSensitiveLog,
95
+ PolicyDefinitionFilterSensitiveLog: () => PolicyDefinitionFilterSensitiveLog,
96
+ PolicyDefinitionItem: () => PolicyDefinitionItem,
97
+ PolicyDefinitionItemFilterSensitiveLog: () => PolicyDefinitionItemFilterSensitiveLog,
98
+ PolicyFilterFilterSensitiveLog: () => PolicyFilterFilterSensitiveLog,
99
+ PolicyItemFilterSensitiveLog: () => PolicyItemFilterSensitiveLog,
100
+ PolicyStoreItemFilterSensitiveLog: () => PolicyStoreItemFilterSensitiveLog,
101
+ PolicyTemplateItemFilterSensitiveLog: () => PolicyTemplateItemFilterSensitiveLog,
102
+ PolicyType: () => PolicyType,
103
+ PutSchemaCommand: () => PutSchemaCommand,
104
+ PutSchemaInputFilterSensitiveLog: () => PutSchemaInputFilterSensitiveLog,
105
+ PutSchemaOutputFilterSensitiveLog: () => PutSchemaOutputFilterSensitiveLog,
106
+ ResourceNotFoundException: () => ResourceNotFoundException,
107
+ ResourceType: () => ResourceType,
108
+ SchemaDefinition: () => SchemaDefinition,
109
+ SchemaDefinitionFilterSensitiveLog: () => SchemaDefinitionFilterSensitiveLog,
110
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
111
+ StaticPolicyDefinitionDetailFilterSensitiveLog: () => StaticPolicyDefinitionDetailFilterSensitiveLog,
112
+ StaticPolicyDefinitionFilterSensitiveLog: () => StaticPolicyDefinitionFilterSensitiveLog,
113
+ StaticPolicyDefinitionItemFilterSensitiveLog: () => StaticPolicyDefinitionItemFilterSensitiveLog,
114
+ TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog,
115
+ TemplateLinkedPolicyDefinitionFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionFilterSensitiveLog,
116
+ TemplateLinkedPolicyDefinitionItemFilterSensitiveLog: () => TemplateLinkedPolicyDefinitionItemFilterSensitiveLog,
117
+ ThrottlingException: () => ThrottlingException,
118
+ UpdateCognitoUserPoolConfigurationFilterSensitiveLog: () => UpdateCognitoUserPoolConfigurationFilterSensitiveLog,
119
+ UpdateConfiguration: () => UpdateConfiguration,
120
+ UpdateConfigurationFilterSensitiveLog: () => UpdateConfigurationFilterSensitiveLog,
121
+ UpdateIdentitySourceCommand: () => UpdateIdentitySourceCommand,
122
+ UpdateIdentitySourceInputFilterSensitiveLog: () => UpdateIdentitySourceInputFilterSensitiveLog,
123
+ UpdatePolicyCommand: () => UpdatePolicyCommand,
124
+ UpdatePolicyDefinition: () => UpdatePolicyDefinition,
125
+ UpdatePolicyDefinitionFilterSensitiveLog: () => UpdatePolicyDefinitionFilterSensitiveLog,
126
+ UpdatePolicyInputFilterSensitiveLog: () => UpdatePolicyInputFilterSensitiveLog,
127
+ UpdatePolicyOutputFilterSensitiveLog: () => UpdatePolicyOutputFilterSensitiveLog,
128
+ UpdatePolicyStoreCommand: () => UpdatePolicyStoreCommand,
129
+ UpdatePolicyStoreInputFilterSensitiveLog: () => UpdatePolicyStoreInputFilterSensitiveLog,
130
+ UpdatePolicyTemplateCommand: () => UpdatePolicyTemplateCommand,
131
+ UpdatePolicyTemplateInputFilterSensitiveLog: () => UpdatePolicyTemplateInputFilterSensitiveLog,
132
+ UpdateStaticPolicyDefinitionFilterSensitiveLog: () => UpdateStaticPolicyDefinitionFilterSensitiveLog,
133
+ ValidationException: () => ValidationException,
134
+ ValidationMode: () => ValidationMode,
135
+ VerifiedPermissions: () => VerifiedPermissions,
136
+ VerifiedPermissionsClient: () => VerifiedPermissionsClient,
137
+ VerifiedPermissionsServiceException: () => VerifiedPermissionsServiceException,
138
+ __Client: () => import_smithy_client.Client,
139
+ paginateListIdentitySources: () => paginateListIdentitySources,
140
+ paginateListPolicies: () => paginateListPolicies,
141
+ paginateListPolicyStores: () => paginateListPolicyStores,
142
+ paginateListPolicyTemplates: () => paginateListPolicyTemplates
143
+ });
144
+ module.exports = __toCommonJS(src_exports);
145
+
146
+ // src/VerifiedPermissionsClient.ts
147
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
148
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
149
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
150
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
151
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
152
+ var import_config_resolver = require("@smithy/config-resolver");
153
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
154
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
155
+ var import_middleware_retry = require("@smithy/middleware-retry");
156
+
157
+
158
+ // src/endpoint/EndpointParameters.ts
159
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
160
+ return {
161
+ ...options,
162
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
163
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
164
+ defaultSigningName: "verifiedpermissions"
165
+ };
166
+ }, "resolveClientEndpointParameters");
167
+ var commonParams = {
168
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
169
+ Endpoint: { type: "builtInParams", name: "endpoint" },
170
+ Region: { type: "builtInParams", name: "region" },
171
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
172
+ };
173
+
174
+ // src/VerifiedPermissionsClient.ts
175
+ var import_runtimeConfig = require("././runtimeConfig");
176
+
177
+ // src/runtimeExtensions.ts
178
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
179
+ var import_protocol_http = require("@smithy/protocol-http");
180
+ var import_smithy_client = require("@smithy/smithy-client");
181
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
182
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
183
+ const extensionConfiguration = {
184
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
185
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
186
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
187
+ };
188
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
189
+ return {
190
+ ...runtimeConfig,
191
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
192
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
193
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
194
+ };
195
+ }, "resolveRuntimeExtensions");
196
+
197
+ // src/VerifiedPermissionsClient.ts
198
+ var _VerifiedPermissionsClient = class _VerifiedPermissionsClient extends import_smithy_client.Client {
199
+ constructor(...[configuration]) {
200
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
201
+ const _config_1 = resolveClientEndpointParameters(_config_0);
202
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
203
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
204
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
205
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
206
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
207
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
208
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
209
+ super(_config_8);
210
+ this.config = _config_8;
211
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
212
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
213
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
214
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
215
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
216
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
217
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
218
+ }
219
+ /**
220
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
221
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
222
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
223
+ */
224
+ destroy() {
225
+ super.destroy();
226
+ }
227
+ };
228
+ __name(_VerifiedPermissionsClient, "VerifiedPermissionsClient");
229
+ var VerifiedPermissionsClient = _VerifiedPermissionsClient;
230
+
231
+ // src/VerifiedPermissions.ts
232
+
233
+
234
+ // src/commands/BatchIsAuthorizedCommand.ts
235
+
236
+ var import_middleware_serde = require("@smithy/middleware-serde");
237
+
238
+ var import_types = require("@smithy/types");
239
+
240
+ // src/models/models_0.ts
241
+
242
+
243
+ // src/models/VerifiedPermissionsServiceException.ts
244
+
245
+ var _VerifiedPermissionsServiceException = class _VerifiedPermissionsServiceException extends import_smithy_client.ServiceException {
246
+ /**
247
+ * @internal
248
+ */
249
+ constructor(options) {
250
+ super(options);
251
+ Object.setPrototypeOf(this, _VerifiedPermissionsServiceException.prototype);
252
+ }
253
+ };
254
+ __name(_VerifiedPermissionsServiceException, "VerifiedPermissionsServiceException");
255
+ var VerifiedPermissionsServiceException = _VerifiedPermissionsServiceException;
256
+
257
+ // src/models/models_0.ts
258
+ var _AccessDeniedException = class _AccessDeniedException extends VerifiedPermissionsServiceException {
259
+ /**
260
+ * @internal
261
+ */
262
+ constructor(opts) {
263
+ super({
264
+ name: "AccessDeniedException",
265
+ $fault: "client",
266
+ ...opts
267
+ });
268
+ this.name = "AccessDeniedException";
269
+ this.$fault = "client";
270
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
271
+ }
272
+ };
273
+ __name(_AccessDeniedException, "AccessDeniedException");
274
+ var AccessDeniedException = _AccessDeniedException;
275
+ var Decision = {
276
+ ALLOW: "ALLOW",
277
+ DENY: "DENY"
278
+ };
279
+ var _InternalServerException = class _InternalServerException extends VerifiedPermissionsServiceException {
280
+ /**
281
+ * @internal
282
+ */
283
+ constructor(opts) {
284
+ super({
285
+ name: "InternalServerException",
286
+ $fault: "server",
287
+ ...opts
288
+ });
289
+ this.name = "InternalServerException";
290
+ this.$fault = "server";
291
+ this.$retryable = {};
292
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
293
+ }
294
+ };
295
+ __name(_InternalServerException, "InternalServerException");
296
+ var InternalServerException = _InternalServerException;
297
+ var ResourceType = {
298
+ IDENTITY_SOURCE: "IDENTITY_SOURCE",
299
+ POLICY: "POLICY",
300
+ POLICY_STORE: "POLICY_STORE",
301
+ POLICY_TEMPLATE: "POLICY_TEMPLATE",
302
+ SCHEMA: "SCHEMA"
303
+ };
304
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends VerifiedPermissionsServiceException {
305
+ /**
306
+ * @internal
307
+ */
308
+ constructor(opts) {
309
+ super({
310
+ name: "ResourceNotFoundException",
311
+ $fault: "client",
312
+ ...opts
313
+ });
314
+ this.name = "ResourceNotFoundException";
315
+ this.$fault = "client";
316
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
317
+ this.resourceId = opts.resourceId;
318
+ this.resourceType = opts.resourceType;
319
+ }
320
+ };
321
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
322
+ var ResourceNotFoundException = _ResourceNotFoundException;
323
+ var _ThrottlingException = class _ThrottlingException extends VerifiedPermissionsServiceException {
324
+ /**
325
+ * @internal
326
+ */
327
+ constructor(opts) {
328
+ super({
329
+ name: "ThrottlingException",
330
+ $fault: "client",
331
+ ...opts
332
+ });
333
+ this.name = "ThrottlingException";
334
+ this.$fault = "client";
335
+ this.$retryable = {
336
+ throttling: true
337
+ };
338
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
339
+ this.serviceCode = opts.serviceCode;
340
+ this.quotaCode = opts.quotaCode;
341
+ }
342
+ };
343
+ __name(_ThrottlingException, "ThrottlingException");
344
+ var ThrottlingException = _ThrottlingException;
345
+ var _ValidationException = class _ValidationException extends VerifiedPermissionsServiceException {
346
+ /**
347
+ * @internal
348
+ */
349
+ constructor(opts) {
350
+ super({
351
+ name: "ValidationException",
352
+ $fault: "client",
353
+ ...opts
354
+ });
355
+ this.name = "ValidationException";
356
+ this.$fault = "client";
357
+ Object.setPrototypeOf(this, _ValidationException.prototype);
358
+ this.fieldList = opts.fieldList;
359
+ }
360
+ };
361
+ __name(_ValidationException, "ValidationException");
362
+ var ValidationException = _ValidationException;
363
+ var Configuration;
364
+ ((Configuration3) => {
365
+ Configuration3.visit = /* @__PURE__ */ __name((value, visitor) => {
366
+ if (value.cognitoUserPoolConfiguration !== void 0)
367
+ return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
368
+ return visitor._(value.$unknown[0], value.$unknown[1]);
369
+ }, "visit");
370
+ })(Configuration || (Configuration = {}));
371
+ var _ConflictException = class _ConflictException extends VerifiedPermissionsServiceException {
372
+ /**
373
+ * @internal
374
+ */
375
+ constructor(opts) {
376
+ super({
377
+ name: "ConflictException",
378
+ $fault: "client",
379
+ ...opts
380
+ });
381
+ this.name = "ConflictException";
382
+ this.$fault = "client";
383
+ Object.setPrototypeOf(this, _ConflictException.prototype);
384
+ this.resources = opts.resources;
385
+ }
386
+ };
387
+ __name(_ConflictException, "ConflictException");
388
+ var ConflictException = _ConflictException;
389
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends VerifiedPermissionsServiceException {
390
+ /**
391
+ * @internal
392
+ */
393
+ constructor(opts) {
394
+ super({
395
+ name: "ServiceQuotaExceededException",
396
+ $fault: "client",
397
+ ...opts
398
+ });
399
+ this.name = "ServiceQuotaExceededException";
400
+ this.$fault = "client";
401
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
402
+ this.resourceId = opts.resourceId;
403
+ this.resourceType = opts.resourceType;
404
+ this.serviceCode = opts.serviceCode;
405
+ this.quotaCode = opts.quotaCode;
406
+ }
407
+ };
408
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
409
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
410
+ var PolicyDefinition;
411
+ ((PolicyDefinition3) => {
412
+ PolicyDefinition3.visit = /* @__PURE__ */ __name((value, visitor) => {
413
+ if (value.static !== void 0)
414
+ return visitor.static(value.static);
415
+ if (value.templateLinked !== void 0)
416
+ return visitor.templateLinked(value.templateLinked);
417
+ return visitor._(value.$unknown[0], value.$unknown[1]);
418
+ }, "visit");
419
+ })(PolicyDefinition || (PolicyDefinition = {}));
420
+ var PolicyType = {
421
+ STATIC: "STATIC",
422
+ TEMPLATE_LINKED: "TEMPLATE_LINKED"
423
+ };
424
+ var ValidationMode = {
425
+ OFF: "OFF",
426
+ STRICT: "STRICT"
427
+ };
428
+ var EntityReference;
429
+ ((EntityReference3) => {
430
+ EntityReference3.visit = /* @__PURE__ */ __name((value, visitor) => {
431
+ if (value.unspecified !== void 0)
432
+ return visitor.unspecified(value.unspecified);
433
+ if (value.identifier !== void 0)
434
+ return visitor.identifier(value.identifier);
435
+ return visitor._(value.$unknown[0], value.$unknown[1]);
436
+ }, "visit");
437
+ })(EntityReference || (EntityReference = {}));
438
+ var OpenIdIssuer = {
439
+ COGNITO: "COGNITO"
440
+ };
441
+ var PolicyDefinitionDetail;
442
+ ((PolicyDefinitionDetail2) => {
443
+ PolicyDefinitionDetail2.visit = /* @__PURE__ */ __name((value, visitor) => {
444
+ if (value.static !== void 0)
445
+ return visitor.static(value.static);
446
+ if (value.templateLinked !== void 0)
447
+ return visitor.templateLinked(value.templateLinked);
448
+ return visitor._(value.$unknown[0], value.$unknown[1]);
449
+ }, "visit");
450
+ })(PolicyDefinitionDetail || (PolicyDefinitionDetail = {}));
451
+ var UpdateConfiguration;
452
+ ((UpdateConfiguration3) => {
453
+ UpdateConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
454
+ if (value.cognitoUserPoolConfiguration !== void 0)
455
+ return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
456
+ return visitor._(value.$unknown[0], value.$unknown[1]);
457
+ }, "visit");
458
+ })(UpdateConfiguration || (UpdateConfiguration = {}));
459
+ var PolicyDefinitionItem;
460
+ ((PolicyDefinitionItem2) => {
461
+ PolicyDefinitionItem2.visit = /* @__PURE__ */ __name((value, visitor) => {
462
+ if (value.static !== void 0)
463
+ return visitor.static(value.static);
464
+ if (value.templateLinked !== void 0)
465
+ return visitor.templateLinked(value.templateLinked);
466
+ return visitor._(value.$unknown[0], value.$unknown[1]);
467
+ }, "visit");
468
+ })(PolicyDefinitionItem || (PolicyDefinitionItem = {}));
469
+ var UpdatePolicyDefinition;
470
+ ((UpdatePolicyDefinition3) => {
471
+ UpdatePolicyDefinition3.visit = /* @__PURE__ */ __name((value, visitor) => {
472
+ if (value.static !== void 0)
473
+ return visitor.static(value.static);
474
+ return visitor._(value.$unknown[0], value.$unknown[1]);
475
+ }, "visit");
476
+ })(UpdatePolicyDefinition || (UpdatePolicyDefinition = {}));
477
+ var SchemaDefinition;
478
+ ((SchemaDefinition3) => {
479
+ SchemaDefinition3.visit = /* @__PURE__ */ __name((value, visitor) => {
480
+ if (value.cedarJson !== void 0)
481
+ return visitor.cedarJson(value.cedarJson);
482
+ return visitor._(value.$unknown[0], value.$unknown[1]);
483
+ }, "visit");
484
+ })(SchemaDefinition || (SchemaDefinition = {}));
485
+ var AttributeValue;
486
+ ((AttributeValue2) => {
487
+ AttributeValue2.visit = /* @__PURE__ */ __name((value, visitor) => {
488
+ if (value.boolean !== void 0)
489
+ return visitor.boolean(value.boolean);
490
+ if (value.entityIdentifier !== void 0)
491
+ return visitor.entityIdentifier(value.entityIdentifier);
492
+ if (value.long !== void 0)
493
+ return visitor.long(value.long);
494
+ if (value.string !== void 0)
495
+ return visitor.string(value.string);
496
+ if (value.set !== void 0)
497
+ return visitor.set(value.set);
498
+ if (value.record !== void 0)
499
+ return visitor.record(value.record);
500
+ return visitor._(value.$unknown[0], value.$unknown[1]);
501
+ }, "visit");
502
+ })(AttributeValue || (AttributeValue = {}));
503
+ var ContextDefinition;
504
+ ((ContextDefinition2) => {
505
+ ContextDefinition2.visit = /* @__PURE__ */ __name((value, visitor) => {
506
+ if (value.contextMap !== void 0)
507
+ return visitor.contextMap(value.contextMap);
508
+ return visitor._(value.$unknown[0], value.$unknown[1]);
509
+ }, "visit");
510
+ })(ContextDefinition || (ContextDefinition = {}));
511
+ var EntitiesDefinition;
512
+ ((EntitiesDefinition2) => {
513
+ EntitiesDefinition2.visit = /* @__PURE__ */ __name((value, visitor) => {
514
+ if (value.entityList !== void 0)
515
+ return visitor.entityList(value.entityList);
516
+ return visitor._(value.$unknown[0], value.$unknown[1]);
517
+ }, "visit");
518
+ })(EntitiesDefinition || (EntitiesDefinition = {}));
519
+ var ActionIdentifierFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
520
+ ...obj,
521
+ ...obj.actionType && { actionType: import_smithy_client.SENSITIVE_STRING },
522
+ ...obj.actionId && { actionId: import_smithy_client.SENSITIVE_STRING }
523
+ }), "ActionIdentifierFilterSensitiveLog");
524
+ var EntityIdentifierFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
525
+ ...obj,
526
+ ...obj.entityType && { entityType: import_smithy_client.SENSITIVE_STRING },
527
+ ...obj.entityId && { entityId: import_smithy_client.SENSITIVE_STRING }
528
+ }), "EntityIdentifierFilterSensitiveLog");
529
+ var EvaluationErrorItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
530
+ ...obj
531
+ }), "EvaluationErrorItemFilterSensitiveLog");
532
+ var CognitoUserPoolConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
533
+ ...obj,
534
+ ...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
535
+ }), "CognitoUserPoolConfigurationFilterSensitiveLog");
536
+ var ConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
537
+ if (obj.cognitoUserPoolConfiguration !== void 0)
538
+ return {
539
+ cognitoUserPoolConfiguration: CognitoUserPoolConfigurationFilterSensitiveLog(obj.cognitoUserPoolConfiguration)
540
+ };
541
+ if (obj.$unknown !== void 0)
542
+ return { [obj.$unknown[0]]: "UNKNOWN" };
543
+ }, "ConfigurationFilterSensitiveLog");
544
+ var CreateIdentitySourceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
545
+ ...obj,
546
+ ...obj.configuration && { configuration: ConfigurationFilterSensitiveLog(obj.configuration) },
547
+ ...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING }
548
+ }), "CreateIdentitySourceInputFilterSensitiveLog");
549
+ var StaticPolicyDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
550
+ ...obj,
551
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
552
+ ...obj.statement && { statement: import_smithy_client.SENSITIVE_STRING }
553
+ }), "StaticPolicyDefinitionFilterSensitiveLog");
554
+ var TemplateLinkedPolicyDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
555
+ ...obj,
556
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
557
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }
558
+ }), "TemplateLinkedPolicyDefinitionFilterSensitiveLog");
559
+ var PolicyDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
560
+ if (obj.static !== void 0)
561
+ return { static: StaticPolicyDefinitionFilterSensitiveLog(obj.static) };
562
+ if (obj.templateLinked !== void 0)
563
+ return { templateLinked: TemplateLinkedPolicyDefinitionFilterSensitiveLog(obj.templateLinked) };
564
+ if (obj.$unknown !== void 0)
565
+ return { [obj.$unknown[0]]: "UNKNOWN" };
566
+ }, "PolicyDefinitionFilterSensitiveLog");
567
+ var CreatePolicyInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
568
+ ...obj,
569
+ ...obj.definition && { definition: PolicyDefinitionFilterSensitiveLog(obj.definition) }
570
+ }), "CreatePolicyInputFilterSensitiveLog");
571
+ var CreatePolicyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
572
+ ...obj,
573
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
574
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }
575
+ }), "CreatePolicyOutputFilterSensitiveLog");
576
+ var CreatePolicyStoreInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
577
+ ...obj,
578
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
579
+ }), "CreatePolicyStoreInputFilterSensitiveLog");
580
+ var CreatePolicyTemplateInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
581
+ ...obj,
582
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
583
+ ...obj.statement && { statement: import_smithy_client.SENSITIVE_STRING }
584
+ }), "CreatePolicyTemplateInputFilterSensitiveLog");
585
+ var EntityReferenceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
586
+ if (obj.unspecified !== void 0)
587
+ return { unspecified: obj.unspecified };
588
+ if (obj.identifier !== void 0)
589
+ return { identifier: EntityIdentifierFilterSensitiveLog(obj.identifier) };
590
+ if (obj.$unknown !== void 0)
591
+ return { [obj.$unknown[0]]: "UNKNOWN" };
592
+ }, "EntityReferenceFilterSensitiveLog");
593
+ var IdentitySourceDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
594
+ ...obj,
595
+ ...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
596
+ }), "IdentitySourceDetailsFilterSensitiveLog");
597
+ var GetIdentitySourceOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
598
+ ...obj,
599
+ ...obj.details && { details: IdentitySourceDetailsFilterSensitiveLog(obj.details) },
600
+ ...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING }
601
+ }), "GetIdentitySourceOutputFilterSensitiveLog");
602
+ var StaticPolicyDefinitionDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
603
+ ...obj,
604
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
605
+ ...obj.statement && { statement: import_smithy_client.SENSITIVE_STRING }
606
+ }), "StaticPolicyDefinitionDetailFilterSensitiveLog");
607
+ var TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
608
+ ...obj,
609
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
610
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }
611
+ }), "TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog");
612
+ var PolicyDefinitionDetailFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
613
+ if (obj.static !== void 0)
614
+ return { static: StaticPolicyDefinitionDetailFilterSensitiveLog(obj.static) };
615
+ if (obj.templateLinked !== void 0)
616
+ return { templateLinked: TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog(obj.templateLinked) };
617
+ if (obj.$unknown !== void 0)
618
+ return { [obj.$unknown[0]]: "UNKNOWN" };
619
+ }, "PolicyDefinitionDetailFilterSensitiveLog");
620
+ var GetPolicyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
621
+ ...obj,
622
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
623
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
624
+ ...obj.definition && { definition: PolicyDefinitionDetailFilterSensitiveLog(obj.definition) }
625
+ }), "GetPolicyOutputFilterSensitiveLog");
626
+ var GetPolicyStoreOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
627
+ ...obj,
628
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
629
+ }), "GetPolicyStoreOutputFilterSensitiveLog");
630
+ var GetPolicyTemplateOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
631
+ ...obj,
632
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
633
+ ...obj.statement && { statement: import_smithy_client.SENSITIVE_STRING }
634
+ }), "GetPolicyTemplateOutputFilterSensitiveLog");
635
+ var GetSchemaOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
636
+ ...obj,
637
+ ...obj.schema && { schema: import_smithy_client.SENSITIVE_STRING },
638
+ ...obj.namespaces && { namespaces: import_smithy_client.SENSITIVE_STRING }
639
+ }), "GetSchemaOutputFilterSensitiveLog");
640
+ var IdentitySourceFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
641
+ ...obj,
642
+ ...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING }
643
+ }), "IdentitySourceFilterFilterSensitiveLog");
644
+ var ListIdentitySourcesInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
645
+ ...obj,
646
+ ...obj.filters && { filters: obj.filters.map((item) => IdentitySourceFilterFilterSensitiveLog(item)) }
647
+ }), "ListIdentitySourcesInputFilterSensitiveLog");
648
+ var IdentitySourceItemDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
649
+ ...obj,
650
+ ...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
651
+ }), "IdentitySourceItemDetailsFilterSensitiveLog");
652
+ var IdentitySourceItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
653
+ ...obj,
654
+ ...obj.details && { details: IdentitySourceItemDetailsFilterSensitiveLog(obj.details) },
655
+ ...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING }
656
+ }), "IdentitySourceItemFilterSensitiveLog");
657
+ var ListIdentitySourcesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
658
+ ...obj,
659
+ ...obj.identitySources && {
660
+ identitySources: obj.identitySources.map((item) => IdentitySourceItemFilterSensitiveLog(item))
661
+ }
662
+ }), "ListIdentitySourcesOutputFilterSensitiveLog");
663
+ var UpdateCognitoUserPoolConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
664
+ ...obj,
665
+ ...obj.clientIds && { clientIds: import_smithy_client.SENSITIVE_STRING }
666
+ }), "UpdateCognitoUserPoolConfigurationFilterSensitiveLog");
667
+ var UpdateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
668
+ if (obj.cognitoUserPoolConfiguration !== void 0)
669
+ return {
670
+ cognitoUserPoolConfiguration: UpdateCognitoUserPoolConfigurationFilterSensitiveLog(
671
+ obj.cognitoUserPoolConfiguration
672
+ )
673
+ };
674
+ if (obj.$unknown !== void 0)
675
+ return { [obj.$unknown[0]]: "UNKNOWN" };
676
+ }, "UpdateConfigurationFilterSensitiveLog");
677
+ var UpdateIdentitySourceInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
678
+ ...obj,
679
+ ...obj.updateConfiguration && {
680
+ updateConfiguration: UpdateConfigurationFilterSensitiveLog(obj.updateConfiguration)
681
+ },
682
+ ...obj.principalEntityType && { principalEntityType: import_smithy_client.SENSITIVE_STRING }
683
+ }), "UpdateIdentitySourceInputFilterSensitiveLog");
684
+ var IsAuthorizedOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
685
+ ...obj,
686
+ ...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING }
687
+ }), "IsAuthorizedOutputFilterSensitiveLog");
688
+ var IsAuthorizedWithTokenOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
689
+ ...obj,
690
+ ...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING }
691
+ }), "IsAuthorizedWithTokenOutputFilterSensitiveLog");
692
+ var PolicyFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
693
+ ...obj,
694
+ ...obj.principal && { principal: EntityReferenceFilterSensitiveLog(obj.principal) },
695
+ ...obj.resource && { resource: EntityReferenceFilterSensitiveLog(obj.resource) }
696
+ }), "PolicyFilterFilterSensitiveLog");
697
+ var ListPoliciesInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
698
+ ...obj,
699
+ ...obj.filter && { filter: PolicyFilterFilterSensitiveLog(obj.filter) }
700
+ }), "ListPoliciesInputFilterSensitiveLog");
701
+ var StaticPolicyDefinitionItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
702
+ ...obj,
703
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
704
+ }), "StaticPolicyDefinitionItemFilterSensitiveLog");
705
+ var TemplateLinkedPolicyDefinitionItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
706
+ ...obj,
707
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
708
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }
709
+ }), "TemplateLinkedPolicyDefinitionItemFilterSensitiveLog");
710
+ var PolicyDefinitionItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
711
+ if (obj.static !== void 0)
712
+ return { static: StaticPolicyDefinitionItemFilterSensitiveLog(obj.static) };
713
+ if (obj.templateLinked !== void 0)
714
+ return { templateLinked: TemplateLinkedPolicyDefinitionItemFilterSensitiveLog(obj.templateLinked) };
715
+ if (obj.$unknown !== void 0)
716
+ return { [obj.$unknown[0]]: "UNKNOWN" };
717
+ }, "PolicyDefinitionItemFilterSensitiveLog");
718
+ var PolicyItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
719
+ ...obj,
720
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
721
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
722
+ ...obj.definition && { definition: PolicyDefinitionItemFilterSensitiveLog(obj.definition) }
723
+ }), "PolicyItemFilterSensitiveLog");
724
+ var ListPoliciesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
725
+ ...obj,
726
+ ...obj.policies && { policies: obj.policies.map((item) => PolicyItemFilterSensitiveLog(item)) }
727
+ }), "ListPoliciesOutputFilterSensitiveLog");
728
+ var PolicyStoreItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
729
+ ...obj,
730
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
731
+ }), "PolicyStoreItemFilterSensitiveLog");
732
+ var ListPolicyStoresOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
733
+ ...obj,
734
+ ...obj.policyStores && { policyStores: obj.policyStores.map((item) => PolicyStoreItemFilterSensitiveLog(item)) }
735
+ }), "ListPolicyStoresOutputFilterSensitiveLog");
736
+ var PolicyTemplateItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
737
+ ...obj,
738
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
739
+ }), "PolicyTemplateItemFilterSensitiveLog");
740
+ var ListPolicyTemplatesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
741
+ ...obj,
742
+ ...obj.policyTemplates && {
743
+ policyTemplates: obj.policyTemplates.map((item) => PolicyTemplateItemFilterSensitiveLog(item))
744
+ }
745
+ }), "ListPolicyTemplatesOutputFilterSensitiveLog");
746
+ var UpdateStaticPolicyDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
747
+ ...obj,
748
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
749
+ ...obj.statement && { statement: import_smithy_client.SENSITIVE_STRING }
750
+ }), "UpdateStaticPolicyDefinitionFilterSensitiveLog");
751
+ var UpdatePolicyDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
752
+ if (obj.static !== void 0)
753
+ return { static: UpdateStaticPolicyDefinitionFilterSensitiveLog(obj.static) };
754
+ if (obj.$unknown !== void 0)
755
+ return { [obj.$unknown[0]]: "UNKNOWN" };
756
+ }, "UpdatePolicyDefinitionFilterSensitiveLog");
757
+ var UpdatePolicyInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
758
+ ...obj,
759
+ ...obj.definition && { definition: UpdatePolicyDefinitionFilterSensitiveLog(obj.definition) }
760
+ }), "UpdatePolicyInputFilterSensitiveLog");
761
+ var UpdatePolicyOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
762
+ ...obj,
763
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
764
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }
765
+ }), "UpdatePolicyOutputFilterSensitiveLog");
766
+ var UpdatePolicyTemplateInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
767
+ ...obj,
768
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
769
+ ...obj.statement && { statement: import_smithy_client.SENSITIVE_STRING }
770
+ }), "UpdatePolicyTemplateInputFilterSensitiveLog");
771
+ var SchemaDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
772
+ if (obj.cedarJson !== void 0)
773
+ return { cedarJson: import_smithy_client.SENSITIVE_STRING };
774
+ if (obj.$unknown !== void 0)
775
+ return { [obj.$unknown[0]]: "UNKNOWN" };
776
+ }, "SchemaDefinitionFilterSensitiveLog");
777
+ var PutSchemaInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
778
+ ...obj,
779
+ ...obj.definition && { definition: SchemaDefinitionFilterSensitiveLog(obj.definition) }
780
+ }), "PutSchemaInputFilterSensitiveLog");
781
+ var PutSchemaOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
782
+ ...obj,
783
+ ...obj.namespaces && { namespaces: import_smithy_client.SENSITIVE_STRING }
784
+ }), "PutSchemaOutputFilterSensitiveLog");
785
+ var UpdatePolicyStoreInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
786
+ ...obj,
787
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
788
+ }), "UpdatePolicyStoreInputFilterSensitiveLog");
789
+ var AttributeValueFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
790
+ if (obj.boolean !== void 0)
791
+ return { boolean: import_smithy_client.SENSITIVE_STRING };
792
+ if (obj.entityIdentifier !== void 0)
793
+ return { entityIdentifier: EntityIdentifierFilterSensitiveLog(obj.entityIdentifier) };
794
+ if (obj.long !== void 0)
795
+ return { long: import_smithy_client.SENSITIVE_STRING };
796
+ if (obj.string !== void 0)
797
+ return { string: import_smithy_client.SENSITIVE_STRING };
798
+ if (obj.set !== void 0)
799
+ return { set: obj.set.map((item) => AttributeValueFilterSensitiveLog(item)) };
800
+ if (obj.record !== void 0)
801
+ return {
802
+ record: Object.entries(obj.record).reduce(
803
+ (acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
804
+ {}
805
+ )
806
+ };
807
+ if (obj.$unknown !== void 0)
808
+ return { [obj.$unknown[0]]: "UNKNOWN" };
809
+ }, "AttributeValueFilterSensitiveLog");
810
+ var ContextDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
811
+ if (obj.contextMap !== void 0)
812
+ return {
813
+ contextMap: Object.entries(obj.contextMap).reduce(
814
+ (acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
815
+ {}
816
+ )
817
+ };
818
+ if (obj.$unknown !== void 0)
819
+ return { [obj.$unknown[0]]: "UNKNOWN" };
820
+ }, "ContextDefinitionFilterSensitiveLog");
821
+ var EntityItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
822
+ ...obj,
823
+ ...obj.identifier && { identifier: EntityIdentifierFilterSensitiveLog(obj.identifier) },
824
+ ...obj.attributes && {
825
+ attributes: Object.entries(obj.attributes).reduce(
826
+ (acc, [key, value]) => (acc[key] = AttributeValueFilterSensitiveLog(value), acc),
827
+ {}
828
+ )
829
+ },
830
+ ...obj.parents && { parents: obj.parents.map((item) => EntityIdentifierFilterSensitiveLog(item)) }
831
+ }), "EntityItemFilterSensitiveLog");
832
+ var BatchIsAuthorizedInputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
833
+ ...obj,
834
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
835
+ ...obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) },
836
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
837
+ ...obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }
838
+ }), "BatchIsAuthorizedInputItemFilterSensitiveLog");
839
+ var BatchIsAuthorizedOutputItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
840
+ ...obj,
841
+ ...obj.request && { request: BatchIsAuthorizedInputItemFilterSensitiveLog(obj.request) },
842
+ ...obj.errors && { errors: import_smithy_client.SENSITIVE_STRING }
843
+ }), "BatchIsAuthorizedOutputItemFilterSensitiveLog");
844
+ var EntitiesDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
845
+ if (obj.entityList !== void 0)
846
+ return { entityList: obj.entityList.map((item) => EntityItemFilterSensitiveLog(item)) };
847
+ if (obj.$unknown !== void 0)
848
+ return { [obj.$unknown[0]]: "UNKNOWN" };
849
+ }, "EntitiesDefinitionFilterSensitiveLog");
850
+ var BatchIsAuthorizedOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
851
+ ...obj,
852
+ ...obj.results && { results: obj.results.map((item) => BatchIsAuthorizedOutputItemFilterSensitiveLog(item)) }
853
+ }), "BatchIsAuthorizedOutputFilterSensitiveLog");
854
+ var IsAuthorizedInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
855
+ ...obj,
856
+ ...obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) },
857
+ ...obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) },
858
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
859
+ ...obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) },
860
+ ...obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }
861
+ }), "IsAuthorizedInputFilterSensitiveLog");
862
+ var IsAuthorizedWithTokenInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
863
+ ...obj,
864
+ ...obj.identityToken && { identityToken: import_smithy_client.SENSITIVE_STRING },
865
+ ...obj.accessToken && { accessToken: import_smithy_client.SENSITIVE_STRING },
866
+ ...obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) },
867
+ ...obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) },
868
+ ...obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) },
869
+ ...obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }
870
+ }), "IsAuthorizedWithTokenInputFilterSensitiveLog");
871
+ var BatchIsAuthorizedInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
872
+ ...obj,
873
+ ...obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) },
874
+ ...obj.requests && { requests: obj.requests.map((item) => BatchIsAuthorizedInputItemFilterSensitiveLog(item)) }
875
+ }), "BatchIsAuthorizedInputFilterSensitiveLog");
876
+
877
+ // src/protocols/Aws_json1_0.ts
878
+ var import_core = require("@aws-sdk/core");
879
+
880
+
881
+ var import_uuid = require("uuid");
882
+ var se_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (input, context) => {
883
+ const headers = sharedHeaders("BatchIsAuthorized");
884
+ let body;
885
+ body = JSON.stringify(se_BatchIsAuthorizedInput(input, context));
886
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
887
+ }, "se_BatchIsAuthorizedCommand");
888
+ var se_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
889
+ const headers = sharedHeaders("CreateIdentitySource");
890
+ let body;
891
+ body = JSON.stringify(se_CreateIdentitySourceInput(input, context));
892
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
893
+ }, "se_CreateIdentitySourceCommand");
894
+ var se_CreatePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
895
+ const headers = sharedHeaders("CreatePolicy");
896
+ let body;
897
+ body = JSON.stringify(se_CreatePolicyInput(input, context));
898
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
899
+ }, "se_CreatePolicyCommand");
900
+ var se_CreatePolicyStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
901
+ const headers = sharedHeaders("CreatePolicyStore");
902
+ let body;
903
+ body = JSON.stringify(se_CreatePolicyStoreInput(input, context));
904
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
905
+ }, "se_CreatePolicyStoreCommand");
906
+ var se_CreatePolicyTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
907
+ const headers = sharedHeaders("CreatePolicyTemplate");
908
+ let body;
909
+ body = JSON.stringify(se_CreatePolicyTemplateInput(input, context));
910
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
911
+ }, "se_CreatePolicyTemplateCommand");
912
+ var se_DeleteIdentitySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
913
+ const headers = sharedHeaders("DeleteIdentitySource");
914
+ let body;
915
+ body = JSON.stringify((0, import_smithy_client._json)(input));
916
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
917
+ }, "se_DeleteIdentitySourceCommand");
918
+ var se_DeletePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
919
+ const headers = sharedHeaders("DeletePolicy");
920
+ let body;
921
+ body = JSON.stringify((0, import_smithy_client._json)(input));
922
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
923
+ }, "se_DeletePolicyCommand");
924
+ var se_DeletePolicyStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
925
+ const headers = sharedHeaders("DeletePolicyStore");
926
+ let body;
927
+ body = JSON.stringify((0, import_smithy_client._json)(input));
928
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
929
+ }, "se_DeletePolicyStoreCommand");
930
+ var se_DeletePolicyTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
931
+ const headers = sharedHeaders("DeletePolicyTemplate");
932
+ let body;
933
+ body = JSON.stringify((0, import_smithy_client._json)(input));
934
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
935
+ }, "se_DeletePolicyTemplateCommand");
936
+ var se_GetIdentitySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
937
+ const headers = sharedHeaders("GetIdentitySource");
938
+ let body;
939
+ body = JSON.stringify((0, import_smithy_client._json)(input));
940
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
941
+ }, "se_GetIdentitySourceCommand");
942
+ var se_GetPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
943
+ const headers = sharedHeaders("GetPolicy");
944
+ let body;
945
+ body = JSON.stringify((0, import_smithy_client._json)(input));
946
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
947
+ }, "se_GetPolicyCommand");
948
+ var se_GetPolicyStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
949
+ const headers = sharedHeaders("GetPolicyStore");
950
+ let body;
951
+ body = JSON.stringify((0, import_smithy_client._json)(input));
952
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
953
+ }, "se_GetPolicyStoreCommand");
954
+ var se_GetPolicyTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
955
+ const headers = sharedHeaders("GetPolicyTemplate");
956
+ let body;
957
+ body = JSON.stringify((0, import_smithy_client._json)(input));
958
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
959
+ }, "se_GetPolicyTemplateCommand");
960
+ var se_GetSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
961
+ const headers = sharedHeaders("GetSchema");
962
+ let body;
963
+ body = JSON.stringify((0, import_smithy_client._json)(input));
964
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
965
+ }, "se_GetSchemaCommand");
966
+ var se_IsAuthorizedCommand = /* @__PURE__ */ __name(async (input, context) => {
967
+ const headers = sharedHeaders("IsAuthorized");
968
+ let body;
969
+ body = JSON.stringify(se_IsAuthorizedInput(input, context));
970
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
971
+ }, "se_IsAuthorizedCommand");
972
+ var se_IsAuthorizedWithTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
973
+ const headers = sharedHeaders("IsAuthorizedWithToken");
974
+ let body;
975
+ body = JSON.stringify(se_IsAuthorizedWithTokenInput(input, context));
976
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
977
+ }, "se_IsAuthorizedWithTokenCommand");
978
+ var se_ListIdentitySourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
979
+ const headers = sharedHeaders("ListIdentitySources");
980
+ let body;
981
+ body = JSON.stringify((0, import_smithy_client._json)(input));
982
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
983
+ }, "se_ListIdentitySourcesCommand");
984
+ var se_ListPoliciesCommand = /* @__PURE__ */ __name(async (input, context) => {
985
+ const headers = sharedHeaders("ListPolicies");
986
+ let body;
987
+ body = JSON.stringify((0, import_smithy_client._json)(input));
988
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
989
+ }, "se_ListPoliciesCommand");
990
+ var se_ListPolicyStoresCommand = /* @__PURE__ */ __name(async (input, context) => {
991
+ const headers = sharedHeaders("ListPolicyStores");
992
+ let body;
993
+ body = JSON.stringify((0, import_smithy_client._json)(input));
994
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
995
+ }, "se_ListPolicyStoresCommand");
996
+ var se_ListPolicyTemplatesCommand = /* @__PURE__ */ __name(async (input, context) => {
997
+ const headers = sharedHeaders("ListPolicyTemplates");
998
+ let body;
999
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1000
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1001
+ }, "se_ListPolicyTemplatesCommand");
1002
+ var se_PutSchemaCommand = /* @__PURE__ */ __name(async (input, context) => {
1003
+ const headers = sharedHeaders("PutSchema");
1004
+ let body;
1005
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1006
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1007
+ }, "se_PutSchemaCommand");
1008
+ var se_UpdateIdentitySourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1009
+ const headers = sharedHeaders("UpdateIdentitySource");
1010
+ let body;
1011
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1012
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1013
+ }, "se_UpdateIdentitySourceCommand");
1014
+ var se_UpdatePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
1015
+ const headers = sharedHeaders("UpdatePolicy");
1016
+ let body;
1017
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1018
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1019
+ }, "se_UpdatePolicyCommand");
1020
+ var se_UpdatePolicyStoreCommand = /* @__PURE__ */ __name(async (input, context) => {
1021
+ const headers = sharedHeaders("UpdatePolicyStore");
1022
+ let body;
1023
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1024
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1025
+ }, "se_UpdatePolicyStoreCommand");
1026
+ var se_UpdatePolicyTemplateCommand = /* @__PURE__ */ __name(async (input, context) => {
1027
+ const headers = sharedHeaders("UpdatePolicyTemplate");
1028
+ let body;
1029
+ body = JSON.stringify((0, import_smithy_client._json)(input));
1030
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
1031
+ }, "se_UpdatePolicyTemplateCommand");
1032
+ var de_BatchIsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context) => {
1033
+ if (output.statusCode >= 300) {
1034
+ return de_BatchIsAuthorizedCommandError(output, context);
1035
+ }
1036
+ const data = await parseBody(output.body, context);
1037
+ let contents = {};
1038
+ contents = de_BatchIsAuthorizedOutput(data, context);
1039
+ const response = {
1040
+ $metadata: deserializeMetadata(output),
1041
+ ...contents
1042
+ };
1043
+ return response;
1044
+ }, "de_BatchIsAuthorizedCommand");
1045
+ var de_BatchIsAuthorizedCommandError = /* @__PURE__ */ __name(async (output, context) => {
1046
+ const parsedOutput = {
1047
+ ...output,
1048
+ body: await parseErrorBody(output.body, context)
1049
+ };
1050
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1051
+ switch (errorCode) {
1052
+ case "AccessDeniedException":
1053
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1054
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1055
+ case "InternalServerException":
1056
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1057
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1058
+ case "ResourceNotFoundException":
1059
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1060
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1061
+ case "ThrottlingException":
1062
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1063
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1064
+ case "ValidationException":
1065
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1066
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1067
+ default:
1068
+ const parsedBody = parsedOutput.body;
1069
+ return throwDefaultError({
1070
+ output,
1071
+ parsedBody,
1072
+ errorCode
1073
+ });
1074
+ }
1075
+ }, "de_BatchIsAuthorizedCommandError");
1076
+ var de_CreateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1077
+ if (output.statusCode >= 300) {
1078
+ return de_CreateIdentitySourceCommandError(output, context);
1079
+ }
1080
+ const data = await parseBody(output.body, context);
1081
+ let contents = {};
1082
+ contents = de_CreateIdentitySourceOutput(data, context);
1083
+ const response = {
1084
+ $metadata: deserializeMetadata(output),
1085
+ ...contents
1086
+ };
1087
+ return response;
1088
+ }, "de_CreateIdentitySourceCommand");
1089
+ var de_CreateIdentitySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1090
+ const parsedOutput = {
1091
+ ...output,
1092
+ body: await parseErrorBody(output.body, context)
1093
+ };
1094
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1095
+ switch (errorCode) {
1096
+ case "AccessDeniedException":
1097
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1098
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1099
+ case "ConflictException":
1100
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1101
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1102
+ case "InternalServerException":
1103
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1104
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1105
+ case "ResourceNotFoundException":
1106
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1107
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1108
+ case "ServiceQuotaExceededException":
1109
+ case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1110
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1111
+ case "ThrottlingException":
1112
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1113
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1114
+ case "ValidationException":
1115
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1116
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1117
+ default:
1118
+ const parsedBody = parsedOutput.body;
1119
+ return throwDefaultError({
1120
+ output,
1121
+ parsedBody,
1122
+ errorCode
1123
+ });
1124
+ }
1125
+ }, "de_CreateIdentitySourceCommandError");
1126
+ var de_CreatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1127
+ if (output.statusCode >= 300) {
1128
+ return de_CreatePolicyCommandError(output, context);
1129
+ }
1130
+ const data = await parseBody(output.body, context);
1131
+ let contents = {};
1132
+ contents = de_CreatePolicyOutput(data, context);
1133
+ const response = {
1134
+ $metadata: deserializeMetadata(output),
1135
+ ...contents
1136
+ };
1137
+ return response;
1138
+ }, "de_CreatePolicyCommand");
1139
+ var de_CreatePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1140
+ const parsedOutput = {
1141
+ ...output,
1142
+ body: await parseErrorBody(output.body, context)
1143
+ };
1144
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1145
+ switch (errorCode) {
1146
+ case "AccessDeniedException":
1147
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1148
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1149
+ case "ConflictException":
1150
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1151
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1152
+ case "InternalServerException":
1153
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1154
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1155
+ case "ResourceNotFoundException":
1156
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1157
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1158
+ case "ServiceQuotaExceededException":
1159
+ case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1160
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1161
+ case "ThrottlingException":
1162
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1163
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1164
+ case "ValidationException":
1165
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1166
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1167
+ default:
1168
+ const parsedBody = parsedOutput.body;
1169
+ return throwDefaultError({
1170
+ output,
1171
+ parsedBody,
1172
+ errorCode
1173
+ });
1174
+ }
1175
+ }, "de_CreatePolicyCommandError");
1176
+ var de_CreatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1177
+ if (output.statusCode >= 300) {
1178
+ return de_CreatePolicyStoreCommandError(output, context);
1179
+ }
1180
+ const data = await parseBody(output.body, context);
1181
+ let contents = {};
1182
+ contents = de_CreatePolicyStoreOutput(data, context);
1183
+ const response = {
1184
+ $metadata: deserializeMetadata(output),
1185
+ ...contents
1186
+ };
1187
+ return response;
1188
+ }, "de_CreatePolicyStoreCommand");
1189
+ var de_CreatePolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1190
+ const parsedOutput = {
1191
+ ...output,
1192
+ body: await parseErrorBody(output.body, context)
1193
+ };
1194
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1195
+ switch (errorCode) {
1196
+ case "AccessDeniedException":
1197
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1198
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1199
+ case "ConflictException":
1200
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1201
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1202
+ case "InternalServerException":
1203
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1204
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1205
+ case "ServiceQuotaExceededException":
1206
+ case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1207
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1208
+ case "ThrottlingException":
1209
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1210
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1211
+ case "ValidationException":
1212
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1213
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1214
+ default:
1215
+ const parsedBody = parsedOutput.body;
1216
+ return throwDefaultError({
1217
+ output,
1218
+ parsedBody,
1219
+ errorCode
1220
+ });
1221
+ }
1222
+ }, "de_CreatePolicyStoreCommandError");
1223
+ var de_CreatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1224
+ if (output.statusCode >= 300) {
1225
+ return de_CreatePolicyTemplateCommandError(output, context);
1226
+ }
1227
+ const data = await parseBody(output.body, context);
1228
+ let contents = {};
1229
+ contents = de_CreatePolicyTemplateOutput(data, context);
1230
+ const response = {
1231
+ $metadata: deserializeMetadata(output),
1232
+ ...contents
1233
+ };
1234
+ return response;
1235
+ }, "de_CreatePolicyTemplateCommand");
1236
+ var de_CreatePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1237
+ const parsedOutput = {
1238
+ ...output,
1239
+ body: await parseErrorBody(output.body, context)
1240
+ };
1241
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1242
+ switch (errorCode) {
1243
+ case "AccessDeniedException":
1244
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1245
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1246
+ case "ConflictException":
1247
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1248
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1249
+ case "InternalServerException":
1250
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1251
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1252
+ case "ResourceNotFoundException":
1253
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1254
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1255
+ case "ServiceQuotaExceededException":
1256
+ case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1257
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1258
+ case "ThrottlingException":
1259
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1260
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1261
+ case "ValidationException":
1262
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1263
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1264
+ default:
1265
+ const parsedBody = parsedOutput.body;
1266
+ return throwDefaultError({
1267
+ output,
1268
+ parsedBody,
1269
+ errorCode
1270
+ });
1271
+ }
1272
+ }, "de_CreatePolicyTemplateCommandError");
1273
+ var de_DeleteIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1274
+ if (output.statusCode >= 300) {
1275
+ return de_DeleteIdentitySourceCommandError(output, context);
1276
+ }
1277
+ const data = await parseBody(output.body, context);
1278
+ let contents = {};
1279
+ contents = (0, import_smithy_client._json)(data);
1280
+ const response = {
1281
+ $metadata: deserializeMetadata(output),
1282
+ ...contents
1283
+ };
1284
+ return response;
1285
+ }, "de_DeleteIdentitySourceCommand");
1286
+ var de_DeleteIdentitySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1287
+ const parsedOutput = {
1288
+ ...output,
1289
+ body: await parseErrorBody(output.body, context)
1290
+ };
1291
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1292
+ switch (errorCode) {
1293
+ case "AccessDeniedException":
1294
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1295
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1296
+ case "ConflictException":
1297
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1298
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1299
+ case "InternalServerException":
1300
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1301
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1302
+ case "ResourceNotFoundException":
1303
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1304
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1305
+ case "ThrottlingException":
1306
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1307
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1308
+ case "ValidationException":
1309
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1310
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1311
+ default:
1312
+ const parsedBody = parsedOutput.body;
1313
+ return throwDefaultError({
1314
+ output,
1315
+ parsedBody,
1316
+ errorCode
1317
+ });
1318
+ }
1319
+ }, "de_DeleteIdentitySourceCommandError");
1320
+ var de_DeletePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1321
+ if (output.statusCode >= 300) {
1322
+ return de_DeletePolicyCommandError(output, context);
1323
+ }
1324
+ const data = await parseBody(output.body, context);
1325
+ let contents = {};
1326
+ contents = (0, import_smithy_client._json)(data);
1327
+ const response = {
1328
+ $metadata: deserializeMetadata(output),
1329
+ ...contents
1330
+ };
1331
+ return response;
1332
+ }, "de_DeletePolicyCommand");
1333
+ var de_DeletePolicyCommandError = /* @__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.verifiedpermissions#AccessDeniedException":
1342
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1343
+ case "ConflictException":
1344
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1345
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1346
+ case "InternalServerException":
1347
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1348
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1349
+ case "ResourceNotFoundException":
1350
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1351
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1352
+ case "ThrottlingException":
1353
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1354
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1355
+ case "ValidationException":
1356
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1357
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1358
+ default:
1359
+ const parsedBody = parsedOutput.body;
1360
+ return throwDefaultError({
1361
+ output,
1362
+ parsedBody,
1363
+ errorCode
1364
+ });
1365
+ }
1366
+ }, "de_DeletePolicyCommandError");
1367
+ var de_DeletePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1368
+ if (output.statusCode >= 300) {
1369
+ return de_DeletePolicyStoreCommandError(output, context);
1370
+ }
1371
+ const data = await parseBody(output.body, context);
1372
+ let contents = {};
1373
+ contents = (0, import_smithy_client._json)(data);
1374
+ const response = {
1375
+ $metadata: deserializeMetadata(output),
1376
+ ...contents
1377
+ };
1378
+ return response;
1379
+ }, "de_DeletePolicyStoreCommand");
1380
+ var de_DeletePolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1381
+ const parsedOutput = {
1382
+ ...output,
1383
+ body: await parseErrorBody(output.body, context)
1384
+ };
1385
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1386
+ switch (errorCode) {
1387
+ case "AccessDeniedException":
1388
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1389
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1390
+ case "InternalServerException":
1391
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1392
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1393
+ case "ThrottlingException":
1394
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1395
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1396
+ case "ValidationException":
1397
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1398
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1399
+ default:
1400
+ const parsedBody = parsedOutput.body;
1401
+ return throwDefaultError({
1402
+ output,
1403
+ parsedBody,
1404
+ errorCode
1405
+ });
1406
+ }
1407
+ }, "de_DeletePolicyStoreCommandError");
1408
+ var de_DeletePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1409
+ if (output.statusCode >= 300) {
1410
+ return de_DeletePolicyTemplateCommandError(output, context);
1411
+ }
1412
+ const data = await parseBody(output.body, context);
1413
+ let contents = {};
1414
+ contents = (0, import_smithy_client._json)(data);
1415
+ const response = {
1416
+ $metadata: deserializeMetadata(output),
1417
+ ...contents
1418
+ };
1419
+ return response;
1420
+ }, "de_DeletePolicyTemplateCommand");
1421
+ var de_DeletePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1422
+ const parsedOutput = {
1423
+ ...output,
1424
+ body: await parseErrorBody(output.body, context)
1425
+ };
1426
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1427
+ switch (errorCode) {
1428
+ case "AccessDeniedException":
1429
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1430
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1431
+ case "ConflictException":
1432
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1433
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1434
+ case "InternalServerException":
1435
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1436
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1437
+ case "ResourceNotFoundException":
1438
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1439
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1440
+ case "ThrottlingException":
1441
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1442
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1443
+ case "ValidationException":
1444
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1445
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1446
+ default:
1447
+ const parsedBody = parsedOutput.body;
1448
+ return throwDefaultError({
1449
+ output,
1450
+ parsedBody,
1451
+ errorCode
1452
+ });
1453
+ }
1454
+ }, "de_DeletePolicyTemplateCommandError");
1455
+ var de_GetIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1456
+ if (output.statusCode >= 300) {
1457
+ return de_GetIdentitySourceCommandError(output, context);
1458
+ }
1459
+ const data = await parseBody(output.body, context);
1460
+ let contents = {};
1461
+ contents = de_GetIdentitySourceOutput(data, context);
1462
+ const response = {
1463
+ $metadata: deserializeMetadata(output),
1464
+ ...contents
1465
+ };
1466
+ return response;
1467
+ }, "de_GetIdentitySourceCommand");
1468
+ var de_GetIdentitySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1469
+ const parsedOutput = {
1470
+ ...output,
1471
+ body: await parseErrorBody(output.body, context)
1472
+ };
1473
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1474
+ switch (errorCode) {
1475
+ case "AccessDeniedException":
1476
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1477
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1478
+ case "InternalServerException":
1479
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1480
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1481
+ case "ResourceNotFoundException":
1482
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1483
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1484
+ case "ThrottlingException":
1485
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1486
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1487
+ case "ValidationException":
1488
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1489
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1490
+ default:
1491
+ const parsedBody = parsedOutput.body;
1492
+ return throwDefaultError({
1493
+ output,
1494
+ parsedBody,
1495
+ errorCode
1496
+ });
1497
+ }
1498
+ }, "de_GetIdentitySourceCommandError");
1499
+ var de_GetPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1500
+ if (output.statusCode >= 300) {
1501
+ return de_GetPolicyCommandError(output, context);
1502
+ }
1503
+ const data = await parseBody(output.body, context);
1504
+ let contents = {};
1505
+ contents = de_GetPolicyOutput(data, context);
1506
+ const response = {
1507
+ $metadata: deserializeMetadata(output),
1508
+ ...contents
1509
+ };
1510
+ return response;
1511
+ }, "de_GetPolicyCommand");
1512
+ var de_GetPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1513
+ const parsedOutput = {
1514
+ ...output,
1515
+ body: await parseErrorBody(output.body, context)
1516
+ };
1517
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1518
+ switch (errorCode) {
1519
+ case "AccessDeniedException":
1520
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1521
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1522
+ case "InternalServerException":
1523
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1524
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1525
+ case "ResourceNotFoundException":
1526
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1527
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1528
+ case "ThrottlingException":
1529
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1530
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1531
+ case "ValidationException":
1532
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1533
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1534
+ default:
1535
+ const parsedBody = parsedOutput.body;
1536
+ return throwDefaultError({
1537
+ output,
1538
+ parsedBody,
1539
+ errorCode
1540
+ });
1541
+ }
1542
+ }, "de_GetPolicyCommandError");
1543
+ var de_GetPolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1544
+ if (output.statusCode >= 300) {
1545
+ return de_GetPolicyStoreCommandError(output, context);
1546
+ }
1547
+ const data = await parseBody(output.body, context);
1548
+ let contents = {};
1549
+ contents = de_GetPolicyStoreOutput(data, context);
1550
+ const response = {
1551
+ $metadata: deserializeMetadata(output),
1552
+ ...contents
1553
+ };
1554
+ return response;
1555
+ }, "de_GetPolicyStoreCommand");
1556
+ var de_GetPolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1557
+ const parsedOutput = {
1558
+ ...output,
1559
+ body: await parseErrorBody(output.body, context)
1560
+ };
1561
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
+ switch (errorCode) {
1563
+ case "AccessDeniedException":
1564
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1565
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1566
+ case "InternalServerException":
1567
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1568
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1569
+ case "ResourceNotFoundException":
1570
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1571
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1572
+ case "ThrottlingException":
1573
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1574
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1575
+ case "ValidationException":
1576
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1577
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1578
+ default:
1579
+ const parsedBody = parsedOutput.body;
1580
+ return throwDefaultError({
1581
+ output,
1582
+ parsedBody,
1583
+ errorCode
1584
+ });
1585
+ }
1586
+ }, "de_GetPolicyStoreCommandError");
1587
+ var de_GetPolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1588
+ if (output.statusCode >= 300) {
1589
+ return de_GetPolicyTemplateCommandError(output, context);
1590
+ }
1591
+ const data = await parseBody(output.body, context);
1592
+ let contents = {};
1593
+ contents = de_GetPolicyTemplateOutput(data, context);
1594
+ const response = {
1595
+ $metadata: deserializeMetadata(output),
1596
+ ...contents
1597
+ };
1598
+ return response;
1599
+ }, "de_GetPolicyTemplateCommand");
1600
+ var de_GetPolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1601
+ const parsedOutput = {
1602
+ ...output,
1603
+ body: await parseErrorBody(output.body, context)
1604
+ };
1605
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1606
+ switch (errorCode) {
1607
+ case "AccessDeniedException":
1608
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1609
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1610
+ case "InternalServerException":
1611
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1612
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1613
+ case "ResourceNotFoundException":
1614
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1615
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1616
+ case "ThrottlingException":
1617
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1618
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1619
+ case "ValidationException":
1620
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1621
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1622
+ default:
1623
+ const parsedBody = parsedOutput.body;
1624
+ return throwDefaultError({
1625
+ output,
1626
+ parsedBody,
1627
+ errorCode
1628
+ });
1629
+ }
1630
+ }, "de_GetPolicyTemplateCommandError");
1631
+ var de_GetSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1632
+ if (output.statusCode >= 300) {
1633
+ return de_GetSchemaCommandError(output, context);
1634
+ }
1635
+ const data = await parseBody(output.body, context);
1636
+ let contents = {};
1637
+ contents = de_GetSchemaOutput(data, context);
1638
+ const response = {
1639
+ $metadata: deserializeMetadata(output),
1640
+ ...contents
1641
+ };
1642
+ return response;
1643
+ }, "de_GetSchemaCommand");
1644
+ var de_GetSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1645
+ const parsedOutput = {
1646
+ ...output,
1647
+ body: await parseErrorBody(output.body, context)
1648
+ };
1649
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1650
+ switch (errorCode) {
1651
+ case "AccessDeniedException":
1652
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1653
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1654
+ case "InternalServerException":
1655
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1656
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1657
+ case "ResourceNotFoundException":
1658
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1659
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1660
+ case "ThrottlingException":
1661
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1662
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1663
+ case "ValidationException":
1664
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1665
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1666
+ default:
1667
+ const parsedBody = parsedOutput.body;
1668
+ return throwDefaultError({
1669
+ output,
1670
+ parsedBody,
1671
+ errorCode
1672
+ });
1673
+ }
1674
+ }, "de_GetSchemaCommandError");
1675
+ var de_IsAuthorizedCommand = /* @__PURE__ */ __name(async (output, context) => {
1676
+ if (output.statusCode >= 300) {
1677
+ return de_IsAuthorizedCommandError(output, context);
1678
+ }
1679
+ const data = await parseBody(output.body, context);
1680
+ let contents = {};
1681
+ contents = (0, import_smithy_client._json)(data);
1682
+ const response = {
1683
+ $metadata: deserializeMetadata(output),
1684
+ ...contents
1685
+ };
1686
+ return response;
1687
+ }, "de_IsAuthorizedCommand");
1688
+ var de_IsAuthorizedCommandError = /* @__PURE__ */ __name(async (output, context) => {
1689
+ const parsedOutput = {
1690
+ ...output,
1691
+ body: await parseErrorBody(output.body, context)
1692
+ };
1693
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
+ switch (errorCode) {
1695
+ case "AccessDeniedException":
1696
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1697
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1698
+ case "InternalServerException":
1699
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1700
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1701
+ case "ResourceNotFoundException":
1702
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1703
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1704
+ case "ThrottlingException":
1705
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1706
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1707
+ case "ValidationException":
1708
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1709
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1710
+ default:
1711
+ const parsedBody = parsedOutput.body;
1712
+ return throwDefaultError({
1713
+ output,
1714
+ parsedBody,
1715
+ errorCode
1716
+ });
1717
+ }
1718
+ }, "de_IsAuthorizedCommandError");
1719
+ var de_IsAuthorizedWithTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
1720
+ if (output.statusCode >= 300) {
1721
+ return de_IsAuthorizedWithTokenCommandError(output, context);
1722
+ }
1723
+ const data = await parseBody(output.body, context);
1724
+ let contents = {};
1725
+ contents = (0, import_smithy_client._json)(data);
1726
+ const response = {
1727
+ $metadata: deserializeMetadata(output),
1728
+ ...contents
1729
+ };
1730
+ return response;
1731
+ }, "de_IsAuthorizedWithTokenCommand");
1732
+ var de_IsAuthorizedWithTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
1733
+ const parsedOutput = {
1734
+ ...output,
1735
+ body: await parseErrorBody(output.body, context)
1736
+ };
1737
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1738
+ switch (errorCode) {
1739
+ case "AccessDeniedException":
1740
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1741
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1742
+ case "InternalServerException":
1743
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1744
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1745
+ case "ResourceNotFoundException":
1746
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1747
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1748
+ case "ThrottlingException":
1749
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1750
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1751
+ case "ValidationException":
1752
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1753
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1754
+ default:
1755
+ const parsedBody = parsedOutput.body;
1756
+ return throwDefaultError({
1757
+ output,
1758
+ parsedBody,
1759
+ errorCode
1760
+ });
1761
+ }
1762
+ }, "de_IsAuthorizedWithTokenCommandError");
1763
+ var de_ListIdentitySourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
1764
+ if (output.statusCode >= 300) {
1765
+ return de_ListIdentitySourcesCommandError(output, context);
1766
+ }
1767
+ const data = await parseBody(output.body, context);
1768
+ let contents = {};
1769
+ contents = de_ListIdentitySourcesOutput(data, context);
1770
+ const response = {
1771
+ $metadata: deserializeMetadata(output),
1772
+ ...contents
1773
+ };
1774
+ return response;
1775
+ }, "de_ListIdentitySourcesCommand");
1776
+ var de_ListIdentitySourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1777
+ const parsedOutput = {
1778
+ ...output,
1779
+ body: await parseErrorBody(output.body, context)
1780
+ };
1781
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1782
+ switch (errorCode) {
1783
+ case "AccessDeniedException":
1784
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1785
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1786
+ case "InternalServerException":
1787
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1788
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1789
+ case "ResourceNotFoundException":
1790
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1791
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1792
+ case "ThrottlingException":
1793
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1794
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1795
+ case "ValidationException":
1796
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1797
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1798
+ default:
1799
+ const parsedBody = parsedOutput.body;
1800
+ return throwDefaultError({
1801
+ output,
1802
+ parsedBody,
1803
+ errorCode
1804
+ });
1805
+ }
1806
+ }, "de_ListIdentitySourcesCommandError");
1807
+ var de_ListPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
1808
+ if (output.statusCode >= 300) {
1809
+ return de_ListPoliciesCommandError(output, context);
1810
+ }
1811
+ const data = await parseBody(output.body, context);
1812
+ let contents = {};
1813
+ contents = de_ListPoliciesOutput(data, context);
1814
+ const response = {
1815
+ $metadata: deserializeMetadata(output),
1816
+ ...contents
1817
+ };
1818
+ return response;
1819
+ }, "de_ListPoliciesCommand");
1820
+ var de_ListPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1821
+ const parsedOutput = {
1822
+ ...output,
1823
+ body: await parseErrorBody(output.body, context)
1824
+ };
1825
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1826
+ switch (errorCode) {
1827
+ case "AccessDeniedException":
1828
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1829
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1830
+ case "InternalServerException":
1831
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1832
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1833
+ case "ResourceNotFoundException":
1834
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1835
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1836
+ case "ThrottlingException":
1837
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1838
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1839
+ case "ValidationException":
1840
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1841
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1842
+ default:
1843
+ const parsedBody = parsedOutput.body;
1844
+ return throwDefaultError({
1845
+ output,
1846
+ parsedBody,
1847
+ errorCode
1848
+ });
1849
+ }
1850
+ }, "de_ListPoliciesCommandError");
1851
+ var de_ListPolicyStoresCommand = /* @__PURE__ */ __name(async (output, context) => {
1852
+ if (output.statusCode >= 300) {
1853
+ return de_ListPolicyStoresCommandError(output, context);
1854
+ }
1855
+ const data = await parseBody(output.body, context);
1856
+ let contents = {};
1857
+ contents = de_ListPolicyStoresOutput(data, context);
1858
+ const response = {
1859
+ $metadata: deserializeMetadata(output),
1860
+ ...contents
1861
+ };
1862
+ return response;
1863
+ }, "de_ListPolicyStoresCommand");
1864
+ var de_ListPolicyStoresCommandError = /* @__PURE__ */ __name(async (output, context) => {
1865
+ const parsedOutput = {
1866
+ ...output,
1867
+ body: await parseErrorBody(output.body, context)
1868
+ };
1869
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1870
+ switch (errorCode) {
1871
+ case "AccessDeniedException":
1872
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1873
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1874
+ case "InternalServerException":
1875
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1876
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1877
+ case "ThrottlingException":
1878
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1879
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1880
+ case "ValidationException":
1881
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1882
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1883
+ default:
1884
+ const parsedBody = parsedOutput.body;
1885
+ return throwDefaultError({
1886
+ output,
1887
+ parsedBody,
1888
+ errorCode
1889
+ });
1890
+ }
1891
+ }, "de_ListPolicyStoresCommandError");
1892
+ var de_ListPolicyTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
1893
+ if (output.statusCode >= 300) {
1894
+ return de_ListPolicyTemplatesCommandError(output, context);
1895
+ }
1896
+ const data = await parseBody(output.body, context);
1897
+ let contents = {};
1898
+ contents = de_ListPolicyTemplatesOutput(data, context);
1899
+ const response = {
1900
+ $metadata: deserializeMetadata(output),
1901
+ ...contents
1902
+ };
1903
+ return response;
1904
+ }, "de_ListPolicyTemplatesCommand");
1905
+ var de_ListPolicyTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1906
+ const parsedOutput = {
1907
+ ...output,
1908
+ body: await parseErrorBody(output.body, context)
1909
+ };
1910
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1911
+ switch (errorCode) {
1912
+ case "AccessDeniedException":
1913
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1914
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1915
+ case "InternalServerException":
1916
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1917
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1918
+ case "ResourceNotFoundException":
1919
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1920
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1921
+ case "ThrottlingException":
1922
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1923
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1924
+ case "ValidationException":
1925
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1926
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1927
+ default:
1928
+ const parsedBody = parsedOutput.body;
1929
+ return throwDefaultError({
1930
+ output,
1931
+ parsedBody,
1932
+ errorCode
1933
+ });
1934
+ }
1935
+ }, "de_ListPolicyTemplatesCommandError");
1936
+ var de_PutSchemaCommand = /* @__PURE__ */ __name(async (output, context) => {
1937
+ if (output.statusCode >= 300) {
1938
+ return de_PutSchemaCommandError(output, context);
1939
+ }
1940
+ const data = await parseBody(output.body, context);
1941
+ let contents = {};
1942
+ contents = de_PutSchemaOutput(data, context);
1943
+ const response = {
1944
+ $metadata: deserializeMetadata(output),
1945
+ ...contents
1946
+ };
1947
+ return response;
1948
+ }, "de_PutSchemaCommand");
1949
+ var de_PutSchemaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1950
+ const parsedOutput = {
1951
+ ...output,
1952
+ body: await parseErrorBody(output.body, context)
1953
+ };
1954
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1955
+ switch (errorCode) {
1956
+ case "AccessDeniedException":
1957
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
1958
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1959
+ case "ConflictException":
1960
+ case "com.amazonaws.verifiedpermissions#ConflictException":
1961
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1962
+ case "InternalServerException":
1963
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
1964
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1965
+ case "ResourceNotFoundException":
1966
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
1967
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1968
+ case "ServiceQuotaExceededException":
1969
+ case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
1970
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1971
+ case "ThrottlingException":
1972
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
1973
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1974
+ case "ValidationException":
1975
+ case "com.amazonaws.verifiedpermissions#ValidationException":
1976
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1977
+ default:
1978
+ const parsedBody = parsedOutput.body;
1979
+ return throwDefaultError({
1980
+ output,
1981
+ parsedBody,
1982
+ errorCode
1983
+ });
1984
+ }
1985
+ }, "de_PutSchemaCommandError");
1986
+ var de_UpdateIdentitySourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1987
+ if (output.statusCode >= 300) {
1988
+ return de_UpdateIdentitySourceCommandError(output, context);
1989
+ }
1990
+ const data = await parseBody(output.body, context);
1991
+ let contents = {};
1992
+ contents = de_UpdateIdentitySourceOutput(data, context);
1993
+ const response = {
1994
+ $metadata: deserializeMetadata(output),
1995
+ ...contents
1996
+ };
1997
+ return response;
1998
+ }, "de_UpdateIdentitySourceCommand");
1999
+ var de_UpdateIdentitySourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2000
+ const parsedOutput = {
2001
+ ...output,
2002
+ body: await parseErrorBody(output.body, context)
2003
+ };
2004
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2005
+ switch (errorCode) {
2006
+ case "AccessDeniedException":
2007
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2008
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2009
+ case "ConflictException":
2010
+ case "com.amazonaws.verifiedpermissions#ConflictException":
2011
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2012
+ case "InternalServerException":
2013
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
2014
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2015
+ case "ResourceNotFoundException":
2016
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
2017
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2018
+ case "ThrottlingException":
2019
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
2020
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2021
+ case "ValidationException":
2022
+ case "com.amazonaws.verifiedpermissions#ValidationException":
2023
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2024
+ default:
2025
+ const parsedBody = parsedOutput.body;
2026
+ return throwDefaultError({
2027
+ output,
2028
+ parsedBody,
2029
+ errorCode
2030
+ });
2031
+ }
2032
+ }, "de_UpdateIdentitySourceCommandError");
2033
+ var de_UpdatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
2034
+ if (output.statusCode >= 300) {
2035
+ return de_UpdatePolicyCommandError(output, context);
2036
+ }
2037
+ const data = await parseBody(output.body, context);
2038
+ let contents = {};
2039
+ contents = de_UpdatePolicyOutput(data, context);
2040
+ const response = {
2041
+ $metadata: deserializeMetadata(output),
2042
+ ...contents
2043
+ };
2044
+ return response;
2045
+ }, "de_UpdatePolicyCommand");
2046
+ var de_UpdatePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2047
+ const parsedOutput = {
2048
+ ...output,
2049
+ body: await parseErrorBody(output.body, context)
2050
+ };
2051
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2052
+ switch (errorCode) {
2053
+ case "AccessDeniedException":
2054
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2055
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2056
+ case "ConflictException":
2057
+ case "com.amazonaws.verifiedpermissions#ConflictException":
2058
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2059
+ case "InternalServerException":
2060
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
2061
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2062
+ case "ResourceNotFoundException":
2063
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
2064
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2065
+ case "ServiceQuotaExceededException":
2066
+ case "com.amazonaws.verifiedpermissions#ServiceQuotaExceededException":
2067
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2068
+ case "ThrottlingException":
2069
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
2070
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2071
+ case "ValidationException":
2072
+ case "com.amazonaws.verifiedpermissions#ValidationException":
2073
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2074
+ default:
2075
+ const parsedBody = parsedOutput.body;
2076
+ return throwDefaultError({
2077
+ output,
2078
+ parsedBody,
2079
+ errorCode
2080
+ });
2081
+ }
2082
+ }, "de_UpdatePolicyCommandError");
2083
+ var de_UpdatePolicyStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
2084
+ if (output.statusCode >= 300) {
2085
+ return de_UpdatePolicyStoreCommandError(output, context);
2086
+ }
2087
+ const data = await parseBody(output.body, context);
2088
+ let contents = {};
2089
+ contents = de_UpdatePolicyStoreOutput(data, context);
2090
+ const response = {
2091
+ $metadata: deserializeMetadata(output),
2092
+ ...contents
2093
+ };
2094
+ return response;
2095
+ }, "de_UpdatePolicyStoreCommand");
2096
+ var de_UpdatePolicyStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
2097
+ const parsedOutput = {
2098
+ ...output,
2099
+ body: await parseErrorBody(output.body, context)
2100
+ };
2101
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2102
+ switch (errorCode) {
2103
+ case "AccessDeniedException":
2104
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2105
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2106
+ case "ConflictException":
2107
+ case "com.amazonaws.verifiedpermissions#ConflictException":
2108
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2109
+ case "InternalServerException":
2110
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
2111
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2112
+ case "ResourceNotFoundException":
2113
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
2114
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2115
+ case "ThrottlingException":
2116
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
2117
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2118
+ case "ValidationException":
2119
+ case "com.amazonaws.verifiedpermissions#ValidationException":
2120
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2121
+ default:
2122
+ const parsedBody = parsedOutput.body;
2123
+ return throwDefaultError({
2124
+ output,
2125
+ parsedBody,
2126
+ errorCode
2127
+ });
2128
+ }
2129
+ }, "de_UpdatePolicyStoreCommandError");
2130
+ var de_UpdatePolicyTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2131
+ if (output.statusCode >= 300) {
2132
+ return de_UpdatePolicyTemplateCommandError(output, context);
2133
+ }
2134
+ const data = await parseBody(output.body, context);
2135
+ let contents = {};
2136
+ contents = de_UpdatePolicyTemplateOutput(data, context);
2137
+ const response = {
2138
+ $metadata: deserializeMetadata(output),
2139
+ ...contents
2140
+ };
2141
+ return response;
2142
+ }, "de_UpdatePolicyTemplateCommand");
2143
+ var de_UpdatePolicyTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
2144
+ const parsedOutput = {
2145
+ ...output,
2146
+ body: await parseErrorBody(output.body, context)
2147
+ };
2148
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2149
+ switch (errorCode) {
2150
+ case "AccessDeniedException":
2151
+ case "com.amazonaws.verifiedpermissions#AccessDeniedException":
2152
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2153
+ case "ConflictException":
2154
+ case "com.amazonaws.verifiedpermissions#ConflictException":
2155
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2156
+ case "InternalServerException":
2157
+ case "com.amazonaws.verifiedpermissions#InternalServerException":
2158
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2159
+ case "ResourceNotFoundException":
2160
+ case "com.amazonaws.verifiedpermissions#ResourceNotFoundException":
2161
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2162
+ case "ThrottlingException":
2163
+ case "com.amazonaws.verifiedpermissions#ThrottlingException":
2164
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2165
+ case "ValidationException":
2166
+ case "com.amazonaws.verifiedpermissions#ValidationException":
2167
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2168
+ default:
2169
+ const parsedBody = parsedOutput.body;
2170
+ return throwDefaultError({
2171
+ output,
2172
+ parsedBody,
2173
+ errorCode
2174
+ });
2175
+ }
2176
+ }, "de_UpdatePolicyTemplateCommandError");
2177
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2178
+ const body = parsedOutput.body;
2179
+ const deserialized = (0, import_smithy_client._json)(body);
2180
+ const exception = new AccessDeniedException({
2181
+ $metadata: deserializeMetadata(parsedOutput),
2182
+ ...deserialized
2183
+ });
2184
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2185
+ }, "de_AccessDeniedExceptionRes");
2186
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2187
+ const body = parsedOutput.body;
2188
+ const deserialized = (0, import_smithy_client._json)(body);
2189
+ const exception = new ConflictException({
2190
+ $metadata: deserializeMetadata(parsedOutput),
2191
+ ...deserialized
2192
+ });
2193
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2194
+ }, "de_ConflictExceptionRes");
2195
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2196
+ const body = parsedOutput.body;
2197
+ const deserialized = (0, import_smithy_client._json)(body);
2198
+ const exception = new InternalServerException({
2199
+ $metadata: deserializeMetadata(parsedOutput),
2200
+ ...deserialized
2201
+ });
2202
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2203
+ }, "de_InternalServerExceptionRes");
2204
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2205
+ const body = parsedOutput.body;
2206
+ const deserialized = (0, import_smithy_client._json)(body);
2207
+ const exception = new ResourceNotFoundException({
2208
+ $metadata: deserializeMetadata(parsedOutput),
2209
+ ...deserialized
2210
+ });
2211
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2212
+ }, "de_ResourceNotFoundExceptionRes");
2213
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2214
+ const body = parsedOutput.body;
2215
+ const deserialized = (0, import_smithy_client._json)(body);
2216
+ const exception = new ServiceQuotaExceededException({
2217
+ $metadata: deserializeMetadata(parsedOutput),
2218
+ ...deserialized
2219
+ });
2220
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2221
+ }, "de_ServiceQuotaExceededExceptionRes");
2222
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2223
+ const body = parsedOutput.body;
2224
+ const deserialized = (0, import_smithy_client._json)(body);
2225
+ const exception = new ThrottlingException({
2226
+ $metadata: deserializeMetadata(parsedOutput),
2227
+ ...deserialized
2228
+ });
2229
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2230
+ }, "de_ThrottlingExceptionRes");
2231
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2232
+ const body = parsedOutput.body;
2233
+ const deserialized = (0, import_smithy_client._json)(body);
2234
+ const exception = new ValidationException({
2235
+ $metadata: deserializeMetadata(parsedOutput),
2236
+ ...deserialized
2237
+ });
2238
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
2239
+ }, "de_ValidationExceptionRes");
2240
+ var se_AttributeValue = /* @__PURE__ */ __name((input, context) => {
2241
+ return AttributeValue.visit(input, {
2242
+ boolean: (value) => ({ boolean: value }),
2243
+ entityIdentifier: (value) => ({ entityIdentifier: (0, import_smithy_client._json)(value) }),
2244
+ long: (value) => ({ long: value }),
2245
+ record: (value) => ({ record: se_RecordAttribute(value, context) }),
2246
+ set: (value) => ({ set: se_SetAttribute(value, context) }),
2247
+ string: (value) => ({ string: value }),
2248
+ _: (name, value) => ({ name: value })
2249
+ });
2250
+ }, "se_AttributeValue");
2251
+ var se_BatchIsAuthorizedInput = /* @__PURE__ */ __name((input, context) => {
2252
+ return (0, import_smithy_client.take)(input, {
2253
+ entities: (_) => se_EntitiesDefinition(_, context),
2254
+ policyStoreId: [],
2255
+ requests: (_) => se_BatchIsAuthorizedInputList(_, context)
2256
+ });
2257
+ }, "se_BatchIsAuthorizedInput");
2258
+ var se_BatchIsAuthorizedInputItem = /* @__PURE__ */ __name((input, context) => {
2259
+ return (0, import_smithy_client.take)(input, {
2260
+ action: import_smithy_client._json,
2261
+ context: (_) => se_ContextDefinition(_, context),
2262
+ principal: import_smithy_client._json,
2263
+ resource: import_smithy_client._json
2264
+ });
2265
+ }, "se_BatchIsAuthorizedInputItem");
2266
+ var se_BatchIsAuthorizedInputList = /* @__PURE__ */ __name((input, context) => {
2267
+ return input.filter((e) => e != null).map((entry) => {
2268
+ return se_BatchIsAuthorizedInputItem(entry, context);
2269
+ });
2270
+ }, "se_BatchIsAuthorizedInputList");
2271
+ var se_ContextDefinition = /* @__PURE__ */ __name((input, context) => {
2272
+ return ContextDefinition.visit(input, {
2273
+ contextMap: (value) => ({ contextMap: se_ContextMap(value, context) }),
2274
+ _: (name, value) => ({ name: value })
2275
+ });
2276
+ }, "se_ContextDefinition");
2277
+ var se_ContextMap = /* @__PURE__ */ __name((input, context) => {
2278
+ return Object.entries(input).reduce((acc, [key, value]) => {
2279
+ if (value === null) {
2280
+ return acc;
2281
+ }
2282
+ acc[key] = se_AttributeValue(value, context);
2283
+ return acc;
2284
+ }, {});
2285
+ }, "se_ContextMap");
2286
+ var se_CreateIdentitySourceInput = /* @__PURE__ */ __name((input, context) => {
2287
+ return (0, import_smithy_client.take)(input, {
2288
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2289
+ configuration: import_smithy_client._json,
2290
+ policyStoreId: [],
2291
+ principalEntityType: []
2292
+ });
2293
+ }, "se_CreateIdentitySourceInput");
2294
+ var se_CreatePolicyInput = /* @__PURE__ */ __name((input, context) => {
2295
+ return (0, import_smithy_client.take)(input, {
2296
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2297
+ definition: import_smithy_client._json,
2298
+ policyStoreId: []
2299
+ });
2300
+ }, "se_CreatePolicyInput");
2301
+ var se_CreatePolicyStoreInput = /* @__PURE__ */ __name((input, context) => {
2302
+ return (0, import_smithy_client.take)(input, {
2303
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2304
+ description: [],
2305
+ validationSettings: import_smithy_client._json
2306
+ });
2307
+ }, "se_CreatePolicyStoreInput");
2308
+ var se_CreatePolicyTemplateInput = /* @__PURE__ */ __name((input, context) => {
2309
+ return (0, import_smithy_client.take)(input, {
2310
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
2311
+ description: [],
2312
+ policyStoreId: [],
2313
+ statement: []
2314
+ });
2315
+ }, "se_CreatePolicyTemplateInput");
2316
+ var se_EntitiesDefinition = /* @__PURE__ */ __name((input, context) => {
2317
+ return EntitiesDefinition.visit(input, {
2318
+ entityList: (value) => ({ entityList: se_EntityList(value, context) }),
2319
+ _: (name, value) => ({ name: value })
2320
+ });
2321
+ }, "se_EntitiesDefinition");
2322
+ var se_EntityAttributes = /* @__PURE__ */ __name((input, context) => {
2323
+ return Object.entries(input).reduce((acc, [key, value]) => {
2324
+ if (value === null) {
2325
+ return acc;
2326
+ }
2327
+ acc[key] = se_AttributeValue(value, context);
2328
+ return acc;
2329
+ }, {});
2330
+ }, "se_EntityAttributes");
2331
+ var se_EntityItem = /* @__PURE__ */ __name((input, context) => {
2332
+ return (0, import_smithy_client.take)(input, {
2333
+ attributes: (_) => se_EntityAttributes(_, context),
2334
+ identifier: import_smithy_client._json,
2335
+ parents: import_smithy_client._json
2336
+ });
2337
+ }, "se_EntityItem");
2338
+ var se_EntityList = /* @__PURE__ */ __name((input, context) => {
2339
+ return input.filter((e) => e != null).map((entry) => {
2340
+ return se_EntityItem(entry, context);
2341
+ });
2342
+ }, "se_EntityList");
2343
+ var se_IsAuthorizedInput = /* @__PURE__ */ __name((input, context) => {
2344
+ return (0, import_smithy_client.take)(input, {
2345
+ action: import_smithy_client._json,
2346
+ context: (_) => se_ContextDefinition(_, context),
2347
+ entities: (_) => se_EntitiesDefinition(_, context),
2348
+ policyStoreId: [],
2349
+ principal: import_smithy_client._json,
2350
+ resource: import_smithy_client._json
2351
+ });
2352
+ }, "se_IsAuthorizedInput");
2353
+ var se_IsAuthorizedWithTokenInput = /* @__PURE__ */ __name((input, context) => {
2354
+ return (0, import_smithy_client.take)(input, {
2355
+ accessToken: [],
2356
+ action: import_smithy_client._json,
2357
+ context: (_) => se_ContextDefinition(_, context),
2358
+ entities: (_) => se_EntitiesDefinition(_, context),
2359
+ identityToken: [],
2360
+ policyStoreId: [],
2361
+ resource: import_smithy_client._json
2362
+ });
2363
+ }, "se_IsAuthorizedWithTokenInput");
2364
+ var se_RecordAttribute = /* @__PURE__ */ __name((input, context) => {
2365
+ return Object.entries(input).reduce((acc, [key, value]) => {
2366
+ if (value === null) {
2367
+ return acc;
2368
+ }
2369
+ acc[key] = se_AttributeValue(value, context);
2370
+ return acc;
2371
+ }, {});
2372
+ }, "se_RecordAttribute");
2373
+ var se_SetAttribute = /* @__PURE__ */ __name((input, context) => {
2374
+ return input.filter((e) => e != null).map((entry) => {
2375
+ return se_AttributeValue(entry, context);
2376
+ });
2377
+ }, "se_SetAttribute");
2378
+ var de_AttributeValue = /* @__PURE__ */ __name((output, context) => {
2379
+ if ((0, import_smithy_client.expectBoolean)(output.boolean) !== void 0) {
2380
+ return { boolean: (0, import_smithy_client.expectBoolean)(output.boolean) };
2381
+ }
2382
+ if (output.entityIdentifier != null) {
2383
+ return {
2384
+ entityIdentifier: (0, import_smithy_client._json)(output.entityIdentifier)
2385
+ };
2386
+ }
2387
+ if ((0, import_smithy_client.expectLong)(output.long) !== void 0) {
2388
+ return { long: (0, import_smithy_client.expectLong)(output.long) };
2389
+ }
2390
+ if (output.record != null) {
2391
+ return {
2392
+ record: de_RecordAttribute(output.record, context)
2393
+ };
2394
+ }
2395
+ if (output.set != null) {
2396
+ return {
2397
+ set: de_SetAttribute(output.set, context)
2398
+ };
2399
+ }
2400
+ if ((0, import_smithy_client.expectString)(output.string) !== void 0) {
2401
+ return { string: (0, import_smithy_client.expectString)(output.string) };
2402
+ }
2403
+ return { $unknown: Object.entries(output)[0] };
2404
+ }, "de_AttributeValue");
2405
+ var de_BatchIsAuthorizedInputItem = /* @__PURE__ */ __name((output, context) => {
2406
+ return (0, import_smithy_client.take)(output, {
2407
+ action: import_smithy_client._json,
2408
+ context: (_) => de_ContextDefinition((0, import_core.awsExpectUnion)(_), context),
2409
+ principal: import_smithy_client._json,
2410
+ resource: import_smithy_client._json
2411
+ });
2412
+ }, "de_BatchIsAuthorizedInputItem");
2413
+ var de_BatchIsAuthorizedOutput = /* @__PURE__ */ __name((output, context) => {
2414
+ return (0, import_smithy_client.take)(output, {
2415
+ results: (_) => de_BatchIsAuthorizedOutputList(_, context)
2416
+ });
2417
+ }, "de_BatchIsAuthorizedOutput");
2418
+ var de_BatchIsAuthorizedOutputItem = /* @__PURE__ */ __name((output, context) => {
2419
+ return (0, import_smithy_client.take)(output, {
2420
+ decision: import_smithy_client.expectString,
2421
+ determiningPolicies: import_smithy_client._json,
2422
+ errors: import_smithy_client._json,
2423
+ request: (_) => de_BatchIsAuthorizedInputItem(_, context)
2424
+ });
2425
+ }, "de_BatchIsAuthorizedOutputItem");
2426
+ var de_BatchIsAuthorizedOutputList = /* @__PURE__ */ __name((output, context) => {
2427
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2428
+ return de_BatchIsAuthorizedOutputItem(entry, context);
2429
+ });
2430
+ return retVal;
2431
+ }, "de_BatchIsAuthorizedOutputList");
2432
+ var de_ContextDefinition = /* @__PURE__ */ __name((output, context) => {
2433
+ if (output.contextMap != null) {
2434
+ return {
2435
+ contextMap: de_ContextMap(output.contextMap, context)
2436
+ };
2437
+ }
2438
+ return { $unknown: Object.entries(output)[0] };
2439
+ }, "de_ContextDefinition");
2440
+ var de_ContextMap = /* @__PURE__ */ __name((output, context) => {
2441
+ return Object.entries(output).reduce((acc, [key, value]) => {
2442
+ if (value === null) {
2443
+ return acc;
2444
+ }
2445
+ acc[key] = de_AttributeValue((0, import_core.awsExpectUnion)(value), context);
2446
+ return acc;
2447
+ }, {});
2448
+ }, "de_ContextMap");
2449
+ var de_CreateIdentitySourceOutput = /* @__PURE__ */ __name((output, context) => {
2450
+ return (0, import_smithy_client.take)(output, {
2451
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2452
+ identitySourceId: import_smithy_client.expectString,
2453
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2454
+ policyStoreId: import_smithy_client.expectString
2455
+ });
2456
+ }, "de_CreateIdentitySourceOutput");
2457
+ var de_CreatePolicyOutput = /* @__PURE__ */ __name((output, context) => {
2458
+ return (0, import_smithy_client.take)(output, {
2459
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2460
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2461
+ policyId: import_smithy_client.expectString,
2462
+ policyStoreId: import_smithy_client.expectString,
2463
+ policyType: import_smithy_client.expectString,
2464
+ principal: import_smithy_client._json,
2465
+ resource: import_smithy_client._json
2466
+ });
2467
+ }, "de_CreatePolicyOutput");
2468
+ var de_CreatePolicyStoreOutput = /* @__PURE__ */ __name((output, context) => {
2469
+ return (0, import_smithy_client.take)(output, {
2470
+ arn: import_smithy_client.expectString,
2471
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2472
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2473
+ policyStoreId: import_smithy_client.expectString
2474
+ });
2475
+ }, "de_CreatePolicyStoreOutput");
2476
+ var de_CreatePolicyTemplateOutput = /* @__PURE__ */ __name((output, context) => {
2477
+ return (0, import_smithy_client.take)(output, {
2478
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2479
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2480
+ policyStoreId: import_smithy_client.expectString,
2481
+ policyTemplateId: import_smithy_client.expectString
2482
+ });
2483
+ }, "de_CreatePolicyTemplateOutput");
2484
+ var de_GetIdentitySourceOutput = /* @__PURE__ */ __name((output, context) => {
2485
+ return (0, import_smithy_client.take)(output, {
2486
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2487
+ details: import_smithy_client._json,
2488
+ identitySourceId: import_smithy_client.expectString,
2489
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2490
+ policyStoreId: import_smithy_client.expectString,
2491
+ principalEntityType: import_smithy_client.expectString
2492
+ });
2493
+ }, "de_GetIdentitySourceOutput");
2494
+ var de_GetPolicyOutput = /* @__PURE__ */ __name((output, context) => {
2495
+ return (0, import_smithy_client.take)(output, {
2496
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2497
+ definition: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2498
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2499
+ policyId: import_smithy_client.expectString,
2500
+ policyStoreId: import_smithy_client.expectString,
2501
+ policyType: import_smithy_client.expectString,
2502
+ principal: import_smithy_client._json,
2503
+ resource: import_smithy_client._json
2504
+ });
2505
+ }, "de_GetPolicyOutput");
2506
+ var de_GetPolicyStoreOutput = /* @__PURE__ */ __name((output, context) => {
2507
+ return (0, import_smithy_client.take)(output, {
2508
+ arn: import_smithy_client.expectString,
2509
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2510
+ description: import_smithy_client.expectString,
2511
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2512
+ policyStoreId: import_smithy_client.expectString,
2513
+ validationSettings: import_smithy_client._json
2514
+ });
2515
+ }, "de_GetPolicyStoreOutput");
2516
+ var de_GetPolicyTemplateOutput = /* @__PURE__ */ __name((output, context) => {
2517
+ return (0, import_smithy_client.take)(output, {
2518
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2519
+ description: import_smithy_client.expectString,
2520
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2521
+ policyStoreId: import_smithy_client.expectString,
2522
+ policyTemplateId: import_smithy_client.expectString,
2523
+ statement: import_smithy_client.expectString
2524
+ });
2525
+ }, "de_GetPolicyTemplateOutput");
2526
+ var de_GetSchemaOutput = /* @__PURE__ */ __name((output, context) => {
2527
+ return (0, import_smithy_client.take)(output, {
2528
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2529
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2530
+ namespaces: import_smithy_client._json,
2531
+ policyStoreId: import_smithy_client.expectString,
2532
+ schema: import_smithy_client.expectString
2533
+ });
2534
+ }, "de_GetSchemaOutput");
2535
+ var de_IdentitySourceItem = /* @__PURE__ */ __name((output, context) => {
2536
+ return (0, import_smithy_client.take)(output, {
2537
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2538
+ details: import_smithy_client._json,
2539
+ identitySourceId: import_smithy_client.expectString,
2540
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2541
+ policyStoreId: import_smithy_client.expectString,
2542
+ principalEntityType: import_smithy_client.expectString
2543
+ });
2544
+ }, "de_IdentitySourceItem");
2545
+ var de_IdentitySources = /* @__PURE__ */ __name((output, context) => {
2546
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2547
+ return de_IdentitySourceItem(entry, context);
2548
+ });
2549
+ return retVal;
2550
+ }, "de_IdentitySources");
2551
+ var de_ListIdentitySourcesOutput = /* @__PURE__ */ __name((output, context) => {
2552
+ return (0, import_smithy_client.take)(output, {
2553
+ identitySources: (_) => de_IdentitySources(_, context),
2554
+ nextToken: import_smithy_client.expectString
2555
+ });
2556
+ }, "de_ListIdentitySourcesOutput");
2557
+ var de_ListPoliciesOutput = /* @__PURE__ */ __name((output, context) => {
2558
+ return (0, import_smithy_client.take)(output, {
2559
+ nextToken: import_smithy_client.expectString,
2560
+ policies: (_) => de_PolicyList(_, context)
2561
+ });
2562
+ }, "de_ListPoliciesOutput");
2563
+ var de_ListPolicyStoresOutput = /* @__PURE__ */ __name((output, context) => {
2564
+ return (0, import_smithy_client.take)(output, {
2565
+ nextToken: import_smithy_client.expectString,
2566
+ policyStores: (_) => de_PolicyStoreList(_, context)
2567
+ });
2568
+ }, "de_ListPolicyStoresOutput");
2569
+ var de_ListPolicyTemplatesOutput = /* @__PURE__ */ __name((output, context) => {
2570
+ return (0, import_smithy_client.take)(output, {
2571
+ nextToken: import_smithy_client.expectString,
2572
+ policyTemplates: (_) => de_PolicyTemplatesList(_, context)
2573
+ });
2574
+ }, "de_ListPolicyTemplatesOutput");
2575
+ var de_PolicyItem = /* @__PURE__ */ __name((output, context) => {
2576
+ return (0, import_smithy_client.take)(output, {
2577
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2578
+ definition: (_) => (0, import_smithy_client._json)((0, import_core.awsExpectUnion)(_)),
2579
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2580
+ policyId: import_smithy_client.expectString,
2581
+ policyStoreId: import_smithy_client.expectString,
2582
+ policyType: import_smithy_client.expectString,
2583
+ principal: import_smithy_client._json,
2584
+ resource: import_smithy_client._json
2585
+ });
2586
+ }, "de_PolicyItem");
2587
+ var de_PolicyList = /* @__PURE__ */ __name((output, context) => {
2588
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2589
+ return de_PolicyItem(entry, context);
2590
+ });
2591
+ return retVal;
2592
+ }, "de_PolicyList");
2593
+ var de_PolicyStoreItem = /* @__PURE__ */ __name((output, context) => {
2594
+ return (0, import_smithy_client.take)(output, {
2595
+ arn: import_smithy_client.expectString,
2596
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2597
+ description: import_smithy_client.expectString,
2598
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2599
+ policyStoreId: import_smithy_client.expectString
2600
+ });
2601
+ }, "de_PolicyStoreItem");
2602
+ var de_PolicyStoreList = /* @__PURE__ */ __name((output, context) => {
2603
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2604
+ return de_PolicyStoreItem(entry, context);
2605
+ });
2606
+ return retVal;
2607
+ }, "de_PolicyStoreList");
2608
+ var de_PolicyTemplateItem = /* @__PURE__ */ __name((output, context) => {
2609
+ return (0, import_smithy_client.take)(output, {
2610
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2611
+ description: import_smithy_client.expectString,
2612
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2613
+ policyStoreId: import_smithy_client.expectString,
2614
+ policyTemplateId: import_smithy_client.expectString
2615
+ });
2616
+ }, "de_PolicyTemplateItem");
2617
+ var de_PolicyTemplatesList = /* @__PURE__ */ __name((output, context) => {
2618
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2619
+ return de_PolicyTemplateItem(entry, context);
2620
+ });
2621
+ return retVal;
2622
+ }, "de_PolicyTemplatesList");
2623
+ var de_PutSchemaOutput = /* @__PURE__ */ __name((output, context) => {
2624
+ return (0, import_smithy_client.take)(output, {
2625
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2626
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2627
+ namespaces: import_smithy_client._json,
2628
+ policyStoreId: import_smithy_client.expectString
2629
+ });
2630
+ }, "de_PutSchemaOutput");
2631
+ var de_RecordAttribute = /* @__PURE__ */ __name((output, context) => {
2632
+ return Object.entries(output).reduce((acc, [key, value]) => {
2633
+ if (value === null) {
2634
+ return acc;
2635
+ }
2636
+ acc[key] = de_AttributeValue((0, import_core.awsExpectUnion)(value), context);
2637
+ return acc;
2638
+ }, {});
2639
+ }, "de_RecordAttribute");
2640
+ var de_SetAttribute = /* @__PURE__ */ __name((output, context) => {
2641
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2642
+ return de_AttributeValue((0, import_core.awsExpectUnion)(entry), context);
2643
+ });
2644
+ return retVal;
2645
+ }, "de_SetAttribute");
2646
+ var de_UpdateIdentitySourceOutput = /* @__PURE__ */ __name((output, context) => {
2647
+ return (0, import_smithy_client.take)(output, {
2648
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2649
+ identitySourceId: import_smithy_client.expectString,
2650
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2651
+ policyStoreId: import_smithy_client.expectString
2652
+ });
2653
+ }, "de_UpdateIdentitySourceOutput");
2654
+ var de_UpdatePolicyOutput = /* @__PURE__ */ __name((output, context) => {
2655
+ return (0, import_smithy_client.take)(output, {
2656
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2657
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2658
+ policyId: import_smithy_client.expectString,
2659
+ policyStoreId: import_smithy_client.expectString,
2660
+ policyType: import_smithy_client.expectString,
2661
+ principal: import_smithy_client._json,
2662
+ resource: import_smithy_client._json
2663
+ });
2664
+ }, "de_UpdatePolicyOutput");
2665
+ var de_UpdatePolicyStoreOutput = /* @__PURE__ */ __name((output, context) => {
2666
+ return (0, import_smithy_client.take)(output, {
2667
+ arn: import_smithy_client.expectString,
2668
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2669
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2670
+ policyStoreId: import_smithy_client.expectString
2671
+ });
2672
+ }, "de_UpdatePolicyStoreOutput");
2673
+ var de_UpdatePolicyTemplateOutput = /* @__PURE__ */ __name((output, context) => {
2674
+ return (0, import_smithy_client.take)(output, {
2675
+ createdDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2676
+ lastUpdatedDate: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
2677
+ policyStoreId: import_smithy_client.expectString,
2678
+ policyTemplateId: import_smithy_client.expectString
2679
+ });
2680
+ }, "de_UpdatePolicyTemplateOutput");
2681
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2682
+ httpStatusCode: output.statusCode,
2683
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2684
+ extendedRequestId: output.headers["x-amz-id-2"],
2685
+ cfId: output.headers["x-amz-cf-id"]
2686
+ }), "deserializeMetadata");
2687
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2688
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(VerifiedPermissionsServiceException);
2689
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2690
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2691
+ const contents = {
2692
+ protocol,
2693
+ hostname,
2694
+ port,
2695
+ method: "POST",
2696
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2697
+ headers
2698
+ };
2699
+ if (resolvedHostname !== void 0) {
2700
+ contents.hostname = resolvedHostname;
2701
+ }
2702
+ if (body !== void 0) {
2703
+ contents.body = body;
2704
+ }
2705
+ return new import_protocol_http.HttpRequest(contents);
2706
+ }, "buildHttpRpcRequest");
2707
+ function sharedHeaders(operation) {
2708
+ return {
2709
+ "content-type": "application/x-amz-json-1.0",
2710
+ "x-amz-target": `VerifiedPermissions.${operation}`
2711
+ };
2712
+ }
2713
+ __name(sharedHeaders, "sharedHeaders");
2714
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2715
+ if (encoded.length) {
2716
+ return JSON.parse(encoded);
2717
+ }
2718
+ return {};
2719
+ }), "parseBody");
2720
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2721
+ const value = await parseBody(errorBody, context);
2722
+ value.message = value.message ?? value.Message;
2723
+ return value;
2724
+ }, "parseErrorBody");
2725
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2726
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2727
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2728
+ let cleanValue = rawValue;
2729
+ if (typeof cleanValue === "number") {
2730
+ cleanValue = cleanValue.toString();
2731
+ }
2732
+ if (cleanValue.indexOf(",") >= 0) {
2733
+ cleanValue = cleanValue.split(",")[0];
2734
+ }
2735
+ if (cleanValue.indexOf(":") >= 0) {
2736
+ cleanValue = cleanValue.split(":")[0];
2737
+ }
2738
+ if (cleanValue.indexOf("#") >= 0) {
2739
+ cleanValue = cleanValue.split("#")[1];
2740
+ }
2741
+ return cleanValue;
2742
+ }, "sanitizeErrorCode");
2743
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2744
+ if (headerKey !== void 0) {
2745
+ return sanitizeErrorCode(output.headers[headerKey]);
2746
+ }
2747
+ if (data.code !== void 0) {
2748
+ return sanitizeErrorCode(data.code);
2749
+ }
2750
+ if (data["__type"] !== void 0) {
2751
+ return sanitizeErrorCode(data["__type"]);
2752
+ }
2753
+ }, "loadRestJsonErrorCode");
2754
+
2755
+ // src/commands/BatchIsAuthorizedCommand.ts
2756
+ var _BatchIsAuthorizedCommand = class _BatchIsAuthorizedCommand extends import_smithy_client.Command.classBuilder().ep({
2757
+ ...commonParams
2758
+ }).m(function(Command, cs, config, o) {
2759
+ return [
2760
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2761
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2762
+ ];
2763
+ }).s("VerifiedPermissions", "BatchIsAuthorized", {}).n("VerifiedPermissionsClient", "BatchIsAuthorizedCommand").f(BatchIsAuthorizedInputFilterSensitiveLog, BatchIsAuthorizedOutputFilterSensitiveLog).ser(se_BatchIsAuthorizedCommand).de(de_BatchIsAuthorizedCommand).build() {
2764
+ };
2765
+ __name(_BatchIsAuthorizedCommand, "BatchIsAuthorizedCommand");
2766
+ var BatchIsAuthorizedCommand = _BatchIsAuthorizedCommand;
2767
+
2768
+ // src/commands/CreateIdentitySourceCommand.ts
2769
+
2770
+
2771
+
2772
+
2773
+ var _CreateIdentitySourceCommand = class _CreateIdentitySourceCommand extends import_smithy_client.Command.classBuilder().ep({
2774
+ ...commonParams
2775
+ }).m(function(Command, cs, config, o) {
2776
+ return [
2777
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2778
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2779
+ ];
2780
+ }).s("VerifiedPermissions", "CreateIdentitySource", {}).n("VerifiedPermissionsClient", "CreateIdentitySourceCommand").f(CreateIdentitySourceInputFilterSensitiveLog, void 0).ser(se_CreateIdentitySourceCommand).de(de_CreateIdentitySourceCommand).build() {
2781
+ };
2782
+ __name(_CreateIdentitySourceCommand, "CreateIdentitySourceCommand");
2783
+ var CreateIdentitySourceCommand = _CreateIdentitySourceCommand;
2784
+
2785
+ // src/commands/CreatePolicyCommand.ts
2786
+
2787
+
2788
+
2789
+
2790
+ var _CreatePolicyCommand = class _CreatePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2791
+ ...commonParams
2792
+ }).m(function(Command, cs, config, o) {
2793
+ return [
2794
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2795
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2796
+ ];
2797
+ }).s("VerifiedPermissions", "CreatePolicy", {}).n("VerifiedPermissionsClient", "CreatePolicyCommand").f(CreatePolicyInputFilterSensitiveLog, CreatePolicyOutputFilterSensitiveLog).ser(se_CreatePolicyCommand).de(de_CreatePolicyCommand).build() {
2798
+ };
2799
+ __name(_CreatePolicyCommand, "CreatePolicyCommand");
2800
+ var CreatePolicyCommand = _CreatePolicyCommand;
2801
+
2802
+ // src/commands/CreatePolicyStoreCommand.ts
2803
+
2804
+
2805
+
2806
+
2807
+ var _CreatePolicyStoreCommand = class _CreatePolicyStoreCommand extends import_smithy_client.Command.classBuilder().ep({
2808
+ ...commonParams
2809
+ }).m(function(Command, cs, config, o) {
2810
+ return [
2811
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2812
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2813
+ ];
2814
+ }).s("VerifiedPermissions", "CreatePolicyStore", {}).n("VerifiedPermissionsClient", "CreatePolicyStoreCommand").f(CreatePolicyStoreInputFilterSensitiveLog, void 0).ser(se_CreatePolicyStoreCommand).de(de_CreatePolicyStoreCommand).build() {
2815
+ };
2816
+ __name(_CreatePolicyStoreCommand, "CreatePolicyStoreCommand");
2817
+ var CreatePolicyStoreCommand = _CreatePolicyStoreCommand;
2818
+
2819
+ // src/commands/CreatePolicyTemplateCommand.ts
2820
+
2821
+
2822
+
2823
+
2824
+ var _CreatePolicyTemplateCommand = class _CreatePolicyTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2825
+ ...commonParams
2826
+ }).m(function(Command, cs, config, o) {
2827
+ return [
2828
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2829
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2830
+ ];
2831
+ }).s("VerifiedPermissions", "CreatePolicyTemplate", {}).n("VerifiedPermissionsClient", "CreatePolicyTemplateCommand").f(CreatePolicyTemplateInputFilterSensitiveLog, void 0).ser(se_CreatePolicyTemplateCommand).de(de_CreatePolicyTemplateCommand).build() {
2832
+ };
2833
+ __name(_CreatePolicyTemplateCommand, "CreatePolicyTemplateCommand");
2834
+ var CreatePolicyTemplateCommand = _CreatePolicyTemplateCommand;
2835
+
2836
+ // src/commands/DeleteIdentitySourceCommand.ts
2837
+
2838
+
2839
+
2840
+
2841
+ var _DeleteIdentitySourceCommand = class _DeleteIdentitySourceCommand extends import_smithy_client.Command.classBuilder().ep({
2842
+ ...commonParams
2843
+ }).m(function(Command, cs, config, o) {
2844
+ return [
2845
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2846
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2847
+ ];
2848
+ }).s("VerifiedPermissions", "DeleteIdentitySource", {}).n("VerifiedPermissionsClient", "DeleteIdentitySourceCommand").f(void 0, void 0).ser(se_DeleteIdentitySourceCommand).de(de_DeleteIdentitySourceCommand).build() {
2849
+ };
2850
+ __name(_DeleteIdentitySourceCommand, "DeleteIdentitySourceCommand");
2851
+ var DeleteIdentitySourceCommand = _DeleteIdentitySourceCommand;
2852
+
2853
+ // src/commands/DeletePolicyCommand.ts
2854
+
2855
+
2856
+
2857
+
2858
+ var _DeletePolicyCommand = class _DeletePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2859
+ ...commonParams
2860
+ }).m(function(Command, cs, config, o) {
2861
+ return [
2862
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2863
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2864
+ ];
2865
+ }).s("VerifiedPermissions", "DeletePolicy", {}).n("VerifiedPermissionsClient", "DeletePolicyCommand").f(void 0, void 0).ser(se_DeletePolicyCommand).de(de_DeletePolicyCommand).build() {
2866
+ };
2867
+ __name(_DeletePolicyCommand, "DeletePolicyCommand");
2868
+ var DeletePolicyCommand = _DeletePolicyCommand;
2869
+
2870
+ // src/commands/DeletePolicyStoreCommand.ts
2871
+
2872
+
2873
+
2874
+
2875
+ var _DeletePolicyStoreCommand = class _DeletePolicyStoreCommand extends import_smithy_client.Command.classBuilder().ep({
2876
+ ...commonParams
2877
+ }).m(function(Command, cs, config, o) {
2878
+ return [
2879
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2880
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2881
+ ];
2882
+ }).s("VerifiedPermissions", "DeletePolicyStore", {}).n("VerifiedPermissionsClient", "DeletePolicyStoreCommand").f(void 0, void 0).ser(se_DeletePolicyStoreCommand).de(de_DeletePolicyStoreCommand).build() {
2883
+ };
2884
+ __name(_DeletePolicyStoreCommand, "DeletePolicyStoreCommand");
2885
+ var DeletePolicyStoreCommand = _DeletePolicyStoreCommand;
2886
+
2887
+ // src/commands/DeletePolicyTemplateCommand.ts
2888
+
2889
+
2890
+
2891
+
2892
+ var _DeletePolicyTemplateCommand = class _DeletePolicyTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2893
+ ...commonParams
2894
+ }).m(function(Command, cs, config, o) {
2895
+ return [
2896
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2897
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2898
+ ];
2899
+ }).s("VerifiedPermissions", "DeletePolicyTemplate", {}).n("VerifiedPermissionsClient", "DeletePolicyTemplateCommand").f(void 0, void 0).ser(se_DeletePolicyTemplateCommand).de(de_DeletePolicyTemplateCommand).build() {
2900
+ };
2901
+ __name(_DeletePolicyTemplateCommand, "DeletePolicyTemplateCommand");
2902
+ var DeletePolicyTemplateCommand = _DeletePolicyTemplateCommand;
2903
+
2904
+ // src/commands/GetIdentitySourceCommand.ts
2905
+
2906
+
2907
+
2908
+
2909
+ var _GetIdentitySourceCommand = class _GetIdentitySourceCommand extends import_smithy_client.Command.classBuilder().ep({
2910
+ ...commonParams
2911
+ }).m(function(Command, cs, config, o) {
2912
+ return [
2913
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2914
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2915
+ ];
2916
+ }).s("VerifiedPermissions", "GetIdentitySource", {}).n("VerifiedPermissionsClient", "GetIdentitySourceCommand").f(void 0, GetIdentitySourceOutputFilterSensitiveLog).ser(se_GetIdentitySourceCommand).de(de_GetIdentitySourceCommand).build() {
2917
+ };
2918
+ __name(_GetIdentitySourceCommand, "GetIdentitySourceCommand");
2919
+ var GetIdentitySourceCommand = _GetIdentitySourceCommand;
2920
+
2921
+ // src/commands/GetPolicyCommand.ts
2922
+
2923
+
2924
+
2925
+
2926
+ var _GetPolicyCommand = class _GetPolicyCommand extends import_smithy_client.Command.classBuilder().ep({
2927
+ ...commonParams
2928
+ }).m(function(Command, cs, config, o) {
2929
+ return [
2930
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2931
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2932
+ ];
2933
+ }).s("VerifiedPermissions", "GetPolicy", {}).n("VerifiedPermissionsClient", "GetPolicyCommand").f(void 0, GetPolicyOutputFilterSensitiveLog).ser(se_GetPolicyCommand).de(de_GetPolicyCommand).build() {
2934
+ };
2935
+ __name(_GetPolicyCommand, "GetPolicyCommand");
2936
+ var GetPolicyCommand = _GetPolicyCommand;
2937
+
2938
+ // src/commands/GetPolicyStoreCommand.ts
2939
+
2940
+
2941
+
2942
+
2943
+ var _GetPolicyStoreCommand = class _GetPolicyStoreCommand extends import_smithy_client.Command.classBuilder().ep({
2944
+ ...commonParams
2945
+ }).m(function(Command, cs, config, o) {
2946
+ return [
2947
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2948
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2949
+ ];
2950
+ }).s("VerifiedPermissions", "GetPolicyStore", {}).n("VerifiedPermissionsClient", "GetPolicyStoreCommand").f(void 0, GetPolicyStoreOutputFilterSensitiveLog).ser(se_GetPolicyStoreCommand).de(de_GetPolicyStoreCommand).build() {
2951
+ };
2952
+ __name(_GetPolicyStoreCommand, "GetPolicyStoreCommand");
2953
+ var GetPolicyStoreCommand = _GetPolicyStoreCommand;
2954
+
2955
+ // src/commands/GetPolicyTemplateCommand.ts
2956
+
2957
+
2958
+
2959
+
2960
+ var _GetPolicyTemplateCommand = class _GetPolicyTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
2961
+ ...commonParams
2962
+ }).m(function(Command, cs, config, o) {
2963
+ return [
2964
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2965
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2966
+ ];
2967
+ }).s("VerifiedPermissions", "GetPolicyTemplate", {}).n("VerifiedPermissionsClient", "GetPolicyTemplateCommand").f(void 0, GetPolicyTemplateOutputFilterSensitiveLog).ser(se_GetPolicyTemplateCommand).de(de_GetPolicyTemplateCommand).build() {
2968
+ };
2969
+ __name(_GetPolicyTemplateCommand, "GetPolicyTemplateCommand");
2970
+ var GetPolicyTemplateCommand = _GetPolicyTemplateCommand;
2971
+
2972
+ // src/commands/GetSchemaCommand.ts
2973
+
2974
+
2975
+
2976
+
2977
+ var _GetSchemaCommand = class _GetSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
2978
+ ...commonParams
2979
+ }).m(function(Command, cs, config, o) {
2980
+ return [
2981
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2982
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2983
+ ];
2984
+ }).s("VerifiedPermissions", "GetSchema", {}).n("VerifiedPermissionsClient", "GetSchemaCommand").f(void 0, GetSchemaOutputFilterSensitiveLog).ser(se_GetSchemaCommand).de(de_GetSchemaCommand).build() {
2985
+ };
2986
+ __name(_GetSchemaCommand, "GetSchemaCommand");
2987
+ var GetSchemaCommand = _GetSchemaCommand;
2988
+
2989
+ // src/commands/IsAuthorizedCommand.ts
2990
+
2991
+
2992
+
2993
+
2994
+ var _IsAuthorizedCommand = class _IsAuthorizedCommand extends import_smithy_client.Command.classBuilder().ep({
2995
+ ...commonParams
2996
+ }).m(function(Command, cs, config, o) {
2997
+ return [
2998
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2999
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3000
+ ];
3001
+ }).s("VerifiedPermissions", "IsAuthorized", {}).n("VerifiedPermissionsClient", "IsAuthorizedCommand").f(IsAuthorizedInputFilterSensitiveLog, IsAuthorizedOutputFilterSensitiveLog).ser(se_IsAuthorizedCommand).de(de_IsAuthorizedCommand).build() {
3002
+ };
3003
+ __name(_IsAuthorizedCommand, "IsAuthorizedCommand");
3004
+ var IsAuthorizedCommand = _IsAuthorizedCommand;
3005
+
3006
+ // src/commands/IsAuthorizedWithTokenCommand.ts
3007
+
3008
+
3009
+
3010
+
3011
+ var _IsAuthorizedWithTokenCommand = class _IsAuthorizedWithTokenCommand extends import_smithy_client.Command.classBuilder().ep({
3012
+ ...commonParams
3013
+ }).m(function(Command, cs, config, o) {
3014
+ return [
3015
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3016
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3017
+ ];
3018
+ }).s("VerifiedPermissions", "IsAuthorizedWithToken", {}).n("VerifiedPermissionsClient", "IsAuthorizedWithTokenCommand").f(IsAuthorizedWithTokenInputFilterSensitiveLog, IsAuthorizedWithTokenOutputFilterSensitiveLog).ser(se_IsAuthorizedWithTokenCommand).de(de_IsAuthorizedWithTokenCommand).build() {
3019
+ };
3020
+ __name(_IsAuthorizedWithTokenCommand, "IsAuthorizedWithTokenCommand");
3021
+ var IsAuthorizedWithTokenCommand = _IsAuthorizedWithTokenCommand;
3022
+
3023
+ // src/commands/ListIdentitySourcesCommand.ts
3024
+
3025
+
3026
+
3027
+
3028
+ var _ListIdentitySourcesCommand = class _ListIdentitySourcesCommand extends import_smithy_client.Command.classBuilder().ep({
3029
+ ...commonParams
3030
+ }).m(function(Command, cs, config, o) {
3031
+ return [
3032
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3033
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3034
+ ];
3035
+ }).s("VerifiedPermissions", "ListIdentitySources", {}).n("VerifiedPermissionsClient", "ListIdentitySourcesCommand").f(ListIdentitySourcesInputFilterSensitiveLog, ListIdentitySourcesOutputFilterSensitiveLog).ser(se_ListIdentitySourcesCommand).de(de_ListIdentitySourcesCommand).build() {
3036
+ };
3037
+ __name(_ListIdentitySourcesCommand, "ListIdentitySourcesCommand");
3038
+ var ListIdentitySourcesCommand = _ListIdentitySourcesCommand;
3039
+
3040
+ // src/commands/ListPoliciesCommand.ts
3041
+
3042
+
3043
+
3044
+
3045
+ var _ListPoliciesCommand = class _ListPoliciesCommand extends import_smithy_client.Command.classBuilder().ep({
3046
+ ...commonParams
3047
+ }).m(function(Command, cs, config, o) {
3048
+ return [
3049
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3050
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3051
+ ];
3052
+ }).s("VerifiedPermissions", "ListPolicies", {}).n("VerifiedPermissionsClient", "ListPoliciesCommand").f(ListPoliciesInputFilterSensitiveLog, ListPoliciesOutputFilterSensitiveLog).ser(se_ListPoliciesCommand).de(de_ListPoliciesCommand).build() {
3053
+ };
3054
+ __name(_ListPoliciesCommand, "ListPoliciesCommand");
3055
+ var ListPoliciesCommand = _ListPoliciesCommand;
3056
+
3057
+ // src/commands/ListPolicyStoresCommand.ts
3058
+
3059
+
3060
+
3061
+
3062
+ var _ListPolicyStoresCommand = class _ListPolicyStoresCommand extends import_smithy_client.Command.classBuilder().ep({
3063
+ ...commonParams
3064
+ }).m(function(Command, cs, config, o) {
3065
+ return [
3066
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3067
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3068
+ ];
3069
+ }).s("VerifiedPermissions", "ListPolicyStores", {}).n("VerifiedPermissionsClient", "ListPolicyStoresCommand").f(void 0, ListPolicyStoresOutputFilterSensitiveLog).ser(se_ListPolicyStoresCommand).de(de_ListPolicyStoresCommand).build() {
3070
+ };
3071
+ __name(_ListPolicyStoresCommand, "ListPolicyStoresCommand");
3072
+ var ListPolicyStoresCommand = _ListPolicyStoresCommand;
3073
+
3074
+ // src/commands/ListPolicyTemplatesCommand.ts
3075
+
3076
+
3077
+
3078
+
3079
+ var _ListPolicyTemplatesCommand = class _ListPolicyTemplatesCommand extends import_smithy_client.Command.classBuilder().ep({
3080
+ ...commonParams
3081
+ }).m(function(Command, cs, config, o) {
3082
+ return [
3083
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3084
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3085
+ ];
3086
+ }).s("VerifiedPermissions", "ListPolicyTemplates", {}).n("VerifiedPermissionsClient", "ListPolicyTemplatesCommand").f(void 0, ListPolicyTemplatesOutputFilterSensitiveLog).ser(se_ListPolicyTemplatesCommand).de(de_ListPolicyTemplatesCommand).build() {
3087
+ };
3088
+ __name(_ListPolicyTemplatesCommand, "ListPolicyTemplatesCommand");
3089
+ var ListPolicyTemplatesCommand = _ListPolicyTemplatesCommand;
3090
+
3091
+ // src/commands/PutSchemaCommand.ts
3092
+
3093
+
3094
+
3095
+
3096
+ var _PutSchemaCommand = class _PutSchemaCommand extends import_smithy_client.Command.classBuilder().ep({
3097
+ ...commonParams
3098
+ }).m(function(Command, cs, config, o) {
3099
+ return [
3100
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3101
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3102
+ ];
3103
+ }).s("VerifiedPermissions", "PutSchema", {}).n("VerifiedPermissionsClient", "PutSchemaCommand").f(PutSchemaInputFilterSensitiveLog, PutSchemaOutputFilterSensitiveLog).ser(se_PutSchemaCommand).de(de_PutSchemaCommand).build() {
3104
+ };
3105
+ __name(_PutSchemaCommand, "PutSchemaCommand");
3106
+ var PutSchemaCommand = _PutSchemaCommand;
3107
+
3108
+ // src/commands/UpdateIdentitySourceCommand.ts
3109
+
3110
+
3111
+
3112
+
3113
+ var _UpdateIdentitySourceCommand = class _UpdateIdentitySourceCommand extends import_smithy_client.Command.classBuilder().ep({
3114
+ ...commonParams
3115
+ }).m(function(Command, cs, config, o) {
3116
+ return [
3117
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3118
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3119
+ ];
3120
+ }).s("VerifiedPermissions", "UpdateIdentitySource", {}).n("VerifiedPermissionsClient", "UpdateIdentitySourceCommand").f(UpdateIdentitySourceInputFilterSensitiveLog, void 0).ser(se_UpdateIdentitySourceCommand).de(de_UpdateIdentitySourceCommand).build() {
3121
+ };
3122
+ __name(_UpdateIdentitySourceCommand, "UpdateIdentitySourceCommand");
3123
+ var UpdateIdentitySourceCommand = _UpdateIdentitySourceCommand;
3124
+
3125
+ // src/commands/UpdatePolicyCommand.ts
3126
+
3127
+
3128
+
3129
+
3130
+ var _UpdatePolicyCommand = class _UpdatePolicyCommand extends import_smithy_client.Command.classBuilder().ep({
3131
+ ...commonParams
3132
+ }).m(function(Command, cs, config, o) {
3133
+ return [
3134
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3135
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3136
+ ];
3137
+ }).s("VerifiedPermissions", "UpdatePolicy", {}).n("VerifiedPermissionsClient", "UpdatePolicyCommand").f(UpdatePolicyInputFilterSensitiveLog, UpdatePolicyOutputFilterSensitiveLog).ser(se_UpdatePolicyCommand).de(de_UpdatePolicyCommand).build() {
3138
+ };
3139
+ __name(_UpdatePolicyCommand, "UpdatePolicyCommand");
3140
+ var UpdatePolicyCommand = _UpdatePolicyCommand;
3141
+
3142
+ // src/commands/UpdatePolicyStoreCommand.ts
3143
+
3144
+
3145
+
3146
+
3147
+ var _UpdatePolicyStoreCommand = class _UpdatePolicyStoreCommand extends import_smithy_client.Command.classBuilder().ep({
3148
+ ...commonParams
3149
+ }).m(function(Command, cs, config, o) {
3150
+ return [
3151
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3152
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3153
+ ];
3154
+ }).s("VerifiedPermissions", "UpdatePolicyStore", {}).n("VerifiedPermissionsClient", "UpdatePolicyStoreCommand").f(UpdatePolicyStoreInputFilterSensitiveLog, void 0).ser(se_UpdatePolicyStoreCommand).de(de_UpdatePolicyStoreCommand).build() {
3155
+ };
3156
+ __name(_UpdatePolicyStoreCommand, "UpdatePolicyStoreCommand");
3157
+ var UpdatePolicyStoreCommand = _UpdatePolicyStoreCommand;
3158
+
3159
+ // src/commands/UpdatePolicyTemplateCommand.ts
3160
+
3161
+
3162
+
3163
+
3164
+ var _UpdatePolicyTemplateCommand = class _UpdatePolicyTemplateCommand extends import_smithy_client.Command.classBuilder().ep({
3165
+ ...commonParams
3166
+ }).m(function(Command, cs, config, o) {
3167
+ return [
3168
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3169
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3170
+ ];
3171
+ }).s("VerifiedPermissions", "UpdatePolicyTemplate", {}).n("VerifiedPermissionsClient", "UpdatePolicyTemplateCommand").f(UpdatePolicyTemplateInputFilterSensitiveLog, void 0).ser(se_UpdatePolicyTemplateCommand).de(de_UpdatePolicyTemplateCommand).build() {
3172
+ };
3173
+ __name(_UpdatePolicyTemplateCommand, "UpdatePolicyTemplateCommand");
3174
+ var UpdatePolicyTemplateCommand = _UpdatePolicyTemplateCommand;
3175
+
3176
+ // src/VerifiedPermissions.ts
3177
+ var commands = {
3178
+ BatchIsAuthorizedCommand,
3179
+ CreateIdentitySourceCommand,
3180
+ CreatePolicyCommand,
3181
+ CreatePolicyStoreCommand,
3182
+ CreatePolicyTemplateCommand,
3183
+ DeleteIdentitySourceCommand,
3184
+ DeletePolicyCommand,
3185
+ DeletePolicyStoreCommand,
3186
+ DeletePolicyTemplateCommand,
3187
+ GetIdentitySourceCommand,
3188
+ GetPolicyCommand,
3189
+ GetPolicyStoreCommand,
3190
+ GetPolicyTemplateCommand,
3191
+ GetSchemaCommand,
3192
+ IsAuthorizedCommand,
3193
+ IsAuthorizedWithTokenCommand,
3194
+ ListIdentitySourcesCommand,
3195
+ ListPoliciesCommand,
3196
+ ListPolicyStoresCommand,
3197
+ ListPolicyTemplatesCommand,
3198
+ PutSchemaCommand,
3199
+ UpdateIdentitySourceCommand,
3200
+ UpdatePolicyCommand,
3201
+ UpdatePolicyStoreCommand,
3202
+ UpdatePolicyTemplateCommand
3203
+ };
3204
+ var _VerifiedPermissions = class _VerifiedPermissions extends VerifiedPermissionsClient {
3205
+ };
3206
+ __name(_VerifiedPermissions, "VerifiedPermissions");
3207
+ var VerifiedPermissions = _VerifiedPermissions;
3208
+ (0, import_smithy_client.createAggregatedClient)(commands, VerifiedPermissions);
3209
+
3210
+ // src/pagination/ListIdentitySourcesPaginator.ts
3211
+ var import_core2 = require("@smithy/core");
3212
+ var paginateListIdentitySources = (0, import_core2.createPaginator)(VerifiedPermissionsClient, ListIdentitySourcesCommand, "nextToken", "nextToken", "maxResults");
3213
+
3214
+ // src/pagination/ListPoliciesPaginator.ts
3215
+ var import_core3 = require("@smithy/core");
3216
+ var paginateListPolicies = (0, import_core3.createPaginator)(VerifiedPermissionsClient, ListPoliciesCommand, "nextToken", "nextToken", "maxResults");
3217
+
3218
+ // src/pagination/ListPolicyStoresPaginator.ts
3219
+ var import_core4 = require("@smithy/core");
3220
+ var paginateListPolicyStores = (0, import_core4.createPaginator)(VerifiedPermissionsClient, ListPolicyStoresCommand, "nextToken", "nextToken", "maxResults");
3221
+
3222
+ // src/pagination/ListPolicyTemplatesPaginator.ts
3223
+ var import_core5 = require("@smithy/core");
3224
+ var paginateListPolicyTemplates = (0, import_core5.createPaginator)(VerifiedPermissionsClient, ListPolicyTemplatesCommand, "nextToken", "nextToken", "maxResults");
3225
+
3226
+ // src/index.ts
3227
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3228
+ // Annotate the CommonJS export names for ESM import in node:
3229
+ 0 && (module.exports = {
3230
+ AccessDeniedException,
3231
+ ActionIdentifierFilterSensitiveLog,
3232
+ AttributeValue,
3233
+ AttributeValueFilterSensitiveLog,
3234
+ BatchIsAuthorizedCommand,
3235
+ BatchIsAuthorizedInputFilterSensitiveLog,
3236
+ BatchIsAuthorizedInputItemFilterSensitiveLog,
3237
+ BatchIsAuthorizedOutputFilterSensitiveLog,
3238
+ BatchIsAuthorizedOutputItemFilterSensitiveLog,
3239
+ CognitoUserPoolConfigurationFilterSensitiveLog,
3240
+ Configuration,
3241
+ ConfigurationFilterSensitiveLog,
3242
+ ConflictException,
3243
+ ContextDefinition,
3244
+ ContextDefinitionFilterSensitiveLog,
3245
+ CreateIdentitySourceCommand,
3246
+ CreateIdentitySourceInputFilterSensitiveLog,
3247
+ CreatePolicyCommand,
3248
+ CreatePolicyInputFilterSensitiveLog,
3249
+ CreatePolicyOutputFilterSensitiveLog,
3250
+ CreatePolicyStoreCommand,
3251
+ CreatePolicyStoreInputFilterSensitiveLog,
3252
+ CreatePolicyTemplateCommand,
3253
+ CreatePolicyTemplateInputFilterSensitiveLog,
3254
+ Decision,
3255
+ DeleteIdentitySourceCommand,
3256
+ DeletePolicyCommand,
3257
+ DeletePolicyStoreCommand,
3258
+ DeletePolicyTemplateCommand,
3259
+ EntitiesDefinition,
3260
+ EntitiesDefinitionFilterSensitiveLog,
3261
+ EntityIdentifierFilterSensitiveLog,
3262
+ EntityItemFilterSensitiveLog,
3263
+ EntityReference,
3264
+ EntityReferenceFilterSensitiveLog,
3265
+ EvaluationErrorItemFilterSensitiveLog,
3266
+ GetIdentitySourceCommand,
3267
+ GetIdentitySourceOutputFilterSensitiveLog,
3268
+ GetPolicyCommand,
3269
+ GetPolicyOutputFilterSensitiveLog,
3270
+ GetPolicyStoreCommand,
3271
+ GetPolicyStoreOutputFilterSensitiveLog,
3272
+ GetPolicyTemplateCommand,
3273
+ GetPolicyTemplateOutputFilterSensitiveLog,
3274
+ GetSchemaCommand,
3275
+ GetSchemaOutputFilterSensitiveLog,
3276
+ IdentitySourceDetailsFilterSensitiveLog,
3277
+ IdentitySourceFilterFilterSensitiveLog,
3278
+ IdentitySourceItemDetailsFilterSensitiveLog,
3279
+ IdentitySourceItemFilterSensitiveLog,
3280
+ InternalServerException,
3281
+ IsAuthorizedCommand,
3282
+ IsAuthorizedInputFilterSensitiveLog,
3283
+ IsAuthorizedOutputFilterSensitiveLog,
3284
+ IsAuthorizedWithTokenCommand,
3285
+ IsAuthorizedWithTokenInputFilterSensitiveLog,
3286
+ IsAuthorizedWithTokenOutputFilterSensitiveLog,
3287
+ ListIdentitySourcesCommand,
3288
+ ListIdentitySourcesInputFilterSensitiveLog,
3289
+ ListIdentitySourcesOutputFilterSensitiveLog,
3290
+ ListPoliciesCommand,
3291
+ ListPoliciesInputFilterSensitiveLog,
3292
+ ListPoliciesOutputFilterSensitiveLog,
3293
+ ListPolicyStoresCommand,
3294
+ ListPolicyStoresOutputFilterSensitiveLog,
3295
+ ListPolicyTemplatesCommand,
3296
+ ListPolicyTemplatesOutputFilterSensitiveLog,
3297
+ OpenIdIssuer,
3298
+ PolicyDefinition,
3299
+ PolicyDefinitionDetail,
3300
+ PolicyDefinitionDetailFilterSensitiveLog,
3301
+ PolicyDefinitionFilterSensitiveLog,
3302
+ PolicyDefinitionItem,
3303
+ PolicyDefinitionItemFilterSensitiveLog,
3304
+ PolicyFilterFilterSensitiveLog,
3305
+ PolicyItemFilterSensitiveLog,
3306
+ PolicyStoreItemFilterSensitiveLog,
3307
+ PolicyTemplateItemFilterSensitiveLog,
3308
+ PolicyType,
3309
+ PutSchemaCommand,
3310
+ PutSchemaInputFilterSensitiveLog,
3311
+ PutSchemaOutputFilterSensitiveLog,
3312
+ ResourceNotFoundException,
3313
+ ResourceType,
3314
+ SchemaDefinition,
3315
+ SchemaDefinitionFilterSensitiveLog,
3316
+ ServiceQuotaExceededException,
3317
+ StaticPolicyDefinitionDetailFilterSensitiveLog,
3318
+ StaticPolicyDefinitionFilterSensitiveLog,
3319
+ StaticPolicyDefinitionItemFilterSensitiveLog,
3320
+ TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog,
3321
+ TemplateLinkedPolicyDefinitionFilterSensitiveLog,
3322
+ TemplateLinkedPolicyDefinitionItemFilterSensitiveLog,
3323
+ ThrottlingException,
3324
+ UpdateCognitoUserPoolConfigurationFilterSensitiveLog,
3325
+ UpdateConfiguration,
3326
+ UpdateConfigurationFilterSensitiveLog,
3327
+ UpdateIdentitySourceCommand,
3328
+ UpdateIdentitySourceInputFilterSensitiveLog,
3329
+ UpdatePolicyCommand,
3330
+ UpdatePolicyDefinition,
3331
+ UpdatePolicyDefinitionFilterSensitiveLog,
3332
+ UpdatePolicyInputFilterSensitiveLog,
3333
+ UpdatePolicyOutputFilterSensitiveLog,
3334
+ UpdatePolicyStoreCommand,
3335
+ UpdatePolicyStoreInputFilterSensitiveLog,
3336
+ UpdatePolicyTemplateCommand,
3337
+ UpdatePolicyTemplateInputFilterSensitiveLog,
3338
+ UpdateStaticPolicyDefinitionFilterSensitiveLog,
3339
+ ValidationException,
3340
+ ValidationMode,
3341
+ VerifiedPermissions,
3342
+ VerifiedPermissionsClient,
3343
+ VerifiedPermissionsServiceException,
3344
+ __Client,
3345
+ paginateListIdentitySources,
3346
+ paginateListPolicies,
3347
+ paginateListPolicyStores,
3348
+ paginateListPolicyTemplates
3349
+ });