{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://judkins.house/apis/k2/v1/awsAclConfig.json",
    "$$target": "awsAclConfig.json",
    "title": "AWS Network Access Control List (ACL) Rule",
    "description": "Describes an AWS network ACL rule. See the VPC [documentation](http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_ACLs.html) for more information.",
    "properties": {
        "protocol": {
            "description": "The protocol for this ACL.",
            "enum": [
                "TCP",
                "UDP",
                "-1",
                "ICMP"
            ],
            "type": "string"
        },
        "rule_no": {
            "description": "The number of the rule for ordering.",
            "type": "number"
        },
        "action": {
            "description": "The action that should be implemented (allow/deny).",
            "enum": [
                "allow",
                "deny"
            ],
            "type": "string"
        },
        "cidr_block": {
            "description": "The cidr to associate this rule to.",
            "format": "cidr",
            "type": "string"
        },
        "from_port": {
            "description": "The from port number, 0 for all.",
            "type": "number",
            "minimum": 0,
            "maximum": 65535
        },
        "to_port": {
            "description": "The to port number, 0 for all.",
            "type": "number"
        }
    },
    "required": [
        "protocol",
        "rule_no",
        "action",
        "cidr_block",
        "from_port",
        "to_port"
    ],
    "additionalProperties": false,
    "type": "object"
}