@aws-sdk/client-verifiedpermissions 3.661.0 → 3.664.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 (35) hide show
  1. package/dist-cjs/runtimeConfig.js +1 -0
  2. package/dist-es/runtimeConfig.js +2 -1
  3. package/dist-types/commands/BatchIsAuthorizedCommand.d.ts +161 -0
  4. package/dist-types/commands/BatchIsAuthorizedWithTokenCommand.d.ts +135 -0
  5. package/dist-types/commands/CreateIdentitySourceCommand.d.ts +29 -0
  6. package/dist-types/commands/CreatePolicyCommand.d.ts +108 -0
  7. package/dist-types/commands/CreatePolicyStoreCommand.d.ts +22 -0
  8. package/dist-types/commands/CreatePolicyTemplateCommand.d.ts +22 -0
  9. package/dist-types/commands/DeleteIdentitySourceCommand.d.ts +12 -0
  10. package/dist-types/commands/DeletePolicyCommand.d.ts +12 -0
  11. package/dist-types/commands/DeletePolicyStoreCommand.d.ts +11 -0
  12. package/dist-types/commands/DeletePolicyTemplateCommand.d.ts +12 -0
  13. package/dist-types/commands/GetIdentitySourceCommand.d.ts +29 -0
  14. package/dist-types/commands/GetPolicyCommand.d.ts +31 -0
  15. package/dist-types/commands/GetPolicyStoreCommand.d.ts +22 -0
  16. package/dist-types/commands/GetPolicyTemplateCommand.d.ts +22 -0
  17. package/dist-types/commands/GetSchemaCommand.d.ts +24 -0
  18. package/dist-types/commands/IsAuthorizedCommand.d.ts +66 -0
  19. package/dist-types/commands/IsAuthorizedWithTokenCommand.d.ts +37 -0
  20. package/dist-types/commands/ListIdentitySourcesCommand.d.ts +32 -0
  21. package/dist-types/commands/ListPoliciesCommand.d.ts +164 -0
  22. package/dist-types/commands/ListPolicyStoresCommand.d.ts +25 -0
  23. package/dist-types/commands/ListPolicyTemplatesCommand.d.ts +31 -0
  24. package/dist-types/commands/PutSchemaCommand.d.ts +29 -0
  25. package/dist-types/commands/UpdateIdentitySourceCommand.d.ts +28 -0
  26. package/dist-types/commands/UpdatePolicyCommand.d.ts +30 -0
  27. package/dist-types/commands/UpdatePolicyStoreCommand.d.ts +22 -0
  28. package/dist-types/commands/UpdatePolicyTemplateCommand.d.ts +27 -0
  29. package/dist-types/runtimeConfig.browser.d.ts +2 -1
  30. package/dist-types/runtimeConfig.d.ts +2 -1
  31. package/dist-types/runtimeConfig.native.d.ts +2 -1
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -3
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +6 -3
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -3
  35. package/package.json +35 -35
@@ -173,6 +173,33 @@ declare const UpdatePolicyTemplateCommand_base: {
173
173
  * <p>Base exception class for all service exceptions from VerifiedPermissions service.</p>
174
174
  *
175
175
  * @public
176
+ * @example UpdatePolicyTemplate
177
+ * ```javascript
178
+ * // The following example updates a policy template with both a new description and a new policy body. The effect, principal, and resource are the same as the original policy template. Only the action in the head, and the when and unless clauses can be different.
179
+ * //
180
+ * // Note
181
+ * // The JSON in the parameters of this operation are strings that can contain embedded quotation marks (") within the outermost quotation mark pair. This requires that you stringify the JSON object by preceding all embedded quotation marks with a backslash character ( \" ) and combining all lines into a single text line with no line breaks.
182
+ * //
183
+ * // Example strings might be displayed wrapped across multiple lines here for readability, but the operation requires the parameters be submitted as single line strings.
184
+ * const input = {
185
+ * "description": "My updated template description",
186
+ * "policyStoreId": "C7v5xMplfFH3i3e4Jrzb1a",
187
+ * "policyTemplateId": "PTEXAMPLEabcdefg111111",
188
+ * "statement": "\"ResearchAccess\"\npermit(\nprincipal in ?principal,\naction == Action::\"view\",\nresource in ?resource\"\n)\nwhen {\nprincipal has department && principal.department == \"research\"\n};"
189
+ * };
190
+ * const command = new UpdatePolicyTemplateCommand(input);
191
+ * const response = await client.send(command);
192
+ * /* response ==
193
+ * {
194
+ * "createdDate": "2023-05-17T18:58:48.795411Z",
195
+ * "lastUpdatedDate": "2023-05-17T19:18:48.870209Z",
196
+ * "policyStoreId": "C7v5xMplfFH3i3e4Jrzb1a",
197
+ * "policyTemplateId": "PTEXAMPLEabcdefg111111"
198
+ * }
199
+ * *\/
200
+ * // example id: example-1
201
+ * ```
202
+ *
176
203
  */
177
204
  export declare class UpdatePolicyTemplateCommand extends UpdatePolicyTemplateCommand_base {
178
205
  /** @internal type navigation helper, not in runtime. */
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: VerifiedPermissionsClientConfig)
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
14
14
  requestHandler: import("@smithy/protocol-http").HttpHandler<any> | RequestHandler;
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: VerifiedPermissionsClientConfig)
29
29
  logger: import("@smithy/types").Logger;
30
30
  extensions: import("./runtimeExtensions").RuntimeExtension[];
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
32
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
33
34
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
34
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: VerifiedPermissionsClientConfig)
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
11
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
11
+ defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
14
14
  requestHandler: RequestHandler | import("@smithy/protocol-http").HttpHandler<any>;
@@ -17,6 +17,7 @@ export declare const getRuntimeConfig: (config: VerifiedPermissionsClientConfig)
17
17
  streamCollector: import("@smithy/types").StreamCollector;
18
18
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
20
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
20
21
  apiVersion: string;
21
22
  cacheMiddleware?: boolean | undefined;
22
23
  urlParser: import("@smithy/types").UrlParser;
@@ -20,7 +20,7 @@ export declare const getRuntimeConfig: (config: VerifiedPermissionsClientConfig)
20
20
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
21
21
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
22
  region: string | import("@smithy/types").Provider<any>;
23
- defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
23
+ defaultUserAgentProvider: (config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved) => Promise<import("@smithy/types").UserAgent>;
24
24
  credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
25
  maxAttempts: number | import("@smithy/types").Provider<number>;
26
26
  retryMode: string | import("@smithy/types").Provider<string>;
@@ -28,6 +28,7 @@ export declare const getRuntimeConfig: (config: VerifiedPermissionsClientConfig)
28
28
  extensions: import("./runtimeExtensions").RuntimeExtension[];
29
29
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
30
30
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
31
+ userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
31
32
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
32
33
  endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
33
34
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
@@ -11,9 +11,9 @@ export declare const getRuntimeConfig: (
11
11
  credentialDefaultProvider: (
12
12
  input: any
13
13
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
14
- defaultUserAgentProvider: import("@smithy/types").Provider<
15
- import("@smithy/types").UserAgent
16
- >;
14
+ defaultUserAgentProvider: (
15
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
16
+ ) => Promise<import("@smithy/types").UserAgent>;
17
17
  maxAttempts: number | import("@smithy/types").Provider<number>;
18
18
  region: string | import("@smithy/types").Provider<any>;
19
19
  requestHandler:
@@ -36,6 +36,10 @@ export declare const getRuntimeConfig: (
36
36
  logger: import("@smithy/types").Logger;
37
37
  extensions: import("./runtimeExtensions").RuntimeExtension[];
38
38
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
39
+ userAgentAppId?:
40
+ | string
41
+ | import("@smithy/types").Provider<string | undefined>
42
+ | undefined;
39
43
  retryStrategy?:
40
44
  | import("@smithy/types").RetryStrategy
41
45
  | import("@smithy/types").RetryStrategyV2
@@ -15,9 +15,11 @@ export declare const getRuntimeConfig: (
15
15
  ) => import("@smithy/types").MemoizedProvider<
16
16
  import("@smithy/types").AwsCredentialIdentity
17
17
  >;
18
- defaultUserAgentProvider: import("@smithy/types").Provider<
19
- import("@smithy/types").UserAgent
20
- >;
18
+ defaultUserAgentProvider: (
19
+ config?:
20
+ | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
21
+ | undefined
22
+ ) => Promise<import("@smithy/types").UserAgent>;
21
23
  maxAttempts: number | import("@smithy/types").Provider<number>;
22
24
  region: string | import("@smithy/types").Provider<string>;
23
25
  requestHandler:
@@ -28,6 +30,7 @@ export declare const getRuntimeConfig: (
28
30
  streamCollector: import("@smithy/types").StreamCollector;
29
31
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
30
32
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
33
+ userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
31
34
  apiVersion: string;
32
35
  cacheMiddleware?: boolean | undefined;
33
36
  urlParser: import("@smithy/types").UrlParser;
@@ -24,9 +24,9 @@ export declare const getRuntimeConfig: (
24
24
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
25
25
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
26
26
  region: string | import("@smithy/types").Provider<any>;
27
- defaultUserAgentProvider: import("@smithy/types").Provider<
28
- import("@smithy/types").UserAgent
29
- >;
27
+ defaultUserAgentProvider: (
28
+ config: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
+ ) => Promise<import("@smithy/types").UserAgent>;
30
30
  credentialDefaultProvider: (
31
31
  input: any
32
32
  ) => import("@smithy/types").AwsCredentialIdentityProvider;
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  import("@smithy/smithy-client").DefaultsMode
41
41
  >;
42
42
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
43
+ userAgentAppId?:
44
+ | string
45
+ | import("@smithy/types").Provider<string | undefined>
46
+ | undefined;
43
47
  retryStrategy?:
44
48
  | import("@smithy/types").RetryStrategy
45
49
  | import("@smithy/types").RetryStrategyV2
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.661.0",
4
+ "version": "3.664.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-verifiedpermissions",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.658.1",
24
- "@aws-sdk/client-sts": "3.658.1",
25
- "@aws-sdk/core": "3.658.1",
26
- "@aws-sdk/credential-provider-node": "3.658.1",
27
- "@aws-sdk/middleware-host-header": "3.654.0",
28
- "@aws-sdk/middleware-logger": "3.654.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.654.0",
30
- "@aws-sdk/middleware-user-agent": "3.654.0",
31
- "@aws-sdk/region-config-resolver": "3.654.0",
32
- "@aws-sdk/types": "3.654.0",
33
- "@aws-sdk/util-endpoints": "3.654.0",
34
- "@aws-sdk/util-user-agent-browser": "3.654.0",
35
- "@aws-sdk/util-user-agent-node": "3.654.0",
36
- "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.6",
38
- "@smithy/fetch-http-handler": "^3.2.8",
39
- "@smithy/hash-node": "^3.0.6",
40
- "@smithy/invalid-dependency": "^3.0.6",
41
- "@smithy/middleware-content-length": "^3.0.8",
42
- "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.21",
44
- "@smithy/middleware-serde": "^3.0.6",
45
- "@smithy/middleware-stack": "^3.0.6",
46
- "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.3",
48
- "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.5",
50
- "@smithy/types": "^3.4.2",
51
- "@smithy/url-parser": "^3.0.6",
23
+ "@aws-sdk/client-sso-oidc": "3.664.0",
24
+ "@aws-sdk/client-sts": "3.664.0",
25
+ "@aws-sdk/core": "3.664.0",
26
+ "@aws-sdk/credential-provider-node": "3.664.0",
27
+ "@aws-sdk/middleware-host-header": "3.664.0",
28
+ "@aws-sdk/middleware-logger": "3.664.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.664.0",
30
+ "@aws-sdk/middleware-user-agent": "3.664.0",
31
+ "@aws-sdk/region-config-resolver": "3.664.0",
32
+ "@aws-sdk/types": "3.664.0",
33
+ "@aws-sdk/util-endpoints": "3.664.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.664.0",
35
+ "@aws-sdk/util-user-agent-node": "3.664.0",
36
+ "@smithy/config-resolver": "^3.0.9",
37
+ "@smithy/core": "^2.4.7",
38
+ "@smithy/fetch-http-handler": "^3.2.9",
39
+ "@smithy/hash-node": "^3.0.7",
40
+ "@smithy/invalid-dependency": "^3.0.7",
41
+ "@smithy/middleware-content-length": "^3.0.9",
42
+ "@smithy/middleware-endpoint": "^3.1.4",
43
+ "@smithy/middleware-retry": "^3.0.22",
44
+ "@smithy/middleware-serde": "^3.0.7",
45
+ "@smithy/middleware-stack": "^3.0.7",
46
+ "@smithy/node-config-provider": "^3.1.8",
47
+ "@smithy/node-http-handler": "^3.2.4",
48
+ "@smithy/protocol-http": "^4.1.4",
49
+ "@smithy/smithy-client": "^3.3.6",
50
+ "@smithy/types": "^3.5.0",
51
+ "@smithy/url-parser": "^3.0.7",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.21",
56
- "@smithy/util-defaults-mode-node": "^3.0.21",
57
- "@smithy/util-endpoints": "^2.1.2",
58
- "@smithy/util-middleware": "^3.0.6",
59
- "@smithy/util-retry": "^3.0.6",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.22",
56
+ "@smithy/util-defaults-mode-node": "^3.0.22",
57
+ "@smithy/util-endpoints": "^2.1.3",
58
+ "@smithy/util-middleware": "^3.0.7",
59
+ "@smithy/util-retry": "^3.0.7",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "tslib": "^2.6.2",
62
62
  "uuid": "^9.0.1"