Skip to content

Commit ebd7b2b

Browse files
authored
fix(client-forecast*): fix API docs (#1981)
1 parent 8bced5c commit ebd7b2b

File tree

6 files changed

+139
-42
lines changed

6 files changed

+139
-42
lines changed

clients/client-forecast/Forecast.ts

+15-5
Original file line numberDiff line numberDiff line change
@@ -520,11 +520,21 @@ export class Forecast extends ForecastClient {
520520
}
521521

522522
/**
523-
* <p>Exports backtest forecasts and accuracy metrics generated by the <a>CreatePredictor</a> operation. Two CSV files are exported to a specified
524-
* S3 bucket.</p>
525-
* <p>You must specify a <a>DataDestination</a> object that includes an AWS Identity and Access Management
526-
* (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see
527-
* <a>aws-forecast-iam-roles</a>.</p>
523+
* <p>Exports backtest forecasts and accuracy metrics generated by the <a>CreatePredictor</a> operation. Two folders containing CSV files are exported
524+
* to your specified S3 bucket.</p>
525+
* <p> The export file names will match the following conventions:</p>
526+
* <p>
527+
* <code><ExportJobName>_<ExportTimestamp>_<PartNumber>.csv</code>
528+
* </p>
529+
* <p>The <ExportTimestamp> component is in Java SimpleDate format
530+
* (yyyy-MM-ddTHH-mm-ssZ).</p>
531+
* <p>You must specify a <a>DataDestination</a> object that includes an Amazon S3
532+
* bucket and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3
533+
* bucket. For more information, see <a>aws-forecast-iam-roles</a>.</p>
534+
* <note>
535+
* <p>The <code>Status</code> of the export job must be <code>ACTIVE</code> before
536+
* you can access the export in your Amazon S3 bucket. To get the status, use the <a>DescribePredictorBacktestExportJob</a> operation.</p>
537+
* </note>
528538
*/
529539
public createPredictorBacktestExportJob(
530540
args: CreatePredictorBacktestExportJobCommandInput,

clients/client-forecast/commands/CreatePredictorBacktestExportJobCommand.ts

+15-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,21 @@ export type CreatePredictorBacktestExportJobCommandInput = CreatePredictorBackte
2121
export type CreatePredictorBacktestExportJobCommandOutput = CreatePredictorBacktestExportJobResponse & __MetadataBearer;
2222

2323
/**
24-
* <p>Exports backtest forecasts and accuracy metrics generated by the <a>CreatePredictor</a> operation. Two CSV files are exported to a specified
25-
* S3 bucket.</p>
26-
* <p>You must specify a <a>DataDestination</a> object that includes an AWS Identity and Access Management
27-
* (IAM) role that Amazon Forecast can assume to access the Amazon S3 bucket. For more information, see
28-
* <a>aws-forecast-iam-roles</a>.</p>
24+
* <p>Exports backtest forecasts and accuracy metrics generated by the <a>CreatePredictor</a> operation. Two folders containing CSV files are exported
25+
* to your specified S3 bucket.</p>
26+
* <p> The export file names will match the following conventions:</p>
27+
* <p>
28+
* <code><ExportJobName>_<ExportTimestamp>_<PartNumber>.csv</code>
29+
* </p>
30+
* <p>The <ExportTimestamp> component is in Java SimpleDate format
31+
* (yyyy-MM-ddTHH-mm-ssZ).</p>
32+
* <p>You must specify a <a>DataDestination</a> object that includes an Amazon S3
33+
* bucket and an AWS Identity and Access Management (IAM) role that Amazon Forecast can assume to access the Amazon S3
34+
* bucket. For more information, see <a>aws-forecast-iam-roles</a>.</p>
35+
* <note>
36+
* <p>The <code>Status</code> of the export job must be <code>ACTIVE</code> before
37+
* you can access the export in your Amazon S3 bucket. To get the status, use the <a>DescribePredictorBacktestExportJob</a> operation.</p>
38+
* </note>
2939
*/
3040
export class CreatePredictorBacktestExportJobCommand extends $Command<
3141
CreatePredictorBacktestExportJobCommandInput,

clients/client-forecast/models/models_0.ts

+78-14
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,38 @@ export interface CreateDatasetImportJobRequest {
476476
*/
477477
TimestampFormat?: string;
478478

479+
/**
480+
* <p>A single time zone for every item in your dataset. This option is ideal for datasets
481+
* with all timestamps within a single time zone, or if all timestamps are normalized to a
482+
* single time zone. </p>
483+
* <p>Refer to the <a href="http://joda-time.sourceforge.net/timezones.html">Joda-Time
484+
* API</a> for a complete list of valid time zone names.</p>
485+
*/
479486
TimeZone?: string;
487+
488+
/**
489+
* <p>Automatically derive time zone information from the geolocation attribute. This option
490+
* is ideal for datasets that contain timestamps in multiple time zones and those
491+
* timestamps are expressed in local time.</p>
492+
*/
480493
UseGeolocationForTimeZone?: boolean;
494+
495+
/**
496+
* <p>The format of the geolocation attribute. The geolocation attribute can be formatted in
497+
* one of two ways:</p>
498+
* <ul>
499+
* <li>
500+
* <p>
501+
* <code>LAT_LONG</code> - the latitude and longitude in decimal format (Example: 47.61_-122.33).</p>
502+
* </li>
503+
* <li>
504+
* <p>
505+
* <code>CC_POSTALCODE</code> (US Only) - the country code (US), followed by the 5-digit ZIP code (Example: US_98121).</p>
506+
* </li>
507+
* </ul>
508+
*/
481509
GeolocationFormat?: string;
510+
482511
/**
483512
* <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>
484513
* <p>The following basic restrictions apply to tags:</p>
@@ -600,8 +629,8 @@ export namespace CreateForecastResponse {
600629
}
601630

602631
/**
603-
* <p>The destination for an export job, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
604-
* to access the location and, optionally, an AWS Key Management Service (KMS) key. </p>
632+
* <p>The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
633+
* to access the location, and an AWS Key Management Service (KMS) key (optional). </p>
605634
*/
606635
export interface DataDestination {
607636
/**
@@ -1109,19 +1138,40 @@ export namespace HyperParameterTuningJobConfig {
11091138
}
11101139

11111140
/**
1112-
* <p>Describes a supplementary feature of a dataset group. This object is part of the <a>InputDataConfig</a> object.</p>
1113-
* <p>The only supported feature is Holidays. If you use the calendar, all data in the
1114-
* datasets should belong to the same country as the calendar. For the holiday calendar data, see
1115-
* the <a href="http://jollyday.sourceforge.net/data.html">Jollyday</a> website.</p>
1141+
* <p>Describes a supplementary feature of a dataset group. This object is part of the <a>InputDataConfig</a> object. Forecast supports the Weather Index and Holidays built-in
1142+
* featurizations.</p>
1143+
* <p>
1144+
* <b>Weather Index</b>
1145+
* </p>
1146+
* <p>The Amazon Forecast Weather Index is a built-in featurization that incorporates historical and
1147+
* projected weather information into your model. The Weather Index supplements your datasets
1148+
* with over two years of historical weather data and up to 14 days of projected weather data.
1149+
* For more information, see <a href="https://docs.aws.amazon.com/forecast/latest/dg/weather.html">Amazon Forecast Weather Index</a>.</p>
1150+
* <p>
1151+
* <b>Holidays</b>
1152+
* </p>
1153+
* <p>Holidays is a built-in featurization that incorporates a feature-engineered dataset of
1154+
* national holiday information into your model. It provides native support for the holiday
1155+
* calendars of 66 countries. To view the holiday calendars, refer to the <a href="http://jollyday.sourceforge.net/data.html">Jollyday</a> library. For more
1156+
* information, see <a href="https://docs.aws.amazon.com/forecast/latest/dg/holidays.html">Holidays Featurization</a>.</p>
11161157
*/
11171158
export interface SupplementaryFeature {
11181159
/**
1119-
* <p>The name of the feature. This must be "holiday".</p>
1160+
* <p>The name of the feature. Valid values: <code>"holiday"</code> and <code>"weather"</code>.</p>
11201161
*/
11211162
Name: string | undefined;
11221163

11231164
/**
1124-
* <p>One of the following 2 letter country codes:</p>
1165+
* <p>
1166+
* <b>Weather Index</b>
1167+
* </p>
1168+
* <p>To enable the Weather Index, set the value to <code>"true"</code>
1169+
* </p>
1170+
* <p>
1171+
* <b>Holidays</b>
1172+
* </p>
1173+
* <p>To enable Holidays, specify a country with one of the following two-letter country
1174+
* codes:</p>
11251175
* <ul>
11261176
* <li>
11271177
* <p>"AL" - ALBANIA</p>
@@ -1558,8 +1608,8 @@ export interface CreatePredictorBacktestExportJobRequest {
15581608
PredictorArn: string | undefined;
15591609

15601610
/**
1561-
* <p>The destination for an export job, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
1562-
* to access the location and, optionally, an AWS Key Management Service (KMS) key. </p>
1611+
* <p>The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
1612+
* to access the location, and an AWS Key Management Service (KMS) key (optional). </p>
15631613
*/
15641614
Destination: DataDestination | undefined;
15651615

@@ -2014,9 +2064,23 @@ export interface DescribeDatasetImportJobResponse {
20142064
*/
20152065
TimestampFormat?: string;
20162066

2067+
/**
2068+
* <p>The single time zone applied to every item in the dataset</p>
2069+
*/
20172070
TimeZone?: string;
2071+
2072+
/**
2073+
* <p>Whether <code>TimeZone</code> is automatically derived from the geolocation
2074+
* attribute.</p>
2075+
*/
20182076
UseGeolocationForTimeZone?: boolean;
2077+
2078+
/**
2079+
* <p>The format of the geolocation attribute. Valid Values:<code>"LAT_LONG"</code> and
2080+
* <code>"CC_POSTALCODE"</code>.</p>
2081+
*/
20192082
GeolocationFormat?: string;
2083+
20202084
/**
20212085
* <p>The location of the training data to import and an AWS Identity and Access Management (IAM) role that Amazon Forecast
20222086
* can assume to access the data.</p>
@@ -2559,8 +2623,8 @@ export interface DescribePredictorBacktestExportJobResponse {
25592623
PredictorArn?: string;
25602624

25612625
/**
2562-
* <p>The destination for an export job, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
2563-
* to access the location and, optionally, an AWS Key Management Service (KMS) key. </p>
2626+
* <p>The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
2627+
* to access the location, and an AWS Key Management Service (KMS) key (optional). </p>
25642628
*/
25652629
Destination?: DataDestination;
25662630

@@ -3560,8 +3624,8 @@ export interface PredictorBacktestExportJobSummary {
35603624
PredictorBacktestExportJobName?: string;
35613625

35623626
/**
3563-
* <p>The destination for an export job, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
3564-
* to access the location and, optionally, an AWS Key Management Service (KMS) key. </p>
3627+
* <p>The destination for an export job. Provide an S3 path, an AWS Identity and Access Management (IAM) role that allows Amazon Forecast
3628+
* to access the location, and an AWS Key Management Service (KMS) key (optional). </p>
35653629
*/
35663630
Destination?: DataDestination;
35673631

clients/client-forecastquery/models/models_0.ts

-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ export interface Forecast {
132132
* <p>p90</p>
133133
* </li>
134134
* </ul>
135-
* <p>The default setting is <code>["0.1", "0.5", "0.9"]</code>. Use the optional <code>ForecastTypes</code> parameter of the <a href="https://docs.aws.amazon.com/forecast/latest/dg/API_CreateForecast.html">CreateForecast</a> operation to change the values. The values will vary depending on how this is set, with a minimum of <code>1</code> and a maximum of <code>5.</code>
136-
* </p>
137135
*/
138136
Predictions?: { [key: string]: DataPoint[] };
139137
}

0 commit comments

Comments
 (0)