Amazon VPC · Schema

RouteTable

Describes a route table

NetworkingPrivate CloudSecuritySubnetsVPC

Properties

Name Type Description
routeTableId string The ID of the route table
vpcId string The ID of the VPC
routes array The routes in the route table
associations array The associations between the route table and subnets or gateways
ownerId string The ID of the AWS account that owns the route table
tags array Any tags assigned to the route table
View JSON Schema on GitHub

JSON Schema

amazon-vpc-route-table-schema.json Raw ↑
{
  "type": "object",
  "description": "Describes a route table",
  "properties": {
    "routeTableId": {
      "type": "string",
      "description": "The ID of the route table"
    },
    "vpcId": {
      "type": "string",
      "description": "The ID of the VPC"
    },
    "routes": {
      "type": "array",
      "description": "The routes in the route table",
      "items": {
        "type": "object",
        "properties": {
          "destinationCidrBlock": {
            "type": "string",
            "description": "The IPv4 CIDR block used for the destination match"
          },
          "destinationIpv6CidrBlock": {
            "type": "string",
            "description": "The IPv6 CIDR block used for the destination match"
          },
          "gatewayId": {
            "type": "string",
            "description": "The ID of the gateway attached to your VPC"
          },
          "natGatewayId": {
            "type": "string",
            "description": "The ID of a NAT gateway"
          },
          "networkInterfaceId": {
            "type": "string",
            "description": "The ID of the network interface"
          },
          "state": {
            "type": "string",
            "description": "The state of the route",
            "enum": [
              "active",
              "blackhole"
            ]
          },
          "origin": {
            "type": "string",
            "description": "Describes how the route was created",
            "enum": [
              "CreateRouteTable",
              "CreateRoute",
              "EnableVgwRoutePropagation"
            ]
          }
        }
      }
    },
    "associations": {
      "type": "array",
      "description": "The associations between the route table and subnets or gateways",
      "items": {
        "type": "object",
        "properties": {
          "routeTableAssociationId": {
            "type": "string"
          },
          "routeTableId": {
            "type": "string"
          },
          "subnetId": {
            "type": "string"
          },
          "gatewayId": {
            "type": "string"
          },
          "main": {
            "type": "boolean",
            "description": "Indicates whether this is the main route table"
          }
        }
      }
    },
    "ownerId": {
      "type": "string",
      "description": "The ID of the AWS account that owns the route table"
    },
    "tags": {
      "type": "array",
      "description": "Any tags assigned to the route table",
      "items": {
        "$ref": "#/components/schemas/Tag"
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "RouteTable"
}