@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.
package/dist-cjs/index.js CHANGED
@@ -129,14 +129,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends VerifiedPermis
129
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
130
  }
131
131
  };
132
- const BatchGetPolicyErrorCode = {
133
- POLICY_NOT_FOUND: "POLICY_NOT_FOUND",
134
- POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND",
135
- };
136
- const PolicyType = {
137
- STATIC: "STATIC",
138
- TEMPLATE_LINKED: "TEMPLATE_LINKED",
139
- };
140
132
  let InternalServerException$1 = class InternalServerException extends VerifiedPermissionsServiceException$1 {
141
133
  name = "InternalServerException";
142
134
  $fault = "server";
@@ -183,17 +175,6 @@ let ValidationException$1 = class ValidationException extends VerifiedPermission
183
175
  this.fieldList = opts.fieldList;
184
176
  }
185
177
  };
186
- const Decision = {
187
- ALLOW: "ALLOW",
188
- DENY: "DENY",
189
- };
190
- const ResourceType = {
191
- IDENTITY_SOURCE: "IDENTITY_SOURCE",
192
- POLICY: "POLICY",
193
- POLICY_STORE: "POLICY_STORE",
194
- POLICY_TEMPLATE: "POLICY_TEMPLATE",
195
- SCHEMA: "SCHEMA",
196
- };
197
178
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends VerifiedPermissionsServiceException$1 {
198
179
  name = "ResourceNotFoundException";
199
180
  $fault = "client";
@@ -210,10 +191,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends Verifi
210
191
  this.resourceType = opts.resourceType;
211
192
  }
212
193
  };
213
- const CedarVersion = {
214
- CEDAR_2: "CEDAR_2",
215
- CEDAR_4: "CEDAR_4",
216
- };
217
194
  let ConflictException$1 = class ConflictException extends VerifiedPermissionsServiceException$1 {
218
195
  name = "ConflictException";
219
196
  $fault = "client";
@@ -248,18 +225,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
248
225
  this.quotaCode = opts.quotaCode;
249
226
  }
250
227
  };
251
- const PolicyEffect = {
252
- FORBID: "Forbid",
253
- PERMIT: "Permit",
254
- };
255
- const DeletionProtection = {
256
- DISABLED: "DISABLED",
257
- ENABLED: "ENABLED",
258
- };
259
- const ValidationMode = {
260
- OFF: "OFF",
261
- STRICT: "STRICT",
262
- };
263
228
  let InvalidStateException$1 = class InvalidStateException extends VerifiedPermissionsServiceException$1 {
264
229
  name = "InvalidStateException";
265
230
  $fault = "client";
@@ -272,9 +237,6 @@ let InvalidStateException$1 = class InvalidStateException extends VerifiedPermis
272
237
  Object.setPrototypeOf(this, InvalidStateException.prototype);
273
238
  }
274
239
  };
275
- const OpenIdIssuer = {
276
- COGNITO: "COGNITO",
277
- };
278
240
  let TooManyTagsException$1 = class TooManyTagsException extends VerifiedPermissionsServiceException$1 {
279
241
  name = "TooManyTagsException";
280
242
  $fault = "client";
@@ -2316,6 +2278,45 @@ const paginateListPolicyStores = core.createPaginator(VerifiedPermissionsClient,
2316
2278
 
2317
2279
  const paginateListPolicyTemplates = core.createPaginator(VerifiedPermissionsClient, ListPolicyTemplatesCommand, "nextToken", "nextToken", "maxResults");
2318
2280
 
2281
+ const BatchGetPolicyErrorCode = {
2282
+ POLICY_NOT_FOUND: "POLICY_NOT_FOUND",
2283
+ POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND",
2284
+ };
2285
+ const PolicyType = {
2286
+ STATIC: "STATIC",
2287
+ TEMPLATE_LINKED: "TEMPLATE_LINKED",
2288
+ };
2289
+ const Decision = {
2290
+ ALLOW: "ALLOW",
2291
+ DENY: "DENY",
2292
+ };
2293
+ const ResourceType = {
2294
+ IDENTITY_SOURCE: "IDENTITY_SOURCE",
2295
+ POLICY: "POLICY",
2296
+ POLICY_STORE: "POLICY_STORE",
2297
+ POLICY_TEMPLATE: "POLICY_TEMPLATE",
2298
+ SCHEMA: "SCHEMA",
2299
+ };
2300
+ const CedarVersion = {
2301
+ CEDAR_2: "CEDAR_2",
2302
+ CEDAR_4: "CEDAR_4",
2303
+ };
2304
+ const PolicyEffect = {
2305
+ FORBID: "Forbid",
2306
+ PERMIT: "Permit",
2307
+ };
2308
+ const DeletionProtection = {
2309
+ DISABLED: "DISABLED",
2310
+ ENABLED: "ENABLED",
2311
+ };
2312
+ const ValidationMode = {
2313
+ OFF: "OFF",
2314
+ STRICT: "STRICT",
2315
+ };
2316
+ const OpenIdIssuer = {
2317
+ COGNITO: "COGNITO",
2318
+ };
2319
+
2319
2320
  Object.defineProperty(exports, "$Command", {
2320
2321
  enumerable: true,
2321
2322
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./VerifiedPermissionsClient";
2
2
  export * from "./VerifiedPermissions";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { VerifiedPermissionsServiceException } from "./models/VerifiedPermissionsServiceException";
@@ -0,0 +1,38 @@
1
+ export const BatchGetPolicyErrorCode = {
2
+ POLICY_NOT_FOUND: "POLICY_NOT_FOUND",
3
+ POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND",
4
+ };
5
+ export const PolicyType = {
6
+ STATIC: "STATIC",
7
+ TEMPLATE_LINKED: "TEMPLATE_LINKED",
8
+ };
9
+ export const Decision = {
10
+ ALLOW: "ALLOW",
11
+ DENY: "DENY",
12
+ };
13
+ export const ResourceType = {
14
+ IDENTITY_SOURCE: "IDENTITY_SOURCE",
15
+ POLICY: "POLICY",
16
+ POLICY_STORE: "POLICY_STORE",
17
+ POLICY_TEMPLATE: "POLICY_TEMPLATE",
18
+ SCHEMA: "SCHEMA",
19
+ };
20
+ export const CedarVersion = {
21
+ CEDAR_2: "CEDAR_2",
22
+ CEDAR_4: "CEDAR_4",
23
+ };
24
+ export const PolicyEffect = {
25
+ FORBID: "Forbid",
26
+ PERMIT: "Permit",
27
+ };
28
+ export const DeletionProtection = {
29
+ DISABLED: "DISABLED",
30
+ ENABLED: "ENABLED",
31
+ };
32
+ export const ValidationMode = {
33
+ OFF: "OFF",
34
+ STRICT: "STRICT",
35
+ };
36
+ export const OpenIdIssuer = {
37
+ COGNITO: "COGNITO",
38
+ };
@@ -0,0 +1,135 @@
1
+ import { VerifiedPermissionsServiceException as __BaseException } from "./VerifiedPermissionsServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class InternalServerException extends __BaseException {
15
+ name = "InternalServerException";
16
+ $fault = "server";
17
+ $retryable = {};
18
+ constructor(opts) {
19
+ super({
20
+ name: "InternalServerException",
21
+ $fault: "server",
22
+ ...opts,
23
+ });
24
+ Object.setPrototypeOf(this, InternalServerException.prototype);
25
+ }
26
+ }
27
+ export class ThrottlingException extends __BaseException {
28
+ name = "ThrottlingException";
29
+ $fault = "client";
30
+ $retryable = {
31
+ throttling: true,
32
+ };
33
+ serviceCode;
34
+ quotaCode;
35
+ constructor(opts) {
36
+ super({
37
+ name: "ThrottlingException",
38
+ $fault: "client",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
42
+ this.serviceCode = opts.serviceCode;
43
+ this.quotaCode = opts.quotaCode;
44
+ }
45
+ }
46
+ export class ValidationException extends __BaseException {
47
+ name = "ValidationException";
48
+ $fault = "client";
49
+ fieldList;
50
+ constructor(opts) {
51
+ super({
52
+ name: "ValidationException",
53
+ $fault: "client",
54
+ ...opts,
55
+ });
56
+ Object.setPrototypeOf(this, ValidationException.prototype);
57
+ this.fieldList = opts.fieldList;
58
+ }
59
+ }
60
+ export class ResourceNotFoundException extends __BaseException {
61
+ name = "ResourceNotFoundException";
62
+ $fault = "client";
63
+ resourceId;
64
+ resourceType;
65
+ constructor(opts) {
66
+ super({
67
+ name: "ResourceNotFoundException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
72
+ this.resourceId = opts.resourceId;
73
+ this.resourceType = opts.resourceType;
74
+ }
75
+ }
76
+ export class ConflictException extends __BaseException {
77
+ name = "ConflictException";
78
+ $fault = "client";
79
+ resources;
80
+ constructor(opts) {
81
+ super({
82
+ name: "ConflictException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ Object.setPrototypeOf(this, ConflictException.prototype);
87
+ this.resources = opts.resources;
88
+ }
89
+ }
90
+ export class ServiceQuotaExceededException extends __BaseException {
91
+ name = "ServiceQuotaExceededException";
92
+ $fault = "client";
93
+ resourceId;
94
+ resourceType;
95
+ serviceCode;
96
+ quotaCode;
97
+ constructor(opts) {
98
+ super({
99
+ name: "ServiceQuotaExceededException",
100
+ $fault: "client",
101
+ ...opts,
102
+ });
103
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
104
+ this.resourceId = opts.resourceId;
105
+ this.resourceType = opts.resourceType;
106
+ this.serviceCode = opts.serviceCode;
107
+ this.quotaCode = opts.quotaCode;
108
+ }
109
+ }
110
+ export class InvalidStateException extends __BaseException {
111
+ name = "InvalidStateException";
112
+ $fault = "client";
113
+ constructor(opts) {
114
+ super({
115
+ name: "InvalidStateException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, InvalidStateException.prototype);
120
+ }
121
+ }
122
+ export class TooManyTagsException extends __BaseException {
123
+ name = "TooManyTagsException";
124
+ $fault = "client";
125
+ resourceName;
126
+ constructor(opts) {
127
+ super({
128
+ name: "TooManyTagsException",
129
+ $fault: "client",
130
+ ...opts,
131
+ });
132
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
133
+ this.resourceName = opts.resourceName;
134
+ }
135
+ }
@@ -1,173 +1 @@
1
- import { VerifiedPermissionsServiceException as __BaseException } from "./VerifiedPermissionsServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export const BatchGetPolicyErrorCode = {
15
- POLICY_NOT_FOUND: "POLICY_NOT_FOUND",
16
- POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND",
17
- };
18
- export const PolicyType = {
19
- STATIC: "STATIC",
20
- TEMPLATE_LINKED: "TEMPLATE_LINKED",
21
- };
22
- export class InternalServerException extends __BaseException {
23
- name = "InternalServerException";
24
- $fault = "server";
25
- $retryable = {};
26
- constructor(opts) {
27
- super({
28
- name: "InternalServerException",
29
- $fault: "server",
30
- ...opts,
31
- });
32
- Object.setPrototypeOf(this, InternalServerException.prototype);
33
- }
34
- }
35
- export class ThrottlingException extends __BaseException {
36
- name = "ThrottlingException";
37
- $fault = "client";
38
- $retryable = {
39
- throttling: true,
40
- };
41
- serviceCode;
42
- quotaCode;
43
- constructor(opts) {
44
- super({
45
- name: "ThrottlingException",
46
- $fault: "client",
47
- ...opts,
48
- });
49
- Object.setPrototypeOf(this, ThrottlingException.prototype);
50
- this.serviceCode = opts.serviceCode;
51
- this.quotaCode = opts.quotaCode;
52
- }
53
- }
54
- export class ValidationException extends __BaseException {
55
- name = "ValidationException";
56
- $fault = "client";
57
- fieldList;
58
- constructor(opts) {
59
- super({
60
- name: "ValidationException",
61
- $fault: "client",
62
- ...opts,
63
- });
64
- Object.setPrototypeOf(this, ValidationException.prototype);
65
- this.fieldList = opts.fieldList;
66
- }
67
- }
68
- export const Decision = {
69
- ALLOW: "ALLOW",
70
- DENY: "DENY",
71
- };
72
- export const ResourceType = {
73
- IDENTITY_SOURCE: "IDENTITY_SOURCE",
74
- POLICY: "POLICY",
75
- POLICY_STORE: "POLICY_STORE",
76
- POLICY_TEMPLATE: "POLICY_TEMPLATE",
77
- SCHEMA: "SCHEMA",
78
- };
79
- export class ResourceNotFoundException extends __BaseException {
80
- name = "ResourceNotFoundException";
81
- $fault = "client";
82
- resourceId;
83
- resourceType;
84
- constructor(opts) {
85
- super({
86
- name: "ResourceNotFoundException",
87
- $fault: "client",
88
- ...opts,
89
- });
90
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
91
- this.resourceId = opts.resourceId;
92
- this.resourceType = opts.resourceType;
93
- }
94
- }
95
- export const CedarVersion = {
96
- CEDAR_2: "CEDAR_2",
97
- CEDAR_4: "CEDAR_4",
98
- };
99
- export class ConflictException extends __BaseException {
100
- name = "ConflictException";
101
- $fault = "client";
102
- resources;
103
- constructor(opts) {
104
- super({
105
- name: "ConflictException",
106
- $fault: "client",
107
- ...opts,
108
- });
109
- Object.setPrototypeOf(this, ConflictException.prototype);
110
- this.resources = opts.resources;
111
- }
112
- }
113
- export class ServiceQuotaExceededException extends __BaseException {
114
- name = "ServiceQuotaExceededException";
115
- $fault = "client";
116
- resourceId;
117
- resourceType;
118
- serviceCode;
119
- quotaCode;
120
- constructor(opts) {
121
- super({
122
- name: "ServiceQuotaExceededException",
123
- $fault: "client",
124
- ...opts,
125
- });
126
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
127
- this.resourceId = opts.resourceId;
128
- this.resourceType = opts.resourceType;
129
- this.serviceCode = opts.serviceCode;
130
- this.quotaCode = opts.quotaCode;
131
- }
132
- }
133
- export const PolicyEffect = {
134
- FORBID: "Forbid",
135
- PERMIT: "Permit",
136
- };
137
- export const DeletionProtection = {
138
- DISABLED: "DISABLED",
139
- ENABLED: "ENABLED",
140
- };
141
- export const ValidationMode = {
142
- OFF: "OFF",
143
- STRICT: "STRICT",
144
- };
145
- export class InvalidStateException extends __BaseException {
146
- name = "InvalidStateException";
147
- $fault = "client";
148
- constructor(opts) {
149
- super({
150
- name: "InvalidStateException",
151
- $fault: "client",
152
- ...opts,
153
- });
154
- Object.setPrototypeOf(this, InvalidStateException.prototype);
155
- }
156
- }
157
- export const OpenIdIssuer = {
158
- COGNITO: "COGNITO",
159
- };
160
- export class TooManyTagsException extends __BaseException {
161
- name = "TooManyTagsException";
162
- $fault = "client";
163
- resourceName;
164
- constructor(opts) {
165
- super({
166
- name: "TooManyTagsException",
167
- $fault: "client",
168
- ...opts,
169
- });
170
- Object.setPrototypeOf(this, TooManyTagsException.prototype);
171
- this.resourceName = opts.resourceName;
172
- }
173
- }
1
+ export {};
@@ -326,7 +326,7 @@ const _uPA = "userPoolArn";
326
326
  const _vS = "validationSettings";
327
327
  const n0 = "com.amazonaws.verifiedpermissions";
328
328
  import { TypeRegistry } from "@smithy/core/schema";
329
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidStateException as __InvalidStateException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, TooManyTagsException as __TooManyTagsException, ValidationException as __ValidationException, } from "../models/index";
329
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidStateException as __InvalidStateException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, TooManyTagsException as __TooManyTagsException, ValidationException as __ValidationException, } from "../models/errors";
330
330
  import { VerifiedPermissionsServiceException as __VerifiedPermissionsServiceException } from "../models/VerifiedPermissionsServiceException";
331
331
  export var ActionId = [0, n0, _AI, 8, 0];
332
332
  export var ActionType = [0, n0, _AT, 8, 0];
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { VerifiedPermissionsExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
- export * from "./models";
13
+ export * from "./models/enums";
14
+ export * from "./models/errors";
15
+ export type * from "./models/models_0";
14
16
  export { VerifiedPermissionsServiceException } from "./models/VerifiedPermissionsServiceException";
@@ -0,0 +1,110 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const BatchGetPolicyErrorCode: {
6
+ readonly POLICY_NOT_FOUND: "POLICY_NOT_FOUND";
7
+ readonly POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type BatchGetPolicyErrorCode = (typeof BatchGetPolicyErrorCode)[keyof typeof BatchGetPolicyErrorCode];
13
+ /**
14
+ * @public
15
+ * @enum
16
+ */
17
+ export declare const PolicyType: {
18
+ readonly STATIC: "STATIC";
19
+ readonly TEMPLATE_LINKED: "TEMPLATE_LINKED";
20
+ };
21
+ /**
22
+ * @public
23
+ */
24
+ export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
25
+ /**
26
+ * @public
27
+ * @enum
28
+ */
29
+ export declare const Decision: {
30
+ readonly ALLOW: "ALLOW";
31
+ readonly DENY: "DENY";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type Decision = (typeof Decision)[keyof typeof Decision];
37
+ /**
38
+ * @public
39
+ * @enum
40
+ */
41
+ export declare const ResourceType: {
42
+ readonly IDENTITY_SOURCE: "IDENTITY_SOURCE";
43
+ readonly POLICY: "POLICY";
44
+ readonly POLICY_STORE: "POLICY_STORE";
45
+ readonly POLICY_TEMPLATE: "POLICY_TEMPLATE";
46
+ readonly SCHEMA: "SCHEMA";
47
+ };
48
+ /**
49
+ * @public
50
+ */
51
+ export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
52
+ /**
53
+ * @public
54
+ * @enum
55
+ */
56
+ export declare const CedarVersion: {
57
+ readonly CEDAR_2: "CEDAR_2";
58
+ readonly CEDAR_4: "CEDAR_4";
59
+ };
60
+ /**
61
+ * @public
62
+ */
63
+ export type CedarVersion = (typeof CedarVersion)[keyof typeof CedarVersion];
64
+ /**
65
+ * @public
66
+ * @enum
67
+ */
68
+ export declare const PolicyEffect: {
69
+ readonly FORBID: "Forbid";
70
+ readonly PERMIT: "Permit";
71
+ };
72
+ /**
73
+ * @public
74
+ */
75
+ export type PolicyEffect = (typeof PolicyEffect)[keyof typeof PolicyEffect];
76
+ /**
77
+ * @public
78
+ * @enum
79
+ */
80
+ export declare const DeletionProtection: {
81
+ readonly DISABLED: "DISABLED";
82
+ readonly ENABLED: "ENABLED";
83
+ };
84
+ /**
85
+ * @public
86
+ */
87
+ export type DeletionProtection = (typeof DeletionProtection)[keyof typeof DeletionProtection];
88
+ /**
89
+ * @public
90
+ * @enum
91
+ */
92
+ export declare const ValidationMode: {
93
+ readonly OFF: "OFF";
94
+ readonly STRICT: "STRICT";
95
+ };
96
+ /**
97
+ * @public
98
+ */
99
+ export type ValidationMode = (typeof ValidationMode)[keyof typeof ValidationMode];
100
+ /**
101
+ * @public
102
+ * @enum
103
+ */
104
+ export declare const OpenIdIssuer: {
105
+ readonly COGNITO: "COGNITO";
106
+ };
107
+ /**
108
+ * @public
109
+ */
110
+ export type OpenIdIssuer = (typeof OpenIdIssuer)[keyof typeof OpenIdIssuer];