@aws-sdk/client-trustedadvisor 3.454.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/LICENSE +201 -0
- package/README.md +285 -0
- package/dist-cjs/TrustedAdvisor.js +31 -0
- package/dist-cjs/TrustedAdvisorClient.js +43 -0
- package/dist-cjs/commands/GetOrganizationRecommendationCommand.js +52 -0
- package/dist-cjs/commands/GetRecommendationCommand.js +52 -0
- package/dist-cjs/commands/ListChecksCommand.js +51 -0
- package/dist-cjs/commands/ListOrganizationRecommendationAccountsCommand.js +52 -0
- package/dist-cjs/commands/ListOrganizationRecommendationResourcesCommand.js +51 -0
- package/dist-cjs/commands/ListOrganizationRecommendationsCommand.js +51 -0
- package/dist-cjs/commands/ListRecommendationResourcesCommand.js +51 -0
- package/dist-cjs/commands/ListRecommendationsCommand.js +51 -0
- package/dist-cjs/commands/UpdateOrganizationRecommendationLifecycleCommand.js +52 -0
- package/dist-cjs/commands/UpdateRecommendationLifecycleCommand.js +52 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/TrustedAdvisorServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +202 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListChecksPaginator.js +29 -0
- package/dist-cjs/pagination/ListOrganizationRecommendationAccountsPaginator.js +29 -0
- package/dist-cjs/pagination/ListOrganizationRecommendationResourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListOrganizationRecommendationsPaginator.js +29 -0
- package/dist-cjs/pagination/ListRecommendationResourcesPaginator.js +29 -0
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +10 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1023 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/TrustedAdvisor.js +27 -0
- package/dist-es/TrustedAdvisorClient.js +39 -0
- package/dist-es/commands/GetOrganizationRecommendationCommand.js +48 -0
- package/dist-es/commands/GetRecommendationCommand.js +48 -0
- package/dist-es/commands/ListChecksCommand.js +47 -0
- package/dist-es/commands/ListOrganizationRecommendationAccountsCommand.js +48 -0
- package/dist-es/commands/ListOrganizationRecommendationResourcesCommand.js +47 -0
- package/dist-es/commands/ListOrganizationRecommendationsCommand.js +47 -0
- package/dist-es/commands/ListRecommendationResourcesCommand.js +47 -0
- package/dist-es/commands/ListRecommendationsCommand.js +47 -0
- package/dist-es/commands/UpdateOrganizationRecommendationLifecycleCommand.js +48 -0
- package/dist-es/commands/UpdateRecommendationLifecycleCommand.js +48 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/TrustedAdvisorServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +185 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListChecksPaginator.js +25 -0
- package/dist-es/pagination/ListOrganizationRecommendationAccountsPaginator.js +25 -0
- package/dist-es/pagination/ListOrganizationRecommendationResourcesPaginator.js +25 -0
- package/dist-es/pagination/ListOrganizationRecommendationsPaginator.js +25 -0
- package/dist-es/pagination/ListRecommendationResourcesPaginator.js +25 -0
- package/dist-es/pagination/ListRecommendationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +7 -0
- package/dist-es/protocols/Aws_restJson1.js +1000 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/TrustedAdvisor.d.ts +80 -0
- package/dist-types/TrustedAdvisorClient.d.ts +179 -0
- package/dist-types/commands/GetOrganizationRecommendationCommand.d.ts +125 -0
- package/dist-types/commands/GetRecommendationCommand.d.ts +123 -0
- package/dist-types/commands/ListChecksCommand.d.ts +108 -0
- package/dist-types/commands/ListOrganizationRecommendationAccountsCommand.d.ts +105 -0
- package/dist-types/commands/ListOrganizationRecommendationResourcesCommand.d.ts +110 -0
- package/dist-types/commands/ListOrganizationRecommendationsCommand.d.ts +127 -0
- package/dist-types/commands/ListRecommendationResourcesCommand.d.ts +106 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +125 -0
- package/dist-types/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +94 -0
- package/dist-types/commands/UpdateRecommendationLifecycleCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/TrustedAdvisorServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1322 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListChecksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListOrganizationRecommendationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendationResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +7 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/runtimeConfig.browser.d.ts +46 -0
- package/dist-types/runtimeConfig.d.ts +46 -0
- package/dist-types/runtimeConfig.native.d.ts +45 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/TrustedAdvisor.d.ts +195 -0
- package/dist-types/ts3.4/TrustedAdvisorClient.d.ts +179 -0
- package/dist-types/ts3.4/commands/GetOrganizationRecommendationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListChecksCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListOrganizationRecommendationAccountsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListOrganizationRecommendationResourcesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListOrganizationRecommendationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRecommendationResourcesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateRecommendationLifecycleCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/TrustedAdvisorServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +397 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListChecksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListOrganizationRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendationResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +7 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +125 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +102 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_UpdateOrganizationRecommendationLifecycleCommand, se_UpdateOrganizationRecommendationLifecycleCommand, } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class UpdateOrganizationRecommendationLifecycleCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateOrganizationRecommendationLifecycleCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "TrustedAdvisorClient";
|
|
27
|
+
const commandName = "UpdateOrganizationRecommendationLifecycleCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "TrustedAdvisor",
|
|
36
|
+
operation: "UpdateOrganizationRecommendationLifecycle",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_UpdateOrganizationRecommendationLifecycleCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_UpdateOrganizationRecommendationLifecycleCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
import { UpdateRecommendationLifecycleRequestFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_UpdateRecommendationLifecycleCommand, se_UpdateRecommendationLifecycleCommand, } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class UpdateRecommendationLifecycleCommand extends $Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, UpdateRecommendationLifecycleCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "TrustedAdvisorClient";
|
|
27
|
+
const commandName = "UpdateRecommendationLifecycleCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: UpdateRecommendationLifecycleRequestFilterSensitiveLog,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
35
|
+
service: "TrustedAdvisor",
|
|
36
|
+
operation: "UpdateRecommendationLifecycle",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
const { requestHandler } = configuration;
|
|
40
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
41
|
+
}
|
|
42
|
+
serialize(input, context) {
|
|
43
|
+
return se_UpdateRecommendationLifecycleCommand(input, context);
|
|
44
|
+
}
|
|
45
|
+
deserialize(output, context) {
|
|
46
|
+
return de_UpdateRecommendationLifecycleCommand(output, context);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./GetOrganizationRecommendationCommand";
|
|
2
|
+
export * from "./GetRecommendationCommand";
|
|
3
|
+
export * from "./ListChecksCommand";
|
|
4
|
+
export * from "./ListOrganizationRecommendationAccountsCommand";
|
|
5
|
+
export * from "./ListOrganizationRecommendationResourcesCommand";
|
|
6
|
+
export * from "./ListOrganizationRecommendationsCommand";
|
|
7
|
+
export * from "./ListRecommendationResourcesCommand";
|
|
8
|
+
export * from "./ListRecommendationsCommand";
|
|
9
|
+
export * from "./UpdateOrganizationRecommendationLifecycleCommand";
|
|
10
|
+
export * from "./UpdateRecommendationLifecycleCommand";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@smithy/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const s = "required", t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "String" }, i = { [s]: true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://trustedadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://trustedadvisor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://trustedadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://trustedadvisor.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
|
|
4
|
+
export const ruleSet = _data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./TrustedAdvisorClient";
|
|
2
|
+
export * from "./TrustedAdvisor";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./pagination";
|
|
5
|
+
export * from "./models";
|
|
6
|
+
import "@aws-sdk/util-endpoints";
|
|
7
|
+
export { TrustedAdvisorServiceException } from "./models/TrustedAdvisorServiceException";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class TrustedAdvisorServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, TrustedAdvisorServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { TrustedAdvisorServiceException as __BaseException } from "./TrustedAdvisorServiceException";
|
|
3
|
+
export class AccessDeniedException extends __BaseException {
|
|
4
|
+
constructor(opts) {
|
|
5
|
+
super({
|
|
6
|
+
name: "AccessDeniedException",
|
|
7
|
+
$fault: "client",
|
|
8
|
+
...opts,
|
|
9
|
+
});
|
|
10
|
+
this.name = "AccessDeniedException";
|
|
11
|
+
this.$fault = "client";
|
|
12
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export const RecommendationLifecycleStage = {
|
|
16
|
+
DISMISSED: "dismissed",
|
|
17
|
+
IN_PROGRESS: "in_progress",
|
|
18
|
+
PENDING_RESPONSE: "pending_response",
|
|
19
|
+
RESOLVED: "resolved",
|
|
20
|
+
};
|
|
21
|
+
export const UpdateRecommendationLifecycleStageReasonCode = {
|
|
22
|
+
LOW_PRIORITY: "low_priority",
|
|
23
|
+
NON_CRITICAL_ACCOUNT: "non_critical_account",
|
|
24
|
+
NOT_APPLICABLE: "not_applicable",
|
|
25
|
+
OTHER: "other",
|
|
26
|
+
OTHER_METHODS_AVAILABLE: "other_methods_available",
|
|
27
|
+
TEMPORARY_ACCOUNT: "temporary_account",
|
|
28
|
+
VALID_BUSINESS_CASE: "valid_business_case",
|
|
29
|
+
};
|
|
30
|
+
export const RecommendationPillar = {
|
|
31
|
+
COST_OPTIMIZING: "cost_optimizing",
|
|
32
|
+
FAULT_TOLERANCE: "fault_tolerance",
|
|
33
|
+
OPERATIONAL_EXCELLENCE: "operational_excellence",
|
|
34
|
+
PERFORMANCE: "performance",
|
|
35
|
+
SECURITY: "security",
|
|
36
|
+
SERVICE_LIMITS: "service_limits",
|
|
37
|
+
};
|
|
38
|
+
export const RecommendationSource = {
|
|
39
|
+
AWS_CONFIG: "aws_config",
|
|
40
|
+
COMPUTE_OPTIMIZER: "compute_optimizer",
|
|
41
|
+
COST_EXPLORER: "cost_explorer",
|
|
42
|
+
LSE: "lse",
|
|
43
|
+
MANUAL: "manual",
|
|
44
|
+
PSE: "pse",
|
|
45
|
+
RDS: "rds",
|
|
46
|
+
RESILIENCE: "resilience",
|
|
47
|
+
RESILIENCE_HUB: "resilience_hub",
|
|
48
|
+
SECURITY_HUB: "security_hub",
|
|
49
|
+
STIR: "stir",
|
|
50
|
+
TA_CHECK: "ta_check",
|
|
51
|
+
WELL_ARCHITECTED: "well_architected",
|
|
52
|
+
};
|
|
53
|
+
export class ConflictException extends __BaseException {
|
|
54
|
+
constructor(opts) {
|
|
55
|
+
super({
|
|
56
|
+
name: "ConflictException",
|
|
57
|
+
$fault: "client",
|
|
58
|
+
...opts,
|
|
59
|
+
});
|
|
60
|
+
this.name = "ConflictException";
|
|
61
|
+
this.$fault = "client";
|
|
62
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export const RecommendationStatus = {
|
|
66
|
+
ERROR: "error",
|
|
67
|
+
OK: "ok",
|
|
68
|
+
WARNING: "warning",
|
|
69
|
+
};
|
|
70
|
+
export const RecommendationType = {
|
|
71
|
+
PRIORITY: "priority",
|
|
72
|
+
STANDARD: "standard",
|
|
73
|
+
};
|
|
74
|
+
export class InternalServerException extends __BaseException {
|
|
75
|
+
constructor(opts) {
|
|
76
|
+
super({
|
|
77
|
+
name: "InternalServerException",
|
|
78
|
+
$fault: "server",
|
|
79
|
+
...opts,
|
|
80
|
+
});
|
|
81
|
+
this.name = "InternalServerException";
|
|
82
|
+
this.$fault = "server";
|
|
83
|
+
this.$retryable = {};
|
|
84
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
88
|
+
constructor(opts) {
|
|
89
|
+
super({
|
|
90
|
+
name: "ResourceNotFoundException",
|
|
91
|
+
$fault: "client",
|
|
92
|
+
...opts,
|
|
93
|
+
});
|
|
94
|
+
this.name = "ResourceNotFoundException";
|
|
95
|
+
this.$fault = "client";
|
|
96
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export class ThrottlingException extends __BaseException {
|
|
100
|
+
constructor(opts) {
|
|
101
|
+
super({
|
|
102
|
+
name: "ThrottlingException",
|
|
103
|
+
$fault: "client",
|
|
104
|
+
...opts,
|
|
105
|
+
});
|
|
106
|
+
this.name = "ThrottlingException";
|
|
107
|
+
this.$fault = "client";
|
|
108
|
+
this.$retryable = {
|
|
109
|
+
throttling: true,
|
|
110
|
+
};
|
|
111
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
export class ValidationException extends __BaseException {
|
|
115
|
+
constructor(opts) {
|
|
116
|
+
super({
|
|
117
|
+
name: "ValidationException",
|
|
118
|
+
$fault: "client",
|
|
119
|
+
...opts,
|
|
120
|
+
});
|
|
121
|
+
this.name = "ValidationException";
|
|
122
|
+
this.$fault = "client";
|
|
123
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export const RecommendationLanguage = {
|
|
127
|
+
BAHASA_INDONESIA: "id",
|
|
128
|
+
BRAZILIAN_PORTUGUESE: "pt_BR",
|
|
129
|
+
CHINESE: "zh",
|
|
130
|
+
ENGLISH: "en",
|
|
131
|
+
FRENCH: "fr",
|
|
132
|
+
GERMAN: "de",
|
|
133
|
+
ITALIAN: "it",
|
|
134
|
+
JAPANESE: "ja",
|
|
135
|
+
KOREAN: "ko",
|
|
136
|
+
SPANISH: "es",
|
|
137
|
+
TRADITIONAL_CHINESE: "zh_TW",
|
|
138
|
+
};
|
|
139
|
+
export const ResourceStatus = {
|
|
140
|
+
ERROR: "error",
|
|
141
|
+
OK: "ok",
|
|
142
|
+
WARNING: "warning",
|
|
143
|
+
};
|
|
144
|
+
export const UpdateRecommendationLifecycleStage = {
|
|
145
|
+
DISMISSED: "dismissed",
|
|
146
|
+
IN_PROGRESS: "in_progress",
|
|
147
|
+
PENDING_RESPONSE: "pending_response",
|
|
148
|
+
RESOLVED: "resolved",
|
|
149
|
+
};
|
|
150
|
+
export const AccountRecommendationLifecycleSummaryFilterSensitiveLog = (obj) => ({
|
|
151
|
+
...obj,
|
|
152
|
+
...(obj.updateReason && { updateReason: SENSITIVE_STRING }),
|
|
153
|
+
});
|
|
154
|
+
export const OrganizationRecommendationFilterSensitiveLog = (obj) => ({
|
|
155
|
+
...obj,
|
|
156
|
+
...(obj.updateReason && { updateReason: SENSITIVE_STRING }),
|
|
157
|
+
});
|
|
158
|
+
export const GetOrganizationRecommendationResponseFilterSensitiveLog = (obj) => ({
|
|
159
|
+
...obj,
|
|
160
|
+
...(obj.organizationRecommendation && {
|
|
161
|
+
organizationRecommendation: OrganizationRecommendationFilterSensitiveLog(obj.organizationRecommendation),
|
|
162
|
+
}),
|
|
163
|
+
});
|
|
164
|
+
export const RecommendationFilterSensitiveLog = (obj) => ({
|
|
165
|
+
...obj,
|
|
166
|
+
...(obj.updateReason && { updateReason: SENSITIVE_STRING }),
|
|
167
|
+
});
|
|
168
|
+
export const GetRecommendationResponseFilterSensitiveLog = (obj) => ({
|
|
169
|
+
...obj,
|
|
170
|
+
...(obj.recommendation && { recommendation: RecommendationFilterSensitiveLog(obj.recommendation) }),
|
|
171
|
+
});
|
|
172
|
+
export const ListOrganizationRecommendationAccountsResponseFilterSensitiveLog = (obj) => ({
|
|
173
|
+
...obj,
|
|
174
|
+
...(obj.accountRecommendationLifecycleSummaries && {
|
|
175
|
+
accountRecommendationLifecycleSummaries: obj.accountRecommendationLifecycleSummaries.map((item) => AccountRecommendationLifecycleSummaryFilterSensitiveLog(item)),
|
|
176
|
+
}),
|
|
177
|
+
});
|
|
178
|
+
export const UpdateOrganizationRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
|
|
179
|
+
...obj,
|
|
180
|
+
...(obj.updateReason && { updateReason: SENSITIVE_STRING }),
|
|
181
|
+
});
|
|
182
|
+
export const UpdateRecommendationLifecycleRequestFilterSensitiveLog = (obj) => ({
|
|
183
|
+
...obj,
|
|
184
|
+
...(obj.updateReason && { updateReason: SENSITIVE_STRING }),
|
|
185
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListChecksCommand } from "../commands/ListChecksCommand";
|
|
2
|
+
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListChecksCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListChecks(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListOrganizationRecommendationAccountsCommand, } from "../commands/ListOrganizationRecommendationAccountsCommand";
|
|
2
|
+
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListOrganizationRecommendationAccountsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListOrganizationRecommendationAccounts(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListOrganizationRecommendationResourcesCommand, } from "../commands/ListOrganizationRecommendationResourcesCommand";
|
|
2
|
+
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListOrganizationRecommendationResourcesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListOrganizationRecommendationResources(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListOrganizationRecommendationsCommand, } from "../commands/ListOrganizationRecommendationsCommand";
|
|
2
|
+
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListOrganizationRecommendationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListOrganizationRecommendations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListRecommendationResourcesCommand, } from "../commands/ListRecommendationResourcesCommand";
|
|
2
|
+
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListRecommendationResourcesCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListRecommendationResources(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ListRecommendationsCommand, } from "../commands/ListRecommendationsCommand";
|
|
2
|
+
import { TrustedAdvisorClient } from "../TrustedAdvisorClient";
|
|
3
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
4
|
+
return await client.send(new ListRecommendationsCommand(input), ...args);
|
|
5
|
+
};
|
|
6
|
+
export async function* paginateListRecommendations(config, input, ...additionalArguments) {
|
|
7
|
+
let token = config.startingToken || undefined;
|
|
8
|
+
let hasNext = true;
|
|
9
|
+
let page;
|
|
10
|
+
while (hasNext) {
|
|
11
|
+
input.nextToken = token;
|
|
12
|
+
input["maxResults"] = config.pageSize;
|
|
13
|
+
if (config.client instanceof TrustedAdvisorClient) {
|
|
14
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
throw new Error("Invalid client, expected TrustedAdvisor | TrustedAdvisorClient");
|
|
18
|
+
}
|
|
19
|
+
yield page;
|
|
20
|
+
const prevToken = token;
|
|
21
|
+
token = page.nextToken;
|
|
22
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
+
}
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
2
|
+
export * from "./ListChecksPaginator";
|
|
3
|
+
export * from "./ListOrganizationRecommendationAccountsPaginator";
|
|
4
|
+
export * from "./ListOrganizationRecommendationResourcesPaginator";
|
|
5
|
+
export * from "./ListOrganizationRecommendationsPaginator";
|
|
6
|
+
export * from "./ListRecommendationResourcesPaginator";
|
|
7
|
+
export * from "./ListRecommendationsPaginator";
|