{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://www.krakend.io/schema/v2.12/auth/aws-sigv4.json",
  "title": "aws-sigv4 Authentication",
  "description": "Enterprise only. Enables AWS Sigv4 authentication between KrakenD and Google Cloud service account.\n\nSee: https://www.krakend.io/docs/enterprise/authentication/aws-sigv4/",
  "type": "object",
  "required": [ "region", "service" ],
  "properties": {
    "assume_role_arn": {
      "$id": "#auth/aws-sigv4/assume_role_arn",
      "title": "Assume Role ARN",
      "description": "The Amazon Resource Name (ARN) of the role to assume.\n\nSee: https://www.krakend.io/docs/enterprise/authentication/aws-sigv4/",
      "examples": [ "arn:aws:sts::{account ID}:assumed-role/{resource}" ],
      "type": "string"
    },
    "debug": {
      "$id": "#auth/aws-sigv4/debug",
      "title": "Debug",
      "description": "Enables debug logging for AWS Sigv4 signing process.\n\nSee: https://www.krakend.io/docs/enterprise/authentication/aws-sigv4/",
      "default": false,
      "type": "boolean"
    },
    "region": {
      "$id": "#auth/aws-sigv4/region",
      "title": "Region",
      "description": "The AWS region where the service is deployed.\n\nSee: https://www.krakend.io/docs/enterprise/authentication/aws-sigv4/",
      "examples": [ "us-east-1" ],
      "type": "string"
    },
    "service": {
      "$id": "#auth/aws-sigv4/audience",
      "title": "Service",
      "description": "The name of the service in AWS you'd like to sign the request.\n\nSee: https://www.krakend.io/docs/enterprise/authentication/aws-sigv4/",
      "examples": [ "dynamodb" ],
      "type": "string"
    },
    "sts_region": {
      "$id": "#auth/aws-sigv4/sts_region",
      "title": "STS Region",
      "description": "The AWS region where the STS service is deployed.\n\nSee: https://www.krakend.io/docs/enterprise/authentication/aws-sigv4/",
      "examples": [ "us-west-1" ],
      "type": "string"
    }
  },
  "patternProperties": {
    "^[@$_#]": {}
  },
  "additionalProperties": false
}
