@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,180 @@
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 { ListPolicyTemplatesInput, ListPolicyTemplatesOutput } 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 ListPolicyTemplatesCommand}.
14
+ */
15
+ export interface ListPolicyTemplatesCommandInput extends ListPolicyTemplatesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListPolicyTemplatesCommand}.
21
+ */
22
+ export interface ListPolicyTemplatesCommandOutput extends ListPolicyTemplatesOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Returns a paginated list of all policy templates 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, ListPolicyTemplatesCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
31
+ * // const { VerifiedPermissionsClient, ListPolicyTemplatesCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
32
+ * const client = new VerifiedPermissionsClient(config);
33
+ * const input = { // ListPolicyTemplatesInput
34
+ * policyStoreId: "STRING_VALUE", // required
35
+ * nextToken: "STRING_VALUE",
36
+ * maxResults: Number("int"),
37
+ * };
38
+ * const command = new ListPolicyTemplatesCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // ListPolicyTemplatesOutput
41
+ * // nextToken: "STRING_VALUE",
42
+ * // policyTemplates: [ // PolicyTemplatesList // required
43
+ * // { // PolicyTemplateItem
44
+ * // policyStoreId: "STRING_VALUE", // required
45
+ * // policyTemplateId: "STRING_VALUE", // required
46
+ * // description: "STRING_VALUE",
47
+ * // createdDate: new Date("TIMESTAMP"), // required
48
+ * // lastUpdatedDate: new Date("TIMESTAMP"), // required
49
+ * // },
50
+ * // ],
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param ListPolicyTemplatesCommandInput - {@link ListPolicyTemplatesCommandInput}
56
+ * @returns {@link ListPolicyTemplatesCommandOutput}
57
+ * @see {@link ListPolicyTemplatesCommandInput} for command's `input` shape.
58
+ * @see {@link ListPolicyTemplatesCommandOutput} for command's `response` shape.
59
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
60
+ *
61
+ * @throws {@link ResourceNotFoundException} (client fault)
62
+ * <p>The request failed because it references a resource that doesn't exist.</p>
63
+ *
64
+ * @throws {@link AccessDeniedException} (client fault)
65
+ * <p>You don't have sufficient access to perform this action.</p>
66
+ *
67
+ * @throws {@link InternalServerException} (server fault)
68
+ * <p>The request failed because of an internal error. Try your request again later</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The request failed because it exceeded a throttling quota.</p>
72
+ *
73
+ * @throws {@link ValidationException} (client fault)
74
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
75
+ * requirements. The output is provided as a list of fields and a reason for each field that
76
+ * isn't valid.</p>
77
+ * <p>The possible reasons include the following:</p>
78
+ * <ul>
79
+ * <li>
80
+ * <p>
81
+ * <b>UnrecognizedEntityType</b>
82
+ * </p>
83
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
84
+ * </li>
85
+ * <li>
86
+ * <p>
87
+ * <b>UnrecognizedActionId</b>
88
+ * </p>
89
+ * <p>The policy includes an action id that isn't found in the schema.</p>
90
+ * </li>
91
+ * <li>
92
+ * <p>
93
+ * <b>InvalidActionApplication</b>
94
+ * </p>
95
+ * <p>The policy includes an action that, according to the schema, doesn't support
96
+ * the specified principal and resource.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>
100
+ * <b>UnexpectedType</b>
101
+ * </p>
102
+ * <p>The policy included an operand that isn't a valid type for the specified
103
+ * operation.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>
107
+ * <b>IncompatibleTypes</b>
108
+ * </p>
109
+ * <p>The types of elements included in a <code>set</code>, or the types of
110
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
111
+ * this context.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>
115
+ * <b>MissingAttribute</b>
116
+ * </p>
117
+ * <p>The policy attempts to access a record or entity attribute that isn't
118
+ * specified in the schema. Test for the existence of the attribute first before
119
+ * 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
120
+ * <i>Cedar Policy Language Guide</i>.</p>
121
+ * </li>
122
+ * <li>
123
+ * <p>
124
+ * <b>UnsafeOptionalAttributeAccess</b>
125
+ * </p>
126
+ * <p>The policy attempts to access a record or entity attribute that is optional
127
+ * and isn't guaranteed to be present. Test for the existence of the attribute
128
+ * first before attempting to access its value. For more information, see the
129
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
130
+ * <i>Cedar Policy Language Guide</i>.</p>
131
+ * </li>
132
+ * <li>
133
+ * <p>
134
+ * <b>ImpossiblePolicy</b>
135
+ * </p>
136
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
137
+ * the policy is always false, it can never apply to any query, and so it can never
138
+ * affect an authorization decision.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>
142
+ * <b>WrongNumberArguments</b>
143
+ * </p>
144
+ * <p>The policy references an extension type with the wrong number of
145
+ * arguments.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>
149
+ * <b>FunctionArgumentValidationError</b>
150
+ * </p>
151
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
152
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
153
+ * period character.</p>
154
+ * </li>
155
+ * </ul>
156
+ *
157
+ * @throws {@link VerifiedPermissionsServiceException}
158
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
159
+ *
160
+ */
161
+ export declare class ListPolicyTemplatesCommand extends $Command<ListPolicyTemplatesCommandInput, ListPolicyTemplatesCommandOutput, VerifiedPermissionsClientResolvedConfig> {
162
+ readonly input: ListPolicyTemplatesCommandInput;
163
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
164
+ /**
165
+ * @public
166
+ */
167
+ constructor(input: ListPolicyTemplatesCommandInput);
168
+ /**
169
+ * @internal
170
+ */
171
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListPolicyTemplatesCommandInput, ListPolicyTemplatesCommandOutput>;
172
+ /**
173
+ * @internal
174
+ */
175
+ private serialize;
176
+ /**
177
+ * @internal
178
+ */
179
+ private deserialize;
180
+ }
@@ -0,0 +1,188 @@
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 { PutSchemaInput, PutSchemaOutput } 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 PutSchemaCommand}.
14
+ */
15
+ export interface PutSchemaCommandInput extends PutSchemaInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutSchemaCommand}.
21
+ */
22
+ export interface PutSchemaCommandOutput extends PutSchemaOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates or updates the policy schema in the specified policy store. The schema is used to
27
+ * validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema
28
+ * validate only policies and templates submitted after the schema change. Existing
29
+ * policies and templates are not re-evaluated against the changed schema. If you later
30
+ * update a policy, then it is evaluated against the new schema at that time.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { VerifiedPermissionsClient, PutSchemaCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
35
+ * // const { VerifiedPermissionsClient, PutSchemaCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
36
+ * const client = new VerifiedPermissionsClient(config);
37
+ * const input = { // PutSchemaInput
38
+ * policyStoreId: "STRING_VALUE", // required
39
+ * definition: { // SchemaDefinition Union: only one key present
40
+ * cedarJson: "STRING_VALUE",
41
+ * },
42
+ * };
43
+ * const command = new PutSchemaCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // PutSchemaOutput
46
+ * // policyStoreId: "STRING_VALUE", // required
47
+ * // namespaces: [ // NamespaceList // required
48
+ * // "STRING_VALUE",
49
+ * // ],
50
+ * // createdDate: new Date("TIMESTAMP"), // required
51
+ * // lastUpdatedDate: new Date("TIMESTAMP"), // required
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param PutSchemaCommandInput - {@link PutSchemaCommandInput}
57
+ * @returns {@link PutSchemaCommandOutput}
58
+ * @see {@link PutSchemaCommandInput} for command's `input` shape.
59
+ * @see {@link PutSchemaCommandOutput} for command's `response` shape.
60
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
61
+ *
62
+ * @throws {@link ConflictException} (client fault)
63
+ * <p>The request failed because another request to modify a resource occurred at the
64
+ * same.</p>
65
+ *
66
+ * @throws {@link ResourceNotFoundException} (client fault)
67
+ * <p>The request failed because it references a resource that doesn't exist.</p>
68
+ *
69
+ * @throws {@link ServiceQuotaExceededException} (client fault)
70
+ * <p>The request failed because it would cause a service quota to be exceeded.</p>
71
+ *
72
+ * @throws {@link AccessDeniedException} (client fault)
73
+ * <p>You don't have sufficient access to perform this action.</p>
74
+ *
75
+ * @throws {@link InternalServerException} (server fault)
76
+ * <p>The request failed because of an internal error. Try your request again later</p>
77
+ *
78
+ * @throws {@link ThrottlingException} (client fault)
79
+ * <p>The request failed because it exceeded a throttling quota.</p>
80
+ *
81
+ * @throws {@link ValidationException} (client fault)
82
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
83
+ * requirements. The output is provided as a list of fields and a reason for each field that
84
+ * isn't valid.</p>
85
+ * <p>The possible reasons include the following:</p>
86
+ * <ul>
87
+ * <li>
88
+ * <p>
89
+ * <b>UnrecognizedEntityType</b>
90
+ * </p>
91
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>
95
+ * <b>UnrecognizedActionId</b>
96
+ * </p>
97
+ * <p>The policy includes an action id that isn't found in the schema.</p>
98
+ * </li>
99
+ * <li>
100
+ * <p>
101
+ * <b>InvalidActionApplication</b>
102
+ * </p>
103
+ * <p>The policy includes an action that, according to the schema, doesn't support
104
+ * the specified principal and resource.</p>
105
+ * </li>
106
+ * <li>
107
+ * <p>
108
+ * <b>UnexpectedType</b>
109
+ * </p>
110
+ * <p>The policy included an operand that isn't a valid type for the specified
111
+ * operation.</p>
112
+ * </li>
113
+ * <li>
114
+ * <p>
115
+ * <b>IncompatibleTypes</b>
116
+ * </p>
117
+ * <p>The types of elements included in a <code>set</code>, or the types of
118
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
119
+ * this context.</p>
120
+ * </li>
121
+ * <li>
122
+ * <p>
123
+ * <b>MissingAttribute</b>
124
+ * </p>
125
+ * <p>The policy attempts to access a record or entity attribute that isn't
126
+ * specified in the schema. Test for the existence of the attribute first before
127
+ * 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
128
+ * <i>Cedar Policy Language Guide</i>.</p>
129
+ * </li>
130
+ * <li>
131
+ * <p>
132
+ * <b>UnsafeOptionalAttributeAccess</b>
133
+ * </p>
134
+ * <p>The policy attempts to access a record or entity attribute that is optional
135
+ * and isn't guaranteed to be present. Test for the existence of the attribute
136
+ * first before attempting to access its value. For more information, see the
137
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
138
+ * <i>Cedar Policy Language Guide</i>.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>
142
+ * <b>ImpossiblePolicy</b>
143
+ * </p>
144
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
145
+ * the policy is always false, it can never apply to any query, and so it can never
146
+ * affect an authorization decision.</p>
147
+ * </li>
148
+ * <li>
149
+ * <p>
150
+ * <b>WrongNumberArguments</b>
151
+ * </p>
152
+ * <p>The policy references an extension type with the wrong number of
153
+ * arguments.</p>
154
+ * </li>
155
+ * <li>
156
+ * <p>
157
+ * <b>FunctionArgumentValidationError</b>
158
+ * </p>
159
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
160
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
161
+ * period character.</p>
162
+ * </li>
163
+ * </ul>
164
+ *
165
+ * @throws {@link VerifiedPermissionsServiceException}
166
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
167
+ *
168
+ */
169
+ export declare class PutSchemaCommand extends $Command<PutSchemaCommandInput, PutSchemaCommandOutput, VerifiedPermissionsClientResolvedConfig> {
170
+ readonly input: PutSchemaCommandInput;
171
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
172
+ /**
173
+ * @public
174
+ */
175
+ constructor(input: PutSchemaCommandInput);
176
+ /**
177
+ * @internal
178
+ */
179
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutSchemaCommandInput, PutSchemaCommandOutput>;
180
+ /**
181
+ * @internal
182
+ */
183
+ private serialize;
184
+ /**
185
+ * @internal
186
+ */
187
+ private deserialize;
188
+ }
@@ -0,0 +1,187 @@
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 { UpdateIdentitySourceInput, UpdateIdentitySourceOutput } 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 UpdateIdentitySourceCommand}.
14
+ */
15
+ export interface UpdateIdentitySourceCommandInput extends UpdateIdentitySourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateIdentitySourceCommand}.
21
+ */
22
+ export interface UpdateIdentitySourceCommandOutput extends UpdateIdentitySourceOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Updates the specified identity source to use a new identity provider (IdP) source, or to change
27
+ * the mapping of identities from the IdP to a different principal entity type.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { VerifiedPermissionsClient, UpdateIdentitySourceCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
32
+ * // const { VerifiedPermissionsClient, UpdateIdentitySourceCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
33
+ * const client = new VerifiedPermissionsClient(config);
34
+ * const input = { // UpdateIdentitySourceInput
35
+ * policyStoreId: "STRING_VALUE", // required
36
+ * identitySourceId: "STRING_VALUE", // required
37
+ * updateConfiguration: { // UpdateConfiguration Union: only one key present
38
+ * cognitoUserPoolConfiguration: { // UpdateCognitoUserPoolConfiguration
39
+ * userPoolArn: "STRING_VALUE", // required
40
+ * clientIds: [ // ClientIds
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * },
44
+ * },
45
+ * principalEntityType: "STRING_VALUE",
46
+ * };
47
+ * const command = new UpdateIdentitySourceCommand(input);
48
+ * const response = await client.send(command);
49
+ * // { // UpdateIdentitySourceOutput
50
+ * // createdDate: new Date("TIMESTAMP"), // required
51
+ * // identitySourceId: "STRING_VALUE", // required
52
+ * // lastUpdatedDate: new Date("TIMESTAMP"), // required
53
+ * // policyStoreId: "STRING_VALUE", // required
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param UpdateIdentitySourceCommandInput - {@link UpdateIdentitySourceCommandInput}
59
+ * @returns {@link UpdateIdentitySourceCommandOutput}
60
+ * @see {@link UpdateIdentitySourceCommandInput} for command's `input` shape.
61
+ * @see {@link UpdateIdentitySourceCommandOutput} for command's `response` shape.
62
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
63
+ *
64
+ * @throws {@link ConflictException} (client fault)
65
+ * <p>The request failed because another request to modify a resource occurred at the
66
+ * same.</p>
67
+ *
68
+ * @throws {@link ResourceNotFoundException} (client fault)
69
+ * <p>The request failed because it references a resource that doesn't exist.</p>
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You don't have sufficient access to perform this action.</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>The request failed because of an internal error. Try your request again later</p>
76
+ *
77
+ * @throws {@link ThrottlingException} (client fault)
78
+ * <p>The request failed because it exceeded a throttling quota.</p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
82
+ * requirements. The output is provided as a list of fields and a reason for each field that
83
+ * isn't valid.</p>
84
+ * <p>The possible reasons include the following:</p>
85
+ * <ul>
86
+ * <li>
87
+ * <p>
88
+ * <b>UnrecognizedEntityType</b>
89
+ * </p>
90
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
91
+ * </li>
92
+ * <li>
93
+ * <p>
94
+ * <b>UnrecognizedActionId</b>
95
+ * </p>
96
+ * <p>The policy includes an action id that isn't found in the schema.</p>
97
+ * </li>
98
+ * <li>
99
+ * <p>
100
+ * <b>InvalidActionApplication</b>
101
+ * </p>
102
+ * <p>The policy includes an action that, according to the schema, doesn't support
103
+ * the specified principal and resource.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>
107
+ * <b>UnexpectedType</b>
108
+ * </p>
109
+ * <p>The policy included an operand that isn't a valid type for the specified
110
+ * operation.</p>
111
+ * </li>
112
+ * <li>
113
+ * <p>
114
+ * <b>IncompatibleTypes</b>
115
+ * </p>
116
+ * <p>The types of elements included in a <code>set</code>, or the types of
117
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
118
+ * this context.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>
122
+ * <b>MissingAttribute</b>
123
+ * </p>
124
+ * <p>The policy attempts to access a record or entity attribute that isn't
125
+ * specified in the schema. Test for the existence of the attribute first before
126
+ * 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
127
+ * <i>Cedar Policy Language Guide</i>.</p>
128
+ * </li>
129
+ * <li>
130
+ * <p>
131
+ * <b>UnsafeOptionalAttributeAccess</b>
132
+ * </p>
133
+ * <p>The policy attempts to access a record or entity attribute that is optional
134
+ * and isn't guaranteed to be present. Test for the existence of the attribute
135
+ * first before attempting to access its value. For more information, see the
136
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
137
+ * <i>Cedar Policy Language Guide</i>.</p>
138
+ * </li>
139
+ * <li>
140
+ * <p>
141
+ * <b>ImpossiblePolicy</b>
142
+ * </p>
143
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
144
+ * the policy is always false, it can never apply to any query, and so it can never
145
+ * affect an authorization decision.</p>
146
+ * </li>
147
+ * <li>
148
+ * <p>
149
+ * <b>WrongNumberArguments</b>
150
+ * </p>
151
+ * <p>The policy references an extension type with the wrong number of
152
+ * arguments.</p>
153
+ * </li>
154
+ * <li>
155
+ * <p>
156
+ * <b>FunctionArgumentValidationError</b>
157
+ * </p>
158
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
159
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
160
+ * period character.</p>
161
+ * </li>
162
+ * </ul>
163
+ *
164
+ * @throws {@link VerifiedPermissionsServiceException}
165
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
166
+ *
167
+ */
168
+ export declare class UpdateIdentitySourceCommand extends $Command<UpdateIdentitySourceCommandInput, UpdateIdentitySourceCommandOutput, VerifiedPermissionsClientResolvedConfig> {
169
+ readonly input: UpdateIdentitySourceCommandInput;
170
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
171
+ /**
172
+ * @public
173
+ */
174
+ constructor(input: UpdateIdentitySourceCommandInput);
175
+ /**
176
+ * @internal
177
+ */
178
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateIdentitySourceCommandInput, UpdateIdentitySourceCommandOutput>;
179
+ /**
180
+ * @internal
181
+ */
182
+ private serialize;
183
+ /**
184
+ * @internal
185
+ */
186
+ private deserialize;
187
+ }