@aws-sdk/client-application-signals 3.893.0 → 3.895.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 (38) hide show
  1. package/dist-cjs/index.js +1602 -10
  2. package/package.json +7 -7
  3. package/dist-cjs/ApplicationSignals.js +0 -45
  4. package/dist-cjs/ApplicationSignalsClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.js +0 -26
  7. package/dist-cjs/commands/BatchUpdateExclusionWindowsCommand.js +0 -26
  8. package/dist-cjs/commands/CreateServiceLevelObjectiveCommand.js +0 -26
  9. package/dist-cjs/commands/DeleteServiceLevelObjectiveCommand.js +0 -26
  10. package/dist-cjs/commands/GetServiceCommand.js +0 -26
  11. package/dist-cjs/commands/GetServiceLevelObjectiveCommand.js +0 -26
  12. package/dist-cjs/commands/ListServiceDependenciesCommand.js +0 -26
  13. package/dist-cjs/commands/ListServiceDependentsCommand.js +0 -26
  14. package/dist-cjs/commands/ListServiceLevelObjectiveExclusionWindowsCommand.js +0 -26
  15. package/dist-cjs/commands/ListServiceLevelObjectivesCommand.js +0 -26
  16. package/dist-cjs/commands/ListServiceOperationsCommand.js +0 -26
  17. package/dist-cjs/commands/ListServicesCommand.js +0 -26
  18. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  19. package/dist-cjs/commands/StartDiscoveryCommand.js +0 -26
  20. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  21. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  22. package/dist-cjs/commands/UpdateServiceLevelObjectiveCommand.js +0 -26
  23. package/dist-cjs/commands/index.js +0 -20
  24. package/dist-cjs/endpoint/EndpointParameters.js +0 -15
  25. package/dist-cjs/extensionConfiguration.js +0 -2
  26. package/dist-cjs/models/ApplicationSignalsServiceException.js +0 -12
  27. package/dist-cjs/models/index.js +0 -4
  28. package/dist-cjs/models/models_0.js +0 -176
  29. package/dist-cjs/pagination/Interfaces.js +0 -2
  30. package/dist-cjs/pagination/ListServiceDependenciesPaginator.js +0 -7
  31. package/dist-cjs/pagination/ListServiceDependentsPaginator.js +0 -7
  32. package/dist-cjs/pagination/ListServiceLevelObjectiveExclusionWindowsPaginator.js +0 -7
  33. package/dist-cjs/pagination/ListServiceLevelObjectivesPaginator.js +0 -7
  34. package/dist-cjs/pagination/ListServiceOperationsPaginator.js +0 -7
  35. package/dist-cjs/pagination/ListServicesPaginator.js +0 -7
  36. package/dist-cjs/pagination/index.js +0 -10
  37. package/dist-cjs/protocols/Aws_restJson1.js +0 -837
  38. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1603 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApplicationSignalsServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ApplicationSignalsClient"), exports);
6
- tslib_1.__exportStar(require("./ApplicationSignals"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var ApplicationSignalsServiceException_1 = require("./models/ApplicationSignalsServiceException");
11
- Object.defineProperty(exports, "ApplicationSignalsServiceException", { enumerable: true, get: function () { return ApplicationSignalsServiceException_1.ApplicationSignalsServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ ApplicationSignals: () => ApplicationSignals,
26
+ ApplicationSignalsClient: () => ApplicationSignalsClient,
27
+ ApplicationSignalsServiceException: () => ApplicationSignalsServiceException,
28
+ BatchGetServiceLevelObjectiveBudgetReportCommand: () => BatchGetServiceLevelObjectiveBudgetReportCommand,
29
+ BatchUpdateExclusionWindowsCommand: () => BatchUpdateExclusionWindowsCommand,
30
+ ConflictException: () => ConflictException,
31
+ CreateServiceLevelObjectiveCommand: () => CreateServiceLevelObjectiveCommand,
32
+ DeleteServiceLevelObjectiveCommand: () => DeleteServiceLevelObjectiveCommand,
33
+ DurationUnit: () => DurationUnit,
34
+ EvaluationType: () => EvaluationType,
35
+ GetServiceCommand: () => GetServiceCommand,
36
+ GetServiceLevelObjectiveCommand: () => GetServiceLevelObjectiveCommand,
37
+ Interval: () => Interval,
38
+ ListServiceDependenciesCommand: () => ListServiceDependenciesCommand,
39
+ ListServiceDependentsCommand: () => ListServiceDependentsCommand,
40
+ ListServiceLevelObjectiveExclusionWindowsCommand: () => ListServiceLevelObjectiveExclusionWindowsCommand,
41
+ ListServiceLevelObjectivesCommand: () => ListServiceLevelObjectivesCommand,
42
+ ListServiceOperationsCommand: () => ListServiceOperationsCommand,
43
+ ListServicesCommand: () => ListServicesCommand,
44
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
45
+ MetricSourceType: () => MetricSourceType,
46
+ MonitoredRequestCountMetricDataQueries: () => MonitoredRequestCountMetricDataQueries,
47
+ ResourceNotFoundException: () => ResourceNotFoundException,
48
+ ServiceLevelIndicatorComparisonOperator: () => ServiceLevelIndicatorComparisonOperator,
49
+ ServiceLevelIndicatorMetricType: () => ServiceLevelIndicatorMetricType,
50
+ ServiceLevelObjectiveBudgetStatus: () => ServiceLevelObjectiveBudgetStatus,
51
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
52
+ StandardUnit: () => StandardUnit,
53
+ StartDiscoveryCommand: () => StartDiscoveryCommand,
54
+ TagResourceCommand: () => TagResourceCommand,
55
+ ThrottlingException: () => ThrottlingException,
56
+ UntagResourceCommand: () => UntagResourceCommand,
57
+ UpdateServiceLevelObjectiveCommand: () => UpdateServiceLevelObjectiveCommand,
58
+ ValidationException: () => ValidationException,
59
+ __Client: () => import_smithy_client.Client,
60
+ paginateListServiceDependencies: () => paginateListServiceDependencies,
61
+ paginateListServiceDependents: () => paginateListServiceDependents,
62
+ paginateListServiceLevelObjectiveExclusionWindows: () => paginateListServiceLevelObjectiveExclusionWindows,
63
+ paginateListServiceLevelObjectives: () => paginateListServiceLevelObjectives,
64
+ paginateListServiceOperations: () => paginateListServiceOperations,
65
+ paginateListServices: () => paginateListServices
66
+ });
67
+ module.exports = __toCommonJS(index_exports);
68
+
69
+ // src/ApplicationSignalsClient.ts
70
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
71
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
72
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
73
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
74
+ var import_config_resolver = require("@smithy/config-resolver");
75
+ var import_core = require("@smithy/core");
76
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
77
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
78
+ var import_middleware_retry = require("@smithy/middleware-retry");
79
+
80
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
81
+
82
+ // src/endpoint/EndpointParameters.ts
83
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
84
+ return Object.assign(options, {
85
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
86
+ defaultSigningName: "application-signals"
87
+ });
88
+ }, "resolveClientEndpointParameters");
89
+ var commonParams = {
90
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
91
+ Endpoint: { type: "builtInParams", name: "endpoint" },
92
+ Region: { type: "builtInParams", name: "region" }
93
+ };
94
+
95
+ // src/ApplicationSignalsClient.ts
96
+ var import_runtimeConfig = require("././runtimeConfig");
97
+
98
+ // src/runtimeExtensions.ts
99
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
100
+ var import_protocol_http = require("@smithy/protocol-http");
101
+ var import_smithy_client = require("@smithy/smithy-client");
102
+
103
+ // src/auth/httpAuthExtensionConfiguration.ts
104
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
105
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
106
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
107
+ let _credentials = runtimeConfig.credentials;
108
+ return {
109
+ setHttpAuthScheme(httpAuthScheme) {
110
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
111
+ if (index === -1) {
112
+ _httpAuthSchemes.push(httpAuthScheme);
113
+ } else {
114
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
115
+ }
116
+ },
117
+ httpAuthSchemes() {
118
+ return _httpAuthSchemes;
119
+ },
120
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
121
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
122
+ },
123
+ httpAuthSchemeProvider() {
124
+ return _httpAuthSchemeProvider;
125
+ },
126
+ setCredentials(credentials) {
127
+ _credentials = credentials;
128
+ },
129
+ credentials() {
130
+ return _credentials;
131
+ }
132
+ };
133
+ }, "getHttpAuthExtensionConfiguration");
134
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
135
+ return {
136
+ httpAuthSchemes: config.httpAuthSchemes(),
137
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
138
+ credentials: config.credentials()
139
+ };
140
+ }, "resolveHttpAuthRuntimeConfig");
141
+
142
+ // src/runtimeExtensions.ts
143
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
144
+ const extensionConfiguration = Object.assign(
145
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
146
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
147
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
148
+ getHttpAuthExtensionConfiguration(runtimeConfig)
149
+ );
150
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
151
+ return Object.assign(
152
+ runtimeConfig,
153
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
154
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
155
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
156
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
157
+ );
158
+ }, "resolveRuntimeExtensions");
159
+
160
+ // src/ApplicationSignalsClient.ts
161
+ var ApplicationSignalsClient = class extends import_smithy_client.Client {
162
+ static {
163
+ __name(this, "ApplicationSignalsClient");
164
+ }
165
+ /**
166
+ * The resolved configuration of ApplicationSignalsClient class. This is resolved and normalized from the {@link ApplicationSignalsClientConfig | constructor configuration interface}.
167
+ */
168
+ config;
169
+ constructor(...[configuration]) {
170
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
171
+ super(_config_0);
172
+ this.initConfig = _config_0;
173
+ const _config_1 = resolveClientEndpointParameters(_config_0);
174
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
175
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
176
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
177
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
178
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
179
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
180
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
181
+ this.config = _config_8;
182
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
183
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
184
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
185
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
186
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
187
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
188
+ this.middlewareStack.use(
189
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
190
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultApplicationSignalsHttpAuthSchemeParametersProvider,
191
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
192
+ "aws.auth#sigv4": config.credentials
193
+ }), "identityProviderConfigProvider")
194
+ })
195
+ );
196
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
197
+ }
198
+ /**
199
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
200
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
201
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
202
+ */
203
+ destroy() {
204
+ super.destroy();
205
+ }
206
+ };
207
+
208
+ // src/ApplicationSignals.ts
209
+
210
+
211
+ // src/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.ts
212
+
213
+ var import_middleware_serde = require("@smithy/middleware-serde");
214
+
215
+
216
+ // src/protocols/Aws_restJson1.ts
217
+ var import_core2 = require("@aws-sdk/core");
218
+
219
+
220
+
221
+ // src/models/ApplicationSignalsServiceException.ts
222
+
223
+ var ApplicationSignalsServiceException = class _ApplicationSignalsServiceException extends import_smithy_client.ServiceException {
224
+ static {
225
+ __name(this, "ApplicationSignalsServiceException");
226
+ }
227
+ /**
228
+ * @internal
229
+ */
230
+ constructor(options) {
231
+ super(options);
232
+ Object.setPrototypeOf(this, _ApplicationSignalsServiceException.prototype);
233
+ }
234
+ };
235
+
236
+ // src/models/models_0.ts
237
+ var AccessDeniedException = class _AccessDeniedException extends ApplicationSignalsServiceException {
238
+ static {
239
+ __name(this, "AccessDeniedException");
240
+ }
241
+ name = "AccessDeniedException";
242
+ $fault = "client";
243
+ Message;
244
+ /**
245
+ * @internal
246
+ */
247
+ constructor(opts) {
248
+ super({
249
+ name: "AccessDeniedException",
250
+ $fault: "client",
251
+ ...opts
252
+ });
253
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
254
+ this.Message = opts.Message;
255
+ }
256
+ };
257
+ var ServiceLevelObjectiveBudgetStatus = {
258
+ BREACHED: "BREACHED",
259
+ INSUFFICIENT_DATA: "INSUFFICIENT_DATA",
260
+ OK: "OK",
261
+ WARNING: "WARNING"
262
+ };
263
+ var EvaluationType = {
264
+ PERIOD_BASED: "PeriodBased",
265
+ REQUEST_BASED: "RequestBased"
266
+ };
267
+ var DurationUnit = {
268
+ DAY: "DAY",
269
+ HOUR: "HOUR",
270
+ MINUTE: "MINUTE",
271
+ MONTH: "MONTH"
272
+ };
273
+ var Interval;
274
+ ((Interval2) => {
275
+ Interval2.visit = /* @__PURE__ */ __name((value, visitor) => {
276
+ if (value.RollingInterval !== void 0) return visitor.RollingInterval(value.RollingInterval);
277
+ if (value.CalendarInterval !== void 0) return visitor.CalendarInterval(value.CalendarInterval);
278
+ return visitor._(value.$unknown[0], value.$unknown[1]);
279
+ }, "visit");
280
+ })(Interval || (Interval = {}));
281
+ var ServiceLevelIndicatorComparisonOperator = {
282
+ GREATER_THAN: "GreaterThan",
283
+ GREATER_THAN_OR_EQUAL_TO: "GreaterThanOrEqualTo",
284
+ LESS_THAN: "LessThan",
285
+ LESS_THAN_OR_EQUAL_TO: "LessThanOrEqualTo"
286
+ };
287
+ var ServiceLevelIndicatorMetricType = {
288
+ AVAILABILITY: "AVAILABILITY",
289
+ LATENCY: "LATENCY"
290
+ };
291
+ var StandardUnit = {
292
+ BITS: "Bits",
293
+ BITS_SECOND: "Bits/Second",
294
+ BYTES: "Bytes",
295
+ BYTES_SECOND: "Bytes/Second",
296
+ COUNT: "Count",
297
+ COUNT_SECOND: "Count/Second",
298
+ GIGABITS: "Gigabits",
299
+ GIGABITS_SECOND: "Gigabits/Second",
300
+ GIGABYTES: "Gigabytes",
301
+ GIGABYTES_SECOND: "Gigabytes/Second",
302
+ KILOBITS: "Kilobits",
303
+ KILOBITS_SECOND: "Kilobits/Second",
304
+ KILOBYTES: "Kilobytes",
305
+ KILOBYTES_SECOND: "Kilobytes/Second",
306
+ MEGABITS: "Megabits",
307
+ MEGABITS_SECOND: "Megabits/Second",
308
+ MEGABYTES: "Megabytes",
309
+ MEGABYTES_SECOND: "Megabytes/Second",
310
+ MICROSECONDS: "Microseconds",
311
+ MILLISECONDS: "Milliseconds",
312
+ NONE: "None",
313
+ PERCENT: "Percent",
314
+ SECONDS: "Seconds",
315
+ TERABITS: "Terabits",
316
+ TERABITS_SECOND: "Terabits/Second",
317
+ TERABYTES: "Terabytes",
318
+ TERABYTES_SECOND: "Terabytes/Second"
319
+ };
320
+ var MonitoredRequestCountMetricDataQueries;
321
+ ((MonitoredRequestCountMetricDataQueries3) => {
322
+ MonitoredRequestCountMetricDataQueries3.visit = /* @__PURE__ */ __name((value, visitor) => {
323
+ if (value.GoodCountMetric !== void 0) return visitor.GoodCountMetric(value.GoodCountMetric);
324
+ if (value.BadCountMetric !== void 0) return visitor.BadCountMetric(value.BadCountMetric);
325
+ return visitor._(value.$unknown[0], value.$unknown[1]);
326
+ }, "visit");
327
+ })(MonitoredRequestCountMetricDataQueries || (MonitoredRequestCountMetricDataQueries = {}));
328
+ var ThrottlingException = class _ThrottlingException extends ApplicationSignalsServiceException {
329
+ static {
330
+ __name(this, "ThrottlingException");
331
+ }
332
+ name = "ThrottlingException";
333
+ $fault = "client";
334
+ Message;
335
+ /**
336
+ * @internal
337
+ */
338
+ constructor(opts) {
339
+ super({
340
+ name: "ThrottlingException",
341
+ $fault: "client",
342
+ ...opts
343
+ });
344
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
345
+ this.Message = opts.Message;
346
+ }
347
+ };
348
+ var ValidationException = class _ValidationException extends ApplicationSignalsServiceException {
349
+ static {
350
+ __name(this, "ValidationException");
351
+ }
352
+ name = "ValidationException";
353
+ $fault = "client";
354
+ /**
355
+ * @internal
356
+ */
357
+ constructor(opts) {
358
+ super({
359
+ name: "ValidationException",
360
+ $fault: "client",
361
+ ...opts
362
+ });
363
+ Object.setPrototypeOf(this, _ValidationException.prototype);
364
+ }
365
+ };
366
+ var ResourceNotFoundException = class _ResourceNotFoundException extends ApplicationSignalsServiceException {
367
+ static {
368
+ __name(this, "ResourceNotFoundException");
369
+ }
370
+ name = "ResourceNotFoundException";
371
+ $fault = "client";
372
+ /**
373
+ * <p>The resource type is not valid.</p>
374
+ * @public
375
+ */
376
+ ResourceType;
377
+ /**
378
+ * <p>Can't find the resource id.</p>
379
+ * @public
380
+ */
381
+ ResourceId;
382
+ Message;
383
+ /**
384
+ * @internal
385
+ */
386
+ constructor(opts) {
387
+ super({
388
+ name: "ResourceNotFoundException",
389
+ $fault: "client",
390
+ ...opts
391
+ });
392
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
393
+ this.ResourceType = opts.ResourceType;
394
+ this.ResourceId = opts.ResourceId;
395
+ this.Message = opts.Message;
396
+ }
397
+ };
398
+ var ConflictException = class _ConflictException extends ApplicationSignalsServiceException {
399
+ static {
400
+ __name(this, "ConflictException");
401
+ }
402
+ name = "ConflictException";
403
+ $fault = "client";
404
+ Message;
405
+ /**
406
+ * @internal
407
+ */
408
+ constructor(opts) {
409
+ super({
410
+ name: "ConflictException",
411
+ $fault: "client",
412
+ ...opts
413
+ });
414
+ Object.setPrototypeOf(this, _ConflictException.prototype);
415
+ this.Message = opts.Message;
416
+ }
417
+ };
418
+ var MetricSourceType = {
419
+ CLOUDWATCH_METRIC: "CloudWatchMetric",
420
+ SERVICE_DEPENDENCY: "ServiceDependency",
421
+ SERVICE_OPERATION: "ServiceOperation"
422
+ };
423
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends ApplicationSignalsServiceException {
424
+ static {
425
+ __name(this, "ServiceQuotaExceededException");
426
+ }
427
+ name = "ServiceQuotaExceededException";
428
+ $fault = "client";
429
+ Message;
430
+ /**
431
+ * @internal
432
+ */
433
+ constructor(opts) {
434
+ super({
435
+ name: "ServiceQuotaExceededException",
436
+ $fault: "client",
437
+ ...opts
438
+ });
439
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
440
+ this.Message = opts.Message;
441
+ }
442
+ };
443
+
444
+ // src/protocols/Aws_restJson1.ts
445
+ var se_BatchGetServiceLevelObjectiveBudgetReportCommand = /* @__PURE__ */ __name(async (input, context) => {
446
+ const b = (0, import_core.requestBuilder)(input, context);
447
+ const headers = {
448
+ "content-type": "application/json"
449
+ };
450
+ b.bp("/budget-report");
451
+ let body;
452
+ body = JSON.stringify(
453
+ (0, import_smithy_client.take)(input, {
454
+ SloIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "SloIds"),
455
+ Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp")
456
+ })
457
+ );
458
+ b.m("POST").h(headers).b(body);
459
+ return b.build();
460
+ }, "se_BatchGetServiceLevelObjectiveBudgetReportCommand");
461
+ var se_BatchUpdateExclusionWindowsCommand = /* @__PURE__ */ __name(async (input, context) => {
462
+ const b = (0, import_core.requestBuilder)(input, context);
463
+ const headers = {
464
+ "content-type": "application/json"
465
+ };
466
+ b.bp("/exclusion-windows");
467
+ let body;
468
+ body = JSON.stringify(
469
+ (0, import_smithy_client.take)(input, {
470
+ AddExclusionWindows: /* @__PURE__ */ __name((_) => se_ExclusionWindows(_, context), "AddExclusionWindows"),
471
+ RemoveExclusionWindows: /* @__PURE__ */ __name((_) => se_ExclusionWindows(_, context), "RemoveExclusionWindows"),
472
+ SloIds: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "SloIds")
473
+ })
474
+ );
475
+ b.m("PATCH").h(headers).b(body);
476
+ return b.build();
477
+ }, "se_BatchUpdateExclusionWindowsCommand");
478
+ var se_CreateServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (input, context) => {
479
+ const b = (0, import_core.requestBuilder)(input, context);
480
+ const headers = {
481
+ "content-type": "application/json"
482
+ };
483
+ b.bp("/slo");
484
+ let body;
485
+ body = JSON.stringify(
486
+ (0, import_smithy_client.take)(input, {
487
+ BurnRateConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "BurnRateConfigurations"),
488
+ Description: [],
489
+ Goal: /* @__PURE__ */ __name((_) => se_Goal(_, context), "Goal"),
490
+ Name: [],
491
+ RequestBasedSliConfig: /* @__PURE__ */ __name((_) => se_RequestBasedServiceLevelIndicatorConfig(_, context), "RequestBasedSliConfig"),
492
+ SliConfig: /* @__PURE__ */ __name((_) => se_ServiceLevelIndicatorConfig(_, context), "SliConfig"),
493
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
494
+ })
495
+ );
496
+ b.m("POST").h(headers).b(body);
497
+ return b.build();
498
+ }, "se_CreateServiceLevelObjectiveCommand");
499
+ var se_DeleteServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (input, context) => {
500
+ const b = (0, import_core.requestBuilder)(input, context);
501
+ const headers = {};
502
+ b.bp("/slo/{Id}");
503
+ b.p("Id", () => input.Id, "{Id}", false);
504
+ let body;
505
+ b.m("DELETE").h(headers).b(body);
506
+ return b.build();
507
+ }, "se_DeleteServiceLevelObjectiveCommand");
508
+ var se_GetServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
509
+ const b = (0, import_core.requestBuilder)(input, context);
510
+ const headers = {
511
+ "content-type": "application/json"
512
+ };
513
+ b.bp("/service");
514
+ const query = (0, import_smithy_client.map)({
515
+ [_ST]: [(0, import_smithy_client.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()],
516
+ [_ET]: [(0, import_smithy_client.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()]
517
+ });
518
+ let body;
519
+ body = JSON.stringify(
520
+ (0, import_smithy_client.take)(input, {
521
+ KeyAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "KeyAttributes")
522
+ })
523
+ );
524
+ b.m("POST").h(headers).q(query).b(body);
525
+ return b.build();
526
+ }, "se_GetServiceCommand");
527
+ var se_GetServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (input, context) => {
528
+ const b = (0, import_core.requestBuilder)(input, context);
529
+ const headers = {};
530
+ b.bp("/slo/{Id}");
531
+ b.p("Id", () => input.Id, "{Id}", false);
532
+ let body;
533
+ b.m("GET").h(headers).b(body);
534
+ return b.build();
535
+ }, "se_GetServiceLevelObjectiveCommand");
536
+ var se_ListServiceDependenciesCommand = /* @__PURE__ */ __name(async (input, context) => {
537
+ const b = (0, import_core.requestBuilder)(input, context);
538
+ const headers = {
539
+ "content-type": "application/json"
540
+ };
541
+ b.bp("/service-dependencies");
542
+ const query = (0, import_smithy_client.map)({
543
+ [_ST]: [(0, import_smithy_client.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()],
544
+ [_ET]: [(0, import_smithy_client.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()],
545
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
546
+ [_NT]: [, input[_NT]]
547
+ });
548
+ let body;
549
+ body = JSON.stringify(
550
+ (0, import_smithy_client.take)(input, {
551
+ KeyAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "KeyAttributes")
552
+ })
553
+ );
554
+ b.m("POST").h(headers).q(query).b(body);
555
+ return b.build();
556
+ }, "se_ListServiceDependenciesCommand");
557
+ var se_ListServiceDependentsCommand = /* @__PURE__ */ __name(async (input, context) => {
558
+ const b = (0, import_core.requestBuilder)(input, context);
559
+ const headers = {
560
+ "content-type": "application/json"
561
+ };
562
+ b.bp("/service-dependents");
563
+ const query = (0, import_smithy_client.map)({
564
+ [_ST]: [(0, import_smithy_client.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()],
565
+ [_ET]: [(0, import_smithy_client.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()],
566
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
567
+ [_NT]: [, input[_NT]]
568
+ });
569
+ let body;
570
+ body = JSON.stringify(
571
+ (0, import_smithy_client.take)(input, {
572
+ KeyAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "KeyAttributes")
573
+ })
574
+ );
575
+ b.m("POST").h(headers).q(query).b(body);
576
+ return b.build();
577
+ }, "se_ListServiceDependentsCommand");
578
+ var se_ListServiceLevelObjectiveExclusionWindowsCommand = /* @__PURE__ */ __name(async (input, context) => {
579
+ const b = (0, import_core.requestBuilder)(input, context);
580
+ const headers = {};
581
+ b.bp("/slo/{Id}/exclusion-windows");
582
+ b.p("Id", () => input.Id, "{Id}", false);
583
+ const query = (0, import_smithy_client.map)({
584
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
585
+ [_NT]: [, input[_NT]]
586
+ });
587
+ let body;
588
+ b.m("GET").h(headers).q(query).b(body);
589
+ return b.build();
590
+ }, "se_ListServiceLevelObjectiveExclusionWindowsCommand");
591
+ var se_ListServiceLevelObjectivesCommand = /* @__PURE__ */ __name(async (input, context) => {
592
+ const b = (0, import_core.requestBuilder)(input, context);
593
+ const headers = {
594
+ "content-type": "application/json"
595
+ };
596
+ b.bp("/slos");
597
+ const query = (0, import_smithy_client.map)({
598
+ [_ON]: [, input[_ON]],
599
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
600
+ [_NT]: [, input[_NT]],
601
+ [_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
602
+ [_SOAAI]: [, input[_SOAAI]]
603
+ });
604
+ let body;
605
+ body = JSON.stringify(
606
+ (0, import_smithy_client.take)(input, {
607
+ DependencyConfig: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DependencyConfig"),
608
+ KeyAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "KeyAttributes"),
609
+ MetricSourceTypes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "MetricSourceTypes")
610
+ })
611
+ );
612
+ b.m("POST").h(headers).q(query).b(body);
613
+ return b.build();
614
+ }, "se_ListServiceLevelObjectivesCommand");
615
+ var se_ListServiceOperationsCommand = /* @__PURE__ */ __name(async (input, context) => {
616
+ const b = (0, import_core.requestBuilder)(input, context);
617
+ const headers = {
618
+ "content-type": "application/json"
619
+ };
620
+ b.bp("/service-operations");
621
+ const query = (0, import_smithy_client.map)({
622
+ [_ST]: [(0, import_smithy_client.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()],
623
+ [_ET]: [(0, import_smithy_client.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()],
624
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
625
+ [_NT]: [, input[_NT]]
626
+ });
627
+ let body;
628
+ body = JSON.stringify(
629
+ (0, import_smithy_client.take)(input, {
630
+ KeyAttributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "KeyAttributes")
631
+ })
632
+ );
633
+ b.m("POST").h(headers).q(query).b(body);
634
+ return b.build();
635
+ }, "se_ListServiceOperationsCommand");
636
+ var se_ListServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
637
+ const b = (0, import_core.requestBuilder)(input, context);
638
+ const headers = {};
639
+ b.bp("/services");
640
+ const query = (0, import_smithy_client.map)({
641
+ [_ST]: [(0, import_smithy_client.expectNonNull)(input.StartTime, `StartTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()],
642
+ [_ET]: [(0, import_smithy_client.expectNonNull)(input.EndTime, `EndTime`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()],
643
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
644
+ [_NT]: [, input[_NT]],
645
+ [_ILA]: [() => input.IncludeLinkedAccounts !== void 0, () => input[_ILA].toString()],
646
+ [_AAI]: [, input[_AAI]]
647
+ });
648
+ let body;
649
+ b.m("GET").h(headers).q(query).b(body);
650
+ return b.build();
651
+ }, "se_ListServicesCommand");
652
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
653
+ const b = (0, import_core.requestBuilder)(input, context);
654
+ const headers = {};
655
+ b.bp("/tags");
656
+ const query = (0, import_smithy_client.map)({
657
+ [_RA]: [, (0, import_smithy_client.expectNonNull)(input[_RA], `ResourceArn`)]
658
+ });
659
+ let body;
660
+ b.m("GET").h(headers).q(query).b(body);
661
+ return b.build();
662
+ }, "se_ListTagsForResourceCommand");
663
+ var se_StartDiscoveryCommand = /* @__PURE__ */ __name(async (input, context) => {
664
+ const b = (0, import_core.requestBuilder)(input, context);
665
+ const headers = {};
666
+ b.bp("/start-discovery");
667
+ let body;
668
+ b.m("POST").h(headers).b(body);
669
+ return b.build();
670
+ }, "se_StartDiscoveryCommand");
671
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
672
+ const b = (0, import_core.requestBuilder)(input, context);
673
+ const headers = {
674
+ "content-type": "application/json"
675
+ };
676
+ b.bp("/tag-resource");
677
+ let body;
678
+ body = JSON.stringify(
679
+ (0, import_smithy_client.take)(input, {
680
+ ResourceArn: [],
681
+ Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
682
+ })
683
+ );
684
+ b.m("POST").h(headers).b(body);
685
+ return b.build();
686
+ }, "se_TagResourceCommand");
687
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
688
+ const b = (0, import_core.requestBuilder)(input, context);
689
+ const headers = {
690
+ "content-type": "application/json"
691
+ };
692
+ b.bp("/untag-resource");
693
+ let body;
694
+ body = JSON.stringify(
695
+ (0, import_smithy_client.take)(input, {
696
+ ResourceArn: [],
697
+ TagKeys: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "TagKeys")
698
+ })
699
+ );
700
+ b.m("POST").h(headers).b(body);
701
+ return b.build();
702
+ }, "se_UntagResourceCommand");
703
+ var se_UpdateServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (input, context) => {
704
+ const b = (0, import_core.requestBuilder)(input, context);
705
+ const headers = {
706
+ "content-type": "application/json"
707
+ };
708
+ b.bp("/slo/{Id}");
709
+ b.p("Id", () => input.Id, "{Id}", false);
710
+ let body;
711
+ body = JSON.stringify(
712
+ (0, import_smithy_client.take)(input, {
713
+ BurnRateConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "BurnRateConfigurations"),
714
+ Description: [],
715
+ Goal: /* @__PURE__ */ __name((_) => se_Goal(_, context), "Goal"),
716
+ RequestBasedSliConfig: /* @__PURE__ */ __name((_) => se_RequestBasedServiceLevelIndicatorConfig(_, context), "RequestBasedSliConfig"),
717
+ SliConfig: /* @__PURE__ */ __name((_) => se_ServiceLevelIndicatorConfig(_, context), "SliConfig")
718
+ })
719
+ );
720
+ b.m("PATCH").h(headers).b(body);
721
+ return b.build();
722
+ }, "se_UpdateServiceLevelObjectiveCommand");
723
+ var de_BatchGetServiceLevelObjectiveBudgetReportCommand = /* @__PURE__ */ __name(async (output, context) => {
724
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
725
+ return de_CommandError(output, context);
726
+ }
727
+ const contents = (0, import_smithy_client.map)({
728
+ $metadata: deserializeMetadata(output)
729
+ });
730
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
731
+ const doc = (0, import_smithy_client.take)(data, {
732
+ Errors: import_smithy_client._json,
733
+ Reports: /* @__PURE__ */ __name((_) => de_ServiceLevelObjectiveBudgetReports(_, context), "Reports"),
734
+ Timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Timestamp")
735
+ });
736
+ Object.assign(contents, doc);
737
+ return contents;
738
+ }, "de_BatchGetServiceLevelObjectiveBudgetReportCommand");
739
+ var de_BatchUpdateExclusionWindowsCommand = /* @__PURE__ */ __name(async (output, context) => {
740
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
741
+ return de_CommandError(output, context);
742
+ }
743
+ const contents = (0, import_smithy_client.map)({
744
+ $metadata: deserializeMetadata(output)
745
+ });
746
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
747
+ const doc = (0, import_smithy_client.take)(data, {
748
+ Errors: import_smithy_client._json,
749
+ SloIds: import_smithy_client._json
750
+ });
751
+ Object.assign(contents, doc);
752
+ return contents;
753
+ }, "de_BatchUpdateExclusionWindowsCommand");
754
+ var de_CreateServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (output, context) => {
755
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
756
+ return de_CommandError(output, context);
757
+ }
758
+ const contents = (0, import_smithy_client.map)({
759
+ $metadata: deserializeMetadata(output)
760
+ });
761
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
762
+ const doc = (0, import_smithy_client.take)(data, {
763
+ Slo: /* @__PURE__ */ __name((_) => de_ServiceLevelObjective(_, context), "Slo")
764
+ });
765
+ Object.assign(contents, doc);
766
+ return contents;
767
+ }, "de_CreateServiceLevelObjectiveCommand");
768
+ var de_DeleteServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (output, context) => {
769
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
770
+ return de_CommandError(output, context);
771
+ }
772
+ const contents = (0, import_smithy_client.map)({
773
+ $metadata: deserializeMetadata(output)
774
+ });
775
+ await (0, import_smithy_client.collectBody)(output.body, context);
776
+ return contents;
777
+ }, "de_DeleteServiceLevelObjectiveCommand");
778
+ var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
779
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
780
+ return de_CommandError(output, context);
781
+ }
782
+ const contents = (0, import_smithy_client.map)({
783
+ $metadata: deserializeMetadata(output)
784
+ });
785
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
786
+ const doc = (0, import_smithy_client.take)(data, {
787
+ EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
788
+ LogGroupReferences: import_smithy_client._json,
789
+ Service: import_smithy_client._json,
790
+ StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
791
+ });
792
+ Object.assign(contents, doc);
793
+ return contents;
794
+ }, "de_GetServiceCommand");
795
+ var de_GetServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (output, context) => {
796
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
797
+ return de_CommandError(output, context);
798
+ }
799
+ const contents = (0, import_smithy_client.map)({
800
+ $metadata: deserializeMetadata(output)
801
+ });
802
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
803
+ const doc = (0, import_smithy_client.take)(data, {
804
+ Slo: /* @__PURE__ */ __name((_) => de_ServiceLevelObjective(_, context), "Slo")
805
+ });
806
+ Object.assign(contents, doc);
807
+ return contents;
808
+ }, "de_GetServiceLevelObjectiveCommand");
809
+ var de_ListServiceDependenciesCommand = /* @__PURE__ */ __name(async (output, context) => {
810
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
811
+ return de_CommandError(output, context);
812
+ }
813
+ const contents = (0, import_smithy_client.map)({
814
+ $metadata: deserializeMetadata(output)
815
+ });
816
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
817
+ const doc = (0, import_smithy_client.take)(data, {
818
+ EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
819
+ NextToken: import_smithy_client.expectString,
820
+ ServiceDependencies: import_smithy_client._json,
821
+ StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
822
+ });
823
+ Object.assign(contents, doc);
824
+ return contents;
825
+ }, "de_ListServiceDependenciesCommand");
826
+ var de_ListServiceDependentsCommand = /* @__PURE__ */ __name(async (output, context) => {
827
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
828
+ return de_CommandError(output, context);
829
+ }
830
+ const contents = (0, import_smithy_client.map)({
831
+ $metadata: deserializeMetadata(output)
832
+ });
833
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
834
+ const doc = (0, import_smithy_client.take)(data, {
835
+ EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
836
+ NextToken: import_smithy_client.expectString,
837
+ ServiceDependents: import_smithy_client._json,
838
+ StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
839
+ });
840
+ Object.assign(contents, doc);
841
+ return contents;
842
+ }, "de_ListServiceDependentsCommand");
843
+ var de_ListServiceLevelObjectiveExclusionWindowsCommand = /* @__PURE__ */ __name(async (output, context) => {
844
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
845
+ return de_CommandError(output, context);
846
+ }
847
+ const contents = (0, import_smithy_client.map)({
848
+ $metadata: deserializeMetadata(output)
849
+ });
850
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
851
+ const doc = (0, import_smithy_client.take)(data, {
852
+ ExclusionWindows: /* @__PURE__ */ __name((_) => de_ExclusionWindows(_, context), "ExclusionWindows"),
853
+ NextToken: import_smithy_client.expectString
854
+ });
855
+ Object.assign(contents, doc);
856
+ return contents;
857
+ }, "de_ListServiceLevelObjectiveExclusionWindowsCommand");
858
+ var de_ListServiceLevelObjectivesCommand = /* @__PURE__ */ __name(async (output, context) => {
859
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
860
+ return de_CommandError(output, context);
861
+ }
862
+ const contents = (0, import_smithy_client.map)({
863
+ $metadata: deserializeMetadata(output)
864
+ });
865
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
866
+ const doc = (0, import_smithy_client.take)(data, {
867
+ NextToken: import_smithy_client.expectString,
868
+ SloSummaries: /* @__PURE__ */ __name((_) => de_ServiceLevelObjectiveSummaries(_, context), "SloSummaries")
869
+ });
870
+ Object.assign(contents, doc);
871
+ return contents;
872
+ }, "de_ListServiceLevelObjectivesCommand");
873
+ var de_ListServiceOperationsCommand = /* @__PURE__ */ __name(async (output, context) => {
874
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
875
+ return de_CommandError(output, context);
876
+ }
877
+ const contents = (0, import_smithy_client.map)({
878
+ $metadata: deserializeMetadata(output)
879
+ });
880
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
881
+ const doc = (0, import_smithy_client.take)(data, {
882
+ EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
883
+ NextToken: import_smithy_client.expectString,
884
+ ServiceOperations: import_smithy_client._json,
885
+ StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
886
+ });
887
+ Object.assign(contents, doc);
888
+ return contents;
889
+ }, "de_ListServiceOperationsCommand");
890
+ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
891
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
892
+ return de_CommandError(output, context);
893
+ }
894
+ const contents = (0, import_smithy_client.map)({
895
+ $metadata: deserializeMetadata(output)
896
+ });
897
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
898
+ const doc = (0, import_smithy_client.take)(data, {
899
+ EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
900
+ NextToken: import_smithy_client.expectString,
901
+ ServiceSummaries: import_smithy_client._json,
902
+ StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
903
+ });
904
+ Object.assign(contents, doc);
905
+ return contents;
906
+ }, "de_ListServicesCommand");
907
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
908
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
909
+ return de_CommandError(output, context);
910
+ }
911
+ const contents = (0, import_smithy_client.map)({
912
+ $metadata: deserializeMetadata(output)
913
+ });
914
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
915
+ const doc = (0, import_smithy_client.take)(data, {
916
+ Tags: import_smithy_client._json
917
+ });
918
+ Object.assign(contents, doc);
919
+ return contents;
920
+ }, "de_ListTagsForResourceCommand");
921
+ var de_StartDiscoveryCommand = /* @__PURE__ */ __name(async (output, context) => {
922
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
923
+ return de_CommandError(output, context);
924
+ }
925
+ const contents = (0, import_smithy_client.map)({
926
+ $metadata: deserializeMetadata(output)
927
+ });
928
+ await (0, import_smithy_client.collectBody)(output.body, context);
929
+ return contents;
930
+ }, "de_StartDiscoveryCommand");
931
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
932
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
933
+ return de_CommandError(output, context);
934
+ }
935
+ const contents = (0, import_smithy_client.map)({
936
+ $metadata: deserializeMetadata(output)
937
+ });
938
+ await (0, import_smithy_client.collectBody)(output.body, context);
939
+ return contents;
940
+ }, "de_TagResourceCommand");
941
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
942
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
943
+ return de_CommandError(output, context);
944
+ }
945
+ const contents = (0, import_smithy_client.map)({
946
+ $metadata: deserializeMetadata(output)
947
+ });
948
+ await (0, import_smithy_client.collectBody)(output.body, context);
949
+ return contents;
950
+ }, "de_UntagResourceCommand");
951
+ var de_UpdateServiceLevelObjectiveCommand = /* @__PURE__ */ __name(async (output, context) => {
952
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
953
+ return de_CommandError(output, context);
954
+ }
955
+ const contents = (0, import_smithy_client.map)({
956
+ $metadata: deserializeMetadata(output)
957
+ });
958
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
959
+ const doc = (0, import_smithy_client.take)(data, {
960
+ Slo: /* @__PURE__ */ __name((_) => de_ServiceLevelObjective(_, context), "Slo")
961
+ });
962
+ Object.assign(contents, doc);
963
+ return contents;
964
+ }, "de_UpdateServiceLevelObjectiveCommand");
965
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
966
+ const parsedOutput = {
967
+ ...output,
968
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
969
+ };
970
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
971
+ switch (errorCode) {
972
+ case "ThrottlingException":
973
+ case "com.amazonaws.applicationsignals#ThrottlingException":
974
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
975
+ case "ValidationException":
976
+ case "com.amazonaws.applicationsignals#ValidationException":
977
+ throw await de_ValidationExceptionRes(parsedOutput, context);
978
+ case "ResourceNotFoundException":
979
+ case "com.amazonaws.applicationsignals#ResourceNotFoundException":
980
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
981
+ case "AccessDeniedException":
982
+ case "com.amazonaws.applicationsignals#AccessDeniedException":
983
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
984
+ case "ConflictException":
985
+ case "com.amazonaws.applicationsignals#ConflictException":
986
+ throw await de_ConflictExceptionRes(parsedOutput, context);
987
+ case "ServiceQuotaExceededException":
988
+ case "com.amazonaws.applicationsignals#ServiceQuotaExceededException":
989
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
990
+ default:
991
+ const parsedBody = parsedOutput.body;
992
+ return throwDefaultError({
993
+ output,
994
+ parsedBody,
995
+ errorCode
996
+ });
997
+ }
998
+ }, "de_CommandError");
999
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ApplicationSignalsServiceException);
1000
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1001
+ const contents = (0, import_smithy_client.map)({});
1002
+ const data = parsedOutput.body;
1003
+ const doc = (0, import_smithy_client.take)(data, {
1004
+ Message: import_smithy_client.expectString
1005
+ });
1006
+ Object.assign(contents, doc);
1007
+ const exception = new AccessDeniedException({
1008
+ $metadata: deserializeMetadata(parsedOutput),
1009
+ ...contents
1010
+ });
1011
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1012
+ }, "de_AccessDeniedExceptionRes");
1013
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1014
+ const contents = (0, import_smithy_client.map)({});
1015
+ const data = parsedOutput.body;
1016
+ const doc = (0, import_smithy_client.take)(data, {
1017
+ Message: import_smithy_client.expectString
1018
+ });
1019
+ Object.assign(contents, doc);
1020
+ const exception = new ConflictException({
1021
+ $metadata: deserializeMetadata(parsedOutput),
1022
+ ...contents
1023
+ });
1024
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1025
+ }, "de_ConflictExceptionRes");
1026
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1027
+ const contents = (0, import_smithy_client.map)({});
1028
+ const data = parsedOutput.body;
1029
+ const doc = (0, import_smithy_client.take)(data, {
1030
+ Message: import_smithy_client.expectString,
1031
+ ResourceId: import_smithy_client.expectString,
1032
+ ResourceType: import_smithy_client.expectString
1033
+ });
1034
+ Object.assign(contents, doc);
1035
+ const exception = new ResourceNotFoundException({
1036
+ $metadata: deserializeMetadata(parsedOutput),
1037
+ ...contents
1038
+ });
1039
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1040
+ }, "de_ResourceNotFoundExceptionRes");
1041
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1042
+ const contents = (0, import_smithy_client.map)({});
1043
+ const data = parsedOutput.body;
1044
+ const doc = (0, import_smithy_client.take)(data, {
1045
+ Message: import_smithy_client.expectString
1046
+ });
1047
+ Object.assign(contents, doc);
1048
+ const exception = new ServiceQuotaExceededException({
1049
+ $metadata: deserializeMetadata(parsedOutput),
1050
+ ...contents
1051
+ });
1052
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1053
+ }, "de_ServiceQuotaExceededExceptionRes");
1054
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1055
+ const contents = (0, import_smithy_client.map)({});
1056
+ const data = parsedOutput.body;
1057
+ const doc = (0, import_smithy_client.take)(data, {
1058
+ Message: import_smithy_client.expectString
1059
+ });
1060
+ Object.assign(contents, doc);
1061
+ const exception = new ThrottlingException({
1062
+ $metadata: deserializeMetadata(parsedOutput),
1063
+ ...contents
1064
+ });
1065
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1066
+ }, "de_ThrottlingExceptionRes");
1067
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1068
+ const contents = (0, import_smithy_client.map)({});
1069
+ const data = parsedOutput.body;
1070
+ const doc = (0, import_smithy_client.take)(data, {
1071
+ message: import_smithy_client.expectString
1072
+ });
1073
+ Object.assign(contents, doc);
1074
+ const exception = new ValidationException({
1075
+ $metadata: deserializeMetadata(parsedOutput),
1076
+ ...contents
1077
+ });
1078
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1079
+ }, "de_ValidationExceptionRes");
1080
+ var se_CalendarInterval = /* @__PURE__ */ __name((input, context) => {
1081
+ return (0, import_smithy_client.take)(input, {
1082
+ Duration: [],
1083
+ DurationUnit: [],
1084
+ StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1085
+ });
1086
+ }, "se_CalendarInterval");
1087
+ var se_ExclusionWindow = /* @__PURE__ */ __name((input, context) => {
1088
+ return (0, import_smithy_client.take)(input, {
1089
+ Reason: [],
1090
+ RecurrenceRule: import_smithy_client._json,
1091
+ StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime"),
1092
+ Window: import_smithy_client._json
1093
+ });
1094
+ }, "se_ExclusionWindow");
1095
+ var se_ExclusionWindows = /* @__PURE__ */ __name((input, context) => {
1096
+ return input.filter((e) => e != null).map((entry) => {
1097
+ return se_ExclusionWindow(entry, context);
1098
+ });
1099
+ }, "se_ExclusionWindows");
1100
+ var se_Goal = /* @__PURE__ */ __name((input, context) => {
1101
+ return (0, import_smithy_client.take)(input, {
1102
+ AttainmentGoal: import_smithy_client.serializeFloat,
1103
+ Interval: /* @__PURE__ */ __name((_) => se_Interval(_, context), "Interval"),
1104
+ WarningThreshold: import_smithy_client.serializeFloat
1105
+ });
1106
+ }, "se_Goal");
1107
+ var se_Interval = /* @__PURE__ */ __name((input, context) => {
1108
+ return Interval.visit(input, {
1109
+ CalendarInterval: /* @__PURE__ */ __name((value) => ({ CalendarInterval: se_CalendarInterval(value, context) }), "CalendarInterval"),
1110
+ RollingInterval: /* @__PURE__ */ __name((value) => ({ RollingInterval: (0, import_smithy_client._json)(value) }), "RollingInterval"),
1111
+ _: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
1112
+ });
1113
+ }, "se_Interval");
1114
+ var se_RequestBasedServiceLevelIndicatorConfig = /* @__PURE__ */ __name((input, context) => {
1115
+ return (0, import_smithy_client.take)(input, {
1116
+ ComparisonOperator: [],
1117
+ MetricThreshold: import_smithy_client.serializeFloat,
1118
+ RequestBasedSliMetricConfig: import_smithy_client._json
1119
+ });
1120
+ }, "se_RequestBasedServiceLevelIndicatorConfig");
1121
+ var se_ServiceLevelIndicatorConfig = /* @__PURE__ */ __name((input, context) => {
1122
+ return (0, import_smithy_client.take)(input, {
1123
+ ComparisonOperator: [],
1124
+ MetricThreshold: import_smithy_client.serializeFloat,
1125
+ SliMetricConfig: import_smithy_client._json
1126
+ });
1127
+ }, "se_ServiceLevelIndicatorConfig");
1128
+ var de_CalendarInterval = /* @__PURE__ */ __name((output, context) => {
1129
+ return (0, import_smithy_client.take)(output, {
1130
+ Duration: import_smithy_client.expectInt32,
1131
+ DurationUnit: import_smithy_client.expectString,
1132
+ StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime")
1133
+ });
1134
+ }, "de_CalendarInterval");
1135
+ var de_ExclusionWindow = /* @__PURE__ */ __name((output, context) => {
1136
+ return (0, import_smithy_client.take)(output, {
1137
+ Reason: import_smithy_client.expectString,
1138
+ RecurrenceRule: import_smithy_client._json,
1139
+ StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1140
+ Window: import_smithy_client._json
1141
+ });
1142
+ }, "de_ExclusionWindow");
1143
+ var de_ExclusionWindows = /* @__PURE__ */ __name((output, context) => {
1144
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1145
+ return de_ExclusionWindow(entry, context);
1146
+ });
1147
+ return retVal;
1148
+ }, "de_ExclusionWindows");
1149
+ var de_Goal = /* @__PURE__ */ __name((output, context) => {
1150
+ return (0, import_smithy_client.take)(output, {
1151
+ AttainmentGoal: import_smithy_client.limitedParseDouble,
1152
+ Interval: /* @__PURE__ */ __name((_) => de_Interval((0, import_core2.awsExpectUnion)(_), context), "Interval"),
1153
+ WarningThreshold: import_smithy_client.limitedParseDouble
1154
+ });
1155
+ }, "de_Goal");
1156
+ var de_Interval = /* @__PURE__ */ __name((output, context) => {
1157
+ if (output.CalendarInterval != null) {
1158
+ return {
1159
+ CalendarInterval: de_CalendarInterval(output.CalendarInterval, context)
1160
+ };
1161
+ }
1162
+ if (output.RollingInterval != null) {
1163
+ return {
1164
+ RollingInterval: (0, import_smithy_client._json)(output.RollingInterval)
1165
+ };
1166
+ }
1167
+ return { $unknown: Object.entries(output)[0] };
1168
+ }, "de_Interval");
1169
+ var de_RequestBasedServiceLevelIndicator = /* @__PURE__ */ __name((output, context) => {
1170
+ return (0, import_smithy_client.take)(output, {
1171
+ ComparisonOperator: import_smithy_client.expectString,
1172
+ MetricThreshold: import_smithy_client.limitedParseDouble,
1173
+ RequestBasedSliMetric: import_smithy_client._json
1174
+ });
1175
+ }, "de_RequestBasedServiceLevelIndicator");
1176
+ var de_ServiceLevelIndicator = /* @__PURE__ */ __name((output, context) => {
1177
+ return (0, import_smithy_client.take)(output, {
1178
+ ComparisonOperator: import_smithy_client.expectString,
1179
+ MetricThreshold: import_smithy_client.limitedParseDouble,
1180
+ SliMetric: import_smithy_client._json
1181
+ });
1182
+ }, "de_ServiceLevelIndicator");
1183
+ var de_ServiceLevelObjective = /* @__PURE__ */ __name((output, context) => {
1184
+ return (0, import_smithy_client.take)(output, {
1185
+ Arn: import_smithy_client.expectString,
1186
+ BurnRateConfigurations: import_smithy_client._json,
1187
+ CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1188
+ Description: import_smithy_client.expectString,
1189
+ EvaluationType: import_smithy_client.expectString,
1190
+ Goal: /* @__PURE__ */ __name((_) => de_Goal(_, context), "Goal"),
1191
+ LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1192
+ MetricSourceType: import_smithy_client.expectString,
1193
+ Name: import_smithy_client.expectString,
1194
+ RequestBasedSli: /* @__PURE__ */ __name((_) => de_RequestBasedServiceLevelIndicator(_, context), "RequestBasedSli"),
1195
+ Sli: /* @__PURE__ */ __name((_) => de_ServiceLevelIndicator(_, context), "Sli")
1196
+ });
1197
+ }, "de_ServiceLevelObjective");
1198
+ var de_ServiceLevelObjectiveBudgetReport = /* @__PURE__ */ __name((output, context) => {
1199
+ return (0, import_smithy_client.take)(output, {
1200
+ Arn: import_smithy_client.expectString,
1201
+ Attainment: import_smithy_client.limitedParseDouble,
1202
+ BudgetRequestsRemaining: import_smithy_client.expectInt32,
1203
+ BudgetSecondsRemaining: import_smithy_client.expectInt32,
1204
+ BudgetStatus: import_smithy_client.expectString,
1205
+ EvaluationType: import_smithy_client.expectString,
1206
+ Goal: /* @__PURE__ */ __name((_) => de_Goal(_, context), "Goal"),
1207
+ Name: import_smithy_client.expectString,
1208
+ RequestBasedSli: /* @__PURE__ */ __name((_) => de_RequestBasedServiceLevelIndicator(_, context), "RequestBasedSli"),
1209
+ Sli: /* @__PURE__ */ __name((_) => de_ServiceLevelIndicator(_, context), "Sli"),
1210
+ TotalBudgetRequests: import_smithy_client.expectInt32,
1211
+ TotalBudgetSeconds: import_smithy_client.expectInt32
1212
+ });
1213
+ }, "de_ServiceLevelObjectiveBudgetReport");
1214
+ var de_ServiceLevelObjectiveBudgetReports = /* @__PURE__ */ __name((output, context) => {
1215
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1216
+ return de_ServiceLevelObjectiveBudgetReport(entry, context);
1217
+ });
1218
+ return retVal;
1219
+ }, "de_ServiceLevelObjectiveBudgetReports");
1220
+ var de_ServiceLevelObjectiveSummaries = /* @__PURE__ */ __name((output, context) => {
1221
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1222
+ return de_ServiceLevelObjectiveSummary(entry, context);
1223
+ });
1224
+ return retVal;
1225
+ }, "de_ServiceLevelObjectiveSummaries");
1226
+ var de_ServiceLevelObjectiveSummary = /* @__PURE__ */ __name((output, context) => {
1227
+ return (0, import_smithy_client.take)(output, {
1228
+ Arn: import_smithy_client.expectString,
1229
+ CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1230
+ DependencyConfig: import_smithy_client._json,
1231
+ EvaluationType: import_smithy_client.expectString,
1232
+ KeyAttributes: import_smithy_client._json,
1233
+ MetricSourceType: import_smithy_client.expectString,
1234
+ Name: import_smithy_client.expectString,
1235
+ OperationName: import_smithy_client.expectString
1236
+ });
1237
+ }, "de_ServiceLevelObjectiveSummary");
1238
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1239
+ httpStatusCode: output.statusCode,
1240
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1241
+ extendedRequestId: output.headers["x-amz-id-2"],
1242
+ cfId: output.headers["x-amz-cf-id"]
1243
+ }), "deserializeMetadata");
1244
+ var _AAI = "AwsAccountId";
1245
+ var _ET = "EndTime";
1246
+ var _ILA = "IncludeLinkedAccounts";
1247
+ var _MR = "MaxResults";
1248
+ var _NT = "NextToken";
1249
+ var _ON = "OperationName";
1250
+ var _RA = "ResourceArn";
1251
+ var _SOAAI = "SloOwnerAwsAccountId";
1252
+ var _ST = "StartTime";
1253
+
1254
+ // src/commands/BatchGetServiceLevelObjectiveBudgetReportCommand.ts
1255
+ var BatchGetServiceLevelObjectiveBudgetReportCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1256
+ return [
1257
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1258
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1259
+ ];
1260
+ }).s("ApplicationSignals", "BatchGetServiceLevelObjectiveBudgetReport", {}).n("ApplicationSignalsClient", "BatchGetServiceLevelObjectiveBudgetReportCommand").f(void 0, void 0).ser(se_BatchGetServiceLevelObjectiveBudgetReportCommand).de(de_BatchGetServiceLevelObjectiveBudgetReportCommand).build() {
1261
+ static {
1262
+ __name(this, "BatchGetServiceLevelObjectiveBudgetReportCommand");
1263
+ }
1264
+ };
1265
+
1266
+ // src/commands/BatchUpdateExclusionWindowsCommand.ts
1267
+
1268
+
1269
+
1270
+ var BatchUpdateExclusionWindowsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1271
+ return [
1272
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1273
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1274
+ ];
1275
+ }).s("ApplicationSignals", "BatchUpdateExclusionWindows", {}).n("ApplicationSignalsClient", "BatchUpdateExclusionWindowsCommand").f(void 0, void 0).ser(se_BatchUpdateExclusionWindowsCommand).de(de_BatchUpdateExclusionWindowsCommand).build() {
1276
+ static {
1277
+ __name(this, "BatchUpdateExclusionWindowsCommand");
1278
+ }
1279
+ };
1280
+
1281
+ // src/commands/CreateServiceLevelObjectiveCommand.ts
1282
+
1283
+
1284
+
1285
+ var CreateServiceLevelObjectiveCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1286
+ return [
1287
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1288
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1289
+ ];
1290
+ }).s("ApplicationSignals", "CreateServiceLevelObjective", {}).n("ApplicationSignalsClient", "CreateServiceLevelObjectiveCommand").f(void 0, void 0).ser(se_CreateServiceLevelObjectiveCommand).de(de_CreateServiceLevelObjectiveCommand).build() {
1291
+ static {
1292
+ __name(this, "CreateServiceLevelObjectiveCommand");
1293
+ }
1294
+ };
1295
+
1296
+ // src/commands/DeleteServiceLevelObjectiveCommand.ts
1297
+
1298
+
1299
+
1300
+ var DeleteServiceLevelObjectiveCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1301
+ return [
1302
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1303
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1304
+ ];
1305
+ }).s("ApplicationSignals", "DeleteServiceLevelObjective", {}).n("ApplicationSignalsClient", "DeleteServiceLevelObjectiveCommand").f(void 0, void 0).ser(se_DeleteServiceLevelObjectiveCommand).de(de_DeleteServiceLevelObjectiveCommand).build() {
1306
+ static {
1307
+ __name(this, "DeleteServiceLevelObjectiveCommand");
1308
+ }
1309
+ };
1310
+
1311
+ // src/commands/GetServiceCommand.ts
1312
+
1313
+
1314
+
1315
+ var GetServiceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1316
+ return [
1317
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1318
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1319
+ ];
1320
+ }).s("ApplicationSignals", "GetService", {}).n("ApplicationSignalsClient", "GetServiceCommand").f(void 0, void 0).ser(se_GetServiceCommand).de(de_GetServiceCommand).build() {
1321
+ static {
1322
+ __name(this, "GetServiceCommand");
1323
+ }
1324
+ };
1325
+
1326
+ // src/commands/GetServiceLevelObjectiveCommand.ts
1327
+
1328
+
1329
+
1330
+ var GetServiceLevelObjectiveCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1331
+ return [
1332
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1333
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1334
+ ];
1335
+ }).s("ApplicationSignals", "GetServiceLevelObjective", {}).n("ApplicationSignalsClient", "GetServiceLevelObjectiveCommand").f(void 0, void 0).ser(se_GetServiceLevelObjectiveCommand).de(de_GetServiceLevelObjectiveCommand).build() {
1336
+ static {
1337
+ __name(this, "GetServiceLevelObjectiveCommand");
1338
+ }
1339
+ };
1340
+
1341
+ // src/commands/ListServiceDependenciesCommand.ts
1342
+
1343
+
1344
+
1345
+ var ListServiceDependenciesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1346
+ return [
1347
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1348
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1349
+ ];
1350
+ }).s("ApplicationSignals", "ListServiceDependencies", {}).n("ApplicationSignalsClient", "ListServiceDependenciesCommand").f(void 0, void 0).ser(se_ListServiceDependenciesCommand).de(de_ListServiceDependenciesCommand).build() {
1351
+ static {
1352
+ __name(this, "ListServiceDependenciesCommand");
1353
+ }
1354
+ };
1355
+
1356
+ // src/commands/ListServiceDependentsCommand.ts
1357
+
1358
+
1359
+
1360
+ var ListServiceDependentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1361
+ return [
1362
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1363
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1364
+ ];
1365
+ }).s("ApplicationSignals", "ListServiceDependents", {}).n("ApplicationSignalsClient", "ListServiceDependentsCommand").f(void 0, void 0).ser(se_ListServiceDependentsCommand).de(de_ListServiceDependentsCommand).build() {
1366
+ static {
1367
+ __name(this, "ListServiceDependentsCommand");
1368
+ }
1369
+ };
1370
+
1371
+ // src/commands/ListServiceLevelObjectiveExclusionWindowsCommand.ts
1372
+
1373
+
1374
+
1375
+ var ListServiceLevelObjectiveExclusionWindowsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1376
+ return [
1377
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1378
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1379
+ ];
1380
+ }).s("ApplicationSignals", "ListServiceLevelObjectiveExclusionWindows", {}).n("ApplicationSignalsClient", "ListServiceLevelObjectiveExclusionWindowsCommand").f(void 0, void 0).ser(se_ListServiceLevelObjectiveExclusionWindowsCommand).de(de_ListServiceLevelObjectiveExclusionWindowsCommand).build() {
1381
+ static {
1382
+ __name(this, "ListServiceLevelObjectiveExclusionWindowsCommand");
1383
+ }
1384
+ };
1385
+
1386
+ // src/commands/ListServiceLevelObjectivesCommand.ts
1387
+
1388
+
1389
+
1390
+ var ListServiceLevelObjectivesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1391
+ return [
1392
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1393
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1394
+ ];
1395
+ }).s("ApplicationSignals", "ListServiceLevelObjectives", {}).n("ApplicationSignalsClient", "ListServiceLevelObjectivesCommand").f(void 0, void 0).ser(se_ListServiceLevelObjectivesCommand).de(de_ListServiceLevelObjectivesCommand).build() {
1396
+ static {
1397
+ __name(this, "ListServiceLevelObjectivesCommand");
1398
+ }
1399
+ };
1400
+
1401
+ // src/commands/ListServiceOperationsCommand.ts
1402
+
1403
+
1404
+
1405
+ var ListServiceOperationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1406
+ return [
1407
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1408
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1409
+ ];
1410
+ }).s("ApplicationSignals", "ListServiceOperations", {}).n("ApplicationSignalsClient", "ListServiceOperationsCommand").f(void 0, void 0).ser(se_ListServiceOperationsCommand).de(de_ListServiceOperationsCommand).build() {
1411
+ static {
1412
+ __name(this, "ListServiceOperationsCommand");
1413
+ }
1414
+ };
1415
+
1416
+ // src/commands/ListServicesCommand.ts
1417
+
1418
+
1419
+
1420
+ var ListServicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1421
+ return [
1422
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1423
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1424
+ ];
1425
+ }).s("ApplicationSignals", "ListServices", {}).n("ApplicationSignalsClient", "ListServicesCommand").f(void 0, void 0).ser(se_ListServicesCommand).de(de_ListServicesCommand).build() {
1426
+ static {
1427
+ __name(this, "ListServicesCommand");
1428
+ }
1429
+ };
1430
+
1431
+ // src/commands/ListTagsForResourceCommand.ts
1432
+
1433
+
1434
+
1435
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1436
+ return [
1437
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1438
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1439
+ ];
1440
+ }).s("ApplicationSignals", "ListTagsForResource", {}).n("ApplicationSignalsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1441
+ static {
1442
+ __name(this, "ListTagsForResourceCommand");
1443
+ }
1444
+ };
1445
+
1446
+ // src/commands/StartDiscoveryCommand.ts
1447
+
1448
+
1449
+
1450
+ var StartDiscoveryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1451
+ return [
1452
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1453
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1454
+ ];
1455
+ }).s("ApplicationSignals", "StartDiscovery", {}).n("ApplicationSignalsClient", "StartDiscoveryCommand").f(void 0, void 0).ser(se_StartDiscoveryCommand).de(de_StartDiscoveryCommand).build() {
1456
+ static {
1457
+ __name(this, "StartDiscoveryCommand");
1458
+ }
1459
+ };
1460
+
1461
+ // src/commands/TagResourceCommand.ts
1462
+
1463
+
1464
+
1465
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1466
+ return [
1467
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1468
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1469
+ ];
1470
+ }).s("ApplicationSignals", "TagResource", {}).n("ApplicationSignalsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1471
+ static {
1472
+ __name(this, "TagResourceCommand");
1473
+ }
1474
+ };
1475
+
1476
+ // src/commands/UntagResourceCommand.ts
1477
+
1478
+
1479
+
1480
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1481
+ return [
1482
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1483
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1484
+ ];
1485
+ }).s("ApplicationSignals", "UntagResource", {}).n("ApplicationSignalsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1486
+ static {
1487
+ __name(this, "UntagResourceCommand");
1488
+ }
1489
+ };
1490
+
1491
+ // src/commands/UpdateServiceLevelObjectiveCommand.ts
1492
+
1493
+
1494
+
1495
+ var UpdateServiceLevelObjectiveCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1496
+ return [
1497
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1498
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1499
+ ];
1500
+ }).s("ApplicationSignals", "UpdateServiceLevelObjective", {}).n("ApplicationSignalsClient", "UpdateServiceLevelObjectiveCommand").f(void 0, void 0).ser(se_UpdateServiceLevelObjectiveCommand).de(de_UpdateServiceLevelObjectiveCommand).build() {
1501
+ static {
1502
+ __name(this, "UpdateServiceLevelObjectiveCommand");
1503
+ }
1504
+ };
1505
+
1506
+ // src/ApplicationSignals.ts
1507
+ var commands = {
1508
+ BatchGetServiceLevelObjectiveBudgetReportCommand,
1509
+ BatchUpdateExclusionWindowsCommand,
1510
+ CreateServiceLevelObjectiveCommand,
1511
+ DeleteServiceLevelObjectiveCommand,
1512
+ GetServiceCommand,
1513
+ GetServiceLevelObjectiveCommand,
1514
+ ListServiceDependenciesCommand,
1515
+ ListServiceDependentsCommand,
1516
+ ListServiceLevelObjectiveExclusionWindowsCommand,
1517
+ ListServiceLevelObjectivesCommand,
1518
+ ListServiceOperationsCommand,
1519
+ ListServicesCommand,
1520
+ ListTagsForResourceCommand,
1521
+ StartDiscoveryCommand,
1522
+ TagResourceCommand,
1523
+ UntagResourceCommand,
1524
+ UpdateServiceLevelObjectiveCommand
1525
+ };
1526
+ var ApplicationSignals = class extends ApplicationSignalsClient {
1527
+ static {
1528
+ __name(this, "ApplicationSignals");
1529
+ }
1530
+ };
1531
+ (0, import_smithy_client.createAggregatedClient)(commands, ApplicationSignals);
1532
+
1533
+ // src/pagination/ListServiceDependenciesPaginator.ts
1534
+
1535
+ var paginateListServiceDependencies = (0, import_core.createPaginator)(ApplicationSignalsClient, ListServiceDependenciesCommand, "NextToken", "NextToken", "MaxResults");
1536
+
1537
+ // src/pagination/ListServiceDependentsPaginator.ts
1538
+
1539
+ var paginateListServiceDependents = (0, import_core.createPaginator)(ApplicationSignalsClient, ListServiceDependentsCommand, "NextToken", "NextToken", "MaxResults");
1540
+
1541
+ // src/pagination/ListServiceLevelObjectiveExclusionWindowsPaginator.ts
1542
+
1543
+ var paginateListServiceLevelObjectiveExclusionWindows = (0, import_core.createPaginator)(ApplicationSignalsClient, ListServiceLevelObjectiveExclusionWindowsCommand, "NextToken", "NextToken", "MaxResults");
1544
+
1545
+ // src/pagination/ListServiceLevelObjectivesPaginator.ts
1546
+
1547
+ var paginateListServiceLevelObjectives = (0, import_core.createPaginator)(ApplicationSignalsClient, ListServiceLevelObjectivesCommand, "NextToken", "NextToken", "MaxResults");
1548
+
1549
+ // src/pagination/ListServiceOperationsPaginator.ts
1550
+
1551
+ var paginateListServiceOperations = (0, import_core.createPaginator)(ApplicationSignalsClient, ListServiceOperationsCommand, "NextToken", "NextToken", "MaxResults");
1552
+
1553
+ // src/pagination/ListServicesPaginator.ts
1554
+
1555
+ var paginateListServices = (0, import_core.createPaginator)(ApplicationSignalsClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
1556
+ // Annotate the CommonJS export names for ESM import in node:
1557
+
1558
+ 0 && (module.exports = {
1559
+ ApplicationSignalsServiceException,
1560
+ __Client,
1561
+ ApplicationSignalsClient,
1562
+ ApplicationSignals,
1563
+ $Command,
1564
+ BatchGetServiceLevelObjectiveBudgetReportCommand,
1565
+ BatchUpdateExclusionWindowsCommand,
1566
+ CreateServiceLevelObjectiveCommand,
1567
+ DeleteServiceLevelObjectiveCommand,
1568
+ GetServiceCommand,
1569
+ GetServiceLevelObjectiveCommand,
1570
+ ListServiceDependenciesCommand,
1571
+ ListServiceDependentsCommand,
1572
+ ListServiceLevelObjectiveExclusionWindowsCommand,
1573
+ ListServiceLevelObjectivesCommand,
1574
+ ListServiceOperationsCommand,
1575
+ ListServicesCommand,
1576
+ ListTagsForResourceCommand,
1577
+ StartDiscoveryCommand,
1578
+ TagResourceCommand,
1579
+ UntagResourceCommand,
1580
+ UpdateServiceLevelObjectiveCommand,
1581
+ paginateListServiceDependencies,
1582
+ paginateListServiceDependents,
1583
+ paginateListServiceLevelObjectiveExclusionWindows,
1584
+ paginateListServiceLevelObjectives,
1585
+ paginateListServiceOperations,
1586
+ paginateListServices,
1587
+ AccessDeniedException,
1588
+ ServiceLevelObjectiveBudgetStatus,
1589
+ EvaluationType,
1590
+ DurationUnit,
1591
+ Interval,
1592
+ ServiceLevelIndicatorComparisonOperator,
1593
+ ServiceLevelIndicatorMetricType,
1594
+ StandardUnit,
1595
+ MonitoredRequestCountMetricDataQueries,
1596
+ ThrottlingException,
1597
+ ValidationException,
1598
+ ResourceNotFoundException,
1599
+ ConflictException,
1600
+ MetricSourceType,
1601
+ ServiceQuotaExceededException
1602
+ });
1603
+