|
15 | 15 | "uid":"verifiedpermissions-2021-12-01"
|
16 | 16 | },
|
17 | 17 | "operations":{
|
| 18 | + "BatchGetPolicy":{ |
| 19 | + "name":"BatchGetPolicy", |
| 20 | + "http":{ |
| 21 | + "method":"POST", |
| 22 | + "requestUri":"/" |
| 23 | + }, |
| 24 | + "input":{"shape":"BatchGetPolicyInput"}, |
| 25 | + "output":{"shape":"BatchGetPolicyOutput"}, |
| 26 | + "errors":[ |
| 27 | + {"shape":"ValidationException"}, |
| 28 | + {"shape":"AccessDeniedException"}, |
| 29 | + {"shape":"ThrottlingException"}, |
| 30 | + {"shape":"InternalServerException"} |
| 31 | + ], |
| 32 | + "documentation":"<p>Retrieves information about a group (batch) of policies.</p> <note> <p>The <code>BatchGetPolicy</code> operation doesn't have its own IAM permission. To authorize this operation for Amazon Web Services principals, include the permission <code>verifiedpermissions:GetPolicy</code> in their IAM policies.</p> </note>" |
| 33 | + }, |
18 | 34 | "BatchIsAuthorized":{
|
19 | 35 | "name":"BatchIsAuthorized",
|
20 | 36 | "http":{
|
|
558 | 574 | "record":{
|
559 | 575 | "shape":"RecordAttribute",
|
560 | 576 | "documentation":"<p>An attribute value of <a href=\"https://docs.cedarpolicy.com/policies/syntax-datatypes.html#record\">Record</a> type.</p> <p>Example: <code>{\"record\": { \"keyName\": {} } }</code> </p>"
|
| 577 | + }, |
| 578 | + "ipaddr":{ |
| 579 | + "shape":"IpAddr", |
| 580 | + "documentation":"<p>An attribute value of <a href=\"https://docs.cedarpolicy.com/policies/syntax-datatypes.html#datatype-ipaddr\">ipaddr</a> type.</p> <p>Example: <code>{\"ip\": \"192.168.1.100\"}</code> </p>" |
| 581 | + }, |
| 582 | + "decimal":{ |
| 583 | + "shape":"Decimal", |
| 584 | + "documentation":"<p>An attribute value of <a href=\"https://docs.cedarpolicy.com/policies/syntax-datatypes.html#datatype-decimal\">decimal</a> type.</p> <p>Example: <code>{\"decimal\": \"1.1\"}</code> </p>" |
561 | 585 | }
|
562 | 586 | },
|
563 | 587 | "documentation":"<p>The value of an attribute.</p> <p>Contains information about the runtime context for a request for which an authorization decision is made. </p> <p>This data type is used as a member of the <a href=\"https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ContextDefinition.html\">ContextDefinition</a> structure which is uses as a request parameter for the <a href=\"https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorized.html\">IsAuthorized</a>, <a href=\"https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_BatchIsAuthorized.html\">BatchIsAuthorized</a>, and <a href=\"https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html\">IsAuthorizedWithToken</a> operations.</p>",
|
|
574 | 598 | "max":255,
|
575 | 599 | "min":1
|
576 | 600 | },
|
| 601 | + "BatchGetPolicyErrorCode":{ |
| 602 | + "type":"string", |
| 603 | + "enum":[ |
| 604 | + "POLICY_STORE_NOT_FOUND", |
| 605 | + "POLICY_NOT_FOUND" |
| 606 | + ] |
| 607 | + }, |
| 608 | + "BatchGetPolicyErrorItem":{ |
| 609 | + "type":"structure", |
| 610 | + "required":[ |
| 611 | + "code", |
| 612 | + "policyStoreId", |
| 613 | + "policyId", |
| 614 | + "message" |
| 615 | + ], |
| 616 | + "members":{ |
| 617 | + "code":{ |
| 618 | + "shape":"BatchGetPolicyErrorCode", |
| 619 | + "documentation":"<p>The error code that was returned.</p>" |
| 620 | + }, |
| 621 | + "policyStoreId":{ |
| 622 | + "shape":"String", |
| 623 | + "documentation":"<p>The identifier of the policy store associated with the failed request.</p>" |
| 624 | + }, |
| 625 | + "policyId":{ |
| 626 | + "shape":"String", |
| 627 | + "documentation":"<p>The identifier of the policy associated with the failed request.</p>" |
| 628 | + }, |
| 629 | + "message":{ |
| 630 | + "shape":"String", |
| 631 | + "documentation":"<p>A detailed error message.</p>" |
| 632 | + } |
| 633 | + }, |
| 634 | + "documentation":"<p>Contains the information about an error resulting from a <code>BatchGetPolicy</code> API call.</p>" |
| 635 | + }, |
| 636 | + "BatchGetPolicyErrorList":{ |
| 637 | + "type":"list", |
| 638 | + "member":{"shape":"BatchGetPolicyErrorItem"} |
| 639 | + }, |
| 640 | + "BatchGetPolicyInput":{ |
| 641 | + "type":"structure", |
| 642 | + "required":["requests"], |
| 643 | + "members":{ |
| 644 | + "requests":{ |
| 645 | + "shape":"BatchGetPolicyInputList", |
| 646 | + "documentation":"<p>An array of up to 100 policies you want information about.</p>" |
| 647 | + } |
| 648 | + } |
| 649 | + }, |
| 650 | + "BatchGetPolicyInputItem":{ |
| 651 | + "type":"structure", |
| 652 | + "required":[ |
| 653 | + "policyStoreId", |
| 654 | + "policyId" |
| 655 | + ], |
| 656 | + "members":{ |
| 657 | + "policyStoreId":{ |
| 658 | + "shape":"PolicyStoreId", |
| 659 | + "documentation":"<p>The identifier of the policy store where the policy you want information about is stored.</p>" |
| 660 | + }, |
| 661 | + "policyId":{ |
| 662 | + "shape":"PolicyId", |
| 663 | + "documentation":"<p>The identifier of the policy you want information about.</p>" |
| 664 | + } |
| 665 | + }, |
| 666 | + "documentation":"<p>Information about a policy that you include in a <code>BatchGetPolicy</code> API request.</p>" |
| 667 | + }, |
| 668 | + "BatchGetPolicyInputList":{ |
| 669 | + "type":"list", |
| 670 | + "member":{"shape":"BatchGetPolicyInputItem"}, |
| 671 | + "max":100, |
| 672 | + "min":1 |
| 673 | + }, |
| 674 | + "BatchGetPolicyOutput":{ |
| 675 | + "type":"structure", |
| 676 | + "required":[ |
| 677 | + "results", |
| 678 | + "errors" |
| 679 | + ], |
| 680 | + "members":{ |
| 681 | + "results":{ |
| 682 | + "shape":"BatchGetPolicyOutputList", |
| 683 | + "documentation":"<p>Information about the policies listed in the request that were successfully returned. These results are returned in the order they were requested.</p>" |
| 684 | + }, |
| 685 | + "errors":{ |
| 686 | + "shape":"BatchGetPolicyErrorList", |
| 687 | + "documentation":"<p>Information about the policies from the request that resulted in an error. These results are returned in the order they were requested.</p>" |
| 688 | + } |
| 689 | + } |
| 690 | + }, |
| 691 | + "BatchGetPolicyOutputItem":{ |
| 692 | + "type":"structure", |
| 693 | + "required":[ |
| 694 | + "policyStoreId", |
| 695 | + "policyId", |
| 696 | + "policyType", |
| 697 | + "definition", |
| 698 | + "createdDate", |
| 699 | + "lastUpdatedDate" |
| 700 | + ], |
| 701 | + "members":{ |
| 702 | + "policyStoreId":{ |
| 703 | + "shape":"PolicyStoreId", |
| 704 | + "documentation":"<p>The identifier of the policy store where the policy you want information about is stored.</p>" |
| 705 | + }, |
| 706 | + "policyId":{ |
| 707 | + "shape":"PolicyId", |
| 708 | + "documentation":"<p>The identifier of the policy you want information about.</p>" |
| 709 | + }, |
| 710 | + "policyType":{ |
| 711 | + "shape":"PolicyType", |
| 712 | + "documentation":"<p>The type of the policy. This is one of the following values:</p> <ul> <li> <p> <code>STATIC</code> </p> </li> <li> <p> <code>TEMPLATE_LINKED</code> </p> </li> </ul>" |
| 713 | + }, |
| 714 | + "definition":{ |
| 715 | + "shape":"PolicyDefinitionDetail", |
| 716 | + "documentation":"<p>The policy definition of an item in the list of policies returned.</p>" |
| 717 | + }, |
| 718 | + "createdDate":{ |
| 719 | + "shape":"TimestampFormat", |
| 720 | + "documentation":"<p>The date and time the policy was created.</p>" |
| 721 | + }, |
| 722 | + "lastUpdatedDate":{ |
| 723 | + "shape":"TimestampFormat", |
| 724 | + "documentation":"<p>The date and time the policy was most recently updated.</p>" |
| 725 | + } |
| 726 | + }, |
| 727 | + "documentation":"<p>Contains information about a policy returned from a <code>BatchGetPolicy</code> API request.</p>" |
| 728 | + }, |
| 729 | + "BatchGetPolicyOutputList":{ |
| 730 | + "type":"list", |
| 731 | + "member":{"shape":"BatchGetPolicyOutputItem"} |
| 732 | + }, |
577 | 733 | "BatchIsAuthorizedInput":{
|
578 | 734 | "type":"structure",
|
579 | 735 | "required":[
|
|
628 | 784 | "members":{
|
629 | 785 | "results":{
|
630 | 786 | "shape":"BatchIsAuthorizedOutputList",
|
631 |
| - "documentation":"<p>A series of <code>Allow</code> or <code>Deny</code> decisions for each request, and the policies that produced them.</p>" |
| 787 | + "documentation":"<p>A series of <code>Allow</code> or <code>Deny</code> decisions for each request, and the policies that produced them. These results are returned in the order they were requested.</p>" |
632 | 788 | }
|
633 | 789 | }
|
634 | 790 | },
|
|
726 | 882 | },
|
727 | 883 | "results":{
|
728 | 884 | "shape":"BatchIsAuthorizedWithTokenOutputList",
|
729 |
| - "documentation":"<p>A series of <code>Allow</code> or <code>Deny</code> decisions for each request, and the policies that produced them.</p>" |
| 885 | + "documentation":"<p>A series of <code>Allow</code> or <code>Deny</code> decisions for each request, and the policies that produced them. These results are returned in the order they were requested.</p>" |
730 | 886 | }
|
731 | 887 | }
|
732 | 888 | },
|
|
1193 | 1349 | }
|
1194 | 1350 | }
|
1195 | 1351 | },
|
| 1352 | + "Decimal":{ |
| 1353 | + "type":"string", |
| 1354 | + "max":23, |
| 1355 | + "min":3, |
| 1356 | + "pattern":"-?\\d{1,15}\\.\\d{1,4}", |
| 1357 | + "sensitive":true |
| 1358 | + }, |
1196 | 1359 | "Decision":{
|
1197 | 1360 | "type":"string",
|
1198 | 1361 | "enum":[
|
|
1836 | 1999 | "fault":true,
|
1837 | 2000 | "retryable":{"throttling":false}
|
1838 | 2001 | },
|
| 2002 | + "IpAddr":{ |
| 2003 | + "type":"string", |
| 2004 | + "max":44, |
| 2005 | + "min":1, |
| 2006 | + "pattern":"[0-9a-fA-F\\.:\\/]*", |
| 2007 | + "sensitive":true |
| 2008 | + }, |
1839 | 2009 | "IsAuthorizedInput":{
|
1840 | 2010 | "type":"structure",
|
1841 | 2011 | "required":["policyStoreId"],
|
|
2103 | 2273 | "Namespace":{
|
2104 | 2274 | "type":"string",
|
2105 | 2275 | "max":100,
|
2106 |
| - "min":1, |
| 2276 | + "min":0, |
2107 | 2277 | "pattern":".*",
|
2108 | 2278 | "sensitive":true
|
2109 | 2279 | },
|
|
2479 | 2649 | "members":{
|
2480 | 2650 | "policyStoreId":{
|
2481 | 2651 | "shape":"PolicyStoreId",
|
2482 |
| - "documentation":"<p>The identifier of the PolicyStore where the policy you want information about is stored.</p>" |
| 2652 | + "documentation":"<p>The identifier of the policy store where the policy you want information about is stored.</p>" |
2483 | 2653 | },
|
2484 | 2654 | "policyId":{
|
2485 | 2655 | "shape":"PolicyId",
|
|
2760 | 2930 | },
|
2761 | 2931 | "SchemaJson":{
|
2762 | 2932 | "type":"string",
|
2763 |
| - "max":100000, |
2764 | 2933 | "min":1,
|
2765 | 2934 | "sensitive":true
|
2766 | 2935 | },
|
|
0 commit comments