{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ec2-subnet.json",
  "title": "AWSEC2SubnetProperties",
  "description": "Resource Type definition for AWS::EC2::Subnet. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ec2-subnet.json",
    "sourceSha256": "b0851b9f40983dac7cb552e5f79d5bfdc2597dd021acfaa9c650bcaf4868a4ac"
  },
  "type": "object",
  "properties": {
    "AssignIpv6AddressOnCreation": {
      "type": "boolean"
    },
    "VpcId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "MapPublicIpOnLaunch": {
      "type": "boolean"
    },
    "AvailabilityZone": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "AvailabilityZoneId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "CidrBlock": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Ipv6CidrBlock": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "OutpostArn": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Ipv6Native": {
      "type": "boolean"
    },
    "EnableDns64": {
      "type": "boolean"
    },
    "PrivateDnsNameOptionsOnLaunch": {
      "type": "object",
      "properties": {
        "HostnameType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "EnableResourceNameDnsARecord": {
          "type": "boolean"
        },
        "EnableResourceNameDnsAAAARecord": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::EC2::Subnet",
  "readOnlyProperties": [
    "/properties/NetworkAclAssociationId",
    "/properties/SubnetId",
    "/properties/Ipv6CidrBlocks"
  ],
  "$defs": {
    "Tag": {
      "type": "object",
      "title": "AWSEC2SubnetTagDefinition",
      "properties": {
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/SubnetId"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "additionalProperties": false,
  "required": [
    "VpcId"
  ],
  "createOnlyProperties": [
    "/properties/VpcId",
    "/properties/AvailabilityZone",
    "/properties/AvailabilityZoneId",
    "/properties/CidrBlock",
    "/properties/OutpostArn",
    "/properties/Ipv6Native"
  ],
  "conditionalCreateOnlyProperties": [
    "/properties/Ipv6CidrBlock"
  ]
}
