{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-forecast/json-schema/amazon-forecast-create-dataset-import-job-request-schema.json",
  "title": "CreateDatasetImportJobRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-forecast-dataset-import-job-api-openapi.yml#/components/schemas/CreateDatasetImportJobRequest",
  "type": "object",
  "properties": {
    "DatasetImportJobName": {
      "type": "string",
      "description": "The name for the dataset import job. We recommend including the current timestamp in the name, for example, 20190721DatasetImport. This can help you avoid getting a ResourceAlreadyExistsException exception."
    },
    "DatasetArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want to import data to."
    },
    "DataSource": {
      "$ref": "#/$defs/DataSource"
    },
    "TimestampFormat": {
      "type": "string",
      "description": "The format of timestamps in the dataset. The format that you specify depends on the DataFrequency specified when the dataset was created. The following formats are supported \"yyyy-MM-dd\" For the following data frequencies: Y, M, W, and D \"yyyy-MM-dd HH:mm:ss\" For the following data frequencies: H, 30min, 15min, and 1min; and optionally, for: Y, M, W, and D If the format isn't specified, Amazon Forecast expects the format to be \"yyyy-MM-dd HH:mm:ss\"."
    },
    "TimeZone": {
      "type": "string",
      "description": "A single time zone for every item in your dataset. This option is ideal for datasets with all timestamps within a single time zone, or if all timestamps are normalized to a single time zone. Refer to the Joda-Time API for a complete list of valid time zone names."
    },
    "UseGeolocationForTimeZone": {
      "type": "boolean",
      "description": "Automatically derive time zone information from the geolocation attribute. This option is ideal for datasets that contain timestamps in multiple time zones and those timestamps are expressed in local time."
    },
    "GeolocationFormat": {
      "type": "string",
      "description": "The format of the geolocation attribute. The geolocation attribute can be formatted in one of two ways: LAT_LONG - the latitude and longitude in decimal format (Example: 47.61_-122.33). CC_POSTALCODE (US Only) - the country code (US), followed by the 5-digit ZIP code (Example: US_98121)."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The optional metadata that you apply to the dataset import job to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags: Maximum number of tags per resource - 50. For each resource, each tag key must be unique, and each tag key can have only one value. Maximum key length - 128 Unicode characters in UTF-8. Maximum value length - 256 Unicode characters in UTF-8. If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allo"
    },
    "Format": {
      "type": "string",
      "description": "The format of the imported data, CSV or PARQUET. The default value is CSV."
    },
    "ImportMode": {
      "type": "string",
      "enum": [
        "FULL",
        "INCREMENTAL"
      ],
      "description": "Specifies whether the dataset import job is a FULL or INCREMENTAL import. A FULL dataset import replaces all of the existing data with the newly imported data. An INCREMENTAL import appends the imported data to the existing data."
    }
  },
  "required": [
    "DatasetImportJobName",
    "DatasetArn",
    "DataSource"
  ],
  "$defs": {
    "DataSource": {
      "type": "object",
      "properties": {
        "S3Config": {
          "$ref": "#/$defs/S3Config"
        }
      },
      "required": [
        "S3Config"
      ]
    },
    "S3Config": {
      "type": "object",
      "properties": {
        "Path": {
          "type": "string",
          "description": "The path to an Amazon Simple Storage Service (Amazon S3) bucket or file(s) in an Amazon S3 bucket."
        },
        "RoleArn": {
          "type": "string",
          "description": "The ARN of the Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket or files. If you provide a value for the KMSKeyArn key, the role must allow access to the key. Passing a role across Amazon Web Services accounts is not allowed. If you pass a role that isn't in your account, you get an InvalidInputException error."
        },
        "KMSKeyArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of an Key Management Service (KMS) key."
        }
      },
      "required": [
        "Path",
        "RoleArn"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values."
        },
        "Value": {
          "type": "string",
          "description": "The optional part of a key-value pair that makes up a tag. A value acts as a descriptor within a tag category (key)."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}