@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,184 @@
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 { CreatePolicyTemplateInput, CreatePolicyTemplateOutput } 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 CreatePolicyTemplateCommand}.
14
+ */
15
+ export interface CreatePolicyTemplateCommandInput extends CreatePolicyTemplateInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreatePolicyTemplateCommand}.
21
+ */
22
+ export interface CreatePolicyTemplateCommandOutput extends CreatePolicyTemplateOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Creates a policy template. A template can use placeholders for the principal and resource. A
27
+ * template must be instantiated into a policy by associating it with specific principals
28
+ * and resources to use for the placeholders. That instantiated policy can then be
29
+ * considered in authorization decisions. The instantiated policy works identically to any
30
+ * other policy, except that it is dynamically linked to the template. If the template
31
+ * changes, then any policies that are linked to that template are immediately updated as
32
+ * well.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { VerifiedPermissionsClient, CreatePolicyTemplateCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
37
+ * // const { VerifiedPermissionsClient, CreatePolicyTemplateCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
38
+ * const client = new VerifiedPermissionsClient(config);
39
+ * const input = { // CreatePolicyTemplateInput
40
+ * clientToken: "STRING_VALUE",
41
+ * policyStoreId: "STRING_VALUE", // required
42
+ * description: "STRING_VALUE",
43
+ * statement: "STRING_VALUE", // required
44
+ * };
45
+ * const command = new CreatePolicyTemplateCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // CreatePolicyTemplateOutput
48
+ * // policyStoreId: "STRING_VALUE", // required
49
+ * // policyTemplateId: "STRING_VALUE", // required
50
+ * // createdDate: new Date("TIMESTAMP"), // required
51
+ * // lastUpdatedDate: new Date("TIMESTAMP"), // required
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param CreatePolicyTemplateCommandInput - {@link CreatePolicyTemplateCommandInput}
57
+ * @returns {@link CreatePolicyTemplateCommandOutput}
58
+ * @see {@link CreatePolicyTemplateCommandInput} for command's `input` shape.
59
+ * @see {@link CreatePolicyTemplateCommandOutput} for command's `response` shape.
60
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
61
+ *
62
+ * @throws {@link ResourceNotFoundException} (client fault)
63
+ * <p>The request failed because it references a resource that doesn't exist.</p>
64
+ *
65
+ * @throws {@link ServiceQuotaExceededException} (client fault)
66
+ * <p>The request failed because it would cause a service quota to be exceeded.</p>
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You don't have sufficient access to perform this action.</p>
70
+ *
71
+ * @throws {@link InternalServerException} (server fault)
72
+ * <p>The request failed because of an internal error. Try your request again later</p>
73
+ *
74
+ * @throws {@link ThrottlingException} (client fault)
75
+ * <p>The request failed because it exceeded a throttling quota.</p>
76
+ *
77
+ * @throws {@link ValidationException} (client fault)
78
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
79
+ * requirements. The output is provided as a list of fields and a reason for each field that
80
+ * isn't valid.</p>
81
+ * <p>The possible reasons include the following:</p>
82
+ * <ul>
83
+ * <li>
84
+ * <p>
85
+ * <b>UnrecognizedEntityType</b>
86
+ * </p>
87
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
88
+ * </li>
89
+ * <li>
90
+ * <p>
91
+ * <b>UnrecognizedActionId</b>
92
+ * </p>
93
+ * <p>The policy includes an action id that isn't found in the schema.</p>
94
+ * </li>
95
+ * <li>
96
+ * <p>
97
+ * <b>InvalidActionApplication</b>
98
+ * </p>
99
+ * <p>The policy includes an action that, according to the schema, doesn't support
100
+ * the specified principal and resource.</p>
101
+ * </li>
102
+ * <li>
103
+ * <p>
104
+ * <b>UnexpectedType</b>
105
+ * </p>
106
+ * <p>The policy included an operand that isn't a valid type for the specified
107
+ * operation.</p>
108
+ * </li>
109
+ * <li>
110
+ * <p>
111
+ * <b>IncompatibleTypes</b>
112
+ * </p>
113
+ * <p>The types of elements included in a <code>set</code>, or the types of
114
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
115
+ * this context.</p>
116
+ * </li>
117
+ * <li>
118
+ * <p>
119
+ * <b>MissingAttribute</b>
120
+ * </p>
121
+ * <p>The policy attempts to access a record or entity attribute that isn't
122
+ * specified in the schema. Test for the existence of the attribute first before
123
+ * 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
124
+ * <i>Cedar Policy Language Guide</i>.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>
128
+ * <b>UnsafeOptionalAttributeAccess</b>
129
+ * </p>
130
+ * <p>The policy attempts to access a record or entity attribute that is optional
131
+ * and isn't guaranteed to be present. Test for the existence of the attribute
132
+ * first before attempting to access its value. For more information, see the
133
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
134
+ * <i>Cedar Policy Language Guide</i>.</p>
135
+ * </li>
136
+ * <li>
137
+ * <p>
138
+ * <b>ImpossiblePolicy</b>
139
+ * </p>
140
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
141
+ * the policy is always false, it can never apply to any query, and so it can never
142
+ * affect an authorization decision.</p>
143
+ * </li>
144
+ * <li>
145
+ * <p>
146
+ * <b>WrongNumberArguments</b>
147
+ * </p>
148
+ * <p>The policy references an extension type with the wrong number of
149
+ * arguments.</p>
150
+ * </li>
151
+ * <li>
152
+ * <p>
153
+ * <b>FunctionArgumentValidationError</b>
154
+ * </p>
155
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
156
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
157
+ * period character.</p>
158
+ * </li>
159
+ * </ul>
160
+ *
161
+ * @throws {@link VerifiedPermissionsServiceException}
162
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
163
+ *
164
+ */
165
+ export declare class CreatePolicyTemplateCommand extends $Command<CreatePolicyTemplateCommandInput, CreatePolicyTemplateCommandOutput, VerifiedPermissionsClientResolvedConfig> {
166
+ readonly input: CreatePolicyTemplateCommandInput;
167
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
168
+ /**
169
+ * @public
170
+ */
171
+ constructor(input: CreatePolicyTemplateCommandInput);
172
+ /**
173
+ * @internal
174
+ */
175
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreatePolicyTemplateCommandInput, CreatePolicyTemplateCommandOutput>;
176
+ /**
177
+ * @internal
178
+ */
179
+ private serialize;
180
+ /**
181
+ * @internal
182
+ */
183
+ private deserialize;
184
+ }
@@ -0,0 +1,175 @@
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 { DeleteIdentitySourceInput, DeleteIdentitySourceOutput } 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 DeleteIdentitySourceCommand}.
14
+ */
15
+ export interface DeleteIdentitySourceCommandInput extends DeleteIdentitySourceInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteIdentitySourceCommand}.
21
+ */
22
+ export interface DeleteIdentitySourceCommandOutput extends DeleteIdentitySourceOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes an identity source that references an identity provider (IdP) such as Amazon Cognito. After
27
+ * you delete the identity source, you can no longer use tokens for identities from that identity source to
28
+ * represent principals in authorization queries made using <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html">IsAuthorizedWithToken</a>.
29
+ * operations.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { VerifiedPermissionsClient, DeleteIdentitySourceCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
34
+ * // const { VerifiedPermissionsClient, DeleteIdentitySourceCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
35
+ * const client = new VerifiedPermissionsClient(config);
36
+ * const input = { // DeleteIdentitySourceInput
37
+ * policyStoreId: "STRING_VALUE", // required
38
+ * identitySourceId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeleteIdentitySourceCommand(input);
41
+ * const response = await client.send(command);
42
+ * // {};
43
+ *
44
+ * ```
45
+ *
46
+ * @param DeleteIdentitySourceCommandInput - {@link DeleteIdentitySourceCommandInput}
47
+ * @returns {@link DeleteIdentitySourceCommandOutput}
48
+ * @see {@link DeleteIdentitySourceCommandInput} for command's `input` shape.
49
+ * @see {@link DeleteIdentitySourceCommandOutput} for command's `response` shape.
50
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
51
+ *
52
+ * @throws {@link ConflictException} (client fault)
53
+ * <p>The request failed because another request to modify a resource occurred at the
54
+ * same.</p>
55
+ *
56
+ * @throws {@link ResourceNotFoundException} (client fault)
57
+ * <p>The request failed because it references a resource that doesn't exist.</p>
58
+ *
59
+ * @throws {@link AccessDeniedException} (client fault)
60
+ * <p>You don't have sufficient access to perform this action.</p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>The request failed because of an internal error. Try your request again later</p>
64
+ *
65
+ * @throws {@link ThrottlingException} (client fault)
66
+ * <p>The request failed because it exceeded a throttling quota.</p>
67
+ *
68
+ * @throws {@link ValidationException} (client fault)
69
+ * <p>The request failed because one or more input parameters don't satisfy their constraint
70
+ * requirements. The output is provided as a list of fields and a reason for each field that
71
+ * isn't valid.</p>
72
+ * <p>The possible reasons include the following:</p>
73
+ * <ul>
74
+ * <li>
75
+ * <p>
76
+ * <b>UnrecognizedEntityType</b>
77
+ * </p>
78
+ * <p>The policy includes an entity type that isn't found in the schema.</p>
79
+ * </li>
80
+ * <li>
81
+ * <p>
82
+ * <b>UnrecognizedActionId</b>
83
+ * </p>
84
+ * <p>The policy includes an action id that isn't found in the schema.</p>
85
+ * </li>
86
+ * <li>
87
+ * <p>
88
+ * <b>InvalidActionApplication</b>
89
+ * </p>
90
+ * <p>The policy includes an action that, according to the schema, doesn't support
91
+ * the specified principal and resource.</p>
92
+ * </li>
93
+ * <li>
94
+ * <p>
95
+ * <b>UnexpectedType</b>
96
+ * </p>
97
+ * <p>The policy included an operand that isn't a valid type for the specified
98
+ * operation.</p>
99
+ * </li>
100
+ * <li>
101
+ * <p>
102
+ * <b>IncompatibleTypes</b>
103
+ * </p>
104
+ * <p>The types of elements included in a <code>set</code>, or the types of
105
+ * expressions used in an <code>if...then...else</code> clause aren't compatible in
106
+ * this context.</p>
107
+ * </li>
108
+ * <li>
109
+ * <p>
110
+ * <b>MissingAttribute</b>
111
+ * </p>
112
+ * <p>The policy attempts to access a record or entity attribute that isn't
113
+ * specified in the schema. Test for the existence of the attribute first before
114
+ * 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
115
+ * <i>Cedar Policy Language Guide</i>.</p>
116
+ * </li>
117
+ * <li>
118
+ * <p>
119
+ * <b>UnsafeOptionalAttributeAccess</b>
120
+ * </p>
121
+ * <p>The policy attempts to access a record or entity attribute that is optional
122
+ * and isn't guaranteed to be present. Test for the existence of the attribute
123
+ * first before attempting to access its value. For more information, see the
124
+ * <a href="docs.cedarpolicy.comsyntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the
125
+ * <i>Cedar Policy Language Guide</i>.</p>
126
+ * </li>
127
+ * <li>
128
+ * <p>
129
+ * <b>ImpossiblePolicy</b>
130
+ * </p>
131
+ * <p>Cedar has determined that a policy condition always evaluates to false. If
132
+ * the policy is always false, it can never apply to any query, and so it can never
133
+ * affect an authorization decision.</p>
134
+ * </li>
135
+ * <li>
136
+ * <p>
137
+ * <b>WrongNumberArguments</b>
138
+ * </p>
139
+ * <p>The policy references an extension type with the wrong number of
140
+ * arguments.</p>
141
+ * </li>
142
+ * <li>
143
+ * <p>
144
+ * <b>FunctionArgumentValidationError</b>
145
+ * </p>
146
+ * <p>Cedar couldn't parse the argument passed to an extension type. For example,
147
+ * a string that is to be parsed as an IPv4 address can contain only digits and the
148
+ * period character.</p>
149
+ * </li>
150
+ * </ul>
151
+ *
152
+ * @throws {@link VerifiedPermissionsServiceException}
153
+ * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
154
+ *
155
+ */
156
+ export declare class DeleteIdentitySourceCommand extends $Command<DeleteIdentitySourceCommandInput, DeleteIdentitySourceCommandOutput, VerifiedPermissionsClientResolvedConfig> {
157
+ readonly input: DeleteIdentitySourceCommandInput;
158
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
159
+ /**
160
+ * @public
161
+ */
162
+ constructor(input: DeleteIdentitySourceCommandInput);
163
+ /**
164
+ * @internal
165
+ */
166
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteIdentitySourceCommandInput, DeleteIdentitySourceCommandOutput>;
167
+ /**
168
+ * @internal
169
+ */
170
+ private serialize;
171
+ /**
172
+ * @internal
173
+ */
174
+ private deserialize;
175
+ }
@@ -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 { DeletePolicyInput, DeletePolicyOutput } 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 DeletePolicyCommand}.
14
+ */
15
+ export interface DeletePolicyCommandInput extends DeletePolicyInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeletePolicyCommand}.
21
+ */
22
+ export interface DeletePolicyCommandOutput extends DeletePolicyOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes the specified policy from the policy store.</p>
27
+ * <p>This operation is idempotent; if you specify a policy that doesn't
28
+ * exist, the request response returns a successful <code>HTTP 200</code> status code.</p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { VerifiedPermissionsClient, DeletePolicyCommand } from "@aws-sdk/client-verifiedpermissions"; // ES Modules import
33
+ * // const { VerifiedPermissionsClient, DeletePolicyCommand } = require("@aws-sdk/client-verifiedpermissions"); // CommonJS import
34
+ * const client = new VerifiedPermissionsClient(config);
35
+ * const input = { // DeletePolicyInput
36
+ * policyStoreId: "STRING_VALUE", // required
37
+ * policyId: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new DeletePolicyCommand(input);
40
+ * const response = await client.send(command);
41
+ * // {};
42
+ *
43
+ * ```
44
+ *
45
+ * @param DeletePolicyCommandInput - {@link DeletePolicyCommandInput}
46
+ * @returns {@link DeletePolicyCommandOutput}
47
+ * @see {@link DeletePolicyCommandInput} for command's `input` shape.
48
+ * @see {@link DeletePolicyCommandOutput} for command's `response` shape.
49
+ * @see {@link VerifiedPermissionsClientResolvedConfig | config} for VerifiedPermissionsClient's `config` shape.
50
+ *
51
+ * @throws {@link ConflictException} (client fault)
52
+ * <p>The request failed because another request to modify a resource occurred at the
53
+ * same.</p>
54
+ *
55
+ * @throws {@link ResourceNotFoundException} (client fault)
56
+ * <p>The request failed because it references a resource that doesn't exist.</p>
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 DeletePolicyCommand extends $Command<DeletePolicyCommandInput, DeletePolicyCommandOutput, VerifiedPermissionsClientResolvedConfig> {
156
+ readonly input: DeletePolicyCommandInput;
157
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
158
+ /**
159
+ * @public
160
+ */
161
+ constructor(input: DeletePolicyCommandInput);
162
+ /**
163
+ * @internal
164
+ */
165
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: VerifiedPermissionsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeletePolicyCommandInput, DeletePolicyCommandOutput>;
166
+ /**
167
+ * @internal
168
+ */
169
+ private serialize;
170
+ /**
171
+ * @internal
172
+ */
173
+ private deserialize;
174
+ }