@aws-sdk/client-verifiedpermissions 3.352.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/LICENSE +201 -0
- package/README.md +461 -0
- package/dist-cjs/VerifiedPermissions.js +59 -0
- package/dist-cjs/VerifiedPermissionsClient.js +41 -0
- package/dist-cjs/commands/CreateIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/CreatePolicyCommand.js +46 -0
- package/dist-cjs/commands/CreatePolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/CreatePolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/DeleteIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/DeletePolicyCommand.js +46 -0
- package/dist-cjs/commands/DeletePolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/DeletePolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/GetIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/GetPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetPolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/GetPolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/GetSchemaCommand.js +46 -0
- package/dist-cjs/commands/IsAuthorizedCommand.js +46 -0
- package/dist-cjs/commands/IsAuthorizedWithTokenCommand.js +46 -0
- package/dist-cjs/commands/ListIdentitySourcesCommand.js +46 -0
- package/dist-cjs/commands/ListPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListPolicyStoresCommand.js +46 -0
- package/dist-cjs/commands/ListPolicyTemplatesCommand.js +46 -0
- package/dist-cjs/commands/PutSchemaCommand.js +46 -0
- package/dist-cjs/commands/UpdateIdentitySourceCommand.js +46 -0
- package/dist-cjs/commands/UpdatePolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdatePolicyStoreCommand.js +46 -0
- package/dist-cjs/commands/UpdatePolicyTemplateCommand.js +46 -0
- package/dist-cjs/commands/index.js +27 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/VerifiedPermissionsServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +237 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListPoliciesPaginator.js +29 -0
- package/dist-cjs/pagination/ListPolicyStoresPaginator.js +29 -0
- package/dist-cjs/pagination/ListPolicyTemplatesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1772 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +48 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +21 -0
- package/dist-es/VerifiedPermissions.js +55 -0
- package/dist-es/VerifiedPermissionsClient.js +37 -0
- package/dist-es/commands/CreateIdentitySourceCommand.js +42 -0
- package/dist-es/commands/CreatePolicyCommand.js +42 -0
- package/dist-es/commands/CreatePolicyStoreCommand.js +42 -0
- package/dist-es/commands/CreatePolicyTemplateCommand.js +42 -0
- package/dist-es/commands/DeleteIdentitySourceCommand.js +42 -0
- package/dist-es/commands/DeletePolicyCommand.js +42 -0
- package/dist-es/commands/DeletePolicyStoreCommand.js +42 -0
- package/dist-es/commands/DeletePolicyTemplateCommand.js +42 -0
- package/dist-es/commands/GetIdentitySourceCommand.js +42 -0
- package/dist-es/commands/GetPolicyCommand.js +42 -0
- package/dist-es/commands/GetPolicyStoreCommand.js +42 -0
- package/dist-es/commands/GetPolicyTemplateCommand.js +42 -0
- package/dist-es/commands/GetSchemaCommand.js +42 -0
- package/dist-es/commands/IsAuthorizedCommand.js +42 -0
- package/dist-es/commands/IsAuthorizedWithTokenCommand.js +42 -0
- package/dist-es/commands/ListIdentitySourcesCommand.js +42 -0
- package/dist-es/commands/ListPoliciesCommand.js +42 -0
- package/dist-es/commands/ListPolicyStoresCommand.js +42 -0
- package/dist-es/commands/ListPolicyTemplatesCommand.js +42 -0
- package/dist-es/commands/PutSchemaCommand.js +42 -0
- package/dist-es/commands/UpdateIdentitySourceCommand.js +42 -0
- package/dist-es/commands/UpdatePolicyCommand.js +42 -0
- package/dist-es/commands/UpdatePolicyStoreCommand.js +42 -0
- package/dist-es/commands/UpdatePolicyTemplateCommand.js +42 -0
- package/dist-es/commands/index.js +24 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/VerifiedPermissionsServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +227 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListIdentitySourcesPaginator.js +25 -0
- package/dist-es/pagination/ListPoliciesPaginator.js +25 -0
- package/dist-es/pagination/ListPolicyStoresPaginator.js +25 -0
- package/dist-es/pagination/ListPolicyTemplatesPaginator.js +25 -0
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_0.js +1721 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +43 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +17 -0
- package/dist-types/VerifiedPermissions.d.ts +242 -0
- package/dist-types/VerifiedPermissionsClient.d.ts +250 -0
- package/dist-types/commands/CreateIdentitySourceCommand.d.ts +210 -0
- package/dist-types/commands/CreatePolicyCommand.d.ts +222 -0
- package/dist-types/commands/CreatePolicyStoreCommand.d.ts +175 -0
- package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +184 -0
- package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +175 -0
- package/dist-types/commands/DeletePolicyCommand.d.ts +174 -0
- package/dist-types/commands/DeletePolicyStoreCommand.d.ts +166 -0
- package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +177 -0
- package/dist-types/commands/GetIdentitySourceCommand.d.ts +182 -0
- package/dist-types/commands/GetPolicyCommand.d.ts +199 -0
- package/dist-types/commands/GetPolicyStoreCommand.d.ts +175 -0
- package/dist-types/commands/GetPolicyTemplateCommand.d.ts +175 -0
- package/dist-types/commands/GetSchemaCommand.d.ts +172 -0
- package/dist-types/commands/IsAuthorizedCommand.d.ts +239 -0
- package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +240 -0
- package/dist-types/commands/ListIdentitySourcesCommand.d.ts +193 -0
- package/dist-types/commands/ListPoliciesCommand.d.ts +222 -0
- package/dist-types/commands/ListPolicyStoresCommand.d.ts +174 -0
- package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +180 -0
- package/dist-types/commands/PutSchemaCommand.d.ts +188 -0
- package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +187 -0
- package/dist-types/commands/UpdatePolicyCommand.d.ts +202 -0
- package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +179 -0
- package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +184 -0
- package/dist-types/commands/index.d.ts +24 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +75 -0
- package/dist-types/models/VerifiedPermissionsServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2456 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListIdentitySourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyStoresPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPolicyTemplatesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +218 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +18 -0
- package/dist-types/ts3.4/VerifiedPermissions.d.ts +415 -0
- package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +259 -0
- package/dist-types/ts3.4/commands/CreateIdentitySourceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreatePolicyStoreCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePolicyTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteIdentitySourceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/DeletePolicyStoreCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeletePolicyTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetIdentitySourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPolicyStoreCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPolicyTemplateCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/IsAuthorizedCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/IsAuthorizedWithTokenCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListIdentitySourcesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListPolicyStoresCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListPolicyTemplatesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutSchemaCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateIdentitySourceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdatePolicyStoreCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePolicyTemplateCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +24 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/VerifiedPermissionsServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +757 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListIdentitySourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyStoresPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPolicyTemplatesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +293 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
- package/package.json +101 -0
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./VerifiedPermissionsClient";
|
|
2
|
+
export * from "./VerifiedPermissions";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models";
|
|
6
|
+
export { VerifiedPermissionsServiceException } from "./models/VerifiedPermissionsServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class VerifiedPermissionsServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, VerifiedPermissionsServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { VerifiedPermissionsServiceException as __BaseException } from "./VerifiedPermissionsServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "AccessDeniedException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "AccessDeniedException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export var Configuration;
|
|
15
|
+
(function (Configuration) {
|
|
16
|
+
Configuration.visit = (value, visitor) => {
|
|
17
|
+
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
18
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
19
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
20
|
+
};
|
|
21
|
+
})(Configuration || (Configuration = {}));
|
|
22
|
+
export const ResourceType = {
|
|
23
|
+
IDENTITY_SOURCE: "IDENTITY_SOURCE",
|
|
24
|
+
POLICY: "POLICY",
|
|
25
|
+
POLICY_STORE: "POLICY_STORE",
|
|
26
|
+
POLICY_TEMPLATE: "POLICY_TEMPLATE",
|
|
27
|
+
SCHEMA: "SCHEMA",
|
|
28
|
+
};
|
|
29
|
+
export class ConflictException extends __BaseException {
|
|
30
|
+
constructor(opts) {
|
|
31
|
+
super({
|
|
32
|
+
name: "ConflictException",
|
|
33
|
+
$fault: "client",
|
|
34
|
+
...opts,
|
|
35
|
+
});
|
|
36
|
+
this.name = "ConflictException";
|
|
37
|
+
this.$fault = "client";
|
|
38
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
39
|
+
this.resources = opts.resources;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export class InternalServerException extends __BaseException {
|
|
43
|
+
constructor(opts) {
|
|
44
|
+
super({
|
|
45
|
+
name: "InternalServerException",
|
|
46
|
+
$fault: "server",
|
|
47
|
+
...opts,
|
|
48
|
+
});
|
|
49
|
+
this.name = "InternalServerException";
|
|
50
|
+
this.$fault = "server";
|
|
51
|
+
this.$retryable = {};
|
|
52
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
56
|
+
constructor(opts) {
|
|
57
|
+
super({
|
|
58
|
+
name: "ResourceNotFoundException",
|
|
59
|
+
$fault: "client",
|
|
60
|
+
...opts,
|
|
61
|
+
});
|
|
62
|
+
this.name = "ResourceNotFoundException";
|
|
63
|
+
this.$fault = "client";
|
|
64
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
65
|
+
this.resourceId = opts.resourceId;
|
|
66
|
+
this.resourceType = opts.resourceType;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export class ServiceQuotaExceededException extends __BaseException {
|
|
70
|
+
constructor(opts) {
|
|
71
|
+
super({
|
|
72
|
+
name: "ServiceQuotaExceededException",
|
|
73
|
+
$fault: "client",
|
|
74
|
+
...opts,
|
|
75
|
+
});
|
|
76
|
+
this.name = "ServiceQuotaExceededException";
|
|
77
|
+
this.$fault = "client";
|
|
78
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
79
|
+
this.resourceId = opts.resourceId;
|
|
80
|
+
this.resourceType = opts.resourceType;
|
|
81
|
+
this.serviceCode = opts.serviceCode;
|
|
82
|
+
this.quotaCode = opts.quotaCode;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export class ThrottlingException extends __BaseException {
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "ThrottlingException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
this.name = "ThrottlingException";
|
|
93
|
+
this.$fault = "client";
|
|
94
|
+
this.$retryable = {
|
|
95
|
+
throttling: true,
|
|
96
|
+
};
|
|
97
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
98
|
+
this.serviceCode = opts.serviceCode;
|
|
99
|
+
this.quotaCode = opts.quotaCode;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export class ValidationException extends __BaseException {
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "ValidationException",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
this.name = "ValidationException";
|
|
110
|
+
this.$fault = "client";
|
|
111
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
112
|
+
this.fieldList = opts.fieldList;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
export var PolicyDefinition;
|
|
116
|
+
(function (PolicyDefinition) {
|
|
117
|
+
PolicyDefinition.visit = (value, visitor) => {
|
|
118
|
+
if (value.static !== undefined)
|
|
119
|
+
return visitor.static(value.static);
|
|
120
|
+
if (value.templateLinked !== undefined)
|
|
121
|
+
return visitor.templateLinked(value.templateLinked);
|
|
122
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
123
|
+
};
|
|
124
|
+
})(PolicyDefinition || (PolicyDefinition = {}));
|
|
125
|
+
export const PolicyType = {
|
|
126
|
+
STATIC: "STATIC",
|
|
127
|
+
TEMPLATE_LINKED: "TEMPLATE_LINKED",
|
|
128
|
+
};
|
|
129
|
+
export const ValidationMode = {
|
|
130
|
+
OFF: "OFF",
|
|
131
|
+
STRICT: "STRICT",
|
|
132
|
+
};
|
|
133
|
+
export const Decision = {
|
|
134
|
+
ALLOW: "ALLOW",
|
|
135
|
+
DENY: "DENY",
|
|
136
|
+
};
|
|
137
|
+
export var EntityReference;
|
|
138
|
+
(function (EntityReference) {
|
|
139
|
+
EntityReference.visit = (value, visitor) => {
|
|
140
|
+
if (value.unspecified !== undefined)
|
|
141
|
+
return visitor.unspecified(value.unspecified);
|
|
142
|
+
if (value.identifier !== undefined)
|
|
143
|
+
return visitor.identifier(value.identifier);
|
|
144
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
145
|
+
};
|
|
146
|
+
})(EntityReference || (EntityReference = {}));
|
|
147
|
+
export const OpenIdIssuer = {
|
|
148
|
+
COGNITO: "COGNITO",
|
|
149
|
+
};
|
|
150
|
+
export var PolicyDefinitionDetail;
|
|
151
|
+
(function (PolicyDefinitionDetail) {
|
|
152
|
+
PolicyDefinitionDetail.visit = (value, visitor) => {
|
|
153
|
+
if (value.static !== undefined)
|
|
154
|
+
return visitor.static(value.static);
|
|
155
|
+
if (value.templateLinked !== undefined)
|
|
156
|
+
return visitor.templateLinked(value.templateLinked);
|
|
157
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
158
|
+
};
|
|
159
|
+
})(PolicyDefinitionDetail || (PolicyDefinitionDetail = {}));
|
|
160
|
+
export var UpdateConfiguration;
|
|
161
|
+
(function (UpdateConfiguration) {
|
|
162
|
+
UpdateConfiguration.visit = (value, visitor) => {
|
|
163
|
+
if (value.cognitoUserPoolConfiguration !== undefined)
|
|
164
|
+
return visitor.cognitoUserPoolConfiguration(value.cognitoUserPoolConfiguration);
|
|
165
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
166
|
+
};
|
|
167
|
+
})(UpdateConfiguration || (UpdateConfiguration = {}));
|
|
168
|
+
export var PolicyDefinitionItem;
|
|
169
|
+
(function (PolicyDefinitionItem) {
|
|
170
|
+
PolicyDefinitionItem.visit = (value, visitor) => {
|
|
171
|
+
if (value.static !== undefined)
|
|
172
|
+
return visitor.static(value.static);
|
|
173
|
+
if (value.templateLinked !== undefined)
|
|
174
|
+
return visitor.templateLinked(value.templateLinked);
|
|
175
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
176
|
+
};
|
|
177
|
+
})(PolicyDefinitionItem || (PolicyDefinitionItem = {}));
|
|
178
|
+
export var UpdatePolicyDefinition;
|
|
179
|
+
(function (UpdatePolicyDefinition) {
|
|
180
|
+
UpdatePolicyDefinition.visit = (value, visitor) => {
|
|
181
|
+
if (value.static !== undefined)
|
|
182
|
+
return visitor.static(value.static);
|
|
183
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
184
|
+
};
|
|
185
|
+
})(UpdatePolicyDefinition || (UpdatePolicyDefinition = {}));
|
|
186
|
+
export var SchemaDefinition;
|
|
187
|
+
(function (SchemaDefinition) {
|
|
188
|
+
SchemaDefinition.visit = (value, visitor) => {
|
|
189
|
+
if (value.cedarJson !== undefined)
|
|
190
|
+
return visitor.cedarJson(value.cedarJson);
|
|
191
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
192
|
+
};
|
|
193
|
+
})(SchemaDefinition || (SchemaDefinition = {}));
|
|
194
|
+
export var AttributeValue;
|
|
195
|
+
(function (AttributeValue) {
|
|
196
|
+
AttributeValue.visit = (value, visitor) => {
|
|
197
|
+
if (value.boolean !== undefined)
|
|
198
|
+
return visitor.boolean(value.boolean);
|
|
199
|
+
if (value.entityIdentifier !== undefined)
|
|
200
|
+
return visitor.entityIdentifier(value.entityIdentifier);
|
|
201
|
+
if (value.long !== undefined)
|
|
202
|
+
return visitor.long(value.long);
|
|
203
|
+
if (value.string !== undefined)
|
|
204
|
+
return visitor.string(value.string);
|
|
205
|
+
if (value.set !== undefined)
|
|
206
|
+
return visitor.set(value.set);
|
|
207
|
+
if (value.record !== undefined)
|
|
208
|
+
return visitor.record(value.record);
|
|
209
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
210
|
+
};
|
|
211
|
+
})(AttributeValue || (AttributeValue = {}));
|
|
212
|
+
export var ContextDefinition;
|
|
213
|
+
(function (ContextDefinition) {
|
|
214
|
+
ContextDefinition.visit = (value, visitor) => {
|
|
215
|
+
if (value.contextMap !== undefined)
|
|
216
|
+
return visitor.contextMap(value.contextMap);
|
|
217
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
218
|
+
};
|
|
219
|
+
})(ContextDefinition || (ContextDefinition = {}));
|
|
220
|
+
export var EntitiesDefinition;
|
|
221
|
+
(function (EntitiesDefinition) {
|
|
222
|
+
EntitiesDefinition.visit = (value, visitor) => {
|
|
223
|
+
if (value.entityList !== undefined)
|
|
224
|
+
return visitor.entityList(value.entityList);
|
|
225
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
226
|
+
};
|
|
227
|
+
})(EntitiesDefinition || (EntitiesDefinition = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListIdentitySourcesCommand, } from "../commands/ListIdentitySourcesCommand";
|
|
2
|
+
import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListIdentitySourcesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListIdentitySources(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof VerifiedPermissionsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListPoliciesCommand, } from "../commands/ListPoliciesCommand";
|
|
2
|
+
import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPoliciesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPolicies(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof VerifiedPermissionsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListPolicyStoresCommand, } from "../commands/ListPolicyStoresCommand";
|
|
2
|
+
import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPolicyStoresCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPolicyStores(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof VerifiedPermissionsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListPolicyTemplatesCommand, } from "../commands/ListPolicyTemplatesCommand";
|
|
2
|
+
import { VerifiedPermissionsClient } from "../VerifiedPermissionsClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListPolicyTemplatesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListPolicyTemplates(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof VerifiedPermissionsClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected VerifiedPermissions | VerifiedPermissionsClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|