{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://judkins.house/apis/k2/v1/awsSubnetConfig.json",
    "$$target": "awsSubnetConfig.json",
    "title": "AWS Subnet Configurationn",
    "description": "Describes an [AWS subnet](http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Subnets.html).",
    "properties": {
        "name": {
            "description": "The name of the subnet, for use within k2 configurations.",
            "type": "string"
        },
        "az": {
            "description": "Name of the Availability Zone (AZ) in AWS. Regions and AZs are documented [here](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions).",
            "type": "string",
            "default": "us-east-1a"
        },
        "cidr": {
            "description": "The cidr to associate to the subnet (within the VPC).",
            "format": "cidr",
            "type": "string",
            "default": "10.0.0.0/18"
        },
        "enablePublicIPs": {
            "description": "Do we allow for Auto-assigned Public IPs, Our clusters default to true",
            "type": "boolean",
            "default": "true"
        }
    },
    "required": [
        "name",
        "az",
        "cidr"
    ],
    "additionalProperties": false,
    "type": "object"
}