@aws-sdk/client-verifiedpermissions 3.975.0 → 3.980.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
|
@@ -1919,6 +1919,14 @@ class UpdatePolicyTemplateCommand extends smithyClient.Command
|
|
|
1919
1919
|
.build() {
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
|
+
const paginateListIdentitySources = core.createPaginator(VerifiedPermissionsClient, ListIdentitySourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
1923
|
+
|
|
1924
|
+
const paginateListPolicies = core.createPaginator(VerifiedPermissionsClient, ListPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
1925
|
+
|
|
1926
|
+
const paginateListPolicyStores = core.createPaginator(VerifiedPermissionsClient, ListPolicyStoresCommand, "nextToken", "nextToken", "maxResults");
|
|
1927
|
+
|
|
1928
|
+
const paginateListPolicyTemplates = core.createPaginator(VerifiedPermissionsClient, ListPolicyTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
1929
|
+
|
|
1922
1930
|
const commands = {
|
|
1923
1931
|
BatchGetPolicyCommand,
|
|
1924
1932
|
BatchIsAuthorizedCommand,
|
|
@@ -1951,17 +1959,15 @@ const commands = {
|
|
|
1951
1959
|
UpdatePolicyStoreCommand,
|
|
1952
1960
|
UpdatePolicyTemplateCommand,
|
|
1953
1961
|
};
|
|
1962
|
+
const paginators = {
|
|
1963
|
+
paginateListIdentitySources,
|
|
1964
|
+
paginateListPolicies,
|
|
1965
|
+
paginateListPolicyStores,
|
|
1966
|
+
paginateListPolicyTemplates,
|
|
1967
|
+
};
|
|
1954
1968
|
class VerifiedPermissions extends VerifiedPermissionsClient {
|
|
1955
1969
|
}
|
|
1956
|
-
smithyClient.createAggregatedClient(commands, VerifiedPermissions);
|
|
1957
|
-
|
|
1958
|
-
const paginateListIdentitySources = core.createPaginator(VerifiedPermissionsClient, ListIdentitySourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
1959
|
-
|
|
1960
|
-
const paginateListPolicies = core.createPaginator(VerifiedPermissionsClient, ListPoliciesCommand, "nextToken", "nextToken", "maxResults");
|
|
1961
|
-
|
|
1962
|
-
const paginateListPolicyStores = core.createPaginator(VerifiedPermissionsClient, ListPolicyStoresCommand, "nextToken", "nextToken", "maxResults");
|
|
1963
|
-
|
|
1964
|
-
const paginateListPolicyTemplates = core.createPaginator(VerifiedPermissionsClient, ListPolicyTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
1970
|
+
smithyClient.createAggregatedClient(commands, VerifiedPermissions, { paginators });
|
|
1965
1971
|
|
|
1966
1972
|
const BatchGetPolicyErrorCode = {
|
|
1967
1973
|
POLICY_NOT_FOUND: "POLICY_NOT_FOUND",
|
|
@@ -29,6 +29,10 @@ import { UpdateIdentitySourceCommand, } from "./commands/UpdateIdentitySourceCom
|
|
|
29
29
|
import { UpdatePolicyCommand, } from "./commands/UpdatePolicyCommand";
|
|
30
30
|
import { UpdatePolicyStoreCommand, } from "./commands/UpdatePolicyStoreCommand";
|
|
31
31
|
import { UpdatePolicyTemplateCommand, } from "./commands/UpdatePolicyTemplateCommand";
|
|
32
|
+
import { paginateListIdentitySources } from "./pagination/ListIdentitySourcesPaginator";
|
|
33
|
+
import { paginateListPolicies } from "./pagination/ListPoliciesPaginator";
|
|
34
|
+
import { paginateListPolicyStores } from "./pagination/ListPolicyStoresPaginator";
|
|
35
|
+
import { paginateListPolicyTemplates } from "./pagination/ListPolicyTemplatesPaginator";
|
|
32
36
|
import { VerifiedPermissionsClient } from "./VerifiedPermissionsClient";
|
|
33
37
|
const commands = {
|
|
34
38
|
BatchGetPolicyCommand,
|
|
@@ -62,6 +66,12 @@ const commands = {
|
|
|
62
66
|
UpdatePolicyStoreCommand,
|
|
63
67
|
UpdatePolicyTemplateCommand,
|
|
64
68
|
};
|
|
69
|
+
const paginators = {
|
|
70
|
+
paginateListIdentitySources,
|
|
71
|
+
paginateListPolicies,
|
|
72
|
+
paginateListPolicyStores,
|
|
73
|
+
paginateListPolicyTemplates,
|
|
74
|
+
};
|
|
65
75
|
export class VerifiedPermissions extends VerifiedPermissionsClient {
|
|
66
76
|
}
|
|
67
|
-
createAggregatedClient(commands, VerifiedPermissions);
|
|
77
|
+
createAggregatedClient(commands, VerifiedPermissions, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { BatchGetPolicyCommandInput, BatchGetPolicyCommandOutput } from "./commands/BatchGetPolicyCommand";
|
|
3
3
|
import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "./commands/BatchIsAuthorizedCommand";
|
|
4
4
|
import { BatchIsAuthorizedWithTokenCommandInput, BatchIsAuthorizedWithTokenCommandOutput } from "./commands/BatchIsAuthorizedWithTokenCommand";
|
|
@@ -212,6 +212,34 @@ export interface VerifiedPermissions {
|
|
|
212
212
|
updatePolicyTemplate(args: UpdatePolicyTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePolicyTemplateCommandOutput>;
|
|
213
213
|
updatePolicyTemplate(args: UpdatePolicyTemplateCommandInput, cb: (err: any, data?: UpdatePolicyTemplateCommandOutput) => void): void;
|
|
214
214
|
updatePolicyTemplate(args: UpdatePolicyTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePolicyTemplateCommandOutput) => void): void;
|
|
215
|
+
/**
|
|
216
|
+
* @see {@link ListIdentitySourcesCommand}
|
|
217
|
+
* @param args - command input.
|
|
218
|
+
* @param paginationConfig - optional pagination config.
|
|
219
|
+
* @returns AsyncIterable of {@link ListIdentitySourcesCommandOutput}.
|
|
220
|
+
*/
|
|
221
|
+
paginateListIdentitySources(args: ListIdentitySourcesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListIdentitySourcesCommandOutput>;
|
|
222
|
+
/**
|
|
223
|
+
* @see {@link ListPoliciesCommand}
|
|
224
|
+
* @param args - command input.
|
|
225
|
+
* @param paginationConfig - optional pagination config.
|
|
226
|
+
* @returns AsyncIterable of {@link ListPoliciesCommandOutput}.
|
|
227
|
+
*/
|
|
228
|
+
paginateListPolicies(args: ListPoliciesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPoliciesCommandOutput>;
|
|
229
|
+
/**
|
|
230
|
+
* @see {@link ListPolicyStoresCommand}
|
|
231
|
+
* @param args - command input.
|
|
232
|
+
* @param paginationConfig - optional pagination config.
|
|
233
|
+
* @returns AsyncIterable of {@link ListPolicyStoresCommandOutput}.
|
|
234
|
+
*/
|
|
235
|
+
paginateListPolicyStores(args?: ListPolicyStoresCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPolicyStoresCommandOutput>;
|
|
236
|
+
/**
|
|
237
|
+
* @see {@link ListPolicyTemplatesCommand}
|
|
238
|
+
* @param args - command input.
|
|
239
|
+
* @param paginationConfig - optional pagination config.
|
|
240
|
+
* @returns AsyncIterable of {@link ListPolicyTemplatesCommandOutput}.
|
|
241
|
+
*/
|
|
242
|
+
paginateListPolicyTemplates(args: ListPolicyTemplatesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPolicyTemplatesCommandOutput>;
|
|
215
243
|
}
|
|
216
244
|
/**
|
|
217
245
|
* <p>Amazon Verified Permissions is a permissions management service from Amazon Web Services. You can use Verified Permissions to manage permissions for your application, and authorize user access based on those permissions. Using Verified Permissions, application developers can grant access based on information about the users, resources, and requested actions. You can also evaluate additional information like group membership, attributes of the resources, and session context, such as time of request and IP addresses. Verified Permissions manages these permissions by letting you create and store authorization policies for your applications, such as consumer-facing web sites and enterprise business systems.</p> <p>Verified Permissions uses Cedar as the policy language to express your permission requirements. Cedar supports both role-based access control (RBAC) and attribute-based access control (ABAC) authorization models.</p> <p>For more information about configuring, administering, and using Amazon Verified Permissions in your applications, see the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/">Amazon Verified Permissions User Guide</a>.</p> <p>For more information about the Cedar policy language, see the <a href="https://docs.cedarpolicy.com/">Cedar Policy Language Guide</a>.</p> <important> <p>When you write Cedar policies that reference principals, resources and actions, you can define the unique identifiers used for each of those elements. We strongly recommend that you follow these best practices:</p> <ul> <li> <p> <b>Use values like universally unique identifiers (UUIDs) for all principal and resource identifiers.</b> </p> <p>For example, if user <code>jane</code> leaves the company, and you later let someone else use the name <code>jane</code>, then that new user automatically gets access to everything granted by policies that still reference <code>User::"jane"</code>. Cedar can’t distinguish between the new user and the old. This applies to both principal and resource identifiers. Always use identifiers that are guaranteed unique and never reused to ensure that you don’t unintentionally grant access because of the presence of an old identifier in a policy.</p> <p>Where you use a UUID for an entity, we recommend that you follow it with the // comment specifier and the ‘friendly’ name of your entity. This helps to make your policies easier to understand. For example: principal == User::"a1b2c3d4-e5f6-a1b2-c3d4-EXAMPLE11111", // alice</p> </li> <li> <p> <b>Do not include personally identifying, confidential, or sensitive information as part of the unique identifier for your principals or resources.</b> These identifiers are included in log entries shared in CloudTrail trails.</p> </li> </ul> </important> <p>Several operations return structures that appear similar, but have different purposes. As new functionality is added to the product, the structure used in a parameter of one operation might need to change in a way that wouldn't make sense for the same parameter in a different operation. To help you understand the purpose of each, the following naming convention is used for the structures:</p> <ul> <li> <p>Parameter type structures that end in <code>Detail</code> are used in <code>Get</code> operations.</p> </li> <li> <p>Parameter type structures that end in <code>Item</code> are used in <code>List</code> operations.</p> </li> <li> <p>Parameter type structures that use neither suffix are used in the mutating (create and update) operations.</p> </li> </ul>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
BatchGetPolicyCommandInput,
|
|
4
8
|
BatchGetPolicyCommandOutput,
|
|
@@ -512,6 +516,34 @@ export interface VerifiedPermissions {
|
|
|
512
516
|
options: __HttpHandlerOptions,
|
|
513
517
|
cb: (err: any, data?: UpdatePolicyTemplateCommandOutput) => void
|
|
514
518
|
): void;
|
|
519
|
+
paginateListIdentitySources(
|
|
520
|
+
args: ListIdentitySourcesCommandInput,
|
|
521
|
+
paginationConfig?: Pick<
|
|
522
|
+
PaginationConfiguration,
|
|
523
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
524
|
+
>
|
|
525
|
+
): Paginator<ListIdentitySourcesCommandOutput>;
|
|
526
|
+
paginateListPolicies(
|
|
527
|
+
args: ListPoliciesCommandInput,
|
|
528
|
+
paginationConfig?: Pick<
|
|
529
|
+
PaginationConfiguration,
|
|
530
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
531
|
+
>
|
|
532
|
+
): Paginator<ListPoliciesCommandOutput>;
|
|
533
|
+
paginateListPolicyStores(
|
|
534
|
+
args?: ListPolicyStoresCommandInput,
|
|
535
|
+
paginationConfig?: Pick<
|
|
536
|
+
PaginationConfiguration,
|
|
537
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
538
|
+
>
|
|
539
|
+
): Paginator<ListPolicyStoresCommandOutput>;
|
|
540
|
+
paginateListPolicyTemplates(
|
|
541
|
+
args: ListPolicyTemplatesCommandInput,
|
|
542
|
+
paginationConfig?: Pick<
|
|
543
|
+
PaginationConfiguration,
|
|
544
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
545
|
+
>
|
|
546
|
+
): Paginator<ListPolicyTemplatesCommandOutput>;
|
|
515
547
|
}
|
|
516
548
|
export declare class VerifiedPermissions
|
|
517
549
|
extends VerifiedPermissionsClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-verifiedpermissions",
|
|
3
3
|
"description": "AWS SDK for JavaScript Verifiedpermissions Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.980.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-verifiedpermissions",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.5",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.4",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.5",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.980.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.3",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|