// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateDatasetImportJob`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`dataset_import_job_name(impl Into<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::dataset_import_job_name) / [`set_dataset_import_job_name(Option<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_dataset_import_job_name):<br>required: **true**<br><p>The name for the dataset import job. We recommend including the current timestamp in the name, for example, <code>20190721DatasetImport</code>. This can help you avoid getting a <code>ResourceAlreadyExistsException</code> exception.</p><br>
/// - [`dataset_arn(impl Into<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::dataset_arn) / [`set_dataset_arn(Option<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_dataset_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the Amazon Forecast dataset that you want to import data to.</p><br>
/// - [`data_source(DataSource)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::data_source) / [`set_data_source(Option<DataSource>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_data_source):<br>required: **true**<br><p>The location of the training data to import and an Identity and Access Management (IAM) role that Amazon Forecast can assume to access the data. The training data must be stored in an Amazon S3 bucket.</p> <p>If encryption is used, <code>DataSource</code> must include an Key Management Service (KMS) key and the IAM role must allow Amazon Forecast permission to access the key. The KMS key and IAM role must match those specified in the <code>EncryptionConfig</code> parameter of the <a href="https://docs.aws.amazon.com/forecast/latest/dg/API_CreateDataset.html">CreateDataset</a> operation.</p><br>
/// - [`timestamp_format(impl Into<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::timestamp_format) / [`set_timestamp_format(Option<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_timestamp_format):<br>required: **false**<br><p>The format of timestamps in the dataset. The format that you specify depends on the <code>DataFrequency</code> specified when the dataset was created. The following formats are supported</p> <ul> <li> <p>"yyyy-MM-dd"</p> <p>For the following data frequencies: Y, M, W, and D</p> </li> <li> <p>"yyyy-MM-dd HH:mm:ss"</p> <p>For the following data frequencies: H, 30min, 15min, and 1min; and optionally, for: Y, M, W, and D</p> </li> </ul> <p>If the format isn't specified, Amazon Forecast expects the format to be "yyyy-MM-dd HH:mm:ss".</p><br>
/// - [`time_zone(impl Into<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::time_zone) / [`set_time_zone(Option<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_time_zone):<br>required: **false**<br><p>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. </p> <p>Refer to the <a href="http://joda-time.sourceforge.net/timezones.html">Joda-Time API</a> for a complete list of valid time zone names.</p><br>
/// - [`use_geolocation_for_time_zone(bool)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::use_geolocation_for_time_zone) / [`set_use_geolocation_for_time_zone(Option<bool>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_use_geolocation_for_time_zone):<br>required: **false**<br><p>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.</p><br>
/// - [`geolocation_format(impl Into<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::geolocation_format) / [`set_geolocation_format(Option<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_geolocation_format):<br>required: **false**<br><p>The format of the geolocation attribute. The geolocation attribute can be formatted in one of two ways:</p> <ul> <li> <p> <code>LAT_LONG</code> - the latitude and longitude in decimal format (Example: 47.61_-122.33).</p> </li> <li> <p> <code>CC_POSTALCODE</code> (US Only) - the country code (US), followed by the 5-digit ZIP code (Example: US_98121).</p> </li> </ul><br>
/// - [`tags(Tag)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_tags):<br>required: **false**<br><p>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.</p> <p>The following basic restrictions apply to tags:</p> <ul> <li> <p>Maximum number of tags per resource - 50.</p> </li> <li> <p>For each resource, each tag key must be unique, and each tag key can have only one value.</p> </li> <li> <p>Maximum key length - 128 Unicode characters in UTF-8.</p> </li> <li> <p>Maximum value length - 256 Unicode characters in UTF-8.</p> </li> <li> <p>If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.</p> </li> <li> <p>Tag keys and values are case sensitive.</p> </li> <li> <p>Do not use <code>aws:</code>, <code>AWS:</code>, or any upper or lowercase combination of such as a prefix for keys as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys with this prefix. Values can have this prefix. If a tag value has <code>aws</code> as its prefix but the key does not, then Forecast considers it to be a user tag and will count against the limit of 50 tags. Tags with only the key prefix of <code>aws</code> do not count against your tags per resource limit.</p> </li> </ul><br>
/// - [`format(impl Into<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::format) / [`set_format(Option<String>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_format):<br>required: **false**<br><p>The format of the imported data, CSV or PARQUET. The default value is CSV.</p><br>
/// - [`import_mode(ImportMode)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::import_mode) / [`set_import_mode(Option<ImportMode>)`](crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::set_import_mode):<br>required: **false**<br><p>Specifies whether the dataset import job is a <code>FULL</code> or <code>INCREMENTAL</code> import. A <code>FULL</code> dataset import replaces all of the existing data with the newly imported data. An <code>INCREMENTAL</code> import appends the imported data to the existing data.</p><br>
/// - On success, responds with [`CreateDatasetImportJobOutput`](crate::operation::create_dataset_import_job::CreateDatasetImportJobOutput) with field(s):
/// - [`dataset_import_job_arn(Option<String>)`](crate::operation::create_dataset_import_job::CreateDatasetImportJobOutput::dataset_import_job_arn): <p>The Amazon Resource Name (ARN) of the dataset import job.</p>
/// - On failure, responds with [`SdkError<CreateDatasetImportJobError>`](crate::operation::create_dataset_import_job::CreateDatasetImportJobError)
pub fn create_dataset_import_job(&self) -> crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder {
crate::operation::create_dataset_import_job::builders::CreateDatasetImportJobFluentBuilder::new(self.handle.clone())
}
}