@aws-sdk/client-trustedadvisor 3.901.0 → 3.907.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 +1149 -1318
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,1372 +1,1203 @@
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 });
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: "trustedadvisor",
25
+ });
10
26
  };
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;
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" },
18
32
  };
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
- AccountRecommendationLifecycleSummaryFilterSensitiveLog: () => AccountRecommendationLifecycleSummaryFilterSensitiveLog,
26
- BatchUpdateRecommendationResourceExclusionCommand: () => BatchUpdateRecommendationResourceExclusionCommand,
27
- ConflictException: () => ConflictException,
28
- ExclusionStatus: () => ExclusionStatus,
29
- GetOrganizationRecommendationCommand: () => GetOrganizationRecommendationCommand,
30
- GetOrganizationRecommendationResponseFilterSensitiveLog: () => GetOrganizationRecommendationResponseFilterSensitiveLog,
31
- GetRecommendationCommand: () => GetRecommendationCommand,
32
- GetRecommendationResponseFilterSensitiveLog: () => GetRecommendationResponseFilterSensitiveLog,
33
- InternalServerException: () => InternalServerException,
34
- ListChecksCommand: () => ListChecksCommand,
35
- ListOrganizationRecommendationAccountsCommand: () => ListOrganizationRecommendationAccountsCommand,
36
- ListOrganizationRecommendationAccountsResponseFilterSensitiveLog: () => ListOrganizationRecommendationAccountsResponseFilterSensitiveLog,
37
- ListOrganizationRecommendationResourcesCommand: () => ListOrganizationRecommendationResourcesCommand,
38
- ListOrganizationRecommendationsCommand: () => ListOrganizationRecommendationsCommand,
39
- ListRecommendationResourcesCommand: () => ListRecommendationResourcesCommand,
40
- ListRecommendationsCommand: () => ListRecommendationsCommand,
41
- OrganizationRecommendationFilterSensitiveLog: () => OrganizationRecommendationFilterSensitiveLog,
42
- RecommendationFilterSensitiveLog: () => RecommendationFilterSensitiveLog,
43
- RecommendationLanguage: () => RecommendationLanguage,
44
- RecommendationLifecycleStage: () => RecommendationLifecycleStage,
45
- RecommendationPillar: () => RecommendationPillar,
46
- RecommendationSource: () => RecommendationSource,
47
- RecommendationStatus: () => RecommendationStatus,
48
- RecommendationType: () => RecommendationType,
49
- ResourceNotFoundException: () => ResourceNotFoundException,
50
- ResourceStatus: () => ResourceStatus,
51
- ThrottlingException: () => ThrottlingException,
52
- TrustedAdvisor: () => TrustedAdvisor,
53
- TrustedAdvisorClient: () => TrustedAdvisorClient,
54
- TrustedAdvisorServiceException: () => TrustedAdvisorServiceException,
55
- UpdateOrganizationRecommendationLifecycleCommand: () => UpdateOrganizationRecommendationLifecycleCommand,
56
- UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog: () => UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog,
57
- UpdateRecommendationLifecycleCommand: () => UpdateRecommendationLifecycleCommand,
58
- UpdateRecommendationLifecycleRequestFilterSensitiveLog: () => UpdateRecommendationLifecycleRequestFilterSensitiveLog,
59
- UpdateRecommendationLifecycleStage: () => UpdateRecommendationLifecycleStage,
60
- UpdateRecommendationLifecycleStageReasonCode: () => UpdateRecommendationLifecycleStageReasonCode,
61
- ValidationException: () => ValidationException,
62
- __Client: () => import_smithy_client.Client,
63
- paginateListChecks: () => paginateListChecks,
64
- paginateListOrganizationRecommendationAccounts: () => paginateListOrganizationRecommendationAccounts,
65
- paginateListOrganizationRecommendationResources: () => paginateListOrganizationRecommendationResources,
66
- paginateListOrganizationRecommendations: () => paginateListOrganizationRecommendations,
67
- paginateListRecommendationResources: () => paginateListRecommendationResources,
68
- paginateListRecommendations: () => paginateListRecommendations
69
- });
70
- module.exports = __toCommonJS(index_exports);
71
33
 
72
- // src/TrustedAdvisorClient.ts
73
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
74
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
75
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
76
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
77
- var import_config_resolver = require("@smithy/config-resolver");
78
- var import_core = require("@smithy/core");
79
- var import_middleware_content_length = require("@smithy/middleware-content-length");
80
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
81
- var import_middleware_retry = require("@smithy/middleware-retry");
82
-
83
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
84
-
85
- // src/endpoint/EndpointParameters.ts
86
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
87
- return Object.assign(options, {
88
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
89
- useFipsEndpoint: options.useFipsEndpoint ?? false,
90
- defaultSigningName: "trustedadvisor"
91
- });
92
- }, "resolveClientEndpointParameters");
93
- var commonParams = {
94
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
95
- Endpoint: { type: "builtInParams", name: "endpoint" },
96
- Region: { type: "builtInParams", name: "region" },
97
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
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
+ };
98
71
  };
99
72
 
100
- // src/TrustedAdvisorClient.ts
101
- var import_runtimeConfig = require("././runtimeConfig");
102
-
103
- // src/runtimeExtensions.ts
104
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
105
- var import_protocol_http = require("@smithy/protocol-http");
106
- var import_smithy_client = require("@smithy/smithy-client");
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
+ };
107
78
 
108
- // src/auth/httpAuthExtensionConfiguration.ts
109
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
110
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
111
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
112
- let _credentials = runtimeConfig.credentials;
113
- return {
114
- setHttpAuthScheme(httpAuthScheme) {
115
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
116
- if (index === -1) {
117
- _httpAuthSchemes.push(httpAuthScheme);
118
- } else {
119
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
120
- }
121
- },
122
- httpAuthSchemes() {
123
- return _httpAuthSchemes;
124
- },
125
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
126
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
127
- },
128
- httpAuthSchemeProvider() {
129
- return _httpAuthSchemeProvider;
130
- },
131
- setCredentials(credentials) {
132
- _credentials = credentials;
133
- },
134
- credentials() {
135
- return _credentials;
79
+ class TrustedAdvisorClient 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.defaultTrustedAdvisorHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
136
107
  }
137
- };
138
- }, "getHttpAuthExtensionConfiguration");
139
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
140
- return {
141
- httpAuthSchemes: config.httpAuthSchemes(),
142
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
143
- credentials: config.credentials()
144
- };
145
- }, "resolveHttpAuthRuntimeConfig");
146
-
147
- // src/runtimeExtensions.ts
148
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
149
- const extensionConfiguration = Object.assign(
150
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
151
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
152
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
153
- getHttpAuthExtensionConfiguration(runtimeConfig)
154
- );
155
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
156
- return Object.assign(
157
- runtimeConfig,
158
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
159
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
160
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
161
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
162
- );
163
- }, "resolveRuntimeExtensions");
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
164
112
 
165
- // src/TrustedAdvisorClient.ts
166
- var TrustedAdvisorClient = class extends import_smithy_client.Client {
167
- static {
168
- __name(this, "TrustedAdvisorClient");
169
- }
170
- /**
171
- * The resolved configuration of TrustedAdvisorClient class. This is resolved and normalized from the {@link TrustedAdvisorClientConfig | constructor configuration interface}.
172
- */
173
- config;
174
- constructor(...[configuration]) {
175
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
176
- super(_config_0);
177
- this.initConfig = _config_0;
178
- const _config_1 = resolveClientEndpointParameters(_config_0);
179
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
180
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
181
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
182
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
183
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
184
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
185
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
186
- this.config = _config_8;
187
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
188
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
189
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
190
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
191
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
192
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
193
- this.middlewareStack.use(
194
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
195
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultTrustedAdvisorHttpAuthSchemeParametersProvider,
196
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
197
- "aws.auth#sigv4": config.credentials
198
- }), "identityProviderConfigProvider")
199
- })
200
- );
201
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
202
- }
203
- /**
204
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
205
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
206
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
207
- */
208
- destroy() {
209
- super.destroy();
210
- }
113
+ class TrustedAdvisorServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, TrustedAdvisorServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AccessDeniedException extends TrustedAdvisorServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ }
131
+ }
132
+ const RecommendationLifecycleStage = {
133
+ DISMISSED: "dismissed",
134
+ IN_PROGRESS: "in_progress",
135
+ PENDING_RESPONSE: "pending_response",
136
+ RESOLVED: "resolved",
211
137
  };
212
-
213
- // src/TrustedAdvisor.ts
214
-
215
-
216
- // src/commands/BatchUpdateRecommendationResourceExclusionCommand.ts
217
-
218
- var import_middleware_serde = require("@smithy/middleware-serde");
219
-
220
-
221
- // src/protocols/Aws_restJson1.ts
222
- var import_core2 = require("@aws-sdk/core");
223
-
224
-
225
-
226
- // src/models/models_0.ts
227
-
228
-
229
- // src/models/TrustedAdvisorServiceException.ts
230
-
231
- var TrustedAdvisorServiceException = class _TrustedAdvisorServiceException extends import_smithy_client.ServiceException {
232
- static {
233
- __name(this, "TrustedAdvisorServiceException");
234
- }
235
- /**
236
- * @internal
237
- */
238
- constructor(options) {
239
- super(options);
240
- Object.setPrototypeOf(this, _TrustedAdvisorServiceException.prototype);
241
- }
138
+ const UpdateRecommendationLifecycleStageReasonCode = {
139
+ LOW_PRIORITY: "low_priority",
140
+ NON_CRITICAL_ACCOUNT: "non_critical_account",
141
+ NOT_APPLICABLE: "not_applicable",
142
+ OTHER: "other",
143
+ OTHER_METHODS_AVAILABLE: "other_methods_available",
144
+ TEMPORARY_ACCOUNT: "temporary_account",
145
+ VALID_BUSINESS_CASE: "valid_business_case",
146
+ };
147
+ class ConflictException extends TrustedAdvisorServiceException {
148
+ name = "ConflictException";
149
+ $fault = "client";
150
+ constructor(opts) {
151
+ super({
152
+ name: "ConflictException",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ Object.setPrototypeOf(this, ConflictException.prototype);
157
+ }
158
+ }
159
+ class InternalServerException extends TrustedAdvisorServiceException {
160
+ name = "InternalServerException";
161
+ $fault = "server";
162
+ $retryable = {};
163
+ constructor(opts) {
164
+ super({
165
+ name: "InternalServerException",
166
+ $fault: "server",
167
+ ...opts,
168
+ });
169
+ Object.setPrototypeOf(this, InternalServerException.prototype);
170
+ }
171
+ }
172
+ class ThrottlingException extends TrustedAdvisorServiceException {
173
+ name = "ThrottlingException";
174
+ $fault = "client";
175
+ $retryable = {
176
+ throttling: true,
177
+ };
178
+ constructor(opts) {
179
+ super({
180
+ name: "ThrottlingException",
181
+ $fault: "client",
182
+ ...opts,
183
+ });
184
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
185
+ }
186
+ }
187
+ class ValidationException extends TrustedAdvisorServiceException {
188
+ name = "ValidationException";
189
+ $fault = "client";
190
+ constructor(opts) {
191
+ super({
192
+ name: "ValidationException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, ValidationException.prototype);
197
+ }
198
+ }
199
+ const RecommendationPillar = {
200
+ COST_OPTIMIZING: "cost_optimizing",
201
+ FAULT_TOLERANCE: "fault_tolerance",
202
+ OPERATIONAL_EXCELLENCE: "operational_excellence",
203
+ PERFORMANCE: "performance",
204
+ SECURITY: "security",
205
+ SERVICE_LIMITS: "service_limits",
206
+ };
207
+ const RecommendationSource = {
208
+ AWS_CONFIG: "aws_config",
209
+ COMPUTE_OPTIMIZER: "compute_optimizer",
210
+ COST_EXPLORER: "cost_explorer",
211
+ LSE: "lse",
212
+ MANUAL: "manual",
213
+ PSE: "pse",
214
+ RDS: "rds",
215
+ RESILIENCE: "resilience",
216
+ RESILIENCE_HUB: "resilience_hub",
217
+ SECURITY_HUB: "security_hub",
218
+ STIR: "stir",
219
+ TA_CHECK: "ta_check",
220
+ WELL_ARCHITECTED: "well_architected",
221
+ };
222
+ const ExclusionStatus = {
223
+ EXCLUDED: "excluded",
224
+ INCLUDED: "included",
225
+ };
226
+ const RecommendationStatus = {
227
+ ERROR: "error",
228
+ OK: "ok",
229
+ WARNING: "warning",
230
+ };
231
+ const RecommendationType = {
232
+ PRIORITY: "priority",
233
+ STANDARD: "standard",
242
234
  };
235
+ class ResourceNotFoundException extends TrustedAdvisorServiceException {
236
+ name = "ResourceNotFoundException";
237
+ $fault = "client";
238
+ constructor(opts) {
239
+ super({
240
+ name: "ResourceNotFoundException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
245
+ }
246
+ }
247
+ const RecommendationLanguage = {
248
+ BAHASA_INDONESIA: "id",
249
+ BRAZILIAN_PORTUGUESE: "pt_BR",
250
+ CHINESE: "zh",
251
+ ENGLISH: "en",
252
+ FRENCH: "fr",
253
+ GERMAN: "de",
254
+ ITALIAN: "it",
255
+ JAPANESE: "ja",
256
+ KOREAN: "ko",
257
+ SPANISH: "es",
258
+ TRADITIONAL_CHINESE: "zh_TW",
259
+ };
260
+ const ResourceStatus = {
261
+ ERROR: "error",
262
+ OK: "ok",
263
+ WARNING: "warning",
264
+ };
265
+ const UpdateRecommendationLifecycleStage = {
266
+ DISMISSED: "dismissed",
267
+ IN_PROGRESS: "in_progress",
268
+ PENDING_RESPONSE: "pending_response",
269
+ RESOLVED: "resolved",
270
+ };
271
+ const AccountRecommendationLifecycleSummaryFilterSensitiveLog = (obj) => ({
272
+ ...obj,
273
+ ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
274
+ });
275
+ const OrganizationRecommendationFilterSensitiveLog = (obj) => ({
276
+ ...obj,
277
+ ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
278
+ });
279
+ const GetOrganizationRecommendationResponseFilterSensitiveLog = (obj) => ({
280
+ ...obj,
281
+ ...(obj.organizationRecommendation && {
282
+ organizationRecommendation: OrganizationRecommendationFilterSensitiveLog(obj.organizationRecommendation),
283
+ }),
284
+ });
285
+ const RecommendationFilterSensitiveLog = (obj) => ({
286
+ ...obj,
287
+ ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
288
+ });
289
+ const GetRecommendationResponseFilterSensitiveLog = (obj) => ({
290
+ ...obj,
291
+ ...(obj.recommendation && { recommendation: RecommendationFilterSensitiveLog(obj.recommendation) }),
292
+ });
293
+ const ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = (obj) => ({
294
+ ...obj,
295
+ ...(obj.accountRecommendationLifecycleSummaries && {
296
+ accountRecommendationLifecycleSummaries: obj.accountRecommendationLifecycleSummaries.map((item) => AccountRecommendationLifecycleSummaryFilterSensitiveLog(item)),
297
+ }),
298
+ });
299
+ const UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
300
+ ...obj,
301
+ ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
302
+ });
303
+ const UpdateRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
304
+ ...obj,
305
+ ...(obj.updateReason && { updateReason: smithyClient.SENSITIVE_STRING }),
306
+ });
243
307
 
244
- // src/models/models_0.ts
245
- var AccessDeniedException = class _AccessDeniedException extends TrustedAdvisorServiceException {
246
- static {
247
- __name(this, "AccessDeniedException");
248
- }
249
- name = "AccessDeniedException";
250
- $fault = "client";
251
- /**
252
- * @internal
253
- */
254
- constructor(opts) {
255
- super({
256
- name: "AccessDeniedException",
257
- $fault: "client",
258
- ...opts
308
+ const se_BatchUpdateRecommendationResourceExclusionCommand = async (input, context) => {
309
+ const b = core.requestBuilder(input, context);
310
+ const headers = {
311
+ "content-type": "application/json",
312
+ };
313
+ b.bp("/v1/batch-update-recommendation-resource-exclusion");
314
+ let body;
315
+ body = JSON.stringify(smithyClient.take(input, {
316
+ recommendationResourceExclusions: (_) => smithyClient._json(_),
317
+ }));
318
+ b.m("PUT").h(headers).b(body);
319
+ return b.build();
320
+ };
321
+ const se_GetOrganizationRecommendationCommand = async (input, context) => {
322
+ const b = core.requestBuilder(input, context);
323
+ const headers = {};
324
+ b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}");
325
+ b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
326
+ let body;
327
+ b.m("GET").h(headers).b(body);
328
+ return b.build();
329
+ };
330
+ const se_GetRecommendationCommand = async (input, context) => {
331
+ const b = core.requestBuilder(input, context);
332
+ const headers = {};
333
+ b.bp("/v1/recommendations/{recommendationIdentifier}");
334
+ b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
335
+ let body;
336
+ b.m("GET").h(headers).b(body);
337
+ return b.build();
338
+ };
339
+ const se_ListChecksCommand = async (input, context) => {
340
+ const b = core.requestBuilder(input, context);
341
+ const headers = {};
342
+ b.bp("/v1/checks");
343
+ const query = smithyClient.map({
344
+ [_nT]: [, input[_nT]],
345
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
346
+ [_p]: [, input[_p]],
347
+ [_aS]: [, input[_aS]],
348
+ [_s]: [, input[_s]],
349
+ [_l]: [, input[_l]],
259
350
  });
260
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
261
- }
351
+ let body;
352
+ b.m("GET").h(headers).q(query).b(body);
353
+ return b.build();
262
354
  };
263
- var RecommendationLifecycleStage = {
264
- DISMISSED: "dismissed",
265
- IN_PROGRESS: "in_progress",
266
- PENDING_RESPONSE: "pending_response",
267
- RESOLVED: "resolved"
355
+ const se_ListOrganizationRecommendationAccountsCommand = async (input, context) => {
356
+ const b = core.requestBuilder(input, context);
357
+ const headers = {};
358
+ b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts");
359
+ b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
360
+ const query = smithyClient.map({
361
+ [_nT]: [, input[_nT]],
362
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
363
+ [_aAI]: [, input[_aAI]],
364
+ });
365
+ let body;
366
+ b.m("GET").h(headers).q(query).b(body);
367
+ return b.build();
268
368
  };
269
- var UpdateRecommendationLifecycleStageReasonCode = {
270
- LOW_PRIORITY: "low_priority",
271
- NON_CRITICAL_ACCOUNT: "non_critical_account",
272
- NOT_APPLICABLE: "not_applicable",
273
- OTHER: "other",
274
- OTHER_METHODS_AVAILABLE: "other_methods_available",
275
- TEMPORARY_ACCOUNT: "temporary_account",
276
- VALID_BUSINESS_CASE: "valid_business_case"
369
+ const se_ListOrganizationRecommendationResourcesCommand = async (input, context) => {
370
+ const b = core.requestBuilder(input, context);
371
+ const headers = {};
372
+ b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources");
373
+ b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
374
+ const query = smithyClient.map({
375
+ [_nT]: [, input[_nT]],
376
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
377
+ [_st]: [, input[_st]],
378
+ [_eS]: [, input[_eS]],
379
+ [_rC]: [, input[_rC]],
380
+ [_aAI]: [, input[_aAI]],
381
+ });
382
+ let body;
383
+ b.m("GET").h(headers).q(query).b(body);
384
+ return b.build();
277
385
  };
278
- var ConflictException = class _ConflictException extends TrustedAdvisorServiceException {
279
- static {
280
- __name(this, "ConflictException");
281
- }
282
- name = "ConflictException";
283
- $fault = "client";
284
- /**
285
- * @internal
286
- */
287
- constructor(opts) {
288
- super({
289
- name: "ConflictException",
290
- $fault: "client",
291
- ...opts
386
+ const se_ListOrganizationRecommendationsCommand = async (input, context) => {
387
+ const b = core.requestBuilder(input, context);
388
+ const headers = {};
389
+ b.bp("/v1/organization-recommendations");
390
+ const query = smithyClient.map({
391
+ [_nT]: [, input[_nT]],
392
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
393
+ [_t]: [, input[_t]],
394
+ [_st]: [, input[_st]],
395
+ [_p]: [, input[_p]],
396
+ [_aS]: [, input[_aS]],
397
+ [_s]: [, input[_s]],
398
+ [_cI]: [, input[_cI]],
399
+ [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_aLUA]).toString()],
400
+ [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_bLUA]).toString()],
292
401
  });
293
- Object.setPrototypeOf(this, _ConflictException.prototype);
294
- }
402
+ let body;
403
+ b.m("GET").h(headers).q(query).b(body);
404
+ return b.build();
295
405
  };
296
- var InternalServerException = class _InternalServerException extends TrustedAdvisorServiceException {
297
- static {
298
- __name(this, "InternalServerException");
299
- }
300
- name = "InternalServerException";
301
- $fault = "server";
302
- $retryable = {};
303
- /**
304
- * @internal
305
- */
306
- constructor(opts) {
307
- super({
308
- name: "InternalServerException",
309
- $fault: "server",
310
- ...opts
406
+ const se_ListRecommendationResourcesCommand = async (input, context) => {
407
+ const b = core.requestBuilder(input, context);
408
+ const headers = {};
409
+ b.bp("/v1/recommendations/{recommendationIdentifier}/resources");
410
+ b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
411
+ const query = smithyClient.map({
412
+ [_nT]: [, input[_nT]],
413
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
414
+ [_st]: [, input[_st]],
415
+ [_eS]: [, input[_eS]],
416
+ [_rC]: [, input[_rC]],
311
417
  });
312
- Object.setPrototypeOf(this, _InternalServerException.prototype);
313
- }
418
+ let body;
419
+ b.m("GET").h(headers).q(query).b(body);
420
+ return b.build();
314
421
  };
315
- var ThrottlingException = class _ThrottlingException extends TrustedAdvisorServiceException {
316
- static {
317
- __name(this, "ThrottlingException");
318
- }
319
- name = "ThrottlingException";
320
- $fault = "client";
321
- $retryable = {
322
- throttling: true
323
- };
324
- /**
325
- * @internal
326
- */
327
- constructor(opts) {
328
- super({
329
- name: "ThrottlingException",
330
- $fault: "client",
331
- ...opts
422
+ const se_ListRecommendationsCommand = async (input, context) => {
423
+ const b = core.requestBuilder(input, context);
424
+ const headers = {};
425
+ b.bp("/v1/recommendations");
426
+ const query = smithyClient.map({
427
+ [_nT]: [, input[_nT]],
428
+ [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
429
+ [_t]: [, input[_t]],
430
+ [_st]: [, input[_st]],
431
+ [_p]: [, input[_p]],
432
+ [_aS]: [, input[_aS]],
433
+ [_s]: [, input[_s]],
434
+ [_cI]: [, input[_cI]],
435
+ [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_aLUA]).toString()],
436
+ [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => smithyClient.serializeDateTime(input[_bLUA]).toString()],
332
437
  });
333
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
334
- }
438
+ let body;
439
+ b.m("GET").h(headers).q(query).b(body);
440
+ return b.build();
441
+ };
442
+ const se_UpdateOrganizationRecommendationLifecycleCommand = async (input, context) => {
443
+ const b = core.requestBuilder(input, context);
444
+ const headers = {
445
+ "content-type": "application/json",
446
+ };
447
+ b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle");
448
+ b.p("organizationRecommendationIdentifier", () => input.organizationRecommendationIdentifier, "{organizationRecommendationIdentifier}", false);
449
+ let body;
450
+ body = JSON.stringify(smithyClient.take(input, {
451
+ lifecycleStage: [],
452
+ updateReason: [],
453
+ updateReasonCode: [],
454
+ }));
455
+ b.m("PUT").h(headers).b(body);
456
+ return b.build();
457
+ };
458
+ const se_UpdateRecommendationLifecycleCommand = async (input, context) => {
459
+ const b = core.requestBuilder(input, context);
460
+ const headers = {
461
+ "content-type": "application/json",
462
+ };
463
+ b.bp("/v1/recommendations/{recommendationIdentifier}/lifecycle");
464
+ b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
465
+ let body;
466
+ body = JSON.stringify(smithyClient.take(input, {
467
+ lifecycleStage: [],
468
+ updateReason: [],
469
+ updateReasonCode: [],
470
+ }));
471
+ b.m("PUT").h(headers).b(body);
472
+ return b.build();
335
473
  };
336
- var ValidationException = class _ValidationException extends TrustedAdvisorServiceException {
337
- static {
338
- __name(this, "ValidationException");
339
- }
340
- name = "ValidationException";
341
- $fault = "client";
342
- /**
343
- * @internal
344
- */
345
- constructor(opts) {
346
- super({
347
- name: "ValidationException",
348
- $fault: "client",
349
- ...opts
474
+ const de_BatchUpdateRecommendationResourceExclusionCommand = async (output, context) => {
475
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
476
+ return de_CommandError(output, context);
477
+ }
478
+ const contents = smithyClient.map({
479
+ $metadata: deserializeMetadata(output),
480
+ });
481
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
482
+ const doc = smithyClient.take(data, {
483
+ batchUpdateRecommendationResourceExclusionErrors: smithyClient._json,
350
484
  });
351
- Object.setPrototypeOf(this, _ValidationException.prototype);
352
- }
485
+ Object.assign(contents, doc);
486
+ return contents;
353
487
  };
354
- var RecommendationPillar = {
355
- COST_OPTIMIZING: "cost_optimizing",
356
- FAULT_TOLERANCE: "fault_tolerance",
357
- OPERATIONAL_EXCELLENCE: "operational_excellence",
358
- PERFORMANCE: "performance",
359
- SECURITY: "security",
360
- SERVICE_LIMITS: "service_limits"
488
+ const de_GetOrganizationRecommendationCommand = async (output, context) => {
489
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
490
+ return de_CommandError(output, context);
491
+ }
492
+ const contents = smithyClient.map({
493
+ $metadata: deserializeMetadata(output),
494
+ });
495
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
496
+ const doc = smithyClient.take(data, {
497
+ organizationRecommendation: (_) => de_OrganizationRecommendation(_),
498
+ });
499
+ Object.assign(contents, doc);
500
+ return contents;
361
501
  };
362
- var RecommendationSource = {
363
- AWS_CONFIG: "aws_config",
364
- COMPUTE_OPTIMIZER: "compute_optimizer",
365
- COST_EXPLORER: "cost_explorer",
366
- LSE: "lse",
367
- MANUAL: "manual",
368
- PSE: "pse",
369
- RDS: "rds",
370
- RESILIENCE: "resilience",
371
- RESILIENCE_HUB: "resilience_hub",
372
- SECURITY_HUB: "security_hub",
373
- STIR: "stir",
374
- TA_CHECK: "ta_check",
375
- WELL_ARCHITECTED: "well_architected"
502
+ const de_GetRecommendationCommand = async (output, context) => {
503
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
504
+ return de_CommandError(output, context);
505
+ }
506
+ const contents = smithyClient.map({
507
+ $metadata: deserializeMetadata(output),
508
+ });
509
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
510
+ const doc = smithyClient.take(data, {
511
+ recommendation: (_) => de_Recommendation(_),
512
+ });
513
+ Object.assign(contents, doc);
514
+ return contents;
376
515
  };
377
- var ExclusionStatus = {
378
- EXCLUDED: "excluded",
379
- INCLUDED: "included"
516
+ const de_ListChecksCommand = async (output, context) => {
517
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
518
+ return de_CommandError(output, context);
519
+ }
520
+ const contents = smithyClient.map({
521
+ $metadata: deserializeMetadata(output),
522
+ });
523
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
524
+ const doc = smithyClient.take(data, {
525
+ checkSummaries: smithyClient._json,
526
+ nextToken: smithyClient.expectString,
527
+ });
528
+ Object.assign(contents, doc);
529
+ return contents;
380
530
  };
381
- var RecommendationStatus = {
382
- ERROR: "error",
383
- OK: "ok",
384
- WARNING: "warning"
531
+ const de_ListOrganizationRecommendationAccountsCommand = async (output, context) => {
532
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
533
+ return de_CommandError(output, context);
534
+ }
535
+ const contents = smithyClient.map({
536
+ $metadata: deserializeMetadata(output),
537
+ });
538
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
539
+ const doc = smithyClient.take(data, {
540
+ accountRecommendationLifecycleSummaries: (_) => de_AccountRecommendationLifecycleSummaryList(_),
541
+ nextToken: smithyClient.expectString,
542
+ });
543
+ Object.assign(contents, doc);
544
+ return contents;
385
545
  };
386
- var RecommendationType = {
387
- PRIORITY: "priority",
388
- STANDARD: "standard"
546
+ const de_ListOrganizationRecommendationResourcesCommand = async (output, context) => {
547
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
548
+ return de_CommandError(output, context);
549
+ }
550
+ const contents = smithyClient.map({
551
+ $metadata: deserializeMetadata(output),
552
+ });
553
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
554
+ const doc = smithyClient.take(data, {
555
+ nextToken: smithyClient.expectString,
556
+ organizationRecommendationResourceSummaries: (_) => de_OrganizationRecommendationResourceSummaryList(_),
557
+ });
558
+ Object.assign(contents, doc);
559
+ return contents;
389
560
  };
390
- var ResourceNotFoundException = class _ResourceNotFoundException extends TrustedAdvisorServiceException {
391
- static {
392
- __name(this, "ResourceNotFoundException");
393
- }
394
- name = "ResourceNotFoundException";
395
- $fault = "client";
396
- /**
397
- * @internal
398
- */
399
- constructor(opts) {
400
- super({
401
- name: "ResourceNotFoundException",
402
- $fault: "client",
403
- ...opts
561
+ const de_ListOrganizationRecommendationsCommand = async (output, context) => {
562
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
563
+ return de_CommandError(output, context);
564
+ }
565
+ const contents = smithyClient.map({
566
+ $metadata: deserializeMetadata(output),
404
567
  });
405
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
406
- }
568
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
569
+ const doc = smithyClient.take(data, {
570
+ nextToken: smithyClient.expectString,
571
+ organizationRecommendationSummaries: (_) => de_OrganizationRecommendationSummaryList(_),
572
+ });
573
+ Object.assign(contents, doc);
574
+ return contents;
407
575
  };
408
- var RecommendationLanguage = {
409
- BAHASA_INDONESIA: "id",
410
- BRAZILIAN_PORTUGUESE: "pt_BR",
411
- CHINESE: "zh",
412
- ENGLISH: "en",
413
- FRENCH: "fr",
414
- GERMAN: "de",
415
- ITALIAN: "it",
416
- JAPANESE: "ja",
417
- KOREAN: "ko",
418
- SPANISH: "es",
419
- TRADITIONAL_CHINESE: "zh_TW"
576
+ const de_ListRecommendationResourcesCommand = async (output, context) => {
577
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
578
+ return de_CommandError(output, context);
579
+ }
580
+ const contents = smithyClient.map({
581
+ $metadata: deserializeMetadata(output),
582
+ });
583
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
584
+ const doc = smithyClient.take(data, {
585
+ nextToken: smithyClient.expectString,
586
+ recommendationResourceSummaries: (_) => de_RecommendationResourceSummaryList(_),
587
+ });
588
+ Object.assign(contents, doc);
589
+ return contents;
420
590
  };
421
- var ResourceStatus = {
422
- ERROR: "error",
423
- OK: "ok",
424
- WARNING: "warning"
591
+ const de_ListRecommendationsCommand = async (output, context) => {
592
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
593
+ return de_CommandError(output, context);
594
+ }
595
+ const contents = smithyClient.map({
596
+ $metadata: deserializeMetadata(output),
597
+ });
598
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
599
+ const doc = smithyClient.take(data, {
600
+ nextToken: smithyClient.expectString,
601
+ recommendationSummaries: (_) => de_RecommendationSummaryList(_),
602
+ });
603
+ Object.assign(contents, doc);
604
+ return contents;
425
605
  };
426
- var UpdateRecommendationLifecycleStage = {
427
- DISMISSED: "dismissed",
428
- IN_PROGRESS: "in_progress",
429
- PENDING_RESPONSE: "pending_response",
430
- RESOLVED: "resolved"
606
+ const de_UpdateOrganizationRecommendationLifecycleCommand = async (output, context) => {
607
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
608
+ return de_CommandError(output, context);
609
+ }
610
+ const contents = smithyClient.map({
611
+ $metadata: deserializeMetadata(output),
612
+ });
613
+ await smithyClient.collectBody(output.body, context);
614
+ return contents;
431
615
  };
432
- var AccountRecommendationLifecycleSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
433
- ...obj,
434
- ...obj.updateReason && { updateReason: import_smithy_client.SENSITIVE_STRING }
435
- }), "AccountRecommendationLifecycleSummaryFilterSensitiveLog");
436
- var OrganizationRecommendationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
437
- ...obj,
438
- ...obj.updateReason && { updateReason: import_smithy_client.SENSITIVE_STRING }
439
- }), "OrganizationRecommendationFilterSensitiveLog");
440
- var GetOrganizationRecommendationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
441
- ...obj,
442
- ...obj.organizationRecommendation && {
443
- organizationRecommendation: OrganizationRecommendationFilterSensitiveLog(obj.organizationRecommendation)
444
- }
445
- }), "GetOrganizationRecommendationResponseFilterSensitiveLog");
446
- var RecommendationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
447
- ...obj,
448
- ...obj.updateReason && { updateReason: import_smithy_client.SENSITIVE_STRING }
449
- }), "RecommendationFilterSensitiveLog");
450
- var GetRecommendationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
451
- ...obj,
452
- ...obj.recommendation && { recommendation: RecommendationFilterSensitiveLog(obj.recommendation) }
453
- }), "GetRecommendationResponseFilterSensitiveLog");
454
- var ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
455
- ...obj,
456
- ...obj.accountRecommendationLifecycleSummaries && {
457
- accountRecommendationLifecycleSummaries: obj.accountRecommendationLifecycleSummaries.map(
458
- (item) => AccountRecommendationLifecycleSummaryFilterSensitiveLog(item)
459
- )
460
- }
461
- }), "ListOrganizationRecommendationAccountsResponseFilterSensitiveLog");
462
- var UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
463
- ...obj,
464
- ...obj.updateReason && { updateReason: import_smithy_client.SENSITIVE_STRING }
465
- }), "UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog");
466
- var UpdateRecommendationLifecycleRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
467
- ...obj,
468
- ...obj.updateReason && { updateReason: import_smithy_client.SENSITIVE_STRING }
469
- }), "UpdateRecommendationLifecycleRequestFilterSensitiveLog");
470
-
471
- // src/protocols/Aws_restJson1.ts
472
- var se_BatchUpdateRecommendationResourceExclusionCommand = /* @__PURE__ */ __name(async (input, context) => {
473
- const b = (0, import_core.requestBuilder)(input, context);
474
- const headers = {
475
- "content-type": "application/json"
476
- };
477
- b.bp("/v1/batch-update-recommendation-resource-exclusion");
478
- let body;
479
- body = JSON.stringify(
480
- (0, import_smithy_client.take)(input, {
481
- recommendationResourceExclusions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "recommendationResourceExclusions")
482
- })
483
- );
484
- b.m("PUT").h(headers).b(body);
485
- return b.build();
486
- }, "se_BatchUpdateRecommendationResourceExclusionCommand");
487
- var se_GetOrganizationRecommendationCommand = /* @__PURE__ */ __name(async (input, context) => {
488
- const b = (0, import_core.requestBuilder)(input, context);
489
- const headers = {};
490
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}");
491
- b.p(
492
- "organizationRecommendationIdentifier",
493
- () => input.organizationRecommendationIdentifier,
494
- "{organizationRecommendationIdentifier}",
495
- false
496
- );
497
- let body;
498
- b.m("GET").h(headers).b(body);
499
- return b.build();
500
- }, "se_GetOrganizationRecommendationCommand");
501
- var se_GetRecommendationCommand = /* @__PURE__ */ __name(async (input, context) => {
502
- const b = (0, import_core.requestBuilder)(input, context);
503
- const headers = {};
504
- b.bp("/v1/recommendations/{recommendationIdentifier}");
505
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
506
- let body;
507
- b.m("GET").h(headers).b(body);
508
- return b.build();
509
- }, "se_GetRecommendationCommand");
510
- var se_ListChecksCommand = /* @__PURE__ */ __name(async (input, context) => {
511
- const b = (0, import_core.requestBuilder)(input, context);
512
- const headers = {};
513
- b.bp("/v1/checks");
514
- const query = (0, import_smithy_client.map)({
515
- [_nT]: [, input[_nT]],
516
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
517
- [_p]: [, input[_p]],
518
- [_aS]: [, input[_aS]],
519
- [_s]: [, input[_s]],
520
- [_l]: [, input[_l]]
521
- });
522
- let body;
523
- b.m("GET").h(headers).q(query).b(body);
524
- return b.build();
525
- }, "se_ListChecksCommand");
526
- var se_ListOrganizationRecommendationAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
527
- const b = (0, import_core.requestBuilder)(input, context);
528
- const headers = {};
529
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts");
530
- b.p(
531
- "organizationRecommendationIdentifier",
532
- () => input.organizationRecommendationIdentifier,
533
- "{organizationRecommendationIdentifier}",
534
- false
535
- );
536
- const query = (0, import_smithy_client.map)({
537
- [_nT]: [, input[_nT]],
538
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
539
- [_aAI]: [, input[_aAI]]
540
- });
541
- let body;
542
- b.m("GET").h(headers).q(query).b(body);
543
- return b.build();
544
- }, "se_ListOrganizationRecommendationAccountsCommand");
545
- var se_ListOrganizationRecommendationResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
546
- const b = (0, import_core.requestBuilder)(input, context);
547
- const headers = {};
548
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources");
549
- b.p(
550
- "organizationRecommendationIdentifier",
551
- () => input.organizationRecommendationIdentifier,
552
- "{organizationRecommendationIdentifier}",
553
- false
554
- );
555
- const query = (0, import_smithy_client.map)({
556
- [_nT]: [, input[_nT]],
557
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
558
- [_st]: [, input[_st]],
559
- [_eS]: [, input[_eS]],
560
- [_rC]: [, input[_rC]],
561
- [_aAI]: [, input[_aAI]]
562
- });
563
- let body;
564
- b.m("GET").h(headers).q(query).b(body);
565
- return b.build();
566
- }, "se_ListOrganizationRecommendationResourcesCommand");
567
- var se_ListOrganizationRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
568
- const b = (0, import_core.requestBuilder)(input, context);
569
- const headers = {};
570
- b.bp("/v1/organization-recommendations");
571
- const query = (0, import_smithy_client.map)({
572
- [_nT]: [, input[_nT]],
573
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
574
- [_t]: [, input[_t]],
575
- [_st]: [, input[_st]],
576
- [_p]: [, input[_p]],
577
- [_aS]: [, input[_aS]],
578
- [_s]: [, input[_s]],
579
- [_cI]: [, input[_cI]],
580
- [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_aLUA]).toString()],
581
- [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_bLUA]).toString()]
582
- });
583
- let body;
584
- b.m("GET").h(headers).q(query).b(body);
585
- return b.build();
586
- }, "se_ListOrganizationRecommendationsCommand");
587
- var se_ListRecommendationResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
588
- const b = (0, import_core.requestBuilder)(input, context);
589
- const headers = {};
590
- b.bp("/v1/recommendations/{recommendationIdentifier}/resources");
591
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
592
- const query = (0, import_smithy_client.map)({
593
- [_nT]: [, input[_nT]],
594
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
595
- [_st]: [, input[_st]],
596
- [_eS]: [, input[_eS]],
597
- [_rC]: [, input[_rC]]
598
- });
599
- let body;
600
- b.m("GET").h(headers).q(query).b(body);
601
- return b.build();
602
- }, "se_ListRecommendationResourcesCommand");
603
- var se_ListRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
604
- const b = (0, import_core.requestBuilder)(input, context);
605
- const headers = {};
606
- b.bp("/v1/recommendations");
607
- const query = (0, import_smithy_client.map)({
608
- [_nT]: [, input[_nT]],
609
- [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
610
- [_t]: [, input[_t]],
611
- [_st]: [, input[_st]],
612
- [_p]: [, input[_p]],
613
- [_aS]: [, input[_aS]],
614
- [_s]: [, input[_s]],
615
- [_cI]: [, input[_cI]],
616
- [_aLUA]: [() => input.afterLastUpdatedAt !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_aLUA]).toString()],
617
- [_bLUA]: [() => input.beforeLastUpdatedAt !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_bLUA]).toString()]
618
- });
619
- let body;
620
- b.m("GET").h(headers).q(query).b(body);
621
- return b.build();
622
- }, "se_ListRecommendationsCommand");
623
- var se_UpdateOrganizationRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (input, context) => {
624
- const b = (0, import_core.requestBuilder)(input, context);
625
- const headers = {
626
- "content-type": "application/json"
627
- };
628
- b.bp("/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle");
629
- b.p(
630
- "organizationRecommendationIdentifier",
631
- () => input.organizationRecommendationIdentifier,
632
- "{organizationRecommendationIdentifier}",
633
- false
634
- );
635
- let body;
636
- body = JSON.stringify(
637
- (0, import_smithy_client.take)(input, {
638
- lifecycleStage: [],
639
- updateReason: [],
640
- updateReasonCode: []
641
- })
642
- );
643
- b.m("PUT").h(headers).b(body);
644
- return b.build();
645
- }, "se_UpdateOrganizationRecommendationLifecycleCommand");
646
- var se_UpdateRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (input, context) => {
647
- const b = (0, import_core.requestBuilder)(input, context);
648
- const headers = {
649
- "content-type": "application/json"
650
- };
651
- b.bp("/v1/recommendations/{recommendationIdentifier}/lifecycle");
652
- b.p("recommendationIdentifier", () => input.recommendationIdentifier, "{recommendationIdentifier}", false);
653
- let body;
654
- body = JSON.stringify(
655
- (0, import_smithy_client.take)(input, {
656
- lifecycleStage: [],
657
- updateReason: [],
658
- updateReasonCode: []
659
- })
660
- );
661
- b.m("PUT").h(headers).b(body);
662
- return b.build();
663
- }, "se_UpdateRecommendationLifecycleCommand");
664
- var de_BatchUpdateRecommendationResourceExclusionCommand = /* @__PURE__ */ __name(async (output, context) => {
665
- if (output.statusCode !== 200 && output.statusCode >= 300) {
666
- return de_CommandError(output, context);
667
- }
668
- const contents = (0, import_smithy_client.map)({
669
- $metadata: deserializeMetadata(output)
670
- });
671
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
672
- const doc = (0, import_smithy_client.take)(data, {
673
- batchUpdateRecommendationResourceExclusionErrors: import_smithy_client._json
674
- });
675
- Object.assign(contents, doc);
676
- return contents;
677
- }, "de_BatchUpdateRecommendationResourceExclusionCommand");
678
- var de_GetOrganizationRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
679
- if (output.statusCode !== 200 && output.statusCode >= 300) {
680
- return de_CommandError(output, context);
681
- }
682
- const contents = (0, import_smithy_client.map)({
683
- $metadata: deserializeMetadata(output)
684
- });
685
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
686
- const doc = (0, import_smithy_client.take)(data, {
687
- organizationRecommendation: /* @__PURE__ */ __name((_) => de_OrganizationRecommendation(_, context), "organizationRecommendation")
688
- });
689
- Object.assign(contents, doc);
690
- return contents;
691
- }, "de_GetOrganizationRecommendationCommand");
692
- var de_GetRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {
693
- if (output.statusCode !== 200 && output.statusCode >= 300) {
694
- return de_CommandError(output, context);
695
- }
696
- const contents = (0, import_smithy_client.map)({
697
- $metadata: deserializeMetadata(output)
698
- });
699
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
700
- const doc = (0, import_smithy_client.take)(data, {
701
- recommendation: /* @__PURE__ */ __name((_) => de_Recommendation(_, context), "recommendation")
702
- });
703
- Object.assign(contents, doc);
704
- return contents;
705
- }, "de_GetRecommendationCommand");
706
- var de_ListChecksCommand = /* @__PURE__ */ __name(async (output, context) => {
707
- if (output.statusCode !== 200 && output.statusCode >= 300) {
708
- return de_CommandError(output, context);
709
- }
710
- const contents = (0, import_smithy_client.map)({
711
- $metadata: deserializeMetadata(output)
712
- });
713
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
714
- const doc = (0, import_smithy_client.take)(data, {
715
- checkSummaries: import_smithy_client._json,
716
- nextToken: import_smithy_client.expectString
717
- });
718
- Object.assign(contents, doc);
719
- return contents;
720
- }, "de_ListChecksCommand");
721
- var de_ListOrganizationRecommendationAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
722
- if (output.statusCode !== 200 && output.statusCode >= 300) {
723
- return de_CommandError(output, context);
724
- }
725
- const contents = (0, import_smithy_client.map)({
726
- $metadata: deserializeMetadata(output)
727
- });
728
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
729
- const doc = (0, import_smithy_client.take)(data, {
730
- accountRecommendationLifecycleSummaries: /* @__PURE__ */ __name((_) => de_AccountRecommendationLifecycleSummaryList(_, context), "accountRecommendationLifecycleSummaries"),
731
- nextToken: import_smithy_client.expectString
732
- });
733
- Object.assign(contents, doc);
734
- return contents;
735
- }, "de_ListOrganizationRecommendationAccountsCommand");
736
- var de_ListOrganizationRecommendationResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
737
- if (output.statusCode !== 200 && output.statusCode >= 300) {
738
- return de_CommandError(output, context);
739
- }
740
- const contents = (0, import_smithy_client.map)({
741
- $metadata: deserializeMetadata(output)
742
- });
743
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
744
- const doc = (0, import_smithy_client.take)(data, {
745
- nextToken: import_smithy_client.expectString,
746
- organizationRecommendationResourceSummaries: /* @__PURE__ */ __name((_) => de_OrganizationRecommendationResourceSummaryList(_, context), "organizationRecommendationResourceSummaries")
747
- });
748
- Object.assign(contents, doc);
749
- return contents;
750
- }, "de_ListOrganizationRecommendationResourcesCommand");
751
- var de_ListOrganizationRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
752
- if (output.statusCode !== 200 && output.statusCode >= 300) {
753
- return de_CommandError(output, context);
754
- }
755
- const contents = (0, import_smithy_client.map)({
756
- $metadata: deserializeMetadata(output)
757
- });
758
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
759
- const doc = (0, import_smithy_client.take)(data, {
760
- nextToken: import_smithy_client.expectString,
761
- organizationRecommendationSummaries: /* @__PURE__ */ __name((_) => de_OrganizationRecommendationSummaryList(_, context), "organizationRecommendationSummaries")
762
- });
763
- Object.assign(contents, doc);
764
- return contents;
765
- }, "de_ListOrganizationRecommendationsCommand");
766
- var de_ListRecommendationResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
767
- if (output.statusCode !== 200 && output.statusCode >= 300) {
768
- return de_CommandError(output, context);
769
- }
770
- const contents = (0, import_smithy_client.map)({
771
- $metadata: deserializeMetadata(output)
772
- });
773
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
774
- const doc = (0, import_smithy_client.take)(data, {
775
- nextToken: import_smithy_client.expectString,
776
- recommendationResourceSummaries: /* @__PURE__ */ __name((_) => de_RecommendationResourceSummaryList(_, context), "recommendationResourceSummaries")
777
- });
778
- Object.assign(contents, doc);
779
- return contents;
780
- }, "de_ListRecommendationResourcesCommand");
781
- var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
782
- if (output.statusCode !== 200 && output.statusCode >= 300) {
783
- return de_CommandError(output, context);
784
- }
785
- const contents = (0, import_smithy_client.map)({
786
- $metadata: deserializeMetadata(output)
787
- });
788
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
789
- const doc = (0, import_smithy_client.take)(data, {
790
- nextToken: import_smithy_client.expectString,
791
- recommendationSummaries: /* @__PURE__ */ __name((_) => de_RecommendationSummaryList(_, context), "recommendationSummaries")
792
- });
793
- Object.assign(contents, doc);
794
- return contents;
795
- }, "de_ListRecommendationsCommand");
796
- var de_UpdateOrganizationRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => {
797
- if (output.statusCode !== 200 && output.statusCode >= 300) {
798
- return de_CommandError(output, context);
799
- }
800
- const contents = (0, import_smithy_client.map)({
801
- $metadata: deserializeMetadata(output)
802
- });
803
- await (0, import_smithy_client.collectBody)(output.body, context);
804
- return contents;
805
- }, "de_UpdateOrganizationRecommendationLifecycleCommand");
806
- var de_UpdateRecommendationLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => {
807
- if (output.statusCode !== 200 && output.statusCode >= 300) {
808
- return de_CommandError(output, context);
809
- }
810
- const contents = (0, import_smithy_client.map)({
811
- $metadata: deserializeMetadata(output)
812
- });
813
- await (0, import_smithy_client.collectBody)(output.body, context);
814
- return contents;
815
- }, "de_UpdateRecommendationLifecycleCommand");
816
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
817
- const parsedOutput = {
818
- ...output,
819
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
820
- };
821
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
822
- switch (errorCode) {
823
- case "AccessDeniedException":
824
- case "com.amazonaws.trustedadvisor#AccessDeniedException":
825
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
826
- case "ConflictException":
827
- case "com.amazonaws.trustedadvisor#ConflictException":
828
- throw await de_ConflictExceptionRes(parsedOutput, context);
829
- case "InternalServerException":
830
- case "com.amazonaws.trustedadvisor#InternalServerException":
831
- throw await de_InternalServerExceptionRes(parsedOutput, context);
832
- case "ThrottlingException":
833
- case "com.amazonaws.trustedadvisor#ThrottlingException":
834
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
835
- case "ValidationException":
836
- case "com.amazonaws.trustedadvisor#ValidationException":
837
- throw await de_ValidationExceptionRes(parsedOutput, context);
838
- case "ResourceNotFoundException":
839
- case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
840
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
841
- default:
842
- const parsedBody = parsedOutput.body;
843
- return throwDefaultError({
844
- output,
845
- parsedBody,
846
- errorCode
847
- });
848
- }
849
- }, "de_CommandError");
850
- var throwDefaultError = (0, import_smithy_client.withBaseException)(TrustedAdvisorServiceException);
851
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
852
- const contents = (0, import_smithy_client.map)({});
853
- const data = parsedOutput.body;
854
- const doc = (0, import_smithy_client.take)(data, {
855
- message: import_smithy_client.expectString
856
- });
857
- Object.assign(contents, doc);
858
- const exception = new AccessDeniedException({
859
- $metadata: deserializeMetadata(parsedOutput),
860
- ...contents
861
- });
862
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
863
- }, "de_AccessDeniedExceptionRes");
864
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
865
- const contents = (0, import_smithy_client.map)({});
866
- const data = parsedOutput.body;
867
- const doc = (0, import_smithy_client.take)(data, {
868
- message: import_smithy_client.expectString
869
- });
870
- Object.assign(contents, doc);
871
- const exception = new ConflictException({
872
- $metadata: deserializeMetadata(parsedOutput),
873
- ...contents
874
- });
875
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
876
- }, "de_ConflictExceptionRes");
877
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
878
- const contents = (0, import_smithy_client.map)({});
879
- const data = parsedOutput.body;
880
- const doc = (0, import_smithy_client.take)(data, {
881
- message: import_smithy_client.expectString
882
- });
883
- Object.assign(contents, doc);
884
- const exception = new InternalServerException({
885
- $metadata: deserializeMetadata(parsedOutput),
886
- ...contents
887
- });
888
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
889
- }, "de_InternalServerExceptionRes");
890
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
891
- const contents = (0, import_smithy_client.map)({});
892
- const data = parsedOutput.body;
893
- const doc = (0, import_smithy_client.take)(data, {
894
- message: import_smithy_client.expectString
895
- });
896
- Object.assign(contents, doc);
897
- const exception = new ResourceNotFoundException({
898
- $metadata: deserializeMetadata(parsedOutput),
899
- ...contents
900
- });
901
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
902
- }, "de_ResourceNotFoundExceptionRes");
903
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
904
- const contents = (0, import_smithy_client.map)({});
905
- const data = parsedOutput.body;
906
- const doc = (0, import_smithy_client.take)(data, {
907
- message: import_smithy_client.expectString
908
- });
909
- Object.assign(contents, doc);
910
- const exception = new ThrottlingException({
911
- $metadata: deserializeMetadata(parsedOutput),
912
- ...contents
913
- });
914
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
915
- }, "de_ThrottlingExceptionRes");
916
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
917
- const contents = (0, import_smithy_client.map)({});
918
- const data = parsedOutput.body;
919
- const doc = (0, import_smithy_client.take)(data, {
920
- message: import_smithy_client.expectString
921
- });
922
- Object.assign(contents, doc);
923
- const exception = new ValidationException({
924
- $metadata: deserializeMetadata(parsedOutput),
925
- ...contents
926
- });
927
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
928
- }, "de_ValidationExceptionRes");
929
- var de_AccountRecommendationLifecycleSummary = /* @__PURE__ */ __name((output, context) => {
930
- return (0, import_smithy_client.take)(output, {
931
- accountId: import_smithy_client.expectString,
932
- accountRecommendationArn: import_smithy_client.expectString,
933
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
934
- lifecycleStage: import_smithy_client.expectString,
935
- updateReason: import_smithy_client.expectString,
936
- updateReasonCode: import_smithy_client.expectString,
937
- updatedOnBehalfOf: import_smithy_client.expectString,
938
- updatedOnBehalfOfJobTitle: import_smithy_client.expectString
939
- });
940
- }, "de_AccountRecommendationLifecycleSummary");
941
- var de_AccountRecommendationLifecycleSummaryList = /* @__PURE__ */ __name((output, context) => {
942
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
943
- return de_AccountRecommendationLifecycleSummary(entry, context);
944
- });
945
- return retVal;
946
- }, "de_AccountRecommendationLifecycleSummaryList");
947
- var de_OrganizationRecommendation = /* @__PURE__ */ __name((output, context) => {
948
- return (0, import_smithy_client.take)(output, {
949
- arn: import_smithy_client.expectString,
950
- awsServices: import_smithy_client._json,
951
- checkArn: import_smithy_client.expectString,
952
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
953
- createdBy: import_smithy_client.expectString,
954
- description: import_smithy_client.expectString,
955
- id: import_smithy_client.expectString,
956
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
957
- lifecycleStage: import_smithy_client.expectString,
958
- name: import_smithy_client.expectString,
959
- pillarSpecificAggregates: /* @__PURE__ */ __name((_) => de_RecommendationPillarSpecificAggregates(_, context), "pillarSpecificAggregates"),
960
- pillars: import_smithy_client._json,
961
- resolvedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "resolvedAt"),
962
- resourcesAggregates: import_smithy_client._json,
963
- source: import_smithy_client.expectString,
964
- status: import_smithy_client.expectString,
965
- type: import_smithy_client.expectString,
966
- updateReason: import_smithy_client.expectString,
967
- updateReasonCode: import_smithy_client.expectString,
968
- updatedOnBehalfOf: import_smithy_client.expectString,
969
- updatedOnBehalfOfJobTitle: import_smithy_client.expectString
970
- });
971
- }, "de_OrganizationRecommendation");
972
- var de_OrganizationRecommendationResourceSummary = /* @__PURE__ */ __name((output, context) => {
973
- return (0, import_smithy_client.take)(output, {
974
- accountId: import_smithy_client.expectString,
975
- arn: import_smithy_client.expectString,
976
- awsResourceId: import_smithy_client.expectString,
977
- exclusionStatus: import_smithy_client.expectString,
978
- id: import_smithy_client.expectString,
979
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
980
- metadata: import_smithy_client._json,
981
- recommendationArn: import_smithy_client.expectString,
982
- regionCode: import_smithy_client.expectString,
983
- status: import_smithy_client.expectString
984
- });
985
- }, "de_OrganizationRecommendationResourceSummary");
986
- var de_OrganizationRecommendationResourceSummaryList = /* @__PURE__ */ __name((output, context) => {
987
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
988
- return de_OrganizationRecommendationResourceSummary(entry, context);
989
- });
990
- return retVal;
991
- }, "de_OrganizationRecommendationResourceSummaryList");
992
- var de_OrganizationRecommendationSummary = /* @__PURE__ */ __name((output, context) => {
993
- return (0, import_smithy_client.take)(output, {
994
- arn: import_smithy_client.expectString,
995
- awsServices: import_smithy_client._json,
996
- checkArn: import_smithy_client.expectString,
997
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
998
- id: import_smithy_client.expectString,
999
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1000
- lifecycleStage: import_smithy_client.expectString,
1001
- name: import_smithy_client.expectString,
1002
- pillarSpecificAggregates: /* @__PURE__ */ __name((_) => de_RecommendationPillarSpecificAggregates(_, context), "pillarSpecificAggregates"),
1003
- pillars: import_smithy_client._json,
1004
- resourcesAggregates: import_smithy_client._json,
1005
- source: import_smithy_client.expectString,
1006
- status: import_smithy_client.expectString,
1007
- type: import_smithy_client.expectString
1008
- });
1009
- }, "de_OrganizationRecommendationSummary");
1010
- var de_OrganizationRecommendationSummaryList = /* @__PURE__ */ __name((output, context) => {
1011
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1012
- return de_OrganizationRecommendationSummary(entry, context);
1013
- });
1014
- return retVal;
1015
- }, "de_OrganizationRecommendationSummaryList");
1016
- var de_Recommendation = /* @__PURE__ */ __name((output, context) => {
1017
- return (0, import_smithy_client.take)(output, {
1018
- arn: import_smithy_client.expectString,
1019
- awsServices: import_smithy_client._json,
1020
- checkArn: import_smithy_client.expectString,
1021
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1022
- createdBy: import_smithy_client.expectString,
1023
- description: import_smithy_client.expectString,
1024
- id: import_smithy_client.expectString,
1025
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1026
- lifecycleStage: import_smithy_client.expectString,
1027
- name: import_smithy_client.expectString,
1028
- pillarSpecificAggregates: /* @__PURE__ */ __name((_) => de_RecommendationPillarSpecificAggregates(_, context), "pillarSpecificAggregates"),
1029
- pillars: import_smithy_client._json,
1030
- resolvedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "resolvedAt"),
1031
- resourcesAggregates: import_smithy_client._json,
1032
- source: import_smithy_client.expectString,
1033
- status: import_smithy_client.expectString,
1034
- type: import_smithy_client.expectString,
1035
- updateReason: import_smithy_client.expectString,
1036
- updateReasonCode: import_smithy_client.expectString,
1037
- updatedOnBehalfOf: import_smithy_client.expectString,
1038
- updatedOnBehalfOfJobTitle: import_smithy_client.expectString
1039
- });
1040
- }, "de_Recommendation");
1041
- var de_RecommendationCostOptimizingAggregates = /* @__PURE__ */ __name((output, context) => {
1042
- return (0, import_smithy_client.take)(output, {
1043
- estimatedMonthlySavings: import_smithy_client.limitedParseDouble,
1044
- estimatedPercentMonthlySavings: import_smithy_client.limitedParseDouble
1045
- });
1046
- }, "de_RecommendationCostOptimizingAggregates");
1047
- var de_RecommendationPillarSpecificAggregates = /* @__PURE__ */ __name((output, context) => {
1048
- return (0, import_smithy_client.take)(output, {
1049
- costOptimizing: /* @__PURE__ */ __name((_) => de_RecommendationCostOptimizingAggregates(_, context), "costOptimizing")
1050
- });
1051
- }, "de_RecommendationPillarSpecificAggregates");
1052
- var de_RecommendationResourceSummary = /* @__PURE__ */ __name((output, context) => {
1053
- return (0, import_smithy_client.take)(output, {
1054
- arn: import_smithy_client.expectString,
1055
- awsResourceId: import_smithy_client.expectString,
1056
- exclusionStatus: import_smithy_client.expectString,
1057
- id: import_smithy_client.expectString,
1058
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1059
- metadata: import_smithy_client._json,
1060
- recommendationArn: import_smithy_client.expectString,
1061
- regionCode: import_smithy_client.expectString,
1062
- status: import_smithy_client.expectString
1063
- });
1064
- }, "de_RecommendationResourceSummary");
1065
- var de_RecommendationResourceSummaryList = /* @__PURE__ */ __name((output, context) => {
1066
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1067
- return de_RecommendationResourceSummary(entry, context);
1068
- });
1069
- return retVal;
1070
- }, "de_RecommendationResourceSummaryList");
1071
- var de_RecommendationSummary = /* @__PURE__ */ __name((output, context) => {
1072
- return (0, import_smithy_client.take)(output, {
1073
- arn: import_smithy_client.expectString,
1074
- awsServices: import_smithy_client._json,
1075
- checkArn: import_smithy_client.expectString,
1076
- createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
1077
- id: import_smithy_client.expectString,
1078
- lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
1079
- lifecycleStage: import_smithy_client.expectString,
1080
- name: import_smithy_client.expectString,
1081
- pillarSpecificAggregates: /* @__PURE__ */ __name((_) => de_RecommendationPillarSpecificAggregates(_, context), "pillarSpecificAggregates"),
1082
- pillars: import_smithy_client._json,
1083
- resourcesAggregates: import_smithy_client._json,
1084
- source: import_smithy_client.expectString,
1085
- status: import_smithy_client.expectString,
1086
- type: import_smithy_client.expectString
1087
- });
1088
- }, "de_RecommendationSummary");
1089
- var de_RecommendationSummaryList = /* @__PURE__ */ __name((output, context) => {
1090
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1091
- return de_RecommendationSummary(entry, context);
1092
- });
1093
- return retVal;
1094
- }, "de_RecommendationSummaryList");
1095
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1096
- httpStatusCode: output.statusCode,
1097
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1098
- extendedRequestId: output.headers["x-amz-id-2"],
1099
- cfId: output.headers["x-amz-cf-id"]
1100
- }), "deserializeMetadata");
1101
- var _aAI = "affectedAccountId";
1102
- var _aLUA = "afterLastUpdatedAt";
1103
- var _aS = "awsService";
1104
- var _bLUA = "beforeLastUpdatedAt";
1105
- var _cI = "checkIdentifier";
1106
- var _eS = "exclusionStatus";
1107
- var _l = "language";
1108
- var _mR = "maxResults";
1109
- var _nT = "nextToken";
1110
- var _p = "pillar";
1111
- var _rC = "regionCode";
1112
- var _s = "source";
1113
- var _st = "status";
1114
- var _t = "type";
1115
-
1116
- // src/commands/BatchUpdateRecommendationResourceExclusionCommand.ts
1117
- var BatchUpdateRecommendationResourceExclusionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1118
- return [
1119
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1120
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1121
- ];
1122
- }).s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {}).n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand").f(void 0, void 0).ser(se_BatchUpdateRecommendationResourceExclusionCommand).de(de_BatchUpdateRecommendationResourceExclusionCommand).build() {
1123
- static {
1124
- __name(this, "BatchUpdateRecommendationResourceExclusionCommand");
1125
- }
616
+ const de_UpdateRecommendationLifecycleCommand = async (output, context) => {
617
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
618
+ return de_CommandError(output, context);
619
+ }
620
+ const contents = smithyClient.map({
621
+ $metadata: deserializeMetadata(output),
622
+ });
623
+ await smithyClient.collectBody(output.body, context);
624
+ return contents;
1126
625
  };
1127
-
1128
- // src/commands/GetOrganizationRecommendationCommand.ts
1129
-
1130
-
1131
-
1132
- var GetOrganizationRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1133
- return [
1134
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1135
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1136
- ];
1137
- }).s("TrustedAdvisor", "GetOrganizationRecommendation", {}).n("TrustedAdvisorClient", "GetOrganizationRecommendationCommand").f(void 0, GetOrganizationRecommendationResponseFilterSensitiveLog).ser(se_GetOrganizationRecommendationCommand).de(de_GetOrganizationRecommendationCommand).build() {
1138
- static {
1139
- __name(this, "GetOrganizationRecommendationCommand");
1140
- }
626
+ const de_CommandError = async (output, context) => {
627
+ const parsedOutput = {
628
+ ...output,
629
+ body: await core$1.parseJsonErrorBody(output.body, context),
630
+ };
631
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
632
+ switch (errorCode) {
633
+ case "AccessDeniedException":
634
+ case "com.amazonaws.trustedadvisor#AccessDeniedException":
635
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
636
+ case "ConflictException":
637
+ case "com.amazonaws.trustedadvisor#ConflictException":
638
+ throw await de_ConflictExceptionRes(parsedOutput);
639
+ case "InternalServerException":
640
+ case "com.amazonaws.trustedadvisor#InternalServerException":
641
+ throw await de_InternalServerExceptionRes(parsedOutput);
642
+ case "ThrottlingException":
643
+ case "com.amazonaws.trustedadvisor#ThrottlingException":
644
+ throw await de_ThrottlingExceptionRes(parsedOutput);
645
+ case "ValidationException":
646
+ case "com.amazonaws.trustedadvisor#ValidationException":
647
+ throw await de_ValidationExceptionRes(parsedOutput);
648
+ case "ResourceNotFoundException":
649
+ case "com.amazonaws.trustedadvisor#ResourceNotFoundException":
650
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
651
+ default:
652
+ const parsedBody = parsedOutput.body;
653
+ return throwDefaultError({
654
+ output,
655
+ parsedBody,
656
+ errorCode,
657
+ });
658
+ }
1141
659
  };
1142
-
1143
- // src/commands/GetRecommendationCommand.ts
1144
-
1145
-
1146
-
1147
- var GetRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1148
- return [
1149
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1150
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1151
- ];
1152
- }).s("TrustedAdvisor", "GetRecommendation", {}).n("TrustedAdvisorClient", "GetRecommendationCommand").f(void 0, GetRecommendationResponseFilterSensitiveLog).ser(se_GetRecommendationCommand).de(de_GetRecommendationCommand).build() {
1153
- static {
1154
- __name(this, "GetRecommendationCommand");
1155
- }
660
+ const throwDefaultError = smithyClient.withBaseException(TrustedAdvisorServiceException);
661
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
662
+ const contents = smithyClient.map({});
663
+ const data = parsedOutput.body;
664
+ const doc = smithyClient.take(data, {
665
+ message: smithyClient.expectString,
666
+ });
667
+ Object.assign(contents, doc);
668
+ const exception = new AccessDeniedException({
669
+ $metadata: deserializeMetadata(parsedOutput),
670
+ ...contents,
671
+ });
672
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1156
673
  };
1157
-
1158
- // src/commands/ListChecksCommand.ts
1159
-
1160
-
1161
-
1162
- var ListChecksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1163
- return [
1164
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1165
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1166
- ];
1167
- }).s("TrustedAdvisor", "ListChecks", {}).n("TrustedAdvisorClient", "ListChecksCommand").f(void 0, void 0).ser(se_ListChecksCommand).de(de_ListChecksCommand).build() {
1168
- static {
1169
- __name(this, "ListChecksCommand");
1170
- }
674
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
675
+ const contents = smithyClient.map({});
676
+ const data = parsedOutput.body;
677
+ const doc = smithyClient.take(data, {
678
+ message: smithyClient.expectString,
679
+ });
680
+ Object.assign(contents, doc);
681
+ const exception = new ConflictException({
682
+ $metadata: deserializeMetadata(parsedOutput),
683
+ ...contents,
684
+ });
685
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1171
686
  };
1172
-
1173
- // src/commands/ListOrganizationRecommendationAccountsCommand.ts
1174
-
1175
-
1176
-
1177
- var ListOrganizationRecommendationAccountsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1178
- return [
1179
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1180
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1181
- ];
1182
- }).s("TrustedAdvisor", "ListOrganizationRecommendationAccounts", {}).n("TrustedAdvisorClient", "ListOrganizationRecommendationAccountsCommand").f(void 0, ListOrganizationRecommendationAccountsResponseFilterSensitiveLog).ser(se_ListOrganizationRecommendationAccountsCommand).de(de_ListOrganizationRecommendationAccountsCommand).build() {
1183
- static {
1184
- __name(this, "ListOrganizationRecommendationAccountsCommand");
1185
- }
687
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
688
+ const contents = smithyClient.map({});
689
+ const data = parsedOutput.body;
690
+ const doc = smithyClient.take(data, {
691
+ message: smithyClient.expectString,
692
+ });
693
+ Object.assign(contents, doc);
694
+ const exception = new InternalServerException({
695
+ $metadata: deserializeMetadata(parsedOutput),
696
+ ...contents,
697
+ });
698
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1186
699
  };
1187
-
1188
- // src/commands/ListOrganizationRecommendationResourcesCommand.ts
1189
-
1190
-
1191
-
1192
- var ListOrganizationRecommendationResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1193
- return [
1194
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1195
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1196
- ];
1197
- }).s("TrustedAdvisor", "ListOrganizationRecommendationResources", {}).n("TrustedAdvisorClient", "ListOrganizationRecommendationResourcesCommand").f(void 0, void 0).ser(se_ListOrganizationRecommendationResourcesCommand).de(de_ListOrganizationRecommendationResourcesCommand).build() {
1198
- static {
1199
- __name(this, "ListOrganizationRecommendationResourcesCommand");
1200
- }
700
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
701
+ const contents = smithyClient.map({});
702
+ const data = parsedOutput.body;
703
+ const doc = smithyClient.take(data, {
704
+ message: smithyClient.expectString,
705
+ });
706
+ Object.assign(contents, doc);
707
+ const exception = new ResourceNotFoundException({
708
+ $metadata: deserializeMetadata(parsedOutput),
709
+ ...contents,
710
+ });
711
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1201
712
  };
1202
-
1203
- // src/commands/ListOrganizationRecommendationsCommand.ts
1204
-
1205
-
1206
-
1207
- var ListOrganizationRecommendationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1208
- return [
1209
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1210
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1211
- ];
1212
- }).s("TrustedAdvisor", "ListOrganizationRecommendations", {}).n("TrustedAdvisorClient", "ListOrganizationRecommendationsCommand").f(void 0, void 0).ser(se_ListOrganizationRecommendationsCommand).de(de_ListOrganizationRecommendationsCommand).build() {
1213
- static {
1214
- __name(this, "ListOrganizationRecommendationsCommand");
1215
- }
713
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
714
+ const contents = smithyClient.map({});
715
+ const data = parsedOutput.body;
716
+ const doc = smithyClient.take(data, {
717
+ message: smithyClient.expectString,
718
+ });
719
+ Object.assign(contents, doc);
720
+ const exception = new ThrottlingException({
721
+ $metadata: deserializeMetadata(parsedOutput),
722
+ ...contents,
723
+ });
724
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1216
725
  };
1217
-
1218
- // src/commands/ListRecommendationResourcesCommand.ts
1219
-
1220
-
1221
-
1222
- var ListRecommendationResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1223
- return [
1224
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1225
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1226
- ];
1227
- }).s("TrustedAdvisor", "ListRecommendationResources", {}).n("TrustedAdvisorClient", "ListRecommendationResourcesCommand").f(void 0, void 0).ser(se_ListRecommendationResourcesCommand).de(de_ListRecommendationResourcesCommand).build() {
1228
- static {
1229
- __name(this, "ListRecommendationResourcesCommand");
1230
- }
726
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
727
+ const contents = smithyClient.map({});
728
+ const data = parsedOutput.body;
729
+ const doc = smithyClient.take(data, {
730
+ message: smithyClient.expectString,
731
+ });
732
+ Object.assign(contents, doc);
733
+ const exception = new ValidationException({
734
+ $metadata: deserializeMetadata(parsedOutput),
735
+ ...contents,
736
+ });
737
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1231
738
  };
1232
-
1233
- // src/commands/ListRecommendationsCommand.ts
1234
-
1235
-
1236
-
1237
- var ListRecommendationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1238
- return [
1239
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1240
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1241
- ];
1242
- }).s("TrustedAdvisor", "ListRecommendations", {}).n("TrustedAdvisorClient", "ListRecommendationsCommand").f(void 0, void 0).ser(se_ListRecommendationsCommand).de(de_ListRecommendationsCommand).build() {
1243
- static {
1244
- __name(this, "ListRecommendationsCommand");
1245
- }
739
+ const de_AccountRecommendationLifecycleSummary = (output, context) => {
740
+ return smithyClient.take(output, {
741
+ accountId: smithyClient.expectString,
742
+ accountRecommendationArn: smithyClient.expectString,
743
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
744
+ lifecycleStage: smithyClient.expectString,
745
+ updateReason: smithyClient.expectString,
746
+ updateReasonCode: smithyClient.expectString,
747
+ updatedOnBehalfOf: smithyClient.expectString,
748
+ updatedOnBehalfOfJobTitle: smithyClient.expectString,
749
+ });
1246
750
  };
1247
-
1248
- // src/commands/UpdateOrganizationRecommendationLifecycleCommand.ts
1249
-
1250
-
1251
-
1252
- var UpdateOrganizationRecommendationLifecycleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1253
- return [
1254
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1255
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1256
- ];
1257
- }).s("TrustedAdvisor", "UpdateOrganizationRecommendationLifecycle", {}).n("TrustedAdvisorClient", "UpdateOrganizationRecommendationLifecycleCommand").f(UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog, void 0).ser(se_UpdateOrganizationRecommendationLifecycleCommand).de(de_UpdateOrganizationRecommendationLifecycleCommand).build() {
1258
- static {
1259
- __name(this, "UpdateOrganizationRecommendationLifecycleCommand");
1260
- }
751
+ const de_AccountRecommendationLifecycleSummaryList = (output, context) => {
752
+ const retVal = (output || [])
753
+ .filter((e) => e != null)
754
+ .map((entry) => {
755
+ return de_AccountRecommendationLifecycleSummary(entry);
756
+ });
757
+ return retVal;
1261
758
  };
1262
-
1263
- // src/commands/UpdateRecommendationLifecycleCommand.ts
1264
-
1265
-
1266
-
1267
- var UpdateRecommendationLifecycleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1268
- return [
1269
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1270
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1271
- ];
1272
- }).s("TrustedAdvisor", "UpdateRecommendationLifecycle", {}).n("TrustedAdvisorClient", "UpdateRecommendationLifecycleCommand").f(UpdateRecommendationLifecycleRequestFilterSensitiveLog, void 0).ser(se_UpdateRecommendationLifecycleCommand).de(de_UpdateRecommendationLifecycleCommand).build() {
1273
- static {
1274
- __name(this, "UpdateRecommendationLifecycleCommand");
1275
- }
759
+ const de_OrganizationRecommendation = (output, context) => {
760
+ return smithyClient.take(output, {
761
+ arn: smithyClient.expectString,
762
+ awsServices: smithyClient._json,
763
+ checkArn: smithyClient.expectString,
764
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
765
+ createdBy: smithyClient.expectString,
766
+ description: smithyClient.expectString,
767
+ id: smithyClient.expectString,
768
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
769
+ lifecycleStage: smithyClient.expectString,
770
+ name: smithyClient.expectString,
771
+ pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
772
+ pillars: smithyClient._json,
773
+ resolvedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
774
+ resourcesAggregates: smithyClient._json,
775
+ source: smithyClient.expectString,
776
+ status: smithyClient.expectString,
777
+ type: smithyClient.expectString,
778
+ updateReason: smithyClient.expectString,
779
+ updateReasonCode: smithyClient.expectString,
780
+ updatedOnBehalfOf: smithyClient.expectString,
781
+ updatedOnBehalfOfJobTitle: smithyClient.expectString,
782
+ });
1276
783
  };
1277
-
1278
- // src/TrustedAdvisor.ts
1279
- var commands = {
1280
- BatchUpdateRecommendationResourceExclusionCommand,
1281
- GetOrganizationRecommendationCommand,
1282
- GetRecommendationCommand,
1283
- ListChecksCommand,
1284
- ListOrganizationRecommendationAccountsCommand,
1285
- ListOrganizationRecommendationResourcesCommand,
1286
- ListOrganizationRecommendationsCommand,
1287
- ListRecommendationResourcesCommand,
1288
- ListRecommendationsCommand,
1289
- UpdateOrganizationRecommendationLifecycleCommand,
1290
- UpdateRecommendationLifecycleCommand
784
+ const de_OrganizationRecommendationResourceSummary = (output, context) => {
785
+ return smithyClient.take(output, {
786
+ accountId: smithyClient.expectString,
787
+ arn: smithyClient.expectString,
788
+ awsResourceId: smithyClient.expectString,
789
+ exclusionStatus: smithyClient.expectString,
790
+ id: smithyClient.expectString,
791
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
792
+ metadata: smithyClient._json,
793
+ recommendationArn: smithyClient.expectString,
794
+ regionCode: smithyClient.expectString,
795
+ status: smithyClient.expectString,
796
+ });
1291
797
  };
1292
- var TrustedAdvisor = class extends TrustedAdvisorClient {
1293
- static {
1294
- __name(this, "TrustedAdvisor");
1295
- }
798
+ const de_OrganizationRecommendationResourceSummaryList = (output, context) => {
799
+ const retVal = (output || [])
800
+ .filter((e) => e != null)
801
+ .map((entry) => {
802
+ return de_OrganizationRecommendationResourceSummary(entry);
803
+ });
804
+ return retVal;
1296
805
  };
1297
- (0, import_smithy_client.createAggregatedClient)(commands, TrustedAdvisor);
1298
-
1299
- // src/pagination/ListChecksPaginator.ts
1300
-
1301
- var paginateListChecks = (0, import_core.createPaginator)(TrustedAdvisorClient, ListChecksCommand, "nextToken", "nextToken", "maxResults");
1302
-
1303
- // src/pagination/ListOrganizationRecommendationAccountsPaginator.ts
1304
-
1305
- var paginateListOrganizationRecommendationAccounts = (0, import_core.createPaginator)(TrustedAdvisorClient, ListOrganizationRecommendationAccountsCommand, "nextToken", "nextToken", "maxResults");
1306
-
1307
- // src/pagination/ListOrganizationRecommendationResourcesPaginator.ts
1308
-
1309
- var paginateListOrganizationRecommendationResources = (0, import_core.createPaginator)(TrustedAdvisorClient, ListOrganizationRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
806
+ const de_OrganizationRecommendationSummary = (output, context) => {
807
+ return smithyClient.take(output, {
808
+ arn: smithyClient.expectString,
809
+ awsServices: smithyClient._json,
810
+ checkArn: smithyClient.expectString,
811
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
812
+ id: smithyClient.expectString,
813
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
814
+ lifecycleStage: smithyClient.expectString,
815
+ name: smithyClient.expectString,
816
+ pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
817
+ pillars: smithyClient._json,
818
+ resourcesAggregates: smithyClient._json,
819
+ source: smithyClient.expectString,
820
+ status: smithyClient.expectString,
821
+ type: smithyClient.expectString,
822
+ });
823
+ };
824
+ const de_OrganizationRecommendationSummaryList = (output, context) => {
825
+ const retVal = (output || [])
826
+ .filter((e) => e != null)
827
+ .map((entry) => {
828
+ return de_OrganizationRecommendationSummary(entry);
829
+ });
830
+ return retVal;
831
+ };
832
+ const de_Recommendation = (output, context) => {
833
+ return smithyClient.take(output, {
834
+ arn: smithyClient.expectString,
835
+ awsServices: smithyClient._json,
836
+ checkArn: smithyClient.expectString,
837
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
838
+ createdBy: smithyClient.expectString,
839
+ description: smithyClient.expectString,
840
+ id: smithyClient.expectString,
841
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
842
+ lifecycleStage: smithyClient.expectString,
843
+ name: smithyClient.expectString,
844
+ pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
845
+ pillars: smithyClient._json,
846
+ resolvedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
847
+ resourcesAggregates: smithyClient._json,
848
+ source: smithyClient.expectString,
849
+ status: smithyClient.expectString,
850
+ type: smithyClient.expectString,
851
+ updateReason: smithyClient.expectString,
852
+ updateReasonCode: smithyClient.expectString,
853
+ updatedOnBehalfOf: smithyClient.expectString,
854
+ updatedOnBehalfOfJobTitle: smithyClient.expectString,
855
+ });
856
+ };
857
+ const de_RecommendationCostOptimizingAggregates = (output, context) => {
858
+ return smithyClient.take(output, {
859
+ estimatedMonthlySavings: smithyClient.limitedParseDouble,
860
+ estimatedPercentMonthlySavings: smithyClient.limitedParseDouble,
861
+ });
862
+ };
863
+ const de_RecommendationPillarSpecificAggregates = (output, context) => {
864
+ return smithyClient.take(output, {
865
+ costOptimizing: (_) => de_RecommendationCostOptimizingAggregates(_),
866
+ });
867
+ };
868
+ const de_RecommendationResourceSummary = (output, context) => {
869
+ return smithyClient.take(output, {
870
+ arn: smithyClient.expectString,
871
+ awsResourceId: smithyClient.expectString,
872
+ exclusionStatus: smithyClient.expectString,
873
+ id: smithyClient.expectString,
874
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
875
+ metadata: smithyClient._json,
876
+ recommendationArn: smithyClient.expectString,
877
+ regionCode: smithyClient.expectString,
878
+ status: smithyClient.expectString,
879
+ });
880
+ };
881
+ const de_RecommendationResourceSummaryList = (output, context) => {
882
+ const retVal = (output || [])
883
+ .filter((e) => e != null)
884
+ .map((entry) => {
885
+ return de_RecommendationResourceSummary(entry);
886
+ });
887
+ return retVal;
888
+ };
889
+ const de_RecommendationSummary = (output, context) => {
890
+ return smithyClient.take(output, {
891
+ arn: smithyClient.expectString,
892
+ awsServices: smithyClient._json,
893
+ checkArn: smithyClient.expectString,
894
+ createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
895
+ id: smithyClient.expectString,
896
+ lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
897
+ lifecycleStage: smithyClient.expectString,
898
+ name: smithyClient.expectString,
899
+ pillarSpecificAggregates: (_) => de_RecommendationPillarSpecificAggregates(_),
900
+ pillars: smithyClient._json,
901
+ resourcesAggregates: smithyClient._json,
902
+ source: smithyClient.expectString,
903
+ status: smithyClient.expectString,
904
+ type: smithyClient.expectString,
905
+ });
906
+ };
907
+ const de_RecommendationSummaryList = (output, context) => {
908
+ const retVal = (output || [])
909
+ .filter((e) => e != null)
910
+ .map((entry) => {
911
+ return de_RecommendationSummary(entry);
912
+ });
913
+ return retVal;
914
+ };
915
+ const deserializeMetadata = (output) => ({
916
+ httpStatusCode: output.statusCode,
917
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
918
+ extendedRequestId: output.headers["x-amz-id-2"],
919
+ cfId: output.headers["x-amz-cf-id"],
920
+ });
921
+ const _aAI = "affectedAccountId";
922
+ const _aLUA = "afterLastUpdatedAt";
923
+ const _aS = "awsService";
924
+ const _bLUA = "beforeLastUpdatedAt";
925
+ const _cI = "checkIdentifier";
926
+ const _eS = "exclusionStatus";
927
+ const _l = "language";
928
+ const _mR = "maxResults";
929
+ const _nT = "nextToken";
930
+ const _p = "pillar";
931
+ const _rC = "regionCode";
932
+ const _s = "source";
933
+ const _st = "status";
934
+ const _t = "type";
935
+
936
+ class BatchUpdateRecommendationResourceExclusionCommand extends smithyClient.Command
937
+ .classBuilder()
938
+ .ep(commonParams)
939
+ .m(function (Command, cs, config, o) {
940
+ return [
941
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
942
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
943
+ ];
944
+ })
945
+ .s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {})
946
+ .n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand")
947
+ .f(void 0, void 0)
948
+ .ser(se_BatchUpdateRecommendationResourceExclusionCommand)
949
+ .de(de_BatchUpdateRecommendationResourceExclusionCommand)
950
+ .build() {
951
+ }
952
+
953
+ class GetOrganizationRecommendationCommand extends smithyClient.Command
954
+ .classBuilder()
955
+ .ep(commonParams)
956
+ .m(function (Command, cs, config, o) {
957
+ return [
958
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
959
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
960
+ ];
961
+ })
962
+ .s("TrustedAdvisor", "GetOrganizationRecommendation", {})
963
+ .n("TrustedAdvisorClient", "GetOrganizationRecommendationCommand")
964
+ .f(void 0, GetOrganizationRecommendationResponseFilterSensitiveLog)
965
+ .ser(se_GetOrganizationRecommendationCommand)
966
+ .de(de_GetOrganizationRecommendationCommand)
967
+ .build() {
968
+ }
969
+
970
+ class GetRecommendationCommand extends smithyClient.Command
971
+ .classBuilder()
972
+ .ep(commonParams)
973
+ .m(function (Command, cs, config, o) {
974
+ return [
975
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
976
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
977
+ ];
978
+ })
979
+ .s("TrustedAdvisor", "GetRecommendation", {})
980
+ .n("TrustedAdvisorClient", "GetRecommendationCommand")
981
+ .f(void 0, GetRecommendationResponseFilterSensitiveLog)
982
+ .ser(se_GetRecommendationCommand)
983
+ .de(de_GetRecommendationCommand)
984
+ .build() {
985
+ }
986
+
987
+ class ListChecksCommand extends smithyClient.Command
988
+ .classBuilder()
989
+ .ep(commonParams)
990
+ .m(function (Command, cs, config, o) {
991
+ return [
992
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
993
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
994
+ ];
995
+ })
996
+ .s("TrustedAdvisor", "ListChecks", {})
997
+ .n("TrustedAdvisorClient", "ListChecksCommand")
998
+ .f(void 0, void 0)
999
+ .ser(se_ListChecksCommand)
1000
+ .de(de_ListChecksCommand)
1001
+ .build() {
1002
+ }
1003
+
1004
+ class ListOrganizationRecommendationAccountsCommand extends smithyClient.Command
1005
+ .classBuilder()
1006
+ .ep(commonParams)
1007
+ .m(function (Command, cs, config, o) {
1008
+ return [
1009
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1010
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1011
+ ];
1012
+ })
1013
+ .s("TrustedAdvisor", "ListOrganizationRecommendationAccounts", {})
1014
+ .n("TrustedAdvisorClient", "ListOrganizationRecommendationAccountsCommand")
1015
+ .f(void 0, ListOrganizationRecommendationAccountsResponseFilterSensitiveLog)
1016
+ .ser(se_ListOrganizationRecommendationAccountsCommand)
1017
+ .de(de_ListOrganizationRecommendationAccountsCommand)
1018
+ .build() {
1019
+ }
1020
+
1021
+ class ListOrganizationRecommendationResourcesCommand extends smithyClient.Command
1022
+ .classBuilder()
1023
+ .ep(commonParams)
1024
+ .m(function (Command, cs, config, o) {
1025
+ return [
1026
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1027
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1028
+ ];
1029
+ })
1030
+ .s("TrustedAdvisor", "ListOrganizationRecommendationResources", {})
1031
+ .n("TrustedAdvisorClient", "ListOrganizationRecommendationResourcesCommand")
1032
+ .f(void 0, void 0)
1033
+ .ser(se_ListOrganizationRecommendationResourcesCommand)
1034
+ .de(de_ListOrganizationRecommendationResourcesCommand)
1035
+ .build() {
1036
+ }
1037
+
1038
+ class ListOrganizationRecommendationsCommand extends smithyClient.Command
1039
+ .classBuilder()
1040
+ .ep(commonParams)
1041
+ .m(function (Command, cs, config, o) {
1042
+ return [
1043
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1044
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1045
+ ];
1046
+ })
1047
+ .s("TrustedAdvisor", "ListOrganizationRecommendations", {})
1048
+ .n("TrustedAdvisorClient", "ListOrganizationRecommendationsCommand")
1049
+ .f(void 0, void 0)
1050
+ .ser(se_ListOrganizationRecommendationsCommand)
1051
+ .de(de_ListOrganizationRecommendationsCommand)
1052
+ .build() {
1053
+ }
1054
+
1055
+ class ListRecommendationResourcesCommand extends smithyClient.Command
1056
+ .classBuilder()
1057
+ .ep(commonParams)
1058
+ .m(function (Command, cs, config, o) {
1059
+ return [
1060
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1061
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1062
+ ];
1063
+ })
1064
+ .s("TrustedAdvisor", "ListRecommendationResources", {})
1065
+ .n("TrustedAdvisorClient", "ListRecommendationResourcesCommand")
1066
+ .f(void 0, void 0)
1067
+ .ser(se_ListRecommendationResourcesCommand)
1068
+ .de(de_ListRecommendationResourcesCommand)
1069
+ .build() {
1070
+ }
1071
+
1072
+ class ListRecommendationsCommand extends smithyClient.Command
1073
+ .classBuilder()
1074
+ .ep(commonParams)
1075
+ .m(function (Command, cs, config, o) {
1076
+ return [
1077
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1078
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1079
+ ];
1080
+ })
1081
+ .s("TrustedAdvisor", "ListRecommendations", {})
1082
+ .n("TrustedAdvisorClient", "ListRecommendationsCommand")
1083
+ .f(void 0, void 0)
1084
+ .ser(se_ListRecommendationsCommand)
1085
+ .de(de_ListRecommendationsCommand)
1086
+ .build() {
1087
+ }
1088
+
1089
+ class UpdateOrganizationRecommendationLifecycleCommand extends smithyClient.Command
1090
+ .classBuilder()
1091
+ .ep(commonParams)
1092
+ .m(function (Command, cs, config, o) {
1093
+ return [
1094
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1095
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1096
+ ];
1097
+ })
1098
+ .s("TrustedAdvisor", "UpdateOrganizationRecommendationLifecycle", {})
1099
+ .n("TrustedAdvisorClient", "UpdateOrganizationRecommendationLifecycleCommand")
1100
+ .f(UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog, void 0)
1101
+ .ser(se_UpdateOrganizationRecommendationLifecycleCommand)
1102
+ .de(de_UpdateOrganizationRecommendationLifecycleCommand)
1103
+ .build() {
1104
+ }
1105
+
1106
+ class UpdateRecommendationLifecycleCommand extends smithyClient.Command
1107
+ .classBuilder()
1108
+ .ep(commonParams)
1109
+ .m(function (Command, cs, config, o) {
1110
+ return [
1111
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1112
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1113
+ ];
1114
+ })
1115
+ .s("TrustedAdvisor", "UpdateRecommendationLifecycle", {})
1116
+ .n("TrustedAdvisorClient", "UpdateRecommendationLifecycleCommand")
1117
+ .f(UpdateRecommendationLifecycleRequestFilterSensitiveLog, void 0)
1118
+ .ser(se_UpdateRecommendationLifecycleCommand)
1119
+ .de(de_UpdateRecommendationLifecycleCommand)
1120
+ .build() {
1121
+ }
1122
+
1123
+ const commands = {
1124
+ BatchUpdateRecommendationResourceExclusionCommand,
1125
+ GetOrganizationRecommendationCommand,
1126
+ GetRecommendationCommand,
1127
+ ListChecksCommand,
1128
+ ListOrganizationRecommendationAccountsCommand,
1129
+ ListOrganizationRecommendationResourcesCommand,
1130
+ ListOrganizationRecommendationsCommand,
1131
+ ListRecommendationResourcesCommand,
1132
+ ListRecommendationsCommand,
1133
+ UpdateOrganizationRecommendationLifecycleCommand,
1134
+ UpdateRecommendationLifecycleCommand,
1135
+ };
1136
+ class TrustedAdvisor extends TrustedAdvisorClient {
1137
+ }
1138
+ smithyClient.createAggregatedClient(commands, TrustedAdvisor);
1310
1139
 
1311
- // src/pagination/ListOrganizationRecommendationsPaginator.ts
1140
+ const paginateListChecks = core.createPaginator(TrustedAdvisorClient, ListChecksCommand, "nextToken", "nextToken", "maxResults");
1312
1141
 
1313
- var paginateListOrganizationRecommendations = (0, import_core.createPaginator)(TrustedAdvisorClient, ListOrganizationRecommendationsCommand, "nextToken", "nextToken", "maxResults");
1142
+ const paginateListOrganizationRecommendationAccounts = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationAccountsCommand, "nextToken", "nextToken", "maxResults");
1314
1143
 
1315
- // src/pagination/ListRecommendationResourcesPaginator.ts
1144
+ const paginateListOrganizationRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
1316
1145
 
1317
- var paginateListRecommendationResources = (0, import_core.createPaginator)(TrustedAdvisorClient, ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
1146
+ const paginateListOrganizationRecommendations = core.createPaginator(TrustedAdvisorClient, ListOrganizationRecommendationsCommand, "nextToken", "nextToken", "maxResults");
1318
1147
 
1319
- // src/pagination/ListRecommendationsPaginator.ts
1148
+ const paginateListRecommendationResources = core.createPaginator(TrustedAdvisorClient, ListRecommendationResourcesCommand, "nextToken", "nextToken", "maxResults");
1320
1149
 
1321
- var paginateListRecommendations = (0, import_core.createPaginator)(TrustedAdvisorClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
1322
- // Annotate the CommonJS export names for ESM import in node:
1150
+ const paginateListRecommendations = core.createPaginator(TrustedAdvisorClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
1323
1151
 
1324
- 0 && (module.exports = {
1325
- TrustedAdvisorServiceException,
1326
- __Client,
1327
- TrustedAdvisorClient,
1328
- TrustedAdvisor,
1329
- $Command,
1330
- BatchUpdateRecommendationResourceExclusionCommand,
1331
- GetOrganizationRecommendationCommand,
1332
- GetRecommendationCommand,
1333
- ListChecksCommand,
1334
- ListOrganizationRecommendationAccountsCommand,
1335
- ListOrganizationRecommendationResourcesCommand,
1336
- ListOrganizationRecommendationsCommand,
1337
- ListRecommendationResourcesCommand,
1338
- ListRecommendationsCommand,
1339
- UpdateOrganizationRecommendationLifecycleCommand,
1340
- UpdateRecommendationLifecycleCommand,
1341
- paginateListChecks,
1342
- paginateListOrganizationRecommendationAccounts,
1343
- paginateListOrganizationRecommendationResources,
1344
- paginateListOrganizationRecommendations,
1345
- paginateListRecommendationResources,
1346
- paginateListRecommendations,
1347
- AccessDeniedException,
1348
- RecommendationLifecycleStage,
1349
- UpdateRecommendationLifecycleStageReasonCode,
1350
- ConflictException,
1351
- InternalServerException,
1352
- ThrottlingException,
1353
- ValidationException,
1354
- RecommendationPillar,
1355
- RecommendationSource,
1356
- ExclusionStatus,
1357
- RecommendationStatus,
1358
- RecommendationType,
1359
- ResourceNotFoundException,
1360
- RecommendationLanguage,
1361
- ResourceStatus,
1362
- UpdateRecommendationLifecycleStage,
1363
- AccountRecommendationLifecycleSummaryFilterSensitiveLog,
1364
- OrganizationRecommendationFilterSensitiveLog,
1365
- GetOrganizationRecommendationResponseFilterSensitiveLog,
1366
- RecommendationFilterSensitiveLog,
1367
- GetRecommendationResponseFilterSensitiveLog,
1368
- ListOrganizationRecommendationAccountsResponseFilterSensitiveLog,
1369
- UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog,
1370
- UpdateRecommendationLifecycleRequestFilterSensitiveLog
1152
+ Object.defineProperty(exports, "$Command", {
1153
+ enumerable: true,
1154
+ get: function () { return smithyClient.Command; }
1371
1155
  });
1372
-
1156
+ Object.defineProperty(exports, "__Client", {
1157
+ enumerable: true,
1158
+ get: function () { return smithyClient.Client; }
1159
+ });
1160
+ exports.AccessDeniedException = AccessDeniedException;
1161
+ exports.AccountRecommendationLifecycleSummaryFilterSensitiveLog = AccountRecommendationLifecycleSummaryFilterSensitiveLog;
1162
+ exports.BatchUpdateRecommendationResourceExclusionCommand = BatchUpdateRecommendationResourceExclusionCommand;
1163
+ exports.ConflictException = ConflictException;
1164
+ exports.ExclusionStatus = ExclusionStatus;
1165
+ exports.GetOrganizationRecommendationCommand = GetOrganizationRecommendationCommand;
1166
+ exports.GetOrganizationRecommendationResponseFilterSensitiveLog = GetOrganizationRecommendationResponseFilterSensitiveLog;
1167
+ exports.GetRecommendationCommand = GetRecommendationCommand;
1168
+ exports.GetRecommendationResponseFilterSensitiveLog = GetRecommendationResponseFilterSensitiveLog;
1169
+ exports.InternalServerException = InternalServerException;
1170
+ exports.ListChecksCommand = ListChecksCommand;
1171
+ exports.ListOrganizationRecommendationAccountsCommand = ListOrganizationRecommendationAccountsCommand;
1172
+ exports.ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = ListOrganizationRecommendationAccountsResponseFilterSensitiveLog;
1173
+ exports.ListOrganizationRecommendationResourcesCommand = ListOrganizationRecommendationResourcesCommand;
1174
+ exports.ListOrganizationRecommendationsCommand = ListOrganizationRecommendationsCommand;
1175
+ exports.ListRecommendationResourcesCommand = ListRecommendationResourcesCommand;
1176
+ exports.ListRecommendationsCommand = ListRecommendationsCommand;
1177
+ exports.OrganizationRecommendationFilterSensitiveLog = OrganizationRecommendationFilterSensitiveLog;
1178
+ exports.RecommendationFilterSensitiveLog = RecommendationFilterSensitiveLog;
1179
+ exports.RecommendationLanguage = RecommendationLanguage;
1180
+ exports.RecommendationLifecycleStage = RecommendationLifecycleStage;
1181
+ exports.RecommendationPillar = RecommendationPillar;
1182
+ exports.RecommendationSource = RecommendationSource;
1183
+ exports.RecommendationStatus = RecommendationStatus;
1184
+ exports.RecommendationType = RecommendationType;
1185
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1186
+ exports.ResourceStatus = ResourceStatus;
1187
+ exports.ThrottlingException = ThrottlingException;
1188
+ exports.TrustedAdvisor = TrustedAdvisor;
1189
+ exports.TrustedAdvisorClient = TrustedAdvisorClient;
1190
+ exports.TrustedAdvisorServiceException = TrustedAdvisorServiceException;
1191
+ exports.UpdateOrganizationRecommendationLifecycleCommand = UpdateOrganizationRecommendationLifecycleCommand;
1192
+ exports.UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog;
1193
+ exports.UpdateRecommendationLifecycleCommand = UpdateRecommendationLifecycleCommand;
1194
+ exports.UpdateRecommendationLifecycleRequestFilterSensitiveLog = UpdateRecommendationLifecycleRequestFilterSensitiveLog;
1195
+ exports.UpdateRecommendationLifecycleStage = UpdateRecommendationLifecycleStage;
1196
+ exports.UpdateRecommendationLifecycleStageReasonCode = UpdateRecommendationLifecycleStageReasonCode;
1197
+ exports.ValidationException = ValidationException;
1198
+ exports.paginateListChecks = paginateListChecks;
1199
+ exports.paginateListOrganizationRecommendationAccounts = paginateListOrganizationRecommendationAccounts;
1200
+ exports.paginateListOrganizationRecommendationResources = paginateListOrganizationRecommendationResources;
1201
+ exports.paginateListOrganizationRecommendations = paginateListOrganizationRecommendations;
1202
+ exports.paginateListRecommendationResources = paginateListRecommendationResources;
1203
+ exports.paginateListRecommendations = paginateListRecommendations;