{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-delete-bucket-request-schema.json",
  "title": "DeleteBucketRequest",
  "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/DeleteBucketRequest",
  "type": "object",
  "properties": {
    "bucketName": {
      "allOf": [
        {
          "$ref": "#/$defs/BucketName"
        }
      ],
      "description": "The name of the bucket to delete. Use the GetBuckets action to get a list of bucket names that you can specify."
    },
    "forceDelete": {
      "allOf": [
        {
          "$ref": "#/$defs/boolean"
        }
      ],
      "description": "A Boolean value that indicates whether to force delete the bucket. You must force delete the bucket if it has one of the following conditions: The bucket is the origin of a distribution. The bucket has instances that were granted access to it using the SetResourceAccessForBucket action. The bucket has objects. The bucket has access keys. Force deleting a bucket might impact other resources that rely on the bucket, such as instances, distributions, or software that use the issued access keys."
    }
  },
  "required": [
    "bucketName"
  ],
  "$defs": {
    "BucketName": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{1,52}[a-z0-9]$",
      "minLength": 3,
      "maxLength": 54
    },
    "boolean": {
      "type": "boolean"
    }
  }
}