@aws-sdk/client-verifiedpermissions 3.774.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-cjs/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-cjs/index.js +17 -18
- package/dist-es/VerifiedPermissionsClient.js +2 -1
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
- package/dist-es/endpoint/EndpointParameters.js +2 -3
- package/dist-es/runtimeExtensions.js +2 -14
- 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 +33 -33
|
@@ -40,8 +40,6 @@ const defaultVerifiedPermissionsHttpAuthSchemeProvider = (authParameters) => {
|
|
|
40
40
|
exports.defaultVerifiedPermissionsHttpAuthSchemeProvider = defaultVerifiedPermissionsHttpAuthSchemeProvider;
|
|
41
41
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
42
42
|
const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
|
|
43
|
-
return {
|
|
44
|
-
...config_0,
|
|
45
|
-
};
|
|
43
|
+
return Object.assign(config_0, {});
|
|
46
44
|
};
|
|
47
45
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/index.js
CHANGED
|
@@ -202,12 +202,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
|
202
202
|
|
|
203
203
|
// src/endpoint/EndpointParameters.ts
|
|
204
204
|
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
205
|
-
return {
|
|
206
|
-
...options,
|
|
205
|
+
return Object.assign(options, {
|
|
207
206
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
208
207
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
209
208
|
defaultSigningName: "verifiedpermissions"
|
|
210
|
-
};
|
|
209
|
+
});
|
|
211
210
|
}, "resolveClientEndpointParameters");
|
|
212
211
|
var commonParams = {
|
|
213
212
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -264,22 +263,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
|
264
263
|
}, "resolveHttpAuthRuntimeConfig");
|
|
265
264
|
|
|
266
265
|
// src/runtimeExtensions.ts
|
|
267
|
-
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
268
266
|
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
269
|
-
const extensionConfiguration =
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
267
|
+
const extensionConfiguration = Object.assign(
|
|
268
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
269
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
270
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
271
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
272
|
+
);
|
|
275
273
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
276
|
-
return
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
274
|
+
return Object.assign(
|
|
275
|
+
runtimeConfig,
|
|
276
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
277
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
278
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
279
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
280
|
+
);
|
|
283
281
|
}, "resolveRuntimeExtensions");
|
|
284
282
|
|
|
285
283
|
// src/VerifiedPermissionsClient.ts
|
|
@@ -293,6 +291,8 @@ var VerifiedPermissionsClient = class extends import_smithy_client.Client {
|
|
|
293
291
|
config;
|
|
294
292
|
constructor(...[configuration]) {
|
|
295
293
|
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
294
|
+
super(_config_0);
|
|
295
|
+
this.initConfig = _config_0;
|
|
296
296
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
297
297
|
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
298
298
|
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
@@ -301,7 +301,6 @@ var VerifiedPermissionsClient = class extends import_smithy_client.Client {
|
|
|
301
301
|
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
302
302
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
303
303
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
304
|
-
super(_config_8);
|
|
305
304
|
this.config = _config_8;
|
|
306
305
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
307
306
|
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
@@ -17,6 +17,8 @@ export class VerifiedPermissionsClient extends __Client {
|
|
|
17
17
|
config;
|
|
18
18
|
constructor(...[configuration]) {
|
|
19
19
|
const _config_0 = __getRuntimeConfig(configuration || {});
|
|
20
|
+
super(_config_0);
|
|
21
|
+
this.initConfig = _config_0;
|
|
20
22
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
21
23
|
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
22
24
|
const _config_3 = resolveRetryConfig(_config_2);
|
|
@@ -25,7 +27,6 @@ export class VerifiedPermissionsClient extends __Client {
|
|
|
25
27
|
const _config_6 = resolveEndpointConfig(_config_5);
|
|
26
28
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
27
29
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
28
|
-
super(_config_8);
|
|
29
30
|
this.config = _config_8;
|
|
30
31
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
31
32
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
@@ -35,7 +35,5 @@ export const defaultVerifiedPermissionsHttpAuthSchemeProvider = (authParameters)
|
|
|
35
35
|
};
|
|
36
36
|
export const resolveHttpAuthSchemeConfig = (config) => {
|
|
37
37
|
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
38
|
-
return {
|
|
39
|
-
...config_0,
|
|
40
|
-
};
|
|
38
|
+
return Object.assign(config_0, {});
|
|
41
39
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export const resolveClientEndpointParameters = (options) => {
|
|
2
|
-
return {
|
|
3
|
-
...options,
|
|
2
|
+
return Object.assign(options, {
|
|
4
3
|
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
5
4
|
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
6
5
|
defaultSigningName: "verifiedpermissions",
|
|
7
|
-
};
|
|
6
|
+
});
|
|
8
7
|
};
|
|
9
8
|
export const commonParams = {
|
|
10
9
|
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
|
|
|
2
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
4
|
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
-
const asPartial = (t) => t;
|
|
6
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
-
const extensionConfiguration =
|
|
8
|
-
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
9
|
-
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
10
|
-
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
11
|
-
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
12
|
-
};
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
13
7
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
14
|
-
return
|
|
15
|
-
...runtimeConfig,
|
|
16
|
-
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
17
|
-
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
18
|
-
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
19
|
-
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
20
|
-
};
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
21
9
|
};
|
|
@@ -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. */
|