{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-s3outposts-endpoint.json",
  "title": "AWSS3OutpostsEndpointProperties",
  "description": "Resource Type Definition for AWS::S3Outposts::Endpoint. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-s3outposts.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-s3outposts-endpoint.json",
    "sourceSha256": "d0b36d2dbac704a95803758339133ca2ce8d9a994f5dad200694f038bef3453e"
  },
  "type": "object",
  "properties": {
    "OutpostId": {
      "oneOf": [
        {
          "pattern": "^(op-[a-f0-9]{17}|\\d{12}|ec2)$",
          "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 customer outpost on which the bucket resides."
    },
    "SecurityGroupId": {
      "oneOf": [
        {
          "minLength": 1,
          "maxLength": 100,
          "type": "string",
          "pattern": "^sg-([0-9a-f]{8}|[0-9a-f]{17})$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the security group to use with the endpoint."
    },
    "SubnetId": {
      "oneOf": [
        {
          "minLength": 1,
          "maxLength": 100,
          "type": "string",
          "pattern": "^subnet-([0-9a-f]{8}|[0-9a-f]{17})$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the subnet in the selected VPC. The subnet must belong to the Outpost."
    },
    "AccessType": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "CustomerOwnedIp",
            "Private"
          ],
          "default": "Private"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The type of access for the on-premise network connectivity for the Outpost endpoint. To access endpoint from an on-premises network, you must specify the access type and provide the customer owned Ipv4 pool."
    },
    "CustomerOwnedIpv4Pool": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "^ipv4pool-coip-([0-9a-f]{17})$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The ID of the customer-owned IPv4 pool for the Endpoint. IP addresses will be allocated from this pool for the endpoint."
    }
  },
  "typeName": "AWS::S3Outposts::Endpoint",
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-s3outposts.git",
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/CidrBlock",
    "/properties/CreationTime",
    "/properties/Id",
    "/properties/NetworkInterfaces",
    "/properties/Status"
  ],
  "taggable": false,
  "$defs": {
    "iso8601UTC": {
      "oneOf": [
        {
          "type": "string",
          "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$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The date value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ssZ)",
      "title": "AWSS3OutpostsEndpointiso8601UTCDefinition"
    },
    "NetworkInterface": {
      "description": "The container for the network interface.",
      "type": "object",
      "title": "AWSS3OutpostsEndpointNetworkInterfaceDefinition",
      "properties": {
        "NetworkInterfaceId": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "NetworkInterfaceId"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "OutpostId",
    "SecurityGroupId",
    "SubnetId"
  ],
  "createOnlyProperties": [
    "/properties/OutpostId",
    "/properties/SecurityGroupId",
    "/properties/SubnetId",
    "/properties/AccessType",
    "/properties/CustomerOwnedIpv4Pool"
  ]
}
