{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-create-bucket-request-schema.json",
  "title": "CreateBucketRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-lightsail-buckets-api-openapi.yml#/components/schemas/CreateBucketRequest",
  "type": "object",
  "properties": {
    "bucketName": {
      "allOf": [
        {
          "$ref": "#/$defs/BucketName"
        }
      ],
      "description": "The name for the bucket. For more information about bucket names, see Bucket naming rules in Amazon Lightsail in the Amazon Lightsail Developer Guide ."
    },
    "bundleId": {
      "allOf": [
        {
          "$ref": "#/$defs/NonEmptyString"
        }
      ],
      "description": "The ID of the bundle to use for the bucket. A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket. Use the GetBucketBundles action to get a list of bundle IDs that you can specify. Use the UpdateBucketBundle action to change the bundle after the bucket is created."
    },
    "tags": {
      "allOf": [
        {
          "$ref": "#/$defs/TagList"
        }
      ],
      "description": "The tag keys and optional values to add to the bucket during creation. Use the TagResource action to tag the bucket after it's created."
    },
    "enableObjectVersioning": {
      "allOf": [
        {
          "$ref": "#/$defs/boolean"
        }
      ],
      "description": "A Boolean value that indicates whether to enable versioning of objects in the bucket. For more information about versioning, see Enabling and suspending object versioning in a bucket in Amazon Lightsail in the Amazon Lightsail Developer Guide ."
    }
  },
  "required": [
    "bucketName",
    "bundleId"
  ],
  "$defs": {
    "BucketName": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{1,52}[a-z0-9]$",
      "minLength": 3,
      "maxLength": 54
    },
    "NonEmptyString": {
      "type": "string",
      "pattern": "\\S"
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "allOf": [
            {
              "$ref": "#/$defs/TagKey"
            }
          ],
          "description": "The key of the tag. Constraints: Tag keys accept a maximum of 128 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        },
        "value": {
          "allOf": [
            {
              "$ref": "#/$defs/TagValue"
            }
          ],
          "description": "The value of the tag. Constraints: Tag values accept a maximum of 256 letters, numbers, spaces in UTF-8, or the following characters: + - = . _ : / @"
        }
      },
      "description": "Describes a tag key and optional value assigned to an Amazon Lightsail resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide ."
    },
    "TagKey": {
      "type": "string"
    },
    "TagList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "TagValue": {
      "type": "string"
    },
    "boolean": {
      "type": "boolean"
    }
  }
}