@aws-sdk/client-verifiedpermissions 3.926.0 → 3.928.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.
- package/dist-cjs/index.js +1739 -2225
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/VerifiedPermissionsClient.js +2 -0
- package/dist-es/commands/BatchGetPolicyCommand.js +3 -10
- package/dist-es/commands/BatchIsAuthorizedCommand.js +3 -10
- package/dist-es/commands/BatchIsAuthorizedWithTokenCommand.js +3 -10
- package/dist-es/commands/CreateIdentitySourceCommand.js +3 -10
- package/dist-es/commands/CreatePolicyCommand.js +3 -10
- package/dist-es/commands/CreatePolicyStoreCommand.js +3 -10
- package/dist-es/commands/CreatePolicyTemplateCommand.js +3 -10
- package/dist-es/commands/DeleteIdentitySourceCommand.js +3 -9
- package/dist-es/commands/DeletePolicyCommand.js +3 -9
- package/dist-es/commands/DeletePolicyStoreCommand.js +3 -9
- package/dist-es/commands/DeletePolicyTemplateCommand.js +3 -9
- package/dist-es/commands/GetIdentitySourceCommand.js +3 -10
- package/dist-es/commands/GetPolicyCommand.js +3 -10
- package/dist-es/commands/GetPolicyStoreCommand.js +3 -10
- package/dist-es/commands/GetPolicyTemplateCommand.js +3 -10
- package/dist-es/commands/GetSchemaCommand.js +3 -10
- package/dist-es/commands/IsAuthorizedCommand.js +3 -10
- package/dist-es/commands/IsAuthorizedWithTokenCommand.js +3 -10
- package/dist-es/commands/ListIdentitySourcesCommand.js +3 -10
- package/dist-es/commands/ListPoliciesCommand.js +3 -10
- package/dist-es/commands/ListPolicyStoresCommand.js +3 -10
- package/dist-es/commands/ListPolicyTemplatesCommand.js +3 -10
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/PutSchemaCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateIdentitySourceCommand.js +3 -10
- package/dist-es/commands/UpdatePolicyCommand.js +3 -10
- package/dist-es/commands/UpdatePolicyStoreCommand.js +3 -10
- package/dist-es/commands/UpdatePolicyTemplateCommand.js +3 -10
- package/dist-es/models/models_0.js +26 -593
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1628 -0
- package/dist-types/VerifiedPermissionsClient.d.ts +10 -1
- package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +33 -0
- package/dist-types/commands/BatchIsAuthorizedWithTokenCommand.d.ts +33 -0
- package/dist-types/commands/IsAuthorizedCommand.d.ts +33 -0
- package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +33 -0
- package/dist-types/models/models_0.d.ts +268 -441
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +229 -0
- package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +184 -297
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +236 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -1303
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -272
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -365
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { VerifiedPermissionsServiceException as __BaseException } from "./VerifiedPermissionsServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -334,6 +333,32 @@ export var AttributeValue;
|
|
|
334
333
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
335
334
|
};
|
|
336
335
|
})(AttributeValue || (AttributeValue = {}));
|
|
336
|
+
export var CedarTagValue;
|
|
337
|
+
(function (CedarTagValue) {
|
|
338
|
+
CedarTagValue.visit = (value, visitor) => {
|
|
339
|
+
if (value.boolean !== undefined)
|
|
340
|
+
return visitor.boolean(value.boolean);
|
|
341
|
+
if (value.entityIdentifier !== undefined)
|
|
342
|
+
return visitor.entityIdentifier(value.entityIdentifier);
|
|
343
|
+
if (value.long !== undefined)
|
|
344
|
+
return visitor.long(value.long);
|
|
345
|
+
if (value.string !== undefined)
|
|
346
|
+
return visitor.string(value.string);
|
|
347
|
+
if (value.set !== undefined)
|
|
348
|
+
return visitor.set(value.set);
|
|
349
|
+
if (value.record !== undefined)
|
|
350
|
+
return visitor.record(value.record);
|
|
351
|
+
if (value.ipaddr !== undefined)
|
|
352
|
+
return visitor.ipaddr(value.ipaddr);
|
|
353
|
+
if (value.decimal !== undefined)
|
|
354
|
+
return visitor.decimal(value.decimal);
|
|
355
|
+
if (value.datetime !== undefined)
|
|
356
|
+
return visitor.datetime(value.datetime);
|
|
357
|
+
if (value.duration !== undefined)
|
|
358
|
+
return visitor.duration(value.duration);
|
|
359
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
360
|
+
};
|
|
361
|
+
})(CedarTagValue || (CedarTagValue = {}));
|
|
337
362
|
export var ContextDefinition;
|
|
338
363
|
(function (ContextDefinition) {
|
|
339
364
|
ContextDefinition.visit = (value, visitor) => {
|
|
@@ -354,595 +379,3 @@ export var EntitiesDefinition;
|
|
|
354
379
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
355
380
|
};
|
|
356
381
|
})(EntitiesDefinition || (EntitiesDefinition = {}));
|
|
357
|
-
export const ActionIdentifierFilterSensitiveLog = (obj) => ({
|
|
358
|
-
...obj,
|
|
359
|
-
...(obj.actionType && { actionType: SENSITIVE_STRING }),
|
|
360
|
-
...(obj.actionId && { actionId: SENSITIVE_STRING }),
|
|
361
|
-
});
|
|
362
|
-
export const EntityIdentifierFilterSensitiveLog = (obj) => ({
|
|
363
|
-
...obj,
|
|
364
|
-
...(obj.entityType && { entityType: SENSITIVE_STRING }),
|
|
365
|
-
...(obj.entityId && { entityId: SENSITIVE_STRING }),
|
|
366
|
-
});
|
|
367
|
-
export const StaticPolicyDefinitionDetailFilterSensitiveLog = (obj) => ({
|
|
368
|
-
...obj,
|
|
369
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
370
|
-
...(obj.statement && { statement: SENSITIVE_STRING }),
|
|
371
|
-
});
|
|
372
|
-
export const TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog = (obj) => ({
|
|
373
|
-
...obj,
|
|
374
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
375
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
376
|
-
});
|
|
377
|
-
export const PolicyDefinitionDetailFilterSensitiveLog = (obj) => {
|
|
378
|
-
if (obj.static !== undefined)
|
|
379
|
-
return { static: StaticPolicyDefinitionDetailFilterSensitiveLog(obj.static) };
|
|
380
|
-
if (obj.templateLinked !== undefined)
|
|
381
|
-
return { templateLinked: TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog(obj.templateLinked) };
|
|
382
|
-
if (obj.$unknown !== undefined)
|
|
383
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
384
|
-
};
|
|
385
|
-
export const BatchGetPolicyOutputItemFilterSensitiveLog = (obj) => ({
|
|
386
|
-
...obj,
|
|
387
|
-
...(obj.definition && { definition: PolicyDefinitionDetailFilterSensitiveLog(obj.definition) }),
|
|
388
|
-
});
|
|
389
|
-
export const BatchGetPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
390
|
-
...obj,
|
|
391
|
-
...(obj.results && { results: obj.results.map((item) => BatchGetPolicyOutputItemFilterSensitiveLog(item)) }),
|
|
392
|
-
});
|
|
393
|
-
export const EvaluationErrorItemFilterSensitiveLog = (obj) => ({
|
|
394
|
-
...obj,
|
|
395
|
-
});
|
|
396
|
-
export const CognitoGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
397
|
-
...obj,
|
|
398
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
399
|
-
});
|
|
400
|
-
export const CognitoGroupConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
401
|
-
...obj,
|
|
402
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
403
|
-
});
|
|
404
|
-
export const CognitoGroupConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
405
|
-
...obj,
|
|
406
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
407
|
-
});
|
|
408
|
-
export const CognitoUserPoolConfigurationFilterSensitiveLog = (obj) => ({
|
|
409
|
-
...obj,
|
|
410
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
411
|
-
...(obj.groupConfiguration && {
|
|
412
|
-
groupConfiguration: CognitoGroupConfigurationFilterSensitiveLog(obj.groupConfiguration),
|
|
413
|
-
}),
|
|
414
|
-
});
|
|
415
|
-
export const CognitoUserPoolConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
416
|
-
...obj,
|
|
417
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
418
|
-
...(obj.groupConfiguration && {
|
|
419
|
-
groupConfiguration: CognitoGroupConfigurationDetailFilterSensitiveLog(obj.groupConfiguration),
|
|
420
|
-
}),
|
|
421
|
-
});
|
|
422
|
-
export const CognitoUserPoolConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
423
|
-
...obj,
|
|
424
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
425
|
-
...(obj.groupConfiguration && {
|
|
426
|
-
groupConfiguration: CognitoGroupConfigurationItemFilterSensitiveLog(obj.groupConfiguration),
|
|
427
|
-
}),
|
|
428
|
-
});
|
|
429
|
-
export const OpenIdConnectGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
430
|
-
...obj,
|
|
431
|
-
...(obj.groupClaim && { groupClaim: SENSITIVE_STRING }),
|
|
432
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
433
|
-
});
|
|
434
|
-
export const OpenIdConnectAccessTokenConfigurationFilterSensitiveLog = (obj) => ({
|
|
435
|
-
...obj,
|
|
436
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
437
|
-
});
|
|
438
|
-
export const OpenIdConnectIdentityTokenConfigurationFilterSensitiveLog = (obj) => ({
|
|
439
|
-
...obj,
|
|
440
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
441
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
442
|
-
});
|
|
443
|
-
export const OpenIdConnectTokenSelectionFilterSensitiveLog = (obj) => {
|
|
444
|
-
if (obj.accessTokenOnly !== undefined)
|
|
445
|
-
return { accessTokenOnly: OpenIdConnectAccessTokenConfigurationFilterSensitiveLog(obj.accessTokenOnly) };
|
|
446
|
-
if (obj.identityTokenOnly !== undefined)
|
|
447
|
-
return { identityTokenOnly: OpenIdConnectIdentityTokenConfigurationFilterSensitiveLog(obj.identityTokenOnly) };
|
|
448
|
-
if (obj.$unknown !== undefined)
|
|
449
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
450
|
-
};
|
|
451
|
-
export const OpenIdConnectConfigurationFilterSensitiveLog = (obj) => ({
|
|
452
|
-
...obj,
|
|
453
|
-
...(obj.entityIdPrefix && { entityIdPrefix: SENSITIVE_STRING }),
|
|
454
|
-
...(obj.groupConfiguration && {
|
|
455
|
-
groupConfiguration: OpenIdConnectGroupConfigurationFilterSensitiveLog(obj.groupConfiguration),
|
|
456
|
-
}),
|
|
457
|
-
...(obj.tokenSelection && { tokenSelection: OpenIdConnectTokenSelectionFilterSensitiveLog(obj.tokenSelection) }),
|
|
458
|
-
});
|
|
459
|
-
export const ConfigurationFilterSensitiveLog = (obj) => {
|
|
460
|
-
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
461
|
-
return {
|
|
462
|
-
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationFilterSensitiveLog(obj.cognitoUserPoolConfiguration),
|
|
463
|
-
};
|
|
464
|
-
if (obj.openIdConnectConfiguration !== undefined)
|
|
465
|
-
return { openIdConnectConfiguration: OpenIdConnectConfigurationFilterSensitiveLog(obj.openIdConnectConfiguration) };
|
|
466
|
-
if (obj.$unknown !== undefined)
|
|
467
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
468
|
-
};
|
|
469
|
-
export const OpenIdConnectGroupConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
470
|
-
...obj,
|
|
471
|
-
...(obj.groupClaim && { groupClaim: SENSITIVE_STRING }),
|
|
472
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
473
|
-
});
|
|
474
|
-
export const OpenIdConnectAccessTokenConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
475
|
-
...obj,
|
|
476
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
477
|
-
});
|
|
478
|
-
export const OpenIdConnectIdentityTokenConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
479
|
-
...obj,
|
|
480
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
481
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
482
|
-
});
|
|
483
|
-
export const OpenIdConnectTokenSelectionDetailFilterSensitiveLog = (obj) => {
|
|
484
|
-
if (obj.accessTokenOnly !== undefined)
|
|
485
|
-
return { accessTokenOnly: OpenIdConnectAccessTokenConfigurationDetailFilterSensitiveLog(obj.accessTokenOnly) };
|
|
486
|
-
if (obj.identityTokenOnly !== undefined)
|
|
487
|
-
return {
|
|
488
|
-
identityTokenOnly: OpenIdConnectIdentityTokenConfigurationDetailFilterSensitiveLog(obj.identityTokenOnly),
|
|
489
|
-
};
|
|
490
|
-
if (obj.$unknown !== undefined)
|
|
491
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
492
|
-
};
|
|
493
|
-
export const OpenIdConnectConfigurationDetailFilterSensitiveLog = (obj) => ({
|
|
494
|
-
...obj,
|
|
495
|
-
...(obj.entityIdPrefix && { entityIdPrefix: SENSITIVE_STRING }),
|
|
496
|
-
...(obj.groupConfiguration && {
|
|
497
|
-
groupConfiguration: OpenIdConnectGroupConfigurationDetailFilterSensitiveLog(obj.groupConfiguration),
|
|
498
|
-
}),
|
|
499
|
-
...(obj.tokenSelection && {
|
|
500
|
-
tokenSelection: OpenIdConnectTokenSelectionDetailFilterSensitiveLog(obj.tokenSelection),
|
|
501
|
-
}),
|
|
502
|
-
});
|
|
503
|
-
export const ConfigurationDetailFilterSensitiveLog = (obj) => {
|
|
504
|
-
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
505
|
-
return {
|
|
506
|
-
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationDetailFilterSensitiveLog(obj.cognitoUserPoolConfiguration),
|
|
507
|
-
};
|
|
508
|
-
if (obj.openIdConnectConfiguration !== undefined)
|
|
509
|
-
return {
|
|
510
|
-
openIdConnectConfiguration: OpenIdConnectConfigurationDetailFilterSensitiveLog(obj.openIdConnectConfiguration),
|
|
511
|
-
};
|
|
512
|
-
if (obj.$unknown !== undefined)
|
|
513
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
514
|
-
};
|
|
515
|
-
export const OpenIdConnectGroupConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
516
|
-
...obj,
|
|
517
|
-
...(obj.groupClaim && { groupClaim: SENSITIVE_STRING }),
|
|
518
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
519
|
-
});
|
|
520
|
-
export const OpenIdConnectAccessTokenConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
521
|
-
...obj,
|
|
522
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
523
|
-
});
|
|
524
|
-
export const OpenIdConnectIdentityTokenConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
525
|
-
...obj,
|
|
526
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
527
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
528
|
-
});
|
|
529
|
-
export const OpenIdConnectTokenSelectionItemFilterSensitiveLog = (obj) => {
|
|
530
|
-
if (obj.accessTokenOnly !== undefined)
|
|
531
|
-
return { accessTokenOnly: OpenIdConnectAccessTokenConfigurationItemFilterSensitiveLog(obj.accessTokenOnly) };
|
|
532
|
-
if (obj.identityTokenOnly !== undefined)
|
|
533
|
-
return { identityTokenOnly: OpenIdConnectIdentityTokenConfigurationItemFilterSensitiveLog(obj.identityTokenOnly) };
|
|
534
|
-
if (obj.$unknown !== undefined)
|
|
535
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
536
|
-
};
|
|
537
|
-
export const OpenIdConnectConfigurationItemFilterSensitiveLog = (obj) => ({
|
|
538
|
-
...obj,
|
|
539
|
-
...(obj.entityIdPrefix && { entityIdPrefix: SENSITIVE_STRING }),
|
|
540
|
-
...(obj.groupConfiguration && {
|
|
541
|
-
groupConfiguration: OpenIdConnectGroupConfigurationItemFilterSensitiveLog(obj.groupConfiguration),
|
|
542
|
-
}),
|
|
543
|
-
...(obj.tokenSelection && { tokenSelection: OpenIdConnectTokenSelectionItemFilterSensitiveLog(obj.tokenSelection) }),
|
|
544
|
-
});
|
|
545
|
-
export const ConfigurationItemFilterSensitiveLog = (obj) => {
|
|
546
|
-
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
547
|
-
return {
|
|
548
|
-
cognitoUserPoolConfiguration: CognitoUserPoolConfigurationItemFilterSensitiveLog(obj.cognitoUserPoolConfiguration),
|
|
549
|
-
};
|
|
550
|
-
if (obj.openIdConnectConfiguration !== undefined)
|
|
551
|
-
return {
|
|
552
|
-
openIdConnectConfiguration: OpenIdConnectConfigurationItemFilterSensitiveLog(obj.openIdConnectConfiguration),
|
|
553
|
-
};
|
|
554
|
-
if (obj.$unknown !== undefined)
|
|
555
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
556
|
-
};
|
|
557
|
-
export const CreateIdentitySourceInputFilterSensitiveLog = (obj) => ({
|
|
558
|
-
...obj,
|
|
559
|
-
...(obj.configuration && { configuration: ConfigurationFilterSensitiveLog(obj.configuration) }),
|
|
560
|
-
...(obj.principalEntityType && { principalEntityType: SENSITIVE_STRING }),
|
|
561
|
-
});
|
|
562
|
-
export const StaticPolicyDefinitionFilterSensitiveLog = (obj) => ({
|
|
563
|
-
...obj,
|
|
564
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
565
|
-
...(obj.statement && { statement: SENSITIVE_STRING }),
|
|
566
|
-
});
|
|
567
|
-
export const TemplateLinkedPolicyDefinitionFilterSensitiveLog = (obj) => ({
|
|
568
|
-
...obj,
|
|
569
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
570
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
571
|
-
});
|
|
572
|
-
export const PolicyDefinitionFilterSensitiveLog = (obj) => {
|
|
573
|
-
if (obj.static !== undefined)
|
|
574
|
-
return { static: StaticPolicyDefinitionFilterSensitiveLog(obj.static) };
|
|
575
|
-
if (obj.templateLinked !== undefined)
|
|
576
|
-
return { templateLinked: TemplateLinkedPolicyDefinitionFilterSensitiveLog(obj.templateLinked) };
|
|
577
|
-
if (obj.$unknown !== undefined)
|
|
578
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
579
|
-
};
|
|
580
|
-
export const CreatePolicyInputFilterSensitiveLog = (obj) => ({
|
|
581
|
-
...obj,
|
|
582
|
-
...(obj.definition && { definition: PolicyDefinitionFilterSensitiveLog(obj.definition) }),
|
|
583
|
-
});
|
|
584
|
-
export const CreatePolicyOutputFilterSensitiveLog = (obj) => ({
|
|
585
|
-
...obj,
|
|
586
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
587
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
588
|
-
...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
|
|
589
|
-
});
|
|
590
|
-
export const CreatePolicyStoreInputFilterSensitiveLog = (obj) => ({
|
|
591
|
-
...obj,
|
|
592
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
593
|
-
});
|
|
594
|
-
export const CreatePolicyTemplateInputFilterSensitiveLog = (obj) => ({
|
|
595
|
-
...obj,
|
|
596
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
597
|
-
...(obj.statement && { statement: SENSITIVE_STRING }),
|
|
598
|
-
});
|
|
599
|
-
export const EntityReferenceFilterSensitiveLog = (obj) => {
|
|
600
|
-
if (obj.unspecified !== undefined)
|
|
601
|
-
return { unspecified: obj.unspecified };
|
|
602
|
-
if (obj.identifier !== undefined)
|
|
603
|
-
return { identifier: EntityIdentifierFilterSensitiveLog(obj.identifier) };
|
|
604
|
-
if (obj.$unknown !== undefined)
|
|
605
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
606
|
-
};
|
|
607
|
-
export const IdentitySourceDetailsFilterSensitiveLog = (obj) => ({
|
|
608
|
-
...obj,
|
|
609
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
610
|
-
});
|
|
611
|
-
export const GetIdentitySourceOutputFilterSensitiveLog = (obj) => ({
|
|
612
|
-
...obj,
|
|
613
|
-
...(obj.details && { details: IdentitySourceDetailsFilterSensitiveLog(obj.details) }),
|
|
614
|
-
...(obj.principalEntityType && { principalEntityType: SENSITIVE_STRING }),
|
|
615
|
-
...(obj.configuration && { configuration: ConfigurationDetailFilterSensitiveLog(obj.configuration) }),
|
|
616
|
-
});
|
|
617
|
-
export const GetPolicyOutputFilterSensitiveLog = (obj) => ({
|
|
618
|
-
...obj,
|
|
619
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
620
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
621
|
-
...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
|
|
622
|
-
...(obj.definition && { definition: PolicyDefinitionDetailFilterSensitiveLog(obj.definition) }),
|
|
623
|
-
});
|
|
624
|
-
export const GetPolicyStoreOutputFilterSensitiveLog = (obj) => ({
|
|
625
|
-
...obj,
|
|
626
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
627
|
-
});
|
|
628
|
-
export const GetPolicyTemplateOutputFilterSensitiveLog = (obj) => ({
|
|
629
|
-
...obj,
|
|
630
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
631
|
-
...(obj.statement && { statement: SENSITIVE_STRING }),
|
|
632
|
-
});
|
|
633
|
-
export const GetSchemaOutputFilterSensitiveLog = (obj) => ({
|
|
634
|
-
...obj,
|
|
635
|
-
...(obj.schema && { schema: SENSITIVE_STRING }),
|
|
636
|
-
...(obj.namespaces && { namespaces: SENSITIVE_STRING }),
|
|
637
|
-
});
|
|
638
|
-
export const IdentitySourceFilterFilterSensitiveLog = (obj) => ({
|
|
639
|
-
...obj,
|
|
640
|
-
...(obj.principalEntityType && { principalEntityType: SENSITIVE_STRING }),
|
|
641
|
-
});
|
|
642
|
-
export const ListIdentitySourcesInputFilterSensitiveLog = (obj) => ({
|
|
643
|
-
...obj,
|
|
644
|
-
...(obj.filters && { filters: obj.filters.map((item) => IdentitySourceFilterFilterSensitiveLog(item)) }),
|
|
645
|
-
});
|
|
646
|
-
export const IdentitySourceItemDetailsFilterSensitiveLog = (obj) => ({
|
|
647
|
-
...obj,
|
|
648
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
649
|
-
});
|
|
650
|
-
export const IdentitySourceItemFilterSensitiveLog = (obj) => ({
|
|
651
|
-
...obj,
|
|
652
|
-
...(obj.details && { details: IdentitySourceItemDetailsFilterSensitiveLog(obj.details) }),
|
|
653
|
-
...(obj.principalEntityType && { principalEntityType: SENSITIVE_STRING }),
|
|
654
|
-
...(obj.configuration && { configuration: ConfigurationItemFilterSensitiveLog(obj.configuration) }),
|
|
655
|
-
});
|
|
656
|
-
export const ListIdentitySourcesOutputFilterSensitiveLog = (obj) => ({
|
|
657
|
-
...obj,
|
|
658
|
-
...(obj.identitySources && {
|
|
659
|
-
identitySources: obj.identitySources.map((item) => IdentitySourceItemFilterSensitiveLog(item)),
|
|
660
|
-
}),
|
|
661
|
-
});
|
|
662
|
-
export const UpdateCognitoGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
663
|
-
...obj,
|
|
664
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
665
|
-
});
|
|
666
|
-
export const UpdateCognitoUserPoolConfigurationFilterSensitiveLog = (obj) => ({
|
|
667
|
-
...obj,
|
|
668
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
669
|
-
...(obj.groupConfiguration && {
|
|
670
|
-
groupConfiguration: UpdateCognitoGroupConfigurationFilterSensitiveLog(obj.groupConfiguration),
|
|
671
|
-
}),
|
|
672
|
-
});
|
|
673
|
-
export const UpdateOpenIdConnectGroupConfigurationFilterSensitiveLog = (obj) => ({
|
|
674
|
-
...obj,
|
|
675
|
-
...(obj.groupClaim && { groupClaim: SENSITIVE_STRING }),
|
|
676
|
-
...(obj.groupEntityType && { groupEntityType: SENSITIVE_STRING }),
|
|
677
|
-
});
|
|
678
|
-
export const UpdateOpenIdConnectAccessTokenConfigurationFilterSensitiveLog = (obj) => ({
|
|
679
|
-
...obj,
|
|
680
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
681
|
-
});
|
|
682
|
-
export const UpdateOpenIdConnectIdentityTokenConfigurationFilterSensitiveLog = (obj) => ({
|
|
683
|
-
...obj,
|
|
684
|
-
...(obj.principalIdClaim && { principalIdClaim: SENSITIVE_STRING }),
|
|
685
|
-
...(obj.clientIds && { clientIds: SENSITIVE_STRING }),
|
|
686
|
-
});
|
|
687
|
-
export const UpdateOpenIdConnectTokenSelectionFilterSensitiveLog = (obj) => {
|
|
688
|
-
if (obj.accessTokenOnly !== undefined)
|
|
689
|
-
return { accessTokenOnly: UpdateOpenIdConnectAccessTokenConfigurationFilterSensitiveLog(obj.accessTokenOnly) };
|
|
690
|
-
if (obj.identityTokenOnly !== undefined)
|
|
691
|
-
return {
|
|
692
|
-
identityTokenOnly: UpdateOpenIdConnectIdentityTokenConfigurationFilterSensitiveLog(obj.identityTokenOnly),
|
|
693
|
-
};
|
|
694
|
-
if (obj.$unknown !== undefined)
|
|
695
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
696
|
-
};
|
|
697
|
-
export const UpdateOpenIdConnectConfigurationFilterSensitiveLog = (obj) => ({
|
|
698
|
-
...obj,
|
|
699
|
-
...(obj.entityIdPrefix && { entityIdPrefix: SENSITIVE_STRING }),
|
|
700
|
-
...(obj.groupConfiguration && {
|
|
701
|
-
groupConfiguration: UpdateOpenIdConnectGroupConfigurationFilterSensitiveLog(obj.groupConfiguration),
|
|
702
|
-
}),
|
|
703
|
-
...(obj.tokenSelection && {
|
|
704
|
-
tokenSelection: UpdateOpenIdConnectTokenSelectionFilterSensitiveLog(obj.tokenSelection),
|
|
705
|
-
}),
|
|
706
|
-
});
|
|
707
|
-
export const UpdateConfigurationFilterSensitiveLog = (obj) => {
|
|
708
|
-
if (obj.cognitoUserPoolConfiguration !== undefined)
|
|
709
|
-
return {
|
|
710
|
-
cognitoUserPoolConfiguration: UpdateCognitoUserPoolConfigurationFilterSensitiveLog(obj.cognitoUserPoolConfiguration),
|
|
711
|
-
};
|
|
712
|
-
if (obj.openIdConnectConfiguration !== undefined)
|
|
713
|
-
return {
|
|
714
|
-
openIdConnectConfiguration: UpdateOpenIdConnectConfigurationFilterSensitiveLog(obj.openIdConnectConfiguration),
|
|
715
|
-
};
|
|
716
|
-
if (obj.$unknown !== undefined)
|
|
717
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
718
|
-
};
|
|
719
|
-
export const UpdateIdentitySourceInputFilterSensitiveLog = (obj) => ({
|
|
720
|
-
...obj,
|
|
721
|
-
...(obj.updateConfiguration && {
|
|
722
|
-
updateConfiguration: UpdateConfigurationFilterSensitiveLog(obj.updateConfiguration),
|
|
723
|
-
}),
|
|
724
|
-
...(obj.principalEntityType && { principalEntityType: SENSITIVE_STRING }),
|
|
725
|
-
});
|
|
726
|
-
export const IsAuthorizedOutputFilterSensitiveLog = (obj) => ({
|
|
727
|
-
...obj,
|
|
728
|
-
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
729
|
-
});
|
|
730
|
-
export const IsAuthorizedWithTokenOutputFilterSensitiveLog = (obj) => ({
|
|
731
|
-
...obj,
|
|
732
|
-
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
733
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
734
|
-
});
|
|
735
|
-
export const PolicyFilterFilterSensitiveLog = (obj) => ({
|
|
736
|
-
...obj,
|
|
737
|
-
...(obj.principal && { principal: EntityReferenceFilterSensitiveLog(obj.principal) }),
|
|
738
|
-
...(obj.resource && { resource: EntityReferenceFilterSensitiveLog(obj.resource) }),
|
|
739
|
-
});
|
|
740
|
-
export const ListPoliciesInputFilterSensitiveLog = (obj) => ({
|
|
741
|
-
...obj,
|
|
742
|
-
...(obj.filter && { filter: PolicyFilterFilterSensitiveLog(obj.filter) }),
|
|
743
|
-
});
|
|
744
|
-
export const StaticPolicyDefinitionItemFilterSensitiveLog = (obj) => ({
|
|
745
|
-
...obj,
|
|
746
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
747
|
-
});
|
|
748
|
-
export const TemplateLinkedPolicyDefinitionItemFilterSensitiveLog = (obj) => ({
|
|
749
|
-
...obj,
|
|
750
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
751
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
752
|
-
});
|
|
753
|
-
export const PolicyDefinitionItemFilterSensitiveLog = (obj) => {
|
|
754
|
-
if (obj.static !== undefined)
|
|
755
|
-
return { static: StaticPolicyDefinitionItemFilterSensitiveLog(obj.static) };
|
|
756
|
-
if (obj.templateLinked !== undefined)
|
|
757
|
-
return { templateLinked: TemplateLinkedPolicyDefinitionItemFilterSensitiveLog(obj.templateLinked) };
|
|
758
|
-
if (obj.$unknown !== undefined)
|
|
759
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
760
|
-
};
|
|
761
|
-
export const PolicyItemFilterSensitiveLog = (obj) => ({
|
|
762
|
-
...obj,
|
|
763
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
764
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
765
|
-
...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
|
|
766
|
-
...(obj.definition && { definition: PolicyDefinitionItemFilterSensitiveLog(obj.definition) }),
|
|
767
|
-
});
|
|
768
|
-
export const ListPoliciesOutputFilterSensitiveLog = (obj) => ({
|
|
769
|
-
...obj,
|
|
770
|
-
...(obj.policies && { policies: obj.policies.map((item) => PolicyItemFilterSensitiveLog(item)) }),
|
|
771
|
-
});
|
|
772
|
-
export const PolicyStoreItemFilterSensitiveLog = (obj) => ({
|
|
773
|
-
...obj,
|
|
774
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
775
|
-
});
|
|
776
|
-
export const ListPolicyStoresOutputFilterSensitiveLog = (obj) => ({
|
|
777
|
-
...obj,
|
|
778
|
-
...(obj.policyStores && { policyStores: obj.policyStores.map((item) => PolicyStoreItemFilterSensitiveLog(item)) }),
|
|
779
|
-
});
|
|
780
|
-
export const PolicyTemplateItemFilterSensitiveLog = (obj) => ({
|
|
781
|
-
...obj,
|
|
782
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
783
|
-
});
|
|
784
|
-
export const ListPolicyTemplatesOutputFilterSensitiveLog = (obj) => ({
|
|
785
|
-
...obj,
|
|
786
|
-
...(obj.policyTemplates && {
|
|
787
|
-
policyTemplates: obj.policyTemplates.map((item) => PolicyTemplateItemFilterSensitiveLog(item)),
|
|
788
|
-
}),
|
|
789
|
-
});
|
|
790
|
-
export const UpdateStaticPolicyDefinitionFilterSensitiveLog = (obj) => ({
|
|
791
|
-
...obj,
|
|
792
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
793
|
-
...(obj.statement && { statement: SENSITIVE_STRING }),
|
|
794
|
-
});
|
|
795
|
-
export const UpdatePolicyDefinitionFilterSensitiveLog = (obj) => {
|
|
796
|
-
if (obj.static !== undefined)
|
|
797
|
-
return { static: UpdateStaticPolicyDefinitionFilterSensitiveLog(obj.static) };
|
|
798
|
-
if (obj.$unknown !== undefined)
|
|
799
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
800
|
-
};
|
|
801
|
-
export const UpdatePolicyInputFilterSensitiveLog = (obj) => ({
|
|
802
|
-
...obj,
|
|
803
|
-
...(obj.definition && { definition: UpdatePolicyDefinitionFilterSensitiveLog(obj.definition) }),
|
|
804
|
-
});
|
|
805
|
-
export const UpdatePolicyOutputFilterSensitiveLog = (obj) => ({
|
|
806
|
-
...obj,
|
|
807
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
808
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
809
|
-
...(obj.actions && { actions: obj.actions.map((item) => ActionIdentifierFilterSensitiveLog(item)) }),
|
|
810
|
-
});
|
|
811
|
-
export const UpdatePolicyTemplateInputFilterSensitiveLog = (obj) => ({
|
|
812
|
-
...obj,
|
|
813
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
814
|
-
...(obj.statement && { statement: SENSITIVE_STRING }),
|
|
815
|
-
});
|
|
816
|
-
export const SchemaDefinitionFilterSensitiveLog = (obj) => {
|
|
817
|
-
if (obj.cedarJson !== undefined)
|
|
818
|
-
return { cedarJson: SENSITIVE_STRING };
|
|
819
|
-
if (obj.$unknown !== undefined)
|
|
820
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
821
|
-
};
|
|
822
|
-
export const PutSchemaInputFilterSensitiveLog = (obj) => ({
|
|
823
|
-
...obj,
|
|
824
|
-
...(obj.definition && { definition: SchemaDefinitionFilterSensitiveLog(obj.definition) }),
|
|
825
|
-
});
|
|
826
|
-
export const PutSchemaOutputFilterSensitiveLog = (obj) => ({
|
|
827
|
-
...obj,
|
|
828
|
-
...(obj.namespaces && { namespaces: SENSITIVE_STRING }),
|
|
829
|
-
});
|
|
830
|
-
export const UpdatePolicyStoreInputFilterSensitiveLog = (obj) => ({
|
|
831
|
-
...obj,
|
|
832
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
833
|
-
});
|
|
834
|
-
export const AttributeValueFilterSensitiveLog = (obj) => {
|
|
835
|
-
if (obj.boolean !== undefined)
|
|
836
|
-
return { boolean: SENSITIVE_STRING };
|
|
837
|
-
if (obj.entityIdentifier !== undefined)
|
|
838
|
-
return { entityIdentifier: EntityIdentifierFilterSensitiveLog(obj.entityIdentifier) };
|
|
839
|
-
if (obj.long !== undefined)
|
|
840
|
-
return { long: SENSITIVE_STRING };
|
|
841
|
-
if (obj.string !== undefined)
|
|
842
|
-
return { string: SENSITIVE_STRING };
|
|
843
|
-
if (obj.set !== undefined)
|
|
844
|
-
return { set: obj.set.map((item) => AttributeValueFilterSensitiveLog(item)) };
|
|
845
|
-
if (obj.record !== undefined)
|
|
846
|
-
return {
|
|
847
|
-
record: Object.entries(obj.record).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
848
|
-
};
|
|
849
|
-
if (obj.ipaddr !== undefined)
|
|
850
|
-
return { ipaddr: SENSITIVE_STRING };
|
|
851
|
-
if (obj.decimal !== undefined)
|
|
852
|
-
return { decimal: SENSITIVE_STRING };
|
|
853
|
-
if (obj.datetime !== undefined)
|
|
854
|
-
return { datetime: SENSITIVE_STRING };
|
|
855
|
-
if (obj.duration !== undefined)
|
|
856
|
-
return { duration: SENSITIVE_STRING };
|
|
857
|
-
if (obj.$unknown !== undefined)
|
|
858
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
859
|
-
};
|
|
860
|
-
export const ContextDefinitionFilterSensitiveLog = (obj) => {
|
|
861
|
-
if (obj.contextMap !== undefined)
|
|
862
|
-
return { contextMap: SENSITIVE_STRING };
|
|
863
|
-
if (obj.cedarJson !== undefined)
|
|
864
|
-
return { cedarJson: SENSITIVE_STRING };
|
|
865
|
-
if (obj.$unknown !== undefined)
|
|
866
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
867
|
-
};
|
|
868
|
-
export const EntityItemFilterSensitiveLog = (obj) => ({
|
|
869
|
-
...obj,
|
|
870
|
-
...(obj.identifier && { identifier: EntityIdentifierFilterSensitiveLog(obj.identifier) }),
|
|
871
|
-
...(obj.attributes && {
|
|
872
|
-
attributes: Object.entries(obj.attributes).reduce((acc, [key, value]) => ((acc[key] = AttributeValueFilterSensitiveLog(value)), acc), {}),
|
|
873
|
-
}),
|
|
874
|
-
...(obj.parents && { parents: obj.parents.map((item) => EntityIdentifierFilterSensitiveLog(item)) }),
|
|
875
|
-
});
|
|
876
|
-
export const BatchIsAuthorizedInputItemFilterSensitiveLog = (obj) => ({
|
|
877
|
-
...obj,
|
|
878
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
879
|
-
...(obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) }),
|
|
880
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
881
|
-
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
882
|
-
});
|
|
883
|
-
export const BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog = (obj) => ({
|
|
884
|
-
...obj,
|
|
885
|
-
...(obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) }),
|
|
886
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
887
|
-
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
888
|
-
});
|
|
889
|
-
export const BatchIsAuthorizedOutputItemFilterSensitiveLog = (obj) => ({
|
|
890
|
-
...obj,
|
|
891
|
-
...(obj.request && { request: BatchIsAuthorizedInputItemFilterSensitiveLog(obj.request) }),
|
|
892
|
-
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
893
|
-
});
|
|
894
|
-
export const BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog = (obj) => ({
|
|
895
|
-
...obj,
|
|
896
|
-
...(obj.request && { request: BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog(obj.request) }),
|
|
897
|
-
...(obj.errors && { errors: SENSITIVE_STRING }),
|
|
898
|
-
});
|
|
899
|
-
export const EntitiesDefinitionFilterSensitiveLog = (obj) => {
|
|
900
|
-
if (obj.entityList !== undefined)
|
|
901
|
-
return { entityList: obj.entityList.map((item) => EntityItemFilterSensitiveLog(item)) };
|
|
902
|
-
if (obj.cedarJson !== undefined)
|
|
903
|
-
return { cedarJson: SENSITIVE_STRING };
|
|
904
|
-
if (obj.$unknown !== undefined)
|
|
905
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
906
|
-
};
|
|
907
|
-
export const BatchIsAuthorizedOutputFilterSensitiveLog = (obj) => ({
|
|
908
|
-
...obj,
|
|
909
|
-
...(obj.results && { results: obj.results.map((item) => BatchIsAuthorizedOutputItemFilterSensitiveLog(item)) }),
|
|
910
|
-
});
|
|
911
|
-
export const BatchIsAuthorizedWithTokenOutputFilterSensitiveLog = (obj) => ({
|
|
912
|
-
...obj,
|
|
913
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
914
|
-
...(obj.results && {
|
|
915
|
-
results: obj.results.map((item) => BatchIsAuthorizedWithTokenOutputItemFilterSensitiveLog(item)),
|
|
916
|
-
}),
|
|
917
|
-
});
|
|
918
|
-
export const IsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
919
|
-
...obj,
|
|
920
|
-
...(obj.principal && { principal: EntityIdentifierFilterSensitiveLog(obj.principal) }),
|
|
921
|
-
...(obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) }),
|
|
922
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
923
|
-
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
924
|
-
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
925
|
-
});
|
|
926
|
-
export const IsAuthorizedWithTokenInputFilterSensitiveLog = (obj) => ({
|
|
927
|
-
...obj,
|
|
928
|
-
...(obj.identityToken && { identityToken: SENSITIVE_STRING }),
|
|
929
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
930
|
-
...(obj.action && { action: ActionIdentifierFilterSensitiveLog(obj.action) }),
|
|
931
|
-
...(obj.resource && { resource: EntityIdentifierFilterSensitiveLog(obj.resource) }),
|
|
932
|
-
...(obj.context && { context: ContextDefinitionFilterSensitiveLog(obj.context) }),
|
|
933
|
-
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
934
|
-
});
|
|
935
|
-
export const BatchIsAuthorizedInputFilterSensitiveLog = (obj) => ({
|
|
936
|
-
...obj,
|
|
937
|
-
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
938
|
-
...(obj.requests && { requests: obj.requests.map((item) => BatchIsAuthorizedInputItemFilterSensitiveLog(item)) }),
|
|
939
|
-
});
|
|
940
|
-
export const BatchIsAuthorizedWithTokenInputFilterSensitiveLog = (obj) => ({
|
|
941
|
-
...obj,
|
|
942
|
-
...(obj.identityToken && { identityToken: SENSITIVE_STRING }),
|
|
943
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
944
|
-
...(obj.entities && { entities: EntitiesDefinitionFilterSensitiveLog(obj.entities) }),
|
|
945
|
-
...(obj.requests && {
|
|
946
|
-
requests: obj.requests.map((item) => BatchIsAuthorizedWithTokenInputItemFilterSensitiveLog(item)),
|
|
947
|
-
}),
|
|
948
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_0Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.verifiedpermissions",
|
|
29
|
+
serviceTarget: "VerifiedPermissions",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
25
32
|
serviceId: config?.serviceId ?? "VerifiedPermissions",
|
|
26
33
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
34
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|