@aws-sdk/client-verifiedpermissions 3.933.0 → 3.935.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.
@@ -0,0 +1,171 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ResourceType } from "./enums";
3
+ import { ResourceConflict, ValidationExceptionField } from "./models_0";
4
+ import { VerifiedPermissionsServiceException as __BaseException } from "./VerifiedPermissionsServiceException";
5
+ /**
6
+ * <p>You don't have sufficient access to perform this action.</p>
7
+ * @public
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>The request failed because of an internal error. Try your request again later</p>
19
+ * @public
20
+ */
21
+ export declare class InternalServerException extends __BaseException {
22
+ readonly name: "InternalServerException";
23
+ readonly $fault: "server";
24
+ $retryable: {};
25
+ /**
26
+ * @internal
27
+ */
28
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
29
+ }
30
+ /**
31
+ * <p>The request failed because it exceeded a throttling quota.</p>
32
+ * @public
33
+ */
34
+ export declare class ThrottlingException extends __BaseException {
35
+ readonly name: "ThrottlingException";
36
+ readonly $fault: "client";
37
+ $retryable: {
38
+ throttling: boolean;
39
+ };
40
+ /**
41
+ * <p>The code for the Amazon Web Services service that owns the quota.</p>
42
+ * @public
43
+ */
44
+ serviceCode?: string | undefined;
45
+ /**
46
+ * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
47
+ * @public
48
+ */
49
+ quotaCode?: string | undefined;
50
+ /**
51
+ * @internal
52
+ */
53
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
54
+ }
55
+ /**
56
+ * <p>The request failed because one or more input parameters don't satisfy their constraint requirements. The output is provided as a list of fields and a reason for each field that isn't valid.</p> <p>The possible reasons include the following:</p> <ul> <li> <p> <b>UnrecognizedEntityType</b> </p> <p>The policy includes an entity type that isn't found in the schema.</p> </li> <li> <p> <b>UnrecognizedActionId</b> </p> <p>The policy includes an action id that isn't found in the schema.</p> </li> <li> <p> <b>InvalidActionApplication</b> </p> <p>The policy includes an action that, according to the schema, doesn't support the specified principal and resource.</p> </li> <li> <p> <b>UnexpectedType</b> </p> <p>The policy included an operand that isn't a valid type for the specified operation.</p> </li> <li> <p> <b>IncompatibleTypes</b> </p> <p>The types of elements included in a <code>set</code>, or the types of expressions used in an <code>if...then...else</code> clause aren't compatible in this context.</p> </li> <li> <p> <b>MissingAttribute</b> </p> <p>The policy attempts to access a record or entity attribute that isn't specified in the schema. Test for the existence of the attribute first before attempting to access its value. For more information, see the <a href="https://docs.cedarpolicy.com/policies/syntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the <i>Cedar Policy Language Guide</i>.</p> </li> <li> <p> <b>UnsafeOptionalAttributeAccess</b> </p> <p>The policy attempts to access a record or entity attribute that is optional and isn't guaranteed to be present. Test for the existence of the attribute first before attempting to access its value. For more information, see the <a href="https://docs.cedarpolicy.com/policies/syntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the <i>Cedar Policy Language Guide</i>.</p> </li> <li> <p> <b>ImpossiblePolicy</b> </p> <p>Cedar has determined that a policy condition always evaluates to false. If the policy is always false, it can never apply to any query, and so it can never affect an authorization decision.</p> </li> <li> <p> <b>WrongNumberArguments</b> </p> <p>The policy references an extension type with the wrong number of arguments.</p> </li> <li> <p> <b>FunctionArgumentValidationError</b> </p> <p>Cedar couldn't parse the argument passed to an extension type. For example, a string that is to be parsed as an IPv4 address can contain only digits and the period character.</p> </li> </ul>
57
+ * @public
58
+ */
59
+ export declare class ValidationException extends __BaseException {
60
+ readonly name: "ValidationException";
61
+ readonly $fault: "client";
62
+ /**
63
+ * <p>The list of fields that aren't valid.</p>
64
+ * @public
65
+ */
66
+ fieldList?: ValidationExceptionField[] | undefined;
67
+ /**
68
+ * @internal
69
+ */
70
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
71
+ }
72
+ /**
73
+ * <p>The request failed because it references a resource that doesn't exist.</p>
74
+ * @public
75
+ */
76
+ export declare class ResourceNotFoundException extends __BaseException {
77
+ readonly name: "ResourceNotFoundException";
78
+ readonly $fault: "client";
79
+ /**
80
+ * <p>The unique ID of the resource referenced in the failed request.</p>
81
+ * @public
82
+ */
83
+ resourceId: string | undefined;
84
+ /**
85
+ * <p>The resource type of the resource referenced in the failed request.</p>
86
+ * @public
87
+ */
88
+ resourceType: ResourceType | undefined;
89
+ /**
90
+ * @internal
91
+ */
92
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
93
+ }
94
+ /**
95
+ * <p>The request failed because another request to modify a resource occurred at the same.</p>
96
+ * @public
97
+ */
98
+ export declare class ConflictException extends __BaseException {
99
+ readonly name: "ConflictException";
100
+ readonly $fault: "client";
101
+ /**
102
+ * <p>The list of resources referenced with this failed request.</p>
103
+ * @public
104
+ */
105
+ resources: ResourceConflict[] | undefined;
106
+ /**
107
+ * @internal
108
+ */
109
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
110
+ }
111
+ /**
112
+ * <p>The request failed because it would cause a service quota to be exceeded.</p>
113
+ * @public
114
+ */
115
+ export declare class ServiceQuotaExceededException extends __BaseException {
116
+ readonly name: "ServiceQuotaExceededException";
117
+ readonly $fault: "client";
118
+ /**
119
+ * <p>The unique ID of the resource referenced in the failed request.</p>
120
+ * @public
121
+ */
122
+ resourceId?: string | undefined;
123
+ /**
124
+ * <p>The resource type of the resource referenced in the failed request.</p>
125
+ * @public
126
+ */
127
+ resourceType: ResourceType | undefined;
128
+ /**
129
+ * <p>The code for the Amazon Web Services service that owns the quota.</p>
130
+ * @public
131
+ */
132
+ serviceCode?: string | undefined;
133
+ /**
134
+ * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
135
+ * @public
136
+ */
137
+ quotaCode?: string | undefined;
138
+ /**
139
+ * @internal
140
+ */
141
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
142
+ }
143
+ /**
144
+ * <p>The policy store can't be deleted because deletion protection is enabled. To delete this policy store, disable deletion protection.</p>
145
+ * @public
146
+ */
147
+ export declare class InvalidStateException extends __BaseException {
148
+ readonly name: "InvalidStateException";
149
+ readonly $fault: "client";
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
154
+ }
155
+ /**
156
+ * <p>No more tags be added because the limit (50) has been reached. To add new tags, use <code>UntagResource</code> to remove existing tags.</p>
157
+ * @public
158
+ */
159
+ export declare class TooManyTagsException extends __BaseException {
160
+ readonly name: "TooManyTagsException";
161
+ readonly $fault: "client";
162
+ /**
163
+ * An Amazon Resource Name (ARN) uniquely identifies an AWS resource.
164
+ * @public
165
+ */
166
+ resourceName?: string | undefined;
167
+ /**
168
+ * @internal
169
+ */
170
+ constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
171
+ }
@@ -1,17 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { VerifiedPermissionsServiceException as __BaseException } from "./VerifiedPermissionsServiceException";
3
- /**
4
- * <p>You don't have sufficient access to perform this action.</p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
1
+ import { BatchGetPolicyErrorCode, CedarVersion, Decision, DeletionProtection, OpenIdIssuer, PolicyEffect, PolicyType, ResourceType, ValidationMode } from "./enums";
15
2
  /**
16
3
  * <p>Contains information about an action for a request for which an authorization decision is made.</p> <p>This data type is used as a request parameter to the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorized.html">IsAuthorized</a>, <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_BatchIsAuthorized.html">BatchIsAuthorized</a>, and <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html">IsAuthorizedWithToken</a> operations.</p> <p>Example: <code>\{ "actionId": "&lt;action name&gt;", "actionType": "Action" \}</code> </p>
17
4
  * @public
@@ -70,18 +57,6 @@ export interface BatchGetPolicyInput {
70
57
  */
71
58
  requests: BatchGetPolicyInputItem[] | undefined;
72
59
  }
73
- /**
74
- * @public
75
- * @enum
76
- */
77
- export declare const BatchGetPolicyErrorCode: {
78
- readonly POLICY_NOT_FOUND: "POLICY_NOT_FOUND";
79
- readonly POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND";
80
- };
81
- /**
82
- * @public
83
- */
84
- export type BatchGetPolicyErrorCode = (typeof BatchGetPolicyErrorCode)[keyof typeof BatchGetPolicyErrorCode];
85
60
  /**
86
61
  * <p>Contains the information about an error resulting from a <code>BatchGetPolicy</code> API call.</p>
87
62
  * @public
@@ -190,18 +165,6 @@ export declare namespace PolicyDefinitionDetail {
190
165
  _: (name: string, value: any) => T;
191
166
  }
192
167
  }
193
- /**
194
- * @public
195
- * @enum
196
- */
197
- export declare const PolicyType: {
198
- readonly STATIC: "STATIC";
199
- readonly TEMPLATE_LINKED: "TEMPLATE_LINKED";
200
- };
201
- /**
202
- * @public
203
- */
204
- export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
205
168
  /**
206
169
  * <p>Contains information about a policy returned from a <code>BatchGetPolicy</code> API request.</p>
207
170
  * @public
@@ -253,44 +216,6 @@ export interface BatchGetPolicyOutput {
253
216
  */
254
217
  errors: BatchGetPolicyErrorItem[] | undefined;
255
218
  }
256
- /**
257
- * <p>The request failed because of an internal error. Try your request again later</p>
258
- * @public
259
- */
260
- export declare class InternalServerException extends __BaseException {
261
- readonly name: "InternalServerException";
262
- readonly $fault: "server";
263
- $retryable: {};
264
- /**
265
- * @internal
266
- */
267
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
268
- }
269
- /**
270
- * <p>The request failed because it exceeded a throttling quota.</p>
271
- * @public
272
- */
273
- export declare class ThrottlingException extends __BaseException {
274
- readonly name: "ThrottlingException";
275
- readonly $fault: "client";
276
- $retryable: {
277
- throttling: boolean;
278
- };
279
- /**
280
- * <p>The code for the Amazon Web Services service that owns the quota.</p>
281
- * @public
282
- */
283
- serviceCode?: string | undefined;
284
- /**
285
- * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
286
- * @public
287
- */
288
- quotaCode?: string | undefined;
289
- /**
290
- * @internal
291
- */
292
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
293
- }
294
219
  /**
295
220
  * <p>Details about a field that failed policy validation.</p>
296
221
  * @public
@@ -307,35 +232,6 @@ export interface ValidationExceptionField {
307
232
  */
308
233
  message: string | undefined;
309
234
  }
310
- /**
311
- * <p>The request failed because one or more input parameters don't satisfy their constraint requirements. The output is provided as a list of fields and a reason for each field that isn't valid.</p> <p>The possible reasons include the following:</p> <ul> <li> <p> <b>UnrecognizedEntityType</b> </p> <p>The policy includes an entity type that isn't found in the schema.</p> </li> <li> <p> <b>UnrecognizedActionId</b> </p> <p>The policy includes an action id that isn't found in the schema.</p> </li> <li> <p> <b>InvalidActionApplication</b> </p> <p>The policy includes an action that, according to the schema, doesn't support the specified principal and resource.</p> </li> <li> <p> <b>UnexpectedType</b> </p> <p>The policy included an operand that isn't a valid type for the specified operation.</p> </li> <li> <p> <b>IncompatibleTypes</b> </p> <p>The types of elements included in a <code>set</code>, or the types of expressions used in an <code>if...then...else</code> clause aren't compatible in this context.</p> </li> <li> <p> <b>MissingAttribute</b> </p> <p>The policy attempts to access a record or entity attribute that isn't specified in the schema. Test for the existence of the attribute first before attempting to access its value. For more information, see the <a href="https://docs.cedarpolicy.com/policies/syntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the <i>Cedar Policy Language Guide</i>.</p> </li> <li> <p> <b>UnsafeOptionalAttributeAccess</b> </p> <p>The policy attempts to access a record or entity attribute that is optional and isn't guaranteed to be present. Test for the existence of the attribute first before attempting to access its value. For more information, see the <a href="https://docs.cedarpolicy.com/policies/syntax-operators.html#has-presence-of-attribute-test">has (presence of attribute test) operator</a> in the <i>Cedar Policy Language Guide</i>.</p> </li> <li> <p> <b>ImpossiblePolicy</b> </p> <p>Cedar has determined that a policy condition always evaluates to false. If the policy is always false, it can never apply to any query, and so it can never affect an authorization decision.</p> </li> <li> <p> <b>WrongNumberArguments</b> </p> <p>The policy references an extension type with the wrong number of arguments.</p> </li> <li> <p> <b>FunctionArgumentValidationError</b> </p> <p>Cedar couldn't parse the argument passed to an extension type. For example, a string that is to be parsed as an IPv4 address can contain only digits and the period character.</p> </li> </ul>
312
- * @public
313
- */
314
- export declare class ValidationException extends __BaseException {
315
- readonly name: "ValidationException";
316
- readonly $fault: "client";
317
- /**
318
- * <p>The list of fields that aren't valid.</p>
319
- * @public
320
- */
321
- fieldList?: ValidationExceptionField[] | undefined;
322
- /**
323
- * @internal
324
- */
325
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
326
- }
327
- /**
328
- * @public
329
- * @enum
330
- */
331
- export declare const Decision: {
332
- readonly ALLOW: "ALLOW";
333
- readonly DENY: "DENY";
334
- };
335
- /**
336
- * @public
337
- */
338
- export type Decision = (typeof Decision)[keyof typeof Decision];
339
235
  /**
340
236
  * <p>Contains information about one of the policies that determined an authorization decision.</p> <p>This data type is used as an element in a response parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorized.html">IsAuthorized</a>, <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_BatchIsAuthorized.html">BatchIsAuthorized</a>, and <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_IsAuthorizedWithToken.html">IsAuthorizedWithToken</a> operations.</p> <p>Example: <code>"determiningPolicies":[\{"policyId":"SPEXAMPLEabcdefg111111"\}]</code> </p>
341
237
  * @public
@@ -358,55 +254,6 @@ export interface EvaluationErrorItem {
358
254
  */
359
255
  errorDescription: string | undefined;
360
256
  }
361
- /**
362
- * @public
363
- * @enum
364
- */
365
- export declare const ResourceType: {
366
- readonly IDENTITY_SOURCE: "IDENTITY_SOURCE";
367
- readonly POLICY: "POLICY";
368
- readonly POLICY_STORE: "POLICY_STORE";
369
- readonly POLICY_TEMPLATE: "POLICY_TEMPLATE";
370
- readonly SCHEMA: "SCHEMA";
371
- };
372
- /**
373
- * @public
374
- */
375
- export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
376
- /**
377
- * <p>The request failed because it references a resource that doesn't exist.</p>
378
- * @public
379
- */
380
- export declare class ResourceNotFoundException extends __BaseException {
381
- readonly name: "ResourceNotFoundException";
382
- readonly $fault: "client";
383
- /**
384
- * <p>The unique ID of the resource referenced in the failed request.</p>
385
- * @public
386
- */
387
- resourceId: string | undefined;
388
- /**
389
- * <p>The resource type of the resource referenced in the failed request.</p>
390
- * @public
391
- */
392
- resourceType: ResourceType | undefined;
393
- /**
394
- * @internal
395
- */
396
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
397
- }
398
- /**
399
- * @public
400
- * @enum
401
- */
402
- export declare const CedarVersion: {
403
- readonly CEDAR_2: "CEDAR_2";
404
- readonly CEDAR_4: "CEDAR_4";
405
- };
406
- /**
407
- * @public
408
- */
409
- export type CedarVersion = (typeof CedarVersion)[keyof typeof CedarVersion];
410
257
  /**
411
258
  * <p>The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.</p> <p>This data type is part of a <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CognitoUserPoolConfiguration.html">CognitoUserPoolConfiguration</a> structure and is a request parameter in <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html">CreateIdentitySource</a>.</p>
412
259
  * @public
@@ -1021,23 +868,6 @@ export interface ResourceConflict {
1021
868
  */
1022
869
  resourceType: ResourceType | undefined;
1023
870
  }
1024
- /**
1025
- * <p>The request failed because another request to modify a resource occurred at the same.</p>
1026
- * @public
1027
- */
1028
- export declare class ConflictException extends __BaseException {
1029
- readonly name: "ConflictException";
1030
- readonly $fault: "client";
1031
- /**
1032
- * <p>The list of resources referenced with this failed request.</p>
1033
- * @public
1034
- */
1035
- resources: ResourceConflict[] | undefined;
1036
- /**
1037
- * @internal
1038
- */
1039
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
1040
- }
1041
871
  /**
1042
872
  * @public
1043
873
  */
@@ -1088,38 +918,6 @@ export interface CreateIdentitySourceOutput {
1088
918
  */
1089
919
  policyStoreId: string | undefined;
1090
920
  }
1091
- /**
1092
- * <p>The request failed because it would cause a service quota to be exceeded.</p>
1093
- * @public
1094
- */
1095
- export declare class ServiceQuotaExceededException extends __BaseException {
1096
- readonly name: "ServiceQuotaExceededException";
1097
- readonly $fault: "client";
1098
- /**
1099
- * <p>The unique ID of the resource referenced in the failed request.</p>
1100
- * @public
1101
- */
1102
- resourceId?: string | undefined;
1103
- /**
1104
- * <p>The resource type of the resource referenced in the failed request.</p>
1105
- * @public
1106
- */
1107
- resourceType: ResourceType | undefined;
1108
- /**
1109
- * <p>The code for the Amazon Web Services service that owns the quota.</p>
1110
- * @public
1111
- */
1112
- serviceCode?: string | undefined;
1113
- /**
1114
- * <p>The quota code recognized by the Amazon Web Services Service Quotas service.</p>
1115
- * @public
1116
- */
1117
- quotaCode?: string | undefined;
1118
- /**
1119
- * @internal
1120
- */
1121
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
1122
- }
1123
921
  /**
1124
922
  * <p>Contains information about a static policy.</p> <p>This data type is used as a field that is part of the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_PolicyDefinitionDetail.html">PolicyDefinitionDetail</a> type.</p>
1125
923
  * @public
@@ -1222,18 +1020,6 @@ export interface CreatePolicyInput {
1222
1020
  */
1223
1021
  definition: PolicyDefinition | undefined;
1224
1022
  }
1225
- /**
1226
- * @public
1227
- * @enum
1228
- */
1229
- export declare const PolicyEffect: {
1230
- readonly FORBID: "Forbid";
1231
- readonly PERMIT: "Permit";
1232
- };
1233
- /**
1234
- * @public
1235
- */
1236
- export type PolicyEffect = (typeof PolicyEffect)[keyof typeof PolicyEffect];
1237
1023
  /**
1238
1024
  * @public
1239
1025
  */
@@ -1284,30 +1070,6 @@ export interface CreatePolicyOutput {
1284
1070
  */
1285
1071
  effect?: PolicyEffect | undefined;
1286
1072
  }
1287
- /**
1288
- * @public
1289
- * @enum
1290
- */
1291
- export declare const DeletionProtection: {
1292
- readonly DISABLED: "DISABLED";
1293
- readonly ENABLED: "ENABLED";
1294
- };
1295
- /**
1296
- * @public
1297
- */
1298
- export type DeletionProtection = (typeof DeletionProtection)[keyof typeof DeletionProtection];
1299
- /**
1300
- * @public
1301
- * @enum
1302
- */
1303
- export declare const ValidationMode: {
1304
- readonly OFF: "OFF";
1305
- readonly STRICT: "STRICT";
1306
- };
1307
- /**
1308
- * @public
1309
- */
1310
- export type ValidationMode = (typeof ValidationMode)[keyof typeof ValidationMode];
1311
1073
  /**
1312
1074
  * <p>A structure that contains Cedar policy validation settings for the policy store. The validation mode determines which validation failures that Cedar considers serious enough to block acceptance of a new or edited static policy or policy template. </p> <p>This data type is used as a request parameter in the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicyStore.html">CreatePolicyStore</a> and <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_UpdatePolicyStore.html">UpdatePolicyStore</a> operations.</p>
1313
1075
  * @public
@@ -1479,18 +1241,6 @@ export interface DeletePolicyStoreInput {
1479
1241
  */
1480
1242
  export interface DeletePolicyStoreOutput {
1481
1243
  }
1482
- /**
1483
- * <p>The policy store can't be deleted because deletion protection is enabled. To delete this policy store, disable deletion protection.</p>
1484
- * @public
1485
- */
1486
- export declare class InvalidStateException extends __BaseException {
1487
- readonly name: "InvalidStateException";
1488
- readonly $fault: "client";
1489
- /**
1490
- * @internal
1491
- */
1492
- constructor(opts: __ExceptionOptionType<InvalidStateException, __BaseException>);
1493
- }
1494
1244
  /**
1495
1245
  * @public
1496
1246
  */
@@ -1571,17 +1321,6 @@ export interface GetIdentitySourceInput {
1571
1321
  */
1572
1322
  identitySourceId: string | undefined;
1573
1323
  }
1574
- /**
1575
- * @public
1576
- * @enum
1577
- */
1578
- export declare const OpenIdIssuer: {
1579
- readonly COGNITO: "COGNITO";
1580
- };
1581
- /**
1582
- * @public
1583
- */
1584
- export type OpenIdIssuer = (typeof OpenIdIssuer)[keyof typeof OpenIdIssuer];
1585
1324
  /**
1586
1325
  * <p>A structure that contains configuration of the identity source.</p> <p>This data type was a response parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetIdentitySource.html">GetIdentitySource</a> operation. Replaced by <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ConfigurationDetail.html">ConfigurationDetail</a>.</p>
1587
1326
  *
@@ -2964,23 +2703,6 @@ export interface TagResourceInput {
2964
2703
  */
2965
2704
  export interface TagResourceOutput {
2966
2705
  }
2967
- /**
2968
- * <p>No more tags be added because the limit (50) has been reached. To add new tags, use <code>UntagResource</code> to remove existing tags.</p>
2969
- * @public
2970
- */
2971
- export declare class TooManyTagsException extends __BaseException {
2972
- readonly name: "TooManyTagsException";
2973
- readonly $fault: "client";
2974
- /**
2975
- * An Amazon Resource Name (ARN) uniquely identifies an AWS resource.
2976
- * @public
2977
- */
2978
- resourceName?: string | undefined;
2979
- /**
2980
- * @internal
2981
- */
2982
- constructor(opts: __ExceptionOptionType<TooManyTagsException, __BaseException>);
2983
- }
2984
2706
  /**
2985
2707
  * @public
2986
2708
  */
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { VerifiedPermissionsExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { VerifiedPermissionsServiceException } from "./models/VerifiedPermissionsServiceException";
@@ -0,0 +1,50 @@
1
+ export declare const BatchGetPolicyErrorCode: {
2
+ readonly POLICY_NOT_FOUND: "POLICY_NOT_FOUND";
3
+ readonly POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND";
4
+ };
5
+ export type BatchGetPolicyErrorCode =
6
+ (typeof BatchGetPolicyErrorCode)[keyof typeof BatchGetPolicyErrorCode];
7
+ export declare const PolicyType: {
8
+ readonly STATIC: "STATIC";
9
+ readonly TEMPLATE_LINKED: "TEMPLATE_LINKED";
10
+ };
11
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
12
+ export declare const Decision: {
13
+ readonly ALLOW: "ALLOW";
14
+ readonly DENY: "DENY";
15
+ };
16
+ export type Decision = (typeof Decision)[keyof typeof Decision];
17
+ export declare const ResourceType: {
18
+ readonly IDENTITY_SOURCE: "IDENTITY_SOURCE";
19
+ readonly POLICY: "POLICY";
20
+ readonly POLICY_STORE: "POLICY_STORE";
21
+ readonly POLICY_TEMPLATE: "POLICY_TEMPLATE";
22
+ readonly SCHEMA: "SCHEMA";
23
+ };
24
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
25
+ export declare const CedarVersion: {
26
+ readonly CEDAR_2: "CEDAR_2";
27
+ readonly CEDAR_4: "CEDAR_4";
28
+ };
29
+ export type CedarVersion = (typeof CedarVersion)[keyof typeof CedarVersion];
30
+ export declare const PolicyEffect: {
31
+ readonly FORBID: "Forbid";
32
+ readonly PERMIT: "Permit";
33
+ };
34
+ export type PolicyEffect = (typeof PolicyEffect)[keyof typeof PolicyEffect];
35
+ export declare const DeletionProtection: {
36
+ readonly DISABLED: "DISABLED";
37
+ readonly ENABLED: "ENABLED";
38
+ };
39
+ export type DeletionProtection =
40
+ (typeof DeletionProtection)[keyof typeof DeletionProtection];
41
+ export declare const ValidationMode: {
42
+ readonly OFF: "OFF";
43
+ readonly STRICT: "STRICT";
44
+ };
45
+ export type ValidationMode =
46
+ (typeof ValidationMode)[keyof typeof ValidationMode];
47
+ export declare const OpenIdIssuer: {
48
+ readonly COGNITO: "COGNITO";
49
+ };
50
+ export type OpenIdIssuer = (typeof OpenIdIssuer)[keyof typeof OpenIdIssuer];
@@ -0,0 +1,80 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { ResourceType } from "./enums";
3
+ import { ResourceConflict, ValidationExceptionField } from "./models_0";
4
+ import { VerifiedPermissionsServiceException as __BaseException } from "./VerifiedPermissionsServiceException";
5
+ export declare class AccessDeniedException extends __BaseException {
6
+ readonly name: "AccessDeniedException";
7
+ readonly $fault: "client";
8
+ constructor(
9
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
10
+ );
11
+ }
12
+ export declare class InternalServerException extends __BaseException {
13
+ readonly name: "InternalServerException";
14
+ readonly $fault: "server";
15
+ $retryable: {};
16
+ constructor(
17
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
18
+ );
19
+ }
20
+ export declare class ThrottlingException extends __BaseException {
21
+ readonly name: "ThrottlingException";
22
+ readonly $fault: "client";
23
+ $retryable: {
24
+ throttling: boolean;
25
+ };
26
+ serviceCode?: string | undefined;
27
+ quotaCode?: string | undefined;
28
+ constructor(
29
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
30
+ );
31
+ }
32
+ export declare class ValidationException extends __BaseException {
33
+ readonly name: "ValidationException";
34
+ readonly $fault: "client";
35
+ fieldList?: ValidationExceptionField[] | undefined;
36
+ constructor(
37
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
38
+ );
39
+ }
40
+ export declare class ResourceNotFoundException extends __BaseException {
41
+ readonly name: "ResourceNotFoundException";
42
+ readonly $fault: "client";
43
+ resourceId: string | undefined;
44
+ resourceType: ResourceType | undefined;
45
+ constructor(
46
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
47
+ );
48
+ }
49
+ export declare class ConflictException extends __BaseException {
50
+ readonly name: "ConflictException";
51
+ readonly $fault: "client";
52
+ resources: ResourceConflict[] | undefined;
53
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
54
+ }
55
+ export declare class ServiceQuotaExceededException extends __BaseException {
56
+ readonly name: "ServiceQuotaExceededException";
57
+ readonly $fault: "client";
58
+ resourceId?: string | undefined;
59
+ resourceType: ResourceType | undefined;
60
+ serviceCode?: string | undefined;
61
+ quotaCode?: string | undefined;
62
+ constructor(
63
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
64
+ );
65
+ }
66
+ export declare class InvalidStateException extends __BaseException {
67
+ readonly name: "InvalidStateException";
68
+ readonly $fault: "client";
69
+ constructor(
70
+ opts: __ExceptionOptionType<InvalidStateException, __BaseException>
71
+ );
72
+ }
73
+ export declare class TooManyTagsException extends __BaseException {
74
+ readonly name: "TooManyTagsException";
75
+ readonly $fault: "client";
76
+ resourceName?: string | undefined;
77
+ constructor(
78
+ opts: __ExceptionOptionType<TooManyTagsException, __BaseException>
79
+ );
80
+ }