@aws-sdk/client-trustedadvisor 3.1074.0 → 3.1076.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.
- package/dist-cjs/index.js +720 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -46
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/TrustedAdvisorServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -77
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -443
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultTrustedAdvisorHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "trustedadvisor",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultTrustedAdvisorHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,616 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const k = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [g]],
|
|
79
|
+
[c, j],
|
|
80
|
+
["aws.partition", j, d],
|
|
81
|
+
[e, [{ [k]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [k]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
|
|
85
|
+
],
|
|
86
|
+
results: [
|
|
87
|
+
[a],
|
|
88
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
89
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
90
|
+
[g, i],
|
|
91
|
+
["https://trustedadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
92
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
93
|
+
["https://trustedadvisor-fips.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
94
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
95
|
+
["https://trustedadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
|
|
96
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
97
|
+
["https://trustedadvisor.{Region}.{PartitionResult#dnsSuffix}", i],
|
|
98
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
99
|
+
]
|
|
100
|
+
};
|
|
101
|
+
const root = 2;
|
|
102
|
+
const r = 100_000_000;
|
|
103
|
+
const nodes = new Int32Array([
|
|
104
|
+
-1, 1, -1,
|
|
105
|
+
0, 12, 3,
|
|
106
|
+
1, 4, r + 11,
|
|
107
|
+
2, 5, r + 11,
|
|
108
|
+
3, 8, 6,
|
|
109
|
+
4, 7, r + 10,
|
|
110
|
+
5, r + 8, r + 9,
|
|
111
|
+
4, 10, 9,
|
|
112
|
+
6, r + 6, r + 7,
|
|
113
|
+
5, 11, r + 5,
|
|
114
|
+
6, r + 4, r + 5,
|
|
115
|
+
3, r + 1, 13,
|
|
116
|
+
4, r + 2, r + 3,
|
|
117
|
+
]);
|
|
118
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
119
|
+
|
|
120
|
+
const cache = new EndpointCache({
|
|
121
|
+
size: 50,
|
|
122
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
123
|
+
});
|
|
124
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
125
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
126
|
+
endpointParams: endpointParams,
|
|
127
|
+
logger: context.logger,
|
|
128
|
+
}));
|
|
129
|
+
};
|
|
130
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
131
|
+
|
|
132
|
+
class TrustedAdvisorServiceException extends ServiceException {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super(options);
|
|
135
|
+
Object.setPrototypeOf(this, TrustedAdvisorServiceException.prototype);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
class AccessDeniedException extends TrustedAdvisorServiceException {
|
|
140
|
+
name = "AccessDeniedException";
|
|
141
|
+
$fault = "client";
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "AccessDeniedException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class ConflictException extends TrustedAdvisorServiceException {
|
|
152
|
+
name = "ConflictException";
|
|
153
|
+
$fault = "client";
|
|
154
|
+
constructor(opts) {
|
|
155
|
+
super({
|
|
156
|
+
name: "ConflictException",
|
|
157
|
+
$fault: "client",
|
|
158
|
+
...opts,
|
|
159
|
+
});
|
|
160
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
class InternalServerException extends TrustedAdvisorServiceException {
|
|
164
|
+
name = "InternalServerException";
|
|
165
|
+
$fault = "server";
|
|
166
|
+
$retryable = {};
|
|
167
|
+
constructor(opts) {
|
|
168
|
+
super({
|
|
169
|
+
name: "InternalServerException",
|
|
170
|
+
$fault: "server",
|
|
171
|
+
...opts,
|
|
172
|
+
});
|
|
173
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
class ThrottlingException extends TrustedAdvisorServiceException {
|
|
177
|
+
name = "ThrottlingException";
|
|
178
|
+
$fault = "client";
|
|
179
|
+
$retryable = {
|
|
180
|
+
throttling: true,
|
|
181
|
+
};
|
|
182
|
+
constructor(opts) {
|
|
183
|
+
super({
|
|
184
|
+
name: "ThrottlingException",
|
|
185
|
+
$fault: "client",
|
|
186
|
+
...opts,
|
|
187
|
+
});
|
|
188
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
class ValidationException extends TrustedAdvisorServiceException {
|
|
192
|
+
name = "ValidationException";
|
|
193
|
+
$fault = "client";
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ValidationException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts,
|
|
199
|
+
});
|
|
200
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
class ResourceNotFoundException extends TrustedAdvisorServiceException {
|
|
204
|
+
name = "ResourceNotFoundException";
|
|
205
|
+
$fault = "client";
|
|
206
|
+
constructor(opts) {
|
|
207
|
+
super({
|
|
208
|
+
name: "ResourceNotFoundException",
|
|
209
|
+
$fault: "client",
|
|
210
|
+
...opts,
|
|
211
|
+
});
|
|
212
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
const _ADE = "AccessDeniedException";
|
|
217
|
+
const _ARLS = "AccountRecommendationLifecycleSummary";
|
|
218
|
+
const _ARLSL = "AccountRecommendationLifecycleSummaryList";
|
|
219
|
+
const _BURRE = "BatchUpdateRecommendationResourceExclusion";
|
|
220
|
+
const _BURRER = "BatchUpdateRecommendationResourceExclusionRequest";
|
|
221
|
+
const _BURRERa = "BatchUpdateRecommendationResourceExclusionResponse";
|
|
222
|
+
const _CE = "ConflictException";
|
|
223
|
+
const _CS = "CheckSummary";
|
|
224
|
+
const _CSL = "CheckSummaryList";
|
|
225
|
+
const _GOR = "GetOrganizationRecommendation";
|
|
226
|
+
const _GORR = "GetOrganizationRecommendationRequest";
|
|
227
|
+
const _GORRe = "GetOrganizationRecommendationResponse";
|
|
228
|
+
const _GR = "GetRecommendation";
|
|
229
|
+
const _GRR = "GetRecommendationRequest";
|
|
230
|
+
const _GRRe = "GetRecommendationResponse";
|
|
231
|
+
const _ISE = "InternalServerException";
|
|
232
|
+
const _LC = "ListChecks";
|
|
233
|
+
const _LCR = "ListChecksRequest";
|
|
234
|
+
const _LCRi = "ListChecksResponse";
|
|
235
|
+
const _LOR = "ListOrganizationRecommendations";
|
|
236
|
+
const _LORA = "ListOrganizationRecommendationAccounts";
|
|
237
|
+
const _LORAR = "ListOrganizationRecommendationAccountsRequest";
|
|
238
|
+
const _LORARi = "ListOrganizationRecommendationAccountsResponse";
|
|
239
|
+
const _LORR = "ListOrganizationRecommendationsRequest";
|
|
240
|
+
const _LORRR = "ListOrganizationRecommendationResourcesRequest";
|
|
241
|
+
const _LORRRi = "ListOrganizationRecommendationResourcesResponse";
|
|
242
|
+
const _LORRi = "ListOrganizationRecommendationsResponse";
|
|
243
|
+
const _LORRis = "ListOrganizationRecommendationResources";
|
|
244
|
+
const _LR = "ListRecommendations";
|
|
245
|
+
const _LRR = "ListRecommendationsRequest";
|
|
246
|
+
const _LRRR = "ListRecommendationResourcesRequest";
|
|
247
|
+
const _LRRRi = "ListRecommendationResourcesResponse";
|
|
248
|
+
const _LRRi = "ListRecommendationsResponse";
|
|
249
|
+
const _LRRis = "ListRecommendationResources";
|
|
250
|
+
const _OR = "OrganizationRecommendation";
|
|
251
|
+
const _ORRS = "OrganizationRecommendationResourceSummary";
|
|
252
|
+
const _ORRSL = "OrganizationRecommendationResourceSummaryList";
|
|
253
|
+
const _ORS = "OrganizationRecommendationSummary";
|
|
254
|
+
const _ORSL = "OrganizationRecommendationSummaryList";
|
|
255
|
+
const _R = "Recommendation";
|
|
256
|
+
const _RCOA = "RecommendationCostOptimizingAggregates";
|
|
257
|
+
const _RNFE = "ResourceNotFoundException";
|
|
258
|
+
const _RPSA = "RecommendationPillarSpecificAggregates";
|
|
259
|
+
const _RRA = "RecommendationResourcesAggregates";
|
|
260
|
+
const _RRE = "RecommendationResourceExclusion";
|
|
261
|
+
const _RREL = "RecommendationResourceExclusionList";
|
|
262
|
+
const _RRS = "RecommendationResourceSummary";
|
|
263
|
+
const _RRSL = "RecommendationResourceSummaryList";
|
|
264
|
+
const _RS = "RecommendationSummary";
|
|
265
|
+
const _RSL = "RecommendationSummaryList";
|
|
266
|
+
const _RUR = "RecommendationUpdateReason";
|
|
267
|
+
const _TE = "ThrottlingException";
|
|
268
|
+
const _UORL = "UpdateOrganizationRecommendationLifecycle";
|
|
269
|
+
const _UORLR = "UpdateOrganizationRecommendationLifecycleRequest";
|
|
270
|
+
const _URL = "UpdateRecommendationLifecycle";
|
|
271
|
+
const _URLR = "UpdateRecommendationLifecycleRequest";
|
|
272
|
+
const _URREE = "UpdateRecommendationResourceExclusionError";
|
|
273
|
+
const _URREEL = "UpdateRecommendationResourceExclusionErrorList";
|
|
274
|
+
const _VE = "ValidationException";
|
|
275
|
+
const _a = "arn";
|
|
276
|
+
const _aAI = "affectedAccountId";
|
|
277
|
+
const _aI = "accountId";
|
|
278
|
+
const _aLUA = "afterLastUpdatedAt";
|
|
279
|
+
const _aRA = "accountRecommendationArn";
|
|
280
|
+
const _aRI = "awsResourceId";
|
|
281
|
+
const _aRLS = "accountRecommendationLifecycleSummaries";
|
|
282
|
+
const _aS = "awsServices";
|
|
283
|
+
const _aSw = "awsService";
|
|
284
|
+
const _bLUA = "beforeLastUpdatedAt";
|
|
285
|
+
const _bURREE = "batchUpdateRecommendationResourceExclusionErrors";
|
|
286
|
+
const _c = "client";
|
|
287
|
+
const _cA = "checkArn";
|
|
288
|
+
const _cAr = "createdAt";
|
|
289
|
+
const _cB = "createdBy";
|
|
290
|
+
const _cI = "checkIdentifier";
|
|
291
|
+
const _cO = "costOptimizing";
|
|
292
|
+
const _cS = "checkSummaries";
|
|
293
|
+
const _d = "description";
|
|
294
|
+
const _e = "error";
|
|
295
|
+
const _eC = "errorCount";
|
|
296
|
+
const _eCr = "errorCode";
|
|
297
|
+
const _eCx = "excludedCount";
|
|
298
|
+
const _eM = "errorMessage";
|
|
299
|
+
const _eMS = "estimatedMonthlySavings";
|
|
300
|
+
const _ePMS = "estimatedPercentMonthlySavings";
|
|
301
|
+
const _eS = "exclusionStatus";
|
|
302
|
+
const _h = "http";
|
|
303
|
+
const _hE = "httpError";
|
|
304
|
+
const _hQ = "httpQuery";
|
|
305
|
+
const _i = "id";
|
|
306
|
+
const _iE = "isExcluded";
|
|
307
|
+
const _l = "language";
|
|
308
|
+
const _lS = "lifecycleStage";
|
|
309
|
+
const _lUA = "lastUpdatedAt";
|
|
310
|
+
const _m = "message";
|
|
311
|
+
const _mR = "maxResults";
|
|
312
|
+
const _me = "metadata";
|
|
313
|
+
const _n = "name";
|
|
314
|
+
const _nT = "nextToken";
|
|
315
|
+
const _oC = "okCount";
|
|
316
|
+
const _oR = "organizationRecommendation";
|
|
317
|
+
const _oRI = "organizationRecommendationIdentifier";
|
|
318
|
+
const _oRRS = "organizationRecommendationResourceSummaries";
|
|
319
|
+
const _oRS = "organizationRecommendationSummaries";
|
|
320
|
+
const _p = "pillars";
|
|
321
|
+
const _pSA = "pillarSpecificAggregates";
|
|
322
|
+
const _pi = "pillar";
|
|
323
|
+
const _r = "recommendation";
|
|
324
|
+
const _rA = "resourcesAggregates";
|
|
325
|
+
const _rAe = "resolvedAt";
|
|
326
|
+
const _rAec = "recommendationArn";
|
|
327
|
+
const _rC = "regionCode";
|
|
328
|
+
const _rI = "recommendationIdentifier";
|
|
329
|
+
const _rRE = "recommendationResourceExclusions";
|
|
330
|
+
const _rRS = "recommendationResourceSummaries";
|
|
331
|
+
const _rS = "recommendationSummaries";
|
|
332
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.trustedadvisor";
|
|
333
|
+
const _sR = "statusReason";
|
|
334
|
+
const _se = "server";
|
|
335
|
+
const _so = "source";
|
|
336
|
+
const _st = "status";
|
|
337
|
+
const _t = "type";
|
|
338
|
+
const _uOBO = "updatedOnBehalfOf";
|
|
339
|
+
const _uOBOJT = "updatedOnBehalfOfJobTitle";
|
|
340
|
+
const _uR = "updateReason";
|
|
341
|
+
const _uRC = "updateReasonCode";
|
|
342
|
+
const _wC = "warningCount";
|
|
343
|
+
const n0 = "com.amazonaws.trustedadvisor";
|
|
344
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
345
|
+
var TrustedAdvisorServiceException$ = [-3, _s, "TrustedAdvisorServiceException", 0, [], []];
|
|
346
|
+
_s_registry.registerError(TrustedAdvisorServiceException$, TrustedAdvisorServiceException);
|
|
347
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
348
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
349
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
350
|
+
[_m],
|
|
351
|
+
[0], 1
|
|
352
|
+
];
|
|
353
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
354
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
355
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
356
|
+
[_m],
|
|
357
|
+
[0], 1
|
|
358
|
+
];
|
|
359
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
360
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
361
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
362
|
+
[_m],
|
|
363
|
+
[0], 1
|
|
364
|
+
];
|
|
365
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
366
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
367
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
368
|
+
[_m],
|
|
369
|
+
[0], 1
|
|
370
|
+
];
|
|
371
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
372
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
373
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
374
|
+
[_m],
|
|
375
|
+
[0], 1
|
|
376
|
+
];
|
|
377
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
378
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
379
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
380
|
+
[_m],
|
|
381
|
+
[0], 1
|
|
382
|
+
];
|
|
383
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
384
|
+
const errorTypeRegistries = [
|
|
385
|
+
_s_registry,
|
|
386
|
+
n0_registry,
|
|
387
|
+
];
|
|
388
|
+
var RecommendationUpdateReason = [0, n0, _RUR, 8, 0];
|
|
389
|
+
var AccountRecommendationLifecycleSummary$ = [3, n0, _ARLS,
|
|
390
|
+
0,
|
|
391
|
+
[_aI, _aRA, _lS, _uOBO, _uOBOJT, _uR, _uRC, _lUA],
|
|
392
|
+
[0, 0, 0, 0, 0, [() => RecommendationUpdateReason, 0], 0, 5]
|
|
393
|
+
];
|
|
394
|
+
var BatchUpdateRecommendationResourceExclusionRequest$ = [3, n0, _BURRER,
|
|
395
|
+
0,
|
|
396
|
+
[_rRE],
|
|
397
|
+
[() => RecommendationResourceExclusionList], 1
|
|
398
|
+
];
|
|
399
|
+
var BatchUpdateRecommendationResourceExclusionResponse$ = [3, n0, _BURRERa,
|
|
400
|
+
0,
|
|
401
|
+
[_bURREE],
|
|
402
|
+
[() => UpdateRecommendationResourceExclusionErrorList], 1
|
|
403
|
+
];
|
|
404
|
+
var CheckSummary$ = [3, n0, _CS,
|
|
405
|
+
0,
|
|
406
|
+
[_i, _a, _n, _d, _p, _aS, _so, _me],
|
|
407
|
+
[0, 0, 0, 0, 64 | 0, 64 | 0, 0, 128 | 0], 8
|
|
408
|
+
];
|
|
409
|
+
var GetOrganizationRecommendationRequest$ = [3, n0, _GORR,
|
|
410
|
+
0,
|
|
411
|
+
[_oRI],
|
|
412
|
+
[[0, 1]], 1
|
|
413
|
+
];
|
|
414
|
+
var GetOrganizationRecommendationResponse$ = [3, n0, _GORRe,
|
|
415
|
+
0,
|
|
416
|
+
[_oR],
|
|
417
|
+
[[() => OrganizationRecommendation$, 0]]
|
|
418
|
+
];
|
|
419
|
+
var GetRecommendationRequest$ = [3, n0, _GRR,
|
|
420
|
+
0,
|
|
421
|
+
[_rI, _l],
|
|
422
|
+
[[0, 1], [0, { [_hQ]: _l }]], 1
|
|
423
|
+
];
|
|
424
|
+
var GetRecommendationResponse$ = [3, n0, _GRRe,
|
|
425
|
+
0,
|
|
426
|
+
[_r],
|
|
427
|
+
[[() => Recommendation$, 0]]
|
|
428
|
+
];
|
|
429
|
+
var ListChecksRequest$ = [3, n0, _LCR,
|
|
430
|
+
0,
|
|
431
|
+
[_nT, _mR, _pi, _aSw, _so, _l],
|
|
432
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _aSw }], [0, { [_hQ]: _so }], [0, { [_hQ]: _l }]]
|
|
433
|
+
];
|
|
434
|
+
var ListChecksResponse$ = [3, n0, _LCRi,
|
|
435
|
+
0,
|
|
436
|
+
[_cS, _nT],
|
|
437
|
+
[() => CheckSummaryList, 0], 1
|
|
438
|
+
];
|
|
439
|
+
var ListOrganizationRecommendationAccountsRequest$ = [3, n0, _LORAR,
|
|
440
|
+
0,
|
|
441
|
+
[_oRI, _nT, _mR, _aAI],
|
|
442
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _aAI }]], 1
|
|
443
|
+
];
|
|
444
|
+
var ListOrganizationRecommendationAccountsResponse$ = [3, n0, _LORARi,
|
|
445
|
+
0,
|
|
446
|
+
[_aRLS, _nT],
|
|
447
|
+
[[() => AccountRecommendationLifecycleSummaryList, 0], 0], 1
|
|
448
|
+
];
|
|
449
|
+
var ListOrganizationRecommendationResourcesRequest$ = [3, n0, _LORRR,
|
|
450
|
+
0,
|
|
451
|
+
[_oRI, _nT, _mR, _st, _eS, _rC, _aAI],
|
|
452
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }], [0, { [_hQ]: _eS }], [0, { [_hQ]: _rC }], [0, { [_hQ]: _aAI }]], 1
|
|
453
|
+
];
|
|
454
|
+
var ListOrganizationRecommendationResourcesResponse$ = [3, n0, _LORRRi,
|
|
455
|
+
0,
|
|
456
|
+
[_oRRS, _nT],
|
|
457
|
+
[() => OrganizationRecommendationResourceSummaryList, 0], 1
|
|
458
|
+
];
|
|
459
|
+
var ListOrganizationRecommendationsRequest$ = [3, n0, _LORR,
|
|
460
|
+
0,
|
|
461
|
+
[_nT, _mR, _t, _st, _pi, _aSw, _so, _cI, _aLUA, _bLUA],
|
|
462
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _t }], [0, { [_hQ]: _st }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _aSw }], [0, { [_hQ]: _so }], [0, { [_hQ]: _cI }], [4, { [_hQ]: _aLUA }], [4, { [_hQ]: _bLUA }]]
|
|
463
|
+
];
|
|
464
|
+
var ListOrganizationRecommendationsResponse$ = [3, n0, _LORRi,
|
|
465
|
+
0,
|
|
466
|
+
[_oRS, _nT],
|
|
467
|
+
[() => OrganizationRecommendationSummaryList, 0], 1
|
|
468
|
+
];
|
|
469
|
+
var ListRecommendationResourcesRequest$ = [3, n0, _LRRR,
|
|
470
|
+
0,
|
|
471
|
+
[_rI, _nT, _mR, _st, _eS, _rC, _l],
|
|
472
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _st }], [0, { [_hQ]: _eS }], [0, { [_hQ]: _rC }], [0, { [_hQ]: _l }]], 1
|
|
473
|
+
];
|
|
474
|
+
var ListRecommendationResourcesResponse$ = [3, n0, _LRRRi,
|
|
475
|
+
0,
|
|
476
|
+
[_rRS, _nT],
|
|
477
|
+
[() => RecommendationResourceSummaryList, 0], 1
|
|
478
|
+
];
|
|
479
|
+
var ListRecommendationsRequest$ = [3, n0, _LRR,
|
|
480
|
+
0,
|
|
481
|
+
[_nT, _mR, _t, _st, _pi, _aSw, _so, _cI, _aLUA, _bLUA, _l],
|
|
482
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }], [0, { [_hQ]: _t }], [0, { [_hQ]: _st }], [0, { [_hQ]: _pi }], [0, { [_hQ]: _aSw }], [0, { [_hQ]: _so }], [0, { [_hQ]: _cI }], [4, { [_hQ]: _aLUA }], [4, { [_hQ]: _bLUA }], [0, { [_hQ]: _l }]]
|
|
483
|
+
];
|
|
484
|
+
var ListRecommendationsResponse$ = [3, n0, _LRRi,
|
|
485
|
+
0,
|
|
486
|
+
[_rS, _nT],
|
|
487
|
+
[() => RecommendationSummaryList, 0], 1
|
|
488
|
+
];
|
|
489
|
+
var OrganizationRecommendation$ = [3, n0, _OR,
|
|
490
|
+
0,
|
|
491
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _d, _cA, _lS, _aS, _pSA, _cAr, _lUA, _cB, _uOBO, _uOBOJT, _uR, _uRC, _rAe],
|
|
492
|
+
[0, 0, 0, 64 | 0, 0, 0, () => RecommendationResourcesAggregates$, 0, 0, 0, 0, 64 | 0, () => RecommendationPillarSpecificAggregates$, 5, 5, 0, 0, 0, [() => RecommendationUpdateReason, 0], 0, 5], 9
|
|
493
|
+
];
|
|
494
|
+
var OrganizationRecommendationResourceSummary$ = [3, n0, _ORRS,
|
|
495
|
+
0,
|
|
496
|
+
[_i, _a, _aRI, _rC, _st, _me, _lUA, _rAec, _eS, _aI],
|
|
497
|
+
[0, 0, 0, 0, 0, 128 | 0, 5, 0, 0, 0], 8
|
|
498
|
+
];
|
|
499
|
+
var OrganizationRecommendationSummary$ = [3, n0, _ORS,
|
|
500
|
+
0,
|
|
501
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _cA, _lS, _aS, _pSA, _cAr, _lUA],
|
|
502
|
+
[0, 0, 0, 64 | 0, 0, 0, () => RecommendationResourcesAggregates$, 0, 0, 0, 64 | 0, () => RecommendationPillarSpecificAggregates$, 5, 5], 8
|
|
503
|
+
];
|
|
504
|
+
var Recommendation$ = [3, n0, _R,
|
|
505
|
+
0,
|
|
506
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _d, _cA, _lS, _aS, _pSA, _cAr, _lUA, _sR, _cB, _uOBO, _uOBOJT, _uR, _uRC, _rAe],
|
|
507
|
+
[0, 0, 0, 64 | 0, 0, 0, () => RecommendationResourcesAggregates$, 0, 0, 0, 0, 64 | 0, () => RecommendationPillarSpecificAggregates$, 5, 5, 0, 0, 0, 0, [() => RecommendationUpdateReason, 0], 0, 5], 9
|
|
508
|
+
];
|
|
509
|
+
var RecommendationCostOptimizingAggregates$ = [3, n0, _RCOA,
|
|
510
|
+
0,
|
|
511
|
+
[_eMS, _ePMS],
|
|
512
|
+
[1, 1], 2
|
|
513
|
+
];
|
|
514
|
+
var RecommendationPillarSpecificAggregates$ = [3, n0, _RPSA,
|
|
515
|
+
0,
|
|
516
|
+
[_cO],
|
|
517
|
+
[() => RecommendationCostOptimizingAggregates$]
|
|
518
|
+
];
|
|
519
|
+
var RecommendationResourceExclusion$ = [3, n0, _RRE,
|
|
520
|
+
0,
|
|
521
|
+
[_a, _iE],
|
|
522
|
+
[0, 2], 2
|
|
523
|
+
];
|
|
524
|
+
var RecommendationResourcesAggregates$ = [3, n0, _RRA,
|
|
525
|
+
0,
|
|
526
|
+
[_oC, _wC, _eC, _eCx],
|
|
527
|
+
[1, 1, 1, 1], 3
|
|
528
|
+
];
|
|
529
|
+
var RecommendationResourceSummary$ = [3, n0, _RRS,
|
|
530
|
+
0,
|
|
531
|
+
[_i, _a, _aRI, _rC, _st, _me, _lUA, _rAec, _eS],
|
|
532
|
+
[0, 0, 0, 0, 0, 128 | 0, 5, 0, 0], 8
|
|
533
|
+
];
|
|
534
|
+
var RecommendationSummary$ = [3, n0, _RS,
|
|
535
|
+
0,
|
|
536
|
+
[_i, _t, _st, _p, _so, _n, _rA, _a, _cA, _lS, _aS, _pSA, _cAr, _lUA, _sR],
|
|
537
|
+
[0, 0, 0, 64 | 0, 0, 0, () => RecommendationResourcesAggregates$, 0, 0, 0, 64 | 0, () => RecommendationPillarSpecificAggregates$, 5, 5, 0], 8
|
|
538
|
+
];
|
|
539
|
+
var UpdateOrganizationRecommendationLifecycleRequest$ = [3, n0, _UORLR,
|
|
540
|
+
0,
|
|
541
|
+
[_lS, _oRI, _uR, _uRC],
|
|
542
|
+
[0, [0, 1], [() => RecommendationUpdateReason, 0], 0], 2
|
|
543
|
+
];
|
|
544
|
+
var UpdateRecommendationLifecycleRequest$ = [3, n0, _URLR,
|
|
545
|
+
0,
|
|
546
|
+
[_lS, _rI, _uR, _uRC],
|
|
547
|
+
[0, [0, 1], [() => RecommendationUpdateReason, 0], 0], 2
|
|
548
|
+
];
|
|
549
|
+
var UpdateRecommendationResourceExclusionError$ = [3, n0, _URREE,
|
|
550
|
+
0,
|
|
551
|
+
[_a, _eCr, _eM],
|
|
552
|
+
[0, 0, 0]
|
|
553
|
+
];
|
|
554
|
+
var __Unit = "unit";
|
|
555
|
+
var AccountRecommendationLifecycleSummaryList = [1, n0, _ARLSL,
|
|
556
|
+
0, [() => AccountRecommendationLifecycleSummary$,
|
|
557
|
+
0]
|
|
558
|
+
];
|
|
559
|
+
var CheckSummaryList = [1, n0, _CSL,
|
|
560
|
+
0, () => CheckSummary$
|
|
561
|
+
];
|
|
562
|
+
var OrganizationRecommendationResourceSummaryList = [1, n0, _ORRSL,
|
|
563
|
+
0, () => OrganizationRecommendationResourceSummary$
|
|
564
|
+
];
|
|
565
|
+
var OrganizationRecommendationSummaryList = [1, n0, _ORSL,
|
|
566
|
+
0, () => OrganizationRecommendationSummary$
|
|
567
|
+
];
|
|
568
|
+
var RecommendationResourceExclusionList = [1, n0, _RREL,
|
|
569
|
+
0, () => RecommendationResourceExclusion$
|
|
570
|
+
];
|
|
571
|
+
var RecommendationResourceSummaryList = [1, n0, _RRSL,
|
|
572
|
+
0, () => RecommendationResourceSummary$
|
|
573
|
+
];
|
|
574
|
+
var RecommendationSummaryList = [1, n0, _RSL,
|
|
575
|
+
0, () => RecommendationSummary$
|
|
576
|
+
];
|
|
577
|
+
var UpdateRecommendationResourceExclusionErrorList = [1, n0, _URREEL,
|
|
578
|
+
0, () => UpdateRecommendationResourceExclusionError$
|
|
579
|
+
];
|
|
580
|
+
var BatchUpdateRecommendationResourceExclusion$ = [9, n0, _BURRE,
|
|
581
|
+
{ [_h]: ["PUT", "/v1/batch-update-recommendation-resource-exclusion", 200] }, () => BatchUpdateRecommendationResourceExclusionRequest$, () => BatchUpdateRecommendationResourceExclusionResponse$
|
|
582
|
+
];
|
|
583
|
+
var GetOrganizationRecommendation$ = [9, n0, _GOR,
|
|
584
|
+
{ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}", 200] }, () => GetOrganizationRecommendationRequest$, () => GetOrganizationRecommendationResponse$
|
|
585
|
+
];
|
|
586
|
+
var GetRecommendation$ = [9, n0, _GR,
|
|
587
|
+
{ [_h]: ["GET", "/v1/recommendations/{recommendationIdentifier}", 200] }, () => GetRecommendationRequest$, () => GetRecommendationResponse$
|
|
588
|
+
];
|
|
589
|
+
var ListChecks$ = [9, n0, _LC,
|
|
590
|
+
{ [_h]: ["GET", "/v1/checks", 200] }, () => ListChecksRequest$, () => ListChecksResponse$
|
|
591
|
+
];
|
|
592
|
+
var ListOrganizationRecommendationAccounts$ = [9, n0, _LORA,
|
|
593
|
+
{ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/accounts", 200] }, () => ListOrganizationRecommendationAccountsRequest$, () => ListOrganizationRecommendationAccountsResponse$
|
|
594
|
+
];
|
|
595
|
+
var ListOrganizationRecommendationResources$ = [9, n0, _LORRis,
|
|
596
|
+
{ [_h]: ["GET", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/resources", 200] }, () => ListOrganizationRecommendationResourcesRequest$, () => ListOrganizationRecommendationResourcesResponse$
|
|
597
|
+
];
|
|
598
|
+
var ListOrganizationRecommendations$ = [9, n0, _LOR,
|
|
599
|
+
{ [_h]: ["GET", "/v1/organization-recommendations", 200] }, () => ListOrganizationRecommendationsRequest$, () => ListOrganizationRecommendationsResponse$
|
|
600
|
+
];
|
|
601
|
+
var ListRecommendationResources$ = [9, n0, _LRRis,
|
|
602
|
+
{ [_h]: ["GET", "/v1/recommendations/{recommendationIdentifier}/resources", 200] }, () => ListRecommendationResourcesRequest$, () => ListRecommendationResourcesResponse$
|
|
603
|
+
];
|
|
604
|
+
var ListRecommendations$ = [9, n0, _LR,
|
|
605
|
+
{ [_h]: ["GET", "/v1/recommendations", 200] }, () => ListRecommendationsRequest$, () => ListRecommendationsResponse$
|
|
606
|
+
];
|
|
607
|
+
var UpdateOrganizationRecommendationLifecycle$ = [9, n0, _UORL,
|
|
608
|
+
{ [_h]: ["PUT", "/v1/organization-recommendations/{organizationRecommendationIdentifier}/lifecycle", 200] }, () => UpdateOrganizationRecommendationLifecycleRequest$, () => __Unit
|
|
609
|
+
];
|
|
610
|
+
var UpdateRecommendationLifecycle$ = [9, n0, _URL,
|
|
611
|
+
{ [_h]: ["PUT", "/v1/recommendations/{recommendationIdentifier}/lifecycle", 200] }, () => UpdateRecommendationLifecycleRequest$, () => __Unit
|
|
612
|
+
];
|
|
613
|
+
|
|
614
|
+
const getRuntimeConfig$1 = (config) => {
|
|
615
|
+
return {
|
|
616
|
+
apiVersion: "2022-09-15",
|
|
617
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
618
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
619
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
620
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
621
|
+
extensions: config?.extensions ?? [],
|
|
622
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultTrustedAdvisorHttpAuthSchemeProvider,
|
|
623
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
624
|
+
{
|
|
625
|
+
schemeId: "aws.auth#sigv4",
|
|
626
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
627
|
+
signer: new AwsSdkSigV4Signer(),
|
|
628
|
+
},
|
|
629
|
+
],
|
|
630
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
631
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
632
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
633
|
+
defaultNamespace: "com.amazonaws.trustedadvisor",
|
|
634
|
+
errorTypeRegistries,
|
|
635
|
+
version: "2022-09-15",
|
|
636
|
+
serviceTarget: "TrustedAdvisor",
|
|
637
|
+
},
|
|
638
|
+
serviceId: config?.serviceId ?? "TrustedAdvisor",
|
|
639
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
640
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
641
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
642
|
+
};
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
const getRuntimeConfig = (config) => {
|
|
646
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
647
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
648
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
649
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
650
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
651
|
+
const loaderConfig = {
|
|
652
|
+
profile: config?.profile,
|
|
653
|
+
logger: clientSharedValues.logger,
|
|
654
|
+
};
|
|
655
|
+
return {
|
|
656
|
+
...clientSharedValues,
|
|
657
|
+
...config,
|
|
658
|
+
runtime: "node",
|
|
659
|
+
defaultsMode,
|
|
660
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
661
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
662
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
663
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
664
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
665
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
666
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
667
|
+
retryMode: config?.retryMode ??
|
|
668
|
+
loadConfig({
|
|
669
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
670
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
671
|
+
}, config),
|
|
672
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
673
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
674
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
675
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
676
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
|
|
34
680
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
681
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
682
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -360,30 +1006,89 @@ const UpdateRecommendationLifecycleStage = {
|
|
|
360
1006
|
RESOLVED: "resolved",
|
|
361
1007
|
};
|
|
362
1008
|
|
|
1009
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1010
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
1011
|
+
exports.AccountRecommendationLifecycleSummary$ = AccountRecommendationLifecycleSummary$;
|
|
1012
|
+
exports.BatchUpdateRecommendationResourceExclusion$ = BatchUpdateRecommendationResourceExclusion$;
|
|
363
1013
|
exports.BatchUpdateRecommendationResourceExclusionCommand = BatchUpdateRecommendationResourceExclusionCommand;
|
|
1014
|
+
exports.BatchUpdateRecommendationResourceExclusionRequest$ = BatchUpdateRecommendationResourceExclusionRequest$;
|
|
1015
|
+
exports.BatchUpdateRecommendationResourceExclusionResponse$ = BatchUpdateRecommendationResourceExclusionResponse$;
|
|
1016
|
+
exports.CheckSummary$ = CheckSummary$;
|
|
1017
|
+
exports.ConflictException = ConflictException;
|
|
1018
|
+
exports.ConflictException$ = ConflictException$;
|
|
364
1019
|
exports.ExclusionStatus = ExclusionStatus;
|
|
1020
|
+
exports.GetOrganizationRecommendation$ = GetOrganizationRecommendation$;
|
|
365
1021
|
exports.GetOrganizationRecommendationCommand = GetOrganizationRecommendationCommand;
|
|
1022
|
+
exports.GetOrganizationRecommendationRequest$ = GetOrganizationRecommendationRequest$;
|
|
1023
|
+
exports.GetOrganizationRecommendationResponse$ = GetOrganizationRecommendationResponse$;
|
|
1024
|
+
exports.GetRecommendation$ = GetRecommendation$;
|
|
366
1025
|
exports.GetRecommendationCommand = GetRecommendationCommand;
|
|
1026
|
+
exports.GetRecommendationRequest$ = GetRecommendationRequest$;
|
|
1027
|
+
exports.GetRecommendationResponse$ = GetRecommendationResponse$;
|
|
1028
|
+
exports.InternalServerException = InternalServerException;
|
|
1029
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
1030
|
+
exports.ListChecks$ = ListChecks$;
|
|
367
1031
|
exports.ListChecksCommand = ListChecksCommand;
|
|
1032
|
+
exports.ListChecksRequest$ = ListChecksRequest$;
|
|
1033
|
+
exports.ListChecksResponse$ = ListChecksResponse$;
|
|
1034
|
+
exports.ListOrganizationRecommendationAccounts$ = ListOrganizationRecommendationAccounts$;
|
|
368
1035
|
exports.ListOrganizationRecommendationAccountsCommand = ListOrganizationRecommendationAccountsCommand;
|
|
1036
|
+
exports.ListOrganizationRecommendationAccountsRequest$ = ListOrganizationRecommendationAccountsRequest$;
|
|
1037
|
+
exports.ListOrganizationRecommendationAccountsResponse$ = ListOrganizationRecommendationAccountsResponse$;
|
|
1038
|
+
exports.ListOrganizationRecommendationResources$ = ListOrganizationRecommendationResources$;
|
|
369
1039
|
exports.ListOrganizationRecommendationResourcesCommand = ListOrganizationRecommendationResourcesCommand;
|
|
1040
|
+
exports.ListOrganizationRecommendationResourcesRequest$ = ListOrganizationRecommendationResourcesRequest$;
|
|
1041
|
+
exports.ListOrganizationRecommendationResourcesResponse$ = ListOrganizationRecommendationResourcesResponse$;
|
|
1042
|
+
exports.ListOrganizationRecommendations$ = ListOrganizationRecommendations$;
|
|
370
1043
|
exports.ListOrganizationRecommendationsCommand = ListOrganizationRecommendationsCommand;
|
|
1044
|
+
exports.ListOrganizationRecommendationsRequest$ = ListOrganizationRecommendationsRequest$;
|
|
1045
|
+
exports.ListOrganizationRecommendationsResponse$ = ListOrganizationRecommendationsResponse$;
|
|
1046
|
+
exports.ListRecommendationResources$ = ListRecommendationResources$;
|
|
371
1047
|
exports.ListRecommendationResourcesCommand = ListRecommendationResourcesCommand;
|
|
1048
|
+
exports.ListRecommendationResourcesRequest$ = ListRecommendationResourcesRequest$;
|
|
1049
|
+
exports.ListRecommendationResourcesResponse$ = ListRecommendationResourcesResponse$;
|
|
1050
|
+
exports.ListRecommendations$ = ListRecommendations$;
|
|
372
1051
|
exports.ListRecommendationsCommand = ListRecommendationsCommand;
|
|
1052
|
+
exports.ListRecommendationsRequest$ = ListRecommendationsRequest$;
|
|
1053
|
+
exports.ListRecommendationsResponse$ = ListRecommendationsResponse$;
|
|
1054
|
+
exports.OrganizationRecommendation$ = OrganizationRecommendation$;
|
|
1055
|
+
exports.OrganizationRecommendationResourceSummary$ = OrganizationRecommendationResourceSummary$;
|
|
1056
|
+
exports.OrganizationRecommendationSummary$ = OrganizationRecommendationSummary$;
|
|
1057
|
+
exports.Recommendation$ = Recommendation$;
|
|
1058
|
+
exports.RecommendationCostOptimizingAggregates$ = RecommendationCostOptimizingAggregates$;
|
|
373
1059
|
exports.RecommendationLanguage = RecommendationLanguage;
|
|
374
1060
|
exports.RecommendationLifecycleStage = RecommendationLifecycleStage;
|
|
375
1061
|
exports.RecommendationPillar = RecommendationPillar;
|
|
1062
|
+
exports.RecommendationPillarSpecificAggregates$ = RecommendationPillarSpecificAggregates$;
|
|
1063
|
+
exports.RecommendationResourceExclusion$ = RecommendationResourceExclusion$;
|
|
1064
|
+
exports.RecommendationResourceSummary$ = RecommendationResourceSummary$;
|
|
1065
|
+
exports.RecommendationResourcesAggregates$ = RecommendationResourcesAggregates$;
|
|
376
1066
|
exports.RecommendationSource = RecommendationSource;
|
|
377
1067
|
exports.RecommendationStatus = RecommendationStatus;
|
|
1068
|
+
exports.RecommendationSummary$ = RecommendationSummary$;
|
|
378
1069
|
exports.RecommendationType = RecommendationType;
|
|
1070
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1071
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
379
1072
|
exports.ResourceStatus = ResourceStatus;
|
|
380
1073
|
exports.StatusReason = StatusReason;
|
|
1074
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1075
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
381
1076
|
exports.TrustedAdvisor = TrustedAdvisor;
|
|
382
1077
|
exports.TrustedAdvisorClient = TrustedAdvisorClient;
|
|
1078
|
+
exports.TrustedAdvisorServiceException = TrustedAdvisorServiceException;
|
|
1079
|
+
exports.TrustedAdvisorServiceException$ = TrustedAdvisorServiceException$;
|
|
1080
|
+
exports.UpdateOrganizationRecommendationLifecycle$ = UpdateOrganizationRecommendationLifecycle$;
|
|
383
1081
|
exports.UpdateOrganizationRecommendationLifecycleCommand = UpdateOrganizationRecommendationLifecycleCommand;
|
|
1082
|
+
exports.UpdateOrganizationRecommendationLifecycleRequest$ = UpdateOrganizationRecommendationLifecycleRequest$;
|
|
1083
|
+
exports.UpdateRecommendationLifecycle$ = UpdateRecommendationLifecycle$;
|
|
384
1084
|
exports.UpdateRecommendationLifecycleCommand = UpdateRecommendationLifecycleCommand;
|
|
1085
|
+
exports.UpdateRecommendationLifecycleRequest$ = UpdateRecommendationLifecycleRequest$;
|
|
385
1086
|
exports.UpdateRecommendationLifecycleStage = UpdateRecommendationLifecycleStage;
|
|
386
1087
|
exports.UpdateRecommendationLifecycleStageReasonCode = UpdateRecommendationLifecycleStageReasonCode;
|
|
1088
|
+
exports.UpdateRecommendationResourceExclusionError$ = UpdateRecommendationResourceExclusionError$;
|
|
1089
|
+
exports.ValidationException = ValidationException;
|
|
1090
|
+
exports.ValidationException$ = ValidationException$;
|
|
1091
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
387
1092
|
exports.paginateListChecks = paginateListChecks;
|
|
388
1093
|
exports.paginateListOrganizationRecommendationAccounts = paginateListOrganizationRecommendationAccounts;
|
|
389
1094
|
exports.paginateListOrganizationRecommendationResources = paginateListOrganizationRecommendationResources;
|