Skip to content

Commit

Permalink
feat(client-verifiedpermissions): Adding BatchIsAuthorizedWithToken A…
Browse files Browse the repository at this point in the history
…PI which supports multiple authorization requests against a PolicyStore given a bearer token.
  • Loading branch information
awstools committed Apr 5, 2024
1 parent 73a6573 commit 8f5691c
Show file tree
Hide file tree
Showing 9 changed files with 893 additions and 49 deletions.
8 changes: 8 additions & 0 deletions clients/client-verifiedpermissions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ BatchIsAuthorized

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/BatchIsAuthorizedCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedCommandOutput/)

</details>
<details>
<summary>
BatchIsAuthorizedWithToken
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/verifiedpermissions/command/BatchIsAuthorizedWithTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedWithTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-verifiedpermissions/Interface/BatchIsAuthorizedWithTokenCommandOutput/)

</details>
<details>
<summary>
Expand Down
23 changes: 23 additions & 0 deletions clients/client-verifiedpermissions/src/VerifiedPermissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import {
BatchIsAuthorizedCommandInput,
BatchIsAuthorizedCommandOutput,
} from "./commands/BatchIsAuthorizedCommand";
import {
BatchIsAuthorizedWithTokenCommand,
BatchIsAuthorizedWithTokenCommandInput,
BatchIsAuthorizedWithTokenCommandOutput,
} from "./commands/BatchIsAuthorizedWithTokenCommand";
import {
CreateIdentitySourceCommand,
CreateIdentitySourceCommandInput,
Expand Down Expand Up @@ -119,6 +124,7 @@ import { VerifiedPermissionsClient, VerifiedPermissionsClientConfig } from "./Ve

const commands = {
BatchIsAuthorizedCommand,
BatchIsAuthorizedWithTokenCommand,
CreateIdentitySourceCommand,
CreatePolicyCommand,
CreatePolicyStoreCommand,
Expand Down Expand Up @@ -163,6 +169,23 @@ export interface VerifiedPermissions {
cb: (err: any, data?: BatchIsAuthorizedCommandOutput) => void
): void;

/**
* @see {@link BatchIsAuthorizedWithTokenCommand}
*/
batchIsAuthorizedWithToken(
args: BatchIsAuthorizedWithTokenCommandInput,
options?: __HttpHandlerOptions
): Promise<BatchIsAuthorizedWithTokenCommandOutput>;
batchIsAuthorizedWithToken(
args: BatchIsAuthorizedWithTokenCommandInput,
cb: (err: any, data?: BatchIsAuthorizedWithTokenCommandOutput) => void
): void;
batchIsAuthorizedWithToken(
args: BatchIsAuthorizedWithTokenCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: BatchIsAuthorizedWithTokenCommandOutput) => void
): void;

/**
* @see {@link CreateIdentitySourceCommand}
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ import {
resolveHttpAuthSchemeConfig,
} from "./auth/httpAuthSchemeProvider";
import { BatchIsAuthorizedCommandInput, BatchIsAuthorizedCommandOutput } from "./commands/BatchIsAuthorizedCommand";
import {
BatchIsAuthorizedWithTokenCommandInput,
BatchIsAuthorizedWithTokenCommandOutput,
} from "./commands/BatchIsAuthorizedWithTokenCommand";
import {
CreateIdentitySourceCommandInput,
CreateIdentitySourceCommandOutput,
Expand Down Expand Up @@ -121,6 +125,7 @@ export { __Client };
*/
export type ServiceInputTypes =
| BatchIsAuthorizedCommandInput
| BatchIsAuthorizedWithTokenCommandInput
| CreateIdentitySourceCommandInput
| CreatePolicyCommandInput
| CreatePolicyStoreCommandInput
Expand Down Expand Up @@ -151,6 +156,7 @@ export type ServiceInputTypes =
*/
export type ServiceOutputTypes =
| BatchIsAuthorizedCommandOutput
| BatchIsAuthorizedWithTokenCommandOutput
| CreateIdentitySourceCommandOutput
| CreatePolicyCommandOutput
| CreatePolicyStoreCommandOutput
Expand Down
Loading

0 comments on commit 8f5691c

Please sign in to comment.