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

    Returns the attribute-based access control (ABAC) property of the general purpose bucket. If ABAC is enabled on your bucket, you can use tags on the bucket for access control. 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, GetBucketAbacCommand } from "ibm-cos-sdk-v2"; // ES Modules import
    // const { S3Client, GetBucketAbacCommand } = 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 = { // GetBucketAbacRequest
    Bucket: "STRING_VALUE", // required
    ExpectedBucketOwner: "STRING_VALUE",
    };
    const command = new GetBucketAbacCommand(input);
    const response = await client.send(command);
    // { // GetBucketAbacOutput
    // AbacStatus: { // AbacStatus
    // Status: "Enabled" || "Disabled",
    // },
    // };

    GetBucketAbacCommandInput

    S3ServiceException

    Base exception class for all service exceptions from S3 service.

    Hierarchy

    Index

    Constructors

    Constructors

    • Parameters

      Returns GetBucketAbacCommand

    • Parameters

      Returns GetBucketAbacCommand