@aws-sdk/client-cloudwatch 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.CloudWatchServiceException = 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 CloudWatchServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, CloudWatchServiceException.prototype);
10
+ }
11
+ }
12
+ exports.CloudWatchServiceException = CloudWatchServiceException;
@@ -0,0 +1,202 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidFormatFault = exports.LimitExceededFault = exports.LimitExceededException = exports.InvalidNextToken = exports.ResourceNotFoundException = exports.MissingRequiredParameterException = exports.InvalidParameterValueException = exports.InvalidParameterCombinationException = exports.InternalServiceFault = exports.ResourceNotFound = exports.DashboardNotFoundError = exports.DashboardInvalidInputError = exports.ConflictException = exports.ConcurrentModificationException = void 0;
4
+ const CloudWatchServiceException_1 = require("./CloudWatchServiceException");
5
+ class ConcurrentModificationException extends CloudWatchServiceException_1.CloudWatchServiceException {
6
+ name = "ConcurrentModificationException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "ConcurrentModificationException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.ConcurrentModificationException = ConcurrentModificationException;
20
+ class ConflictException extends CloudWatchServiceException_1.CloudWatchServiceException {
21
+ name = "ConflictException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "ConflictException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, ConflictException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.ConflictException = ConflictException;
35
+ class DashboardInvalidInputError extends CloudWatchServiceException_1.CloudWatchServiceException {
36
+ name = "DashboardInvalidInputError";
37
+ $fault = "client";
38
+ dashboardValidationMessages;
39
+ constructor(opts) {
40
+ super({
41
+ name: "DashboardInvalidInputError",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, DashboardInvalidInputError.prototype);
46
+ this.dashboardValidationMessages = opts.dashboardValidationMessages;
47
+ }
48
+ }
49
+ exports.DashboardInvalidInputError = DashboardInvalidInputError;
50
+ class DashboardNotFoundError extends CloudWatchServiceException_1.CloudWatchServiceException {
51
+ name = "DashboardNotFoundError";
52
+ $fault = "client";
53
+ constructor(opts) {
54
+ super({
55
+ name: "DashboardNotFoundError",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, DashboardNotFoundError.prototype);
60
+ }
61
+ }
62
+ exports.DashboardNotFoundError = DashboardNotFoundError;
63
+ class ResourceNotFound extends CloudWatchServiceException_1.CloudWatchServiceException {
64
+ name = "ResourceNotFound";
65
+ $fault = "client";
66
+ constructor(opts) {
67
+ super({
68
+ name: "ResourceNotFound",
69
+ $fault: "client",
70
+ ...opts,
71
+ });
72
+ Object.setPrototypeOf(this, ResourceNotFound.prototype);
73
+ }
74
+ }
75
+ exports.ResourceNotFound = ResourceNotFound;
76
+ class InternalServiceFault extends CloudWatchServiceException_1.CloudWatchServiceException {
77
+ name = "InternalServiceFault";
78
+ $fault = "server";
79
+ Message;
80
+ constructor(opts) {
81
+ super({
82
+ name: "InternalServiceFault",
83
+ $fault: "server",
84
+ ...opts,
85
+ });
86
+ Object.setPrototypeOf(this, InternalServiceFault.prototype);
87
+ this.Message = opts.Message;
88
+ }
89
+ }
90
+ exports.InternalServiceFault = InternalServiceFault;
91
+ class InvalidParameterCombinationException extends CloudWatchServiceException_1.CloudWatchServiceException {
92
+ name = "InvalidParameterCombinationException";
93
+ $fault = "client";
94
+ constructor(opts) {
95
+ super({
96
+ name: "InvalidParameterCombinationException",
97
+ $fault: "client",
98
+ ...opts,
99
+ });
100
+ Object.setPrototypeOf(this, InvalidParameterCombinationException.prototype);
101
+ }
102
+ }
103
+ exports.InvalidParameterCombinationException = InvalidParameterCombinationException;
104
+ class InvalidParameterValueException extends CloudWatchServiceException_1.CloudWatchServiceException {
105
+ name = "InvalidParameterValueException";
106
+ $fault = "client";
107
+ constructor(opts) {
108
+ super({
109
+ name: "InvalidParameterValueException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
114
+ }
115
+ }
116
+ exports.InvalidParameterValueException = InvalidParameterValueException;
117
+ class MissingRequiredParameterException extends CloudWatchServiceException_1.CloudWatchServiceException {
118
+ name = "MissingRequiredParameterException";
119
+ $fault = "client";
120
+ constructor(opts) {
121
+ super({
122
+ name: "MissingRequiredParameterException",
123
+ $fault: "client",
124
+ ...opts,
125
+ });
126
+ Object.setPrototypeOf(this, MissingRequiredParameterException.prototype);
127
+ }
128
+ }
129
+ exports.MissingRequiredParameterException = MissingRequiredParameterException;
130
+ class ResourceNotFoundException extends CloudWatchServiceException_1.CloudWatchServiceException {
131
+ name = "ResourceNotFoundException";
132
+ $fault = "client";
133
+ ResourceType;
134
+ ResourceId;
135
+ Message;
136
+ constructor(opts) {
137
+ super({
138
+ name: "ResourceNotFoundException",
139
+ $fault: "client",
140
+ ...opts,
141
+ });
142
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
143
+ this.ResourceType = opts.ResourceType;
144
+ this.ResourceId = opts.ResourceId;
145
+ this.Message = opts.Message;
146
+ }
147
+ }
148
+ exports.ResourceNotFoundException = ResourceNotFoundException;
149
+ class InvalidNextToken extends CloudWatchServiceException_1.CloudWatchServiceException {
150
+ name = "InvalidNextToken";
151
+ $fault = "client";
152
+ constructor(opts) {
153
+ super({
154
+ name: "InvalidNextToken",
155
+ $fault: "client",
156
+ ...opts,
157
+ });
158
+ Object.setPrototypeOf(this, InvalidNextToken.prototype);
159
+ }
160
+ }
161
+ exports.InvalidNextToken = InvalidNextToken;
162
+ class LimitExceededException extends CloudWatchServiceException_1.CloudWatchServiceException {
163
+ name = "LimitExceededException";
164
+ $fault = "client";
165
+ Message;
166
+ constructor(opts) {
167
+ super({
168
+ name: "LimitExceededException",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
173
+ this.Message = opts.Message;
174
+ }
175
+ }
176
+ exports.LimitExceededException = LimitExceededException;
177
+ class LimitExceededFault extends CloudWatchServiceException_1.CloudWatchServiceException {
178
+ name = "LimitExceededFault";
179
+ $fault = "client";
180
+ constructor(opts) {
181
+ super({
182
+ name: "LimitExceededFault",
183
+ $fault: "client",
184
+ ...opts,
185
+ });
186
+ Object.setPrototypeOf(this, LimitExceededFault.prototype);
187
+ }
188
+ }
189
+ exports.LimitExceededFault = LimitExceededFault;
190
+ class InvalidFormatFault extends CloudWatchServiceException_1.CloudWatchServiceException {
191
+ name = "InvalidFormatFault";
192
+ $fault = "client";
193
+ constructor(opts) {
194
+ super({
195
+ name: "InvalidFormatFault",
196
+ $fault: "client",
197
+ ...opts,
198
+ });
199
+ Object.setPrototypeOf(this, InvalidFormatFault.prototype);
200
+ }
201
+ }
202
+ exports.InvalidFormatFault = InvalidFormatFault;
@@ -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: "2010-08-01",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_0Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.cloudwatch",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "http://monitoring.amazonaws.com/doc/2010-08-01/",
33
35
  version: "2010-08-01",
34
36
  serviceTarget: "GraniteServiceVersion20100801",