{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-s3/json-schema/amazon-s3-put-bucket-intelligent-tiering-configuration-request-schema.json",
  "title": "PutBucketIntelligentTieringConfigurationRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-s3-intelligent-tiering-api-openapi.yml#/components/schemas/PutBucketIntelligentTieringConfigurationRequest",
  "type": "object",
  "properties": {
    "Bucket": {
      "type": "string",
      "description": "The name of the Amazon S3 bucket whose configuration you want to modify or retrieve."
    },
    "Id": {
      "type": "string",
      "description": "The ID used to identify the S3 Intelligent-Tiering configuration."
    },
    "ExpectedBucketOwner": {
      "type": "string",
      "description": "The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied)."
    },
    "IntelligentTieringConfiguration": {
      "$ref": "#/$defs/IntelligentTieringConfiguration"
    }
  },
  "required": [
    "Bucket",
    "Id",
    "IntelligentTieringConfiguration"
  ],
  "$defs": {
    "IntelligentTieringAndOperator": {
      "type": "object",
      "properties": {
        "Prefix": {
          "type": "string",
          "description": "An object key name prefix that identifies the subset of objects to which the configuration applies."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "All of these tags must exist in the object's tag set in order for the configuration to apply."
        }
      }
    },
    "IntelligentTieringConfiguration": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "description": "The ID used to identify the S3 Intelligent-Tiering configuration."
        },
        "Filter": {
          "$ref": "#/$defs/IntelligentTieringFilter"
        },
        "Status": {
          "type": "string",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "description": "Specifies the status of the configuration."
        },
        "Tierings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tiering"
          },
          "description": "Specifies the S3 Intelligent-Tiering storage class tier of the configuration."
        }
      },
      "required": [
        "Id",
        "Status",
        "Tierings"
      ]
    },
    "IntelligentTieringFilter": {
      "type": "object",
      "properties": {
        "Prefix": {
          "type": "string",
          "description": "An object key name prefix that identifies the subset of objects to which the rule applies. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints."
        },
        "Tag": {
          "$ref": "#/$defs/Tag"
        },
        "And": {
          "$ref": "#/$defs/IntelligentTieringAndOperator"
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "Name of the object key."
        },
        "Value": {
          "type": "string",
          "description": "Value of the tag."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "Tiering": {
      "type": "object",
      "properties": {
        "Days": {
          "type": "integer",
          "description": "The number of consecutive days of no access after which an object will be eligible to be transitioned to the corresponding tier. The minimum number of days specified for Archive Access tier must be at least 90 days and Deep Archive Access tier must be at least 180 days. The maximum can be up to 2 years (730 days)."
        },
        "AccessTier": {
          "type": "string",
          "enum": [
            "ARCHIVE_ACCESS",
            "DEEP_ARCHIVE_ACCESS"
          ],
          "description": "S3 Intelligent-Tiering access tier. See Storage class for automatically optimizing frequently and infrequently accessed objects for a list of access tiers in the S3 Intelligent-Tiering storage class."
        }
      },
      "required": [
        "Days",
        "AccessTier"
      ]
    }
  }
}