{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://judkins.house/apis/k2/v1/awsSecurityConfig.json",
    "$$target": "awsSecurityConfig.json",
    "title": "AWS Security Configuration",
    "description": "AWS Security Configuration",
    "properties": {
        "protocol": {
            "description": "The protocol for this Security Rule.",
            "enum": [
                "TCP",
                "UDP",
                "-1",
                "ICMP"
            ],
            "type": "string"
        },
        "cidr_blocks": {
            "description": "The cidr to associate this rule to.",
            "items": {
                "type": "string"
            },
            "type": "array",
            "default": [
                "0.0.0.0/0"
            ]
        },
        "from_port": {
            "description": "The from port number.",
            "type": "number"
        },
        "to_port": {
            "description": "The to port number.",
            "type": "number"
        }
    },
    "required": [
        "protocol",
        "cidr_blocks",
        "from_port",
        "to_port"
    ],
    "additionalProperties": false,
    "type": "object"
}