{
  "id": "sam",
  "name": "AWS SAM CLI",
  "description": "AWS Serverless Application Model CLI.",
  "homepage": "https://aws.amazon.com/serverless/sam/",
  "executables": [
    "sam"
  ],
  "commands": {
    "format": 1,
    "label": "AWS SAM",
    "description": "Initialize, build and deploy serverless apps. local, sync, logs, pipeline and publish are not covered.",
    "quality": "ai-draft",
    "base": "fig:sam",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "src",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/sam.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "init"
        ],
        "label": "Initialize an app",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sam.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Project name",
            "type": "string",
            "option": [
              "--name",
              "-n"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "runtime",
            "label": "Runtime",
            "type": "string",
            "option": [
              "--runtime",
              "-r"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "package_type",
            "label": "Package type",
            "type": "enum",
            "option": [
              "--package-type",
              "-p"
            ],
            "choices": [
              {
                "value": "zip",
                "label": "zip"
              },
              {
                "value": "image",
                "label": "image"
              }
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "architecture",
            "label": "Architecture",
            "type": "enum",
            "option": [
              "--architecture",
              "-a"
            ],
            "choices": [
              {
                "value": "arm64",
                "label": "arm64"
              },
              {
                "value": "x86_64",
                "label": "x86_64"
              }
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "app_template",
            "label": "Managed template",
            "type": "string",
            "option": [
              "--app-template"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "location",
            "label": "Template location",
            "type": "string",
            "option": [
              "--location",
              "-l"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "output_dir",
            "label": "Output directory",
            "type": "path",
            "option": [
              "--output-dir",
              "-o"
            ],
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "no_interactive",
            "label": "Non-interactive",
            "type": "boolean",
            "option": [
              "--no-interactive"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "Create app",
            "fields": [
              "name",
              "runtime",
              "package_type",
              "architecture"
            ],
            "required": []
          },
          {
            "id": "auto",
            "label": "Non-interactive",
            "fields": [
              "name",
              "runtime",
              "package_type",
              "app_template",
              "no_interactive"
            ],
            "required": [
              "name",
              "runtime",
              "app_template"
            ],
            "set": {
              "no_interactive": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "runtime",
              "package_type",
              "architecture",
              "no_interactive"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "app_template",
              "location",
              "output_dir"
            ]
          }
        ]
      },
      {
        "path": [
          "build"
        ],
        "label": "Build Lambda functions",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sam.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "template",
            "label": "Template file",
            "type": "path",
            "option": [
              "--template",
              "-t"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "profile",
            "label": "AWS profile",
            "type": "string",
            "option": [
              "--profile"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "region",
            "label": "AWS region",
            "type": "string",
            "option": [
              "--region"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "debug",
            "label": "Debug logging",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "use_container",
            "label": "Build inside a container",
            "type": "boolean",
            "option": [
              "--use-container",
              "-u"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "parallel",
            "label": "Parallel builds",
            "type": "boolean",
            "option": [
              "--parallel",
              "-p"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "cached",
            "label": "Cached builds",
            "type": "boolean",
            "option": [
              "--cached",
              "-c"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "build_dir",
            "label": "Build directory",
            "type": "path",
            "option": [
              "--build-dir",
              "-b"
            ],
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build",
            "fields": [
              "template"
            ],
            "required": []
          },
          {
            "id": "container",
            "label": "Build in container",
            "fields": [
              "template",
              "use_container"
            ],
            "required": [],
            "set": {
              "use_container": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "template",
              "use_container"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "profile",
              "region",
              "debug",
              "parallel",
              "cached",
              "build_dir"
            ]
          }
        ]
      },
      {
        "path": [
          "deploy"
        ],
        "label": "Deploy an app",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/sam.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "template",
            "label": "Template file",
            "type": "path",
            "option": [
              "--template",
              "-t"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "profile",
            "label": "AWS profile",
            "type": "string",
            "option": [
              "--profile"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "region",
            "label": "AWS region",
            "type": "string",
            "option": [
              "--region"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "debug",
            "label": "Debug logging",
            "type": "boolean",
            "option": [
              "--debug"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "guided",
            "label": "Guided prompts",
            "type": "boolean",
            "option": [
              "--guided",
              "-g"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "stack_name",
            "label": "Stack name",
            "type": "string",
            "option": [
              "--stack-name"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "s3_bucket",
            "label": "S3 bucket",
            "type": "string",
            "option": [
              "--s3-bucket"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "s3_prefix",
            "label": "S3 prefix",
            "type": "string",
            "option": [
              "--s3-prefix"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "resolve_s3",
            "label": "Auto-create managed S3 bucket",
            "type": "boolean",
            "option": [
              "--resolve-s3"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "parameter_overrides",
            "label": "Parameter overrides (key=value)",
            "type": "string",
            "option": [
              "--parameter-overrides"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "config_file",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config-file"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "config_env",
            "label": "Config environment",
            "type": "string",
            "option": [
              "--config-env"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "guided",
            "label": "Guided deploy",
            "fields": [
              "guided"
            ],
            "required": [],
            "set": {
              "guided": [
                true
              ]
            }
          },
          {
            "id": "deploy",
            "label": "Deploy to stack",
            "fields": [
              "template",
              "stack_name",
              "s3_bucket",
              "resolve_s3"
            ],
            "required": [
              "stack_name"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "template",
              "guided",
              "stack_name",
              "s3_bucket",
              "resolve_s3"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "s3_prefix",
              "parameter_overrides",
              "config_file",
              "config_env",
              "profile",
              "region",
              "debug"
            ]
          }
        ]
      }
    ]
  }
}
