@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.
Files changed (183) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +461 -0
  3. package/dist-cjs/VerifiedPermissions.js +59 -0
  4. package/dist-cjs/VerifiedPermissionsClient.js +41 -0
  5. package/dist-cjs/commands/CreateIdentitySourceCommand.js +46 -0
  6. package/dist-cjs/commands/CreatePolicyCommand.js +46 -0
  7. package/dist-cjs/commands/CreatePolicyStoreCommand.js +46 -0
  8. package/dist-cjs/commands/CreatePolicyTemplateCommand.js +46 -0
  9. package/dist-cjs/commands/DeleteIdentitySourceCommand.js +46 -0
  10. package/dist-cjs/commands/DeletePolicyCommand.js +46 -0
  11. package/dist-cjs/commands/DeletePolicyStoreCommand.js +46 -0
  12. package/dist-cjs/commands/DeletePolicyTemplateCommand.js +46 -0
  13. package/dist-cjs/commands/GetIdentitySourceCommand.js +46 -0
  14. package/dist-cjs/commands/GetPolicyCommand.js +46 -0
  15. package/dist-cjs/commands/GetPolicyStoreCommand.js +46 -0
  16. package/dist-cjs/commands/GetPolicyTemplateCommand.js +46 -0
  17. package/dist-cjs/commands/GetSchemaCommand.js +46 -0
  18. package/dist-cjs/commands/IsAuthorizedCommand.js +46 -0
  19. package/dist-cjs/commands/IsAuthorizedWithTokenCommand.js +46 -0
  20. package/dist-cjs/commands/ListIdentitySourcesCommand.js +46 -0
  21. package/dist-cjs/commands/ListPoliciesCommand.js +46 -0
  22. package/dist-cjs/commands/ListPolicyStoresCommand.js +46 -0
  23. package/dist-cjs/commands/ListPolicyTemplatesCommand.js +46 -0
  24. package/dist-cjs/commands/PutSchemaCommand.js +46 -0
  25. package/dist-cjs/commands/UpdateIdentitySourceCommand.js +46 -0
  26. package/dist-cjs/commands/UpdatePolicyCommand.js +46 -0
  27. package/dist-cjs/commands/UpdatePolicyStoreCommand.js +46 -0
  28. package/dist-cjs/commands/UpdatePolicyTemplateCommand.js +46 -0
  29. package/dist-cjs/commands/index.js +27 -0
  30. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  31. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  32. package/dist-cjs/endpoint/ruleset.js +7 -0
  33. package/dist-cjs/index.js +11 -0
  34. package/dist-cjs/models/VerifiedPermissionsServiceException.js +12 -0
  35. package/dist-cjs/models/index.js +4 -0
  36. package/dist-cjs/models/models_0.js +237 -0
  37. package/dist-cjs/pagination/Interfaces.js +2 -0
  38. package/dist-cjs/pagination/ListIdentitySourcesPaginator.js +29 -0
  39. package/dist-cjs/pagination/ListPoliciesPaginator.js +29 -0
  40. package/dist-cjs/pagination/ListPolicyStoresPaginator.js +29 -0
  41. package/dist-cjs/pagination/ListPolicyTemplatesPaginator.js +29 -0
  42. package/dist-cjs/pagination/index.js +8 -0
  43. package/dist-cjs/protocols/Aws_json1_0.js +1772 -0
  44. package/dist-cjs/runtimeConfig.browser.js +39 -0
  45. package/dist-cjs/runtimeConfig.js +48 -0
  46. package/dist-cjs/runtimeConfig.native.js +15 -0
  47. package/dist-cjs/runtimeConfig.shared.js +21 -0
  48. package/dist-es/VerifiedPermissions.js +55 -0
  49. package/dist-es/VerifiedPermissionsClient.js +37 -0
  50. package/dist-es/commands/CreateIdentitySourceCommand.js +42 -0
  51. package/dist-es/commands/CreatePolicyCommand.js +42 -0
  52. package/dist-es/commands/CreatePolicyStoreCommand.js +42 -0
  53. package/dist-es/commands/CreatePolicyTemplateCommand.js +42 -0
  54. package/dist-es/commands/DeleteIdentitySourceCommand.js +42 -0
  55. package/dist-es/commands/DeletePolicyCommand.js +42 -0
  56. package/dist-es/commands/DeletePolicyStoreCommand.js +42 -0
  57. package/dist-es/commands/DeletePolicyTemplateCommand.js +42 -0
  58. package/dist-es/commands/GetIdentitySourceCommand.js +42 -0
  59. package/dist-es/commands/GetPolicyCommand.js +42 -0
  60. package/dist-es/commands/GetPolicyStoreCommand.js +42 -0
  61. package/dist-es/commands/GetPolicyTemplateCommand.js +42 -0
  62. package/dist-es/commands/GetSchemaCommand.js +42 -0
  63. package/dist-es/commands/IsAuthorizedCommand.js +42 -0
  64. package/dist-es/commands/IsAuthorizedWithTokenCommand.js +42 -0
  65. package/dist-es/commands/ListIdentitySourcesCommand.js +42 -0
  66. package/dist-es/commands/ListPoliciesCommand.js +42 -0
  67. package/dist-es/commands/ListPolicyStoresCommand.js +42 -0
  68. package/dist-es/commands/ListPolicyTemplatesCommand.js +42 -0
  69. package/dist-es/commands/PutSchemaCommand.js +42 -0
  70. package/dist-es/commands/UpdateIdentitySourceCommand.js +42 -0
  71. package/dist-es/commands/UpdatePolicyCommand.js +42 -0
  72. package/dist-es/commands/UpdatePolicyStoreCommand.js +42 -0
  73. package/dist-es/commands/UpdatePolicyTemplateCommand.js +42 -0
  74. package/dist-es/commands/index.js +24 -0
  75. package/dist-es/endpoint/EndpointParameters.js +8 -0
  76. package/dist-es/endpoint/endpointResolver.js +8 -0
  77. package/dist-es/endpoint/ruleset.js +4 -0
  78. package/dist-es/index.js +6 -0
  79. package/dist-es/models/VerifiedPermissionsServiceException.js +8 -0
  80. package/dist-es/models/index.js +1 -0
  81. package/dist-es/models/models_0.js +227 -0
  82. package/dist-es/pagination/Interfaces.js +1 -0
  83. package/dist-es/pagination/ListIdentitySourcesPaginator.js +25 -0
  84. package/dist-es/pagination/ListPoliciesPaginator.js +25 -0
  85. package/dist-es/pagination/ListPolicyStoresPaginator.js +25 -0
  86. package/dist-es/pagination/ListPolicyTemplatesPaginator.js +25 -0
  87. package/dist-es/pagination/index.js +5 -0
  88. package/dist-es/protocols/Aws_json1_0.js +1721 -0
  89. package/dist-es/runtimeConfig.browser.js +34 -0
  90. package/dist-es/runtimeConfig.js +43 -0
  91. package/dist-es/runtimeConfig.native.js +11 -0
  92. package/dist-es/runtimeConfig.shared.js +17 -0
  93. package/dist-types/VerifiedPermissions.d.ts +242 -0
  94. package/dist-types/VerifiedPermissionsClient.d.ts +250 -0
  95. package/dist-types/commands/CreateIdentitySourceCommand.d.ts +210 -0
  96. package/dist-types/commands/CreatePolicyCommand.d.ts +222 -0
  97. package/dist-types/commands/CreatePolicyStoreCommand.d.ts +175 -0
  98. package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +184 -0
  99. package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +175 -0
  100. package/dist-types/commands/DeletePolicyCommand.d.ts +174 -0
  101. package/dist-types/commands/DeletePolicyStoreCommand.d.ts +166 -0
  102. package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +177 -0
  103. package/dist-types/commands/GetIdentitySourceCommand.d.ts +182 -0
  104. package/dist-types/commands/GetPolicyCommand.d.ts +199 -0
  105. package/dist-types/commands/GetPolicyStoreCommand.d.ts +175 -0
  106. package/dist-types/commands/GetPolicyTemplateCommand.d.ts +175 -0
  107. package/dist-types/commands/GetSchemaCommand.d.ts +172 -0
  108. package/dist-types/commands/IsAuthorizedCommand.d.ts +239 -0
  109. package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +240 -0
  110. package/dist-types/commands/ListIdentitySourcesCommand.d.ts +193 -0
  111. package/dist-types/commands/ListPoliciesCommand.d.ts +222 -0
  112. package/dist-types/commands/ListPolicyStoresCommand.d.ts +174 -0
  113. package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +180 -0
  114. package/dist-types/commands/PutSchemaCommand.d.ts +188 -0
  115. package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +187 -0
  116. package/dist-types/commands/UpdatePolicyCommand.d.ts +202 -0
  117. package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +179 -0
  118. package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +184 -0
  119. package/dist-types/commands/index.d.ts +24 -0
  120. package/dist-types/endpoint/EndpointParameters.d.ts +20 -0
  121. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  122. package/dist-types/endpoint/ruleset.d.ts +2 -0
  123. package/dist-types/index.d.ts +75 -0
  124. package/dist-types/models/VerifiedPermissionsServiceException.d.ts +13 -0
  125. package/dist-types/models/index.d.ts +1 -0
  126. package/dist-types/models/models_0.d.ts +2456 -0
  127. package/dist-types/pagination/Interfaces.d.ts +8 -0
  128. package/dist-types/pagination/ListIdentitySourcesPaginator.d.ts +7 -0
  129. package/dist-types/pagination/ListPoliciesPaginator.d.ts +7 -0
  130. package/dist-types/pagination/ListPolicyStoresPaginator.d.ts +7 -0
  131. package/dist-types/pagination/ListPolicyTemplatesPaginator.d.ts +7 -0
  132. package/dist-types/pagination/index.d.ts +5 -0
  133. package/dist-types/protocols/Aws_json1_0.d.ts +218 -0
  134. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  135. package/dist-types/runtimeConfig.d.ts +42 -0
  136. package/dist-types/runtimeConfig.native.d.ts +41 -0
  137. package/dist-types/runtimeConfig.shared.d.ts +18 -0
  138. package/dist-types/ts3.4/VerifiedPermissions.d.ts +415 -0
  139. package/dist-types/ts3.4/VerifiedPermissionsClient.d.ts +259 -0
  140. package/dist-types/ts3.4/commands/CreateIdentitySourceCommand.d.ts +42 -0
  141. package/dist-types/ts3.4/commands/CreatePolicyCommand.d.ts +35 -0
  142. package/dist-types/ts3.4/commands/CreatePolicyStoreCommand.d.ts +38 -0
  143. package/dist-types/ts3.4/commands/CreatePolicyTemplateCommand.d.ts +42 -0
  144. package/dist-types/ts3.4/commands/DeleteIdentitySourceCommand.d.ts +42 -0
  145. package/dist-types/ts3.4/commands/DeletePolicyCommand.d.ts +35 -0
  146. package/dist-types/ts3.4/commands/DeletePolicyStoreCommand.d.ts +38 -0
  147. package/dist-types/ts3.4/commands/DeletePolicyTemplateCommand.d.ts +42 -0
  148. package/dist-types/ts3.4/commands/GetIdentitySourceCommand.d.ts +38 -0
  149. package/dist-types/ts3.4/commands/GetPolicyCommand.d.ts +35 -0
  150. package/dist-types/ts3.4/commands/GetPolicyStoreCommand.d.ts +35 -0
  151. package/dist-types/ts3.4/commands/GetPolicyTemplateCommand.d.ts +38 -0
  152. package/dist-types/ts3.4/commands/GetSchemaCommand.d.ts +35 -0
  153. package/dist-types/ts3.4/commands/IsAuthorizedCommand.d.ts +35 -0
  154. package/dist-types/ts3.4/commands/IsAuthorizedWithTokenCommand.d.ts +42 -0
  155. package/dist-types/ts3.4/commands/ListIdentitySourcesCommand.d.ts +39 -0
  156. package/dist-types/ts3.4/commands/ListPoliciesCommand.d.ts +35 -0
  157. package/dist-types/ts3.4/commands/ListPolicyStoresCommand.d.ts +38 -0
  158. package/dist-types/ts3.4/commands/ListPolicyTemplatesCommand.d.ts +39 -0
  159. package/dist-types/ts3.4/commands/PutSchemaCommand.d.ts +35 -0
  160. package/dist-types/ts3.4/commands/UpdateIdentitySourceCommand.d.ts +42 -0
  161. package/dist-types/ts3.4/commands/UpdatePolicyCommand.d.ts +35 -0
  162. package/dist-types/ts3.4/commands/UpdatePolicyStoreCommand.d.ts +38 -0
  163. package/dist-types/ts3.4/commands/UpdatePolicyTemplateCommand.d.ts +42 -0
  164. package/dist-types/ts3.4/commands/index.d.ts +24 -0
  165. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  166. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  167. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  168. package/dist-types/ts3.4/index.d.ts +6 -0
  169. package/dist-types/ts3.4/models/VerifiedPermissionsServiceException.d.ts +8 -0
  170. package/dist-types/ts3.4/models/index.d.ts +1 -0
  171. package/dist-types/ts3.4/models/models_0.d.ts +757 -0
  172. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  173. package/dist-types/ts3.4/pagination/ListIdentitySourcesPaginator.d.ts +11 -0
  174. package/dist-types/ts3.4/pagination/ListPoliciesPaginator.d.ts +11 -0
  175. package/dist-types/ts3.4/pagination/ListPolicyStoresPaginator.d.ts +11 -0
  176. package/dist-types/ts3.4/pagination/ListPolicyTemplatesPaginator.d.ts +11 -0
  177. package/dist-types/ts3.4/pagination/index.d.ts +5 -0
  178. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +293 -0
  179. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +96 -0
  180. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  181. package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
  182. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +20 -0
  183. package/package.json +101 -0
@@ -0,0 +1,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
8
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,43 @@
1
+ import packageInfo from "../package.json";
2
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { Hash } from "@aws-sdk/hash-node";
6
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
+ import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
11
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ return {
22
+ ...clientSharedValues,
23
+ ...config,
24
+ runtime: "node",
25
+ defaultsMode,
26
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
27
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
29
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
30
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
32
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
33
+ retryMode: config?.retryMode ??
34
+ loadNodeConfig({
35
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
+ }),
38
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
+ streamCollector: config?.streamCollector ?? streamCollector,
40
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
41
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
42
+ };
43
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,17 @@
1
+ import { NoOpLogger } from "@aws-sdk/smithy-client";
2
+ import { parseUrl } from "@aws-sdk/url-parser";
3
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
4
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8";
5
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
6
+ export const getRuntimeConfig = (config) => ({
7
+ apiVersion: "2021-12-01",
8
+ base64Decoder: config?.base64Decoder ?? fromBase64,
9
+ base64Encoder: config?.base64Encoder ?? toBase64,
10
+ disableHostPrefix: config?.disableHostPrefix ?? false,
11
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
12
+ logger: config?.logger ?? new NoOpLogger(),
13
+ serviceId: config?.serviceId ?? "VerifiedPermissions",
14
+ urlParser: config?.urlParser ?? parseUrl,
15
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
16
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
17
+ });
@@ -0,0 +1,242 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
3
+ import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
4
+ import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "./commands/CreatePolicyStoreCommand";
5
+ import { CreatePolicyTemplateCommandInput, CreatePolicyTemplateCommandOutput } from "./commands/CreatePolicyTemplateCommand";
6
+ import { DeleteIdentitySourceCommandInput, DeleteIdentitySourceCommandOutput } from "./commands/DeleteIdentitySourceCommand";
7
+ import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
8
+ import { DeletePolicyStoreCommandInput, DeletePolicyStoreCommandOutput } from "./commands/DeletePolicyStoreCommand";
9
+ import { DeletePolicyTemplateCommandInput, DeletePolicyTemplateCommandOutput } from "./commands/DeletePolicyTemplateCommand";
10
+ import { GetIdentitySourceCommandInput, GetIdentitySourceCommandOutput } from "./commands/GetIdentitySourceCommand";
11
+ import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
12
+ import { GetPolicyStoreCommandInput, GetPolicyStoreCommandOutput } from "./commands/GetPolicyStoreCommand";
13
+ import { GetPolicyTemplateCommandInput, GetPolicyTemplateCommandOutput } from "./commands/GetPolicyTemplateCommand";
14
+ import { GetSchemaCommandInput, GetSchemaCommandOutput } from "./commands/GetSchemaCommand";
15
+ import { IsAuthorizedCommandInput, IsAuthorizedCommandOutput } from "./commands/IsAuthorizedCommand";
16
+ import { IsAuthorizedWithTokenCommandInput, IsAuthorizedWithTokenCommandOutput } from "./commands/IsAuthorizedWithTokenCommand";
17
+ import { ListIdentitySourcesCommandInput, ListIdentitySourcesCommandOutput } from "./commands/ListIdentitySourcesCommand";
18
+ import { ListPoliciesCommandInput, ListPoliciesCommandOutput } from "./commands/ListPoliciesCommand";
19
+ import { ListPolicyStoresCommandInput, ListPolicyStoresCommandOutput } from "./commands/ListPolicyStoresCommand";
20
+ import { ListPolicyTemplatesCommandInput, ListPolicyTemplatesCommandOutput } from "./commands/ListPolicyTemplatesCommand";
21
+ import { PutSchemaCommandInput, PutSchemaCommandOutput } from "./commands/PutSchemaCommand";
22
+ import { UpdateIdentitySourceCommandInput, UpdateIdentitySourceCommandOutput } from "./commands/UpdateIdentitySourceCommand";
23
+ import { UpdatePolicyCommandInput, UpdatePolicyCommandOutput } from "./commands/UpdatePolicyCommand";
24
+ import { UpdatePolicyStoreCommandInput, UpdatePolicyStoreCommandOutput } from "./commands/UpdatePolicyStoreCommand";
25
+ import { UpdatePolicyTemplateCommandInput, UpdatePolicyTemplateCommandOutput } from "./commands/UpdatePolicyTemplateCommand";
26
+ import { VerifiedPermissionsClient } from "./VerifiedPermissionsClient";
27
+ export interface VerifiedPermissions {
28
+ /**
29
+ * @see {@link CreateIdentitySourceCommand}
30
+ */
31
+ createIdentitySource(args: CreateIdentitySourceCommandInput, options?: __HttpHandlerOptions): Promise<CreateIdentitySourceCommandOutput>;
32
+ createIdentitySource(args: CreateIdentitySourceCommandInput, cb: (err: any, data?: CreateIdentitySourceCommandOutput) => void): void;
33
+ createIdentitySource(args: CreateIdentitySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateIdentitySourceCommandOutput) => void): void;
34
+ /**
35
+ * @see {@link CreatePolicyCommand}
36
+ */
37
+ createPolicy(args: CreatePolicyCommandInput, options?: __HttpHandlerOptions): Promise<CreatePolicyCommandOutput>;
38
+ createPolicy(args: CreatePolicyCommandInput, cb: (err: any, data?: CreatePolicyCommandOutput) => void): void;
39
+ createPolicy(args: CreatePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePolicyCommandOutput) => void): void;
40
+ /**
41
+ * @see {@link CreatePolicyStoreCommand}
42
+ */
43
+ createPolicyStore(args: CreatePolicyStoreCommandInput, options?: __HttpHandlerOptions): Promise<CreatePolicyStoreCommandOutput>;
44
+ createPolicyStore(args: CreatePolicyStoreCommandInput, cb: (err: any, data?: CreatePolicyStoreCommandOutput) => void): void;
45
+ createPolicyStore(args: CreatePolicyStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePolicyStoreCommandOutput) => void): void;
46
+ /**
47
+ * @see {@link CreatePolicyTemplateCommand}
48
+ */
49
+ createPolicyTemplate(args: CreatePolicyTemplateCommandInput, options?: __HttpHandlerOptions): Promise<CreatePolicyTemplateCommandOutput>;
50
+ createPolicyTemplate(args: CreatePolicyTemplateCommandInput, cb: (err: any, data?: CreatePolicyTemplateCommandOutput) => void): void;
51
+ createPolicyTemplate(args: CreatePolicyTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePolicyTemplateCommandOutput) => void): void;
52
+ /**
53
+ * @see {@link DeleteIdentitySourceCommand}
54
+ */
55
+ deleteIdentitySource(args: DeleteIdentitySourceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteIdentitySourceCommandOutput>;
56
+ deleteIdentitySource(args: DeleteIdentitySourceCommandInput, cb: (err: any, data?: DeleteIdentitySourceCommandOutput) => void): void;
57
+ deleteIdentitySource(args: DeleteIdentitySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteIdentitySourceCommandOutput) => void): void;
58
+ /**
59
+ * @see {@link DeletePolicyCommand}
60
+ */
61
+ deletePolicy(args: DeletePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeletePolicyCommandOutput>;
62
+ deletePolicy(args: DeletePolicyCommandInput, cb: (err: any, data?: DeletePolicyCommandOutput) => void): void;
63
+ deletePolicy(args: DeletePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePolicyCommandOutput) => void): void;
64
+ /**
65
+ * @see {@link DeletePolicyStoreCommand}
66
+ */
67
+ deletePolicyStore(args: DeletePolicyStoreCommandInput, options?: __HttpHandlerOptions): Promise<DeletePolicyStoreCommandOutput>;
68
+ deletePolicyStore(args: DeletePolicyStoreCommandInput, cb: (err: any, data?: DeletePolicyStoreCommandOutput) => void): void;
69
+ deletePolicyStore(args: DeletePolicyStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePolicyStoreCommandOutput) => void): void;
70
+ /**
71
+ * @see {@link DeletePolicyTemplateCommand}
72
+ */
73
+ deletePolicyTemplate(args: DeletePolicyTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DeletePolicyTemplateCommandOutput>;
74
+ deletePolicyTemplate(args: DeletePolicyTemplateCommandInput, cb: (err: any, data?: DeletePolicyTemplateCommandOutput) => void): void;
75
+ deletePolicyTemplate(args: DeletePolicyTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePolicyTemplateCommandOutput) => void): void;
76
+ /**
77
+ * @see {@link GetIdentitySourceCommand}
78
+ */
79
+ getIdentitySource(args: GetIdentitySourceCommandInput, options?: __HttpHandlerOptions): Promise<GetIdentitySourceCommandOutput>;
80
+ getIdentitySource(args: GetIdentitySourceCommandInput, cb: (err: any, data?: GetIdentitySourceCommandOutput) => void): void;
81
+ getIdentitySource(args: GetIdentitySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentitySourceCommandOutput) => void): void;
82
+ /**
83
+ * @see {@link GetPolicyCommand}
84
+ */
85
+ getPolicy(args: GetPolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyCommandOutput>;
86
+ getPolicy(args: GetPolicyCommandInput, cb: (err: any, data?: GetPolicyCommandOutput) => void): void;
87
+ getPolicy(args: GetPolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyCommandOutput) => void): void;
88
+ /**
89
+ * @see {@link GetPolicyStoreCommand}
90
+ */
91
+ getPolicyStore(args: GetPolicyStoreCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyStoreCommandOutput>;
92
+ getPolicyStore(args: GetPolicyStoreCommandInput, cb: (err: any, data?: GetPolicyStoreCommandOutput) => void): void;
93
+ getPolicyStore(args: GetPolicyStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyStoreCommandOutput) => void): void;
94
+ /**
95
+ * @see {@link GetPolicyTemplateCommand}
96
+ */
97
+ getPolicyTemplate(args: GetPolicyTemplateCommandInput, options?: __HttpHandlerOptions): Promise<GetPolicyTemplateCommandOutput>;
98
+ getPolicyTemplate(args: GetPolicyTemplateCommandInput, cb: (err: any, data?: GetPolicyTemplateCommandOutput) => void): void;
99
+ getPolicyTemplate(args: GetPolicyTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPolicyTemplateCommandOutput) => void): void;
100
+ /**
101
+ * @see {@link GetSchemaCommand}
102
+ */
103
+ getSchema(args: GetSchemaCommandInput, options?: __HttpHandlerOptions): Promise<GetSchemaCommandOutput>;
104
+ getSchema(args: GetSchemaCommandInput, cb: (err: any, data?: GetSchemaCommandOutput) => void): void;
105
+ getSchema(args: GetSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSchemaCommandOutput) => void): void;
106
+ /**
107
+ * @see {@link IsAuthorizedCommand}
108
+ */
109
+ isAuthorized(args: IsAuthorizedCommandInput, options?: __HttpHandlerOptions): Promise<IsAuthorizedCommandOutput>;
110
+ isAuthorized(args: IsAuthorizedCommandInput, cb: (err: any, data?: IsAuthorizedCommandOutput) => void): void;
111
+ isAuthorized(args: IsAuthorizedCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IsAuthorizedCommandOutput) => void): void;
112
+ /**
113
+ * @see {@link IsAuthorizedWithTokenCommand}
114
+ */
115
+ isAuthorizedWithToken(args: IsAuthorizedWithTokenCommandInput, options?: __HttpHandlerOptions): Promise<IsAuthorizedWithTokenCommandOutput>;
116
+ isAuthorizedWithToken(args: IsAuthorizedWithTokenCommandInput, cb: (err: any, data?: IsAuthorizedWithTokenCommandOutput) => void): void;
117
+ isAuthorizedWithToken(args: IsAuthorizedWithTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IsAuthorizedWithTokenCommandOutput) => void): void;
118
+ /**
119
+ * @see {@link ListIdentitySourcesCommand}
120
+ */
121
+ listIdentitySources(args: ListIdentitySourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListIdentitySourcesCommandOutput>;
122
+ listIdentitySources(args: ListIdentitySourcesCommandInput, cb: (err: any, data?: ListIdentitySourcesCommandOutput) => void): void;
123
+ listIdentitySources(args: ListIdentitySourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListIdentitySourcesCommandOutput) => void): void;
124
+ /**
125
+ * @see {@link ListPoliciesCommand}
126
+ */
127
+ listPolicies(args: ListPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<ListPoliciesCommandOutput>;
128
+ listPolicies(args: ListPoliciesCommandInput, cb: (err: any, data?: ListPoliciesCommandOutput) => void): void;
129
+ listPolicies(args: ListPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPoliciesCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link ListPolicyStoresCommand}
132
+ */
133
+ listPolicyStores(args: ListPolicyStoresCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyStoresCommandOutput>;
134
+ listPolicyStores(args: ListPolicyStoresCommandInput, cb: (err: any, data?: ListPolicyStoresCommandOutput) => void): void;
135
+ listPolicyStores(args: ListPolicyStoresCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyStoresCommandOutput) => void): void;
136
+ /**
137
+ * @see {@link ListPolicyTemplatesCommand}
138
+ */
139
+ listPolicyTemplates(args: ListPolicyTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListPolicyTemplatesCommandOutput>;
140
+ listPolicyTemplates(args: ListPolicyTemplatesCommandInput, cb: (err: any, data?: ListPolicyTemplatesCommandOutput) => void): void;
141
+ listPolicyTemplates(args: ListPolicyTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPolicyTemplatesCommandOutput) => void): void;
142
+ /**
143
+ * @see {@link PutSchemaCommand}
144
+ */
145
+ putSchema(args: PutSchemaCommandInput, options?: __HttpHandlerOptions): Promise<PutSchemaCommandOutput>;
146
+ putSchema(args: PutSchemaCommandInput, cb: (err: any, data?: PutSchemaCommandOutput) => void): void;
147
+ putSchema(args: PutSchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutSchemaCommandOutput) => void): void;
148
+ /**
149
+ * @see {@link UpdateIdentitySourceCommand}
150
+ */
151
+ updateIdentitySource(args: UpdateIdentitySourceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateIdentitySourceCommandOutput>;
152
+ updateIdentitySource(args: UpdateIdentitySourceCommandInput, cb: (err: any, data?: UpdateIdentitySourceCommandOutput) => void): void;
153
+ updateIdentitySource(args: UpdateIdentitySourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateIdentitySourceCommandOutput) => void): void;
154
+ /**
155
+ * @see {@link UpdatePolicyCommand}
156
+ */
157
+ updatePolicy(args: UpdatePolicyCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePolicyCommandOutput>;
158
+ updatePolicy(args: UpdatePolicyCommandInput, cb: (err: any, data?: UpdatePolicyCommandOutput) => void): void;
159
+ updatePolicy(args: UpdatePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePolicyCommandOutput) => void): void;
160
+ /**
161
+ * @see {@link UpdatePolicyStoreCommand}
162
+ */
163
+ updatePolicyStore(args: UpdatePolicyStoreCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePolicyStoreCommandOutput>;
164
+ updatePolicyStore(args: UpdatePolicyStoreCommandInput, cb: (err: any, data?: UpdatePolicyStoreCommandOutput) => void): void;
165
+ updatePolicyStore(args: UpdatePolicyStoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePolicyStoreCommandOutput) => void): void;
166
+ /**
167
+ * @see {@link UpdatePolicyTemplateCommand}
168
+ */
169
+ updatePolicyTemplate(args: UpdatePolicyTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePolicyTemplateCommandOutput>;
170
+ updatePolicyTemplate(args: UpdatePolicyTemplateCommandInput, cb: (err: any, data?: UpdatePolicyTemplateCommandOutput) => void): void;
171
+ updatePolicyTemplate(args: UpdatePolicyTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePolicyTemplateCommandOutput) => void): void;
172
+ }
173
+ /**
174
+ * @public
175
+ * <p>Amazon Verified Permissions is a permissions management service from Amazon Web Services. You can use Verified Permissions to manage
176
+ * permissions for your application, and authorize user access based on those permissions.
177
+ * Using Verified Permissions, application developers can grant access based on information about the
178
+ * users, resources, and requested actions. You can also evaluate additional information
179
+ * like group membership, attributes of the resources, and session context, such as time of
180
+ * request and IP addresses. Verified Permissions manages these permissions by letting you create and
181
+ * store authorization policies for your applications, such as consumer-facing web sites
182
+ * and enterprise business systems.</p>
183
+ * <p>Verified Permissions uses Cedar as the policy language to express your permission requirements.
184
+ * Cedar supports both role-based access control (RBAC) and attribute-based access
185
+ * control (ABAC) authorization models.</p>
186
+ * <p>For more information about configuring, administering, and using Amazon Verified Permissions in your
187
+ * applications, see the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/">Amazon Verified Permissions User Guide</a>.</p>
188
+ * <p>For more information about the Cedar policy language, see the <a href="docs.cedarpolicy.com">Cedar Policy Language Guide</a>.</p>
189
+ * <important>
190
+ * <p>When you write Cedar policies that reference principals, resources and actions,
191
+ * you can define the unique identifiers used for each of those elements. We strongly
192
+ * recommend that you follow these best practices:</p>
193
+ * <ul>
194
+ * <li>
195
+ * <p>
196
+ * <b>Use values like universally unique identifiers
197
+ * (UUIDs) for all principal and resource identifiers.</b>
198
+ * </p>
199
+ * <p>For example, if user <code>jane</code> leaves the company, and you later
200
+ * let someone else use the name <code>jane</code>, then that new user
201
+ * automatically gets access to everything granted by policies that still
202
+ * reference <code>User::"jane"</code>. Cedar can’t distinguish between the
203
+ * new user and the old. This applies to both principal and resource
204
+ * identifiers. Always use identifiers that are guaranteed unique and never
205
+ * reused to ensure that you don’t unintentionally grant access because of the
206
+ * presence of an old identifier in a policy.</p>
207
+ * <p>Where you use a UUID for an entity, we recommend that you follow it with
208
+ * the // comment specifier and the ‘friendly’ name of your entity. This helps
209
+ * to make your policies easier to understand. For example: principal ==
210
+ * User::"a1b2c3d4-e5f6-a1b2-c3d4-EXAMPLE11111", // alice</p>
211
+ * </li>
212
+ * <li>
213
+ * <p>
214
+ * <b>Do not include personally identifying, confidential,
215
+ * or sensitive information as part of the unique identifier for your
216
+ * principals or resources.</b> These identifiers are included in
217
+ * log entries shared in CloudTrail trails.</p>
218
+ * </li>
219
+ * </ul>
220
+ * </important>
221
+ * <p>Several operations return structures that appear similar, but have different purposes.
222
+ * As new functionality is added to the product, the structure used in a parameter of one
223
+ * operation might need to change in a way that wouldn't make sense for the same parameter
224
+ * in a different operation. To help you understand the purpose of each, the following
225
+ * naming convention is used for the structures:</p>
226
+ * <ul>
227
+ * <li>
228
+ * <p>Parameters that end in <code>Detail</code> are used in <code>Get</code>
229
+ * operations.</p>
230
+ * </li>
231
+ * <li>
232
+ * <p>Parameters that end in <code>Item</code> are used in <code>List</code>
233
+ * operations.</p>
234
+ * </li>
235
+ * <li>
236
+ * <p>Parameters that use neither suffix are used in the mutating (create and
237
+ * update) operations.</p>
238
+ * </li>
239
+ * </ul>
240
+ */
241
+ export declare class VerifiedPermissions extends VerifiedPermissionsClient implements VerifiedPermissions {
242
+ }
@@ -0,0 +1,250 @@
1
+ import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
3
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
4
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
5
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
10
+ import { Decoder as __Decoder, Encoder as __Encoder, Provider as __Provider, StreamCollector as __StreamCollector } from "@smithy/types";
11
+ import { CreateIdentitySourceCommandInput, CreateIdentitySourceCommandOutput } from "./commands/CreateIdentitySourceCommand";
12
+ import { CreatePolicyCommandInput, CreatePolicyCommandOutput } from "./commands/CreatePolicyCommand";
13
+ import { CreatePolicyStoreCommandInput, CreatePolicyStoreCommandOutput } from "./commands/CreatePolicyStoreCommand";
14
+ import { CreatePolicyTemplateCommandInput, CreatePolicyTemplateCommandOutput } from "./commands/CreatePolicyTemplateCommand";
15
+ import { DeleteIdentitySourceCommandInput, DeleteIdentitySourceCommandOutput } from "./commands/DeleteIdentitySourceCommand";
16
+ import { DeletePolicyCommandInput, DeletePolicyCommandOutput } from "./commands/DeletePolicyCommand";
17
+ import { DeletePolicyStoreCommandInput, DeletePolicyStoreCommandOutput } from "./commands/DeletePolicyStoreCommand";
18
+ import { DeletePolicyTemplateCommandInput, DeletePolicyTemplateCommandOutput } from "./commands/DeletePolicyTemplateCommand";
19
+ import { GetIdentitySourceCommandInput, GetIdentitySourceCommandOutput } from "./commands/GetIdentitySourceCommand";
20
+ import { GetPolicyCommandInput, GetPolicyCommandOutput } from "./commands/GetPolicyCommand";
21
+ import { GetPolicyStoreCommandInput, GetPolicyStoreCommandOutput } from "./commands/GetPolicyStoreCommand";
22
+ import { GetPolicyTemplateCommandInput, GetPolicyTemplateCommandOutput } from "./commands/GetPolicyTemplateCommand";
23
+ import { GetSchemaCommandInput, GetSchemaCommandOutput } from "./commands/GetSchemaCommand";
24
+ import { IsAuthorizedCommandInput, IsAuthorizedCommandOutput } from "./commands/IsAuthorizedCommand";
25
+ import { IsAuthorizedWithTokenCommandInput, IsAuthorizedWithTokenCommandOutput } from "./commands/IsAuthorizedWithTokenCommand";
26
+ import { ListIdentitySourcesCommandInput, ListIdentitySourcesCommandOutput } from "./commands/ListIdentitySourcesCommand";
27
+ import { ListPoliciesCommandInput, ListPoliciesCommandOutput } from "./commands/ListPoliciesCommand";
28
+ import { ListPolicyStoresCommandInput, ListPolicyStoresCommandOutput } from "./commands/ListPolicyStoresCommand";
29
+ import { ListPolicyTemplatesCommandInput, ListPolicyTemplatesCommandOutput } from "./commands/ListPolicyTemplatesCommand";
30
+ import { PutSchemaCommandInput, PutSchemaCommandOutput } from "./commands/PutSchemaCommand";
31
+ import { UpdateIdentitySourceCommandInput, UpdateIdentitySourceCommandOutput } from "./commands/UpdateIdentitySourceCommand";
32
+ import { UpdatePolicyCommandInput, UpdatePolicyCommandOutput } from "./commands/UpdatePolicyCommand";
33
+ import { UpdatePolicyStoreCommandInput, UpdatePolicyStoreCommandOutput } from "./commands/UpdatePolicyStoreCommand";
34
+ import { UpdatePolicyTemplateCommandInput, UpdatePolicyTemplateCommandOutput } from "./commands/UpdatePolicyTemplateCommand";
35
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
36
+ export { __Client };
37
+ /**
38
+ * @public
39
+ */
40
+ export type ServiceInputTypes = CreateIdentitySourceCommandInput | CreatePolicyCommandInput | CreatePolicyStoreCommandInput | CreatePolicyTemplateCommandInput | DeleteIdentitySourceCommandInput | DeletePolicyCommandInput | DeletePolicyStoreCommandInput | DeletePolicyTemplateCommandInput | GetIdentitySourceCommandInput | GetPolicyCommandInput | GetPolicyStoreCommandInput | GetPolicyTemplateCommandInput | GetSchemaCommandInput | IsAuthorizedCommandInput | IsAuthorizedWithTokenCommandInput | ListIdentitySourcesCommandInput | ListPoliciesCommandInput | ListPolicyStoresCommandInput | ListPolicyTemplatesCommandInput | PutSchemaCommandInput | UpdateIdentitySourceCommandInput | UpdatePolicyCommandInput | UpdatePolicyStoreCommandInput | UpdatePolicyTemplateCommandInput;
41
+ /**
42
+ * @public
43
+ */
44
+ export type ServiceOutputTypes = CreateIdentitySourceCommandOutput | CreatePolicyCommandOutput | CreatePolicyStoreCommandOutput | CreatePolicyTemplateCommandOutput | DeleteIdentitySourceCommandOutput | DeletePolicyCommandOutput | DeletePolicyStoreCommandOutput | DeletePolicyTemplateCommandOutput | GetIdentitySourceCommandOutput | GetPolicyCommandOutput | GetPolicyStoreCommandOutput | GetPolicyTemplateCommandOutput | GetSchemaCommandOutput | IsAuthorizedCommandOutput | IsAuthorizedWithTokenCommandOutput | ListIdentitySourcesCommandOutput | ListPoliciesCommandOutput | ListPolicyStoresCommandOutput | ListPolicyTemplatesCommandOutput | PutSchemaCommandOutput | UpdateIdentitySourceCommandOutput | UpdatePolicyCommandOutput | UpdatePolicyStoreCommandOutput | UpdatePolicyTemplateCommandOutput;
45
+ /**
46
+ * @public
47
+ */
48
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
49
+ /**
50
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
51
+ */
52
+ requestHandler?: __HttpHandler;
53
+ /**
54
+ * A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
55
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
56
+ * @internal
57
+ */
58
+ sha256?: __ChecksumConstructor | __HashConstructor;
59
+ /**
60
+ * The function that will be used to convert strings into HTTP endpoints.
61
+ * @internal
62
+ */
63
+ urlParser?: __UrlParser;
64
+ /**
65
+ * A function that can calculate the length of a request body.
66
+ * @internal
67
+ */
68
+ bodyLengthChecker?: __BodyLengthCalculator;
69
+ /**
70
+ * A function that converts a stream into an array of bytes.
71
+ * @internal
72
+ */
73
+ streamCollector?: __StreamCollector;
74
+ /**
75
+ * The function that will be used to convert a base64-encoded string to a byte array.
76
+ * @internal
77
+ */
78
+ base64Decoder?: __Decoder;
79
+ /**
80
+ * The function that will be used to convert binary data to a base64-encoded string.
81
+ * @internal
82
+ */
83
+ base64Encoder?: __Encoder;
84
+ /**
85
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
86
+ * @internal
87
+ */
88
+ utf8Decoder?: __Decoder;
89
+ /**
90
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
91
+ * @internal
92
+ */
93
+ utf8Encoder?: __Encoder;
94
+ /**
95
+ * The runtime environment.
96
+ * @internal
97
+ */
98
+ runtime?: string;
99
+ /**
100
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
101
+ * trait of an operation.
102
+ */
103
+ disableHostPrefix?: boolean;
104
+ /**
105
+ * Unique service identifier.
106
+ * @internal
107
+ */
108
+ serviceId?: string;
109
+ /**
110
+ * Enables IPv6/IPv4 dualstack endpoint.
111
+ */
112
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
113
+ /**
114
+ * Enables FIPS compatible endpoints.
115
+ */
116
+ useFipsEndpoint?: boolean | __Provider<boolean>;
117
+ /**
118
+ * The AWS region to which this client will send requests
119
+ */
120
+ region?: string | __Provider<string>;
121
+ /**
122
+ * Default credentials provider; Not available in browser runtime.
123
+ * @internal
124
+ */
125
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
126
+ /**
127
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
128
+ * @internal
129
+ */
130
+ defaultUserAgentProvider?: Provider<__UserAgent>;
131
+ /**
132
+ * Value for how many times a request will be made at most in case of retry.
133
+ */
134
+ maxAttempts?: number | __Provider<number>;
135
+ /**
136
+ * Specifies which retry algorithm to use.
137
+ */
138
+ retryMode?: string | __Provider<string>;
139
+ /**
140
+ * Optional logger for logging debug/info/warn/error.
141
+ */
142
+ logger?: __Logger;
143
+ /**
144
+ * The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
145
+ */
146
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
147
+ }
148
+ /**
149
+ * @public
150
+ */
151
+ export type VerifiedPermissionsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
152
+ /**
153
+ * @public
154
+ *
155
+ * The configuration interface of VerifiedPermissionsClient class constructor that set the region, credentials and other options.
156
+ */
157
+ export interface VerifiedPermissionsClientConfig extends VerifiedPermissionsClientConfigType {
158
+ }
159
+ /**
160
+ * @public
161
+ */
162
+ export type VerifiedPermissionsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
163
+ /**
164
+ * @public
165
+ *
166
+ * The resolved configuration interface of VerifiedPermissionsClient class. This is resolved and normalized from the {@link VerifiedPermissionsClientConfig | constructor configuration interface}.
167
+ */
168
+ export interface VerifiedPermissionsClientResolvedConfig extends VerifiedPermissionsClientResolvedConfigType {
169
+ }
170
+ /**
171
+ * @public
172
+ * <p>Amazon Verified Permissions is a permissions management service from Amazon Web Services. You can use Verified Permissions to manage
173
+ * permissions for your application, and authorize user access based on those permissions.
174
+ * Using Verified Permissions, application developers can grant access based on information about the
175
+ * users, resources, and requested actions. You can also evaluate additional information
176
+ * like group membership, attributes of the resources, and session context, such as time of
177
+ * request and IP addresses. Verified Permissions manages these permissions by letting you create and
178
+ * store authorization policies for your applications, such as consumer-facing web sites
179
+ * and enterprise business systems.</p>
180
+ * <p>Verified Permissions uses Cedar as the policy language to express your permission requirements.
181
+ * Cedar supports both role-based access control (RBAC) and attribute-based access
182
+ * control (ABAC) authorization models.</p>
183
+ * <p>For more information about configuring, administering, and using Amazon Verified Permissions in your
184
+ * applications, see the <a href="https://docs.aws.amazon.com/verifiedpermissions/latest/userguide/">Amazon Verified Permissions User Guide</a>.</p>
185
+ * <p>For more information about the Cedar policy language, see the <a href="docs.cedarpolicy.com">Cedar Policy Language Guide</a>.</p>
186
+ * <important>
187
+ * <p>When you write Cedar policies that reference principals, resources and actions,
188
+ * you can define the unique identifiers used for each of those elements. We strongly
189
+ * recommend that you follow these best practices:</p>
190
+ * <ul>
191
+ * <li>
192
+ * <p>
193
+ * <b>Use values like universally unique identifiers
194
+ * (UUIDs) for all principal and resource identifiers.</b>
195
+ * </p>
196
+ * <p>For example, if user <code>jane</code> leaves the company, and you later
197
+ * let someone else use the name <code>jane</code>, then that new user
198
+ * automatically gets access to everything granted by policies that still
199
+ * reference <code>User::"jane"</code>. Cedar can’t distinguish between the
200
+ * new user and the old. This applies to both principal and resource
201
+ * identifiers. Always use identifiers that are guaranteed unique and never
202
+ * reused to ensure that you don’t unintentionally grant access because of the
203
+ * presence of an old identifier in a policy.</p>
204
+ * <p>Where you use a UUID for an entity, we recommend that you follow it with
205
+ * the // comment specifier and the ‘friendly’ name of your entity. This helps
206
+ * to make your policies easier to understand. For example: principal ==
207
+ * User::"a1b2c3d4-e5f6-a1b2-c3d4-EXAMPLE11111", // alice</p>
208
+ * </li>
209
+ * <li>
210
+ * <p>
211
+ * <b>Do not include personally identifying, confidential,
212
+ * or sensitive information as part of the unique identifier for your
213
+ * principals or resources.</b> These identifiers are included in
214
+ * log entries shared in CloudTrail trails.</p>
215
+ * </li>
216
+ * </ul>
217
+ * </important>
218
+ * <p>Several operations return structures that appear similar, but have different purposes.
219
+ * As new functionality is added to the product, the structure used in a parameter of one
220
+ * operation might need to change in a way that wouldn't make sense for the same parameter
221
+ * in a different operation. To help you understand the purpose of each, the following
222
+ * naming convention is used for the structures:</p>
223
+ * <ul>
224
+ * <li>
225
+ * <p>Parameters that end in <code>Detail</code> are used in <code>Get</code>
226
+ * operations.</p>
227
+ * </li>
228
+ * <li>
229
+ * <p>Parameters that end in <code>Item</code> are used in <code>List</code>
230
+ * operations.</p>
231
+ * </li>
232
+ * <li>
233
+ * <p>Parameters that use neither suffix are used in the mutating (create and
234
+ * update) operations.</p>
235
+ * </li>
236
+ * </ul>
237
+ */
238
+ export declare class VerifiedPermissionsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, VerifiedPermissionsClientResolvedConfig> {
239
+ /**
240
+ * The resolved configuration of VerifiedPermissionsClient class. This is resolved and normalized from the {@link VerifiedPermissionsClientConfig | constructor configuration interface}.
241
+ */
242
+ readonly config: VerifiedPermissionsClientResolvedConfig;
243
+ constructor(configuration: VerifiedPermissionsClientConfig);
244
+ /**
245
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
246
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
247
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
248
+ */
249
+ destroy(): void;
250
+ }