{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ec2-ipamallocation.json",
  "title": "AWSEC2IPAMAllocationProperties",
  "description": "Resource Schema of AWS::EC2::IPAMAllocation Type. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ec2-ipamallocation.json",
    "sourceSha256": "b055223bc5c95a306497995786c0fe3888f2a7a6f3ae46bef3fff7dc2ed3175b"
  },
  "type": "object",
  "properties": {
    "IpamPoolId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Id of the IPAM Pool."
    },
    "Cidr": {
      "$ref": "#/$defs/Cidr"
    },
    "NetmaskLength": {
      "description": "The desired netmask length of the allocation. If set, IPAM will choose a block of free space with this size and return the CIDR representing it.",
      "type": "integer"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    }
  },
  "typeName": "AWS::EC2::IPAMAllocation",
  "writeOnlyProperties": [
    "/properties/NetmaskLength"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "taggable": false,
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/IpamPoolAllocationId"
  ],
  "$defs": {
    "Cidr": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Represents a single IPv4 or IPv6 CIDR",
      "title": "AWSEC2IPAMAllocationCidrDefinition"
    }
  },
  "required": [
    "IpamPoolId"
  ],
  "primaryIdentifier": [
    "/properties/IpamPoolId",
    "/properties/IpamPoolAllocationId",
    "/properties/Cidr"
  ],
  "createOnlyProperties": [
    "/properties/IpamPoolId",
    "/properties/Cidr",
    "/properties/Description",
    "/properties/NetmaskLength"
  ]
}
