@aws-sdk/client-verifiedpermissions 3.775.0 → 3.777.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-types/commands/BatchGetPolicyCommand.d.ts +39 -39
- package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +93 -93
- package/dist-types/commands/BatchIsAuthorizedWithTokenCommand.d.ts +74 -74
- package/dist-types/commands/CreateIdentitySourceCommand.d.ts +14 -14
- package/dist-types/commands/CreatePolicyCommand.d.ts +58 -60
- package/dist-types/commands/CreatePolicyStoreCommand.d.ts +10 -10
- package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +19 -11
- package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +8 -5
- package/dist-types/commands/DeletePolicyCommand.d.ts +8 -5
- package/dist-types/commands/DeletePolicyStoreCommand.d.ts +7 -4
- package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +8 -5
- package/dist-types/commands/GetIdentitySourceCommand.d.ts +15 -15
- package/dist-types/commands/GetPolicyCommand.d.ts +17 -17
- package/dist-types/commands/GetPolicyStoreCommand.d.ts +10 -10
- package/dist-types/commands/GetPolicyTemplateCommand.d.ts +17 -11
- package/dist-types/commands/GetSchemaCommand.d.ts +34 -13
- package/dist-types/commands/IsAuthorizedCommand.d.ts +34 -35
- package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +22 -22
- package/dist-types/commands/ListIdentitySourcesCommand.d.ts +15 -15
- package/dist-types/commands/ListPoliciesCommand.d.ts +90 -92
- package/dist-types/commands/ListPolicyStoresCommand.d.ts +11 -11
- package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +15 -15
- package/dist-types/commands/PutSchemaCommand.d.ts +15 -15
- package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +13 -13
- package/dist-types/commands/UpdatePolicyCommand.d.ts +16 -16
- package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +10 -10
- package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +24 -16
- package/package.json +2 -2
|
@@ -190,77 +190,77 @@ declare const BatchGetPolicyCommand_base: {
|
|
|
190
190
|
* @throws {@link VerifiedPermissionsServiceException}
|
|
191
191
|
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
192
192
|
*
|
|
193
|
-
*
|
|
193
|
+
*
|
|
194
194
|
* @example To retrieve details about a policy
|
|
195
195
|
* ```javascript
|
|
196
196
|
* // The following example retrieves information about the specified policy contained in the specified policy store. In this example, the requested policy is a template-linked policy, so it returns the ID of the policy template, and the specific principal and resource used by this policy.
|
|
197
197
|
* const input = {
|
|
198
|
-
*
|
|
198
|
+
* requests: [
|
|
199
199
|
* {
|
|
200
|
-
*
|
|
201
|
-
*
|
|
200
|
+
* policyId: "PWv5M6d5HePx3gVVLKY1nK",
|
|
201
|
+
* policyStoreId: "ERZeDpRc34dkYZeb6FZRVC"
|
|
202
202
|
* },
|
|
203
203
|
* {
|
|
204
|
-
*
|
|
205
|
-
*
|
|
204
|
+
* policyId: "LzFn6KgLWvv4Mbegus35jn",
|
|
205
|
+
* policyStoreId: "ERZeDpRc34dkYZeb6FZRVC"
|
|
206
206
|
* },
|
|
207
207
|
* {
|
|
208
|
-
*
|
|
209
|
-
*
|
|
208
|
+
* policyId: "77gLjer8H5o3mvrnMGrSL5",
|
|
209
|
+
* policyStoreId: "ERZeDpRc34dkYZeb6FZRVC"
|
|
210
210
|
* }
|
|
211
211
|
* ]
|
|
212
212
|
* };
|
|
213
213
|
* const command = new BatchGetPolicyCommand(input);
|
|
214
214
|
* const response = await client.send(command);
|
|
215
|
-
* /* response
|
|
215
|
+
* /* response is
|
|
216
216
|
* {
|
|
217
|
-
*
|
|
218
|
-
*
|
|
217
|
+
* errors: [],
|
|
218
|
+
* results: [
|
|
219
219
|
* {
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
220
|
+
* createdDate: "2024-10-18T18:53:39.258153Z",
|
|
221
|
+
* definition: {
|
|
222
|
+
* static: {
|
|
223
|
+
* description: "Users can manage account resources in any account they own",
|
|
224
|
+
* statement: `permit (principal, action in PhotoFlash::Action::"ManageAccount",resource) when { resource in principal.Account };`
|
|
225
225
|
* }
|
|
226
226
|
* },
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
227
|
+
* lastUpdatedDate: "2024-10-18T18:53:39.258153Z",
|
|
228
|
+
* policyId: "PWv5M6d5HePx3gVVLKY1nK",
|
|
229
|
+
* policyStoreId: "ERZeDpRc34dkYZeb6FZRVC",
|
|
230
|
+
* policyType: "STATIC"
|
|
231
231
|
* },
|
|
232
232
|
* {
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
233
|
+
* createdDate: "2024-10-18T18:57:03.305027Z",
|
|
234
|
+
* definition: {
|
|
235
|
+
* static: {
|
|
236
|
+
* description: "User alice can't delete any photos.",
|
|
237
|
+
* statement: `forbid (principal == PhotoFlash::User::"alice", action in [PhotoFlash::Action::"DeletePhoto"], resource);`
|
|
238
238
|
* }
|
|
239
239
|
* },
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
240
|
+
* lastUpdatedDate: "2024-10-18T18:57:03.305027Z",
|
|
241
|
+
* policyId: "LzFn6KgLWvv4Mbegus35jn",
|
|
242
|
+
* policyStoreId: "ERZeDpRc34dkYZeb6FZRVC",
|
|
243
|
+
* policyType: "STATIC"
|
|
244
244
|
* },
|
|
245
245
|
* {
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
246
|
+
* createdDate: "2024-10-18T18:57:48.005343Z",
|
|
247
|
+
* definition: {
|
|
248
|
+
* static: {
|
|
249
|
+
* description: "User alice can view and delete photos.",
|
|
250
|
+
* statement: `permit (principal == PhotoFlash::User::"alice", action in [PhotoFlash::Action::"DeletePhoto", PhotoFlash::Action::"ViewPhoto"], resource);`
|
|
251
251
|
* }
|
|
252
252
|
* },
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
*
|
|
253
|
+
* lastUpdatedDate: "2024-10-18T18:57:48.005343Z",
|
|
254
|
+
* policyId: "77gLjer8H5o3mvrnMGrSL5",
|
|
255
|
+
* policyStoreId: "ERZeDpRc34dkYZeb6FZRVC",
|
|
256
|
+
* policyType: "STATIC"
|
|
257
257
|
* }
|
|
258
258
|
* ]
|
|
259
259
|
* }
|
|
260
260
|
* *\/
|
|
261
|
-
* // example id: example-1
|
|
262
261
|
* ```
|
|
263
262
|
*
|
|
263
|
+
* @public
|
|
264
264
|
*/
|
|
265
265
|
export declare class BatchGetPolicyCommand extends BatchGetPolicyCommand_base {
|
|
266
266
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -295,168 +295,168 @@ declare const BatchIsAuthorizedCommand_base: {
|
|
|
295
295
|
* @throws {@link VerifiedPermissionsServiceException}
|
|
296
296
|
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
297
297
|
*
|
|
298
|
-
*
|
|
298
|
+
*
|
|
299
299
|
* @example Batch - Example 1
|
|
300
300
|
* ```javascript
|
|
301
301
|
* // The following example requests two authorization decisions for two principals of type Usernamed Alice and Annalisa.
|
|
302
302
|
* const input = {
|
|
303
|
-
*
|
|
304
|
-
*
|
|
303
|
+
* entities: {
|
|
304
|
+
* entityList: [
|
|
305
305
|
* {
|
|
306
|
-
*
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
306
|
+
* attributes: {
|
|
307
|
+
* Account: {
|
|
308
|
+
* entityIdentifier: {
|
|
309
|
+
* entityId: "1234",
|
|
310
|
+
* entityType: "PhotoFlash::Account"
|
|
311
311
|
* }
|
|
312
312
|
* },
|
|
313
|
-
*
|
|
314
|
-
*
|
|
313
|
+
* Email: {
|
|
314
|
+
* string: ""
|
|
315
315
|
* }
|
|
316
316
|
* },
|
|
317
|
-
*
|
|
318
|
-
*
|
|
319
|
-
*
|
|
317
|
+
* identifier: {
|
|
318
|
+
* entityId: "Alice",
|
|
319
|
+
* entityType: "PhotoFlash::User"
|
|
320
320
|
* },
|
|
321
|
-
*
|
|
321
|
+
* parents: []
|
|
322
322
|
* },
|
|
323
323
|
* {
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
324
|
+
* attributes: {
|
|
325
|
+
* Account: {
|
|
326
|
+
* entityIdentifier: {
|
|
327
|
+
* entityId: "5678",
|
|
328
|
+
* entityType: "PhotoFlash::Account"
|
|
329
329
|
* }
|
|
330
330
|
* },
|
|
331
|
-
*
|
|
332
|
-
*
|
|
331
|
+
* Email: {
|
|
332
|
+
* string: ""
|
|
333
333
|
* }
|
|
334
334
|
* },
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
335
|
+
* identifier: {
|
|
336
|
+
* entityId: "Annalisa",
|
|
337
|
+
* entityType: "PhotoFlash::User"
|
|
338
338
|
* },
|
|
339
|
-
*
|
|
339
|
+
* parents: []
|
|
340
340
|
* },
|
|
341
341
|
* {
|
|
342
|
-
*
|
|
343
|
-
*
|
|
344
|
-
*
|
|
342
|
+
* attributes: {
|
|
343
|
+
* IsPrivate: {
|
|
344
|
+
* boolean: false
|
|
345
345
|
* },
|
|
346
|
-
*
|
|
347
|
-
*
|
|
346
|
+
* Name: {
|
|
347
|
+
* string: ""
|
|
348
348
|
* }
|
|
349
349
|
* },
|
|
350
|
-
*
|
|
351
|
-
*
|
|
352
|
-
*
|
|
350
|
+
* identifier: {
|
|
351
|
+
* entityId: "VacationPhoto94.jpg",
|
|
352
|
+
* entityType: "PhotoFlash::Photo"
|
|
353
353
|
* },
|
|
354
|
-
*
|
|
354
|
+
* parents: [
|
|
355
355
|
* {
|
|
356
|
-
*
|
|
357
|
-
*
|
|
356
|
+
* entityId: "1234",
|
|
357
|
+
* entityType: "PhotoFlash::Account"
|
|
358
358
|
* }
|
|
359
359
|
* ]
|
|
360
360
|
* },
|
|
361
361
|
* {
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
362
|
+
* attributes: {
|
|
363
|
+
* Name: {
|
|
364
|
+
* string: ""
|
|
365
365
|
* }
|
|
366
366
|
* },
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
367
|
+
* identifier: {
|
|
368
|
+
* entityId: "1234",
|
|
369
|
+
* entityType: "PhotoFlash::Account"
|
|
370
370
|
* },
|
|
371
|
-
*
|
|
371
|
+
* parents: []
|
|
372
372
|
* }
|
|
373
373
|
* ]
|
|
374
374
|
* },
|
|
375
|
-
*
|
|
376
|
-
*
|
|
375
|
+
* policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a",
|
|
376
|
+
* requests: [
|
|
377
377
|
* {
|
|
378
|
-
*
|
|
379
|
-
*
|
|
380
|
-
*
|
|
378
|
+
* action: {
|
|
379
|
+
* actionId: "ViewPhoto",
|
|
380
|
+
* actionType: "PhotoFlash::Action"
|
|
381
381
|
* },
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
382
|
+
* principal: {
|
|
383
|
+
* entityId: "Alice",
|
|
384
|
+
* entityType: "PhotoFlash::User"
|
|
385
385
|
* },
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
386
|
+
* resource: {
|
|
387
|
+
* entityId: "VacationPhoto94.jpg",
|
|
388
|
+
* entityType: "PhotoFlash::Photo"
|
|
389
389
|
* }
|
|
390
390
|
* },
|
|
391
391
|
* {
|
|
392
|
-
*
|
|
393
|
-
*
|
|
394
|
-
*
|
|
392
|
+
* action: {
|
|
393
|
+
* actionId: "DeletePhoto",
|
|
394
|
+
* actionType: "PhotoFlash::Action"
|
|
395
395
|
* },
|
|
396
|
-
*
|
|
397
|
-
*
|
|
398
|
-
*
|
|
396
|
+
* principal: {
|
|
397
|
+
* entityId: "Annalisa",
|
|
398
|
+
* entityType: "PhotoFlash::User"
|
|
399
399
|
* },
|
|
400
|
-
*
|
|
401
|
-
*
|
|
402
|
-
*
|
|
400
|
+
* resource: {
|
|
401
|
+
* entityId: "VacationPhoto94.jpg",
|
|
402
|
+
* entityType: "PhotoFlash::Photo"
|
|
403
403
|
* }
|
|
404
404
|
* }
|
|
405
405
|
* ]
|
|
406
406
|
* };
|
|
407
407
|
* const command = new BatchIsAuthorizedCommand(input);
|
|
408
408
|
* const response = await client.send(command);
|
|
409
|
-
* /* response
|
|
409
|
+
* /* response is
|
|
410
410
|
* {
|
|
411
|
-
*
|
|
411
|
+
* results: [
|
|
412
412
|
* {
|
|
413
|
-
* "
|
|
414
|
-
*
|
|
415
|
-
* "determiningPolicies": [
|
|
413
|
+
* decision: "ALLOW",
|
|
414
|
+
* determiningPolicies: [
|
|
416
415
|
* {
|
|
417
|
-
*
|
|
416
|
+
* policyId: "9wYxMpljbbZQb5fcZHyJhY"
|
|
418
417
|
* }
|
|
419
418
|
* ],
|
|
420
|
-
*
|
|
421
|
-
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
419
|
+
* errors: [],
|
|
420
|
+
* request: {
|
|
421
|
+
* action: {
|
|
422
|
+
* actionId: "ViewPhoto",
|
|
423
|
+
* actionType: "PhotoFlash::Action"
|
|
424
424
|
* },
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
*
|
|
425
|
+
* principal: {
|
|
426
|
+
* entityId: "alice",
|
|
427
|
+
* entityType: "PhotoFlash::User"
|
|
428
428
|
* },
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
429
|
+
* resource: {
|
|
430
|
+
* entityId: "VacationPhoto94.jpg",
|
|
431
|
+
* entityType: "PhotoFlash::Photo"
|
|
432
432
|
* }
|
|
433
433
|
* }
|
|
434
434
|
* },
|
|
435
435
|
* {
|
|
436
|
-
* "
|
|
437
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
440
|
-
*
|
|
441
|
-
*
|
|
442
|
-
*
|
|
436
|
+
* decision: "DENY",
|
|
437
|
+
* determiningPolicies: [],
|
|
438
|
+
* errors: [],
|
|
439
|
+
* request: {
|
|
440
|
+
* action: {
|
|
441
|
+
* actionId: "DeletePhoto",
|
|
442
|
+
* actionType: "PhotoFlash::Action"
|
|
443
443
|
* },
|
|
444
|
-
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
444
|
+
* principal: {
|
|
445
|
+
* entityId: "annalisa",
|
|
446
|
+
* entityType: "PhotoFlash::User"
|
|
447
447
|
* },
|
|
448
|
-
*
|
|
449
|
-
*
|
|
450
|
-
*
|
|
448
|
+
* resource: {
|
|
449
|
+
* entityId: "VacationPhoto94.jpg",
|
|
450
|
+
* entityType: "PhotoFlash::Photo"
|
|
451
451
|
* }
|
|
452
452
|
* }
|
|
453
453
|
* }
|
|
454
454
|
* ]
|
|
455
455
|
* }
|
|
456
456
|
* *\/
|
|
457
|
-
* // example id: example-1
|
|
458
457
|
* ```
|
|
459
458
|
*
|
|
459
|
+
* @public
|
|
460
460
|
*/
|
|
461
461
|
export declare class BatchIsAuthorizedCommand extends BatchIsAuthorizedCommand_base {
|
|
462
462
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -291,142 +291,142 @@ declare const BatchIsAuthorizedWithTokenCommand_base: {
|
|
|
291
291
|
* @throws {@link VerifiedPermissionsServiceException}
|
|
292
292
|
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
293
293
|
*
|
|
294
|
-
*
|
|
294
|
+
*
|
|
295
295
|
* @example Batch - Example 1
|
|
296
296
|
* ```javascript
|
|
297
297
|
* // The following example requests three authorization decisions for two resources and two actions in different photo albums.
|
|
298
298
|
* const input = {
|
|
299
|
-
*
|
|
300
|
-
*
|
|
299
|
+
* entities: {
|
|
300
|
+
* entityList: [
|
|
301
301
|
* {
|
|
302
|
-
*
|
|
303
|
-
*
|
|
304
|
-
*
|
|
302
|
+
* identifier: {
|
|
303
|
+
* entityId: "VacationPhoto94.jpg",
|
|
304
|
+
* entityType: "PhotoFlash::Photo"
|
|
305
305
|
* },
|
|
306
|
-
*
|
|
306
|
+
* parents: [
|
|
307
307
|
* {
|
|
308
|
-
*
|
|
309
|
-
*
|
|
308
|
+
* entityId: "MyExampleAlbum1",
|
|
309
|
+
* entityType: "PhotoFlash::Album"
|
|
310
310
|
* }
|
|
311
311
|
* ]
|
|
312
312
|
* },
|
|
313
313
|
* {
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
314
|
+
* identifier: {
|
|
315
|
+
* entityId: "OfficePhoto94.jpg",
|
|
316
|
+
* entityType: "PhotoFlash::Photo"
|
|
317
317
|
* },
|
|
318
|
-
*
|
|
318
|
+
* parents: [
|
|
319
319
|
* {
|
|
320
|
-
*
|
|
321
|
-
*
|
|
320
|
+
* entityId: "MyExampleAlbum2",
|
|
321
|
+
* entityType: "PhotoFlash::Album"
|
|
322
322
|
* }
|
|
323
323
|
* ]
|
|
324
324
|
* }
|
|
325
325
|
* ]
|
|
326
326
|
* },
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
*
|
|
327
|
+
* identityToken: "eyJra12345EXAMPLE",
|
|
328
|
+
* policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a",
|
|
329
|
+
* requests: [
|
|
330
330
|
* {
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
331
|
+
* action: {
|
|
332
|
+
* actionId: "ViewPhoto",
|
|
333
|
+
* actionType: "PhotoFlash::Action"
|
|
334
334
|
* },
|
|
335
|
-
*
|
|
336
|
-
*
|
|
337
|
-
*
|
|
335
|
+
* resource: {
|
|
336
|
+
* entityId: "VacationPhoto94.jpg",
|
|
337
|
+
* entityType: "PhotoFlash::Photo"
|
|
338
338
|
* }
|
|
339
339
|
* },
|
|
340
340
|
* {
|
|
341
|
-
*
|
|
342
|
-
*
|
|
343
|
-
*
|
|
341
|
+
* action: {
|
|
342
|
+
* actionId: "SharePhoto",
|
|
343
|
+
* actionType: "PhotoFlash::Action"
|
|
344
344
|
* },
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
*
|
|
345
|
+
* resource: {
|
|
346
|
+
* entityId: "VacationPhoto94.jpg",
|
|
347
|
+
* entityType: "PhotoFlash::Photo"
|
|
348
348
|
* }
|
|
349
349
|
* },
|
|
350
350
|
* {
|
|
351
|
-
*
|
|
352
|
-
*
|
|
353
|
-
*
|
|
351
|
+
* action: {
|
|
352
|
+
* actionId: "ViewPhoto",
|
|
353
|
+
* actionType: "PhotoFlash::Action"
|
|
354
354
|
* },
|
|
355
|
-
*
|
|
356
|
-
*
|
|
357
|
-
*
|
|
355
|
+
* resource: {
|
|
356
|
+
* entityId: "OfficePhoto94.jpg",
|
|
357
|
+
* entityType: "PhotoFlash::Photo"
|
|
358
358
|
* }
|
|
359
359
|
* }
|
|
360
360
|
* ]
|
|
361
361
|
* };
|
|
362
362
|
* const command = new BatchIsAuthorizedWithTokenCommand(input);
|
|
363
363
|
* const response = await client.send(command);
|
|
364
|
-
* /* response
|
|
364
|
+
* /* response is
|
|
365
365
|
* {
|
|
366
|
-
*
|
|
367
|
-
*
|
|
368
|
-
*
|
|
366
|
+
* principal: {
|
|
367
|
+
* entityId: "us-east-1_EXAMPLE|a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
|
|
368
|
+
* entityType: "PhotoFlash::User"
|
|
369
369
|
* },
|
|
370
|
-
*
|
|
370
|
+
* results: [
|
|
371
371
|
* {
|
|
372
|
-
* "
|
|
373
|
-
*
|
|
374
|
-
* "determiningPolicies": [
|
|
372
|
+
* decision: "ALLOW",
|
|
373
|
+
* determiningPolicies: [
|
|
375
374
|
* {
|
|
376
|
-
*
|
|
375
|
+
* policyId: "9wYixMplbbZQb5fcZHyJhY"
|
|
377
376
|
* }
|
|
378
377
|
* ],
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
*
|
|
378
|
+
* errors: [],
|
|
379
|
+
* request: {
|
|
380
|
+
* action: {
|
|
381
|
+
* actionId: "ViewPhoto",
|
|
382
|
+
* actionType: "PhotoFlash::Action"
|
|
383
383
|
* },
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
*
|
|
384
|
+
* resource: {
|
|
385
|
+
* entityId: "VacationPhoto94.jpg",
|
|
386
|
+
* entityType: "PhotoFlash::Photo"
|
|
387
387
|
* }
|
|
388
388
|
* }
|
|
389
389
|
* },
|
|
390
390
|
* {
|
|
391
|
-
* "
|
|
392
|
-
*
|
|
393
|
-
* "determiningPolicies": [
|
|
391
|
+
* decision: "ALLOW",
|
|
392
|
+
* determiningPolicies: [
|
|
394
393
|
* {
|
|
395
|
-
*
|
|
394
|
+
* policyId: "9wYixMplbbZQb5fcZHyJhY"
|
|
396
395
|
* }
|
|
397
396
|
* ],
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
*
|
|
401
|
-
*
|
|
397
|
+
* errors: [],
|
|
398
|
+
* request: {
|
|
399
|
+
* action: {
|
|
400
|
+
* actionId: "SharePhoto",
|
|
401
|
+
* actionType: "PhotoFlash::Action"
|
|
402
402
|
* },
|
|
403
|
-
*
|
|
404
|
-
*
|
|
405
|
-
*
|
|
403
|
+
* resource: {
|
|
404
|
+
* entityId: "VacationPhoto94.jpg",
|
|
405
|
+
* entityType: "PhotoFlash::Photo"
|
|
406
406
|
* }
|
|
407
407
|
* }
|
|
408
408
|
* },
|
|
409
409
|
* {
|
|
410
|
-
* "
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
*
|
|
410
|
+
* decision: "DENY",
|
|
411
|
+
* determiningPolicies: [],
|
|
412
|
+
* errors: [],
|
|
413
|
+
* request: {
|
|
414
|
+
* action: {
|
|
415
|
+
* actionId: "ViewPhoto",
|
|
416
|
+
* actionType: "PhotoFlash::Action"
|
|
417
417
|
* },
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
*
|
|
418
|
+
* resource: {
|
|
419
|
+
* entityId: "OfficePhoto94.jpg",
|
|
420
|
+
* entityType: "PhotoFlash::Photo"
|
|
421
421
|
* }
|
|
422
422
|
* }
|
|
423
423
|
* }
|
|
424
424
|
* ]
|
|
425
425
|
* }
|
|
426
426
|
* *\/
|
|
427
|
-
* // example id: example-1
|
|
428
427
|
* ```
|
|
429
428
|
*
|
|
429
|
+
* @public
|
|
430
430
|
*/
|
|
431
431
|
export declare class BatchIsAuthorizedWithTokenCommand extends BatchIsAuthorizedWithTokenCommand_base {
|
|
432
432
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -231,36 +231,36 @@ declare const CreateIdentitySourceCommand_base: {
|
|
|
231
231
|
* @throws {@link VerifiedPermissionsServiceException}
|
|
232
232
|
* <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
|
|
233
233
|
*
|
|
234
|
-
*
|
|
234
|
+
*
|
|
235
235
|
* @example To create an identity source
|
|
236
236
|
* ```javascript
|
|
237
237
|
* // The following ``create-identity-source`` example creates an identity source that lets you reference identities stored in the specified Amazon Cognito user pool. Those identities are available in Verified Permissions as entities of type ``User``.
|
|
238
238
|
* const input = {
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
239
|
+
* clientToken: "a1b2c3d4-e5f6-a1b2-c3d4-TOKEN1111111",
|
|
240
|
+
* configuration: {
|
|
241
|
+
* cognitoUserPoolConfiguration: {
|
|
242
|
+
* clientIds: [
|
|
243
243
|
* "a1b2c3d4e5f6g7h8i9j0kalbmc"
|
|
244
244
|
* ],
|
|
245
|
-
*
|
|
245
|
+
* userPoolArn: "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
|
|
246
246
|
* }
|
|
247
247
|
* },
|
|
248
|
-
*
|
|
249
|
-
*
|
|
248
|
+
* policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a",
|
|
249
|
+
* principalEntityType: "User"
|
|
250
250
|
* };
|
|
251
251
|
* const command = new CreateIdentitySourceCommand(input);
|
|
252
252
|
* const response = await client.send(command);
|
|
253
|
-
* /* response
|
|
253
|
+
* /* response is
|
|
254
254
|
* {
|
|
255
|
-
*
|
|
256
|
-
*
|
|
257
|
-
*
|
|
258
|
-
*
|
|
255
|
+
* createdDate: "2024-08-12T18:20:50.99Z",
|
|
256
|
+
* identitySourceId: "ISEXAMPLEabcdefg111111",
|
|
257
|
+
* lastUpdatedDate: "2024-08-12T18:20:50.99Z",
|
|
258
|
+
* policyStoreId: "C7v5xMplfFH3i3e4Jrzb1a"
|
|
259
259
|
* }
|
|
260
260
|
* *\/
|
|
261
|
-
* // example id: example-1
|
|
262
261
|
* ```
|
|
263
262
|
*
|
|
263
|
+
* @public
|
|
264
264
|
*/
|
|
265
265
|
export declare class CreateIdentitySourceCommand extends CreateIdentitySourceCommand_base {
|
|
266
266
|
/** @internal type navigation helper, not in runtime. */
|