@aws-sdk/client-application-insights 3.901.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +1880 -2023
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2093 +1,1950 @@
1
- "use strict";
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
- AddWorkloadCommand: () => AddWorkloadCommand,
26
- ApplicationInsights: () => ApplicationInsights,
27
- ApplicationInsightsClient: () => ApplicationInsightsClient,
28
- ApplicationInsightsServiceException: () => ApplicationInsightsServiceException,
29
- BadRequestException: () => BadRequestException,
30
- CloudWatchEventSource: () => CloudWatchEventSource,
31
- ConfigurationEventResourceType: () => ConfigurationEventResourceType,
32
- ConfigurationEventStatus: () => ConfigurationEventStatus,
33
- CreateApplicationCommand: () => CreateApplicationCommand,
34
- CreateComponentCommand: () => CreateComponentCommand,
35
- CreateLogPatternCommand: () => CreateLogPatternCommand,
36
- DeleteApplicationCommand: () => DeleteApplicationCommand,
37
- DeleteComponentCommand: () => DeleteComponentCommand,
38
- DeleteLogPatternCommand: () => DeleteLogPatternCommand,
39
- DescribeApplicationCommand: () => DescribeApplicationCommand,
40
- DescribeComponentCommand: () => DescribeComponentCommand,
41
- DescribeComponentConfigurationCommand: () => DescribeComponentConfigurationCommand,
42
- DescribeComponentConfigurationRecommendationCommand: () => DescribeComponentConfigurationRecommendationCommand,
43
- DescribeLogPatternCommand: () => DescribeLogPatternCommand,
44
- DescribeObservationCommand: () => DescribeObservationCommand,
45
- DescribeProblemCommand: () => DescribeProblemCommand,
46
- DescribeProblemObservationsCommand: () => DescribeProblemObservationsCommand,
47
- DescribeWorkloadCommand: () => DescribeWorkloadCommand,
48
- DiscoveryType: () => DiscoveryType,
49
- FeedbackKey: () => FeedbackKey,
50
- FeedbackValue: () => FeedbackValue,
51
- GroupingType: () => GroupingType,
52
- InternalServerException: () => InternalServerException,
53
- ListApplicationsCommand: () => ListApplicationsCommand,
54
- ListComponentsCommand: () => ListComponentsCommand,
55
- ListConfigurationHistoryCommand: () => ListConfigurationHistoryCommand,
56
- ListLogPatternSetsCommand: () => ListLogPatternSetsCommand,
57
- ListLogPatternsCommand: () => ListLogPatternsCommand,
58
- ListProblemsCommand: () => ListProblemsCommand,
59
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
60
- ListWorkloadsCommand: () => ListWorkloadsCommand,
61
- LogFilter: () => LogFilter,
62
- OsType: () => OsType,
63
- RecommendationType: () => RecommendationType,
64
- RemoveWorkloadCommand: () => RemoveWorkloadCommand,
65
- ResolutionMethod: () => ResolutionMethod,
66
- ResourceInUseException: () => ResourceInUseException,
67
- ResourceNotFoundException: () => ResourceNotFoundException,
68
- SeverityLevel: () => SeverityLevel,
69
- Status: () => Status,
70
- TagResourceCommand: () => TagResourceCommand,
71
- TagsAlreadyExistException: () => TagsAlreadyExistException,
72
- Tier: () => Tier,
73
- TooManyTagsException: () => TooManyTagsException,
74
- UntagResourceCommand: () => UntagResourceCommand,
75
- UpdateApplicationCommand: () => UpdateApplicationCommand,
76
- UpdateComponentCommand: () => UpdateComponentCommand,
77
- UpdateComponentConfigurationCommand: () => UpdateComponentConfigurationCommand,
78
- UpdateLogPatternCommand: () => UpdateLogPatternCommand,
79
- UpdateProblemCommand: () => UpdateProblemCommand,
80
- UpdateStatus: () => UpdateStatus,
81
- UpdateWorkloadCommand: () => UpdateWorkloadCommand,
82
- ValidationException: () => ValidationException,
83
- Visibility: () => Visibility,
84
- __Client: () => import_smithy_client.Client,
85
- paginateListApplications: () => paginateListApplications,
86
- paginateListComponents: () => paginateListComponents,
87
- paginateListConfigurationHistory: () => paginateListConfigurationHistory,
88
- paginateListLogPatternSets: () => paginateListLogPatternSets,
89
- paginateListLogPatterns: () => paginateListLogPatterns,
90
- paginateListProblems: () => paginateListProblems,
91
- paginateListWorkloads: () => paginateListWorkloads
92
- });
93
- module.exports = __toCommonJS(index_exports);
94
-
95
- // src/ApplicationInsightsClient.ts
96
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
97
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
98
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
99
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
100
- var import_config_resolver = require("@smithy/config-resolver");
101
- var import_core = require("@smithy/core");
102
- var import_middleware_content_length = require("@smithy/middleware-content-length");
103
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
104
- var import_middleware_retry = require("@smithy/middleware-retry");
105
-
106
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
107
-
108
- // src/endpoint/EndpointParameters.ts
109
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
110
- return Object.assign(options, {
111
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
112
- useFipsEndpoint: options.useFipsEndpoint ?? false,
113
- defaultSigningName: "applicationinsights"
114
- });
115
- }, "resolveClientEndpointParameters");
116
- var commonParams = {
117
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
118
- Endpoint: { type: "builtInParams", name: "endpoint" },
119
- Region: { type: "builtInParams", name: "region" },
120
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+
20
+ const resolveClientEndpointParameters = (options) => {
21
+ return Object.assign(options, {
22
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
23
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
24
+ defaultSigningName: "applicationinsights",
25
+ });
121
26
  };
122
-
123
- // src/ApplicationInsightsClient.ts
124
- var import_runtimeConfig = require("././runtimeConfig");
125
-
126
- // src/runtimeExtensions.ts
127
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
128
- var import_protocol_http = require("@smithy/protocol-http");
129
- var import_smithy_client = require("@smithy/smithy-client");
130
-
131
- // src/auth/httpAuthExtensionConfiguration.ts
132
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
133
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
134
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
135
- let _credentials = runtimeConfig.credentials;
136
- return {
137
- setHttpAuthScheme(httpAuthScheme) {
138
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
139
- if (index === -1) {
140
- _httpAuthSchemes.push(httpAuthScheme);
141
- } else {
142
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
143
- }
144
- },
145
- httpAuthSchemes() {
146
- return _httpAuthSchemes;
147
- },
148
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
149
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
150
- },
151
- httpAuthSchemeProvider() {
152
- return _httpAuthSchemeProvider;
153
- },
154
- setCredentials(credentials) {
155
- _credentials = credentials;
156
- },
157
- credentials() {
158
- return _credentials;
27
+ const commonParams = {
28
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
29
+ Endpoint: { type: "builtInParams", name: "endpoint" },
30
+ Region: { type: "builtInParams", name: "region" },
31
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
+ };
33
+
34
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
37
+ let _credentials = runtimeConfig.credentials;
38
+ return {
39
+ setHttpAuthScheme(httpAuthScheme) {
40
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
41
+ if (index === -1) {
42
+ _httpAuthSchemes.push(httpAuthScheme);
43
+ }
44
+ else {
45
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
46
+ }
47
+ },
48
+ httpAuthSchemes() {
49
+ return _httpAuthSchemes;
50
+ },
51
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
52
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
53
+ },
54
+ httpAuthSchemeProvider() {
55
+ return _httpAuthSchemeProvider;
56
+ },
57
+ setCredentials(credentials) {
58
+ _credentials = credentials;
59
+ },
60
+ credentials() {
61
+ return _credentials;
62
+ },
63
+ };
64
+ };
65
+ const resolveHttpAuthRuntimeConfig = (config) => {
66
+ return {
67
+ httpAuthSchemes: config.httpAuthSchemes(),
68
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
69
+ credentials: config.credentials(),
70
+ };
71
+ };
72
+
73
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
74
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
75
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
76
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
77
+ };
78
+
79
+ class ApplicationInsightsClient extends smithyClient.Client {
80
+ config;
81
+ constructor(...[configuration]) {
82
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
83
+ super(_config_0);
84
+ this.initConfig = _config_0;
85
+ const _config_1 = resolveClientEndpointParameters(_config_0);
86
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
87
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
88
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
89
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
90
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
91
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
92
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
93
+ this.config = _config_8;
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultApplicationInsightsHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
159
107
  }
160
- };
161
- }, "getHttpAuthExtensionConfiguration");
162
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
163
- return {
164
- httpAuthSchemes: config.httpAuthSchemes(),
165
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
166
- credentials: config.credentials()
167
- };
168
- }, "resolveHttpAuthRuntimeConfig");
169
-
170
- // src/runtimeExtensions.ts
171
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
172
- const extensionConfiguration = Object.assign(
173
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
174
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
175
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
176
- getHttpAuthExtensionConfiguration(runtimeConfig)
177
- );
178
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
179
- return Object.assign(
180
- runtimeConfig,
181
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
182
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
183
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
184
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
185
- );
186
- }, "resolveRuntimeExtensions");
187
-
188
- // src/ApplicationInsightsClient.ts
189
- var ApplicationInsightsClient = class extends import_smithy_client.Client {
190
- static {
191
- __name(this, "ApplicationInsightsClient");
192
- }
193
- /**
194
- * The resolved configuration of ApplicationInsightsClient class. This is resolved and normalized from the {@link ApplicationInsightsClientConfig | constructor configuration interface}.
195
- */
196
- config;
197
- constructor(...[configuration]) {
198
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
199
- super(_config_0);
200
- this.initConfig = _config_0;
201
- const _config_1 = resolveClientEndpointParameters(_config_0);
202
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
203
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
204
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
205
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
206
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
207
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
208
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
209
- this.config = _config_8;
210
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
211
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
212
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
213
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
214
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
215
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
216
- this.middlewareStack.use(
217
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
218
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultApplicationInsightsHttpAuthSchemeParametersProvider,
219
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
220
- "aws.auth#sigv4": config.credentials
221
- }), "identityProviderConfigProvider")
222
- })
223
- );
224
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
225
- }
226
- /**
227
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
228
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
229
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
230
- */
231
- destroy() {
232
- super.destroy();
233
- }
234
- };
235
-
236
- // src/ApplicationInsights.ts
237
-
238
-
239
- // src/commands/AddWorkloadCommand.ts
240
-
241
- var import_middleware_serde = require("@smithy/middleware-serde");
242
-
243
-
244
- // src/protocols/Aws_json1_1.ts
245
- var import_core2 = require("@aws-sdk/core");
246
-
247
-
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
248
112
 
249
- // src/models/ApplicationInsightsServiceException.ts
113
+ class ApplicationInsightsServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, ApplicationInsightsServiceException.prototype);
117
+ }
118
+ }
250
119
 
251
- var ApplicationInsightsServiceException = class _ApplicationInsightsServiceException extends import_smithy_client.ServiceException {
252
- static {
253
- __name(this, "ApplicationInsightsServiceException");
254
- }
255
- /**
256
- * @internal
257
- */
258
- constructor(options) {
259
- super(options);
260
- Object.setPrototypeOf(this, _ApplicationInsightsServiceException.prototype);
261
- }
120
+ class AccessDeniedException extends ApplicationInsightsServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ Message;
124
+ constructor(opts) {
125
+ super({
126
+ name: "AccessDeniedException",
127
+ $fault: "client",
128
+ ...opts,
129
+ });
130
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
+ this.Message = opts.Message;
132
+ }
133
+ }
134
+ const Tier = {
135
+ ACTIVE_DIRECTORY: "ACTIVE_DIRECTORY",
136
+ CUSTOM: "CUSTOM",
137
+ DEFAULT: "DEFAULT",
138
+ DOT_NET_CORE: "DOT_NET_CORE",
139
+ DOT_NET_WEB: "DOT_NET_WEB",
140
+ DOT_NET_WEB_TIER: "DOT_NET_WEB_TIER",
141
+ DOT_NET_WORKER: "DOT_NET_WORKER",
142
+ JAVA_JMX: "JAVA_JMX",
143
+ MYSQL: "MYSQL",
144
+ ORACLE: "ORACLE",
145
+ POSTGRESQL: "POSTGRESQL",
146
+ SAP_ASE_HIGH_AVAILABILITY: "SAP_ASE_HIGH_AVAILABILITY",
147
+ SAP_ASE_SINGLE_NODE: "SAP_ASE_SINGLE_NODE",
148
+ SAP_HANA_HIGH_AVAILABILITY: "SAP_HANA_HIGH_AVAILABILITY",
149
+ SAP_HANA_MULTI_NODE: "SAP_HANA_MULTI_NODE",
150
+ SAP_HANA_SINGLE_NODE: "SAP_HANA_SINGLE_NODE",
151
+ SAP_NETWEAVER_DISTRIBUTED: "SAP_NETWEAVER_DISTRIBUTED",
152
+ SAP_NETWEAVER_HIGH_AVAILABILITY: "SAP_NETWEAVER_HIGH_AVAILABILITY",
153
+ SAP_NETWEAVER_STANDARD: "SAP_NETWEAVER_STANDARD",
154
+ SHAREPOINT: "SHAREPOINT",
155
+ SQL_SERVER: "SQL_SERVER",
156
+ SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP: "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP",
157
+ SQL_SERVER_FAILOVER_CLUSTER_INSTANCE: "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE",
158
+ };
159
+ class InternalServerException extends ApplicationInsightsServiceException {
160
+ name = "InternalServerException";
161
+ $fault = "server";
162
+ Message;
163
+ constructor(opts) {
164
+ super({
165
+ name: "InternalServerException",
166
+ $fault: "server",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, InternalServerException.prototype);
170
+ this.Message = opts.Message;
171
+ }
172
+ }
173
+ class ResourceInUseException extends ApplicationInsightsServiceException {
174
+ name = "ResourceInUseException";
175
+ $fault = "client";
176
+ Message;
177
+ constructor(opts) {
178
+ super({
179
+ name: "ResourceInUseException",
180
+ $fault: "client",
181
+ ...opts,
182
+ });
183
+ Object.setPrototypeOf(this, ResourceInUseException.prototype);
184
+ this.Message = opts.Message;
185
+ }
186
+ }
187
+ class ResourceNotFoundException extends ApplicationInsightsServiceException {
188
+ name = "ResourceNotFoundException";
189
+ $fault = "client";
190
+ Message;
191
+ constructor(opts) {
192
+ super({
193
+ name: "ResourceNotFoundException",
194
+ $fault: "client",
195
+ ...opts,
196
+ });
197
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
198
+ this.Message = opts.Message;
199
+ }
200
+ }
201
+ class ValidationException extends ApplicationInsightsServiceException {
202
+ name = "ValidationException";
203
+ $fault = "client";
204
+ Message;
205
+ constructor(opts) {
206
+ super({
207
+ name: "ValidationException",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, ValidationException.prototype);
212
+ this.Message = opts.Message;
213
+ }
214
+ }
215
+ const OsType = {
216
+ LINUX: "LINUX",
217
+ WINDOWS: "WINDOWS",
218
+ };
219
+ const DiscoveryType = {
220
+ ACCOUNT_BASED: "ACCOUNT_BASED",
221
+ RESOURCE_GROUP_BASED: "RESOURCE_GROUP_BASED",
222
+ };
223
+ class BadRequestException extends ApplicationInsightsServiceException {
224
+ name = "BadRequestException";
225
+ $fault = "client";
226
+ Message;
227
+ constructor(opts) {
228
+ super({
229
+ name: "BadRequestException",
230
+ $fault: "client",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, BadRequestException.prototype);
234
+ this.Message = opts.Message;
235
+ }
236
+ }
237
+ const CloudWatchEventSource = {
238
+ CODE_DEPLOY: "CODE_DEPLOY",
239
+ EC2: "EC2",
240
+ HEALTH: "HEALTH",
241
+ RDS: "RDS",
242
+ };
243
+ const ConfigurationEventResourceType = {
244
+ CLOUDFORMATION: "CLOUDFORMATION",
245
+ CLOUDWATCH_ALARM: "CLOUDWATCH_ALARM",
246
+ CLOUDWATCH_LOG: "CLOUDWATCH_LOG",
247
+ SSM_ASSOCIATION: "SSM_ASSOCIATION",
248
+ };
249
+ const ConfigurationEventStatus = {
250
+ ERROR: "ERROR",
251
+ INFO: "INFO",
252
+ WARN: "WARN",
253
+ };
254
+ const GroupingType = {
255
+ ACCOUNT_BASED: "ACCOUNT_BASED",
256
+ };
257
+ class TagsAlreadyExistException extends ApplicationInsightsServiceException {
258
+ name = "TagsAlreadyExistException";
259
+ $fault = "client";
260
+ Message;
261
+ constructor(opts) {
262
+ super({
263
+ name: "TagsAlreadyExistException",
264
+ $fault: "client",
265
+ ...opts,
266
+ });
267
+ Object.setPrototypeOf(this, TagsAlreadyExistException.prototype);
268
+ this.Message = opts.Message;
269
+ }
270
+ }
271
+ const RecommendationType = {
272
+ ALL: "ALL",
273
+ INFRA_ONLY: "INFRA_ONLY",
274
+ WORKLOAD_ONLY: "WORKLOAD_ONLY",
275
+ };
276
+ const LogFilter = {
277
+ ERROR: "ERROR",
278
+ INFO: "INFO",
279
+ WARN: "WARN",
280
+ };
281
+ const FeedbackKey = {
282
+ INSIGHTS_FEEDBACK: "INSIGHTS_FEEDBACK",
283
+ };
284
+ const FeedbackValue = {
285
+ NOT_SPECIFIED: "NOT_SPECIFIED",
286
+ NOT_USEFUL: "NOT_USEFUL",
287
+ USEFUL: "USEFUL",
288
+ };
289
+ const ResolutionMethod = {
290
+ AUTOMATIC: "AUTOMATIC",
291
+ MANUAL: "MANUAL",
292
+ UNRESOLVED: "UNRESOLVED",
293
+ };
294
+ const SeverityLevel = {
295
+ High: "High",
296
+ Informative: "Informative",
297
+ Low: "Low",
298
+ Medium: "Medium",
299
+ };
300
+ const Status = {
301
+ IGNORE: "IGNORE",
302
+ PENDING: "PENDING",
303
+ RECOVERING: "RECOVERING",
304
+ RECURRING: "RECURRING",
305
+ RESOLVED: "RESOLVED",
306
+ };
307
+ const Visibility = {
308
+ IGNORED: "IGNORED",
309
+ VISIBLE: "VISIBLE",
310
+ };
311
+ class TooManyTagsException extends ApplicationInsightsServiceException {
312
+ name = "TooManyTagsException";
313
+ $fault = "client";
314
+ Message;
315
+ ResourceName;
316
+ constructor(opts) {
317
+ super({
318
+ name: "TooManyTagsException",
319
+ $fault: "client",
320
+ ...opts,
321
+ });
322
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
323
+ this.Message = opts.Message;
324
+ this.ResourceName = opts.ResourceName;
325
+ }
326
+ }
327
+ const UpdateStatus = {
328
+ RESOLVED: "RESOLVED",
329
+ };
330
+
331
+ const se_AddWorkloadCommand = async (input, context) => {
332
+ const headers = sharedHeaders("AddWorkload");
333
+ let body;
334
+ body = JSON.stringify(smithyClient._json(input));
335
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
+ };
337
+ const se_CreateApplicationCommand = async (input, context) => {
338
+ const headers = sharedHeaders("CreateApplication");
339
+ let body;
340
+ body = JSON.stringify(smithyClient._json(input));
341
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
342
+ };
343
+ const se_CreateComponentCommand = async (input, context) => {
344
+ const headers = sharedHeaders("CreateComponent");
345
+ let body;
346
+ body = JSON.stringify(smithyClient._json(input));
347
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
348
+ };
349
+ const se_CreateLogPatternCommand = async (input, context) => {
350
+ const headers = sharedHeaders("CreateLogPattern");
351
+ let body;
352
+ body = JSON.stringify(smithyClient._json(input));
353
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
354
+ };
355
+ const se_DeleteApplicationCommand = async (input, context) => {
356
+ const headers = sharedHeaders("DeleteApplication");
357
+ let body;
358
+ body = JSON.stringify(smithyClient._json(input));
359
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
360
+ };
361
+ const se_DeleteComponentCommand = async (input, context) => {
362
+ const headers = sharedHeaders("DeleteComponent");
363
+ let body;
364
+ body = JSON.stringify(smithyClient._json(input));
365
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
366
+ };
367
+ const se_DeleteLogPatternCommand = async (input, context) => {
368
+ const headers = sharedHeaders("DeleteLogPattern");
369
+ let body;
370
+ body = JSON.stringify(smithyClient._json(input));
371
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
372
+ };
373
+ const se_DescribeApplicationCommand = async (input, context) => {
374
+ const headers = sharedHeaders("DescribeApplication");
375
+ let body;
376
+ body = JSON.stringify(smithyClient._json(input));
377
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
378
+ };
379
+ const se_DescribeComponentCommand = async (input, context) => {
380
+ const headers = sharedHeaders("DescribeComponent");
381
+ let body;
382
+ body = JSON.stringify(smithyClient._json(input));
383
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
384
+ };
385
+ const se_DescribeComponentConfigurationCommand = async (input, context) => {
386
+ const headers = sharedHeaders("DescribeComponentConfiguration");
387
+ let body;
388
+ body = JSON.stringify(smithyClient._json(input));
389
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
390
+ };
391
+ const se_DescribeComponentConfigurationRecommendationCommand = async (input, context) => {
392
+ const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
393
+ let body;
394
+ body = JSON.stringify(smithyClient._json(input));
395
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
396
+ };
397
+ const se_DescribeLogPatternCommand = async (input, context) => {
398
+ const headers = sharedHeaders("DescribeLogPattern");
399
+ let body;
400
+ body = JSON.stringify(smithyClient._json(input));
401
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
402
+ };
403
+ const se_DescribeObservationCommand = async (input, context) => {
404
+ const headers = sharedHeaders("DescribeObservation");
405
+ let body;
406
+ body = JSON.stringify(smithyClient._json(input));
407
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
408
+ };
409
+ const se_DescribeProblemCommand = async (input, context) => {
410
+ const headers = sharedHeaders("DescribeProblem");
411
+ let body;
412
+ body = JSON.stringify(smithyClient._json(input));
413
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
414
+ };
415
+ const se_DescribeProblemObservationsCommand = async (input, context) => {
416
+ const headers = sharedHeaders("DescribeProblemObservations");
417
+ let body;
418
+ body = JSON.stringify(smithyClient._json(input));
419
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
420
+ };
421
+ const se_DescribeWorkloadCommand = async (input, context) => {
422
+ const headers = sharedHeaders("DescribeWorkload");
423
+ let body;
424
+ body = JSON.stringify(smithyClient._json(input));
425
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
426
+ };
427
+ const se_ListApplicationsCommand = async (input, context) => {
428
+ const headers = sharedHeaders("ListApplications");
429
+ let body;
430
+ body = JSON.stringify(smithyClient._json(input));
431
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
432
+ };
433
+ const se_ListComponentsCommand = async (input, context) => {
434
+ const headers = sharedHeaders("ListComponents");
435
+ let body;
436
+ body = JSON.stringify(smithyClient._json(input));
437
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
438
+ };
439
+ const se_ListConfigurationHistoryCommand = async (input, context) => {
440
+ const headers = sharedHeaders("ListConfigurationHistory");
441
+ let body;
442
+ body = JSON.stringify(se_ListConfigurationHistoryRequest(input));
443
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
444
+ };
445
+ const se_ListLogPatternsCommand = async (input, context) => {
446
+ const headers = sharedHeaders("ListLogPatterns");
447
+ let body;
448
+ body = JSON.stringify(smithyClient._json(input));
449
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
450
+ };
451
+ const se_ListLogPatternSetsCommand = async (input, context) => {
452
+ const headers = sharedHeaders("ListLogPatternSets");
453
+ let body;
454
+ body = JSON.stringify(smithyClient._json(input));
455
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
456
+ };
457
+ const se_ListProblemsCommand = async (input, context) => {
458
+ const headers = sharedHeaders("ListProblems");
459
+ let body;
460
+ body = JSON.stringify(se_ListProblemsRequest(input));
461
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
462
+ };
463
+ const se_ListTagsForResourceCommand = async (input, context) => {
464
+ const headers = sharedHeaders("ListTagsForResource");
465
+ let body;
466
+ body = JSON.stringify(smithyClient._json(input));
467
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
+ };
469
+ const se_ListWorkloadsCommand = async (input, context) => {
470
+ const headers = sharedHeaders("ListWorkloads");
471
+ let body;
472
+ body = JSON.stringify(smithyClient._json(input));
473
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
474
+ };
475
+ const se_RemoveWorkloadCommand = async (input, context) => {
476
+ const headers = sharedHeaders("RemoveWorkload");
477
+ let body;
478
+ body = JSON.stringify(smithyClient._json(input));
479
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
480
+ };
481
+ const se_TagResourceCommand = async (input, context) => {
482
+ const headers = sharedHeaders("TagResource");
483
+ let body;
484
+ body = JSON.stringify(smithyClient._json(input));
485
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
486
+ };
487
+ const se_UntagResourceCommand = async (input, context) => {
488
+ const headers = sharedHeaders("UntagResource");
489
+ let body;
490
+ body = JSON.stringify(smithyClient._json(input));
491
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
492
+ };
493
+ const se_UpdateApplicationCommand = async (input, context) => {
494
+ const headers = sharedHeaders("UpdateApplication");
495
+ let body;
496
+ body = JSON.stringify(smithyClient._json(input));
497
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
498
+ };
499
+ const se_UpdateComponentCommand = async (input, context) => {
500
+ const headers = sharedHeaders("UpdateComponent");
501
+ let body;
502
+ body = JSON.stringify(smithyClient._json(input));
503
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
504
+ };
505
+ const se_UpdateComponentConfigurationCommand = async (input, context) => {
506
+ const headers = sharedHeaders("UpdateComponentConfiguration");
507
+ let body;
508
+ body = JSON.stringify(smithyClient._json(input));
509
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
510
+ };
511
+ const se_UpdateLogPatternCommand = async (input, context) => {
512
+ const headers = sharedHeaders("UpdateLogPattern");
513
+ let body;
514
+ body = JSON.stringify(smithyClient._json(input));
515
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
516
+ };
517
+ const se_UpdateProblemCommand = async (input, context) => {
518
+ const headers = sharedHeaders("UpdateProblem");
519
+ let body;
520
+ body = JSON.stringify(smithyClient._json(input));
521
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
522
+ };
523
+ const se_UpdateWorkloadCommand = async (input, context) => {
524
+ const headers = sharedHeaders("UpdateWorkload");
525
+ let body;
526
+ body = JSON.stringify(smithyClient._json(input));
527
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
528
+ };
529
+ const de_AddWorkloadCommand = async (output, context) => {
530
+ if (output.statusCode >= 300) {
531
+ return de_CommandError(output, context);
532
+ }
533
+ const data = await core$1.parseJsonBody(output.body, context);
534
+ let contents = {};
535
+ contents = smithyClient._json(data);
536
+ const response = {
537
+ $metadata: deserializeMetadata(output),
538
+ ...contents,
539
+ };
540
+ return response;
541
+ };
542
+ const de_CreateApplicationCommand = async (output, context) => {
543
+ if (output.statusCode >= 300) {
544
+ return de_CommandError(output, context);
545
+ }
546
+ const data = await core$1.parseJsonBody(output.body, context);
547
+ let contents = {};
548
+ contents = smithyClient._json(data);
549
+ const response = {
550
+ $metadata: deserializeMetadata(output),
551
+ ...contents,
552
+ };
553
+ return response;
554
+ };
555
+ const de_CreateComponentCommand = async (output, context) => {
556
+ if (output.statusCode >= 300) {
557
+ return de_CommandError(output, context);
558
+ }
559
+ const data = await core$1.parseJsonBody(output.body, context);
560
+ let contents = {};
561
+ contents = smithyClient._json(data);
562
+ const response = {
563
+ $metadata: deserializeMetadata(output),
564
+ ...contents,
565
+ };
566
+ return response;
567
+ };
568
+ const de_CreateLogPatternCommand = async (output, context) => {
569
+ if (output.statusCode >= 300) {
570
+ return de_CommandError(output, context);
571
+ }
572
+ const data = await core$1.parseJsonBody(output.body, context);
573
+ let contents = {};
574
+ contents = smithyClient._json(data);
575
+ const response = {
576
+ $metadata: deserializeMetadata(output),
577
+ ...contents,
578
+ };
579
+ return response;
580
+ };
581
+ const de_DeleteApplicationCommand = async (output, context) => {
582
+ if (output.statusCode >= 300) {
583
+ return de_CommandError(output, context);
584
+ }
585
+ const data = await core$1.parseJsonBody(output.body, context);
586
+ let contents = {};
587
+ contents = smithyClient._json(data);
588
+ const response = {
589
+ $metadata: deserializeMetadata(output),
590
+ ...contents,
591
+ };
592
+ return response;
593
+ };
594
+ const de_DeleteComponentCommand = async (output, context) => {
595
+ if (output.statusCode >= 300) {
596
+ return de_CommandError(output, context);
597
+ }
598
+ const data = await core$1.parseJsonBody(output.body, context);
599
+ let contents = {};
600
+ contents = smithyClient._json(data);
601
+ const response = {
602
+ $metadata: deserializeMetadata(output),
603
+ ...contents,
604
+ };
605
+ return response;
606
+ };
607
+ const de_DeleteLogPatternCommand = async (output, context) => {
608
+ if (output.statusCode >= 300) {
609
+ return de_CommandError(output, context);
610
+ }
611
+ const data = await core$1.parseJsonBody(output.body, context);
612
+ let contents = {};
613
+ contents = smithyClient._json(data);
614
+ const response = {
615
+ $metadata: deserializeMetadata(output),
616
+ ...contents,
617
+ };
618
+ return response;
619
+ };
620
+ const de_DescribeApplicationCommand = async (output, context) => {
621
+ if (output.statusCode >= 300) {
622
+ return de_CommandError(output, context);
623
+ }
624
+ const data = await core$1.parseJsonBody(output.body, context);
625
+ let contents = {};
626
+ contents = smithyClient._json(data);
627
+ const response = {
628
+ $metadata: deserializeMetadata(output),
629
+ ...contents,
630
+ };
631
+ return response;
632
+ };
633
+ const de_DescribeComponentCommand = async (output, context) => {
634
+ if (output.statusCode >= 300) {
635
+ return de_CommandError(output, context);
636
+ }
637
+ const data = await core$1.parseJsonBody(output.body, context);
638
+ let contents = {};
639
+ contents = smithyClient._json(data);
640
+ const response = {
641
+ $metadata: deserializeMetadata(output),
642
+ ...contents,
643
+ };
644
+ return response;
645
+ };
646
+ const de_DescribeComponentConfigurationCommand = async (output, context) => {
647
+ if (output.statusCode >= 300) {
648
+ return de_CommandError(output, context);
649
+ }
650
+ const data = await core$1.parseJsonBody(output.body, context);
651
+ let contents = {};
652
+ contents = smithyClient._json(data);
653
+ const response = {
654
+ $metadata: deserializeMetadata(output),
655
+ ...contents,
656
+ };
657
+ return response;
658
+ };
659
+ const de_DescribeComponentConfigurationRecommendationCommand = async (output, context) => {
660
+ if (output.statusCode >= 300) {
661
+ return de_CommandError(output, context);
662
+ }
663
+ const data = await core$1.parseJsonBody(output.body, context);
664
+ let contents = {};
665
+ contents = smithyClient._json(data);
666
+ const response = {
667
+ $metadata: deserializeMetadata(output),
668
+ ...contents,
669
+ };
670
+ return response;
671
+ };
672
+ const de_DescribeLogPatternCommand = async (output, context) => {
673
+ if (output.statusCode >= 300) {
674
+ return de_CommandError(output, context);
675
+ }
676
+ const data = await core$1.parseJsonBody(output.body, context);
677
+ let contents = {};
678
+ contents = smithyClient._json(data);
679
+ const response = {
680
+ $metadata: deserializeMetadata(output),
681
+ ...contents,
682
+ };
683
+ return response;
684
+ };
685
+ const de_DescribeObservationCommand = async (output, context) => {
686
+ if (output.statusCode >= 300) {
687
+ return de_CommandError(output, context);
688
+ }
689
+ const data = await core$1.parseJsonBody(output.body, context);
690
+ let contents = {};
691
+ contents = de_DescribeObservationResponse(data);
692
+ const response = {
693
+ $metadata: deserializeMetadata(output),
694
+ ...contents,
695
+ };
696
+ return response;
697
+ };
698
+ const de_DescribeProblemCommand = async (output, context) => {
699
+ if (output.statusCode >= 300) {
700
+ return de_CommandError(output, context);
701
+ }
702
+ const data = await core$1.parseJsonBody(output.body, context);
703
+ let contents = {};
704
+ contents = de_DescribeProblemResponse(data);
705
+ const response = {
706
+ $metadata: deserializeMetadata(output),
707
+ ...contents,
708
+ };
709
+ return response;
710
+ };
711
+ const de_DescribeProblemObservationsCommand = async (output, context) => {
712
+ if (output.statusCode >= 300) {
713
+ return de_CommandError(output, context);
714
+ }
715
+ const data = await core$1.parseJsonBody(output.body, context);
716
+ let contents = {};
717
+ contents = de_DescribeProblemObservationsResponse(data);
718
+ const response = {
719
+ $metadata: deserializeMetadata(output),
720
+ ...contents,
721
+ };
722
+ return response;
723
+ };
724
+ const de_DescribeWorkloadCommand = async (output, context) => {
725
+ if (output.statusCode >= 300) {
726
+ return de_CommandError(output, context);
727
+ }
728
+ const data = await core$1.parseJsonBody(output.body, context);
729
+ let contents = {};
730
+ contents = smithyClient._json(data);
731
+ const response = {
732
+ $metadata: deserializeMetadata(output),
733
+ ...contents,
734
+ };
735
+ return response;
736
+ };
737
+ const de_ListApplicationsCommand = async (output, context) => {
738
+ if (output.statusCode >= 300) {
739
+ return de_CommandError(output, context);
740
+ }
741
+ const data = await core$1.parseJsonBody(output.body, context);
742
+ let contents = {};
743
+ contents = smithyClient._json(data);
744
+ const response = {
745
+ $metadata: deserializeMetadata(output),
746
+ ...contents,
747
+ };
748
+ return response;
749
+ };
750
+ const de_ListComponentsCommand = async (output, context) => {
751
+ if (output.statusCode >= 300) {
752
+ return de_CommandError(output, context);
753
+ }
754
+ const data = await core$1.parseJsonBody(output.body, context);
755
+ let contents = {};
756
+ contents = smithyClient._json(data);
757
+ const response = {
758
+ $metadata: deserializeMetadata(output),
759
+ ...contents,
760
+ };
761
+ return response;
762
+ };
763
+ const de_ListConfigurationHistoryCommand = async (output, context) => {
764
+ if (output.statusCode >= 300) {
765
+ return de_CommandError(output, context);
766
+ }
767
+ const data = await core$1.parseJsonBody(output.body, context);
768
+ let contents = {};
769
+ contents = de_ListConfigurationHistoryResponse(data);
770
+ const response = {
771
+ $metadata: deserializeMetadata(output),
772
+ ...contents,
773
+ };
774
+ return response;
775
+ };
776
+ const de_ListLogPatternsCommand = async (output, context) => {
777
+ if (output.statusCode >= 300) {
778
+ return de_CommandError(output, context);
779
+ }
780
+ const data = await core$1.parseJsonBody(output.body, context);
781
+ let contents = {};
782
+ contents = smithyClient._json(data);
783
+ const response = {
784
+ $metadata: deserializeMetadata(output),
785
+ ...contents,
786
+ };
787
+ return response;
788
+ };
789
+ const de_ListLogPatternSetsCommand = async (output, context) => {
790
+ if (output.statusCode >= 300) {
791
+ return de_CommandError(output, context);
792
+ }
793
+ const data = await core$1.parseJsonBody(output.body, context);
794
+ let contents = {};
795
+ contents = smithyClient._json(data);
796
+ const response = {
797
+ $metadata: deserializeMetadata(output),
798
+ ...contents,
799
+ };
800
+ return response;
801
+ };
802
+ const de_ListProblemsCommand = async (output, context) => {
803
+ if (output.statusCode >= 300) {
804
+ return de_CommandError(output, context);
805
+ }
806
+ const data = await core$1.parseJsonBody(output.body, context);
807
+ let contents = {};
808
+ contents = de_ListProblemsResponse(data);
809
+ const response = {
810
+ $metadata: deserializeMetadata(output),
811
+ ...contents,
812
+ };
813
+ return response;
814
+ };
815
+ const de_ListTagsForResourceCommand = async (output, context) => {
816
+ if (output.statusCode >= 300) {
817
+ return de_CommandError(output, context);
818
+ }
819
+ const data = await core$1.parseJsonBody(output.body, context);
820
+ let contents = {};
821
+ contents = smithyClient._json(data);
822
+ const response = {
823
+ $metadata: deserializeMetadata(output),
824
+ ...contents,
825
+ };
826
+ return response;
827
+ };
828
+ const de_ListWorkloadsCommand = async (output, context) => {
829
+ if (output.statusCode >= 300) {
830
+ return de_CommandError(output, context);
831
+ }
832
+ const data = await core$1.parseJsonBody(output.body, context);
833
+ let contents = {};
834
+ contents = smithyClient._json(data);
835
+ const response = {
836
+ $metadata: deserializeMetadata(output),
837
+ ...contents,
838
+ };
839
+ return response;
840
+ };
841
+ const de_RemoveWorkloadCommand = async (output, context) => {
842
+ if (output.statusCode >= 300) {
843
+ return de_CommandError(output, context);
844
+ }
845
+ const data = await core$1.parseJsonBody(output.body, context);
846
+ let contents = {};
847
+ contents = smithyClient._json(data);
848
+ const response = {
849
+ $metadata: deserializeMetadata(output),
850
+ ...contents,
851
+ };
852
+ return response;
853
+ };
854
+ const de_TagResourceCommand = async (output, context) => {
855
+ if (output.statusCode >= 300) {
856
+ return de_CommandError(output, context);
857
+ }
858
+ const data = await core$1.parseJsonBody(output.body, context);
859
+ let contents = {};
860
+ contents = smithyClient._json(data);
861
+ const response = {
862
+ $metadata: deserializeMetadata(output),
863
+ ...contents,
864
+ };
865
+ return response;
866
+ };
867
+ const de_UntagResourceCommand = async (output, context) => {
868
+ if (output.statusCode >= 300) {
869
+ return de_CommandError(output, context);
870
+ }
871
+ const data = await core$1.parseJsonBody(output.body, context);
872
+ let contents = {};
873
+ contents = smithyClient._json(data);
874
+ const response = {
875
+ $metadata: deserializeMetadata(output),
876
+ ...contents,
877
+ };
878
+ return response;
879
+ };
880
+ const de_UpdateApplicationCommand = async (output, context) => {
881
+ if (output.statusCode >= 300) {
882
+ return de_CommandError(output, context);
883
+ }
884
+ const data = await core$1.parseJsonBody(output.body, context);
885
+ let contents = {};
886
+ contents = smithyClient._json(data);
887
+ const response = {
888
+ $metadata: deserializeMetadata(output),
889
+ ...contents,
890
+ };
891
+ return response;
892
+ };
893
+ const de_UpdateComponentCommand = async (output, context) => {
894
+ if (output.statusCode >= 300) {
895
+ return de_CommandError(output, context);
896
+ }
897
+ const data = await core$1.parseJsonBody(output.body, context);
898
+ let contents = {};
899
+ contents = smithyClient._json(data);
900
+ const response = {
901
+ $metadata: deserializeMetadata(output),
902
+ ...contents,
903
+ };
904
+ return response;
905
+ };
906
+ const de_UpdateComponentConfigurationCommand = async (output, context) => {
907
+ if (output.statusCode >= 300) {
908
+ return de_CommandError(output, context);
909
+ }
910
+ const data = await core$1.parseJsonBody(output.body, context);
911
+ let contents = {};
912
+ contents = smithyClient._json(data);
913
+ const response = {
914
+ $metadata: deserializeMetadata(output),
915
+ ...contents,
916
+ };
917
+ return response;
918
+ };
919
+ const de_UpdateLogPatternCommand = async (output, context) => {
920
+ if (output.statusCode >= 300) {
921
+ return de_CommandError(output, context);
922
+ }
923
+ const data = await core$1.parseJsonBody(output.body, context);
924
+ let contents = {};
925
+ contents = smithyClient._json(data);
926
+ const response = {
927
+ $metadata: deserializeMetadata(output),
928
+ ...contents,
929
+ };
930
+ return response;
931
+ };
932
+ const de_UpdateProblemCommand = async (output, context) => {
933
+ if (output.statusCode >= 300) {
934
+ return de_CommandError(output, context);
935
+ }
936
+ const data = await core$1.parseJsonBody(output.body, context);
937
+ let contents = {};
938
+ contents = smithyClient._json(data);
939
+ const response = {
940
+ $metadata: deserializeMetadata(output),
941
+ ...contents,
942
+ };
943
+ return response;
944
+ };
945
+ const de_UpdateWorkloadCommand = async (output, context) => {
946
+ if (output.statusCode >= 300) {
947
+ return de_CommandError(output, context);
948
+ }
949
+ const data = await core$1.parseJsonBody(output.body, context);
950
+ let contents = {};
951
+ contents = smithyClient._json(data);
952
+ const response = {
953
+ $metadata: deserializeMetadata(output),
954
+ ...contents,
955
+ };
956
+ return response;
957
+ };
958
+ const de_CommandError = async (output, context) => {
959
+ const parsedOutput = {
960
+ ...output,
961
+ body: await core$1.parseJsonErrorBody(output.body, context),
962
+ };
963
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
964
+ switch (errorCode) {
965
+ case "InternalServerException":
966
+ case "com.amazonaws.applicationinsights#InternalServerException":
967
+ throw await de_InternalServerExceptionRes(parsedOutput);
968
+ case "ResourceInUseException":
969
+ case "com.amazonaws.applicationinsights#ResourceInUseException":
970
+ throw await de_ResourceInUseExceptionRes(parsedOutput);
971
+ case "ResourceNotFoundException":
972
+ case "com.amazonaws.applicationinsights#ResourceNotFoundException":
973
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
974
+ case "ValidationException":
975
+ case "com.amazonaws.applicationinsights#ValidationException":
976
+ throw await de_ValidationExceptionRes(parsedOutput);
977
+ case "AccessDeniedException":
978
+ case "com.amazonaws.applicationinsights#AccessDeniedException":
979
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
980
+ case "TagsAlreadyExistException":
981
+ case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
982
+ throw await de_TagsAlreadyExistExceptionRes(parsedOutput);
983
+ case "BadRequestException":
984
+ case "com.amazonaws.applicationinsights#BadRequestException":
985
+ throw await de_BadRequestExceptionRes(parsedOutput);
986
+ case "TooManyTagsException":
987
+ case "com.amazonaws.applicationinsights#TooManyTagsException":
988
+ throw await de_TooManyTagsExceptionRes(parsedOutput);
989
+ default:
990
+ const parsedBody = parsedOutput.body;
991
+ return throwDefaultError({
992
+ output,
993
+ parsedBody,
994
+ errorCode,
995
+ });
996
+ }
262
997
  };
263
-
264
- // src/models/models_0.ts
265
- var AccessDeniedException = class _AccessDeniedException extends ApplicationInsightsServiceException {
266
- static {
267
- __name(this, "AccessDeniedException");
268
- }
269
- name = "AccessDeniedException";
270
- $fault = "client";
271
- Message;
272
- /**
273
- * @internal
274
- */
275
- constructor(opts) {
276
- super({
277
- name: "AccessDeniedException",
278
- $fault: "client",
279
- ...opts
998
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
999
+ const body = parsedOutput.body;
1000
+ const deserialized = smithyClient._json(body);
1001
+ const exception = new AccessDeniedException({
1002
+ $metadata: deserializeMetadata(parsedOutput),
1003
+ ...deserialized,
280
1004
  });
281
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
282
- this.Message = opts.Message;
283
- }
284
- };
285
- var Tier = {
286
- ACTIVE_DIRECTORY: "ACTIVE_DIRECTORY",
287
- CUSTOM: "CUSTOM",
288
- DEFAULT: "DEFAULT",
289
- DOT_NET_CORE: "DOT_NET_CORE",
290
- DOT_NET_WEB: "DOT_NET_WEB",
291
- DOT_NET_WEB_TIER: "DOT_NET_WEB_TIER",
292
- DOT_NET_WORKER: "DOT_NET_WORKER",
293
- JAVA_JMX: "JAVA_JMX",
294
- MYSQL: "MYSQL",
295
- ORACLE: "ORACLE",
296
- POSTGRESQL: "POSTGRESQL",
297
- SAP_ASE_HIGH_AVAILABILITY: "SAP_ASE_HIGH_AVAILABILITY",
298
- SAP_ASE_SINGLE_NODE: "SAP_ASE_SINGLE_NODE",
299
- SAP_HANA_HIGH_AVAILABILITY: "SAP_HANA_HIGH_AVAILABILITY",
300
- SAP_HANA_MULTI_NODE: "SAP_HANA_MULTI_NODE",
301
- SAP_HANA_SINGLE_NODE: "SAP_HANA_SINGLE_NODE",
302
- SAP_NETWEAVER_DISTRIBUTED: "SAP_NETWEAVER_DISTRIBUTED",
303
- SAP_NETWEAVER_HIGH_AVAILABILITY: "SAP_NETWEAVER_HIGH_AVAILABILITY",
304
- SAP_NETWEAVER_STANDARD: "SAP_NETWEAVER_STANDARD",
305
- SHAREPOINT: "SHAREPOINT",
306
- SQL_SERVER: "SQL_SERVER",
307
- SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP: "SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP",
308
- SQL_SERVER_FAILOVER_CLUSTER_INSTANCE: "SQL_SERVER_FAILOVER_CLUSTER_INSTANCE"
309
- };
310
- var InternalServerException = class _InternalServerException extends ApplicationInsightsServiceException {
311
- static {
312
- __name(this, "InternalServerException");
313
- }
314
- name = "InternalServerException";
315
- $fault = "server";
316
- Message;
317
- /**
318
- * @internal
319
- */
320
- constructor(opts) {
321
- super({
322
- name: "InternalServerException",
323
- $fault: "server",
324
- ...opts
1005
+ return smithyClient.decorateServiceException(exception, body);
1006
+ };
1007
+ const de_BadRequestExceptionRes = async (parsedOutput, context) => {
1008
+ const body = parsedOutput.body;
1009
+ const deserialized = smithyClient._json(body);
1010
+ const exception = new BadRequestException({
1011
+ $metadata: deserializeMetadata(parsedOutput),
1012
+ ...deserialized,
325
1013
  });
326
- Object.setPrototypeOf(this, _InternalServerException.prototype);
327
- this.Message = opts.Message;
328
- }
329
- };
330
- var ResourceInUseException = class _ResourceInUseException extends ApplicationInsightsServiceException {
331
- static {
332
- __name(this, "ResourceInUseException");
333
- }
334
- name = "ResourceInUseException";
335
- $fault = "client";
336
- Message;
337
- /**
338
- * @internal
339
- */
340
- constructor(opts) {
341
- super({
342
- name: "ResourceInUseException",
343
- $fault: "client",
344
- ...opts
1014
+ return smithyClient.decorateServiceException(exception, body);
1015
+ };
1016
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1017
+ const body = parsedOutput.body;
1018
+ const deserialized = smithyClient._json(body);
1019
+ const exception = new InternalServerException({
1020
+ $metadata: deserializeMetadata(parsedOutput),
1021
+ ...deserialized,
345
1022
  });
346
- Object.setPrototypeOf(this, _ResourceInUseException.prototype);
347
- this.Message = opts.Message;
348
- }
349
- };
350
- var ResourceNotFoundException = class _ResourceNotFoundException extends ApplicationInsightsServiceException {
351
- static {
352
- __name(this, "ResourceNotFoundException");
353
- }
354
- name = "ResourceNotFoundException";
355
- $fault = "client";
356
- Message;
357
- /**
358
- * @internal
359
- */
360
- constructor(opts) {
361
- super({
362
- name: "ResourceNotFoundException",
363
- $fault: "client",
364
- ...opts
1023
+ return smithyClient.decorateServiceException(exception, body);
1024
+ };
1025
+ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
1026
+ const body = parsedOutput.body;
1027
+ const deserialized = smithyClient._json(body);
1028
+ const exception = new ResourceInUseException({
1029
+ $metadata: deserializeMetadata(parsedOutput),
1030
+ ...deserialized,
365
1031
  });
366
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
367
- this.Message = opts.Message;
368
- }
369
- };
370
- var ValidationException = class _ValidationException extends ApplicationInsightsServiceException {
371
- static {
372
- __name(this, "ValidationException");
373
- }
374
- name = "ValidationException";
375
- $fault = "client";
376
- Message;
377
- /**
378
- * @internal
379
- */
380
- constructor(opts) {
381
- super({
382
- name: "ValidationException",
383
- $fault: "client",
384
- ...opts
1032
+ return smithyClient.decorateServiceException(exception, body);
1033
+ };
1034
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1035
+ const body = parsedOutput.body;
1036
+ const deserialized = smithyClient._json(body);
1037
+ const exception = new ResourceNotFoundException({
1038
+ $metadata: deserializeMetadata(parsedOutput),
1039
+ ...deserialized,
385
1040
  });
386
- Object.setPrototypeOf(this, _ValidationException.prototype);
387
- this.Message = opts.Message;
388
- }
389
- };
390
- var OsType = {
391
- LINUX: "LINUX",
392
- WINDOWS: "WINDOWS"
393
- };
394
- var DiscoveryType = {
395
- ACCOUNT_BASED: "ACCOUNT_BASED",
396
- RESOURCE_GROUP_BASED: "RESOURCE_GROUP_BASED"
397
- };
398
- var BadRequestException = class _BadRequestException extends ApplicationInsightsServiceException {
399
- static {
400
- __name(this, "BadRequestException");
401
- }
402
- name = "BadRequestException";
403
- $fault = "client";
404
- Message;
405
- /**
406
- * @internal
407
- */
408
- constructor(opts) {
409
- super({
410
- name: "BadRequestException",
411
- $fault: "client",
412
- ...opts
1041
+ return smithyClient.decorateServiceException(exception, body);
1042
+ };
1043
+ const de_TagsAlreadyExistExceptionRes = async (parsedOutput, context) => {
1044
+ const body = parsedOutput.body;
1045
+ const deserialized = smithyClient._json(body);
1046
+ const exception = new TagsAlreadyExistException({
1047
+ $metadata: deserializeMetadata(parsedOutput),
1048
+ ...deserialized,
413
1049
  });
414
- Object.setPrototypeOf(this, _BadRequestException.prototype);
415
- this.Message = opts.Message;
416
- }
417
- };
418
- var CloudWatchEventSource = {
419
- CODE_DEPLOY: "CODE_DEPLOY",
420
- EC2: "EC2",
421
- HEALTH: "HEALTH",
422
- RDS: "RDS"
423
- };
424
- var ConfigurationEventResourceType = {
425
- CLOUDFORMATION: "CLOUDFORMATION",
426
- CLOUDWATCH_ALARM: "CLOUDWATCH_ALARM",
427
- CLOUDWATCH_LOG: "CLOUDWATCH_LOG",
428
- SSM_ASSOCIATION: "SSM_ASSOCIATION"
429
- };
430
- var ConfigurationEventStatus = {
431
- ERROR: "ERROR",
432
- INFO: "INFO",
433
- WARN: "WARN"
434
- };
435
- var GroupingType = {
436
- ACCOUNT_BASED: "ACCOUNT_BASED"
437
- };
438
- var TagsAlreadyExistException = class _TagsAlreadyExistException extends ApplicationInsightsServiceException {
439
- static {
440
- __name(this, "TagsAlreadyExistException");
441
- }
442
- name = "TagsAlreadyExistException";
443
- $fault = "client";
444
- Message;
445
- /**
446
- * @internal
447
- */
448
- constructor(opts) {
449
- super({
450
- name: "TagsAlreadyExistException",
451
- $fault: "client",
452
- ...opts
1050
+ return smithyClient.decorateServiceException(exception, body);
1051
+ };
1052
+ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1053
+ const body = parsedOutput.body;
1054
+ const deserialized = smithyClient._json(body);
1055
+ const exception = new TooManyTagsException({
1056
+ $metadata: deserializeMetadata(parsedOutput),
1057
+ ...deserialized,
453
1058
  });
454
- Object.setPrototypeOf(this, _TagsAlreadyExistException.prototype);
455
- this.Message = opts.Message;
456
- }
457
- };
458
- var RecommendationType = {
459
- ALL: "ALL",
460
- INFRA_ONLY: "INFRA_ONLY",
461
- WORKLOAD_ONLY: "WORKLOAD_ONLY"
462
- };
463
- var LogFilter = {
464
- ERROR: "ERROR",
465
- INFO: "INFO",
466
- WARN: "WARN"
467
- };
468
- var FeedbackKey = {
469
- INSIGHTS_FEEDBACK: "INSIGHTS_FEEDBACK"
470
- };
471
- var FeedbackValue = {
472
- NOT_SPECIFIED: "NOT_SPECIFIED",
473
- NOT_USEFUL: "NOT_USEFUL",
474
- USEFUL: "USEFUL"
475
- };
476
- var ResolutionMethod = {
477
- AUTOMATIC: "AUTOMATIC",
478
- MANUAL: "MANUAL",
479
- UNRESOLVED: "UNRESOLVED"
480
- };
481
- var SeverityLevel = {
482
- High: "High",
483
- Informative: "Informative",
484
- Low: "Low",
485
- Medium: "Medium"
486
- };
487
- var Status = {
488
- IGNORE: "IGNORE",
489
- PENDING: "PENDING",
490
- RECOVERING: "RECOVERING",
491
- RECURRING: "RECURRING",
492
- RESOLVED: "RESOLVED"
493
- };
494
- var Visibility = {
495
- IGNORED: "IGNORED",
496
- VISIBLE: "VISIBLE"
497
- };
498
- var TooManyTagsException = class _TooManyTagsException extends ApplicationInsightsServiceException {
499
- static {
500
- __name(this, "TooManyTagsException");
501
- }
502
- name = "TooManyTagsException";
503
- $fault = "client";
504
- Message;
505
- /**
506
- * <p>The name of the resource with too many tags.</p>
507
- * @public
508
- */
509
- ResourceName;
510
- /**
511
- * @internal
512
- */
513
- constructor(opts) {
514
- super({
515
- name: "TooManyTagsException",
516
- $fault: "client",
517
- ...opts
1059
+ return smithyClient.decorateServiceException(exception, body);
1060
+ };
1061
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1062
+ const body = parsedOutput.body;
1063
+ const deserialized = smithyClient._json(body);
1064
+ const exception = new ValidationException({
1065
+ $metadata: deserializeMetadata(parsedOutput),
1066
+ ...deserialized,
1067
+ });
1068
+ return smithyClient.decorateServiceException(exception, body);
1069
+ };
1070
+ const se_ListConfigurationHistoryRequest = (input, context) => {
1071
+ return smithyClient.take(input, {
1072
+ AccountId: [],
1073
+ EndTime: (_) => _.getTime() / 1_000,
1074
+ EventStatus: [],
1075
+ MaxResults: [],
1076
+ NextToken: [],
1077
+ ResourceGroupName: [],
1078
+ StartTime: (_) => _.getTime() / 1_000,
518
1079
  });
519
- Object.setPrototypeOf(this, _TooManyTagsException.prototype);
520
- this.Message = opts.Message;
521
- this.ResourceName = opts.ResourceName;
522
- }
523
- };
524
- var UpdateStatus = {
525
- RESOLVED: "RESOLVED"
526
- };
527
-
528
- // src/protocols/Aws_json1_1.ts
529
- var se_AddWorkloadCommand = /* @__PURE__ */ __name(async (input, context) => {
530
- const headers = sharedHeaders("AddWorkload");
531
- let body;
532
- body = JSON.stringify((0, import_smithy_client._json)(input));
533
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
534
- }, "se_AddWorkloadCommand");
535
- var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
536
- const headers = sharedHeaders("CreateApplication");
537
- let body;
538
- body = JSON.stringify((0, import_smithy_client._json)(input));
539
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
540
- }, "se_CreateApplicationCommand");
541
- var se_CreateComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
542
- const headers = sharedHeaders("CreateComponent");
543
- let body;
544
- body = JSON.stringify((0, import_smithy_client._json)(input));
545
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
546
- }, "se_CreateComponentCommand");
547
- var se_CreateLogPatternCommand = /* @__PURE__ */ __name(async (input, context) => {
548
- const headers = sharedHeaders("CreateLogPattern");
549
- let body;
550
- body = JSON.stringify((0, import_smithy_client._json)(input));
551
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
552
- }, "se_CreateLogPatternCommand");
553
- var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
554
- const headers = sharedHeaders("DeleteApplication");
555
- let body;
556
- body = JSON.stringify((0, import_smithy_client._json)(input));
557
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
558
- }, "se_DeleteApplicationCommand");
559
- var se_DeleteComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
560
- const headers = sharedHeaders("DeleteComponent");
561
- let body;
562
- body = JSON.stringify((0, import_smithy_client._json)(input));
563
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
564
- }, "se_DeleteComponentCommand");
565
- var se_DeleteLogPatternCommand = /* @__PURE__ */ __name(async (input, context) => {
566
- const headers = sharedHeaders("DeleteLogPattern");
567
- let body;
568
- body = JSON.stringify((0, import_smithy_client._json)(input));
569
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
570
- }, "se_DeleteLogPatternCommand");
571
- var se_DescribeApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
572
- const headers = sharedHeaders("DescribeApplication");
573
- let body;
574
- body = JSON.stringify((0, import_smithy_client._json)(input));
575
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
576
- }, "se_DescribeApplicationCommand");
577
- var se_DescribeComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
578
- const headers = sharedHeaders("DescribeComponent");
579
- let body;
580
- body = JSON.stringify((0, import_smithy_client._json)(input));
581
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
582
- }, "se_DescribeComponentCommand");
583
- var se_DescribeComponentConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
584
- const headers = sharedHeaders("DescribeComponentConfiguration");
585
- let body;
586
- body = JSON.stringify((0, import_smithy_client._json)(input));
587
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
588
- }, "se_DescribeComponentConfigurationCommand");
589
- var se_DescribeComponentConfigurationRecommendationCommand = /* @__PURE__ */ __name(async (input, context) => {
590
- const headers = sharedHeaders("DescribeComponentConfigurationRecommendation");
591
- let body;
592
- body = JSON.stringify((0, import_smithy_client._json)(input));
593
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
594
- }, "se_DescribeComponentConfigurationRecommendationCommand");
595
- var se_DescribeLogPatternCommand = /* @__PURE__ */ __name(async (input, context) => {
596
- const headers = sharedHeaders("DescribeLogPattern");
597
- let body;
598
- body = JSON.stringify((0, import_smithy_client._json)(input));
599
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
600
- }, "se_DescribeLogPatternCommand");
601
- var se_DescribeObservationCommand = /* @__PURE__ */ __name(async (input, context) => {
602
- const headers = sharedHeaders("DescribeObservation");
603
- let body;
604
- body = JSON.stringify((0, import_smithy_client._json)(input));
605
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
606
- }, "se_DescribeObservationCommand");
607
- var se_DescribeProblemCommand = /* @__PURE__ */ __name(async (input, context) => {
608
- const headers = sharedHeaders("DescribeProblem");
609
- let body;
610
- body = JSON.stringify((0, import_smithy_client._json)(input));
611
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
612
- }, "se_DescribeProblemCommand");
613
- var se_DescribeProblemObservationsCommand = /* @__PURE__ */ __name(async (input, context) => {
614
- const headers = sharedHeaders("DescribeProblemObservations");
615
- let body;
616
- body = JSON.stringify((0, import_smithy_client._json)(input));
617
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
618
- }, "se_DescribeProblemObservationsCommand");
619
- var se_DescribeWorkloadCommand = /* @__PURE__ */ __name(async (input, context) => {
620
- const headers = sharedHeaders("DescribeWorkload");
621
- let body;
622
- body = JSON.stringify((0, import_smithy_client._json)(input));
623
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
624
- }, "se_DescribeWorkloadCommand");
625
- var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
626
- const headers = sharedHeaders("ListApplications");
627
- let body;
628
- body = JSON.stringify((0, import_smithy_client._json)(input));
629
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
630
- }, "se_ListApplicationsCommand");
631
- var se_ListComponentsCommand = /* @__PURE__ */ __name(async (input, context) => {
632
- const headers = sharedHeaders("ListComponents");
633
- let body;
634
- body = JSON.stringify((0, import_smithy_client._json)(input));
635
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
636
- }, "se_ListComponentsCommand");
637
- var se_ListConfigurationHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
638
- const headers = sharedHeaders("ListConfigurationHistory");
639
- let body;
640
- body = JSON.stringify(se_ListConfigurationHistoryRequest(input, context));
641
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
642
- }, "se_ListConfigurationHistoryCommand");
643
- var se_ListLogPatternsCommand = /* @__PURE__ */ __name(async (input, context) => {
644
- const headers = sharedHeaders("ListLogPatterns");
645
- let body;
646
- body = JSON.stringify((0, import_smithy_client._json)(input));
647
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
648
- }, "se_ListLogPatternsCommand");
649
- var se_ListLogPatternSetsCommand = /* @__PURE__ */ __name(async (input, context) => {
650
- const headers = sharedHeaders("ListLogPatternSets");
651
- let body;
652
- body = JSON.stringify((0, import_smithy_client._json)(input));
653
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
654
- }, "se_ListLogPatternSetsCommand");
655
- var se_ListProblemsCommand = /* @__PURE__ */ __name(async (input, context) => {
656
- const headers = sharedHeaders("ListProblems");
657
- let body;
658
- body = JSON.stringify(se_ListProblemsRequest(input, context));
659
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
660
- }, "se_ListProblemsCommand");
661
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
662
- const headers = sharedHeaders("ListTagsForResource");
663
- let body;
664
- body = JSON.stringify((0, import_smithy_client._json)(input));
665
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
666
- }, "se_ListTagsForResourceCommand");
667
- var se_ListWorkloadsCommand = /* @__PURE__ */ __name(async (input, context) => {
668
- const headers = sharedHeaders("ListWorkloads");
669
- let body;
670
- body = JSON.stringify((0, import_smithy_client._json)(input));
671
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
672
- }, "se_ListWorkloadsCommand");
673
- var se_RemoveWorkloadCommand = /* @__PURE__ */ __name(async (input, context) => {
674
- const headers = sharedHeaders("RemoveWorkload");
675
- let body;
676
- body = JSON.stringify((0, import_smithy_client._json)(input));
677
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
678
- }, "se_RemoveWorkloadCommand");
679
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
680
- const headers = sharedHeaders("TagResource");
681
- let body;
682
- body = JSON.stringify((0, import_smithy_client._json)(input));
683
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
684
- }, "se_TagResourceCommand");
685
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
686
- const headers = sharedHeaders("UntagResource");
687
- let body;
688
- body = JSON.stringify((0, import_smithy_client._json)(input));
689
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
690
- }, "se_UntagResourceCommand");
691
- var se_UpdateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
692
- const headers = sharedHeaders("UpdateApplication");
693
- let body;
694
- body = JSON.stringify((0, import_smithy_client._json)(input));
695
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
696
- }, "se_UpdateApplicationCommand");
697
- var se_UpdateComponentCommand = /* @__PURE__ */ __name(async (input, context) => {
698
- const headers = sharedHeaders("UpdateComponent");
699
- let body;
700
- body = JSON.stringify((0, import_smithy_client._json)(input));
701
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
702
- }, "se_UpdateComponentCommand");
703
- var se_UpdateComponentConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
704
- const headers = sharedHeaders("UpdateComponentConfiguration");
705
- let body;
706
- body = JSON.stringify((0, import_smithy_client._json)(input));
707
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
708
- }, "se_UpdateComponentConfigurationCommand");
709
- var se_UpdateLogPatternCommand = /* @__PURE__ */ __name(async (input, context) => {
710
- const headers = sharedHeaders("UpdateLogPattern");
711
- let body;
712
- body = JSON.stringify((0, import_smithy_client._json)(input));
713
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
714
- }, "se_UpdateLogPatternCommand");
715
- var se_UpdateProblemCommand = /* @__PURE__ */ __name(async (input, context) => {
716
- const headers = sharedHeaders("UpdateProblem");
717
- let body;
718
- body = JSON.stringify((0, import_smithy_client._json)(input));
719
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
720
- }, "se_UpdateProblemCommand");
721
- var se_UpdateWorkloadCommand = /* @__PURE__ */ __name(async (input, context) => {
722
- const headers = sharedHeaders("UpdateWorkload");
723
- let body;
724
- body = JSON.stringify((0, import_smithy_client._json)(input));
725
- return buildHttpRpcRequest(context, headers, "/", void 0, body);
726
- }, "se_UpdateWorkloadCommand");
727
- var de_AddWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
728
- if (output.statusCode >= 300) {
729
- return de_CommandError(output, context);
730
- }
731
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
732
- let contents = {};
733
- contents = (0, import_smithy_client._json)(data);
734
- const response = {
735
- $metadata: deserializeMetadata(output),
736
- ...contents
737
- };
738
- return response;
739
- }, "de_AddWorkloadCommand");
740
- var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
741
- if (output.statusCode >= 300) {
742
- return de_CommandError(output, context);
743
- }
744
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
745
- let contents = {};
746
- contents = (0, import_smithy_client._json)(data);
747
- const response = {
748
- $metadata: deserializeMetadata(output),
749
- ...contents
750
- };
751
- return response;
752
- }, "de_CreateApplicationCommand");
753
- var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
754
- if (output.statusCode >= 300) {
755
- return de_CommandError(output, context);
756
- }
757
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
758
- let contents = {};
759
- contents = (0, import_smithy_client._json)(data);
760
- const response = {
761
- $metadata: deserializeMetadata(output),
762
- ...contents
763
- };
764
- return response;
765
- }, "de_CreateComponentCommand");
766
- var de_CreateLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
767
- if (output.statusCode >= 300) {
768
- return de_CommandError(output, context);
769
- }
770
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
771
- let contents = {};
772
- contents = (0, import_smithy_client._json)(data);
773
- const response = {
774
- $metadata: deserializeMetadata(output),
775
- ...contents
776
- };
777
- return response;
778
- }, "de_CreateLogPatternCommand");
779
- var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
780
- if (output.statusCode >= 300) {
781
- return de_CommandError(output, context);
782
- }
783
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
784
- let contents = {};
785
- contents = (0, import_smithy_client._json)(data);
786
- const response = {
787
- $metadata: deserializeMetadata(output),
788
- ...contents
789
- };
790
- return response;
791
- }, "de_DeleteApplicationCommand");
792
- var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
793
- if (output.statusCode >= 300) {
794
- return de_CommandError(output, context);
795
- }
796
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
797
- let contents = {};
798
- contents = (0, import_smithy_client._json)(data);
799
- const response = {
800
- $metadata: deserializeMetadata(output),
801
- ...contents
802
- };
803
- return response;
804
- }, "de_DeleteComponentCommand");
805
- var de_DeleteLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
806
- if (output.statusCode >= 300) {
807
- return de_CommandError(output, context);
808
- }
809
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
810
- let contents = {};
811
- contents = (0, import_smithy_client._json)(data);
812
- const response = {
813
- $metadata: deserializeMetadata(output),
814
- ...contents
815
- };
816
- return response;
817
- }, "de_DeleteLogPatternCommand");
818
- var de_DescribeApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
819
- if (output.statusCode >= 300) {
820
- return de_CommandError(output, context);
821
- }
822
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
823
- let contents = {};
824
- contents = (0, import_smithy_client._json)(data);
825
- const response = {
826
- $metadata: deserializeMetadata(output),
827
- ...contents
828
- };
829
- return response;
830
- }, "de_DescribeApplicationCommand");
831
- var de_DescribeComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
832
- if (output.statusCode >= 300) {
833
- return de_CommandError(output, context);
834
- }
835
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
836
- let contents = {};
837
- contents = (0, import_smithy_client._json)(data);
838
- const response = {
839
- $metadata: deserializeMetadata(output),
840
- ...contents
841
- };
842
- return response;
843
- }, "de_DescribeComponentCommand");
844
- var de_DescribeComponentConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
845
- if (output.statusCode >= 300) {
846
- return de_CommandError(output, context);
847
- }
848
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
849
- let contents = {};
850
- contents = (0, import_smithy_client._json)(data);
851
- const response = {
852
- $metadata: deserializeMetadata(output),
853
- ...contents
854
- };
855
- return response;
856
- }, "de_DescribeComponentConfigurationCommand");
857
- var de_DescribeComponentConfigurationRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
858
- if (output.statusCode >= 300) {
859
- return de_CommandError(output, context);
860
- }
861
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
862
- let contents = {};
863
- contents = (0, import_smithy_client._json)(data);
864
- const response = {
865
- $metadata: deserializeMetadata(output),
866
- ...contents
867
- };
868
- return response;
869
- }, "de_DescribeComponentConfigurationRecommendationCommand");
870
- var de_DescribeLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
871
- if (output.statusCode >= 300) {
872
- return de_CommandError(output, context);
873
- }
874
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
875
- let contents = {};
876
- contents = (0, import_smithy_client._json)(data);
877
- const response = {
878
- $metadata: deserializeMetadata(output),
879
- ...contents
880
- };
881
- return response;
882
- }, "de_DescribeLogPatternCommand");
883
- var de_DescribeObservationCommand = /* @__PURE__ */ __name(async (output, context) => {
884
- if (output.statusCode >= 300) {
885
- return de_CommandError(output, context);
886
- }
887
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
888
- let contents = {};
889
- contents = de_DescribeObservationResponse(data, context);
890
- const response = {
891
- $metadata: deserializeMetadata(output),
892
- ...contents
893
- };
894
- return response;
895
- }, "de_DescribeObservationCommand");
896
- var de_DescribeProblemCommand = /* @__PURE__ */ __name(async (output, context) => {
897
- if (output.statusCode >= 300) {
898
- return de_CommandError(output, context);
899
- }
900
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
901
- let contents = {};
902
- contents = de_DescribeProblemResponse(data, context);
903
- const response = {
904
- $metadata: deserializeMetadata(output),
905
- ...contents
906
- };
907
- return response;
908
- }, "de_DescribeProblemCommand");
909
- var de_DescribeProblemObservationsCommand = /* @__PURE__ */ __name(async (output, context) => {
910
- if (output.statusCode >= 300) {
911
- return de_CommandError(output, context);
912
- }
913
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
914
- let contents = {};
915
- contents = de_DescribeProblemObservationsResponse(data, context);
916
- const response = {
917
- $metadata: deserializeMetadata(output),
918
- ...contents
919
- };
920
- return response;
921
- }, "de_DescribeProblemObservationsCommand");
922
- var de_DescribeWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
923
- if (output.statusCode >= 300) {
924
- return de_CommandError(output, context);
925
- }
926
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
927
- let contents = {};
928
- contents = (0, import_smithy_client._json)(data);
929
- const response = {
930
- $metadata: deserializeMetadata(output),
931
- ...contents
932
- };
933
- return response;
934
- }, "de_DescribeWorkloadCommand");
935
- var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
936
- if (output.statusCode >= 300) {
937
- return de_CommandError(output, context);
938
- }
939
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
940
- let contents = {};
941
- contents = (0, import_smithy_client._json)(data);
942
- const response = {
943
- $metadata: deserializeMetadata(output),
944
- ...contents
945
- };
946
- return response;
947
- }, "de_ListApplicationsCommand");
948
- var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
949
- if (output.statusCode >= 300) {
950
- return de_CommandError(output, context);
951
- }
952
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
953
- let contents = {};
954
- contents = (0, import_smithy_client._json)(data);
955
- const response = {
956
- $metadata: deserializeMetadata(output),
957
- ...contents
958
- };
959
- return response;
960
- }, "de_ListComponentsCommand");
961
- var de_ListConfigurationHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
962
- if (output.statusCode >= 300) {
963
- return de_CommandError(output, context);
964
- }
965
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
966
- let contents = {};
967
- contents = de_ListConfigurationHistoryResponse(data, context);
968
- const response = {
969
- $metadata: deserializeMetadata(output),
970
- ...contents
971
- };
972
- return response;
973
- }, "de_ListConfigurationHistoryCommand");
974
- var de_ListLogPatternsCommand = /* @__PURE__ */ __name(async (output, context) => {
975
- if (output.statusCode >= 300) {
976
- return de_CommandError(output, context);
977
- }
978
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
979
- let contents = {};
980
- contents = (0, import_smithy_client._json)(data);
981
- const response = {
982
- $metadata: deserializeMetadata(output),
983
- ...contents
984
- };
985
- return response;
986
- }, "de_ListLogPatternsCommand");
987
- var de_ListLogPatternSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
988
- if (output.statusCode >= 300) {
989
- return de_CommandError(output, context);
990
- }
991
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
992
- let contents = {};
993
- contents = (0, import_smithy_client._json)(data);
994
- const response = {
995
- $metadata: deserializeMetadata(output),
996
- ...contents
997
- };
998
- return response;
999
- }, "de_ListLogPatternSetsCommand");
1000
- var de_ListProblemsCommand = /* @__PURE__ */ __name(async (output, context) => {
1001
- if (output.statusCode >= 300) {
1002
- return de_CommandError(output, context);
1003
- }
1004
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1005
- let contents = {};
1006
- contents = de_ListProblemsResponse(data, context);
1007
- const response = {
1008
- $metadata: deserializeMetadata(output),
1009
- ...contents
1010
- };
1011
- return response;
1012
- }, "de_ListProblemsCommand");
1013
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
- if (output.statusCode >= 300) {
1015
- return de_CommandError(output, context);
1016
- }
1017
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1018
- let contents = {};
1019
- contents = (0, import_smithy_client._json)(data);
1020
- const response = {
1021
- $metadata: deserializeMetadata(output),
1022
- ...contents
1023
- };
1024
- return response;
1025
- }, "de_ListTagsForResourceCommand");
1026
- var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) => {
1027
- if (output.statusCode >= 300) {
1028
- return de_CommandError(output, context);
1029
- }
1030
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1031
- let contents = {};
1032
- contents = (0, import_smithy_client._json)(data);
1033
- const response = {
1034
- $metadata: deserializeMetadata(output),
1035
- ...contents
1036
- };
1037
- return response;
1038
- }, "de_ListWorkloadsCommand");
1039
- var de_RemoveWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
1040
- if (output.statusCode >= 300) {
1041
- return de_CommandError(output, context);
1042
- }
1043
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1044
- let contents = {};
1045
- contents = (0, import_smithy_client._json)(data);
1046
- const response = {
1047
- $metadata: deserializeMetadata(output),
1048
- ...contents
1049
- };
1050
- return response;
1051
- }, "de_RemoveWorkloadCommand");
1052
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1053
- if (output.statusCode >= 300) {
1054
- return de_CommandError(output, context);
1055
- }
1056
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1057
- let contents = {};
1058
- contents = (0, import_smithy_client._json)(data);
1059
- const response = {
1060
- $metadata: deserializeMetadata(output),
1061
- ...contents
1062
- };
1063
- return response;
1064
- }, "de_TagResourceCommand");
1065
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1066
- if (output.statusCode >= 300) {
1067
- return de_CommandError(output, context);
1068
- }
1069
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1070
- let contents = {};
1071
- contents = (0, import_smithy_client._json)(data);
1072
- const response = {
1073
- $metadata: deserializeMetadata(output),
1074
- ...contents
1075
- };
1076
- return response;
1077
- }, "de_UntagResourceCommand");
1078
- var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1079
- if (output.statusCode >= 300) {
1080
- return de_CommandError(output, context);
1081
- }
1082
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1083
- let contents = {};
1084
- contents = (0, import_smithy_client._json)(data);
1085
- const response = {
1086
- $metadata: deserializeMetadata(output),
1087
- ...contents
1088
- };
1089
- return response;
1090
- }, "de_UpdateApplicationCommand");
1091
- var de_UpdateComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
1092
- if (output.statusCode >= 300) {
1093
- return de_CommandError(output, context);
1094
- }
1095
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1096
- let contents = {};
1097
- contents = (0, import_smithy_client._json)(data);
1098
- const response = {
1099
- $metadata: deserializeMetadata(output),
1100
- ...contents
1101
- };
1102
- return response;
1103
- }, "de_UpdateComponentCommand");
1104
- var de_UpdateComponentConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1105
- if (output.statusCode >= 300) {
1106
- return de_CommandError(output, context);
1107
- }
1108
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1109
- let contents = {};
1110
- contents = (0, import_smithy_client._json)(data);
1111
- const response = {
1112
- $metadata: deserializeMetadata(output),
1113
- ...contents
1114
- };
1115
- return response;
1116
- }, "de_UpdateComponentConfigurationCommand");
1117
- var de_UpdateLogPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
1118
- if (output.statusCode >= 300) {
1119
- return de_CommandError(output, context);
1120
- }
1121
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1122
- let contents = {};
1123
- contents = (0, import_smithy_client._json)(data);
1124
- const response = {
1125
- $metadata: deserializeMetadata(output),
1126
- ...contents
1127
- };
1128
- return response;
1129
- }, "de_UpdateLogPatternCommand");
1130
- var de_UpdateProblemCommand = /* @__PURE__ */ __name(async (output, context) => {
1131
- if (output.statusCode >= 300) {
1132
- return de_CommandError(output, context);
1133
- }
1134
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1135
- let contents = {};
1136
- contents = (0, import_smithy_client._json)(data);
1137
- const response = {
1138
- $metadata: deserializeMetadata(output),
1139
- ...contents
1140
- };
1141
- return response;
1142
- }, "de_UpdateProblemCommand");
1143
- var de_UpdateWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
1144
- if (output.statusCode >= 300) {
1145
- return de_CommandError(output, context);
1146
- }
1147
- const data = await (0, import_core2.parseJsonBody)(output.body, context);
1148
- let contents = {};
1149
- contents = (0, import_smithy_client._json)(data);
1150
- const response = {
1151
- $metadata: deserializeMetadata(output),
1152
- ...contents
1153
- };
1154
- return response;
1155
- }, "de_UpdateWorkloadCommand");
1156
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1157
- const parsedOutput = {
1158
- ...output,
1159
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1160
- };
1161
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1162
- switch (errorCode) {
1163
- case "InternalServerException":
1164
- case "com.amazonaws.applicationinsights#InternalServerException":
1165
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1166
- case "ResourceInUseException":
1167
- case "com.amazonaws.applicationinsights#ResourceInUseException":
1168
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1169
- case "ResourceNotFoundException":
1170
- case "com.amazonaws.applicationinsights#ResourceNotFoundException":
1171
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1172
- case "ValidationException":
1173
- case "com.amazonaws.applicationinsights#ValidationException":
1174
- throw await de_ValidationExceptionRes(parsedOutput, context);
1175
- case "AccessDeniedException":
1176
- case "com.amazonaws.applicationinsights#AccessDeniedException":
1177
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1178
- case "TagsAlreadyExistException":
1179
- case "com.amazonaws.applicationinsights#TagsAlreadyExistException":
1180
- throw await de_TagsAlreadyExistExceptionRes(parsedOutput, context);
1181
- case "BadRequestException":
1182
- case "com.amazonaws.applicationinsights#BadRequestException":
1183
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1184
- case "TooManyTagsException":
1185
- case "com.amazonaws.applicationinsights#TooManyTagsException":
1186
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1187
- default:
1188
- const parsedBody = parsedOutput.body;
1189
- return throwDefaultError({
1190
- output,
1191
- parsedBody,
1192
- errorCode
1193
- });
1194
- }
1195
- }, "de_CommandError");
1196
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1197
- const body = parsedOutput.body;
1198
- const deserialized = (0, import_smithy_client._json)(body);
1199
- const exception = new AccessDeniedException({
1200
- $metadata: deserializeMetadata(parsedOutput),
1201
- ...deserialized
1202
- });
1203
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1204
- }, "de_AccessDeniedExceptionRes");
1205
- var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1206
- const body = parsedOutput.body;
1207
- const deserialized = (0, import_smithy_client._json)(body);
1208
- const exception = new BadRequestException({
1209
- $metadata: deserializeMetadata(parsedOutput),
1210
- ...deserialized
1211
- });
1212
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1213
- }, "de_BadRequestExceptionRes");
1214
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1215
- const body = parsedOutput.body;
1216
- const deserialized = (0, import_smithy_client._json)(body);
1217
- const exception = new InternalServerException({
1218
- $metadata: deserializeMetadata(parsedOutput),
1219
- ...deserialized
1220
- });
1221
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1222
- }, "de_InternalServerExceptionRes");
1223
- var de_ResourceInUseExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1224
- const body = parsedOutput.body;
1225
- const deserialized = (0, import_smithy_client._json)(body);
1226
- const exception = new ResourceInUseException({
1227
- $metadata: deserializeMetadata(parsedOutput),
1228
- ...deserialized
1229
- });
1230
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1231
- }, "de_ResourceInUseExceptionRes");
1232
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1233
- const body = parsedOutput.body;
1234
- const deserialized = (0, import_smithy_client._json)(body);
1235
- const exception = new ResourceNotFoundException({
1236
- $metadata: deserializeMetadata(parsedOutput),
1237
- ...deserialized
1238
- });
1239
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1240
- }, "de_ResourceNotFoundExceptionRes");
1241
- var de_TagsAlreadyExistExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1242
- const body = parsedOutput.body;
1243
- const deserialized = (0, import_smithy_client._json)(body);
1244
- const exception = new TagsAlreadyExistException({
1245
- $metadata: deserializeMetadata(parsedOutput),
1246
- ...deserialized
1247
- });
1248
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1249
- }, "de_TagsAlreadyExistExceptionRes");
1250
- var de_TooManyTagsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1251
- const body = parsedOutput.body;
1252
- const deserialized = (0, import_smithy_client._json)(body);
1253
- const exception = new TooManyTagsException({
1254
- $metadata: deserializeMetadata(parsedOutput),
1255
- ...deserialized
1256
- });
1257
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1258
- }, "de_TooManyTagsExceptionRes");
1259
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1260
- const body = parsedOutput.body;
1261
- const deserialized = (0, import_smithy_client._json)(body);
1262
- const exception = new ValidationException({
1263
- $metadata: deserializeMetadata(parsedOutput),
1264
- ...deserialized
1265
- });
1266
- return (0, import_smithy_client.decorateServiceException)(exception, body);
1267
- }, "de_ValidationExceptionRes");
1268
- var se_ListConfigurationHistoryRequest = /* @__PURE__ */ __name((input, context) => {
1269
- return (0, import_smithy_client.take)(input, {
1270
- AccountId: [],
1271
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1272
- EventStatus: [],
1273
- MaxResults: [],
1274
- NextToken: [],
1275
- ResourceGroupName: [],
1276
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime")
1277
- });
1278
- }, "se_ListConfigurationHistoryRequest");
1279
- var se_ListProblemsRequest = /* @__PURE__ */ __name((input, context) => {
1280
- return (0, import_smithy_client.take)(input, {
1281
- AccountId: [],
1282
- ComponentName: [],
1283
- EndTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndTime"),
1284
- MaxResults: [],
1285
- NextToken: [],
1286
- ResourceGroupName: [],
1287
- StartTime: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartTime"),
1288
- Visibility: []
1289
- });
1290
- }, "se_ListProblemsRequest");
1291
- var de_ConfigurationEvent = /* @__PURE__ */ __name((output, context) => {
1292
- return (0, import_smithy_client.take)(output, {
1293
- AccountId: import_smithy_client.expectString,
1294
- EventDetail: import_smithy_client.expectString,
1295
- EventResourceName: import_smithy_client.expectString,
1296
- EventResourceType: import_smithy_client.expectString,
1297
- EventStatus: import_smithy_client.expectString,
1298
- EventTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EventTime"),
1299
- MonitoredResourceARN: import_smithy_client.expectString,
1300
- ResourceGroupName: import_smithy_client.expectString
1301
- });
1302
- }, "de_ConfigurationEvent");
1303
- var de_ConfigurationEventList = /* @__PURE__ */ __name((output, context) => {
1304
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1305
- return de_ConfigurationEvent(entry, context);
1306
- });
1307
- return retVal;
1308
- }, "de_ConfigurationEventList");
1309
- var de_DescribeObservationResponse = /* @__PURE__ */ __name((output, context) => {
1310
- return (0, import_smithy_client.take)(output, {
1311
- Observation: /* @__PURE__ */ __name((_) => de_Observation(_, context), "Observation")
1312
- });
1313
- }, "de_DescribeObservationResponse");
1314
- var de_DescribeProblemObservationsResponse = /* @__PURE__ */ __name((output, context) => {
1315
- return (0, import_smithy_client.take)(output, {
1316
- RelatedObservations: /* @__PURE__ */ __name((_) => de_RelatedObservations(_, context), "RelatedObservations")
1317
- });
1318
- }, "de_DescribeProblemObservationsResponse");
1319
- var de_DescribeProblemResponse = /* @__PURE__ */ __name((output, context) => {
1320
- return (0, import_smithy_client.take)(output, {
1321
- Problem: /* @__PURE__ */ __name((_) => de_Problem(_, context), "Problem"),
1322
- SNSNotificationArn: import_smithy_client.expectString
1323
- });
1324
- }, "de_DescribeProblemResponse");
1325
- var de_ListConfigurationHistoryResponse = /* @__PURE__ */ __name((output, context) => {
1326
- return (0, import_smithy_client.take)(output, {
1327
- EventList: /* @__PURE__ */ __name((_) => de_ConfigurationEventList(_, context), "EventList"),
1328
- NextToken: import_smithy_client.expectString
1329
- });
1330
- }, "de_ListConfigurationHistoryResponse");
1331
- var de_ListProblemsResponse = /* @__PURE__ */ __name((output, context) => {
1332
- return (0, import_smithy_client.take)(output, {
1333
- AccountId: import_smithy_client.expectString,
1334
- NextToken: import_smithy_client.expectString,
1335
- ProblemList: /* @__PURE__ */ __name((_) => de_ProblemList(_, context), "ProblemList"),
1336
- ResourceGroupName: import_smithy_client.expectString
1337
- });
1338
- }, "de_ListProblemsResponse");
1339
- var de_Observation = /* @__PURE__ */ __name((output, context) => {
1340
- return (0, import_smithy_client.take)(output, {
1341
- CloudWatchEventDetailType: import_smithy_client.expectString,
1342
- CloudWatchEventId: import_smithy_client.expectString,
1343
- CloudWatchEventSource: import_smithy_client.expectString,
1344
- CodeDeployApplication: import_smithy_client.expectString,
1345
- CodeDeployDeploymentGroup: import_smithy_client.expectString,
1346
- CodeDeployDeploymentId: import_smithy_client.expectString,
1347
- CodeDeployInstanceGroupId: import_smithy_client.expectString,
1348
- CodeDeployState: import_smithy_client.expectString,
1349
- EbsCause: import_smithy_client.expectString,
1350
- EbsEvent: import_smithy_client.expectString,
1351
- EbsRequestId: import_smithy_client.expectString,
1352
- EbsResult: import_smithy_client.expectString,
1353
- Ec2State: import_smithy_client.expectString,
1354
- EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
1355
- HealthEventArn: import_smithy_client.expectString,
1356
- HealthEventDescription: import_smithy_client.expectString,
1357
- HealthEventTypeCategory: import_smithy_client.expectString,
1358
- HealthEventTypeCode: import_smithy_client.expectString,
1359
- HealthService: import_smithy_client.expectString,
1360
- Id: import_smithy_client.expectString,
1361
- LineTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LineTime"),
1362
- LogFilter: import_smithy_client.expectString,
1363
- LogGroup: import_smithy_client.expectString,
1364
- LogText: import_smithy_client.expectString,
1365
- MetricName: import_smithy_client.expectString,
1366
- MetricNamespace: import_smithy_client.expectString,
1367
- RdsEventCategories: import_smithy_client.expectString,
1368
- RdsEventMessage: import_smithy_client.expectString,
1369
- S3EventName: import_smithy_client.expectString,
1370
- SourceARN: import_smithy_client.expectString,
1371
- SourceType: import_smithy_client.expectString,
1372
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1373
- StatesArn: import_smithy_client.expectString,
1374
- StatesExecutionArn: import_smithy_client.expectString,
1375
- StatesInput: import_smithy_client.expectString,
1376
- StatesStatus: import_smithy_client.expectString,
1377
- Unit: import_smithy_client.expectString,
1378
- Value: import_smithy_client.limitedParseDouble,
1379
- XRayErrorPercent: import_smithy_client.expectInt32,
1380
- XRayFaultPercent: import_smithy_client.expectInt32,
1381
- XRayNodeName: import_smithy_client.expectString,
1382
- XRayNodeType: import_smithy_client.expectString,
1383
- XRayRequestAverageLatency: import_smithy_client.expectLong,
1384
- XRayRequestCount: import_smithy_client.expectInt32,
1385
- XRayThrottlePercent: import_smithy_client.expectInt32
1386
- });
1387
- }, "de_Observation");
1388
- var de_ObservationList = /* @__PURE__ */ __name((output, context) => {
1389
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1390
- return de_Observation(entry, context);
1391
- });
1392
- return retVal;
1393
- }, "de_ObservationList");
1394
- var de_Problem = /* @__PURE__ */ __name((output, context) => {
1395
- return (0, import_smithy_client.take)(output, {
1396
- AccountId: import_smithy_client.expectString,
1397
- AffectedResource: import_smithy_client.expectString,
1398
- EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"),
1399
- Feedback: import_smithy_client._json,
1400
- Id: import_smithy_client.expectString,
1401
- Insights: import_smithy_client.expectString,
1402
- LastRecurrenceTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastRecurrenceTime"),
1403
- RecurringCount: import_smithy_client.expectLong,
1404
- ResolutionMethod: import_smithy_client.expectString,
1405
- ResourceGroupName: import_smithy_client.expectString,
1406
- SeverityLevel: import_smithy_client.expectString,
1407
- ShortName: import_smithy_client.expectString,
1408
- StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"),
1409
- Status: import_smithy_client.expectString,
1410
- Title: import_smithy_client.expectString,
1411
- Visibility: import_smithy_client.expectString
1412
- });
1413
- }, "de_Problem");
1414
- var de_ProblemList = /* @__PURE__ */ __name((output, context) => {
1415
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1416
- return de_Problem(entry, context);
1417
- });
1418
- return retVal;
1419
- }, "de_ProblemList");
1420
- var de_RelatedObservations = /* @__PURE__ */ __name((output, context) => {
1421
- return (0, import_smithy_client.take)(output, {
1422
- ObservationList: /* @__PURE__ */ __name((_) => de_ObservationList(_, context), "ObservationList")
1423
- });
1424
- }, "de_RelatedObservations");
1425
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1426
- httpStatusCode: output.statusCode,
1427
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1428
- extendedRequestId: output.headers["x-amz-id-2"],
1429
- cfId: output.headers["x-amz-cf-id"]
1430
- }), "deserializeMetadata");
1431
- var throwDefaultError = (0, import_smithy_client.withBaseException)(ApplicationInsightsServiceException);
1432
- var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
1433
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1434
- const contents = {
1435
- protocol,
1436
- hostname,
1437
- port,
1438
- method: "POST",
1439
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1440
- headers
1441
- };
1442
- if (resolvedHostname !== void 0) {
1443
- contents.hostname = resolvedHostname;
1444
- }
1445
- if (body !== void 0) {
1446
- contents.body = body;
1447
- }
1448
- return new import_protocol_http.HttpRequest(contents);
1449
- }, "buildHttpRpcRequest");
1450
- function sharedHeaders(operation) {
1451
- return {
1452
- "content-type": "application/x-amz-json-1.1",
1453
- "x-amz-target": `EC2WindowsBarleyService.${operation}`
1454
- };
1455
- }
1456
- __name(sharedHeaders, "sharedHeaders");
1457
-
1458
- // src/commands/AddWorkloadCommand.ts
1459
- var AddWorkloadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1460
- return [
1461
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1462
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1463
- ];
1464
- }).s("EC2WindowsBarleyService", "AddWorkload", {}).n("ApplicationInsightsClient", "AddWorkloadCommand").f(void 0, void 0).ser(se_AddWorkloadCommand).de(de_AddWorkloadCommand).build() {
1465
- static {
1466
- __name(this, "AddWorkloadCommand");
1467
- }
1468
- };
1469
-
1470
- // src/commands/CreateApplicationCommand.ts
1471
-
1472
-
1473
-
1474
- var CreateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1475
- return [
1476
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1477
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1478
- ];
1479
- }).s("EC2WindowsBarleyService", "CreateApplication", {}).n("ApplicationInsightsClient", "CreateApplicationCommand").f(void 0, void 0).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
1480
- static {
1481
- __name(this, "CreateApplicationCommand");
1482
- }
1483
- };
1484
-
1485
- // src/commands/CreateComponentCommand.ts
1486
-
1487
-
1488
-
1489
- var CreateComponentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1490
- return [
1491
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1492
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1493
- ];
1494
- }).s("EC2WindowsBarleyService", "CreateComponent", {}).n("ApplicationInsightsClient", "CreateComponentCommand").f(void 0, void 0).ser(se_CreateComponentCommand).de(de_CreateComponentCommand).build() {
1495
- static {
1496
- __name(this, "CreateComponentCommand");
1497
- }
1498
- };
1499
-
1500
- // src/commands/CreateLogPatternCommand.ts
1501
-
1502
-
1503
-
1504
- var CreateLogPatternCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1505
- return [
1506
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1507
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1508
- ];
1509
- }).s("EC2WindowsBarleyService", "CreateLogPattern", {}).n("ApplicationInsightsClient", "CreateLogPatternCommand").f(void 0, void 0).ser(se_CreateLogPatternCommand).de(de_CreateLogPatternCommand).build() {
1510
- static {
1511
- __name(this, "CreateLogPatternCommand");
1512
- }
1513
- };
1514
-
1515
- // src/commands/DeleteApplicationCommand.ts
1516
-
1517
-
1518
-
1519
- var DeleteApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1520
- return [
1521
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1522
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1523
- ];
1524
- }).s("EC2WindowsBarleyService", "DeleteApplication", {}).n("ApplicationInsightsClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
1525
- static {
1526
- __name(this, "DeleteApplicationCommand");
1527
- }
1528
- };
1529
-
1530
- // src/commands/DeleteComponentCommand.ts
1531
-
1532
-
1533
-
1534
- var DeleteComponentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1535
- return [
1536
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1537
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1538
- ];
1539
- }).s("EC2WindowsBarleyService", "DeleteComponent", {}).n("ApplicationInsightsClient", "DeleteComponentCommand").f(void 0, void 0).ser(se_DeleteComponentCommand).de(de_DeleteComponentCommand).build() {
1540
- static {
1541
- __name(this, "DeleteComponentCommand");
1542
- }
1543
- };
1544
-
1545
- // src/commands/DeleteLogPatternCommand.ts
1546
-
1547
-
1548
-
1549
- var DeleteLogPatternCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1550
- return [
1551
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1552
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1553
- ];
1554
- }).s("EC2WindowsBarleyService", "DeleteLogPattern", {}).n("ApplicationInsightsClient", "DeleteLogPatternCommand").f(void 0, void 0).ser(se_DeleteLogPatternCommand).de(de_DeleteLogPatternCommand).build() {
1555
- static {
1556
- __name(this, "DeleteLogPatternCommand");
1557
- }
1558
- };
1559
-
1560
- // src/commands/DescribeApplicationCommand.ts
1561
-
1562
-
1563
-
1564
- var DescribeApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1565
- return [
1566
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1567
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1568
- ];
1569
- }).s("EC2WindowsBarleyService", "DescribeApplication", {}).n("ApplicationInsightsClient", "DescribeApplicationCommand").f(void 0, void 0).ser(se_DescribeApplicationCommand).de(de_DescribeApplicationCommand).build() {
1570
- static {
1571
- __name(this, "DescribeApplicationCommand");
1572
- }
1573
- };
1574
-
1575
- // src/commands/DescribeComponentCommand.ts
1576
-
1577
-
1578
-
1579
- var DescribeComponentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1580
- return [
1581
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1582
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1583
- ];
1584
- }).s("EC2WindowsBarleyService", "DescribeComponent", {}).n("ApplicationInsightsClient", "DescribeComponentCommand").f(void 0, void 0).ser(se_DescribeComponentCommand).de(de_DescribeComponentCommand).build() {
1585
- static {
1586
- __name(this, "DescribeComponentCommand");
1587
- }
1588
- };
1589
-
1590
- // src/commands/DescribeComponentConfigurationCommand.ts
1591
-
1592
-
1593
-
1594
- var DescribeComponentConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1595
- return [
1596
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1597
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1598
- ];
1599
- }).s("EC2WindowsBarleyService", "DescribeComponentConfiguration", {}).n("ApplicationInsightsClient", "DescribeComponentConfigurationCommand").f(void 0, void 0).ser(se_DescribeComponentConfigurationCommand).de(de_DescribeComponentConfigurationCommand).build() {
1600
- static {
1601
- __name(this, "DescribeComponentConfigurationCommand");
1602
- }
1603
- };
1604
-
1605
- // src/commands/DescribeComponentConfigurationRecommendationCommand.ts
1606
-
1607
-
1608
-
1609
- var DescribeComponentConfigurationRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1610
- return [
1611
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1612
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1613
- ];
1614
- }).s("EC2WindowsBarleyService", "DescribeComponentConfigurationRecommendation", {}).n("ApplicationInsightsClient", "DescribeComponentConfigurationRecommendationCommand").f(void 0, void 0).ser(se_DescribeComponentConfigurationRecommendationCommand).de(de_DescribeComponentConfigurationRecommendationCommand).build() {
1615
- static {
1616
- __name(this, "DescribeComponentConfigurationRecommendationCommand");
1617
- }
1618
- };
1619
-
1620
- // src/commands/DescribeLogPatternCommand.ts
1621
-
1622
-
1623
-
1624
- var DescribeLogPatternCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1625
- return [
1626
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1627
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1628
- ];
1629
- }).s("EC2WindowsBarleyService", "DescribeLogPattern", {}).n("ApplicationInsightsClient", "DescribeLogPatternCommand").f(void 0, void 0).ser(se_DescribeLogPatternCommand).de(de_DescribeLogPatternCommand).build() {
1630
- static {
1631
- __name(this, "DescribeLogPatternCommand");
1632
- }
1633
- };
1634
-
1635
- // src/commands/DescribeObservationCommand.ts
1636
-
1637
-
1638
-
1639
- var DescribeObservationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1640
- return [
1641
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1642
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1643
- ];
1644
- }).s("EC2WindowsBarleyService", "DescribeObservation", {}).n("ApplicationInsightsClient", "DescribeObservationCommand").f(void 0, void 0).ser(se_DescribeObservationCommand).de(de_DescribeObservationCommand).build() {
1645
- static {
1646
- __name(this, "DescribeObservationCommand");
1647
- }
1648
1080
  };
1649
-
1650
- // src/commands/DescribeProblemCommand.ts
1651
-
1652
-
1653
-
1654
- var DescribeProblemCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1655
- return [
1656
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1657
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1658
- ];
1659
- }).s("EC2WindowsBarleyService", "DescribeProblem", {}).n("ApplicationInsightsClient", "DescribeProblemCommand").f(void 0, void 0).ser(se_DescribeProblemCommand).de(de_DescribeProblemCommand).build() {
1660
- static {
1661
- __name(this, "DescribeProblemCommand");
1662
- }
1081
+ const se_ListProblemsRequest = (input, context) => {
1082
+ return smithyClient.take(input, {
1083
+ AccountId: [],
1084
+ ComponentName: [],
1085
+ EndTime: (_) => _.getTime() / 1_000,
1086
+ MaxResults: [],
1087
+ NextToken: [],
1088
+ ResourceGroupName: [],
1089
+ StartTime: (_) => _.getTime() / 1_000,
1090
+ Visibility: [],
1091
+ });
1663
1092
  };
1664
-
1665
- // src/commands/DescribeProblemObservationsCommand.ts
1666
-
1667
-
1668
-
1669
- var DescribeProblemObservationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1670
- return [
1671
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1672
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1673
- ];
1674
- }).s("EC2WindowsBarleyService", "DescribeProblemObservations", {}).n("ApplicationInsightsClient", "DescribeProblemObservationsCommand").f(void 0, void 0).ser(se_DescribeProblemObservationsCommand).de(de_DescribeProblemObservationsCommand).build() {
1675
- static {
1676
- __name(this, "DescribeProblemObservationsCommand");
1677
- }
1093
+ const de_ConfigurationEvent = (output, context) => {
1094
+ return smithyClient.take(output, {
1095
+ AccountId: smithyClient.expectString,
1096
+ EventDetail: smithyClient.expectString,
1097
+ EventResourceName: smithyClient.expectString,
1098
+ EventResourceType: smithyClient.expectString,
1099
+ EventStatus: smithyClient.expectString,
1100
+ EventTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1101
+ MonitoredResourceARN: smithyClient.expectString,
1102
+ ResourceGroupName: smithyClient.expectString,
1103
+ });
1678
1104
  };
1679
-
1680
- // src/commands/DescribeWorkloadCommand.ts
1681
-
1682
-
1683
-
1684
- var DescribeWorkloadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1685
- return [
1686
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1687
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1688
- ];
1689
- }).s("EC2WindowsBarleyService", "DescribeWorkload", {}).n("ApplicationInsightsClient", "DescribeWorkloadCommand").f(void 0, void 0).ser(se_DescribeWorkloadCommand).de(de_DescribeWorkloadCommand).build() {
1690
- static {
1691
- __name(this, "DescribeWorkloadCommand");
1692
- }
1105
+ const de_ConfigurationEventList = (output, context) => {
1106
+ const retVal = (output || [])
1107
+ .filter((e) => e != null)
1108
+ .map((entry) => {
1109
+ return de_ConfigurationEvent(entry);
1110
+ });
1111
+ return retVal;
1693
1112
  };
1694
-
1695
- // src/commands/ListApplicationsCommand.ts
1696
-
1697
-
1698
-
1699
- var ListApplicationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1700
- return [
1701
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1702
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1703
- ];
1704
- }).s("EC2WindowsBarleyService", "ListApplications", {}).n("ApplicationInsightsClient", "ListApplicationsCommand").f(void 0, void 0).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
1705
- static {
1706
- __name(this, "ListApplicationsCommand");
1707
- }
1113
+ const de_DescribeObservationResponse = (output, context) => {
1114
+ return smithyClient.take(output, {
1115
+ Observation: (_) => de_Observation(_),
1116
+ });
1708
1117
  };
1709
-
1710
- // src/commands/ListComponentsCommand.ts
1711
-
1712
-
1713
-
1714
- var ListComponentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1715
- return [
1716
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1717
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1718
- ];
1719
- }).s("EC2WindowsBarleyService", "ListComponents", {}).n("ApplicationInsightsClient", "ListComponentsCommand").f(void 0, void 0).ser(se_ListComponentsCommand).de(de_ListComponentsCommand).build() {
1720
- static {
1721
- __name(this, "ListComponentsCommand");
1722
- }
1118
+ const de_DescribeProblemObservationsResponse = (output, context) => {
1119
+ return smithyClient.take(output, {
1120
+ RelatedObservations: (_) => de_RelatedObservations(_),
1121
+ });
1723
1122
  };
1724
-
1725
- // src/commands/ListConfigurationHistoryCommand.ts
1726
-
1727
-
1728
-
1729
- var ListConfigurationHistoryCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1730
- return [
1731
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1732
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1733
- ];
1734
- }).s("EC2WindowsBarleyService", "ListConfigurationHistory", {}).n("ApplicationInsightsClient", "ListConfigurationHistoryCommand").f(void 0, void 0).ser(se_ListConfigurationHistoryCommand).de(de_ListConfigurationHistoryCommand).build() {
1735
- static {
1736
- __name(this, "ListConfigurationHistoryCommand");
1737
- }
1123
+ const de_DescribeProblemResponse = (output, context) => {
1124
+ return smithyClient.take(output, {
1125
+ Problem: (_) => de_Problem(_),
1126
+ SNSNotificationArn: smithyClient.expectString,
1127
+ });
1738
1128
  };
1739
-
1740
- // src/commands/ListLogPatternsCommand.ts
1741
-
1742
-
1743
-
1744
- var ListLogPatternsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1745
- return [
1746
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1747
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1748
- ];
1749
- }).s("EC2WindowsBarleyService", "ListLogPatterns", {}).n("ApplicationInsightsClient", "ListLogPatternsCommand").f(void 0, void 0).ser(se_ListLogPatternsCommand).de(de_ListLogPatternsCommand).build() {
1750
- static {
1751
- __name(this, "ListLogPatternsCommand");
1752
- }
1129
+ const de_ListConfigurationHistoryResponse = (output, context) => {
1130
+ return smithyClient.take(output, {
1131
+ EventList: (_) => de_ConfigurationEventList(_),
1132
+ NextToken: smithyClient.expectString,
1133
+ });
1753
1134
  };
1754
-
1755
- // src/commands/ListLogPatternSetsCommand.ts
1756
-
1757
-
1758
-
1759
- var ListLogPatternSetsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1760
- return [
1761
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1762
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1763
- ];
1764
- }).s("EC2WindowsBarleyService", "ListLogPatternSets", {}).n("ApplicationInsightsClient", "ListLogPatternSetsCommand").f(void 0, void 0).ser(se_ListLogPatternSetsCommand).de(de_ListLogPatternSetsCommand).build() {
1765
- static {
1766
- __name(this, "ListLogPatternSetsCommand");
1767
- }
1135
+ const de_ListProblemsResponse = (output, context) => {
1136
+ return smithyClient.take(output, {
1137
+ AccountId: smithyClient.expectString,
1138
+ NextToken: smithyClient.expectString,
1139
+ ProblemList: (_) => de_ProblemList(_),
1140
+ ResourceGroupName: smithyClient.expectString,
1141
+ });
1768
1142
  };
1769
-
1770
- // src/commands/ListProblemsCommand.ts
1771
-
1772
-
1773
-
1774
- var ListProblemsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1775
- return [
1776
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1777
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1778
- ];
1779
- }).s("EC2WindowsBarleyService", "ListProblems", {}).n("ApplicationInsightsClient", "ListProblemsCommand").f(void 0, void 0).ser(se_ListProblemsCommand).de(de_ListProblemsCommand).build() {
1780
- static {
1781
- __name(this, "ListProblemsCommand");
1782
- }
1143
+ const de_Observation = (output, context) => {
1144
+ return smithyClient.take(output, {
1145
+ CloudWatchEventDetailType: smithyClient.expectString,
1146
+ CloudWatchEventId: smithyClient.expectString,
1147
+ CloudWatchEventSource: smithyClient.expectString,
1148
+ CodeDeployApplication: smithyClient.expectString,
1149
+ CodeDeployDeploymentGroup: smithyClient.expectString,
1150
+ CodeDeployDeploymentId: smithyClient.expectString,
1151
+ CodeDeployInstanceGroupId: smithyClient.expectString,
1152
+ CodeDeployState: smithyClient.expectString,
1153
+ EbsCause: smithyClient.expectString,
1154
+ EbsEvent: smithyClient.expectString,
1155
+ EbsRequestId: smithyClient.expectString,
1156
+ EbsResult: smithyClient.expectString,
1157
+ Ec2State: smithyClient.expectString,
1158
+ EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1159
+ HealthEventArn: smithyClient.expectString,
1160
+ HealthEventDescription: smithyClient.expectString,
1161
+ HealthEventTypeCategory: smithyClient.expectString,
1162
+ HealthEventTypeCode: smithyClient.expectString,
1163
+ HealthService: smithyClient.expectString,
1164
+ Id: smithyClient.expectString,
1165
+ LineTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1166
+ LogFilter: smithyClient.expectString,
1167
+ LogGroup: smithyClient.expectString,
1168
+ LogText: smithyClient.expectString,
1169
+ MetricName: smithyClient.expectString,
1170
+ MetricNamespace: smithyClient.expectString,
1171
+ RdsEventCategories: smithyClient.expectString,
1172
+ RdsEventMessage: smithyClient.expectString,
1173
+ S3EventName: smithyClient.expectString,
1174
+ SourceARN: smithyClient.expectString,
1175
+ SourceType: smithyClient.expectString,
1176
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1177
+ StatesArn: smithyClient.expectString,
1178
+ StatesExecutionArn: smithyClient.expectString,
1179
+ StatesInput: smithyClient.expectString,
1180
+ StatesStatus: smithyClient.expectString,
1181
+ Unit: smithyClient.expectString,
1182
+ Value: smithyClient.limitedParseDouble,
1183
+ XRayErrorPercent: smithyClient.expectInt32,
1184
+ XRayFaultPercent: smithyClient.expectInt32,
1185
+ XRayNodeName: smithyClient.expectString,
1186
+ XRayNodeType: smithyClient.expectString,
1187
+ XRayRequestAverageLatency: smithyClient.expectLong,
1188
+ XRayRequestCount: smithyClient.expectInt32,
1189
+ XRayThrottlePercent: smithyClient.expectInt32,
1190
+ });
1783
1191
  };
1784
-
1785
- // src/commands/ListTagsForResourceCommand.ts
1786
-
1787
-
1788
-
1789
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1790
- return [
1791
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1792
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1793
- ];
1794
- }).s("EC2WindowsBarleyService", "ListTagsForResource", {}).n("ApplicationInsightsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1795
- static {
1796
- __name(this, "ListTagsForResourceCommand");
1797
- }
1192
+ const de_ObservationList = (output, context) => {
1193
+ const retVal = (output || [])
1194
+ .filter((e) => e != null)
1195
+ .map((entry) => {
1196
+ return de_Observation(entry);
1197
+ });
1198
+ return retVal;
1199
+ };
1200
+ const de_Problem = (output, context) => {
1201
+ return smithyClient.take(output, {
1202
+ AccountId: smithyClient.expectString,
1203
+ AffectedResource: smithyClient.expectString,
1204
+ EndTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1205
+ Feedback: smithyClient._json,
1206
+ Id: smithyClient.expectString,
1207
+ Insights: smithyClient.expectString,
1208
+ LastRecurrenceTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1209
+ RecurringCount: smithyClient.expectLong,
1210
+ ResolutionMethod: smithyClient.expectString,
1211
+ ResourceGroupName: smithyClient.expectString,
1212
+ SeverityLevel: smithyClient.expectString,
1213
+ ShortName: smithyClient.expectString,
1214
+ StartTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1215
+ Status: smithyClient.expectString,
1216
+ Title: smithyClient.expectString,
1217
+ Visibility: smithyClient.expectString,
1218
+ });
1798
1219
  };
1799
-
1800
- // src/commands/ListWorkloadsCommand.ts
1801
-
1802
-
1803
-
1804
- var ListWorkloadsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1805
- return [
1806
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1807
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1808
- ];
1809
- }).s("EC2WindowsBarleyService", "ListWorkloads", {}).n("ApplicationInsightsClient", "ListWorkloadsCommand").f(void 0, void 0).ser(se_ListWorkloadsCommand).de(de_ListWorkloadsCommand).build() {
1810
- static {
1811
- __name(this, "ListWorkloadsCommand");
1812
- }
1220
+ const de_ProblemList = (output, context) => {
1221
+ const retVal = (output || [])
1222
+ .filter((e) => e != null)
1223
+ .map((entry) => {
1224
+ return de_Problem(entry);
1225
+ });
1226
+ return retVal;
1813
1227
  };
1814
-
1815
- // src/commands/RemoveWorkloadCommand.ts
1816
-
1817
-
1818
-
1819
- var RemoveWorkloadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1820
- return [
1821
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1822
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1823
- ];
1824
- }).s("EC2WindowsBarleyService", "RemoveWorkload", {}).n("ApplicationInsightsClient", "RemoveWorkloadCommand").f(void 0, void 0).ser(se_RemoveWorkloadCommand).de(de_RemoveWorkloadCommand).build() {
1825
- static {
1826
- __name(this, "RemoveWorkloadCommand");
1827
- }
1228
+ const de_RelatedObservations = (output, context) => {
1229
+ return smithyClient.take(output, {
1230
+ ObservationList: (_) => de_ObservationList(_),
1231
+ });
1828
1232
  };
1829
-
1830
- // src/commands/TagResourceCommand.ts
1831
-
1832
-
1833
-
1834
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1835
- return [
1836
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1837
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1838
- ];
1839
- }).s("EC2WindowsBarleyService", "TagResource", {}).n("ApplicationInsightsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1840
- static {
1841
- __name(this, "TagResourceCommand");
1842
- }
1233
+ const deserializeMetadata = (output) => ({
1234
+ httpStatusCode: output.statusCode,
1235
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1236
+ extendedRequestId: output.headers["x-amz-id-2"],
1237
+ cfId: output.headers["x-amz-cf-id"],
1238
+ });
1239
+ const throwDefaultError = smithyClient.withBaseException(ApplicationInsightsServiceException);
1240
+ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
1241
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1242
+ const contents = {
1243
+ protocol,
1244
+ hostname,
1245
+ port,
1246
+ method: "POST",
1247
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
1248
+ headers,
1249
+ };
1250
+ if (body !== undefined) {
1251
+ contents.body = body;
1252
+ }
1253
+ return new protocolHttp.HttpRequest(contents);
1843
1254
  };
1255
+ function sharedHeaders(operation) {
1256
+ return {
1257
+ "content-type": "application/x-amz-json-1.1",
1258
+ "x-amz-target": `EC2WindowsBarleyService.${operation}`,
1259
+ };
1260
+ }
1844
1261
 
1845
- // src/commands/UntagResourceCommand.ts
1846
-
1847
-
1262
+ class AddWorkloadCommand extends smithyClient.Command
1263
+ .classBuilder()
1264
+ .ep(commonParams)
1265
+ .m(function (Command, cs, config, o) {
1266
+ return [
1267
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1268
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1269
+ ];
1270
+ })
1271
+ .s("EC2WindowsBarleyService", "AddWorkload", {})
1272
+ .n("ApplicationInsightsClient", "AddWorkloadCommand")
1273
+ .f(void 0, void 0)
1274
+ .ser(se_AddWorkloadCommand)
1275
+ .de(de_AddWorkloadCommand)
1276
+ .build() {
1277
+ }
1848
1278
 
1849
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1850
- return [
1851
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1852
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1853
- ];
1854
- }).s("EC2WindowsBarleyService", "UntagResource", {}).n("ApplicationInsightsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1855
- static {
1856
- __name(this, "UntagResourceCommand");
1857
- }
1858
- };
1279
+ class CreateApplicationCommand extends smithyClient.Command
1280
+ .classBuilder()
1281
+ .ep(commonParams)
1282
+ .m(function (Command, cs, config, o) {
1283
+ return [
1284
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1285
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1286
+ ];
1287
+ })
1288
+ .s("EC2WindowsBarleyService", "CreateApplication", {})
1289
+ .n("ApplicationInsightsClient", "CreateApplicationCommand")
1290
+ .f(void 0, void 0)
1291
+ .ser(se_CreateApplicationCommand)
1292
+ .de(de_CreateApplicationCommand)
1293
+ .build() {
1294
+ }
1859
1295
 
1860
- // src/commands/UpdateApplicationCommand.ts
1296
+ class CreateComponentCommand extends smithyClient.Command
1297
+ .classBuilder()
1298
+ .ep(commonParams)
1299
+ .m(function (Command, cs, config, o) {
1300
+ return [
1301
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1302
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1303
+ ];
1304
+ })
1305
+ .s("EC2WindowsBarleyService", "CreateComponent", {})
1306
+ .n("ApplicationInsightsClient", "CreateComponentCommand")
1307
+ .f(void 0, void 0)
1308
+ .ser(se_CreateComponentCommand)
1309
+ .de(de_CreateComponentCommand)
1310
+ .build() {
1311
+ }
1861
1312
 
1313
+ class CreateLogPatternCommand extends smithyClient.Command
1314
+ .classBuilder()
1315
+ .ep(commonParams)
1316
+ .m(function (Command, cs, config, o) {
1317
+ return [
1318
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1319
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1320
+ ];
1321
+ })
1322
+ .s("EC2WindowsBarleyService", "CreateLogPattern", {})
1323
+ .n("ApplicationInsightsClient", "CreateLogPatternCommand")
1324
+ .f(void 0, void 0)
1325
+ .ser(se_CreateLogPatternCommand)
1326
+ .de(de_CreateLogPatternCommand)
1327
+ .build() {
1328
+ }
1862
1329
 
1330
+ class DeleteApplicationCommand extends smithyClient.Command
1331
+ .classBuilder()
1332
+ .ep(commonParams)
1333
+ .m(function (Command, cs, config, o) {
1334
+ return [
1335
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1336
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1337
+ ];
1338
+ })
1339
+ .s("EC2WindowsBarleyService", "DeleteApplication", {})
1340
+ .n("ApplicationInsightsClient", "DeleteApplicationCommand")
1341
+ .f(void 0, void 0)
1342
+ .ser(se_DeleteApplicationCommand)
1343
+ .de(de_DeleteApplicationCommand)
1344
+ .build() {
1345
+ }
1863
1346
 
1864
- var UpdateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1865
- return [
1866
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1867
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1868
- ];
1869
- }).s("EC2WindowsBarleyService", "UpdateApplication", {}).n("ApplicationInsightsClient", "UpdateApplicationCommand").f(void 0, void 0).ser(se_UpdateApplicationCommand).de(de_UpdateApplicationCommand).build() {
1870
- static {
1871
- __name(this, "UpdateApplicationCommand");
1872
- }
1873
- };
1347
+ class DeleteComponentCommand extends smithyClient.Command
1348
+ .classBuilder()
1349
+ .ep(commonParams)
1350
+ .m(function (Command, cs, config, o) {
1351
+ return [
1352
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1353
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1354
+ ];
1355
+ })
1356
+ .s("EC2WindowsBarleyService", "DeleteComponent", {})
1357
+ .n("ApplicationInsightsClient", "DeleteComponentCommand")
1358
+ .f(void 0, void 0)
1359
+ .ser(se_DeleteComponentCommand)
1360
+ .de(de_DeleteComponentCommand)
1361
+ .build() {
1362
+ }
1874
1363
 
1875
- // src/commands/UpdateComponentCommand.ts
1364
+ class DeleteLogPatternCommand extends smithyClient.Command
1365
+ .classBuilder()
1366
+ .ep(commonParams)
1367
+ .m(function (Command, cs, config, o) {
1368
+ return [
1369
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1370
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1371
+ ];
1372
+ })
1373
+ .s("EC2WindowsBarleyService", "DeleteLogPattern", {})
1374
+ .n("ApplicationInsightsClient", "DeleteLogPatternCommand")
1375
+ .f(void 0, void 0)
1376
+ .ser(se_DeleteLogPatternCommand)
1377
+ .de(de_DeleteLogPatternCommand)
1378
+ .build() {
1379
+ }
1876
1380
 
1381
+ class DescribeApplicationCommand extends smithyClient.Command
1382
+ .classBuilder()
1383
+ .ep(commonParams)
1384
+ .m(function (Command, cs, config, o) {
1385
+ return [
1386
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1387
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1388
+ ];
1389
+ })
1390
+ .s("EC2WindowsBarleyService", "DescribeApplication", {})
1391
+ .n("ApplicationInsightsClient", "DescribeApplicationCommand")
1392
+ .f(void 0, void 0)
1393
+ .ser(se_DescribeApplicationCommand)
1394
+ .de(de_DescribeApplicationCommand)
1395
+ .build() {
1396
+ }
1877
1397
 
1398
+ class DescribeComponentCommand extends smithyClient.Command
1399
+ .classBuilder()
1400
+ .ep(commonParams)
1401
+ .m(function (Command, cs, config, o) {
1402
+ return [
1403
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1404
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1405
+ ];
1406
+ })
1407
+ .s("EC2WindowsBarleyService", "DescribeComponent", {})
1408
+ .n("ApplicationInsightsClient", "DescribeComponentCommand")
1409
+ .f(void 0, void 0)
1410
+ .ser(se_DescribeComponentCommand)
1411
+ .de(de_DescribeComponentCommand)
1412
+ .build() {
1413
+ }
1878
1414
 
1879
- var UpdateComponentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1880
- return [
1881
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1882
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1883
- ];
1884
- }).s("EC2WindowsBarleyService", "UpdateComponent", {}).n("ApplicationInsightsClient", "UpdateComponentCommand").f(void 0, void 0).ser(se_UpdateComponentCommand).de(de_UpdateComponentCommand).build() {
1885
- static {
1886
- __name(this, "UpdateComponentCommand");
1887
- }
1888
- };
1415
+ class DescribeComponentConfigurationCommand extends smithyClient.Command
1416
+ .classBuilder()
1417
+ .ep(commonParams)
1418
+ .m(function (Command, cs, config, o) {
1419
+ return [
1420
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1421
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1422
+ ];
1423
+ })
1424
+ .s("EC2WindowsBarleyService", "DescribeComponentConfiguration", {})
1425
+ .n("ApplicationInsightsClient", "DescribeComponentConfigurationCommand")
1426
+ .f(void 0, void 0)
1427
+ .ser(se_DescribeComponentConfigurationCommand)
1428
+ .de(de_DescribeComponentConfigurationCommand)
1429
+ .build() {
1430
+ }
1889
1431
 
1890
- // src/commands/UpdateComponentConfigurationCommand.ts
1432
+ class DescribeComponentConfigurationRecommendationCommand extends smithyClient.Command
1433
+ .classBuilder()
1434
+ .ep(commonParams)
1435
+ .m(function (Command, cs, config, o) {
1436
+ return [
1437
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1438
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1439
+ ];
1440
+ })
1441
+ .s("EC2WindowsBarleyService", "DescribeComponentConfigurationRecommendation", {})
1442
+ .n("ApplicationInsightsClient", "DescribeComponentConfigurationRecommendationCommand")
1443
+ .f(void 0, void 0)
1444
+ .ser(se_DescribeComponentConfigurationRecommendationCommand)
1445
+ .de(de_DescribeComponentConfigurationRecommendationCommand)
1446
+ .build() {
1447
+ }
1891
1448
 
1449
+ class DescribeLogPatternCommand extends smithyClient.Command
1450
+ .classBuilder()
1451
+ .ep(commonParams)
1452
+ .m(function (Command, cs, config, o) {
1453
+ return [
1454
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1455
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1456
+ ];
1457
+ })
1458
+ .s("EC2WindowsBarleyService", "DescribeLogPattern", {})
1459
+ .n("ApplicationInsightsClient", "DescribeLogPatternCommand")
1460
+ .f(void 0, void 0)
1461
+ .ser(se_DescribeLogPatternCommand)
1462
+ .de(de_DescribeLogPatternCommand)
1463
+ .build() {
1464
+ }
1892
1465
 
1466
+ class DescribeObservationCommand extends smithyClient.Command
1467
+ .classBuilder()
1468
+ .ep(commonParams)
1469
+ .m(function (Command, cs, config, o) {
1470
+ return [
1471
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1472
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1473
+ ];
1474
+ })
1475
+ .s("EC2WindowsBarleyService", "DescribeObservation", {})
1476
+ .n("ApplicationInsightsClient", "DescribeObservationCommand")
1477
+ .f(void 0, void 0)
1478
+ .ser(se_DescribeObservationCommand)
1479
+ .de(de_DescribeObservationCommand)
1480
+ .build() {
1481
+ }
1893
1482
 
1894
- var UpdateComponentConfigurationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1895
- return [
1896
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1897
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1898
- ];
1899
- }).s("EC2WindowsBarleyService", "UpdateComponentConfiguration", {}).n("ApplicationInsightsClient", "UpdateComponentConfigurationCommand").f(void 0, void 0).ser(se_UpdateComponentConfigurationCommand).de(de_UpdateComponentConfigurationCommand).build() {
1900
- static {
1901
- __name(this, "UpdateComponentConfigurationCommand");
1902
- }
1903
- };
1483
+ class DescribeProblemCommand extends smithyClient.Command
1484
+ .classBuilder()
1485
+ .ep(commonParams)
1486
+ .m(function (Command, cs, config, o) {
1487
+ return [
1488
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1489
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1490
+ ];
1491
+ })
1492
+ .s("EC2WindowsBarleyService", "DescribeProblem", {})
1493
+ .n("ApplicationInsightsClient", "DescribeProblemCommand")
1494
+ .f(void 0, void 0)
1495
+ .ser(se_DescribeProblemCommand)
1496
+ .de(de_DescribeProblemCommand)
1497
+ .build() {
1498
+ }
1904
1499
 
1905
- // src/commands/UpdateLogPatternCommand.ts
1500
+ class DescribeProblemObservationsCommand extends smithyClient.Command
1501
+ .classBuilder()
1502
+ .ep(commonParams)
1503
+ .m(function (Command, cs, config, o) {
1504
+ return [
1505
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1506
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1507
+ ];
1508
+ })
1509
+ .s("EC2WindowsBarleyService", "DescribeProblemObservations", {})
1510
+ .n("ApplicationInsightsClient", "DescribeProblemObservationsCommand")
1511
+ .f(void 0, void 0)
1512
+ .ser(se_DescribeProblemObservationsCommand)
1513
+ .de(de_DescribeProblemObservationsCommand)
1514
+ .build() {
1515
+ }
1906
1516
 
1517
+ class DescribeWorkloadCommand extends smithyClient.Command
1518
+ .classBuilder()
1519
+ .ep(commonParams)
1520
+ .m(function (Command, cs, config, o) {
1521
+ return [
1522
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1523
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1524
+ ];
1525
+ })
1526
+ .s("EC2WindowsBarleyService", "DescribeWorkload", {})
1527
+ .n("ApplicationInsightsClient", "DescribeWorkloadCommand")
1528
+ .f(void 0, void 0)
1529
+ .ser(se_DescribeWorkloadCommand)
1530
+ .de(de_DescribeWorkloadCommand)
1531
+ .build() {
1532
+ }
1907
1533
 
1534
+ class ListApplicationsCommand extends smithyClient.Command
1535
+ .classBuilder()
1536
+ .ep(commonParams)
1537
+ .m(function (Command, cs, config, o) {
1538
+ return [
1539
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1540
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1541
+ ];
1542
+ })
1543
+ .s("EC2WindowsBarleyService", "ListApplications", {})
1544
+ .n("ApplicationInsightsClient", "ListApplicationsCommand")
1545
+ .f(void 0, void 0)
1546
+ .ser(se_ListApplicationsCommand)
1547
+ .de(de_ListApplicationsCommand)
1548
+ .build() {
1549
+ }
1908
1550
 
1909
- var UpdateLogPatternCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1910
- return [
1911
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1912
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1913
- ];
1914
- }).s("EC2WindowsBarleyService", "UpdateLogPattern", {}).n("ApplicationInsightsClient", "UpdateLogPatternCommand").f(void 0, void 0).ser(se_UpdateLogPatternCommand).de(de_UpdateLogPatternCommand).build() {
1915
- static {
1916
- __name(this, "UpdateLogPatternCommand");
1917
- }
1918
- };
1551
+ class ListComponentsCommand extends smithyClient.Command
1552
+ .classBuilder()
1553
+ .ep(commonParams)
1554
+ .m(function (Command, cs, config, o) {
1555
+ return [
1556
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1557
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1558
+ ];
1559
+ })
1560
+ .s("EC2WindowsBarleyService", "ListComponents", {})
1561
+ .n("ApplicationInsightsClient", "ListComponentsCommand")
1562
+ .f(void 0, void 0)
1563
+ .ser(se_ListComponentsCommand)
1564
+ .de(de_ListComponentsCommand)
1565
+ .build() {
1566
+ }
1919
1567
 
1920
- // src/commands/UpdateProblemCommand.ts
1568
+ class ListConfigurationHistoryCommand extends smithyClient.Command
1569
+ .classBuilder()
1570
+ .ep(commonParams)
1571
+ .m(function (Command, cs, config, o) {
1572
+ return [
1573
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1574
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1575
+ ];
1576
+ })
1577
+ .s("EC2WindowsBarleyService", "ListConfigurationHistory", {})
1578
+ .n("ApplicationInsightsClient", "ListConfigurationHistoryCommand")
1579
+ .f(void 0, void 0)
1580
+ .ser(se_ListConfigurationHistoryCommand)
1581
+ .de(de_ListConfigurationHistoryCommand)
1582
+ .build() {
1583
+ }
1921
1584
 
1585
+ class ListLogPatternsCommand extends smithyClient.Command
1586
+ .classBuilder()
1587
+ .ep(commonParams)
1588
+ .m(function (Command, cs, config, o) {
1589
+ return [
1590
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1591
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1592
+ ];
1593
+ })
1594
+ .s("EC2WindowsBarleyService", "ListLogPatterns", {})
1595
+ .n("ApplicationInsightsClient", "ListLogPatternsCommand")
1596
+ .f(void 0, void 0)
1597
+ .ser(se_ListLogPatternsCommand)
1598
+ .de(de_ListLogPatternsCommand)
1599
+ .build() {
1600
+ }
1922
1601
 
1602
+ class ListLogPatternSetsCommand extends smithyClient.Command
1603
+ .classBuilder()
1604
+ .ep(commonParams)
1605
+ .m(function (Command, cs, config, o) {
1606
+ return [
1607
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1608
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1609
+ ];
1610
+ })
1611
+ .s("EC2WindowsBarleyService", "ListLogPatternSets", {})
1612
+ .n("ApplicationInsightsClient", "ListLogPatternSetsCommand")
1613
+ .f(void 0, void 0)
1614
+ .ser(se_ListLogPatternSetsCommand)
1615
+ .de(de_ListLogPatternSetsCommand)
1616
+ .build() {
1617
+ }
1923
1618
 
1924
- var UpdateProblemCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1925
- return [
1926
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1927
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1928
- ];
1929
- }).s("EC2WindowsBarleyService", "UpdateProblem", {}).n("ApplicationInsightsClient", "UpdateProblemCommand").f(void 0, void 0).ser(se_UpdateProblemCommand).de(de_UpdateProblemCommand).build() {
1930
- static {
1931
- __name(this, "UpdateProblemCommand");
1932
- }
1933
- };
1619
+ class ListProblemsCommand extends smithyClient.Command
1620
+ .classBuilder()
1621
+ .ep(commonParams)
1622
+ .m(function (Command, cs, config, o) {
1623
+ return [
1624
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1625
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1626
+ ];
1627
+ })
1628
+ .s("EC2WindowsBarleyService", "ListProblems", {})
1629
+ .n("ApplicationInsightsClient", "ListProblemsCommand")
1630
+ .f(void 0, void 0)
1631
+ .ser(se_ListProblemsCommand)
1632
+ .de(de_ListProblemsCommand)
1633
+ .build() {
1634
+ }
1934
1635
 
1935
- // src/commands/UpdateWorkloadCommand.ts
1636
+ class ListTagsForResourceCommand extends smithyClient.Command
1637
+ .classBuilder()
1638
+ .ep(commonParams)
1639
+ .m(function (Command, cs, config, o) {
1640
+ return [
1641
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1642
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1643
+ ];
1644
+ })
1645
+ .s("EC2WindowsBarleyService", "ListTagsForResource", {})
1646
+ .n("ApplicationInsightsClient", "ListTagsForResourceCommand")
1647
+ .f(void 0, void 0)
1648
+ .ser(se_ListTagsForResourceCommand)
1649
+ .de(de_ListTagsForResourceCommand)
1650
+ .build() {
1651
+ }
1936
1652
 
1653
+ class ListWorkloadsCommand extends smithyClient.Command
1654
+ .classBuilder()
1655
+ .ep(commonParams)
1656
+ .m(function (Command, cs, config, o) {
1657
+ return [
1658
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1659
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1660
+ ];
1661
+ })
1662
+ .s("EC2WindowsBarleyService", "ListWorkloads", {})
1663
+ .n("ApplicationInsightsClient", "ListWorkloadsCommand")
1664
+ .f(void 0, void 0)
1665
+ .ser(se_ListWorkloadsCommand)
1666
+ .de(de_ListWorkloadsCommand)
1667
+ .build() {
1668
+ }
1937
1669
 
1670
+ class RemoveWorkloadCommand extends smithyClient.Command
1671
+ .classBuilder()
1672
+ .ep(commonParams)
1673
+ .m(function (Command, cs, config, o) {
1674
+ return [
1675
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1676
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1677
+ ];
1678
+ })
1679
+ .s("EC2WindowsBarleyService", "RemoveWorkload", {})
1680
+ .n("ApplicationInsightsClient", "RemoveWorkloadCommand")
1681
+ .f(void 0, void 0)
1682
+ .ser(se_RemoveWorkloadCommand)
1683
+ .de(de_RemoveWorkloadCommand)
1684
+ .build() {
1685
+ }
1938
1686
 
1939
- var UpdateWorkloadCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1940
- return [
1941
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1942
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1943
- ];
1944
- }).s("EC2WindowsBarleyService", "UpdateWorkload", {}).n("ApplicationInsightsClient", "UpdateWorkloadCommand").f(void 0, void 0).ser(se_UpdateWorkloadCommand).de(de_UpdateWorkloadCommand).build() {
1945
- static {
1946
- __name(this, "UpdateWorkloadCommand");
1947
- }
1948
- };
1687
+ class TagResourceCommand extends smithyClient.Command
1688
+ .classBuilder()
1689
+ .ep(commonParams)
1690
+ .m(function (Command, cs, config, o) {
1691
+ return [
1692
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1693
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1694
+ ];
1695
+ })
1696
+ .s("EC2WindowsBarleyService", "TagResource", {})
1697
+ .n("ApplicationInsightsClient", "TagResourceCommand")
1698
+ .f(void 0, void 0)
1699
+ .ser(se_TagResourceCommand)
1700
+ .de(de_TagResourceCommand)
1701
+ .build() {
1702
+ }
1949
1703
 
1950
- // src/ApplicationInsights.ts
1951
- var commands = {
1952
- AddWorkloadCommand,
1953
- CreateApplicationCommand,
1954
- CreateComponentCommand,
1955
- CreateLogPatternCommand,
1956
- DeleteApplicationCommand,
1957
- DeleteComponentCommand,
1958
- DeleteLogPatternCommand,
1959
- DescribeApplicationCommand,
1960
- DescribeComponentCommand,
1961
- DescribeComponentConfigurationCommand,
1962
- DescribeComponentConfigurationRecommendationCommand,
1963
- DescribeLogPatternCommand,
1964
- DescribeObservationCommand,
1965
- DescribeProblemCommand,
1966
- DescribeProblemObservationsCommand,
1967
- DescribeWorkloadCommand,
1968
- ListApplicationsCommand,
1969
- ListComponentsCommand,
1970
- ListConfigurationHistoryCommand,
1971
- ListLogPatternsCommand,
1972
- ListLogPatternSetsCommand,
1973
- ListProblemsCommand,
1974
- ListTagsForResourceCommand,
1975
- ListWorkloadsCommand,
1976
- RemoveWorkloadCommand,
1977
- TagResourceCommand,
1978
- UntagResourceCommand,
1979
- UpdateApplicationCommand,
1980
- UpdateComponentCommand,
1981
- UpdateComponentConfigurationCommand,
1982
- UpdateLogPatternCommand,
1983
- UpdateProblemCommand,
1984
- UpdateWorkloadCommand
1985
- };
1986
- var ApplicationInsights = class extends ApplicationInsightsClient {
1987
- static {
1988
- __name(this, "ApplicationInsights");
1989
- }
1990
- };
1991
- (0, import_smithy_client.createAggregatedClient)(commands, ApplicationInsights);
1704
+ class UntagResourceCommand extends smithyClient.Command
1705
+ .classBuilder()
1706
+ .ep(commonParams)
1707
+ .m(function (Command, cs, config, o) {
1708
+ return [
1709
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1710
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1711
+ ];
1712
+ })
1713
+ .s("EC2WindowsBarleyService", "UntagResource", {})
1714
+ .n("ApplicationInsightsClient", "UntagResourceCommand")
1715
+ .f(void 0, void 0)
1716
+ .ser(se_UntagResourceCommand)
1717
+ .de(de_UntagResourceCommand)
1718
+ .build() {
1719
+ }
1992
1720
 
1993
- // src/pagination/ListApplicationsPaginator.ts
1721
+ class UpdateApplicationCommand extends smithyClient.Command
1722
+ .classBuilder()
1723
+ .ep(commonParams)
1724
+ .m(function (Command, cs, config, o) {
1725
+ return [
1726
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1727
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1728
+ ];
1729
+ })
1730
+ .s("EC2WindowsBarleyService", "UpdateApplication", {})
1731
+ .n("ApplicationInsightsClient", "UpdateApplicationCommand")
1732
+ .f(void 0, void 0)
1733
+ .ser(se_UpdateApplicationCommand)
1734
+ .de(de_UpdateApplicationCommand)
1735
+ .build() {
1736
+ }
1994
1737
 
1995
- var paginateListApplications = (0, import_core.createPaginator)(ApplicationInsightsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
1738
+ class UpdateComponentCommand extends smithyClient.Command
1739
+ .classBuilder()
1740
+ .ep(commonParams)
1741
+ .m(function (Command, cs, config, o) {
1742
+ return [
1743
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1744
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1745
+ ];
1746
+ })
1747
+ .s("EC2WindowsBarleyService", "UpdateComponent", {})
1748
+ .n("ApplicationInsightsClient", "UpdateComponentCommand")
1749
+ .f(void 0, void 0)
1750
+ .ser(se_UpdateComponentCommand)
1751
+ .de(de_UpdateComponentCommand)
1752
+ .build() {
1753
+ }
1996
1754
 
1997
- // src/pagination/ListComponentsPaginator.ts
1755
+ class UpdateComponentConfigurationCommand extends smithyClient.Command
1756
+ .classBuilder()
1757
+ .ep(commonParams)
1758
+ .m(function (Command, cs, config, o) {
1759
+ return [
1760
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1761
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1762
+ ];
1763
+ })
1764
+ .s("EC2WindowsBarleyService", "UpdateComponentConfiguration", {})
1765
+ .n("ApplicationInsightsClient", "UpdateComponentConfigurationCommand")
1766
+ .f(void 0, void 0)
1767
+ .ser(se_UpdateComponentConfigurationCommand)
1768
+ .de(de_UpdateComponentConfigurationCommand)
1769
+ .build() {
1770
+ }
1998
1771
 
1999
- var paginateListComponents = (0, import_core.createPaginator)(ApplicationInsightsClient, ListComponentsCommand, "NextToken", "NextToken", "MaxResults");
1772
+ class UpdateLogPatternCommand extends smithyClient.Command
1773
+ .classBuilder()
1774
+ .ep(commonParams)
1775
+ .m(function (Command, cs, config, o) {
1776
+ return [
1777
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1778
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1779
+ ];
1780
+ })
1781
+ .s("EC2WindowsBarleyService", "UpdateLogPattern", {})
1782
+ .n("ApplicationInsightsClient", "UpdateLogPatternCommand")
1783
+ .f(void 0, void 0)
1784
+ .ser(se_UpdateLogPatternCommand)
1785
+ .de(de_UpdateLogPatternCommand)
1786
+ .build() {
1787
+ }
2000
1788
 
2001
- // src/pagination/ListConfigurationHistoryPaginator.ts
1789
+ class UpdateProblemCommand extends smithyClient.Command
1790
+ .classBuilder()
1791
+ .ep(commonParams)
1792
+ .m(function (Command, cs, config, o) {
1793
+ return [
1794
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1795
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1796
+ ];
1797
+ })
1798
+ .s("EC2WindowsBarleyService", "UpdateProblem", {})
1799
+ .n("ApplicationInsightsClient", "UpdateProblemCommand")
1800
+ .f(void 0, void 0)
1801
+ .ser(se_UpdateProblemCommand)
1802
+ .de(de_UpdateProblemCommand)
1803
+ .build() {
1804
+ }
2002
1805
 
2003
- var paginateListConfigurationHistory = (0, import_core.createPaginator)(ApplicationInsightsClient, ListConfigurationHistoryCommand, "NextToken", "NextToken", "MaxResults");
1806
+ class UpdateWorkloadCommand extends smithyClient.Command
1807
+ .classBuilder()
1808
+ .ep(commonParams)
1809
+ .m(function (Command, cs, config, o) {
1810
+ return [
1811
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1812
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1813
+ ];
1814
+ })
1815
+ .s("EC2WindowsBarleyService", "UpdateWorkload", {})
1816
+ .n("ApplicationInsightsClient", "UpdateWorkloadCommand")
1817
+ .f(void 0, void 0)
1818
+ .ser(se_UpdateWorkloadCommand)
1819
+ .de(de_UpdateWorkloadCommand)
1820
+ .build() {
1821
+ }
2004
1822
 
2005
- // src/pagination/ListLogPatternSetsPaginator.ts
1823
+ const commands = {
1824
+ AddWorkloadCommand,
1825
+ CreateApplicationCommand,
1826
+ CreateComponentCommand,
1827
+ CreateLogPatternCommand,
1828
+ DeleteApplicationCommand,
1829
+ DeleteComponentCommand,
1830
+ DeleteLogPatternCommand,
1831
+ DescribeApplicationCommand,
1832
+ DescribeComponentCommand,
1833
+ DescribeComponentConfigurationCommand,
1834
+ DescribeComponentConfigurationRecommendationCommand,
1835
+ DescribeLogPatternCommand,
1836
+ DescribeObservationCommand,
1837
+ DescribeProblemCommand,
1838
+ DescribeProblemObservationsCommand,
1839
+ DescribeWorkloadCommand,
1840
+ ListApplicationsCommand,
1841
+ ListComponentsCommand,
1842
+ ListConfigurationHistoryCommand,
1843
+ ListLogPatternsCommand,
1844
+ ListLogPatternSetsCommand,
1845
+ ListProblemsCommand,
1846
+ ListTagsForResourceCommand,
1847
+ ListWorkloadsCommand,
1848
+ RemoveWorkloadCommand,
1849
+ TagResourceCommand,
1850
+ UntagResourceCommand,
1851
+ UpdateApplicationCommand,
1852
+ UpdateComponentCommand,
1853
+ UpdateComponentConfigurationCommand,
1854
+ UpdateLogPatternCommand,
1855
+ UpdateProblemCommand,
1856
+ UpdateWorkloadCommand,
1857
+ };
1858
+ class ApplicationInsights extends ApplicationInsightsClient {
1859
+ }
1860
+ smithyClient.createAggregatedClient(commands, ApplicationInsights);
2006
1861
 
2007
- var paginateListLogPatternSets = (0, import_core.createPaginator)(ApplicationInsightsClient, ListLogPatternSetsCommand, "NextToken", "NextToken", "MaxResults");
1862
+ const paginateListApplications = core.createPaginator(ApplicationInsightsClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
2008
1863
 
2009
- // src/pagination/ListLogPatternsPaginator.ts
1864
+ const paginateListComponents = core.createPaginator(ApplicationInsightsClient, ListComponentsCommand, "NextToken", "NextToken", "MaxResults");
2010
1865
 
2011
- var paginateListLogPatterns = (0, import_core.createPaginator)(ApplicationInsightsClient, ListLogPatternsCommand, "NextToken", "NextToken", "MaxResults");
1866
+ const paginateListConfigurationHistory = core.createPaginator(ApplicationInsightsClient, ListConfigurationHistoryCommand, "NextToken", "NextToken", "MaxResults");
2012
1867
 
2013
- // src/pagination/ListProblemsPaginator.ts
1868
+ const paginateListLogPatternSets = core.createPaginator(ApplicationInsightsClient, ListLogPatternSetsCommand, "NextToken", "NextToken", "MaxResults");
2014
1869
 
2015
- var paginateListProblems = (0, import_core.createPaginator)(ApplicationInsightsClient, ListProblemsCommand, "NextToken", "NextToken", "MaxResults");
1870
+ const paginateListLogPatterns = core.createPaginator(ApplicationInsightsClient, ListLogPatternsCommand, "NextToken", "NextToken", "MaxResults");
2016
1871
 
2017
- // src/pagination/ListWorkloadsPaginator.ts
1872
+ const paginateListProblems = core.createPaginator(ApplicationInsightsClient, ListProblemsCommand, "NextToken", "NextToken", "MaxResults");
2018
1873
 
2019
- var paginateListWorkloads = (0, import_core.createPaginator)(ApplicationInsightsClient, ListWorkloadsCommand, "NextToken", "NextToken", "MaxResults");
2020
- // Annotate the CommonJS export names for ESM import in node:
1874
+ const paginateListWorkloads = core.createPaginator(ApplicationInsightsClient, ListWorkloadsCommand, "NextToken", "NextToken", "MaxResults");
2021
1875
 
2022
- 0 && (module.exports = {
2023
- ApplicationInsightsServiceException,
2024
- __Client,
2025
- ApplicationInsightsClient,
2026
- ApplicationInsights,
2027
- $Command,
2028
- AddWorkloadCommand,
2029
- CreateApplicationCommand,
2030
- CreateComponentCommand,
2031
- CreateLogPatternCommand,
2032
- DeleteApplicationCommand,
2033
- DeleteComponentCommand,
2034
- DeleteLogPatternCommand,
2035
- DescribeApplicationCommand,
2036
- DescribeComponentCommand,
2037
- DescribeComponentConfigurationCommand,
2038
- DescribeComponentConfigurationRecommendationCommand,
2039
- DescribeLogPatternCommand,
2040
- DescribeObservationCommand,
2041
- DescribeProblemCommand,
2042
- DescribeProblemObservationsCommand,
2043
- DescribeWorkloadCommand,
2044
- ListApplicationsCommand,
2045
- ListComponentsCommand,
2046
- ListConfigurationHistoryCommand,
2047
- ListLogPatternSetsCommand,
2048
- ListLogPatternsCommand,
2049
- ListProblemsCommand,
2050
- ListTagsForResourceCommand,
2051
- ListWorkloadsCommand,
2052
- RemoveWorkloadCommand,
2053
- TagResourceCommand,
2054
- UntagResourceCommand,
2055
- UpdateApplicationCommand,
2056
- UpdateComponentCommand,
2057
- UpdateComponentConfigurationCommand,
2058
- UpdateLogPatternCommand,
2059
- UpdateProblemCommand,
2060
- UpdateWorkloadCommand,
2061
- paginateListApplications,
2062
- paginateListComponents,
2063
- paginateListConfigurationHistory,
2064
- paginateListLogPatternSets,
2065
- paginateListLogPatterns,
2066
- paginateListProblems,
2067
- paginateListWorkloads,
2068
- AccessDeniedException,
2069
- Tier,
2070
- InternalServerException,
2071
- ResourceInUseException,
2072
- ResourceNotFoundException,
2073
- ValidationException,
2074
- OsType,
2075
- DiscoveryType,
2076
- BadRequestException,
2077
- CloudWatchEventSource,
2078
- ConfigurationEventResourceType,
2079
- ConfigurationEventStatus,
2080
- GroupingType,
2081
- TagsAlreadyExistException,
2082
- RecommendationType,
2083
- LogFilter,
2084
- FeedbackKey,
2085
- FeedbackValue,
2086
- ResolutionMethod,
2087
- SeverityLevel,
2088
- Status,
2089
- Visibility,
2090
- TooManyTagsException,
2091
- UpdateStatus
1876
+ Object.defineProperty(exports, "$Command", {
1877
+ enumerable: true,
1878
+ get: function () { return smithyClient.Command; }
2092
1879
  });
2093
-
1880
+ Object.defineProperty(exports, "__Client", {
1881
+ enumerable: true,
1882
+ get: function () { return smithyClient.Client; }
1883
+ });
1884
+ exports.AccessDeniedException = AccessDeniedException;
1885
+ exports.AddWorkloadCommand = AddWorkloadCommand;
1886
+ exports.ApplicationInsights = ApplicationInsights;
1887
+ exports.ApplicationInsightsClient = ApplicationInsightsClient;
1888
+ exports.ApplicationInsightsServiceException = ApplicationInsightsServiceException;
1889
+ exports.BadRequestException = BadRequestException;
1890
+ exports.CloudWatchEventSource = CloudWatchEventSource;
1891
+ exports.ConfigurationEventResourceType = ConfigurationEventResourceType;
1892
+ exports.ConfigurationEventStatus = ConfigurationEventStatus;
1893
+ exports.CreateApplicationCommand = CreateApplicationCommand;
1894
+ exports.CreateComponentCommand = CreateComponentCommand;
1895
+ exports.CreateLogPatternCommand = CreateLogPatternCommand;
1896
+ exports.DeleteApplicationCommand = DeleteApplicationCommand;
1897
+ exports.DeleteComponentCommand = DeleteComponentCommand;
1898
+ exports.DeleteLogPatternCommand = DeleteLogPatternCommand;
1899
+ exports.DescribeApplicationCommand = DescribeApplicationCommand;
1900
+ exports.DescribeComponentCommand = DescribeComponentCommand;
1901
+ exports.DescribeComponentConfigurationCommand = DescribeComponentConfigurationCommand;
1902
+ exports.DescribeComponentConfigurationRecommendationCommand = DescribeComponentConfigurationRecommendationCommand;
1903
+ exports.DescribeLogPatternCommand = DescribeLogPatternCommand;
1904
+ exports.DescribeObservationCommand = DescribeObservationCommand;
1905
+ exports.DescribeProblemCommand = DescribeProblemCommand;
1906
+ exports.DescribeProblemObservationsCommand = DescribeProblemObservationsCommand;
1907
+ exports.DescribeWorkloadCommand = DescribeWorkloadCommand;
1908
+ exports.DiscoveryType = DiscoveryType;
1909
+ exports.FeedbackKey = FeedbackKey;
1910
+ exports.FeedbackValue = FeedbackValue;
1911
+ exports.GroupingType = GroupingType;
1912
+ exports.InternalServerException = InternalServerException;
1913
+ exports.ListApplicationsCommand = ListApplicationsCommand;
1914
+ exports.ListComponentsCommand = ListComponentsCommand;
1915
+ exports.ListConfigurationHistoryCommand = ListConfigurationHistoryCommand;
1916
+ exports.ListLogPatternSetsCommand = ListLogPatternSetsCommand;
1917
+ exports.ListLogPatternsCommand = ListLogPatternsCommand;
1918
+ exports.ListProblemsCommand = ListProblemsCommand;
1919
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1920
+ exports.ListWorkloadsCommand = ListWorkloadsCommand;
1921
+ exports.LogFilter = LogFilter;
1922
+ exports.OsType = OsType;
1923
+ exports.RecommendationType = RecommendationType;
1924
+ exports.RemoveWorkloadCommand = RemoveWorkloadCommand;
1925
+ exports.ResolutionMethod = ResolutionMethod;
1926
+ exports.ResourceInUseException = ResourceInUseException;
1927
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1928
+ exports.SeverityLevel = SeverityLevel;
1929
+ exports.Status = Status;
1930
+ exports.TagResourceCommand = TagResourceCommand;
1931
+ exports.TagsAlreadyExistException = TagsAlreadyExistException;
1932
+ exports.Tier = Tier;
1933
+ exports.TooManyTagsException = TooManyTagsException;
1934
+ exports.UntagResourceCommand = UntagResourceCommand;
1935
+ exports.UpdateApplicationCommand = UpdateApplicationCommand;
1936
+ exports.UpdateComponentCommand = UpdateComponentCommand;
1937
+ exports.UpdateComponentConfigurationCommand = UpdateComponentConfigurationCommand;
1938
+ exports.UpdateLogPatternCommand = UpdateLogPatternCommand;
1939
+ exports.UpdateProblemCommand = UpdateProblemCommand;
1940
+ exports.UpdateStatus = UpdateStatus;
1941
+ exports.UpdateWorkloadCommand = UpdateWorkloadCommand;
1942
+ exports.ValidationException = ValidationException;
1943
+ exports.Visibility = Visibility;
1944
+ exports.paginateListApplications = paginateListApplications;
1945
+ exports.paginateListComponents = paginateListComponents;
1946
+ exports.paginateListConfigurationHistory = paginateListConfigurationHistory;
1947
+ exports.paginateListLogPatternSets = paginateListLogPatternSets;
1948
+ exports.paginateListLogPatterns = paginateListLogPatterns;
1949
+ exports.paginateListProblems = paginateListProblems;
1950
+ exports.paginateListWorkloads = paginateListWorkloads;