{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Name",
  "/properties/Bucket",
  "/properties/BucketAccountId",
  "/properties/VpcConfiguration"
 ],
 "definitions": {
  "Arn": {
   "type": "string"
  },
  "PublicAccessBlockConfiguration": {
   "properties": {
    "BlockPublicAcls": {
     "type": "boolean"
    },
    "BlockPublicPolicy": {
     "type": "boolean"
    },
    "IgnorePublicAcls": {
     "type": "boolean"
    },
    "RestrictPublicBuckets": {
     "type": "boolean"
    }
   },
   "type": "object"
  },
  "Scope": {
   "properties": {
    "Permissions": {
     "insertionOrder": false,
     "items": {
      "enum": [
       "GetObject",
       "GetObjectAttributes",
       "ListMultipartUploadParts",
       "ListBucket",
       "ListBucketMultipartUploads",
       "PutObject",
       "DeleteObject",
       "AbortMultipartUpload"
      ],
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    },
    "Prefixes": {
     "insertionOrder": false,
     "items": {
      "type": "string"
     },
     "type": "array",
     "uniqueItems": false
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^(?!aws:.*)([\\p{L}\\p{Z}\\p{N}_.:=+\\/\\-@%]*)$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.:=+\\/\\-@%]*)$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "VpcConfiguration": {
   "properties": {
    "VpcId": {
     "format": "AWS::EC2::VPC.Id",
     "maxLength": 1024,
     "minLength": 1,
     "type": "string"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Name"
 ],
 "properties": {
  "Arn": {
   "$ref": "#/definitions/Arn",
   "examples": [
    "arn:aws:s3express:us-west-2:123456789012:accesspoint/my-accesspoint--usw2-az1--xa-s3"
   ]
  },
  "Bucket": {
   "maxLength": 255,
   "minLength": 3,
   "type": "string"
  },
  "BucketAccountId": {
   "maxLength": 64,
   "pattern": "^\\d{12}$",
   "type": "string"
  },
  "Name": {
   "maxLength": 50,
   "minLength": 3,
   "pattern": "^[a-z0-9]([a-z0-9\\-]*[a-z0-9])?$",
   "type": "string"
  },
  "NetworkOrigin": {
   "enum": [
    "Internet",
    "VPC"
   ],
   "type": "string"
  },
  "Policy": {
   "type": "object"
  },
  "PublicAccessBlockConfiguration": {
   "$ref": "#/definitions/PublicAccessBlockConfiguration"
  },
  "Scope": {
   "$ref": "#/definitions/Scope"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  },
  "VpcConfiguration": {
   "$ref": "#/definitions/VpcConfiguration"
  }
 },
 "readOnlyProperties": [
  "/properties/NetworkOrigin",
  "/properties/Arn"
 ],
 "required": [
  "Bucket"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::S3Express::AccessPoint"
}
