@aws-sdk/client-verifiedpermissions 3.352.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 (183) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +461 -0
  3. package/dist-cjs/VerifiedPermissions.js +59 -0
  4. package/dist-cjs/VerifiedPermissionsClient.js +41 -0
  5. package/dist-cjs/commands/CreateIdentitySourceCommand.js +46 -0
  6. package/dist-cjs/commands/CreatePolicyCommand.js +46 -0
  7. package/dist-cjs/commands/CreatePolicyStoreCommand.js +46 -0
  8. package/dist-cjs/commands/CreatePolicyTemplateCommand.js +46 -0
  9. package/dist-cjs/commands/DeleteIdentitySourceCommand.js +46 -0
  10. package/dist-cjs/commands/DeletePolicyCommand.js +46 -0
  11. package/dist-cjs/commands/DeletePolicyStoreCommand.js +46 -0
  12. package/dist-cjs/commands/DeletePolicyTemplateCommand.js +46 -0
  13. package/dist-cjs/commands/GetIdentitySourceCommand.js +46 -0
  14. package/dist-cjs/commands/GetPolicyCommand.js +46 -0
  15. package/dist-cjs/commands/GetPolicyStoreCommand.js +46 -0
  16. package/dist-cjs/commands/GetPolicyTemplateCommand.js +46 -0
  17. package/dist-cjs/commands/GetSchemaCommand.js +46 -0
  18. package/dist-cjs/commands/IsAuthorizedCommand.js +46 -0
  19. package/dist-cjs/commands/IsAuthorizedWithTokenCommand.js +46 -0
  20. package/dist-cjs/commands/ListIdentitySourcesCommand.js +46 -0
  21. package/dist-cjs/commands/ListPoliciesCommand.js +46 -0
  22. package/dist-cjs/commands/ListPolicyStoresCommand.js +46 -0
  23. package/dist-cjs/commands/ListPolicyTemplatesCommand.js +46 -0
  24. package/dist-cjs/commands/PutSchemaCommand.js +46 -0
  25. package/dist-cjs/commands/UpdateIdentitySourceCommand.js +46 -0
  26. package/dist-cjs/commands/UpdatePolicyCommand.js +46 -0
  27. package/dist-cjs/commands/UpdatePolicyStoreCommand.js +46 -0
  28. package/dist-cjs/commands/UpdatePolicyTemplateCommand.js +46 -0
  29. package/dist-cjs/commands/index.js +27 -0
  30. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  31. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  32. package/dist-cjs/endpoint/ruleset.js +7 -0
  33. package/dist-cjs/index.js +11 -0
  34. package/dist-cjs/models/VerifiedPermissionsServiceException.js +12 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +237 -0
  37. package/dist-cjs/pagination/Interfaces.js +2 -0
  38. package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +29 -0
  39. package/dist-cjs/pagination/ListPoliciesPaginator.js +29 -0
  40. package/dist-cjs/pagination/ListPolicyStoresPaginator.js +29 -0
  41. package/dist-cjs/pagination/ListPolicyTemplatesPaginator.js +29 -0
  42. package/dist-cjs/pagination/index.js +8 -0
  43. package/dist-cjs/protocols/Aws_json1_0.js +1772 -0
  44. package/dist-cjs/runtimeConfig.browser.js +39 -0
  45. package/dist-cjs/runtimeConfig.js +48 -0
  46. package/dist-cjs/runtimeConfig.native.js +15 -0
  47. package/dist-cjs/runtimeConfig.shared.js +21 -0
  48. package/dist-es/VerifiedPermissions.js +55 -0
  49. package/dist-es/VerifiedPermissionsClient.js +37 -0
  50. package/dist-es/commands/CreateIdentitySourceCommand.js +42 -0
  51. package/dist-es/commands/CreatePolicyCommand.js +42 -0
  52. package/dist-es/commands/CreatePolicyStoreCommand.js +42 -0
  53. package/dist-es/commands/CreatePolicyTemplateCommand.js +42 -0
  54. package/dist-es/commands/DeleteIdentitySourceCommand.js +42 -0
  55. package/dist-es/commands/DeletePolicyCommand.js +42 -0
  56. package/dist-es/commands/DeletePolicyStoreCommand.js +42 -0
  57. package/dist-es/commands/DeletePolicyTemplateCommand.js +42 -0
  58. package/dist-es/commands/GetIdentitySourceCommand.js +42 -0
  59. package/dist-es/commands/GetPolicyCommand.js +42 -0
  60. package/dist-es/commands/GetPolicyStoreCommand.js +42 -0
  61. package/dist-es/commands/GetPolicyTemplateCommand.js +42 -0
  62. package/dist-es/commands/GetSchemaCommand.js +42 -0
  63. package/dist-es/commands/IsAuthorizedCommand.js +42 -0
  64. package/dist-es/commands/IsAuthorizedWithTokenCommand.js +42 -0
  65. package/dist-es/commands/ListIdentitySourcesCommand.js +42 -0
  66. package/dist-es/commands/ListPoliciesCommand.js +42 -0
  67. package/dist-es/commands/ListPolicyStoresCommand.js +42 -0
  68. package/dist-es/commands/ListPolicyTemplatesCommand.js +42 -0
  69. package/dist-es/commands/PutSchemaCommand.js +42 -0
  70. package/dist-es/commands/UpdateIdentitySourceCommand.js +42 -0
  71. package/dist-es/commands/UpdatePolicyCommand.js +42 -0
  72. package/dist-es/commands/UpdatePolicyStoreCommand.js +42 -0
  73. package/dist-es/commands/UpdatePolicyTemplateCommand.js +42 -0
  74. package/dist-es/commands/index.js +24 -0
  75. package/dist-es/endpoint/EndpointParameters.js +8 -0
  76. package/dist-es/endpoint/endpointResolver.js +8 -0
  77. package/dist-es/endpoint/ruleset.js +4 -0
  78. package/dist-es/index.js +6 -0
  79. package/dist-es/models/VerifiedPermissionsServiceException.js +8 -0
  80. package/dist-es/models/index.js +1 -0
  81. package/dist-es/models/models_0.js +227 -0
  82. package/dist-es/pagination/Interfaces.js +1 -0
  83. package/dist-es/pagination/ListIdentitySourcesPaginator.js +25 -0
  84. package/dist-es/pagination/ListPoliciesPaginator.js +25 -0
  85. package/dist-es/pagination/ListPolicyStoresPaginator.js +25 -0
  86. package/dist-es/pagination/ListPolicyTemplatesPaginator.js +25 -0
  87. package/dist-es/pagination/index.js +5 -0
  88. package/dist-es/protocols/Aws_json1_0.js +1721 -0
  89. package/dist-es/runtimeConfig.browser.js +34 -0
  90. package/dist-es/runtimeConfig.js +43 -0
  91. package/dist-es/runtimeConfig.native.js +11 -0
  92. package/dist-es/runtimeConfig.shared.js +17 -0
  93. package/dist-types/VerifiedPermissions.d.ts +242 -0
  94. package/dist-types/VerifiedPermissionsClient.d.ts +250 -0
  95. package/dist-types/commands/CreateIdentitySourceCommand.d.ts +210 -0
  96. package/dist-types/commands/CreatePolicyCommand.d.ts +222 -0
  97. package/dist-types/commands/CreatePolicyStoreCommand.d.ts +175 -0
  98. package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +184 -0
  99. package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +175 -0
  100. package/dist-types/commands/DeletePolicyCommand.d.ts +174 -0
  101. package/dist-types/commands/DeletePolicyStoreCommand.d.ts +166 -0
  102. package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +177 -0
  103. package/dist-types/commands/GetIdentitySourceCommand.d.ts +182 -0
  104. package/dist-types/commands/GetPolicyCommand.d.ts +199 -0
  105. package/dist-types/commands/GetPolicyStoreCommand.d.ts +175 -0
  106. package/dist-types/commands/GetPolicyTemplateCommand.d.ts +175 -0
  107. package/dist-types/commands/GetSchemaCommand.d.ts +172 -0
  108. package/dist-types/commands/IsAuthorizedCommand.d.ts +239 -0
  109. package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +240 -0
  110. package/dist-types/commands/ListIdentitySourcesCommand.d.ts +193 -0
  111. package/dist-types/commands/ListPoliciesCommand.d.ts +222 -0
  112. package/dist-types/commands/ListPolicyStoresCommand.d.ts +174 -0
  113. package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +180 -0
  114. package/dist-types/commands/PutSchemaCommand.d.ts +188 -0
  115. package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +187 -0
  116. package/dist-types/commands/UpdatePolicyCommand.d.ts +202 -0
  117. package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +179 -0
  118. package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +184 -0
  119. package/dist-types/commands/index.d.ts +24 -0
  120. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  121. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  122. package/dist-types/endpoint/ruleset.d.ts +2 -0
  123. package/dist-types/index.d.ts +75 -0
  124. package/dist-types/models/VerifiedPermissionsServiceException.d.ts +13 -0
  125. package/dist-types/models/index.d.ts +1 -0
  126. package/dist-types/models/models_0.d.ts +2456 -0
  127. package/dist-types/pagination/Interfaces.d.ts +8 -0
  128. package/dist-types/pagination/ListIdentitySourcesPaginator.d.ts +7 -0
  129. package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
  130. package/dist-types/pagination/ListPolicyStoresPaginator.d.ts +7 -0
  131. package/dist-types/pagination/ListPolicyTemplatesPaginator.d.ts +7 -0
  132. package/dist-types/pagination/index.d.ts +5 -0
  133. package/dist-types/protocols/Aws_json1_0.d.ts +218 -0
  134. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  135. package/dist-types/runtimeConfig.d.ts +42 -0
  136. package/dist-types/runtimeConfig.native.d.ts +41 -0
  137. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  138. package/dist-types/ts3.4/VerifiedPermissions.d.ts +415 -0
  139. package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +259 -0
  140. package/dist-types/ts3.4/commands/CreateIdentitySourceCommand.d.ts +42 -0
  141. package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +35 -0
  142. package/dist-types/ts3.4/commands/CreatePolicyStoreCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/CreatePolicyTemplateCommand.d.ts +42 -0
  144. package/dist-types/ts3.4/commands/DeleteIdentitySourceCommand.d.ts +42 -0
  145. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +35 -0
  146. package/dist-types/ts3.4/commands/DeletePolicyStoreCommand.d.ts +38 -0
  147. package/dist-types/ts3.4/commands/DeletePolicyTemplateCommand.d.ts +42 -0
  148. package/dist-types/ts3.4/commands/GetIdentitySourceCommand.d.ts +38 -0
  149. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +35 -0
  150. package/dist-types/ts3.4/commands/GetPolicyStoreCommand.d.ts +35 -0
  151. package/dist-types/ts3.4/commands/GetPolicyTemplateCommand.d.ts +38 -0
  152. package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +35 -0
  153. package/dist-types/ts3.4/commands/IsAuthorizedCommand.d.ts +35 -0
  154. package/dist-types/ts3.4/commands/IsAuthorizedWithTokenCommand.d.ts +42 -0
  155. package/dist-types/ts3.4/commands/ListIdentitySourcesCommand.d.ts +39 -0
  156. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +35 -0
  157. package/dist-types/ts3.4/commands/ListPolicyStoresCommand.d.ts +38 -0
  158. package/dist-types/ts3.4/commands/ListPolicyTemplatesCommand.d.ts +39 -0
  159. package/dist-types/ts3.4/commands/PutSchemaCommand.d.ts +35 -0
  160. package/dist-types/ts3.4/commands/UpdateIdentitySourceCommand.d.ts +42 -0
  161. package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +35 -0
  162. package/dist-types/ts3.4/commands/UpdatePolicyStoreCommand.d.ts +38 -0
  163. package/dist-types/ts3.4/commands/UpdatePolicyTemplateCommand.d.ts +42 -0
  164. package/dist-types/ts3.4/commands/index.d.ts +24 -0
  165. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  166. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  167. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  168. package/dist-types/ts3.4/index.d.ts +6 -0
  169. package/dist-types/ts3.4/models/VerifiedPermissionsServiceException.d.ts +8 -0
  170. package/dist-types/ts3.4/models/index.d.ts +1 -0
  171. package/dist-types/ts3.4/models/models_0.d.ts +757 -0
  172. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  173. package/dist-types/ts3.4/pagination/ListIdentitySourcesPaginator.d.ts +11 -0
  174. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
  175. package/dist-types/ts3.4/pagination/ListPolicyStoresPaginator.d.ts +11 -0
  176. package/dist-types/ts3.4/pagination/ListPolicyTemplatesPaginator.d.ts +11 -0
  177. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  178. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +293 -0
  179. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  180. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  181. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  182. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  183. package/package.json +101 -0
@@ -0,0 +1,193 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListIdentitySourcesInput, ListIdentitySourcesOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListIdentitySourcesCommand}.
14
+ */
15
+ export interface ListIdentitySourcesCommandInput extends ListIdentitySourcesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListIdentitySourcesCommand}.
21
+ */
22
+ export interface ListIdentitySourcesCommandOutput extends ListIdentitySourcesOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a paginated list of all of the identity sources defined in the specified policy store.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { VerifiedPermissionsClient, ListIdentitySourcesCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
31
+ * // const { VerifiedPermissionsClient, ListIdentitySourcesCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
32
+ * const client = new VerifiedPermissionsClient(config);
33
+ * const input = { // ListIdentitySourcesInput
34
+ * policyStoreId: "STRING_VALUE", // required
35
+ * nextToken: "STRING_VALUE",
36
+ * maxResults: Number("int"),
37
+ * filters: [ // IdentitySourceFilters
38
+ * { // IdentitySourceFilter
39
+ * principalEntityType: "STRING_VALUE",
40
+ * },
41
+ * ],
42
+ * };
43
+ * const command = new ListIdentitySourcesCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListIdentitySourcesOutput
46
+ * // nextToken: "STRING_VALUE",
47
+ * // identitySources: [ // IdentitySources // required
48
+ * // { // IdentitySourceItem
49
+ * // createdDate: new Date("TIMESTAMP"), // required
50
+ * // details: { // IdentitySourceItemDetails
51
+ * // clientIds: [ // ClientIds
52
+ * // "STRING_VALUE",
53
+ * // ],
54
+ * // userPoolArn: "STRING_VALUE",
55
+ * // discoveryUrl: "STRING_VALUE",
56
+ * // openIdIssuer: "COGNITO",
57
+ * // },
58
+ * // identitySourceId: "STRING_VALUE", // required
59
+ * // lastUpdatedDate: new Date("TIMESTAMP"), // required
60
+ * // policyStoreId: "STRING_VALUE", // required
61
+ * // principalEntityType: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param ListIdentitySourcesCommandInput - {@link ListIdentitySourcesCommandInput}
69
+ * @returns {@link ListIdentitySourcesCommandOutput}
70
+ * @see {@link ListIdentitySourcesCommandInput} for command's `input` shape.
71
+ * @see {@link ListIdentitySourcesCommandOutput} for command's `response` shape.
72
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
73
+ *
74
+ * @throws {@link ResourceNotFoundException} (client fault)
75
+ * <p>The request failed because it references a resource that doesn't exist.</p>
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You don't have sufficient access to perform this action.</p>
79
+ *
80
+ * @throws {@link InternalServerException} (server fault)
81
+ * <p>The request failed because of an internal error. Try your request again later</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The request failed because it exceeded a throttling quota.</p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
88
+ * requirements. The output is provided as a list of fields and a reason for each field that
89
+ * isn't valid.</p>
90
+ * <p>The possible reasons include the following:</p>
91
+ * <ul>
92
+ * <li>
93
+ * <p>
94
+ * <b>UnrecognizedEntityType</b>
95
+ * </p>
96
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>
100
+ * <b>UnrecognizedActionId</b>
101
+ * </p>
102
+ * <p>The policy includes an action id that isn't found in the schema.</p>
103
+ * </li>
104
+ * <li>
105
+ * <p>
106
+ * <b>InvalidActionApplication</b>
107
+ * </p>
108
+ * <p>The policy includes an action that, according to the schema, doesn't support
109
+ * the specified principal and resource.</p>
110
+ * </li>
111
+ * <li>
112
+ * <p>
113
+ * <b>UnexpectedType</b>
114
+ * </p>
115
+ * <p>The policy included an operand that isn't a valid type for the specified
116
+ * operation.</p>
117
+ * </li>
118
+ * <li>
119
+ * <p>
120
+ * <b>IncompatibleTypes</b>
121
+ * </p>
122
+ * <p>The types of elements included in a <code>set</code>, or the types of
123
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
124
+ * this context.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>
128
+ * <b>MissingAttribute</b>
129
+ * </p>
130
+ * <p>The policy attempts to access a record or entity attribute that isn't
131
+ * specified in the schema. Test for the existence of the attribute first before
132
+ * attempting to access its value. For more information, see the <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
133
+ * <i>Cedar Policy Language Guide</i>.</p>
134
+ * </li>
135
+ * <li>
136
+ * <p>
137
+ * <b>UnsafeOptionalAttributeAccess</b>
138
+ * </p>
139
+ * <p>The policy attempts to access a record or entity attribute that is optional
140
+ * and isn't guaranteed to be present. Test for the existence of the attribute
141
+ * first before attempting to access its value. For more information, see the
142
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
143
+ * <i>Cedar Policy Language Guide</i>.</p>
144
+ * </li>
145
+ * <li>
146
+ * <p>
147
+ * <b>ImpossiblePolicy</b>
148
+ * </p>
149
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
150
+ * the policy is always false, it can never apply to any query, and so it can never
151
+ * affect an authorization decision.</p>
152
+ * </li>
153
+ * <li>
154
+ * <p>
155
+ * <b>WrongNumberArguments</b>
156
+ * </p>
157
+ * <p>The policy references an extension type with the wrong number of
158
+ * arguments.</p>
159
+ * </li>
160
+ * <li>
161
+ * <p>
162
+ * <b>FunctionArgumentValidationError</b>
163
+ * </p>
164
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
165
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
166
+ * period character.</p>
167
+ * </li>
168
+ * </ul>
169
+ *
170
+ * @throws {@link VerifiedPermissionsServiceException}
171
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
172
+ *
173
+ */
174
+ export declare class ListIdentitySourcesCommand extends $Command<ListIdentitySourcesCommandInput, ListIdentitySourcesCommandOutput, VerifiedPermissionsClientResolvedConfig> {
175
+ readonly input: ListIdentitySourcesCommandInput;
176
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
177
+ /**
178
+ * @public
179
+ */
180
+ constructor(input: ListIdentitySourcesCommandInput);
181
+ /**
182
+ * @internal
183
+ */
184
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListIdentitySourcesCommandInput, ListIdentitySourcesCommandOutput>;
185
+ /**
186
+ * @internal
187
+ */
188
+ private serialize;
189
+ /**
190
+ * @internal
191
+ */
192
+ private deserialize;
193
+ }
@@ -0,0 +1,222 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListPoliciesInput, ListPoliciesOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPoliciesCommand}.
14
+ */
15
+ export interface ListPoliciesCommandInput extends ListPoliciesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPoliciesCommand}.
21
+ */
22
+ export interface ListPoliciesCommandOutput extends ListPoliciesOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a paginated list of all policies stored in the specified policy store.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { VerifiedPermissionsClient, ListPoliciesCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
31
+ * // const { VerifiedPermissionsClient, ListPoliciesCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
32
+ * const client = new VerifiedPermissionsClient(config);
33
+ * const input = { // ListPoliciesInput
34
+ * policyStoreId: "STRING_VALUE", // required
35
+ * nextToken: "STRING_VALUE",
36
+ * maxResults: Number("int"),
37
+ * filter: { // PolicyFilter
38
+ * principal: { // EntityReference Union: only one key present
39
+ * unspecified: true || false,
40
+ * identifier: { // EntityIdentifier
41
+ * entityType: "STRING_VALUE", // required
42
+ * entityId: "STRING_VALUE", // required
43
+ * },
44
+ * },
45
+ * resource: {// Union: only one key present
46
+ * unspecified: true || false,
47
+ * identifier: {
48
+ * entityType: "STRING_VALUE", // required
49
+ * entityId: "STRING_VALUE", // required
50
+ * },
51
+ * },
52
+ * policyType: "STATIC" || "TEMPLATE_LINKED",
53
+ * policyTemplateId: "STRING_VALUE",
54
+ * },
55
+ * };
56
+ * const command = new ListPoliciesCommand(input);
57
+ * const response = await client.send(command);
58
+ * // { // ListPoliciesOutput
59
+ * // nextToken: "STRING_VALUE",
60
+ * // policies: [ // PolicyList // required
61
+ * // { // PolicyItem
62
+ * // policyStoreId: "STRING_VALUE", // required
63
+ * // policyId: "STRING_VALUE", // required
64
+ * // policyType: "STATIC" || "TEMPLATE_LINKED", // required
65
+ * // principal: { // EntityIdentifier
66
+ * // entityType: "STRING_VALUE", // required
67
+ * // entityId: "STRING_VALUE", // required
68
+ * // },
69
+ * // resource: {
70
+ * // entityType: "STRING_VALUE", // required
71
+ * // entityId: "STRING_VALUE", // required
72
+ * // },
73
+ * // definition: { // PolicyDefinitionItem Union: only one key present
74
+ * // static: { // StaticPolicyDefinitionItem
75
+ * // description: "STRING_VALUE",
76
+ * // },
77
+ * // templateLinked: { // TemplateLinkedPolicyDefinitionItem
78
+ * // policyTemplateId: "STRING_VALUE", // required
79
+ * // principal: {
80
+ * // entityType: "STRING_VALUE", // required
81
+ * // entityId: "STRING_VALUE", // required
82
+ * // },
83
+ * // resource: {
84
+ * // entityType: "STRING_VALUE", // required
85
+ * // entityId: "STRING_VALUE", // required
86
+ * // },
87
+ * // },
88
+ * // },
89
+ * // createdDate: new Date("TIMESTAMP"), // required
90
+ * // lastUpdatedDate: new Date("TIMESTAMP"), // required
91
+ * // },
92
+ * // ],
93
+ * // };
94
+ *
95
+ * ```
96
+ *
97
+ * @param ListPoliciesCommandInput - {@link ListPoliciesCommandInput}
98
+ * @returns {@link ListPoliciesCommandOutput}
99
+ * @see {@link ListPoliciesCommandInput} for command's `input` shape.
100
+ * @see {@link ListPoliciesCommandOutput} for command's `response` shape.
101
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
102
+ *
103
+ * @throws {@link ResourceNotFoundException} (client fault)
104
+ * <p>The request failed because it references a resource that doesn't exist.</p>
105
+ *
106
+ * @throws {@link AccessDeniedException} (client fault)
107
+ * <p>You don't have sufficient access to perform this action.</p>
108
+ *
109
+ * @throws {@link InternalServerException} (server fault)
110
+ * <p>The request failed because of an internal error. Try your request again later</p>
111
+ *
112
+ * @throws {@link ThrottlingException} (client fault)
113
+ * <p>The request failed because it exceeded a throttling quota.</p>
114
+ *
115
+ * @throws {@link ValidationException} (client fault)
116
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
117
+ * requirements. The output is provided as a list of fields and a reason for each field that
118
+ * isn't valid.</p>
119
+ * <p>The possible reasons include the following:</p>
120
+ * <ul>
121
+ * <li>
122
+ * <p>
123
+ * <b>UnrecognizedEntityType</b>
124
+ * </p>
125
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
126
+ * </li>
127
+ * <li>
128
+ * <p>
129
+ * <b>UnrecognizedActionId</b>
130
+ * </p>
131
+ * <p>The policy includes an action id that isn't found in the schema.</p>
132
+ * </li>
133
+ * <li>
134
+ * <p>
135
+ * <b>InvalidActionApplication</b>
136
+ * </p>
137
+ * <p>The policy includes an action that, according to the schema, doesn't support
138
+ * the specified principal and resource.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>
142
+ * <b>UnexpectedType</b>
143
+ * </p>
144
+ * <p>The policy included an operand that isn't a valid type for the specified
145
+ * operation.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>
149
+ * <b>IncompatibleTypes</b>
150
+ * </p>
151
+ * <p>The types of elements included in a <code>set</code>, or the types of
152
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
153
+ * this context.</p>
154
+ * </li>
155
+ * <li>
156
+ * <p>
157
+ * <b>MissingAttribute</b>
158
+ * </p>
159
+ * <p>The policy attempts to access a record or entity attribute that isn't
160
+ * specified in the schema. Test for the existence of the attribute first before
161
+ * attempting to access its value. For more information, see the <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
162
+ * <i>Cedar Policy Language Guide</i>.</p>
163
+ * </li>
164
+ * <li>
165
+ * <p>
166
+ * <b>UnsafeOptionalAttributeAccess</b>
167
+ * </p>
168
+ * <p>The policy attempts to access a record or entity attribute that is optional
169
+ * and isn't guaranteed to be present. Test for the existence of the attribute
170
+ * first before attempting to access its value. For more information, see the
171
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
172
+ * <i>Cedar Policy Language Guide</i>.</p>
173
+ * </li>
174
+ * <li>
175
+ * <p>
176
+ * <b>ImpossiblePolicy</b>
177
+ * </p>
178
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
179
+ * the policy is always false, it can never apply to any query, and so it can never
180
+ * affect an authorization decision.</p>
181
+ * </li>
182
+ * <li>
183
+ * <p>
184
+ * <b>WrongNumberArguments</b>
185
+ * </p>
186
+ * <p>The policy references an extension type with the wrong number of
187
+ * arguments.</p>
188
+ * </li>
189
+ * <li>
190
+ * <p>
191
+ * <b>FunctionArgumentValidationError</b>
192
+ * </p>
193
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
194
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
195
+ * period character.</p>
196
+ * </li>
197
+ * </ul>
198
+ *
199
+ * @throws {@link VerifiedPermissionsServiceException}
200
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
201
+ *
202
+ */
203
+ export declare class ListPoliciesCommand extends $Command<ListPoliciesCommandInput, ListPoliciesCommandOutput, VerifiedPermissionsClientResolvedConfig> {
204
+ readonly input: ListPoliciesCommandInput;
205
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
206
+ /**
207
+ * @public
208
+ */
209
+ constructor(input: ListPoliciesCommandInput);
210
+ /**
211
+ * @internal
212
+ */
213
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListPoliciesCommandInput, ListPoliciesCommandOutput>;
214
+ /**
215
+ * @internal
216
+ */
217
+ private serialize;
218
+ /**
219
+ * @internal
220
+ */
221
+ private deserialize;
222
+ }
@@ -0,0 +1,174 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { ListPolicyStoresInput, ListPolicyStoresOutput } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig } from "../VerifiedPermissionsClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListPolicyStoresCommand}.
14
+ */
15
+ export interface ListPolicyStoresCommandInput extends ListPolicyStoresInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPolicyStoresCommand}.
21
+ */
22
+ export interface ListPolicyStoresCommandOutput extends ListPolicyStoresOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a paginated list of all policy stores in the calling Amazon Web Services account.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { VerifiedPermissionsClient, ListPolicyStoresCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
31
+ * // const { VerifiedPermissionsClient, ListPolicyStoresCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
32
+ * const client = new VerifiedPermissionsClient(config);
33
+ * const input = { // ListPolicyStoresInput
34
+ * nextToken: "STRING_VALUE",
35
+ * maxResults: Number("int"),
36
+ * };
37
+ * const command = new ListPolicyStoresCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // ListPolicyStoresOutput
40
+ * // nextToken: "STRING_VALUE",
41
+ * // policyStores: [ // PolicyStoreList // required
42
+ * // { // PolicyStoreItem
43
+ * // policyStoreId: "STRING_VALUE", // required
44
+ * // arn: "STRING_VALUE", // required
45
+ * // createdDate: new Date("TIMESTAMP"), // required
46
+ * // },
47
+ * // ],
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param ListPolicyStoresCommandInput - {@link ListPolicyStoresCommandInput}
53
+ * @returns {@link ListPolicyStoresCommandOutput}
54
+ * @see {@link ListPolicyStoresCommandInput} for command's `input` shape.
55
+ * @see {@link ListPolicyStoresCommandOutput} for command's `response` shape.
56
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You don't have sufficient access to perform this action.</p>
60
+ *
61
+ * @throws {@link InternalServerException} (server fault)
62
+ * <p>The request failed because of an internal error. Try your request again later</p>
63
+ *
64
+ * @throws {@link ThrottlingException} (client fault)
65
+ * <p>The request failed because it exceeded a throttling quota.</p>
66
+ *
67
+ * @throws {@link ValidationException} (client fault)
68
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
69
+ * requirements. The output is provided as a list of fields and a reason for each field that
70
+ * isn't valid.</p>
71
+ * <p>The possible reasons include the following:</p>
72
+ * <ul>
73
+ * <li>
74
+ * <p>
75
+ * <b>UnrecognizedEntityType</b>
76
+ * </p>
77
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
78
+ * </li>
79
+ * <li>
80
+ * <p>
81
+ * <b>UnrecognizedActionId</b>
82
+ * </p>
83
+ * <p>The policy includes an action id that isn't found in the schema.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>
87
+ * <b>InvalidActionApplication</b>
88
+ * </p>
89
+ * <p>The policy includes an action that, according to the schema, doesn't support
90
+ * the specified principal and resource.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>
94
+ * <b>UnexpectedType</b>
95
+ * </p>
96
+ * <p>The policy included an operand that isn't a valid type for the specified
97
+ * operation.</p>
98
+ * </li>
99
+ * <li>
100
+ * <p>
101
+ * <b>IncompatibleTypes</b>
102
+ * </p>
103
+ * <p>The types of elements included in a <code>set</code>, or the types of
104
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
105
+ * this context.</p>
106
+ * </li>
107
+ * <li>
108
+ * <p>
109
+ * <b>MissingAttribute</b>
110
+ * </p>
111
+ * <p>The policy attempts to access a record or entity attribute that isn't
112
+ * specified in the schema. Test for the existence of the attribute first before
113
+ * attempting to access its value. For more information, see the <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
114
+ * <i>Cedar Policy Language Guide</i>.</p>
115
+ * </li>
116
+ * <li>
117
+ * <p>
118
+ * <b>UnsafeOptionalAttributeAccess</b>
119
+ * </p>
120
+ * <p>The policy attempts to access a record or entity attribute that is optional
121
+ * and isn't guaranteed to be present. Test for the existence of the attribute
122
+ * first before attempting to access its value. For more information, see the
123
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
124
+ * <i>Cedar Policy Language Guide</i>.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>
128
+ * <b>ImpossiblePolicy</b>
129
+ * </p>
130
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
131
+ * the policy is always false, it can never apply to any query, and so it can never
132
+ * affect an authorization decision.</p>
133
+ * </li>
134
+ * <li>
135
+ * <p>
136
+ * <b>WrongNumberArguments</b>
137
+ * </p>
138
+ * <p>The policy references an extension type with the wrong number of
139
+ * arguments.</p>
140
+ * </li>
141
+ * <li>
142
+ * <p>
143
+ * <b>FunctionArgumentValidationError</b>
144
+ * </p>
145
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
146
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
147
+ * period character.</p>
148
+ * </li>
149
+ * </ul>
150
+ *
151
+ * @throws {@link VerifiedPermissionsServiceException}
152
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
153
+ *
154
+ */
155
+ export declare class ListPolicyStoresCommand extends $Command<ListPolicyStoresCommandInput, ListPolicyStoresCommandOutput, VerifiedPermissionsClientResolvedConfig> {
156
+ readonly input: ListPolicyStoresCommandInput;
157
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
158
+ /**
159
+ * @public
160
+ */
161
+ constructor(input: ListPolicyStoresCommandInput);
162
+ /**
163
+ * @internal
164
+ */
165
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListPolicyStoresCommandInput, ListPolicyStoresCommandOutput>;
166
+ /**
167
+ * @internal
168
+ */
169
+ private serialize;
170
+ /**
171
+ * @internal
172
+ */
173
+ private deserialize;
174
+ }