Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add listBuckets method #38

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move locationConstraint to CreateBucketOptions
  • Loading branch information
c4spar committed Nov 12, 2021
commit 573c19a2d8d5b83c198c41c4e2ce132d3076de27
18 changes: 8 additions & 10 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,16 +566,7 @@ export type LocationConstraint =
| "us-west-1"
| "us-west-2";

interface CreateBucketConfiguration {
/**
* Specifies the Region where the bucket will be created. If you don't
* specify a Region, the bucket is created in the US East (N. Virginia)
* Region (us-east-1).
*/
locationConstraint?: LocationConstraint;
}

export interface CreateBucketOptions extends CreateBucketConfiguration {
export interface CreateBucketOptions {
/** The canned ACL to apply to the bucket */
acl?:
| "private"
Expand Down Expand Up @@ -603,4 +594,11 @@ export interface CreateBucketOptions extends CreateBucketConfiguration {

/** Allows grantee to write the ACL for the applicable bucket. */
grantWriteAcp?: string;

/**
* Specifies the Region where the bucket will be created. If you don't
* specify a Region, the bucket is created in the US East (N. Virginia)
* Region (us-east-1).
*/
locationConstraint?: LocationConstraint;
}