{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-s3/json-schema/amazon-s3-get-bucket-ownership-controls-output-schema.json",
  "title": "GetBucketOwnershipControlsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-s3-ownershipcontrols-api-openapi.yml#/components/schemas/GetBucketOwnershipControlsOutput",
  "type": "object",
  "properties": {
    "OwnershipControls": {
      "$ref": "#/$defs/OwnershipControls"
    }
  },
  "$defs": {
    "OwnershipControls": {
      "type": "object",
      "properties": {
        "Rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OwnershipControlsRule"
          },
          "description": "The container element for an ownership control rule."
        }
      },
      "required": [
        "Rules"
      ]
    },
    "OwnershipControlsRule": {
      "type": "object",
      "properties": {
        "ObjectOwnership": {
          "type": "string",
          "enum": [
            "BucketOwnerPreferred",
            "ObjectWriter",
            "BucketOwnerEnforced"
          ]
        }
      },
      "required": [
        "ObjectOwnership"
      ]
    }
  }
}