Disconnect AWS account
Removes the AWS account record from Buckt's side. Every bucket
provisioned in that account is deleted, and any API key scoped to one of
those buckets has the now-orphaned IDs scrubbed from its bucketIds. The
underlying AWS resources (S3 buckets, CloudFront distributions, ACM certs)
in your AWS account are not touched — clean those up via CloudFormation
or the AWS console.
Path parameters
| Name | Type | Default | Description |
|---|---|---|---|
| idrequired | string | — | The AWS account record ID to disconnect. |
Example request
import { Buckt } from "@buckt/sdk";
const client = new Buckt({ apiKey: process.env.BUCKT_API_KEY });
await client.awsAccounts.disconnect(
"acc_01J5AAAAAAAAAAAAAAAAAAAAAA"
);Responses
{
"data": {
"object": "aws_account",
"id": "acc_01J5AAAAAAAAAAAAAAAAAAAAAA"
},
"error": null,
"meta": null
}