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

    Class PutBucketIntelligentTieringConfigurationCommand

    This operation is not supported for directory buckets.

    Puts a S3 Intelligent-Tiering configuration to the specified bucket. You can have up to 1,000 S3 Intelligent-Tiering configurations per bucket.

    The S3 Intelligent-Tiering storage class is designed to optimize storage costs by automatically moving data to the most cost-effective storage access tier, without performance impact or operational overhead. S3 Intelligent-Tiering delivers automatic cost savings in three low latency and high throughput access tiers. To get the lowest storage cost on data that can be accessed in minutes to hours, you can choose to activate additional archiving capabilities.

    The S3 Intelligent-Tiering storage class is the ideal storage class for data with unknown, changing, or unpredictable access patterns, independent of object size or retention period. If the size of an object is less than 128 KB, it is not monitored and not eligible for auto-tiering. Smaller objects can be stored, but they are always charged at the Frequent Access tier rates in the S3 Intelligent-Tiering storage class.

    For more information, see Storage class for automatically optimizing frequently and infrequently accessed objects.

    Operations related to PutBucketIntelligentTieringConfiguration include:

    You only need S3 Intelligent-Tiering enabled on a bucket if you want to automatically move objects stored in the S3 Intelligent-Tiering storage class to the Archive Access or Deep Archive Access tier.

    PutBucketIntelligentTieringConfiguration has the following special errors:

    HTTP 400 Bad Request Error

    Code: InvalidArgument

    Cause: Invalid Argument

    HTTP 400 Bad Request Error

    Code: TooManyConfigurations

    Cause: You are attempting to create a new configuration but have already reached the 1,000-configuration limit.

    HTTP 403 Forbidden Error

    Cause: You are not the owner of the specified bucket, or you do not have the s3:PutIntelligentTieringConfiguration bucket permission to set the configuration on the bucket.

    You must URL encode any signed header values that contain spaces. For example, if your header value is my file.txt, containing two spaces after my, you must URL encode this value to my%20%20file.txt.

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

    import { S3Client, PutBucketIntelligentTieringConfigurationCommand } from "ibm-cos-sdk-v2"; // ES Modules import
    // const { S3Client, PutBucketIntelligentTieringConfigurationCommand } = 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 = { // PutBucketIntelligentTieringConfigurationRequest
    Bucket: "STRING_VALUE", // required
    Id: "STRING_VALUE", // required
    ExpectedBucketOwner: "STRING_VALUE",
    IntelligentTieringConfiguration: { // IntelligentTieringConfiguration
    Id: "STRING_VALUE", // required
    Filter: { // IntelligentTieringFilter
    Prefix: "STRING_VALUE",
    Tag: { // Tag
    Key: "STRING_VALUE", // required
    Value: "STRING_VALUE", // required
    },
    And: { // IntelligentTieringAndOperator
    Prefix: "STRING_VALUE",
    Tags: [ // TagSet
    {
    Key: "STRING_VALUE", // required
    Value: "STRING_VALUE", // required
    },
    ],
    },
    },
    Status: "Enabled" || "Disabled", // required
    Tierings: [ // TieringList // required
    { // Tiering
    Days: Number("int"), // required
    AccessTier: "ARCHIVE_ACCESS" || "DEEP_ARCHIVE_ACCESS", // required
    },
    ],
    },
    };
    const command = new PutBucketIntelligentTieringConfigurationCommand(input);
    const response = await client.send(command);
    // {};

    PutBucketIntelligentTieringConfigurationCommandInput

    S3ServiceException

    Base exception class for all service exceptions from S3 service.

    Hierarchy

    Index

    Constructors

    Constructors

    • Returns PutBucketIntelligentTieringConfigurationCommand

    • Returns PutBucketIntelligentTieringConfigurationCommand