{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-lightsail-bucket.json",
  "title": "AWSLightsailBucketProperties",
  "description": "Resource Type definition for AWS::Lightsail::Bucket. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-lightsail-bucket.json",
    "sourceSha256": "a2d69d8394c2b05bcf2d30785161411e0810f6244bf2c0bb2496f1594eb42b36"
  },
  "type": "object",
  "properties": {
    "BucketName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9-]{1,52}[a-z0-9]$",
          "minLength": 3,
          "maxLength": 54
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name for the bucket."
    },
    "BundleId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the bundle to use for the bucket."
    },
    "ObjectVersioning": {
      "description": "Specifies whether to enable or disable versioning of objects in the bucket.",
      "type": "boolean"
    },
    "AccessRules": {
      "$ref": "#/$defs/AccessRules"
    },
    "ResourcesReceivingAccess": {
      "description": "The names of the Lightsail resources for which to set bucket access.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "ReadOnlyAccessAccounts": {
      "description": "An array of strings to specify the AWS account IDs that can access the bucket.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "type": "string"
      }
    },
    "Tags": {
      "description": "An array of key-value pairs to apply to this resource.",
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::Lightsail::Bucket",
  "createOnlyProperties": [
    "/properties/BucketName"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-lightsail.git",
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/BucketName"
  ],
  "$defs": {
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 0,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -."
        }
      },
      "required": [
        "Key"
      ],
      "title": "AWSLightsailBucketTagDefinition",
      "additionalProperties": false
    },
    "AccessRules": {
      "description": "An object that sets the public accessibility of objects in the specified bucket.",
      "type": "object",
      "properties": {
        "GetObject": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "Specifies the anonymous access to all objects in a bucket."
        },
        "AllowPublicOverrides": {
          "type": "boolean",
          "description": "A Boolean value that indicates whether the access control list (ACL) permissions that are applied to individual objects override the getObject option that is currently specified."
        }
      },
      "title": "AWSLightsailBucketAccessRulesDefinition",
      "additionalProperties": false
    }
  },
  "required": [
    "BucketName",
    "BundleId"
  ],
  "readOnlyProperties": [
    "/properties/BucketArn",
    "/properties/Url",
    "/properties/AbleToUpdateBundle"
  ],
  "taggable": true
}
