@aws-sdk/client-forecastquery 3.35.0 → 3.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/Forecastquery.js +0 -1
  3. package/dist-cjs/ForecastqueryClient.js +0 -1
  4. package/dist-cjs/commands/QueryForecastCommand.js +0 -1
  5. package/dist-cjs/endpoints.js +0 -1
  6. package/dist-cjs/index.js +0 -1
  7. package/dist-cjs/models/index.js +0 -1
  8. package/dist-cjs/models/models_0.js +0 -1
  9. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  10. package/dist-cjs/runtimeConfig.browser.js +2 -3
  11. package/dist-cjs/runtimeConfig.js +3 -4
  12. package/dist-cjs/runtimeConfig.native.js +0 -1
  13. package/dist-cjs/runtimeConfig.shared.js +0 -1
  14. package/dist-es/Forecastquery.js +0 -1
  15. package/dist-es/ForecastqueryClient.js +0 -1
  16. package/dist-es/commands/QueryForecastCommand.js +0 -1
  17. package/dist-es/endpoints.js +0 -1
  18. package/dist-es/index.js +0 -1
  19. package/dist-es/models/index.js +0 -1
  20. package/dist-es/models/models_0.js +0 -1
  21. package/dist-es/protocols/Aws_json1_1.js +0 -1
  22. package/dist-es/runtimeConfig.browser.js +1 -2
  23. package/dist-es/runtimeConfig.js +2 -3
  24. package/dist-es/runtimeConfig.native.js +0 -1
  25. package/dist-es/runtimeConfig.shared.js +0 -1
  26. package/package.json +33 -30
  27. package/dist-cjs/Forecastquery.js.map +0 -1
  28. package/dist-cjs/ForecastqueryClient.js.map +0 -1
  29. package/dist-cjs/commands/QueryForecastCommand.js.map +0 -1
  30. package/dist-cjs/endpoints.js.map +0 -1
  31. package/dist-cjs/index.js.map +0 -1
  32. package/dist-cjs/models/index.js.map +0 -1
  33. package/dist-cjs/models/models_0.js.map +0 -1
  34. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  35. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  36. package/dist-cjs/runtimeConfig.js.map +0 -1
  37. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  38. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  39. package/dist-es/Forecastquery.js.map +0 -1
  40. package/dist-es/ForecastqueryClient.js.map +0 -1
  41. package/dist-es/commands/QueryForecastCommand.js.map +0 -1
  42. package/dist-es/endpoints.js.map +0 -1
  43. package/dist-es/index.js.map +0 -1
  44. package/dist-es/models/index.js.map +0 -1
  45. package/dist-es/models/models_0.js.map +0 -1
  46. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  47. package/dist-es/runtimeConfig.browser.js.map +0 -1
  48. package/dist-es/runtimeConfig.js.map +0 -1
  49. package/dist-es/runtimeConfig.native.js.map +0 -1
  50. package/dist-es/runtimeConfig.shared.js.map +0 -1
  51. package/jest.config.js +0 -4
  52. package/src/Forecastquery.ts +0 -56
  53. package/src/ForecastqueryClient.ts +0 -237
  54. package/src/commands/QueryForecastCommand.ts +0 -106
  55. package/src/endpoints.ts +0 -73
  56. package/src/index.ts +0 -4
  57. package/src/models/index.ts +0 -1
  58. package/src/models/models_0.ts +0 -213
  59. package/src/protocols/Aws_json1_1.ts +0 -389
  60. package/src/runtimeConfig.browser.ts +0 -41
  61. package/src/runtimeConfig.native.ts +0 -17
  62. package/src/runtimeConfig.shared.ts +0 -17
  63. package/src/runtimeConfig.ts +0 -46
  64. package/tsconfig.es.json +0 -10
  65. package/tsconfig.json +0 -33
  66. package/tsconfig.types.json +0 -9
@@ -1,237 +0,0 @@
1
- import {
2
- EndpointsInputConfig,
3
- EndpointsResolvedConfig,
4
- RegionInputConfig,
5
- RegionResolvedConfig,
6
- resolveEndpointsConfig,
7
- resolveRegionConfig,
8
- } from "@aws-sdk/config-resolver";
9
- import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
10
- import {
11
- getHostHeaderPlugin,
12
- HostHeaderInputConfig,
13
- HostHeaderResolvedConfig,
14
- resolveHostHeaderConfig,
15
- } from "@aws-sdk/middleware-host-header";
16
- import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
17
- import { getRetryPlugin, resolveRetryConfig, RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
18
- import {
19
- AwsAuthInputConfig,
20
- AwsAuthResolvedConfig,
21
- getAwsAuthPlugin,
22
- resolveAwsAuthConfig,
23
- } from "@aws-sdk/middleware-signing";
24
- import {
25
- getUserAgentPlugin,
26
- resolveUserAgentConfig,
27
- UserAgentInputConfig,
28
- UserAgentResolvedConfig,
29
- } from "@aws-sdk/middleware-user-agent";
30
- import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
31
- import {
32
- Client as __Client,
33
- SmithyConfiguration as __SmithyConfiguration,
34
- SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
35
- } from "@aws-sdk/smithy-client";
36
- import {
37
- Credentials as __Credentials,
38
- Decoder as __Decoder,
39
- Encoder as __Encoder,
40
- Hash as __Hash,
41
- HashConstructor as __HashConstructor,
42
- HttpHandlerOptions as __HttpHandlerOptions,
43
- Logger as __Logger,
44
- Provider as __Provider,
45
- Provider,
46
- RegionInfoProvider,
47
- StreamCollector as __StreamCollector,
48
- UrlParser as __UrlParser,
49
- UserAgent as __UserAgent,
50
- } from "@aws-sdk/types";
51
-
52
- import { QueryForecastCommandInput, QueryForecastCommandOutput } from "./commands/QueryForecastCommand";
53
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
54
-
55
- export type ServiceInputTypes = QueryForecastCommandInput;
56
-
57
- export type ServiceOutputTypes = QueryForecastCommandOutput;
58
-
59
- export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
60
- /**
61
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
62
- */
63
- requestHandler?: __HttpHandler;
64
-
65
- /**
66
- * A constructor for a class implementing the {@link __Hash} interface
67
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
68
- * @internal
69
- */
70
- sha256?: __HashConstructor;
71
-
72
- /**
73
- * The function that will be used to convert strings into HTTP endpoints.
74
- * @internal
75
- */
76
- urlParser?: __UrlParser;
77
-
78
- /**
79
- * A function that can calculate the length of a request body.
80
- * @internal
81
- */
82
- bodyLengthChecker?: (body: any) => number | undefined;
83
-
84
- /**
85
- * A function that converts a stream into an array of bytes.
86
- * @internal
87
- */
88
- streamCollector?: __StreamCollector;
89
-
90
- /**
91
- * The function that will be used to convert a base64-encoded string to a byte array.
92
- * @internal
93
- */
94
- base64Decoder?: __Decoder;
95
-
96
- /**
97
- * The function that will be used to convert binary data to a base64-encoded string.
98
- * @internal
99
- */
100
- base64Encoder?: __Encoder;
101
-
102
- /**
103
- * The function that will be used to convert a UTF8-encoded string to a byte array.
104
- * @internal
105
- */
106
- utf8Decoder?: __Decoder;
107
-
108
- /**
109
- * The function that will be used to convert binary data to a UTF-8 encoded string.
110
- * @internal
111
- */
112
- utf8Encoder?: __Encoder;
113
-
114
- /**
115
- * The runtime environment.
116
- * @internal
117
- */
118
- runtime?: string;
119
-
120
- /**
121
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
122
- * trait of an operation.
123
- */
124
- disableHostPrefix?: boolean;
125
-
126
- /**
127
- * Value for how many times a request will be made at most in case of retry.
128
- */
129
- maxAttempts?: number | __Provider<number>;
130
-
131
- /**
132
- * Specifies which retry algorithm to use.
133
- */
134
- retryMode?: string | __Provider<string>;
135
-
136
- /**
137
- * Optional logger for logging debug/info/warn/error.
138
- */
139
- logger?: __Logger;
140
-
141
- /**
142
- * Unique service identifier.
143
- * @internal
144
- */
145
- serviceId?: string;
146
-
147
- /**
148
- * The AWS region to which this client will send requests
149
- */
150
- region?: string | __Provider<string>;
151
-
152
- /**
153
- * Default credentials provider; Not available in browser runtime.
154
- * @internal
155
- */
156
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
157
-
158
- /**
159
- * Fetch related hostname, signing name or signing region with given region.
160
- * @internal
161
- */
162
- regionInfoProvider?: RegionInfoProvider;
163
-
164
- /**
165
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
166
- * @internal
167
- */
168
- defaultUserAgentProvider?: Provider<__UserAgent>;
169
- }
170
-
171
- type ForecastqueryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
172
- ClientDefaults &
173
- RegionInputConfig &
174
- EndpointsInputConfig &
175
- RetryInputConfig &
176
- HostHeaderInputConfig &
177
- AwsAuthInputConfig &
178
- UserAgentInputConfig;
179
- /**
180
- * The configuration interface of ForecastqueryClient class constructor that set the region, credentials and other options.
181
- */
182
- export interface ForecastqueryClientConfig extends ForecastqueryClientConfigType {}
183
-
184
- type ForecastqueryClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
185
- Required<ClientDefaults> &
186
- RegionResolvedConfig &
187
- EndpointsResolvedConfig &
188
- RetryResolvedConfig &
189
- HostHeaderResolvedConfig &
190
- AwsAuthResolvedConfig &
191
- UserAgentResolvedConfig;
192
- /**
193
- * The resolved configuration interface of ForecastqueryClient class. This is resolved and normalized from the {@link ForecastqueryClientConfig | constructor configuration interface}.
194
- */
195
- export interface ForecastqueryClientResolvedConfig extends ForecastqueryClientResolvedConfigType {}
196
-
197
- /**
198
- * <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
199
- */
200
- export class ForecastqueryClient extends __Client<
201
- __HttpHandlerOptions,
202
- ServiceInputTypes,
203
- ServiceOutputTypes,
204
- ForecastqueryClientResolvedConfig
205
- > {
206
- /**
207
- * The resolved configuration of ForecastqueryClient class. This is resolved and normalized from the {@link ForecastqueryClientConfig | constructor configuration interface}.
208
- */
209
- readonly config: ForecastqueryClientResolvedConfig;
210
-
211
- constructor(configuration: ForecastqueryClientConfig) {
212
- const _config_0 = __getRuntimeConfig(configuration);
213
- const _config_1 = resolveRegionConfig(_config_0);
214
- const _config_2 = resolveEndpointsConfig(_config_1);
215
- const _config_3 = resolveRetryConfig(_config_2);
216
- const _config_4 = resolveHostHeaderConfig(_config_3);
217
- const _config_5 = resolveAwsAuthConfig(_config_4);
218
- const _config_6 = resolveUserAgentConfig(_config_5);
219
- super(_config_6);
220
- this.config = _config_6;
221
- this.middlewareStack.use(getRetryPlugin(this.config));
222
- this.middlewareStack.use(getContentLengthPlugin(this.config));
223
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
224
- this.middlewareStack.use(getLoggerPlugin(this.config));
225
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
226
- this.middlewareStack.use(getUserAgentPlugin(this.config));
227
- }
228
-
229
- /**
230
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
231
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
232
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
233
- */
234
- destroy(): void {
235
- super.destroy();
236
- }
237
- }
@@ -1,106 +0,0 @@
1
- import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
3
- import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import {
5
- FinalizeHandlerArguments,
6
- Handler,
7
- HandlerExecutionContext,
8
- HttpHandlerOptions as __HttpHandlerOptions,
9
- MetadataBearer as __MetadataBearer,
10
- MiddlewareStack,
11
- SerdeContext as __SerdeContext,
12
- } from "@aws-sdk/types";
13
-
14
- import { ForecastqueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ForecastqueryClient";
15
- import { QueryForecastRequest, QueryForecastResponse } from "../models/models_0";
16
- import {
17
- deserializeAws_json1_1QueryForecastCommand,
18
- serializeAws_json1_1QueryForecastCommand,
19
- } from "../protocols/Aws_json1_1";
20
-
21
- export interface QueryForecastCommandInput extends QueryForecastRequest {}
22
- export interface QueryForecastCommandOutput extends QueryForecastResponse, __MetadataBearer {}
23
-
24
- /**
25
- * <p>Retrieves a forecast for a single item, filtered by the supplied criteria.</p>
26
- * <p>The criteria is a key-value pair. The key is either <code>item_id</code> (or the
27
- * equivalent non-timestamp, non-target field) from the <code>TARGET_TIME_SERIES</code> dataset,
28
- * or one of the forecast dimensions specified as part of the <code>FeaturizationConfig</code>
29
- * object.</p>
30
- * <p>By default, <code>QueryForecast</code> returns the complete date range for the filtered
31
- * forecast. You can request a specific date range.</p>
32
- * <p>To get the full forecast, use the <a href="https://docs.aws.amazon.com/en_us/forecast/latest/dg/API_CreateForecastExportJob.html">CreateForecastExportJob</a> operation.</p>
33
- * <note>
34
- * <p>The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was
35
- * used to create the predictor.</p>
36
- * </note>
37
- * @example
38
- * Use a bare-bones client and the command you need to make an API call.
39
- * ```javascript
40
- * import { ForecastqueryClient, QueryForecastCommand } from "@aws-sdk/client-forecastquery"; // ES Modules import
41
- * // const { ForecastqueryClient, QueryForecastCommand } = require("@aws-sdk/client-forecastquery"); // CommonJS import
42
- * const client = new ForecastqueryClient(config);
43
- * const command = new QueryForecastCommand(input);
44
- * const response = await client.send(command);
45
- * ```
46
- *
47
- * @see {@link QueryForecastCommandInput} for command's `input` shape.
48
- * @see {@link QueryForecastCommandOutput} for command's `response` shape.
49
- * @see {@link ForecastqueryClientResolvedConfig | config} for command's `input` shape.
50
- *
51
- */
52
- export class QueryForecastCommand extends $Command<
53
- QueryForecastCommandInput,
54
- QueryForecastCommandOutput,
55
- ForecastqueryClientResolvedConfig
56
- > {
57
- // Start section: command_properties
58
- // End section: command_properties
59
-
60
- constructor(readonly input: QueryForecastCommandInput) {
61
- // Start section: command_constructor
62
- super();
63
- // End section: command_constructor
64
- }
65
-
66
- /**
67
- * @internal
68
- */
69
- resolveMiddleware(
70
- clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
71
- configuration: ForecastqueryClientResolvedConfig,
72
- options?: __HttpHandlerOptions
73
- ): Handler<QueryForecastCommandInput, QueryForecastCommandOutput> {
74
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
75
-
76
- const stack = clientStack.concat(this.middlewareStack);
77
-
78
- const { logger } = configuration;
79
- const clientName = "ForecastqueryClient";
80
- const commandName = "QueryForecastCommand";
81
- const handlerExecutionContext: HandlerExecutionContext = {
82
- logger,
83
- clientName,
84
- commandName,
85
- inputFilterSensitiveLog: QueryForecastRequest.filterSensitiveLog,
86
- outputFilterSensitiveLog: QueryForecastResponse.filterSensitiveLog,
87
- };
88
- const { requestHandler } = configuration;
89
- return stack.resolve(
90
- (request: FinalizeHandlerArguments<any>) =>
91
- requestHandler.handle(request.request as __HttpRequest, options || {}),
92
- handlerExecutionContext
93
- );
94
- }
95
-
96
- private serialize(input: QueryForecastCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
97
- return serializeAws_json1_1QueryForecastCommand(input, context);
98
- }
99
-
100
- private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<QueryForecastCommandOutput> {
101
- return deserializeAws_json1_1QueryForecastCommand(output, context);
102
- }
103
-
104
- // Start section: command_body_extra
105
- // End section: command_body_extra
106
- }
package/src/endpoints.ts DELETED
@@ -1,73 +0,0 @@
1
- import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {
5
- "fips-us-east-1": {
6
- hostname: "forecastquery-fips.us-east-1.amazonaws.com",
7
- signingRegion: "us-east-1",
8
- },
9
- "fips-us-east-2": {
10
- hostname: "forecastquery-fips.us-east-2.amazonaws.com",
11
- signingRegion: "us-east-2",
12
- },
13
- "fips-us-west-2": {
14
- hostname: "forecastquery-fips.us-west-2.amazonaws.com",
15
- signingRegion: "us-west-2",
16
- },
17
- };
18
-
19
- const partitionHash: PartitionHash = {
20
- aws: {
21
- regions: [
22
- "af-south-1",
23
- "ap-east-1",
24
- "ap-northeast-1",
25
- "ap-northeast-2",
26
- "ap-northeast-3",
27
- "ap-south-1",
28
- "ap-southeast-1",
29
- "ap-southeast-2",
30
- "ca-central-1",
31
- "eu-central-1",
32
- "eu-north-1",
33
- "eu-south-1",
34
- "eu-west-1",
35
- "eu-west-2",
36
- "eu-west-3",
37
- "fips-us-east-1",
38
- "fips-us-east-2",
39
- "fips-us-west-2",
40
- "me-south-1",
41
- "sa-east-1",
42
- "us-east-1",
43
- "us-east-2",
44
- "us-west-1",
45
- "us-west-2",
46
- ],
47
- hostname: "forecastquery.{region}.amazonaws.com",
48
- },
49
- "aws-cn": {
50
- regions: ["cn-north-1", "cn-northwest-1"],
51
- hostname: "forecastquery.{region}.amazonaws.com.cn",
52
- },
53
- "aws-iso": {
54
- regions: ["us-iso-east-1"],
55
- hostname: "forecastquery.{region}.c2s.ic.gov",
56
- },
57
- "aws-iso-b": {
58
- regions: ["us-isob-east-1"],
59
- hostname: "forecastquery.{region}.sc2s.sgov.gov",
60
- },
61
- "aws-us-gov": {
62
- regions: ["us-gov-east-1", "us-gov-west-1"],
63
- hostname: "forecastquery.{region}.amazonaws.com",
64
- },
65
- };
66
-
67
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
68
- getRegionInfo(region, {
69
- ...options,
70
- signingService: "forecast",
71
- regionHash,
72
- partitionHash,
73
- });
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./ForecastqueryClient";
2
- export * from "./Forecastquery";
3
- export * from "./commands/QueryForecastCommand";
4
- export * from "./models/index";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1,213 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
-
3
- /**
4
- * <p>The value is invalid or is too long.</p>
5
- */
6
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
7
- name: "InvalidInputException";
8
- $fault: "client";
9
- Message?: string;
10
- }
11
-
12
- export namespace InvalidInputException {
13
- /**
14
- * @internal
15
- */
16
- export const filterSensitiveLog = (obj: InvalidInputException): any => ({
17
- ...obj,
18
- });
19
- }
20
-
21
- /**
22
- * <p>The token is not valid. Tokens expire after 24 hours.</p>
23
- */
24
- export interface InvalidNextTokenException extends __SmithyException, $MetadataBearer {
25
- name: "InvalidNextTokenException";
26
- $fault: "client";
27
- Message?: string;
28
- }
29
-
30
- export namespace InvalidNextTokenException {
31
- /**
32
- * @internal
33
- */
34
- export const filterSensitiveLog = (obj: InvalidNextTokenException): any => ({
35
- ...obj,
36
- });
37
- }
38
-
39
- /**
40
- * <p>The limit on the number of requests per second has been exceeded.</p>
41
- */
42
- export interface LimitExceededException extends __SmithyException, $MetadataBearer {
43
- name: "LimitExceededException";
44
- $fault: "client";
45
- Message?: string;
46
- }
47
-
48
- export namespace LimitExceededException {
49
- /**
50
- * @internal
51
- */
52
- export const filterSensitiveLog = (obj: LimitExceededException): any => ({
53
- ...obj,
54
- });
55
- }
56
-
57
- export interface QueryForecastRequest {
58
- /**
59
- * <p>The Amazon Resource Name (ARN) of the forecast to query.</p>
60
- */
61
- ForecastArn: string | undefined;
62
-
63
- /**
64
- * <p>The start date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss
65
- * (ISO 8601 format). For example, 2015-01-01T08:00:00.</p>
66
- */
67
- StartDate?: string;
68
-
69
- /**
70
- * <p>The end date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss
71
- * (ISO 8601 format). For example, 2015-01-01T20:00:00. </p>
72
- */
73
- EndDate?: string;
74
-
75
- /**
76
- * <p>The filtering criteria to apply when retrieving the forecast. For example, to get the
77
- * forecast for <code>client_21</code> in the electricity usage dataset, specify the
78
- * following:</p>
79
- * <p>
80
- * <code>{"item_id" : "client_21"}</code>
81
- * </p>
82
- *
83
- *
84
- * <p>To get the full forecast, use the <a href="https://docs.aws.amazon.com/en_us/forecast/latest/dg/API_CreateForecastExportJob.html">CreateForecastExportJob</a> operation.</p>
85
- */
86
- Filters: { [key: string]: string } | undefined;
87
-
88
- /**
89
- * <p>If the result of the previous request was truncated, the response includes a
90
- * <code>NextToken</code>. To retrieve the next set of results, use the token in the next
91
- * request. Tokens expire after 24 hours.</p>
92
- */
93
- NextToken?: string;
94
- }
95
-
96
- export namespace QueryForecastRequest {
97
- /**
98
- * @internal
99
- */
100
- export const filterSensitiveLog = (obj: QueryForecastRequest): any => ({
101
- ...obj,
102
- });
103
- }
104
-
105
- /**
106
- * <p>The forecast value for a specific date. Part of the <a>Forecast</a>
107
- * object.</p>
108
- */
109
- export interface DataPoint {
110
- /**
111
- * <p>The timestamp of the specific forecast.</p>
112
- */
113
- Timestamp?: string;
114
-
115
- /**
116
- * <p>The forecast value.</p>
117
- */
118
- Value?: number;
119
- }
120
-
121
- export namespace DataPoint {
122
- /**
123
- * @internal
124
- */
125
- export const filterSensitiveLog = (obj: DataPoint): any => ({
126
- ...obj,
127
- });
128
- }
129
-
130
- /**
131
- * <p>Provides information about a forecast. Returned as part of the <a>QueryForecast</a> response.</p>
132
- */
133
- export interface Forecast {
134
- /**
135
- * <p>The forecast.</p>
136
- * <p>The <i>string</i> of the string-to-array map is one of the following
137
- * values:</p>
138
- * <ul>
139
- * <li>
140
- * <p>p10</p>
141
- * </li>
142
- * <li>
143
- * <p>p50</p>
144
- * </li>
145
- * <li>
146
- * <p>p90</p>
147
- * </li>
148
- * </ul>
149
- */
150
- Predictions?: { [key: string]: DataPoint[] };
151
- }
152
-
153
- export namespace Forecast {
154
- /**
155
- * @internal
156
- */
157
- export const filterSensitiveLog = (obj: Forecast): any => ({
158
- ...obj,
159
- });
160
- }
161
-
162
- export interface QueryForecastResponse {
163
- /**
164
- * <p>The forecast.</p>
165
- */
166
- Forecast?: Forecast;
167
- }
168
-
169
- export namespace QueryForecastResponse {
170
- /**
171
- * @internal
172
- */
173
- export const filterSensitiveLog = (obj: QueryForecastResponse): any => ({
174
- ...obj,
175
- });
176
- }
177
-
178
- /**
179
- * <p>The specified resource is in use.</p>
180
- */
181
- export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
182
- name: "ResourceInUseException";
183
- $fault: "client";
184
- Message?: string;
185
- }
186
-
187
- export namespace ResourceInUseException {
188
- /**
189
- * @internal
190
- */
191
- export const filterSensitiveLog = (obj: ResourceInUseException): any => ({
192
- ...obj,
193
- });
194
- }
195
-
196
- /**
197
- * <p>We can't find that resource. Check the information that you've provided and try
198
- * again.</p>
199
- */
200
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
201
- name: "ResourceNotFoundException";
202
- $fault: "client";
203
- Message?: string;
204
- }
205
-
206
- export namespace ResourceNotFoundException {
207
- /**
208
- * @internal
209
- */
210
- export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
211
- ...obj,
212
- });
213
- }