@aws-sdk/client-verifiedpermissions 3.679.0 → 3.686.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/README.md +9 -1
- package/dist-cjs/index.js +165 -73
- package/dist-es/VerifiedPermissions.js +2 -0
- package/dist-es/commands/BatchGetPolicyCommand.js +23 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +76 -56
- package/dist-es/protocols/Aws_json1_0.js +54 -3
- package/dist-types/VerifiedPermissions.d.ts +7 -0
- package/dist-types/VerifiedPermissionsClient.d.ts +3 -2
- package/dist-types/commands/BatchGetPolicyCommand.d.ts +277 -0
- package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +8 -0
- package/dist-types/commands/BatchIsAuthorizedWithTokenCommand.d.ts +8 -0
- package/dist-types/commands/IsAuthorizedCommand.d.ts +4 -0
- package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +343 -158
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/VerifiedPermissions.d.ts +17 -0
- package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/BatchGetPolicyCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +151 -74
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +35 -35
|
@@ -61,97 +61,245 @@ export interface EntityIdentifier {
|
|
|
61
61
|
*/
|
|
62
62
|
entityId: string | undefined;
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* <p>Information about a policy that you include in a <code>BatchGetPolicy</code> API request.</p>
|
|
66
|
+
* @public
|
|
67
|
+
*/
|
|
68
|
+
export interface BatchGetPolicyInputItem {
|
|
69
|
+
/**
|
|
70
|
+
* <p>The identifier of the policy store where the policy you want information about is stored.</p>
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
policyStoreId: string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* <p>The identifier of the policy you want information about.</p>
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
policyId: string | undefined;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export interface BatchGetPolicyInput {
|
|
84
|
+
/**
|
|
85
|
+
* <p>An array of up to 100 policies you want information about.</p>
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
requests: BatchGetPolicyInputItem[] | undefined;
|
|
89
|
+
}
|
|
64
90
|
/**
|
|
65
91
|
* @public
|
|
66
92
|
* @enum
|
|
67
93
|
*/
|
|
68
|
-
export declare const
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
94
|
+
export declare const BatchGetPolicyErrorCode: {
|
|
95
|
+
readonly POLICY_NOT_FOUND: "POLICY_NOT_FOUND";
|
|
96
|
+
readonly POLICY_STORE_NOT_FOUND: "POLICY_STORE_NOT_FOUND";
|
|
71
97
|
};
|
|
72
98
|
/**
|
|
73
99
|
* @public
|
|
74
100
|
*/
|
|
75
|
-
export type
|
|
101
|
+
export type BatchGetPolicyErrorCode = (typeof BatchGetPolicyErrorCode)[keyof typeof BatchGetPolicyErrorCode];
|
|
76
102
|
/**
|
|
77
|
-
* <p>Contains information about
|
|
78
|
-
* decision.</p>
|
|
79
|
-
* <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>
|
|
80
|
-
* operations.</p>
|
|
81
|
-
* <p>Example: <code>"determiningPolicies":[\{"policyId":"SPEXAMPLEabcdefg111111"\}]</code>
|
|
82
|
-
* </p>
|
|
103
|
+
* <p>Contains the information about an error resulting from a <code>BatchGetPolicy</code> API call.</p>
|
|
83
104
|
* @public
|
|
84
105
|
*/
|
|
85
|
-
export interface
|
|
106
|
+
export interface BatchGetPolicyErrorItem {
|
|
86
107
|
/**
|
|
87
|
-
* <p>The
|
|
88
|
-
*
|
|
89
|
-
|
|
108
|
+
* <p>The error code that was returned.</p>
|
|
109
|
+
* @public
|
|
110
|
+
*/
|
|
111
|
+
code: BatchGetPolicyErrorCode | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* <p>The identifier of the policy store associated with the failed request.</p>
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
policyStoreId: string | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* <p>The identifier of the policy associated with the failed request.</p>
|
|
90
119
|
* @public
|
|
91
120
|
*/
|
|
92
121
|
policyId: string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* <p>A detailed error message.</p>
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
message: string | undefined;
|
|
93
127
|
}
|
|
94
128
|
/**
|
|
95
|
-
* <p>
|
|
96
|
-
*
|
|
129
|
+
* <p>A structure that contains details about a static policy. It includes the description and
|
|
130
|
+
* policy body.</p>
|
|
131
|
+
* <p>This data type is used within a <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_PolicyDefinition.html">PolicyDefinition</a> structure as
|
|
132
|
+
* part of a request parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicy.html">CreatePolicy</a> operation.</p>
|
|
97
133
|
* @public
|
|
98
134
|
*/
|
|
99
|
-
export interface
|
|
135
|
+
export interface StaticPolicyDefinitionDetail {
|
|
100
136
|
/**
|
|
101
|
-
* <p>
|
|
137
|
+
* <p>A description of the static policy.</p>
|
|
102
138
|
* @public
|
|
103
139
|
*/
|
|
104
|
-
|
|
140
|
+
description?: string;
|
|
141
|
+
/**
|
|
142
|
+
* <p>The content of the static policy written in the Cedar policy language.</p>
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
statement: string | undefined;
|
|
105
146
|
}
|
|
106
147
|
/**
|
|
107
|
-
* <p>
|
|
148
|
+
* <p>Contains information about a policy that was created by instantiating a policy template. </p>
|
|
108
149
|
* @public
|
|
109
150
|
*/
|
|
110
|
-
export
|
|
111
|
-
readonly name: "InternalServerException";
|
|
112
|
-
readonly $fault: "server";
|
|
113
|
-
$retryable: {};
|
|
151
|
+
export interface TemplateLinkedPolicyDefinitionDetail {
|
|
114
152
|
/**
|
|
115
|
-
*
|
|
153
|
+
* <p>The unique identifier of the policy template used to create this policy.</p>
|
|
154
|
+
* @public
|
|
116
155
|
*/
|
|
117
|
-
|
|
156
|
+
policyTemplateId: string | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* <p>The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the
|
|
159
|
+
* <code>?principal</code> placeholder in the policy template when it evaluates an authorization
|
|
160
|
+
* request.</p>
|
|
161
|
+
* @public
|
|
162
|
+
*/
|
|
163
|
+
principal?: EntityIdentifier;
|
|
164
|
+
/**
|
|
165
|
+
* <p>The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the
|
|
166
|
+
* <code>?resource</code> placeholder in the policy template when it evaluates an authorization
|
|
167
|
+
* request.</p>
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
resource?: EntityIdentifier;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* <p>A structure that describes a policy definition. It must always have either an
|
|
174
|
+
* <code>static</code> or a <code>templateLinked</code> element.</p>
|
|
175
|
+
* <p>This data type is used as a response parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetPolicy.html">GetPolicy</a> operation.</p>
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export type PolicyDefinitionDetail = PolicyDefinitionDetail.StaticMember | PolicyDefinitionDetail.TemplateLinkedMember | PolicyDefinitionDetail.$UnknownMember;
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
export declare namespace PolicyDefinitionDetail {
|
|
183
|
+
/**
|
|
184
|
+
* <p>Information about a static policy that wasn't created with a policy template.</p>
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
interface StaticMember {
|
|
188
|
+
static: StaticPolicyDefinitionDetail;
|
|
189
|
+
templateLinked?: never;
|
|
190
|
+
$unknown?: never;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* <p>Information about a template-linked policy that was created by instantiating a policy template.</p>
|
|
194
|
+
* @public
|
|
195
|
+
*/
|
|
196
|
+
interface TemplateLinkedMember {
|
|
197
|
+
static?: never;
|
|
198
|
+
templateLinked: TemplateLinkedPolicyDefinitionDetail;
|
|
199
|
+
$unknown?: never;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
interface $UnknownMember {
|
|
205
|
+
static?: never;
|
|
206
|
+
templateLinked?: never;
|
|
207
|
+
$unknown: [string, any];
|
|
208
|
+
}
|
|
209
|
+
interface Visitor<T> {
|
|
210
|
+
static: (value: StaticPolicyDefinitionDetail) => T;
|
|
211
|
+
templateLinked: (value: TemplateLinkedPolicyDefinitionDetail) => T;
|
|
212
|
+
_: (name: string, value: any) => T;
|
|
213
|
+
}
|
|
214
|
+
const visit: <T>(value: PolicyDefinitionDetail, visitor: Visitor<T>) => T;
|
|
118
215
|
}
|
|
119
216
|
/**
|
|
120
217
|
* @public
|
|
121
218
|
* @enum
|
|
122
219
|
*/
|
|
123
|
-
export declare const
|
|
124
|
-
readonly
|
|
125
|
-
readonly
|
|
126
|
-
readonly POLICY_STORE: "POLICY_STORE";
|
|
127
|
-
readonly POLICY_TEMPLATE: "POLICY_TEMPLATE";
|
|
128
|
-
readonly SCHEMA: "SCHEMA";
|
|
220
|
+
export declare const PolicyType: {
|
|
221
|
+
readonly STATIC: "STATIC";
|
|
222
|
+
readonly TEMPLATE_LINKED: "TEMPLATE_LINKED";
|
|
129
223
|
};
|
|
130
224
|
/**
|
|
131
225
|
* @public
|
|
132
226
|
*/
|
|
133
|
-
export type
|
|
227
|
+
export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
|
|
134
228
|
/**
|
|
135
|
-
* <p>
|
|
229
|
+
* <p>Contains information about a policy returned from a <code>BatchGetPolicy</code> API request.</p>
|
|
136
230
|
* @public
|
|
137
231
|
*/
|
|
138
|
-
export
|
|
139
|
-
readonly name: "ResourceNotFoundException";
|
|
140
|
-
readonly $fault: "client";
|
|
232
|
+
export interface BatchGetPolicyOutputItem {
|
|
141
233
|
/**
|
|
142
|
-
* <p>The
|
|
234
|
+
* <p>The identifier of the policy store where the policy you want information about is stored.</p>
|
|
143
235
|
* @public
|
|
144
236
|
*/
|
|
145
|
-
|
|
237
|
+
policyStoreId: string | undefined;
|
|
146
238
|
/**
|
|
147
|
-
* <p>The
|
|
239
|
+
* <p>The identifier of the policy you want information about.</p>
|
|
148
240
|
* @public
|
|
149
241
|
*/
|
|
150
|
-
|
|
242
|
+
policyId: string | undefined;
|
|
243
|
+
/**
|
|
244
|
+
* <p>The type of the policy. This is one of the following values:</p>
|
|
245
|
+
* <ul>
|
|
246
|
+
* <li>
|
|
247
|
+
* <p>
|
|
248
|
+
* <code>STATIC</code>
|
|
249
|
+
* </p>
|
|
250
|
+
* </li>
|
|
251
|
+
* <li>
|
|
252
|
+
* <p>
|
|
253
|
+
* <code>TEMPLATE_LINKED</code>
|
|
254
|
+
* </p>
|
|
255
|
+
* </li>
|
|
256
|
+
* </ul>
|
|
257
|
+
* @public
|
|
258
|
+
*/
|
|
259
|
+
policyType: PolicyType | undefined;
|
|
260
|
+
/**
|
|
261
|
+
* <p>The policy definition of an item in the list of policies returned.</p>
|
|
262
|
+
* @public
|
|
263
|
+
*/
|
|
264
|
+
definition: PolicyDefinitionDetail | undefined;
|
|
265
|
+
/**
|
|
266
|
+
* <p>The date and time the policy was created.</p>
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
createdDate: Date | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* <p>The date and time the policy was most recently updated.</p>
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
lastUpdatedDate: Date | undefined;
|
|
275
|
+
}
|
|
276
|
+
/**
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export interface BatchGetPolicyOutput {
|
|
280
|
+
/**
|
|
281
|
+
* <p>Information about the policies listed in the request that were successfully returned. These results are returned in the order they were requested.</p>
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
results: BatchGetPolicyOutputItem[] | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* <p>Information about the policies from the request that resulted in an error. These results are returned in the order they were requested.</p>
|
|
287
|
+
* @public
|
|
288
|
+
*/
|
|
289
|
+
errors: BatchGetPolicyErrorItem[] | undefined;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* <p>The request failed because of an internal error. Try your request again later</p>
|
|
293
|
+
* @public
|
|
294
|
+
*/
|
|
295
|
+
export declare class InternalServerException extends __BaseException {
|
|
296
|
+
readonly name: "InternalServerException";
|
|
297
|
+
readonly $fault: "server";
|
|
298
|
+
$retryable: {};
|
|
151
299
|
/**
|
|
152
300
|
* @internal
|
|
153
301
|
*/
|
|
154
|
-
constructor(opts: __ExceptionOptionType<
|
|
302
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
155
303
|
}
|
|
156
304
|
/**
|
|
157
305
|
* <p>The request failed because it exceeded a throttling quota.</p>
|
|
@@ -292,6 +440,85 @@ export declare class ValidationException extends __BaseException {
|
|
|
292
440
|
*/
|
|
293
441
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
294
442
|
}
|
|
443
|
+
/**
|
|
444
|
+
* @public
|
|
445
|
+
* @enum
|
|
446
|
+
*/
|
|
447
|
+
export declare const Decision: {
|
|
448
|
+
readonly ALLOW: "ALLOW";
|
|
449
|
+
readonly DENY: "DENY";
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* @public
|
|
453
|
+
*/
|
|
454
|
+
export type Decision = (typeof Decision)[keyof typeof Decision];
|
|
455
|
+
/**
|
|
456
|
+
* <p>Contains information about one of the policies that determined an authorization
|
|
457
|
+
* decision.</p>
|
|
458
|
+
* <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>
|
|
459
|
+
* operations.</p>
|
|
460
|
+
* <p>Example: <code>"determiningPolicies":[\{"policyId":"SPEXAMPLEabcdefg111111"\}]</code>
|
|
461
|
+
* </p>
|
|
462
|
+
* @public
|
|
463
|
+
*/
|
|
464
|
+
export interface DeterminingPolicyItem {
|
|
465
|
+
/**
|
|
466
|
+
* <p>The Id of a policy that determined to an authorization decision.</p>
|
|
467
|
+
* <p>Example: <code>"policyId":"SPEXAMPLEabcdefg111111"</code>
|
|
468
|
+
* </p>
|
|
469
|
+
* @public
|
|
470
|
+
*/
|
|
471
|
+
policyId: string | undefined;
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* <p>Contains a description of an evaluation error.</p>
|
|
475
|
+
* <p>This data type is a response parameter of 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>
|
|
476
|
+
* @public
|
|
477
|
+
*/
|
|
478
|
+
export interface EvaluationErrorItem {
|
|
479
|
+
/**
|
|
480
|
+
* <p>The error description.</p>
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
483
|
+
errorDescription: string | undefined;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* @public
|
|
487
|
+
* @enum
|
|
488
|
+
*/
|
|
489
|
+
export declare const ResourceType: {
|
|
490
|
+
readonly IDENTITY_SOURCE: "IDENTITY_SOURCE";
|
|
491
|
+
readonly POLICY: "POLICY";
|
|
492
|
+
readonly POLICY_STORE: "POLICY_STORE";
|
|
493
|
+
readonly POLICY_TEMPLATE: "POLICY_TEMPLATE";
|
|
494
|
+
readonly SCHEMA: "SCHEMA";
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* @public
|
|
498
|
+
*/
|
|
499
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
500
|
+
/**
|
|
501
|
+
* <p>The request failed because it references a resource that doesn't exist.</p>
|
|
502
|
+
* @public
|
|
503
|
+
*/
|
|
504
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
505
|
+
readonly name: "ResourceNotFoundException";
|
|
506
|
+
readonly $fault: "client";
|
|
507
|
+
/**
|
|
508
|
+
* <p>The unique ID of the resource referenced in the failed request.</p>
|
|
509
|
+
* @public
|
|
510
|
+
*/
|
|
511
|
+
resourceId: string | undefined;
|
|
512
|
+
/**
|
|
513
|
+
* <p>The resource type of the resource referenced in the failed request.</p>
|
|
514
|
+
* @public
|
|
515
|
+
*/
|
|
516
|
+
resourceType: ResourceType | undefined;
|
|
517
|
+
/**
|
|
518
|
+
* @internal
|
|
519
|
+
*/
|
|
520
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
521
|
+
}
|
|
295
522
|
/**
|
|
296
523
|
* <p>The type of entity that a policy store maps to groups from an Amazon Cognito user
|
|
297
524
|
* pool identity source.</p>
|
|
@@ -1366,18 +1593,6 @@ export declare const PolicyEffect: {
|
|
|
1366
1593
|
* @public
|
|
1367
1594
|
*/
|
|
1368
1595
|
export type PolicyEffect = (typeof PolicyEffect)[keyof typeof PolicyEffect];
|
|
1369
|
-
/**
|
|
1370
|
-
* @public
|
|
1371
|
-
* @enum
|
|
1372
|
-
*/
|
|
1373
|
-
export declare const PolicyType: {
|
|
1374
|
-
readonly STATIC: "STATIC";
|
|
1375
|
-
readonly TEMPLATE_LINKED: "TEMPLATE_LINKED";
|
|
1376
|
-
};
|
|
1377
|
-
/**
|
|
1378
|
-
* @public
|
|
1379
|
-
*/
|
|
1380
|
-
export type PolicyType = (typeof PolicyType)[keyof typeof PolicyType];
|
|
1381
1596
|
/**
|
|
1382
1597
|
* @public
|
|
1383
1598
|
*/
|
|
@@ -1864,94 +2079,6 @@ export interface GetPolicyInput {
|
|
|
1864
2079
|
*/
|
|
1865
2080
|
policyId: string | undefined;
|
|
1866
2081
|
}
|
|
1867
|
-
/**
|
|
1868
|
-
* <p>A structure that contains details about a static policy. It includes the description and
|
|
1869
|
-
* policy body.</p>
|
|
1870
|
-
* <p>This data type is used within a <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_PolicyDefinition.html">PolicyDefinition</a> structure as
|
|
1871
|
-
* part of a request parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreatePolicy.html">CreatePolicy</a> operation.</p>
|
|
1872
|
-
* @public
|
|
1873
|
-
*/
|
|
1874
|
-
export interface StaticPolicyDefinitionDetail {
|
|
1875
|
-
/**
|
|
1876
|
-
* <p>A description of the static policy.</p>
|
|
1877
|
-
* @public
|
|
1878
|
-
*/
|
|
1879
|
-
description?: string;
|
|
1880
|
-
/**
|
|
1881
|
-
* <p>The content of the static policy written in the Cedar policy language.</p>
|
|
1882
|
-
* @public
|
|
1883
|
-
*/
|
|
1884
|
-
statement: string | undefined;
|
|
1885
|
-
}
|
|
1886
|
-
/**
|
|
1887
|
-
* <p>Contains information about a policy that was created by instantiating a policy template. </p>
|
|
1888
|
-
* @public
|
|
1889
|
-
*/
|
|
1890
|
-
export interface TemplateLinkedPolicyDefinitionDetail {
|
|
1891
|
-
/**
|
|
1892
|
-
* <p>The unique identifier of the policy template used to create this policy.</p>
|
|
1893
|
-
* @public
|
|
1894
|
-
*/
|
|
1895
|
-
policyTemplateId: string | undefined;
|
|
1896
|
-
/**
|
|
1897
|
-
* <p>The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the
|
|
1898
|
-
* <code>?principal</code> placeholder in the policy template when it evaluates an authorization
|
|
1899
|
-
* request.</p>
|
|
1900
|
-
* @public
|
|
1901
|
-
*/
|
|
1902
|
-
principal?: EntityIdentifier;
|
|
1903
|
-
/**
|
|
1904
|
-
* <p>The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the
|
|
1905
|
-
* <code>?resource</code> placeholder in the policy template when it evaluates an authorization
|
|
1906
|
-
* request.</p>
|
|
1907
|
-
* @public
|
|
1908
|
-
*/
|
|
1909
|
-
resource?: EntityIdentifier;
|
|
1910
|
-
}
|
|
1911
|
-
/**
|
|
1912
|
-
* <p>A structure that describes a policy definition. It must always have either an
|
|
1913
|
-
* <code>static</code> or a <code>templateLinked</code> element.</p>
|
|
1914
|
-
* <p>This data type is used as a response parameter for the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_GetPolicy.html">GetPolicy</a> operation.</p>
|
|
1915
|
-
* @public
|
|
1916
|
-
*/
|
|
1917
|
-
export type PolicyDefinitionDetail = PolicyDefinitionDetail.StaticMember | PolicyDefinitionDetail.TemplateLinkedMember | PolicyDefinitionDetail.$UnknownMember;
|
|
1918
|
-
/**
|
|
1919
|
-
* @public
|
|
1920
|
-
*/
|
|
1921
|
-
export declare namespace PolicyDefinitionDetail {
|
|
1922
|
-
/**
|
|
1923
|
-
* <p>Information about a static policy that wasn't created with a policy template.</p>
|
|
1924
|
-
* @public
|
|
1925
|
-
*/
|
|
1926
|
-
interface StaticMember {
|
|
1927
|
-
static: StaticPolicyDefinitionDetail;
|
|
1928
|
-
templateLinked?: never;
|
|
1929
|
-
$unknown?: never;
|
|
1930
|
-
}
|
|
1931
|
-
/**
|
|
1932
|
-
* <p>Information about a template-linked policy that was created by instantiating a policy template.</p>
|
|
1933
|
-
* @public
|
|
1934
|
-
*/
|
|
1935
|
-
interface TemplateLinkedMember {
|
|
1936
|
-
static?: never;
|
|
1937
|
-
templateLinked: TemplateLinkedPolicyDefinitionDetail;
|
|
1938
|
-
$unknown?: never;
|
|
1939
|
-
}
|
|
1940
|
-
/**
|
|
1941
|
-
* @public
|
|
1942
|
-
*/
|
|
1943
|
-
interface $UnknownMember {
|
|
1944
|
-
static?: never;
|
|
1945
|
-
templateLinked?: never;
|
|
1946
|
-
$unknown: [string, any];
|
|
1947
|
-
}
|
|
1948
|
-
interface Visitor<T> {
|
|
1949
|
-
static: (value: StaticPolicyDefinitionDetail) => T;
|
|
1950
|
-
templateLinked: (value: TemplateLinkedPolicyDefinitionDetail) => T;
|
|
1951
|
-
_: (name: string, value: any) => T;
|
|
1952
|
-
}
|
|
1953
|
-
const visit: <T>(value: PolicyDefinitionDetail, visitor: Visitor<T>) => T;
|
|
1954
|
-
}
|
|
1955
2082
|
/**
|
|
1956
2083
|
* @public
|
|
1957
2084
|
*/
|
|
@@ -2824,7 +2951,7 @@ export declare namespace PolicyDefinitionItem {
|
|
|
2824
2951
|
*/
|
|
2825
2952
|
export interface PolicyItem {
|
|
2826
2953
|
/**
|
|
2827
|
-
* <p>The identifier of the
|
|
2954
|
+
* <p>The identifier of the policy store where the policy you want information about is
|
|
2828
2955
|
* stored.</p>
|
|
2829
2956
|
* @public
|
|
2830
2957
|
*/
|
|
@@ -3460,7 +3587,7 @@ export interface UpdatePolicyStoreOutput {
|
|
|
3460
3587
|
* operations.</p>
|
|
3461
3588
|
* @public
|
|
3462
3589
|
*/
|
|
3463
|
-
export type AttributeValue = AttributeValue.BooleanMember | AttributeValue.EntityIdentifierMember | AttributeValue.LongMember | AttributeValue.RecordMember | AttributeValue.SetMember | AttributeValue.StringMember | AttributeValue.$UnknownMember;
|
|
3590
|
+
export type AttributeValue = AttributeValue.BooleanMember | AttributeValue.DecimalMember | AttributeValue.EntityIdentifierMember | AttributeValue.IpaddrMember | AttributeValue.LongMember | AttributeValue.RecordMember | AttributeValue.SetMember | AttributeValue.StringMember | AttributeValue.$UnknownMember;
|
|
3464
3591
|
/**
|
|
3465
3592
|
* @public
|
|
3466
3593
|
*/
|
|
@@ -3479,6 +3606,8 @@ export declare namespace AttributeValue {
|
|
|
3479
3606
|
string?: never;
|
|
3480
3607
|
set?: never;
|
|
3481
3608
|
record?: never;
|
|
3609
|
+
ipaddr?: never;
|
|
3610
|
+
decimal?: never;
|
|
3482
3611
|
$unknown?: never;
|
|
3483
3612
|
}
|
|
3484
3613
|
/**
|
|
@@ -3495,6 +3624,8 @@ export declare namespace AttributeValue {
|
|
|
3495
3624
|
string?: never;
|
|
3496
3625
|
set?: never;
|
|
3497
3626
|
record?: never;
|
|
3627
|
+
ipaddr?: never;
|
|
3628
|
+
decimal?: never;
|
|
3498
3629
|
$unknown?: never;
|
|
3499
3630
|
}
|
|
3500
3631
|
/**
|
|
@@ -3510,6 +3641,8 @@ export declare namespace AttributeValue {
|
|
|
3510
3641
|
string?: never;
|
|
3511
3642
|
set?: never;
|
|
3512
3643
|
record?: never;
|
|
3644
|
+
ipaddr?: never;
|
|
3645
|
+
decimal?: never;
|
|
3513
3646
|
$unknown?: never;
|
|
3514
3647
|
}
|
|
3515
3648
|
/**
|
|
@@ -3526,6 +3659,8 @@ export declare namespace AttributeValue {
|
|
|
3526
3659
|
string: string;
|
|
3527
3660
|
set?: never;
|
|
3528
3661
|
record?: never;
|
|
3662
|
+
ipaddr?: never;
|
|
3663
|
+
decimal?: never;
|
|
3529
3664
|
$unknown?: never;
|
|
3530
3665
|
}
|
|
3531
3666
|
/**
|
|
@@ -3541,6 +3676,8 @@ export declare namespace AttributeValue {
|
|
|
3541
3676
|
string?: never;
|
|
3542
3677
|
set: AttributeValue[];
|
|
3543
3678
|
record?: never;
|
|
3679
|
+
ipaddr?: never;
|
|
3680
|
+
decimal?: never;
|
|
3544
3681
|
$unknown?: never;
|
|
3545
3682
|
}
|
|
3546
3683
|
/**
|
|
@@ -3557,6 +3694,42 @@ export declare namespace AttributeValue {
|
|
|
3557
3694
|
string?: never;
|
|
3558
3695
|
set?: never;
|
|
3559
3696
|
record: Record<string, AttributeValue>;
|
|
3697
|
+
ipaddr?: never;
|
|
3698
|
+
decimal?: never;
|
|
3699
|
+
$unknown?: never;
|
|
3700
|
+
}
|
|
3701
|
+
/**
|
|
3702
|
+
* <p>An attribute value of <a href="https://docs.cedarpolicy.com/policies/syntax-datatypes.html#datatype-ipaddr">ipaddr</a> type.</p>
|
|
3703
|
+
* <p>Example: <code>\{"ip": "192.168.1.100"\}</code>
|
|
3704
|
+
* </p>
|
|
3705
|
+
* @public
|
|
3706
|
+
*/
|
|
3707
|
+
interface IpaddrMember {
|
|
3708
|
+
boolean?: never;
|
|
3709
|
+
entityIdentifier?: never;
|
|
3710
|
+
long?: never;
|
|
3711
|
+
string?: never;
|
|
3712
|
+
set?: never;
|
|
3713
|
+
record?: never;
|
|
3714
|
+
ipaddr: string;
|
|
3715
|
+
decimal?: never;
|
|
3716
|
+
$unknown?: never;
|
|
3717
|
+
}
|
|
3718
|
+
/**
|
|
3719
|
+
* <p>An attribute value of <a href="https://docs.cedarpolicy.com/policies/syntax-datatypes.html#datatype-decimal">decimal</a> type.</p>
|
|
3720
|
+
* <p>Example: <code>\{"decimal": "1.1"\}</code>
|
|
3721
|
+
* </p>
|
|
3722
|
+
* @public
|
|
3723
|
+
*/
|
|
3724
|
+
interface DecimalMember {
|
|
3725
|
+
boolean?: never;
|
|
3726
|
+
entityIdentifier?: never;
|
|
3727
|
+
long?: never;
|
|
3728
|
+
string?: never;
|
|
3729
|
+
set?: never;
|
|
3730
|
+
record?: never;
|
|
3731
|
+
ipaddr?: never;
|
|
3732
|
+
decimal: string;
|
|
3560
3733
|
$unknown?: never;
|
|
3561
3734
|
}
|
|
3562
3735
|
/**
|
|
@@ -3569,6 +3742,8 @@ export declare namespace AttributeValue {
|
|
|
3569
3742
|
string?: never;
|
|
3570
3743
|
set?: never;
|
|
3571
3744
|
record?: never;
|
|
3745
|
+
ipaddr?: never;
|
|
3746
|
+
decimal?: never;
|
|
3572
3747
|
$unknown: [string, any];
|
|
3573
3748
|
}
|
|
3574
3749
|
interface Visitor<T> {
|
|
@@ -3578,6 +3753,8 @@ export declare namespace AttributeValue {
|
|
|
3578
3753
|
string: (value: string) => T;
|
|
3579
3754
|
set: (value: AttributeValue[]) => T;
|
|
3580
3755
|
record: (value: Record<string, AttributeValue>) => T;
|
|
3756
|
+
ipaddr: (value: string) => T;
|
|
3757
|
+
decimal: (value: string) => T;
|
|
3581
3758
|
_: (name: string, value: any) => T;
|
|
3582
3759
|
}
|
|
3583
3760
|
const visit: <T>(value: AttributeValue, visitor: Visitor<T>) => T;
|
|
@@ -3823,7 +4000,7 @@ export declare namespace EntitiesDefinition {
|
|
|
3823
4000
|
export interface BatchIsAuthorizedOutput {
|
|
3824
4001
|
/**
|
|
3825
4002
|
* <p>A series of <code>Allow</code> or <code>Deny</code> decisions for each request, and
|
|
3826
|
-
* the policies that produced them.</p>
|
|
4003
|
+
* the policies that produced them. These results are returned in the order they were requested.</p>
|
|
3827
4004
|
* @public
|
|
3828
4005
|
*/
|
|
3829
4006
|
results: BatchIsAuthorizedOutputItem[] | undefined;
|
|
@@ -3839,7 +4016,7 @@ export interface BatchIsAuthorizedWithTokenOutput {
|
|
|
3839
4016
|
principal?: EntityIdentifier;
|
|
3840
4017
|
/**
|
|
3841
4018
|
* <p>A series of <code>Allow</code> or <code>Deny</code> decisions for each request, and
|
|
3842
|
-
* the policies that produced them.</p>
|
|
4019
|
+
* the policies that produced them. These results are returned in the order they were requested.</p>
|
|
3843
4020
|
* @public
|
|
3844
4021
|
*/
|
|
3845
4022
|
results: BatchIsAuthorizedWithTokenOutputItem[] | undefined;
|
|
@@ -4056,6 +4233,26 @@ export declare const ActionIdentifierFilterSensitiveLog: (obj: ActionIdentifier)
|
|
|
4056
4233
|
* @internal
|
|
4057
4234
|
*/
|
|
4058
4235
|
export declare const EntityIdentifierFilterSensitiveLog: (obj: EntityIdentifier) => any;
|
|
4236
|
+
/**
|
|
4237
|
+
* @internal
|
|
4238
|
+
*/
|
|
4239
|
+
export declare const StaticPolicyDefinitionDetailFilterSensitiveLog: (obj: StaticPolicyDefinitionDetail) => any;
|
|
4240
|
+
/**
|
|
4241
|
+
* @internal
|
|
4242
|
+
*/
|
|
4243
|
+
export declare const TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog: (obj: TemplateLinkedPolicyDefinitionDetail) => any;
|
|
4244
|
+
/**
|
|
4245
|
+
* @internal
|
|
4246
|
+
*/
|
|
4247
|
+
export declare const PolicyDefinitionDetailFilterSensitiveLog: (obj: PolicyDefinitionDetail) => any;
|
|
4248
|
+
/**
|
|
4249
|
+
* @internal
|
|
4250
|
+
*/
|
|
4251
|
+
export declare const BatchGetPolicyOutputItemFilterSensitiveLog: (obj: BatchGetPolicyOutputItem) => any;
|
|
4252
|
+
/**
|
|
4253
|
+
* @internal
|
|
4254
|
+
*/
|
|
4255
|
+
export declare const BatchGetPolicyOutputFilterSensitiveLog: (obj: BatchGetPolicyOutput) => any;
|
|
4059
4256
|
/**
|
|
4060
4257
|
* @internal
|
|
4061
4258
|
*/
|
|
@@ -4200,18 +4397,6 @@ export declare const IdentitySourceDetailsFilterSensitiveLog: (obj: IdentitySour
|
|
|
4200
4397
|
* @internal
|
|
4201
4398
|
*/
|
|
4202
4399
|
export declare const GetIdentitySourceOutputFilterSensitiveLog: (obj: GetIdentitySourceOutput) => any;
|
|
4203
|
-
/**
|
|
4204
|
-
* @internal
|
|
4205
|
-
*/
|
|
4206
|
-
export declare const StaticPolicyDefinitionDetailFilterSensitiveLog: (obj: StaticPolicyDefinitionDetail) => any;
|
|
4207
|
-
/**
|
|
4208
|
-
* @internal
|
|
4209
|
-
*/
|
|
4210
|
-
export declare const TemplateLinkedPolicyDefinitionDetailFilterSensitiveLog: (obj: TemplateLinkedPolicyDefinitionDetail) => any;
|
|
4211
|
-
/**
|
|
4212
|
-
* @internal
|
|
4213
|
-
*/
|
|
4214
|
-
export declare const PolicyDefinitionDetailFilterSensitiveLog: (obj: PolicyDefinitionDetail) => any;
|
|
4215
4400
|
/**
|
|
4216
4401
|
* @internal
|
|
4217
4402
|
*/
|