{
  "folders": [
    {
      "path": ".",
      "name": "Datafy Rekognition"
    }
  ],
  "settings": {
    "editor.formatOnSave": true,
    "editor.tabSize": 4,
    "files.exclude": {
      "**/.git": true,
      "**/.DS_Store": true,
      "**/__pycache__": true,
      "**/.pytest_cache": true,
      "**/node_modules": true,
      "**/.aws-sam": true,
      "**/venv": true,
      "**/build": true,
      "**/dist": true
    },
    "python.linting.enabled": true,
    "python.linting.flake8Enabled": true,
    "python.formatting.provider": "black",
    "python.analysis.extraPaths": [
      "lambda/Rekognition/functions/train_model",
      "lambda/Rekognition/functions"
    ],
    "files.associations": {
      "*.yaml": "yaml",
      "template.yaml": "cloudformation"
    },
    "workbench.colorCustomizations": {
      "activityBar.background": "#14382b",
      "titleBar.activeBackground": "#1c4e3c",
      "titleBar.activeForeground": "#e7e7e7"
    }
  },
  "extensions": {
    "recommendations": [
      "ms-python.python",
      "ms-python.vscode-pylance",
      "amazonwebservices.aws-toolkit-vscode",
      "redhat.vscode-yaml"
    ]
  },
  "launch": {
    "configurations": [
      {
        "name": "Debug SAM Lambda",
        "type": "aws-sam",
        "request": "direct-invoke",
        "invokeTarget": {
          "target": "template",
          "templatePath": "${workspaceFolder}/lambda/Rekognition/template.yaml",
          "logicalId": "TrainModelFunction"
        },
        "lambda": {
          "payload": {
            "json": {
              "Records": [
                {
                  "s3": {
                    "bucket": {
                      "name": "datafy-rekognition-source-data-dev"
                    },
                    "object": {
                      "key": "sample/test.xml"
                    }
                  }
                }
              ]
            }
          }
        }
      }
    ]
  }
} 