{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "aws": {
      "type": "object",
      "properties": {
        "accountDefaults": {
          "type": "object",
          "properties": {
            "roleName": {
              "type": "string",
              "description": "The IAM role to assume to retrieve temporary AWS credentials"
            },
            "partition": {
              "type": "string",
              "description": "The AWS partition of the IAM role, e.g. \"aws\", \"aws-cn\""
            },
            "region": {
              "type": "string",
              "description": "The STS regional endpoint to use when retrieving temporary AWS credentials, e.g. \"ap-northeast-1\""
            },
            "externalId": {
              "type": "string",
              "description": "The unique identifier needed to assume the role to retrieve temporary AWS credentials",
              "visibility": "secret"
            },
            "webIdentityTokenFile": {
              "type": "string",
              "description": "Path to a file on disk containing an OIDC web-identity token."
            }
          },
          "description": "Defaults for retrieving AWS account credentials"
        },
        "mainAccount": {
          "type": "object",
          "properties": {
            "accessKeyId": {
              "type": "string",
              "description": "The access key ID for a set of static AWS credentials",
              "visibility": "secret"
            },
            "secretAccessKey": {
              "type": "string",
              "description": "The secret access key for a set of static AWS credentials",
              "visibility": "secret"
            },
            "profile": {
              "type": "string",
              "description": "The configuration profile from a credentials file at ~/.aws/credentials and a configuration file at ~/.aws/config."
            },
            "region": {
              "type": "string",
              "description": "The STS regional endpoint to use for the main account, e.g. \"ap-northeast-1\""
            }
          },
          "description": "Main account to use for retrieving AWS account credentials"
        },
        "accounts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "accountId": {
                "type": "string",
                "description": "The account ID of the target account that this matches on, e.g. \"123456789012\""
              },
              "accessKeyId": {
                "type": "string",
                "description": "The access key ID for a set of static AWS credentials",
                "visibility": "secret"
              },
              "secretAccessKey": {
                "type": "string",
                "description": "The secret access key for a set of static AWS credentials",
                "visibility": "secret"
              },
              "profile": {
                "type": "string",
                "description": "The configuration profile from a credentials file at ~/.aws/credentials and a configuration file at ~/.aws/config."
              },
              "roleName": {
                "type": "string",
                "description": "The IAM role to assume to retrieve temporary AWS credentials"
              },
              "partition": {
                "type": "string",
                "description": "The AWS partition of the IAM role, e.g. \"aws\", \"aws-cn\""
              },
              "region": {
                "type": "string",
                "description": "The STS regional endpoint to use when retrieving temporary AWS credentials, e.g. \"ap-northeast-1\""
              },
              "externalId": {
                "type": "string",
                "description": "The unique identifier needed to assume the role to retrieve temporary AWS credentials",
                "visibility": "secret"
              },
              "webIdentityTokenFile": {
                "type": "string",
                "description": "Path to a file on disk containing an OIDC web-identity token."
              }
            },
            "required": [
              "accountId"
            ]
          },
          "description": "Configuration for retrieving AWS accounts credentials"
        }
      },
      "description": "Configuration for access to AWS accounts"
    }
  }
}
