{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-location-service/json-schema/amazon-location-service-start-job-request-schema.json",
  "title": "StartJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-location-service-metadata-api-openapi.yml#/components/schemas/StartJobRequest",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "A unique identifier for this request to ensure idempotency."
    },
    "Action": {
      "type": "string",
      "description": "The action to perform on the input data."
    },
    "ActionOptions": {
      "$ref": "#/$defs/JobActionOptions"
    },
    "ExecutionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role that Amazon Location Service assumes during job processing. Amazon Location Service uses this role to access the input and output locations specified for the job. The IAM role must be created in the same Amazon Web Services account where you plan to run your job. For more information about configuring IAM roles for Amazon Location jobs, see Configure IAM permissions in the Amazon Location Service Developer Guide."
    },
    "InputOptions": {
      "$ref": "#/$defs/JobInputOptions"
    },
    "Name": {
      "type": "string",
      "description": "An optional name for the job resource."
    },
    "OutputOptions": {
      "$ref": "#/$defs/JobOutputOptions"
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Tags and corresponding values to be associated with the job."
    }
  },
  "required": [
    "Action",
    "ExecutionRoleArn",
    "InputOptions",
    "OutputOptions"
  ],
  "$defs": {
    "JobActionOptions": {
      "type": "object",
      "properties": {
        "ValidateAddress": {
          "$ref": "#/$defs/ValidateAddressActionOptions"
        }
      }
    },
    "JobInputOptions": {
      "type": "object",
      "properties": {
        "Location": {
          "type": "string",
          "description": "S3 ARN or URI where input files are stored. The Amazon S3 bucket must be created in the same Amazon Web Services region where you plan to run your job."
        },
        "Format": {
          "type": "string",
          "description": "Input data format. Currently only Parquet is supported. Input files have a limitation of 10gb per file, and 1gb per Parquet row-group within the file."
        }
      },
      "required": [
        "Location",
        "Format"
      ]
    },
    "JobOutputOptions": {
      "type": "object",
      "properties": {
        "Format": {
          "type": "string",
          "description": "Output data format. Currently only \"Parquet\" is supported."
        },
        "Location": {
          "type": "string",
          "description": "S3 ARN or URI where output files will be written. The Amazon S3 bucket must exist in the same Amazon Web Services region where you plan to run your job."
        }
      },
      "required": [
        "Format",
        "Location"
      ]
    },
    "ValidateAddressActionOptions": {
      "type": "object",
      "properties": {
        "AdditionalFeatures": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of optional additional parameters that can be requested for each result. Values: Position - Return the position coordinates of the address if available. CountrySpecificAttributes - Return additional information about the address specific to the country of origin."
        }
      }
    }
  }
}