{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/OutpostId",
  "/properties/SecurityGroupId",
  "/properties/SubnetId",
  "/properties/AccessType",
  "/properties/CustomerOwnedIpv4Pool"
 ],
 "definitions": {
  "FailedReason": {
   "additionalProperties": false,
   "properties": {
    "ErrorCode": {
     "type": "string"
    },
    "Message": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "NetworkInterface": {
   "additionalProperties": false,
   "properties": {
    "NetworkInterfaceId": {
     "maxLength": 100,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "NetworkInterfaceId"
   ],
   "type": "object"
  },
  "iso8601UTC": {
   "pattern": "^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$",
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "AccessType": {
   "default": "Private",
   "enum": [
    "CustomerOwnedIp",
    "Private"
   ],
   "type": "string"
  },
  "Arn": {
   "maxLength": 500,
   "minLength": 5,
   "pattern": "^arn:[^:]+:s3-outposts:[a-zA-Z0-9\\-]+:\\d{12}:outpost\\/[^:]+\\/endpoint/[a-zA-Z0-9]{19}$",
   "type": "string"
  },
  "CidrBlock": {
   "format": "ipv4-network",
   "maxLength": 20,
   "minLength": 1,
   "type": "string"
  },
  "CreationTime": {
   "$ref": "#/definitions/iso8601UTC"
  },
  "CustomerOwnedIpv4Pool": {
   "pattern": "^ipv4pool-coip-([0-9a-f]{17})$",
   "type": "string"
  },
  "FailedReason": {
   "$ref": "#/definitions/FailedReason"
  },
  "Id": {
   "maxLength": 500,
   "minLength": 5,
   "pattern": "^[a-zA-Z0-9]{19}$",
   "type": "string"
  },
  "NetworkInterfaces": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/NetworkInterface"
   },
   "type": "array",
   "uniqueItems": true
  },
  "OutpostId": {
   "pattern": "^(op-[a-f0-9]{17}|\\d{12}|ec2)$",
   "type": "string"
  },
  "SecurityGroupId": {
   "format": "AWS::EC2::SecurityGroup.Id",
   "maxLength": 100,
   "minLength": 1,
   "pattern": "^sg-([0-9a-f]{8}|[0-9a-f]{17})$",
   "type": "string"
  },
  "Status": {
   "enum": [
    "Available",
    "Pending",
    "Deleting",
    "Create_Failed",
    "Delete_Failed"
   ],
   "type": "string"
  },
  "SubnetId": {
   "format": "AWS::EC2::Subnet.Id",
   "maxLength": 100,
   "minLength": 1,
   "pattern": "^subnet-([0-9a-f]{8}|[0-9a-f]{17})$",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/CidrBlock",
  "/properties/CreationTime",
  "/properties/Id",
  "/properties/NetworkInterfaces",
  "/properties/Status"
 ],
 "required": [
  "OutpostId",
  "SecurityGroupId",
  "SubnetId"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-s3outposts.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::S3Outposts::Endpoint"
}
