@aws-sdk/client-forecastquery 3.52.0 → 3.54.1
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/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/ForecastqueryServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +72 -1
- package/dist-cjs/protocols/Aws_json1_1.js +28 -66
- package/dist-es/index.js +1 -0
- package/dist-es/models/ForecastqueryServiceException.js +12 -0
- package/dist-es/models/models_0.js +67 -1
- package/dist-es/protocols/Aws_json1_1.js +42 -61
- package/dist-types/ForecastqueryClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/ForecastqueryServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +37 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/ForecastqueryClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/ForecastqueryServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +27 -16
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-forecastquery
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-forecastquery
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-forecastquery
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ForecastqueryServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Forecastquery"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ForecastqueryClient"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./models"), exports);
|
|
9
|
+
var ForecastqueryServiceException_1 = require("./models/ForecastqueryServiceException");
|
|
10
|
+
Object.defineProperty(exports, "ForecastqueryServiceException", { enumerable: true, get: function () { return ForecastqueryServiceException_1.ForecastqueryServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ForecastqueryServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class ForecastqueryServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, ForecastqueryServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ForecastqueryServiceException = ForecastqueryServiceException;
|
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QueryForecastResponse = exports.Forecast = exports.DataPoint = exports.QueryForecastRequest = void 0;
|
|
3
|
+
exports.ResourceNotFoundException = exports.ResourceInUseException = exports.QueryForecastResponse = exports.Forecast = exports.DataPoint = exports.QueryForecastRequest = exports.LimitExceededException = exports.InvalidNextTokenException = exports.InvalidInputException = void 0;
|
|
4
|
+
const ForecastqueryServiceException_1 = require("./ForecastqueryServiceException");
|
|
5
|
+
class InvalidInputException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "InvalidInputException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts,
|
|
11
|
+
});
|
|
12
|
+
this.name = "InvalidInputException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, InvalidInputException.prototype);
|
|
15
|
+
this.Message = opts.Message;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.InvalidInputException = InvalidInputException;
|
|
19
|
+
class InvalidNextTokenException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
|
|
20
|
+
constructor(opts) {
|
|
21
|
+
super({
|
|
22
|
+
name: "InvalidNextTokenException",
|
|
23
|
+
$fault: "client",
|
|
24
|
+
...opts,
|
|
25
|
+
});
|
|
26
|
+
this.name = "InvalidNextTokenException";
|
|
27
|
+
this.$fault = "client";
|
|
28
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
29
|
+
this.Message = opts.Message;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
33
|
+
class LimitExceededException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "LimitExceededException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
this.name = "LimitExceededException";
|
|
41
|
+
this.$fault = "client";
|
|
42
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
43
|
+
this.Message = opts.Message;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.LimitExceededException = LimitExceededException;
|
|
4
47
|
var QueryForecastRequest;
|
|
5
48
|
(function (QueryForecastRequest) {
|
|
6
49
|
QueryForecastRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -25,3 +68,31 @@ var QueryForecastResponse;
|
|
|
25
68
|
...obj,
|
|
26
69
|
});
|
|
27
70
|
})(QueryForecastResponse = exports.QueryForecastResponse || (exports.QueryForecastResponse = {}));
|
|
71
|
+
class ResourceInUseException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
|
|
72
|
+
constructor(opts) {
|
|
73
|
+
super({
|
|
74
|
+
name: "ResourceInUseException",
|
|
75
|
+
$fault: "client",
|
|
76
|
+
...opts,
|
|
77
|
+
});
|
|
78
|
+
this.name = "ResourceInUseException";
|
|
79
|
+
this.$fault = "client";
|
|
80
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
81
|
+
this.Message = opts.Message;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
85
|
+
class ResourceNotFoundException extends ForecastqueryServiceException_1.ForecastqueryServiceException {
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "ResourceNotFoundException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
this.name = "ResourceNotFoundException";
|
|
93
|
+
this.$fault = "client";
|
|
94
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
95
|
+
this.Message = opts.Message;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1QueryForecastCommand = exports.serializeAws_json1_1QueryForecastCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const ForecastqueryServiceException_1 = require("../models/ForecastqueryServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1QueryForecastCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -38,114 +40,73 @@ const deserializeAws_json1_1QueryForecastCommandError = async (output, context)
|
|
|
38
40
|
switch (errorCode) {
|
|
39
41
|
case "InvalidInputException":
|
|
40
42
|
case "com.amazonaws.forecastquery#InvalidInputException":
|
|
41
|
-
|
|
42
|
-
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
43
|
-
name: errorCode,
|
|
44
|
-
$metadata: deserializeMetadata(output),
|
|
45
|
-
};
|
|
46
|
-
break;
|
|
43
|
+
throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
|
|
47
44
|
case "InvalidNextTokenException":
|
|
48
45
|
case "com.amazonaws.forecastquery#InvalidNextTokenException":
|
|
49
|
-
|
|
50
|
-
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
51
|
-
name: errorCode,
|
|
52
|
-
$metadata: deserializeMetadata(output),
|
|
53
|
-
};
|
|
54
|
-
break;
|
|
46
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
55
47
|
case "LimitExceededException":
|
|
56
48
|
case "com.amazonaws.forecastquery#LimitExceededException":
|
|
57
|
-
|
|
58
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
59
|
-
name: errorCode,
|
|
60
|
-
$metadata: deserializeMetadata(output),
|
|
61
|
-
};
|
|
62
|
-
break;
|
|
49
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
63
50
|
case "ResourceInUseException":
|
|
64
51
|
case "com.amazonaws.forecastquery#ResourceInUseException":
|
|
65
|
-
|
|
66
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
67
|
-
name: errorCode,
|
|
68
|
-
$metadata: deserializeMetadata(output),
|
|
69
|
-
};
|
|
70
|
-
break;
|
|
52
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
71
53
|
case "ResourceNotFoundException":
|
|
72
54
|
case "com.amazonaws.forecastquery#ResourceNotFoundException":
|
|
73
|
-
|
|
74
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
75
|
-
name: errorCode,
|
|
76
|
-
$metadata: deserializeMetadata(output),
|
|
77
|
-
};
|
|
78
|
-
break;
|
|
55
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
79
56
|
default:
|
|
80
57
|
const parsedBody = parsedOutput.body;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
...parsedBody,
|
|
84
|
-
name: `${errorCode}`,
|
|
85
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
58
|
+
response = new ForecastqueryServiceException_1.ForecastqueryServiceException({
|
|
59
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
86
60
|
$fault: "client",
|
|
87
61
|
$metadata: deserializeMetadata(output),
|
|
88
|
-
};
|
|
62
|
+
});
|
|
63
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
89
64
|
}
|
|
90
|
-
const message = response.message || response.Message || errorCode;
|
|
91
|
-
response.message = message;
|
|
92
|
-
delete response.Message;
|
|
93
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
94
65
|
};
|
|
95
66
|
const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
|
|
96
67
|
const body = parsedOutput.body;
|
|
97
68
|
const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
98
|
-
const
|
|
99
|
-
name: "InvalidInputException",
|
|
100
|
-
$fault: "client",
|
|
69
|
+
const exception = new models_0_1.InvalidInputException({
|
|
101
70
|
$metadata: deserializeMetadata(parsedOutput),
|
|
102
71
|
...deserialized,
|
|
103
|
-
};
|
|
104
|
-
return
|
|
72
|
+
});
|
|
73
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
105
74
|
};
|
|
106
75
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
107
76
|
const body = parsedOutput.body;
|
|
108
77
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
109
|
-
const
|
|
110
|
-
name: "InvalidNextTokenException",
|
|
111
|
-
$fault: "client",
|
|
78
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
112
79
|
$metadata: deserializeMetadata(parsedOutput),
|
|
113
80
|
...deserialized,
|
|
114
|
-
};
|
|
115
|
-
return
|
|
81
|
+
});
|
|
82
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
116
83
|
};
|
|
117
84
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
118
85
|
const body = parsedOutput.body;
|
|
119
86
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
120
|
-
const
|
|
121
|
-
name: "LimitExceededException",
|
|
122
|
-
$fault: "client",
|
|
87
|
+
const exception = new models_0_1.LimitExceededException({
|
|
123
88
|
$metadata: deserializeMetadata(parsedOutput),
|
|
124
89
|
...deserialized,
|
|
125
|
-
};
|
|
126
|
-
return
|
|
90
|
+
});
|
|
91
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
127
92
|
};
|
|
128
93
|
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
129
94
|
const body = parsedOutput.body;
|
|
130
95
|
const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
131
|
-
const
|
|
132
|
-
name: "ResourceInUseException",
|
|
133
|
-
$fault: "client",
|
|
96
|
+
const exception = new models_0_1.ResourceInUseException({
|
|
134
97
|
$metadata: deserializeMetadata(parsedOutput),
|
|
135
98
|
...deserialized,
|
|
136
|
-
};
|
|
137
|
-
return
|
|
99
|
+
});
|
|
100
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
138
101
|
};
|
|
139
102
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
140
103
|
const body = parsedOutput.body;
|
|
141
104
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
142
|
-
const
|
|
143
|
-
name: "ResourceNotFoundException",
|
|
144
|
-
$fault: "client",
|
|
105
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
145
106
|
$metadata: deserializeMetadata(parsedOutput),
|
|
146
107
|
...deserialized,
|
|
147
|
-
};
|
|
148
|
-
return
|
|
108
|
+
});
|
|
109
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
149
110
|
};
|
|
150
111
|
const serializeAws_json1_1Filters = (input, context) => {
|
|
151
112
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -225,7 +186,7 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
225
186
|
};
|
|
226
187
|
};
|
|
227
188
|
const deserializeAws_json1_1TimeSeries = (output, context) => {
|
|
228
|
-
|
|
189
|
+
const retVal = (output || [])
|
|
229
190
|
.filter((e) => e != null)
|
|
230
191
|
.map((entry) => {
|
|
231
192
|
if (entry === null) {
|
|
@@ -233,6 +194,7 @@ const deserializeAws_json1_1TimeSeries = (output, context) => {
|
|
|
233
194
|
}
|
|
234
195
|
return deserializeAws_json1_1DataPoint(entry, context);
|
|
235
196
|
});
|
|
197
|
+
return retVal;
|
|
236
198
|
};
|
|
237
199
|
const deserializeMetadata = (output) => {
|
|
238
200
|
var _a;
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var ForecastqueryServiceException = (function (_super) {
|
|
4
|
+
__extends(ForecastqueryServiceException, _super);
|
|
5
|
+
function ForecastqueryServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, ForecastqueryServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return ForecastqueryServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { ForecastqueryServiceException };
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
|
|
3
|
+
var InvalidInputException = (function (_super) {
|
|
4
|
+
__extends(InvalidInputException, _super);
|
|
5
|
+
function InvalidInputException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "InvalidInputException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "InvalidInputException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, InvalidInputException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
return InvalidInputException;
|
|
14
|
+
}(__BaseException));
|
|
15
|
+
export { InvalidInputException };
|
|
16
|
+
var InvalidNextTokenException = (function (_super) {
|
|
17
|
+
__extends(InvalidNextTokenException, _super);
|
|
18
|
+
function InvalidNextTokenException(opts) {
|
|
19
|
+
var _this = _super.call(this, __assign({ name: "InvalidNextTokenException", $fault: "client" }, opts)) || this;
|
|
20
|
+
_this.name = "InvalidNextTokenException";
|
|
21
|
+
_this.$fault = "client";
|
|
22
|
+
Object.setPrototypeOf(_this, InvalidNextTokenException.prototype);
|
|
23
|
+
_this.Message = opts.Message;
|
|
24
|
+
return _this;
|
|
25
|
+
}
|
|
26
|
+
return InvalidNextTokenException;
|
|
27
|
+
}(__BaseException));
|
|
28
|
+
export { InvalidNextTokenException };
|
|
29
|
+
var LimitExceededException = (function (_super) {
|
|
30
|
+
__extends(LimitExceededException, _super);
|
|
31
|
+
function LimitExceededException(opts) {
|
|
32
|
+
var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
|
|
33
|
+
_this.name = "LimitExceededException";
|
|
34
|
+
_this.$fault = "client";
|
|
35
|
+
Object.setPrototypeOf(_this, LimitExceededException.prototype);
|
|
36
|
+
_this.Message = opts.Message;
|
|
37
|
+
return _this;
|
|
38
|
+
}
|
|
39
|
+
return LimitExceededException;
|
|
40
|
+
}(__BaseException));
|
|
41
|
+
export { LimitExceededException };
|
|
2
42
|
export var QueryForecastRequest;
|
|
3
43
|
(function (QueryForecastRequest) {
|
|
4
44
|
QueryForecastRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -15,3 +55,29 @@ export var QueryForecastResponse;
|
|
|
15
55
|
(function (QueryForecastResponse) {
|
|
16
56
|
QueryForecastResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
57
|
})(QueryForecastResponse || (QueryForecastResponse = {}));
|
|
58
|
+
var ResourceInUseException = (function (_super) {
|
|
59
|
+
__extends(ResourceInUseException, _super);
|
|
60
|
+
function ResourceInUseException(opts) {
|
|
61
|
+
var _this = _super.call(this, __assign({ name: "ResourceInUseException", $fault: "client" }, opts)) || this;
|
|
62
|
+
_this.name = "ResourceInUseException";
|
|
63
|
+
_this.$fault = "client";
|
|
64
|
+
Object.setPrototypeOf(_this, ResourceInUseException.prototype);
|
|
65
|
+
_this.Message = opts.Message;
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
return ResourceInUseException;
|
|
69
|
+
}(__BaseException));
|
|
70
|
+
export { ResourceInUseException };
|
|
71
|
+
var ResourceNotFoundException = (function (_super) {
|
|
72
|
+
__extends(ResourceNotFoundException, _super);
|
|
73
|
+
function ResourceNotFoundException(opts) {
|
|
74
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
75
|
+
_this.name = "ResourceNotFoundException";
|
|
76
|
+
_this.$fault = "client";
|
|
77
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
78
|
+
_this.Message = opts.Message;
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
return ResourceNotFoundException;
|
|
82
|
+
}(__BaseException));
|
|
83
|
+
export { ResourceNotFoundException };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectString as __expectString, limitedParseDouble as __limitedParseDouble } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, limitedParseDouble as __limitedParseDouble, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ForecastqueryServiceException as __BaseException } from "../models/ForecastqueryServiceException";
|
|
5
|
+
import { InvalidInputException, InvalidNextTokenException, LimitExceededException, ResourceInUseException, ResourceNotFoundException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1QueryForecastCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -31,16 +33,16 @@ export var deserializeAws_json1_1QueryForecastCommand = function (output, contex
|
|
|
31
33
|
});
|
|
32
34
|
}); };
|
|
33
35
|
var deserializeAws_json1_1QueryForecastCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
34
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
35
|
-
var
|
|
36
|
-
return __generator(this, function (
|
|
37
|
-
switch (
|
|
36
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
37
|
+
var _c;
|
|
38
|
+
return __generator(this, function (_d) {
|
|
39
|
+
switch (_d.label) {
|
|
38
40
|
case 0:
|
|
39
41
|
_a = [__assign({}, output)];
|
|
40
|
-
|
|
42
|
+
_c = {};
|
|
41
43
|
return [4, parseBody(output.body, context)];
|
|
42
44
|
case 1:
|
|
43
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
45
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
44
46
|
errorCode = "UnknownError";
|
|
45
47
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
46
48
|
_b = errorCode;
|
|
@@ -57,92 +59,70 @@ var deserializeAws_json1_1QueryForecastCommandError = function (output, context)
|
|
|
57
59
|
case "com.amazonaws.forecastquery#ResourceNotFoundException": return [3, 10];
|
|
58
60
|
}
|
|
59
61
|
return [3, 12];
|
|
60
|
-
case 2:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
case
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
case 4
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
case
|
|
70
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
71
|
-
return [3, 13];
|
|
72
|
-
case 6:
|
|
73
|
-
_e = [{}];
|
|
74
|
-
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
75
|
-
case 7:
|
|
76
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
77
|
-
return [3, 13];
|
|
78
|
-
case 8:
|
|
79
|
-
_f = [{}];
|
|
80
|
-
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
81
|
-
case 9:
|
|
82
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
83
|
-
return [3, 13];
|
|
84
|
-
case 10:
|
|
85
|
-
_g = [{}];
|
|
86
|
-
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
87
|
-
case 11:
|
|
88
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
89
|
-
return [3, 13];
|
|
62
|
+
case 2: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
63
|
+
case 3: throw _d.sent();
|
|
64
|
+
case 4: return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
65
|
+
case 5: throw _d.sent();
|
|
66
|
+
case 6: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
67
|
+
case 7: throw _d.sent();
|
|
68
|
+
case 8: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
69
|
+
case 9: throw _d.sent();
|
|
70
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
71
|
+
case 11: throw _d.sent();
|
|
90
72
|
case 12:
|
|
91
73
|
parsedBody = parsedOutput.body;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
response
|
|
98
|
-
delete response.Message;
|
|
99
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
74
|
+
response = new __BaseException({
|
|
75
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
76
|
+
$fault: "client",
|
|
77
|
+
$metadata: deserializeMetadata(output),
|
|
78
|
+
});
|
|
79
|
+
throw __decorateServiceException(response, parsedBody);
|
|
100
80
|
}
|
|
101
81
|
});
|
|
102
82
|
}); };
|
|
103
83
|
var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
104
|
-
var body, deserialized,
|
|
84
|
+
var body, deserialized, exception;
|
|
105
85
|
return __generator(this, function (_a) {
|
|
106
86
|
body = parsedOutput.body;
|
|
107
87
|
deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
108
|
-
|
|
109
|
-
return [2,
|
|
88
|
+
exception = new InvalidInputException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
89
|
+
return [2, __decorateServiceException(exception, body)];
|
|
110
90
|
});
|
|
111
91
|
}); };
|
|
112
92
|
var deserializeAws_json1_1InvalidNextTokenExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
|
-
var body, deserialized,
|
|
93
|
+
var body, deserialized, exception;
|
|
114
94
|
return __generator(this, function (_a) {
|
|
115
95
|
body = parsedOutput.body;
|
|
116
96
|
deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
117
|
-
|
|
118
|
-
return [2,
|
|
97
|
+
exception = new InvalidNextTokenException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
98
|
+
return [2, __decorateServiceException(exception, body)];
|
|
119
99
|
});
|
|
120
100
|
}); };
|
|
121
101
|
var deserializeAws_json1_1LimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
122
|
-
var body, deserialized,
|
|
102
|
+
var body, deserialized, exception;
|
|
123
103
|
return __generator(this, function (_a) {
|
|
124
104
|
body = parsedOutput.body;
|
|
125
105
|
deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
126
|
-
|
|
127
|
-
return [2,
|
|
106
|
+
exception = new LimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
107
|
+
return [2, __decorateServiceException(exception, body)];
|
|
128
108
|
});
|
|
129
109
|
}); };
|
|
130
110
|
var deserializeAws_json1_1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
131
|
-
var body, deserialized,
|
|
111
|
+
var body, deserialized, exception;
|
|
132
112
|
return __generator(this, function (_a) {
|
|
133
113
|
body = parsedOutput.body;
|
|
134
114
|
deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
135
|
-
|
|
136
|
-
return [2,
|
|
115
|
+
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
116
|
+
return [2, __decorateServiceException(exception, body)];
|
|
137
117
|
});
|
|
138
118
|
}); };
|
|
139
119
|
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
140
|
-
var body, deserialized,
|
|
120
|
+
var body, deserialized, exception;
|
|
141
121
|
return __generator(this, function (_a) {
|
|
142
122
|
body = parsedOutput.body;
|
|
143
123
|
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
144
|
-
|
|
145
|
-
return [2,
|
|
124
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
125
|
+
return [2, __decorateServiceException(exception, body)];
|
|
146
126
|
});
|
|
147
127
|
}); };
|
|
148
128
|
var serializeAws_json1_1Filters = function (input, context) {
|
|
@@ -215,7 +195,7 @@ var deserializeAws_json1_1ResourceNotFoundException = function (output, context)
|
|
|
215
195
|
};
|
|
216
196
|
};
|
|
217
197
|
var deserializeAws_json1_1TimeSeries = function (output, context) {
|
|
218
|
-
|
|
198
|
+
var retVal = (output || [])
|
|
219
199
|
.filter(function (e) { return e != null; })
|
|
220
200
|
.map(function (entry) {
|
|
221
201
|
if (entry === null) {
|
|
@@ -223,6 +203,7 @@ var deserializeAws_json1_1TimeSeries = function (output, context) {
|
|
|
223
203
|
}
|
|
224
204
|
return deserializeAws_json1_1DataPoint(entry, context);
|
|
225
205
|
});
|
|
206
|
+
return retVal;
|
|
226
207
|
};
|
|
227
208
|
var deserializeMetadata = function (output) {
|
|
228
209
|
var _a;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { QueryForecastCommandInput, QueryForecastCommandOutput } from "./commands/QueryForecastCommand";
|
|
10
10
|
export declare type ServiceInputTypes = QueryForecastCommandInput;
|
|
11
11
|
export declare type ServiceOutputTypes = QueryForecastCommandOutput;
|
|
@@ -29,7 +29,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
29
29
|
* A function that can calculate the length of a request body.
|
|
30
30
|
* @internal
|
|
31
31
|
*/
|
|
32
|
-
bodyLengthChecker?:
|
|
32
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
33
33
|
/**
|
|
34
34
|
* A function that converts a stream into an array of bytes.
|
|
35
35
|
* @internal
|
package/dist-types/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from Forecastquery service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ForecastqueryServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -1,27 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
|
|
2
3
|
/**
|
|
3
4
|
* <p>The value is invalid or is too long.</p>
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
-
name: "InvalidInputException";
|
|
7
|
-
$fault: "client";
|
|
6
|
+
export declare class InvalidInputException extends __BaseException {
|
|
7
|
+
readonly name: "InvalidInputException";
|
|
8
|
+
readonly $fault: "client";
|
|
8
9
|
Message?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
16
|
* <p>The token is not valid. Tokens expire after 24 hours.</p>
|
|
12
17
|
*/
|
|
13
|
-
export
|
|
14
|
-
name: "InvalidNextTokenException";
|
|
15
|
-
$fault: "client";
|
|
18
|
+
export declare class InvalidNextTokenException extends __BaseException {
|
|
19
|
+
readonly name: "InvalidNextTokenException";
|
|
20
|
+
readonly $fault: "client";
|
|
16
21
|
Message?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
28
|
* <p>The limit on the number of requests per second has been exceeded.</p>
|
|
20
29
|
*/
|
|
21
|
-
export
|
|
22
|
-
name: "LimitExceededException";
|
|
23
|
-
$fault: "client";
|
|
30
|
+
export declare class LimitExceededException extends __BaseException {
|
|
31
|
+
readonly name: "LimitExceededException";
|
|
32
|
+
readonly $fault: "client";
|
|
24
33
|
Message?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
25
38
|
}
|
|
26
39
|
export interface QueryForecastRequest {
|
|
27
40
|
/**
|
|
@@ -130,17 +143,25 @@ export declare namespace QueryForecastResponse {
|
|
|
130
143
|
/**
|
|
131
144
|
* <p>The specified resource is in use.</p>
|
|
132
145
|
*/
|
|
133
|
-
export
|
|
134
|
-
name: "ResourceInUseException";
|
|
135
|
-
$fault: "client";
|
|
146
|
+
export declare class ResourceInUseException extends __BaseException {
|
|
147
|
+
readonly name: "ResourceInUseException";
|
|
148
|
+
readonly $fault: "client";
|
|
136
149
|
Message?: string;
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
*/
|
|
153
|
+
constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
|
|
137
154
|
}
|
|
138
155
|
/**
|
|
139
156
|
* <p>We can't find that resource. Check the information that you've provided and try
|
|
140
157
|
* again.</p>
|
|
141
158
|
*/
|
|
142
|
-
export
|
|
143
|
-
name: "ResourceNotFoundException";
|
|
144
|
-
$fault: "client";
|
|
159
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
160
|
+
readonly name: "ResourceNotFoundException";
|
|
161
|
+
readonly $fault: "client";
|
|
145
162
|
Message?: string;
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
166
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
146
167
|
}
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
|
|
|
8
8
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
9
9
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
10
10
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
13
13
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
14
14
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
|
|
|
8
8
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
9
9
|
apiVersion: string;
|
|
10
10
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
11
|
-
bodyLengthChecker: (
|
|
11
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
12
12
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
13
13
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
14
14
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { QueryForecastCommandInput, QueryForecastCommandOutput } from "./commands/QueryForecastCommand";
|
|
10
10
|
export declare type ServiceInputTypes = QueryForecastCommandInput;
|
|
11
11
|
export declare type ServiceOutputTypes = QueryForecastCommandOutput;
|
|
@@ -17,7 +17,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
17
17
|
|
|
18
18
|
urlParser?: __UrlParser;
|
|
19
19
|
|
|
20
|
-
bodyLengthChecker?:
|
|
20
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
21
21
|
|
|
22
22
|
streamCollector?: __StreamCollector;
|
|
23
23
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
|
|
3
|
+
export declare class ForecastqueryServiceException extends __ServiceException {
|
|
4
|
+
|
|
5
|
+
constructor(options: __ServiceExceptionOptions);
|
|
6
|
+
}
|
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { ForecastqueryServiceException as __BaseException } from "./ForecastqueryServiceException";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
name: "InvalidInputException";
|
|
5
|
-
$fault: "client";
|
|
4
|
+
export declare class InvalidInputException extends __BaseException {
|
|
5
|
+
readonly name: "InvalidInputException";
|
|
6
|
+
readonly $fault: "client";
|
|
6
7
|
Message?: string;
|
|
8
|
+
|
|
9
|
+
constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
|
|
7
10
|
}
|
|
8
11
|
|
|
9
|
-
export
|
|
10
|
-
name: "InvalidNextTokenException";
|
|
11
|
-
$fault: "client";
|
|
12
|
+
export declare class InvalidNextTokenException extends __BaseException {
|
|
13
|
+
readonly name: "InvalidNextTokenException";
|
|
14
|
+
readonly $fault: "client";
|
|
12
15
|
Message?: string;
|
|
16
|
+
|
|
17
|
+
constructor(opts: __ExceptionOptionType<InvalidNextTokenException, __BaseException>);
|
|
13
18
|
}
|
|
14
19
|
|
|
15
|
-
export
|
|
16
|
-
name: "LimitExceededException";
|
|
17
|
-
$fault: "client";
|
|
20
|
+
export declare class LimitExceededException extends __BaseException {
|
|
21
|
+
readonly name: "LimitExceededException";
|
|
22
|
+
readonly $fault: "client";
|
|
18
23
|
Message?: string;
|
|
24
|
+
|
|
25
|
+
constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
|
|
19
26
|
}
|
|
20
27
|
export interface QueryForecastRequest {
|
|
21
28
|
|
|
@@ -66,14 +73,18 @@ export declare namespace QueryForecastResponse {
|
|
|
66
73
|
const filterSensitiveLog: (obj: QueryForecastResponse) => any;
|
|
67
74
|
}
|
|
68
75
|
|
|
69
|
-
export
|
|
70
|
-
name: "ResourceInUseException";
|
|
71
|
-
$fault: "client";
|
|
76
|
+
export declare class ResourceInUseException extends __BaseException {
|
|
77
|
+
readonly name: "ResourceInUseException";
|
|
78
|
+
readonly $fault: "client";
|
|
72
79
|
Message?: string;
|
|
80
|
+
|
|
81
|
+
constructor(opts: __ExceptionOptionType<ResourceInUseException, __BaseException>);
|
|
73
82
|
}
|
|
74
83
|
|
|
75
|
-
export
|
|
76
|
-
name: "ResourceNotFoundException";
|
|
77
|
-
$fault: "client";
|
|
84
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
85
|
+
readonly name: "ResourceNotFoundException";
|
|
86
|
+
readonly $fault: "client";
|
|
78
87
|
Message?: string;
|
|
88
|
+
|
|
89
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
79
90
|
}
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
|
|
|
6
6
|
defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
|
|
7
7
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
8
8
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
11
11
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ForecastqueryClientConfig) => {
|
|
|
6
6
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
|
|
7
7
|
apiVersion: string;
|
|
8
8
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
9
|
-
bodyLengthChecker: (
|
|
9
|
+
bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
|
|
10
10
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
11
11
|
base64Decoder: import("@aws-sdk/types").Decoder;
|
|
12
12
|
base64Encoder: import("@aws-sdk/types").Encoder;
|
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.54.1",
|
|
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",
|
|
@@ -18,34 +18,34 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
-
"@aws-sdk/middleware-serde": "3.
|
|
32
|
-
"@aws-sdk/middleware-signing": "3.
|
|
33
|
-
"@aws-sdk/middleware-stack": "3.
|
|
34
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
35
|
-
"@aws-sdk/node-config-provider": "3.
|
|
36
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
-
"@aws-sdk/protocol-http": "3.
|
|
38
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
-
"@aws-sdk/types": "3.
|
|
40
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.54.1",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.54.1",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.54.1",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.54.1",
|
|
25
|
+
"@aws-sdk/hash-node": "3.54.1",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.54.1",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.54.1",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.54.1",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.54.1",
|
|
30
|
+
"@aws-sdk/middleware-retry": "3.54.1",
|
|
31
|
+
"@aws-sdk/middleware-serde": "3.54.1",
|
|
32
|
+
"@aws-sdk/middleware-signing": "3.54.1",
|
|
33
|
+
"@aws-sdk/middleware-stack": "3.54.1",
|
|
34
|
+
"@aws-sdk/middleware-user-agent": "3.54.1",
|
|
35
|
+
"@aws-sdk/node-config-provider": "3.54.1",
|
|
36
|
+
"@aws-sdk/node-http-handler": "3.54.1",
|
|
37
|
+
"@aws-sdk/protocol-http": "3.54.1",
|
|
38
|
+
"@aws-sdk/smithy-client": "3.54.1",
|
|
39
|
+
"@aws-sdk/types": "3.54.1",
|
|
40
|
+
"@aws-sdk/url-parser": "3.54.1",
|
|
41
41
|
"@aws-sdk/util-base64-browser": "3.52.0",
|
|
42
42
|
"@aws-sdk/util-base64-node": "3.52.0",
|
|
43
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
44
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
45
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
43
|
+
"@aws-sdk/util-body-length-browser": "3.54.0",
|
|
44
|
+
"@aws-sdk/util-body-length-node": "3.54.0",
|
|
45
|
+
"@aws-sdk/util-defaults-mode-browser": "3.54.1",
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.54.1",
|
|
47
|
+
"@aws-sdk/util-user-agent-browser": "3.54.1",
|
|
48
|
+
"@aws-sdk/util-user-agent-node": "3.54.1",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.52.0",
|
|
50
50
|
"@aws-sdk/util-utf8-node": "3.52.0",
|
|
51
51
|
"tslib": "^2.3.0"
|