@aws-sdk/client-forecastquery 3.296.0 → 3.298.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.
- package/dist-cjs/commands/QueryForecastCommand.js +2 -3
- package/dist-cjs/commands/QueryWhatIfForecastCommand.js +2 -3
- package/dist-cjs/models/models_0.js +1 -25
- package/dist-es/commands/QueryForecastCommand.js +2 -3
- package/dist-es/commands/QueryWhatIfForecastCommand.js +2 -3
- package/dist-es/models/models_0.js +0 -18
- package/dist-types/Forecastquery.d.ts +3 -0
- package/dist-types/ForecastqueryClient.d.ts +24 -4
- package/dist-types/commands/QueryForecastCommand.d.ts +16 -0
- package/dist-types/commands/QueryWhatIfForecastCommand.d.ts +16 -0
- package/dist-types/models/ForecastqueryServiceException.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +21 -26
- package/dist-types/ts3.4/models/models_0.d.ts +0 -14
- package/package.json +4 -3
|
@@ -4,7 +4,6 @@ exports.QueryForecastCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
8
|
class QueryForecastCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class QueryForecastCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -4,7 +4,6 @@ exports.QueryWhatIfForecastCommand = void 0;
|
|
|
4
4
|
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
5
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
8
|
class QueryWhatIfForecastCommand extends smithy_client_1.Command {
|
|
10
9
|
static getEndpointParameterInstructions() {
|
|
@@ -30,8 +29,8 @@ class QueryWhatIfForecastCommand extends smithy_client_1.Command {
|
|
|
30
29
|
logger,
|
|
31
30
|
clientName,
|
|
32
31
|
commandName,
|
|
33
|
-
inputFilterSensitiveLog:
|
|
34
|
-
outputFilterSensitiveLog:
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
34
|
};
|
|
36
35
|
const { requestHandler } = configuration;
|
|
37
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ResourceNotFoundException = exports.ResourceInUseException = exports.LimitExceededException = exports.InvalidNextTokenException = exports.InvalidInputException = void 0;
|
|
4
4
|
const ForecastqueryServiceException_1 = require("./ForecastqueryServiceException");
|
|
5
5
|
class InvalidInputException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -72,27 +72,3 @@ class ResourceNotFoundException extends ForecastqueryServiceException_1.Forecast
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
75
|
-
const QueryForecastRequestFilterSensitiveLog = (obj) => ({
|
|
76
|
-
...obj,
|
|
77
|
-
});
|
|
78
|
-
exports.QueryForecastRequestFilterSensitiveLog = QueryForecastRequestFilterSensitiveLog;
|
|
79
|
-
const DataPointFilterSensitiveLog = (obj) => ({
|
|
80
|
-
...obj,
|
|
81
|
-
});
|
|
82
|
-
exports.DataPointFilterSensitiveLog = DataPointFilterSensitiveLog;
|
|
83
|
-
const ForecastFilterSensitiveLog = (obj) => ({
|
|
84
|
-
...obj,
|
|
85
|
-
});
|
|
86
|
-
exports.ForecastFilterSensitiveLog = ForecastFilterSensitiveLog;
|
|
87
|
-
const QueryForecastResponseFilterSensitiveLog = (obj) => ({
|
|
88
|
-
...obj,
|
|
89
|
-
});
|
|
90
|
-
exports.QueryForecastResponseFilterSensitiveLog = QueryForecastResponseFilterSensitiveLog;
|
|
91
|
-
const QueryWhatIfForecastRequestFilterSensitiveLog = (obj) => ({
|
|
92
|
-
...obj,
|
|
93
|
-
});
|
|
94
|
-
exports.QueryWhatIfForecastRequestFilterSensitiveLog = QueryWhatIfForecastRequestFilterSensitiveLog;
|
|
95
|
-
const QueryWhatIfForecastResponseFilterSensitiveLog = (obj) => ({
|
|
96
|
-
...obj,
|
|
97
|
-
});
|
|
98
|
-
exports.QueryWhatIfForecastResponseFilterSensitiveLog = QueryWhatIfForecastResponseFilterSensitiveLog;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { QueryForecastRequestFilterSensitiveLog, QueryForecastResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1QueryForecastCommand, serializeAws_json1_1QueryForecastCommand, } from "../protocols/Aws_json1_1";
|
|
6
5
|
export class QueryForecastCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class QueryForecastCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { QueryWhatIfForecastRequestFilterSensitiveLog, QueryWhatIfForecastResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1QueryWhatIfForecastCommand, serializeAws_json1_1QueryWhatIfForecastCommand, } from "../protocols/Aws_json1_1";
|
|
6
5
|
export class QueryWhatIfForecastCommand extends $Command {
|
|
7
6
|
static getEndpointParameterInstructions() {
|
|
@@ -27,8 +26,8 @@ export class QueryWhatIfForecastCommand extends $Command {
|
|
|
27
26
|
logger,
|
|
28
27
|
clientName,
|
|
29
28
|
commandName,
|
|
30
|
-
inputFilterSensitiveLog:
|
|
31
|
-
outputFilterSensitiveLog:
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
31
|
};
|
|
33
32
|
const { requestHandler } = configuration;
|
|
34
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -64,21 +64,3 @@ export class ResourceNotFoundException extends __BaseException {
|
|
|
64
64
|
this.Message = opts.Message;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
export const QueryForecastRequestFilterSensitiveLog = (obj) => ({
|
|
68
|
-
...obj,
|
|
69
|
-
});
|
|
70
|
-
export const DataPointFilterSensitiveLog = (obj) => ({
|
|
71
|
-
...obj,
|
|
72
|
-
});
|
|
73
|
-
export const ForecastFilterSensitiveLog = (obj) => ({
|
|
74
|
-
...obj,
|
|
75
|
-
});
|
|
76
|
-
export const QueryForecastResponseFilterSensitiveLog = (obj) => ({
|
|
77
|
-
...obj,
|
|
78
|
-
});
|
|
79
|
-
export const QueryWhatIfForecastRequestFilterSensitiveLog = (obj) => ({
|
|
80
|
-
...obj,
|
|
81
|
-
});
|
|
82
|
-
export const QueryWhatIfForecastResponseFilterSensitiveLog = (obj) => ({
|
|
83
|
-
...obj,
|
|
84
|
-
});
|
|
@@ -3,10 +3,12 @@ import { QueryForecastCommandInput, QueryForecastCommandOutput } from "./command
|
|
|
3
3
|
import { QueryWhatIfForecastCommandInput, QueryWhatIfForecastCommandOutput } from "./commands/QueryWhatIfForecastCommand";
|
|
4
4
|
import { ForecastqueryClient } from "./ForecastqueryClient";
|
|
5
5
|
/**
|
|
6
|
+
* @public
|
|
6
7
|
* <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
|
|
7
8
|
*/
|
|
8
9
|
export declare class Forecastquery extends ForecastqueryClient {
|
|
9
10
|
/**
|
|
11
|
+
* @public
|
|
10
12
|
* <p>Retrieves a forecast for a single item, filtered by the supplied criteria.</p>
|
|
11
13
|
* <p>The criteria is a key-value pair. The key is either <code>item_id</code> (or the
|
|
12
14
|
* equivalent non-timestamp, non-target field) from the <code>TARGET_TIME_SERIES</code> dataset,
|
|
@@ -24,6 +26,7 @@ export declare class Forecastquery extends ForecastqueryClient {
|
|
|
24
26
|
queryForecast(args: QueryForecastCommandInput, cb: (err: any, data?: QueryForecastCommandOutput) => void): void;
|
|
25
27
|
queryForecast(args: QueryForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryForecastCommandOutput) => void): void;
|
|
26
28
|
/**
|
|
29
|
+
* @public
|
|
27
30
|
* <p>Retrieves a what-if forecast.</p>
|
|
28
31
|
*/
|
|
29
32
|
queryWhatIfForecast(args: QueryWhatIfForecastCommandInput, options?: __HttpHandlerOptions): Promise<QueryWhatIfForecastCommandOutput>;
|
|
@@ -10,15 +10,24 @@ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as
|
|
|
10
10
|
import { QueryForecastCommandInput, QueryForecastCommandOutput } from "./commands/QueryForecastCommand";
|
|
11
11
|
import { QueryWhatIfForecastCommandInput, QueryWhatIfForecastCommandOutput } from "./commands/QueryWhatIfForecastCommand";
|
|
12
12
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
13
16
|
export type ServiceInputTypes = QueryForecastCommandInput | QueryWhatIfForecastCommandInput;
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
14
20
|
export type ServiceOutputTypes = QueryForecastCommandOutput | QueryWhatIfForecastCommandOutput;
|
|
21
|
+
/**
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
15
24
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
16
25
|
/**
|
|
17
26
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
18
27
|
*/
|
|
19
28
|
requestHandler?: __HttpHandler;
|
|
20
29
|
/**
|
|
21
|
-
* A constructor for a class implementing the {@link
|
|
30
|
+
* A constructor for a class implementing the {@link @aws-sdk/types#ChecksumConstructor} interface
|
|
22
31
|
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
23
32
|
* @internal
|
|
24
33
|
*/
|
|
@@ -108,23 +117,34 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
108
117
|
*/
|
|
109
118
|
logger?: __Logger;
|
|
110
119
|
/**
|
|
111
|
-
* The {@link
|
|
120
|
+
* The {@link @aws-sdk/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
112
121
|
*/
|
|
113
122
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
114
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
115
127
|
type ForecastqueryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
116
128
|
/**
|
|
117
|
-
*
|
|
129
|
+
* @public
|
|
130
|
+
*
|
|
131
|
+
* The configuration interface of ForecastqueryClient class constructor that set the region, credentials and other options.
|
|
118
132
|
*/
|
|
119
133
|
export interface ForecastqueryClientConfig extends ForecastqueryClientConfigType {
|
|
120
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
121
138
|
type ForecastqueryClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
122
139
|
/**
|
|
123
|
-
*
|
|
140
|
+
* @public
|
|
141
|
+
*
|
|
142
|
+
* The resolved configuration interface of ForecastqueryClient class. This is resolved and normalized from the {@link ForecastqueryClientConfig | constructor configuration interface}.
|
|
124
143
|
*/
|
|
125
144
|
export interface ForecastqueryClientResolvedConfig extends ForecastqueryClientResolvedConfigType {
|
|
126
145
|
}
|
|
127
146
|
/**
|
|
147
|
+
* @public
|
|
128
148
|
* <p>Provides APIs for creating and managing Amazon Forecast resources.</p>
|
|
129
149
|
*/
|
|
130
150
|
export declare class ForecastqueryClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ForecastqueryClientResolvedConfig> {
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { ForecastqueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ForecastqueryClient";
|
|
5
5
|
import { QueryForecastRequest, QueryForecastResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link QueryForecastCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface QueryForecastCommandInput extends QueryForecastRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link QueryForecastCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface QueryForecastCommandOutput extends QueryForecastResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Retrieves a forecast for a single item, filtered by the supplied criteria.</p>
|
|
18
23
|
* <p>The criteria is a key-value pair. The key is either <code>item_id</code> (or the
|
|
19
24
|
* equivalent non-timestamp, non-target field) from the <code>TARGET_TIME_SERIES</code> dataset,
|
|
@@ -36,6 +41,8 @@ export interface QueryForecastCommandOutput extends QueryForecastResponse, __Met
|
|
|
36
41
|
* const response = await client.send(command);
|
|
37
42
|
* ```
|
|
38
43
|
*
|
|
44
|
+
* @param QueryForecastCommandInput - {@link QueryForecastCommandInput}
|
|
45
|
+
* @returns {@link QueryForecastCommandOutput}
|
|
39
46
|
* @see {@link QueryForecastCommandInput} for command's `input` shape.
|
|
40
47
|
* @see {@link QueryForecastCommandOutput} for command's `response` shape.
|
|
41
48
|
* @see {@link ForecastqueryClientResolvedConfig | config} for ForecastqueryClient's `config` shape.
|
|
@@ -61,11 +68,20 @@ export interface QueryForecastCommandOutput extends QueryForecastResponse, __Met
|
|
|
61
68
|
export declare class QueryForecastCommand extends $Command<QueryForecastCommandInput, QueryForecastCommandOutput, ForecastqueryClientResolvedConfig> {
|
|
62
69
|
readonly input: QueryForecastCommandInput;
|
|
63
70
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
71
|
+
/**
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
64
74
|
constructor(input: QueryForecastCommandInput);
|
|
65
75
|
/**
|
|
66
76
|
* @internal
|
|
67
77
|
*/
|
|
68
78
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ForecastqueryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<QueryForecastCommandInput, QueryForecastCommandOutput>;
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
69
82
|
private serialize;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
70
86
|
private deserialize;
|
|
71
87
|
}
|
|
@@ -4,16 +4,21 @@ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as
|
|
|
4
4
|
import { ForecastqueryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ForecastqueryClient";
|
|
5
5
|
import { QueryWhatIfForecastRequest, QueryWhatIfForecastResponse } from "../models/models_0";
|
|
6
6
|
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
7
9
|
* The input for {@link QueryWhatIfForecastCommand}.
|
|
8
10
|
*/
|
|
9
11
|
export interface QueryWhatIfForecastCommandInput extends QueryWhatIfForecastRequest {
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
12
16
|
* The output of {@link QueryWhatIfForecastCommand}.
|
|
13
17
|
*/
|
|
14
18
|
export interface QueryWhatIfForecastCommandOutput extends QueryWhatIfForecastResponse, __MetadataBearer {
|
|
15
19
|
}
|
|
16
20
|
/**
|
|
21
|
+
* @public
|
|
17
22
|
* <p>Retrieves a what-if forecast.</p>
|
|
18
23
|
* @example
|
|
19
24
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -25,6 +30,8 @@ export interface QueryWhatIfForecastCommandOutput extends QueryWhatIfForecastRes
|
|
|
25
30
|
* const response = await client.send(command);
|
|
26
31
|
* ```
|
|
27
32
|
*
|
|
33
|
+
* @param QueryWhatIfForecastCommandInput - {@link QueryWhatIfForecastCommandInput}
|
|
34
|
+
* @returns {@link QueryWhatIfForecastCommandOutput}
|
|
28
35
|
* @see {@link QueryWhatIfForecastCommandInput} for command's `input` shape.
|
|
29
36
|
* @see {@link QueryWhatIfForecastCommandOutput} for command's `response` shape.
|
|
30
37
|
* @see {@link ForecastqueryClientResolvedConfig | config} for ForecastqueryClient's `config` shape.
|
|
@@ -50,11 +57,20 @@ export interface QueryWhatIfForecastCommandOutput extends QueryWhatIfForecastRes
|
|
|
50
57
|
export declare class QueryWhatIfForecastCommand extends $Command<QueryWhatIfForecastCommandInput, QueryWhatIfForecastCommandOutput, ForecastqueryClientResolvedConfig> {
|
|
51
58
|
readonly input: QueryWhatIfForecastCommandInput;
|
|
52
59
|
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
60
|
+
/**
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
53
63
|
constructor(input: QueryWhatIfForecastCommandInput);
|
|
54
64
|
/**
|
|
55
65
|
* @internal
|
|
56
66
|
*/
|
|
57
67
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ForecastqueryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<QueryWhatIfForecastCommandInput, QueryWhatIfForecastCommandOutput>;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
58
71
|
private serialize;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
59
75
|
private deserialize;
|
|
60
76
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
2
|
/**
|
|
3
|
+
* @public
|
|
4
|
+
*
|
|
3
5
|
* Base exception class for all service exceptions from Forecastquery service.
|
|
4
6
|
*/
|
|
5
7
|
export declare class ForecastqueryServiceException extends __ServiceException {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
|
|
3
3
|
/**
|
|
4
|
+
* @public
|
|
4
5
|
* <p>The value is invalid or is too long.</p>
|
|
5
6
|
*/
|
|
6
7
|
export declare class InvalidInputException extends __BaseException {
|
|
@@ -13,6 +14,7 @@ export declare class InvalidInputException extends __BaseException {
|
|
|
13
14
|
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
17
|
+
* @public
|
|
16
18
|
* <p>The token is not valid. Tokens expire after 24 hours.</p>
|
|
17
19
|
*/
|
|
18
20
|
export declare class InvalidNextTokenException extends __BaseException {
|
|
@@ -25,6 +27,7 @@ export declare class InvalidNextTokenException extends __BaseException {
|
|
|
25
27
|
constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
30
|
+
* @public
|
|
28
31
|
* <p>The limit on the number of requests per second has been exceeded.</p>
|
|
29
32
|
*/
|
|
30
33
|
export declare class LimitExceededException extends __BaseException {
|
|
@@ -36,6 +39,9 @@ export declare class LimitExceededException extends __BaseException {
|
|
|
36
39
|
*/
|
|
37
40
|
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
38
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
39
45
|
export interface QueryForecastRequest {
|
|
40
46
|
/**
|
|
41
47
|
* <p>The Amazon Resource Name (ARN) of the forecast to query.</p>
|
|
@@ -56,7 +62,7 @@ export interface QueryForecastRequest {
|
|
|
56
62
|
* forecast for <code>client_21</code> in the electricity usage dataset, specify the
|
|
57
63
|
* following:</p>
|
|
58
64
|
* <p>
|
|
59
|
-
* <code
|
|
65
|
+
* <code>\{"item_id" : "client_21"\}</code>
|
|
60
66
|
* </p>
|
|
61
67
|
*
|
|
62
68
|
*
|
|
@@ -71,6 +77,7 @@ export interface QueryForecastRequest {
|
|
|
71
77
|
NextToken?: string;
|
|
72
78
|
}
|
|
73
79
|
/**
|
|
80
|
+
* @public
|
|
74
81
|
* <p>The forecast value for a specific date. Part of the <a>Forecast</a>
|
|
75
82
|
* object.</p>
|
|
76
83
|
*/
|
|
@@ -85,6 +92,7 @@ export interface DataPoint {
|
|
|
85
92
|
Value?: number;
|
|
86
93
|
}
|
|
87
94
|
/**
|
|
95
|
+
* @public
|
|
88
96
|
* <p>Provides information about a forecast. Returned as part of the <a>QueryForecast</a> response.</p>
|
|
89
97
|
*/
|
|
90
98
|
export interface Forecast {
|
|
@@ -108,6 +116,9 @@ export interface Forecast {
|
|
|
108
116
|
*/
|
|
109
117
|
Predictions?: Record<string, DataPoint[]>;
|
|
110
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
111
122
|
export interface QueryForecastResponse {
|
|
112
123
|
/**
|
|
113
124
|
* <p>The forecast.</p>
|
|
@@ -115,6 +126,7 @@ export interface QueryForecastResponse {
|
|
|
115
126
|
Forecast?: Forecast;
|
|
116
127
|
}
|
|
117
128
|
/**
|
|
129
|
+
* @public
|
|
118
130
|
* <p>The specified resource is in use.</p>
|
|
119
131
|
*/
|
|
120
132
|
export declare class ResourceInUseException extends __BaseException {
|
|
@@ -127,6 +139,7 @@ export declare class ResourceInUseException extends __BaseException {
|
|
|
127
139
|
constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
|
|
128
140
|
}
|
|
129
141
|
/**
|
|
142
|
+
* @public
|
|
130
143
|
* <p>We can't find that resource. Check the information that you've provided and try
|
|
131
144
|
* again.</p>
|
|
132
145
|
*/
|
|
@@ -139,6 +152,9 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
139
152
|
*/
|
|
140
153
|
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
141
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
142
158
|
export interface QueryWhatIfForecastRequest {
|
|
143
159
|
/**
|
|
144
160
|
* <p>The Amazon Resource Name (ARN) of the what-if forecast to query.</p>
|
|
@@ -159,7 +175,7 @@ export interface QueryWhatIfForecastRequest {
|
|
|
159
175
|
* forecast for <code>client_21</code> in the electricity usage dataset, specify the
|
|
160
176
|
* following:</p>
|
|
161
177
|
* <p>
|
|
162
|
-
* <code
|
|
178
|
+
* <code>\{"item_id" : "client_21"\}</code>
|
|
163
179
|
* </p>
|
|
164
180
|
* <p>To get the full what-if forecast, use the <a href="https://docs.aws.amazon.com/en_us/forecast/latest/dg/API_CreateWhatIfForecastExport.html">CreateForecastExportJob</a> operation.</p>
|
|
165
181
|
*/
|
|
@@ -171,33 +187,12 @@ export interface QueryWhatIfForecastRequest {
|
|
|
171
187
|
*/
|
|
172
188
|
NextToken?: string;
|
|
173
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
174
193
|
export interface QueryWhatIfForecastResponse {
|
|
175
194
|
/**
|
|
176
195
|
* <p>Provides information about a forecast. Returned as part of the <a>QueryForecast</a> response.</p>
|
|
177
196
|
*/
|
|
178
197
|
Forecast?: Forecast;
|
|
179
198
|
}
|
|
180
|
-
/**
|
|
181
|
-
* @internal
|
|
182
|
-
*/
|
|
183
|
-
export declare const QueryForecastRequestFilterSensitiveLog: (obj: QueryForecastRequest) => any;
|
|
184
|
-
/**
|
|
185
|
-
* @internal
|
|
186
|
-
*/
|
|
187
|
-
export declare const DataPointFilterSensitiveLog: (obj: DataPoint) => any;
|
|
188
|
-
/**
|
|
189
|
-
* @internal
|
|
190
|
-
*/
|
|
191
|
-
export declare const ForecastFilterSensitiveLog: (obj: Forecast) => any;
|
|
192
|
-
/**
|
|
193
|
-
* @internal
|
|
194
|
-
*/
|
|
195
|
-
export declare const QueryForecastResponseFilterSensitiveLog: (obj: QueryForecastResponse) => any;
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
*/
|
|
199
|
-
export declare const QueryWhatIfForecastRequestFilterSensitiveLog: (obj: QueryWhatIfForecastRequest) => any;
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
export declare const QueryWhatIfForecastResponseFilterSensitiveLog: (obj: QueryWhatIfForecastResponse) => any;
|
|
@@ -67,17 +67,3 @@ export interface QueryWhatIfForecastRequest {
|
|
|
67
67
|
export interface QueryWhatIfForecastResponse {
|
|
68
68
|
Forecast?: Forecast;
|
|
69
69
|
}
|
|
70
|
-
export declare const QueryForecastRequestFilterSensitiveLog: (
|
|
71
|
-
obj: QueryForecastRequest
|
|
72
|
-
) => any;
|
|
73
|
-
export declare const DataPointFilterSensitiveLog: (obj: DataPoint) => any;
|
|
74
|
-
export declare const ForecastFilterSensitiveLog: (obj: Forecast) => any;
|
|
75
|
-
export declare const QueryForecastResponseFilterSensitiveLog: (
|
|
76
|
-
obj: QueryForecastResponse
|
|
77
|
-
) => any;
|
|
78
|
-
export declare const QueryWhatIfForecastRequestFilterSensitiveLog: (
|
|
79
|
-
obj: QueryWhatIfForecastRequest
|
|
80
|
-
) => any;
|
|
81
|
-
export declare const QueryWhatIfForecastResponseFilterSensitiveLog: (
|
|
82
|
-
obj: QueryWhatIfForecastResponse
|
|
83
|
-
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-forecastquery",
|
|
3
3
|
"description": "AWS SDK for JavaScript Forecastquery Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.298.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
+
"extract:docs": "api-extractor run --local",
|
|
14
15
|
"generate:client": "node ../../scripts/generate-clients/single-service --solo forecastquery"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -20,9 +21,9 @@
|
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.298.0",
|
|
24
25
|
"@aws-sdk/config-resolver": "3.296.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.298.0",
|
|
26
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
27
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
28
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|