@aws-sdk/client-forecast 3.987.0 → 3.989.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ForecastServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ForecastServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ForecastServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ForecastServiceException = ForecastServiceException;
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidNextTokenException = exports.ResourceNotFoundException = exports.ResourceInUseException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.InvalidInputException = void 0;
4
+ const ForecastServiceException_1 = require("./ForecastServiceException");
5
+ class InvalidInputException extends ForecastServiceException_1.ForecastServiceException {
6
+ name = "InvalidInputException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "InvalidInputException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.InvalidInputException = InvalidInputException;
20
+ class LimitExceededException extends ForecastServiceException_1.ForecastServiceException {
21
+ name = "LimitExceededException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "LimitExceededException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.LimitExceededException = LimitExceededException;
35
+ class ResourceAlreadyExistsException extends ForecastServiceException_1.ForecastServiceException {
36
+ name = "ResourceAlreadyExistsException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "ResourceAlreadyExistsException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
50
+ class ResourceInUseException extends ForecastServiceException_1.ForecastServiceException {
51
+ name = "ResourceInUseException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceInUseException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.ResourceInUseException = ResourceInUseException;
65
+ class ResourceNotFoundException extends ForecastServiceException_1.ForecastServiceException {
66
+ name = "ResourceNotFoundException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ResourceNotFoundException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.ResourceNotFoundException = ResourceNotFoundException;
80
+ class InvalidNextTokenException extends ForecastServiceException_1.ForecastServiceException {
81
+ name = "InvalidNextTokenException";
82
+ $fault = "client";
83
+ Message;
84
+ constructor(opts) {
85
+ super({
86
+ name: "InvalidNextTokenException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ exports.InvalidNextTokenException = InvalidNextTokenException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-06-26",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.forecast",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-06-26",
33
35
  serviceTarget: "AmazonForecast",
34
36
  },