{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-lightsail/json-schema/amazon-lightsail-get-buckets-request-schema.json",
  "title": "GetBucketsRequest",
  "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/GetBucketsRequest",
  "type": "object",
  "properties": {
    "bucketName": {
      "allOf": [
        {
          "$ref": "#/$defs/BucketName"
        }
      ],
      "description": "The name of the bucket for which to return information. When omitted, the response includes all of your buckets in the Amazon Web Services Region where the request is made."
    },
    "pageToken": {
      "allOf": [
        {
          "$ref": "#/$defs/string"
        }
      ],
      "description": "The token to advance to the next page of results from your request. To get a page token, perform an initial GetBuckets request. If your results are paginated, the response will return a next page token that you can specify as the page token in a subsequent request."
    },
    "includeConnectedResources": {
      "allOf": [
        {
          "$ref": "#/$defs/boolean"
        }
      ],
      "description": "A Boolean value that indicates whether to include Lightsail instances that were given access to the bucket using the SetResourceAccessForBucket action."
    },
    "includeCors": {
      "allOf": [
        {
          "$ref": "#/$defs/boolean"
        }
      ],
      "description": "A Boolean value that indicates whether to include Lightsail bucket CORS configuration in the response. For more information, see Configuring cross-origin resource sharing (CORS) . This parameter is only supported when getting a single bucket with bucketName specified. The default value for this parameter is False ."
    }
  },
  "$defs": {
    "BucketName": {
      "type": "string",
      "pattern": "^[a-z0-9][a-z0-9-]{1,52}[a-z0-9]$",
      "minLength": 3,
      "maxLength": 54
    },
    "boolean": {
      "type": "boolean"
    },
    "string": {
      "type": "string"
    }
  }
}