IBM COS SDK for JavaScript V2 - v1.0.0
    Preparing search index...

    Sets the attribute-based access control (ABAC) property of the general purpose bucket. You must have s3:PutBucketABAC permission to perform this action. When you enable ABAC, you can use tags for access control on your buckets. Additionally, when ABAC is enabled, you must use the TagResource and UntagResource actions to manage tags on your buckets. You can nolonger use the PutBucketTagging and DeleteBucketTagging actions to tag your bucket. For more information, see Enabling ABAC in general purpose buckets.

    Use a bare-bones client and the command you need to make an API call.

    import { S3Client, PutBucketAbacCommand } from "ibm-cos-sdk-v2"; // ES Modules import
    // const { S3Client, PutBucketAbacCommand } = require("ibm-cos-sdk-v2"); // CommonJS import
    // import type { S3ClientConfig } from "ibm-cos-sdk-v2";
    const config = {}; // type is S3ClientConfig
    const client = new S3Client(config);
    const input = { // PutBucketAbacRequest
    Bucket: "STRING_VALUE", // required
    ContentMD5: "STRING_VALUE",
    ChecksumAlgorithm: "CRC32" || "CRC32C" || "SHA1" || "SHA256" || "CRC64NVME",
    ExpectedBucketOwner: "STRING_VALUE",
    AbacStatus: { // AbacStatus
    Status: "Enabled" || "Disabled",
    },
    };
    const command = new PutBucketAbacCommand(input);
    const response = await client.send(command);
    // {};

    PutBucketAbacCommandInput

    S3ServiceException

    Base exception class for all service exceptions from S3 service.

    Hierarchy

    Index

    Constructors

    Constructors

    • Parameters

      Returns PutBucketAbacCommand

    • Parameters

      Returns PutBucketAbacCommand