{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://raw.githubusercontent.com/bactopia/bactopia/master/conf/schema/profiles/aws.json",
    "title": "Bactopia pipeline parameters",
    "description": "A flexible pipeline for complete analysis of bacterial genomes",
    "type": "object",
    "definitions": {
        "awsbatch_profile_parameters": {
            "title": "AWS Batch Profile (-profile awsbatch) Parameters",
            "type": "object",
            "description": "Parameters to fine-tune your AWS Batch setup.",
            "default": "",
            "fa_icon": "fas fa-exclamation-circle",
            "properties": {
                "aws_region": {
                    "type": "string",
                    "default": "us-east-1",
                    "description": "AWS Region to be used by Nextflow",
                    "fa_icon": "fas fa-folder"
                },
                "aws_queue": {
                    "type": "string",
                    "description": "Name of queue to use for AWS Batch",
                    "fa_icon": "fas fa-folder"
                },
                "aws_volumes": {
                    "type": "string",
                    "default": "/opt/conda:/mnt/conda",
                    "description": "Volumes to be mounted from the EC2 instance to the Docker container",
                    "fa_icon": "fas fa-folder"
                },
                "aws_cli_path": {
                    "type": "string",
                    "default": "/home/ec2-user/conda/bin/aws",
                    "description": "Path to the AWS CLI for Nextflow to use.",
                    "fa_icon": "fas fa-folder",
                    "hidden": true
                },
                "aws_upload_storage_class": {
                    "type": "string",
                    "default": "STANDARD",
                    "description": "The S3 storage slass to use for storing files on S3",
                    "fa_icon": "fas fa-folder",
                    "hidden": true
                },
                "aws_max_parallel_transfers": {
                    "type": "integer",
                    "default": 8,
                    "description": "The number of parallele transfers between EC2 and S3",
                    "fa_icon": "fas fa-folder",
                    "hidden": true
                },
                "aws_delay_between_attempts": {
                    "type": "integer",
                    "default": 15,
                    "description": "The duration of sleep (in seconds) between each transfer between EC2 and S3",
                    "fa_icon": "fas fa-folder",
                    "hidden": true
                },
                "aws_max_transfer_attempts": {
                    "type": "integer",
                    "default": 3,
                    "description": "The maximum number of times to retry transferring a file between EC2 and S3",
                    "fa_icon": "fas fa-folder",
                    "hidden": true
                },
                "aws_max_retry": {
                    "type": "integer",
                    "default": 4,
                    "description": "The maximum number of times to retry a process on AWS Batch",
                    "fa_icon": "fas fa-folder",
                    "hidden": true
                }
            }
        }
    },
    "allOf": [
        {
            "$ref": "#/definitions/awsbatch_profile_parameters"
        }
    ]
}
