{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://judkins.house/apis/k2/v1/awsEbsStorageOptions.json",
    "$$target": "awsEbsStorageOptions.json",
    "title": "AWS EBS Storage Options",
    "description": "Describes AWS EBS storage options",
    "properties": {
        "device_name": {
            "description": "The name of the device on the node (sde, sdg, etc).",
            "type": "string"
        },
        "volume_type": {
            "description": "The storage type on EBS (gp2, etc).",
            "type": "string"
        },
        "volume_size": {
            "description": "The size of the storage, in gigabytes.",
            "type": "number"
        },
        "delete_on_termination": {
            "description": "Whether or not to delete the volume after the node is terminated.",
            "type": "boolean"
        },
        "snapshot_id": {
            "description": "The id of a snapshot to recover from.",
            "type": [
                "string",
                "null"
            ]
        },
        "encrypted": {
            "description": "Whether or not the volume is encrypted within AWS.",
            "type": "boolean"
        }
    },
    "required": [
        "device_name",
        "volume_type",
        "volume_size",
        "delete_on_termination",
        "snapshot_id",
        "encrypted"
    ],
    "additionalProperties": false,
    "type": "object"
}