{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-ec2-networkinterface.json",
  "title": "AWSEC2NetworkInterfaceProperties",
  "description": "The AWS::EC2::NetworkInterface resource creates network interface. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2/networkinterface>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-ec2-networkinterface.json",
    "sourceSha256": "8440c82f4ff212861b4854230bc1f775acbf703ede84e96c85ac3bbce3f84bc6"
  },
  "type": "object",
  "properties": {
    "Description": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "A description for the network interface."
    },
    "PrivateIpAddress": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Assigns a single private IP address to the network interface, which is used as the primary private IP address. If you want to specify multiple private IP address, use the PrivateIpAddresses property. "
    },
    "PrivateIpAddresses": {
      "uniqueItems": false,
      "description": "Assigns a list of private IP addresses to the network interface. You can specify a primary private IP address by setting the value of the Primary property to true in the PrivateIpAddressSpecification property. If you want EC2 to automatically assign private IP addresses, use the SecondaryPrivateIpAddressCount property and do not specify this property.",
      "insertionOrder": false,
      "type": "array",
      "items": {
        "$ref": "#/$defs/PrivateIpAddressSpecification"
      }
    },
    "SecondaryPrivateIpAddressCount": {
      "description": "The number of secondary private IPv4 addresses to assign to a network interface. When you specify a number of secondary IPv4 addresses, Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR range. You can't specify this option and specify more than one private IP address using privateIpAddresses",
      "type": "integer"
    },
    "EnablePrimaryIpv6": {
      "description": "If you have instances or ENIs that rely on the IPv6 address not changing, to avoid disrupting traffic to instances or ENIs, you can enable a primary IPv6 address. Enable this option to automatically assign an IPv6 associated with the ENI attached to your instance to be the primary IPv6 address. When you enable an IPv6 address to be a primary IPv6, you cannot disable it. Traffic will be routed to the primary IPv6 address until the instance is terminated or the ENI is detached. If you have multiple IPv6 addresses associated with an ENI and you enable a primary IPv6 address, the first IPv6 address associated with the ENI becomes the primary IPv6 address.",
      "type": "boolean"
    },
    "GroupSet": {
      "uniqueItems": false,
      "description": "A list of security group IDs associated with this network interface.",
      "insertionOrder": false,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "Ipv6Addresses": {
      "uniqueItems": true,
      "description": "One or more specific IPv6 addresses from the IPv6 CIDR block range of your subnet to associate with the network interface. If you're specifying a number of IPv6 addresses, use the Ipv6AddressCount property and don't specify this property.",
      "insertionOrder": false,
      "type": "array",
      "items": {
        "$ref": "#/$defs/InstanceIpv6Address"
      }
    },
    "SubnetId": {
      "oneOf": [
        {
          "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 subnet to associate with the network interface."
    },
    "SourceDestCheck": {
      "description": "Indicates whether traffic to or from the instance is validated.",
      "type": "boolean"
    },
    "InterfaceType": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Indicates the type of network interface."
    },
    "Ipv6AddressCount": {
      "description": "The number of IPv6 addresses to assign to a network interface. Amazon EC2 automatically selects the IPv6 addresses from the subnet range. To specify specific IPv6 addresses, use the Ipv6Addresses property and don't specify this property.",
      "type": "integer"
    },
    "Tags": {
      "uniqueItems": false,
      "description": "An arbitrary set of tags (key-value pairs) for this network interface.",
      "insertionOrder": false,
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "$defs": {
    "PrivateIpAddressSpecification": {
      "title": "AWSEC2NetworkInterfacePrivateIpAddressSpecificationDefinition",
      "type": "object",
      "properties": {
        "PrivateIpAddress": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Primary": {
          "type": "boolean"
        }
      },
      "required": [
        "PrivateIpAddress",
        "Primary"
      ],
      "additionalProperties": false
    },
    "InstanceIpv6Address": {
      "title": "AWSEC2NetworkInterfaceInstanceIpv6AddressDefinition",
      "type": "object",
      "properties": {
        "Ipv6Address": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Ipv6Address"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "title": "AWSEC2NetworkInterfaceTagDefinition",
      "type": "object",
      "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
    }
  },
  "taggable": true,
  "typeName": "AWS::EC2::NetworkInterface",
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/SecondaryPrivateIpAddresses",
    "/properties/PrimaryPrivateIpAddress"
  ],
  "additionalProperties": false,
  "createOnlyProperties": [
    "/properties/PrivateIpAddress",
    "/properties/InterfaceType",
    "/properties/SubnetId"
  ],
  "primaryIdentifier": [
    "/properties/Id"
  ],
  "required": [
    "SubnetId"
  ],
  "conditionalCreateOnlyProperties": [
    "/properties/PrivateIpAddresses",
    "/properties/EnablePrimaryIpv6"
  ],
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-ec2/networkinterface"
}
