@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.
Files changed (143) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +285 -0
  3. package/dist-cjs/TrustedAdvisor.js +31 -0
  4. package/dist-cjs/TrustedAdvisorClient.js +43 -0
  5. package/dist-cjs/commands/GetOrganizationRecommendationCommand.js +52 -0
  6. package/dist-cjs/commands/GetRecommendationCommand.js +52 -0
  7. package/dist-cjs/commands/ListChecksCommand.js +51 -0
  8. package/dist-cjs/commands/ListOrganizationRecommendationAccountsCommand.js +52 -0
  9. package/dist-cjs/commands/ListOrganizationRecommendationResourcesCommand.js +51 -0
  10. package/dist-cjs/commands/ListOrganizationRecommendationsCommand.js +51 -0
  11. package/dist-cjs/commands/ListRecommendationResourcesCommand.js +51 -0
  12. package/dist-cjs/commands/ListRecommendationsCommand.js +51 -0
  13. package/dist-cjs/commands/UpdateOrganizationRecommendationLifecycleCommand.js +52 -0
  14. package/dist-cjs/commands/UpdateRecommendationLifecycleCommand.js +52 -0
  15. package/dist-cjs/commands/index.js +13 -0
  16. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  17. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  18. package/dist-cjs/endpoint/ruleset.js +7 -0
  19. package/dist-cjs/extensionConfiguration.js +2 -0
  20. package/dist-cjs/index.js +12 -0
  21. package/dist-cjs/models/TrustedAdvisorServiceException.js +12 -0
  22. package/dist-cjs/models/index.js +4 -0
  23. package/dist-cjs/models/models_0.js +202 -0
  24. package/dist-cjs/pagination/Interfaces.js +2 -0
  25. package/dist-cjs/pagination/ListChecksPaginator.js +29 -0
  26. package/dist-cjs/pagination/ListOrganizationRecommendationAccountsPaginator.js +29 -0
  27. package/dist-cjs/pagination/ListOrganizationRecommendationResourcesPaginator.js +29 -0
  28. package/dist-cjs/pagination/ListOrganizationRecommendationsPaginator.js +29 -0
  29. package/dist-cjs/pagination/ListRecommendationResourcesPaginator.js +29 -0
  30. package/dist-cjs/pagination/ListRecommendationsPaginator.js +29 -0
  31. package/dist-cjs/pagination/index.js +10 -0
  32. package/dist-cjs/protocols/Aws_restJson1.js +1023 -0
  33. package/dist-cjs/runtimeConfig.browser.js +39 -0
  34. package/dist-cjs/runtimeConfig.js +50 -0
  35. package/dist-cjs/runtimeConfig.native.js +15 -0
  36. package/dist-cjs/runtimeConfig.shared.js +24 -0
  37. package/dist-cjs/runtimeExtensions.js +22 -0
  38. package/dist-es/TrustedAdvisor.js +27 -0
  39. package/dist-es/TrustedAdvisorClient.js +39 -0
  40. package/dist-es/commands/GetOrganizationRecommendationCommand.js +48 -0
  41. package/dist-es/commands/GetRecommendationCommand.js +48 -0
  42. package/dist-es/commands/ListChecksCommand.js +47 -0
  43. package/dist-es/commands/ListOrganizationRecommendationAccountsCommand.js +48 -0
  44. package/dist-es/commands/ListOrganizationRecommendationResourcesCommand.js +47 -0
  45. package/dist-es/commands/ListOrganizationRecommendationsCommand.js +47 -0
  46. package/dist-es/commands/ListRecommendationResourcesCommand.js +47 -0
  47. package/dist-es/commands/ListRecommendationsCommand.js +47 -0
  48. package/dist-es/commands/UpdateOrganizationRecommendationLifecycleCommand.js +48 -0
  49. package/dist-es/commands/UpdateRecommendationLifecycleCommand.js +48 -0
  50. package/dist-es/commands/index.js +10 -0
  51. package/dist-es/endpoint/EndpointParameters.js +8 -0
  52. package/dist-es/endpoint/endpointResolver.js +8 -0
  53. package/dist-es/endpoint/ruleset.js +4 -0
  54. package/dist-es/extensionConfiguration.js +1 -0
  55. package/dist-es/index.js +7 -0
  56. package/dist-es/models/TrustedAdvisorServiceException.js +8 -0
  57. package/dist-es/models/index.js +1 -0
  58. package/dist-es/models/models_0.js +185 -0
  59. package/dist-es/pagination/Interfaces.js +1 -0
  60. package/dist-es/pagination/ListChecksPaginator.js +25 -0
  61. package/dist-es/pagination/ListOrganizationRecommendationAccountsPaginator.js +25 -0
  62. package/dist-es/pagination/ListOrganizationRecommendationResourcesPaginator.js +25 -0
  63. package/dist-es/pagination/ListOrganizationRecommendationsPaginator.js +25 -0
  64. package/dist-es/pagination/ListRecommendationResourcesPaginator.js +25 -0
  65. package/dist-es/pagination/ListRecommendationsPaginator.js +25 -0
  66. package/dist-es/pagination/index.js +7 -0
  67. package/dist-es/protocols/Aws_restJson1.js +1000 -0
  68. package/dist-es/runtimeConfig.browser.js +34 -0
  69. package/dist-es/runtimeConfig.js +45 -0
  70. package/dist-es/runtimeConfig.native.js +11 -0
  71. package/dist-es/runtimeConfig.shared.js +20 -0
  72. package/dist-es/runtimeExtensions.js +18 -0
  73. package/dist-types/TrustedAdvisor.d.ts +80 -0
  74. package/dist-types/TrustedAdvisorClient.d.ts +179 -0
  75. package/dist-types/commands/GetOrganizationRecommendationCommand.d.ts +125 -0
  76. package/dist-types/commands/GetRecommendationCommand.d.ts +123 -0
  77. package/dist-types/commands/ListChecksCommand.d.ts +108 -0
  78. package/dist-types/commands/ListOrganizationRecommendationAccountsCommand.d.ts +105 -0
  79. package/dist-types/commands/ListOrganizationRecommendationResourcesCommand.d.ts +110 -0
  80. package/dist-types/commands/ListOrganizationRecommendationsCommand.d.ts +127 -0
  81. package/dist-types/commands/ListRecommendationResourcesCommand.d.ts +106 -0
  82. package/dist-types/commands/ListRecommendationsCommand.d.ts +125 -0
  83. package/dist-types/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +94 -0
  84. package/dist-types/commands/UpdateRecommendationLifecycleCommand.d.ts +92 -0
  85. package/dist-types/commands/index.d.ts +10 -0
  86. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  87. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  88. package/dist-types/endpoint/ruleset.d.ts +2 -0
  89. package/dist-types/extensionConfiguration.d.ts +8 -0
  90. package/dist-types/index.d.ts +15 -0
  91. package/dist-types/models/TrustedAdvisorServiceException.d.ts +13 -0
  92. package/dist-types/models/index.d.ts +1 -0
  93. package/dist-types/models/models_0.d.ts +1322 -0
  94. package/dist-types/pagination/Interfaces.d.ts +8 -0
  95. package/dist-types/pagination/ListChecksPaginator.d.ts +7 -0
  96. package/dist-types/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +7 -0
  97. package/dist-types/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +7 -0
  98. package/dist-types/pagination/ListOrganizationRecommendationsPaginator.d.ts +7 -0
  99. package/dist-types/pagination/ListRecommendationResourcesPaginator.d.ts +7 -0
  100. package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
  101. package/dist-types/pagination/index.d.ts +7 -0
  102. package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
  103. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  104. package/dist-types/runtimeConfig.d.ts +46 -0
  105. package/dist-types/runtimeConfig.native.d.ts +45 -0
  106. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  107. package/dist-types/runtimeExtensions.d.ts +17 -0
  108. package/dist-types/ts3.4/TrustedAdvisor.d.ts +195 -0
  109. package/dist-types/ts3.4/TrustedAdvisorClient.d.ts +179 -0
  110. package/dist-types/ts3.4/commands/GetOrganizationRecommendationCommand.d.ts +42 -0
  111. package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +39 -0
  112. package/dist-types/ts3.4/commands/ListChecksCommand.d.ts +35 -0
  113. package/dist-types/ts3.4/commands/ListOrganizationRecommendationAccountsCommand.d.ts +42 -0
  114. package/dist-types/ts3.4/commands/ListOrganizationRecommendationResourcesCommand.d.ts +42 -0
  115. package/dist-types/ts3.4/commands/ListOrganizationRecommendationsCommand.d.ts +42 -0
  116. package/dist-types/ts3.4/commands/ListRecommendationResourcesCommand.d.ts +42 -0
  117. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +39 -0
  118. package/dist-types/ts3.4/commands/UpdateOrganizationRecommendationLifecycleCommand.d.ts +38 -0
  119. package/dist-types/ts3.4/commands/UpdateRecommendationLifecycleCommand.d.ts +38 -0
  120. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  121. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  122. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  123. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  124. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  125. package/dist-types/ts3.4/index.d.ts +10 -0
  126. package/dist-types/ts3.4/models/TrustedAdvisorServiceException.d.ts +8 -0
  127. package/dist-types/ts3.4/models/index.d.ts +1 -0
  128. package/dist-types/ts3.4/models/models_0.d.ts +397 -0
  129. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  130. package/dist-types/ts3.4/pagination/ListChecksPaginator.d.ts +11 -0
  131. package/dist-types/ts3.4/pagination/ListOrganizationRecommendationAccountsPaginator.d.ts +11 -0
  132. package/dist-types/ts3.4/pagination/ListOrganizationRecommendationResourcesPaginator.d.ts +11 -0
  133. package/dist-types/ts3.4/pagination/ListOrganizationRecommendationsPaginator.d.ts +11 -0
  134. package/dist-types/ts3.4/pagination/ListRecommendationResourcesPaginator.d.ts +11 -0
  135. package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
  136. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  137. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +125 -0
  138. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +97 -0
  139. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  140. package/dist-types/ts3.4/runtimeConfig.native.d.ts +88 -0
  141. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +19 -0
  142. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  143. package/package.json +102 -0
@@ -0,0 +1,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
+ import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,45 @@
1
+ import packageInfo from "../package.json";
2
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
4
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
6
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
7
+ import { Hash } from "@smithy/hash-node";
8
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
9
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
10
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
13
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
15
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
16
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
17
+ export const getRuntimeConfig = (config) => {
18
+ emitWarningIfUnsupportedVersion(process.version);
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ awsCheckVersion(process.version);
23
+ return {
24
+ ...clientSharedValues,
25
+ ...config,
26
+ runtime: "node",
27
+ defaultsMode,
28
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
30
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
31
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
32
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
33
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
34
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
35
+ retryMode: config?.retryMode ??
36
+ loadNodeConfig({
37
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
38
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
39
+ }),
40
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
41
+ streamCollector: config?.streamCollector ?? streamCollector,
42
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
43
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ };
45
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };
@@ -0,0 +1,20 @@
1
+ import { NoOpLogger } from "@smithy/smithy-client";
2
+ import { parseUrl } from "@smithy/url-parser";
3
+ import { fromBase64, toBase64 } from "@smithy/util-base64";
4
+ import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
5
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
6
+ export const getRuntimeConfig = (config) => {
7
+ return {
8
+ apiVersion: "2022-09-15",
9
+ base64Decoder: config?.base64Decoder ?? fromBase64,
10
+ base64Encoder: config?.base64Encoder ?? toBase64,
11
+ disableHostPrefix: config?.disableHostPrefix ?? false,
12
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
13
+ extensions: config?.extensions ?? [],
14
+ logger: config?.logger ?? new NoOpLogger(),
15
+ serviceId: config?.serviceId ?? "TrustedAdvisor",
16
+ urlParser: config?.urlParser ?? parseUrl,
17
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
18
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
19
+ };
20
+ };
@@ -0,0 +1,18 @@
1
+ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
+ const asPartial = (t) => t;
5
+ export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
+ const extensionConfiguration = {
7
+ ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
8
+ ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
9
+ ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
10
+ };
11
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
12
+ return {
13
+ ...runtimeConfig,
14
+ ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
15
+ ...resolveDefaultRuntimeConfig(extensionConfiguration),
16
+ ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
17
+ };
18
+ };
@@ -0,0 +1,80 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput } from "./commands/GetOrganizationRecommendationCommand";
3
+ import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "./commands/GetRecommendationCommand";
4
+ import { ListChecksCommandInput, ListChecksCommandOutput } from "./commands/ListChecksCommand";
5
+ import { ListOrganizationRecommendationAccountsCommandInput, ListOrganizationRecommendationAccountsCommandOutput } from "./commands/ListOrganizationRecommendationAccountsCommand";
6
+ import { ListOrganizationRecommendationResourcesCommandInput, ListOrganizationRecommendationResourcesCommandOutput } from "./commands/ListOrganizationRecommendationResourcesCommand";
7
+ import { ListOrganizationRecommendationsCommandInput, ListOrganizationRecommendationsCommandOutput } from "./commands/ListOrganizationRecommendationsCommand";
8
+ import { ListRecommendationResourcesCommandInput, ListRecommendationResourcesCommandOutput } from "./commands/ListRecommendationResourcesCommand";
9
+ import { ListRecommendationsCommandInput, ListRecommendationsCommandOutput } from "./commands/ListRecommendationsCommand";
10
+ import { UpdateOrganizationRecommendationLifecycleCommandInput, UpdateOrganizationRecommendationLifecycleCommandOutput } from "./commands/UpdateOrganizationRecommendationLifecycleCommand";
11
+ import { UpdateRecommendationLifecycleCommandInput, UpdateRecommendationLifecycleCommandOutput } from "./commands/UpdateRecommendationLifecycleCommand";
12
+ import { TrustedAdvisorClient } from "./TrustedAdvisorClient";
13
+ export interface TrustedAdvisor {
14
+ /**
15
+ * @see {@link GetOrganizationRecommendationCommand}
16
+ */
17
+ getOrganizationRecommendation(args: GetOrganizationRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<GetOrganizationRecommendationCommandOutput>;
18
+ getOrganizationRecommendation(args: GetOrganizationRecommendationCommandInput, cb: (err: any, data?: GetOrganizationRecommendationCommandOutput) => void): void;
19
+ getOrganizationRecommendation(args: GetOrganizationRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrganizationRecommendationCommandOutput) => void): void;
20
+ /**
21
+ * @see {@link GetRecommendationCommand}
22
+ */
23
+ getRecommendation(args: GetRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationCommandOutput>;
24
+ getRecommendation(args: GetRecommendationCommandInput, cb: (err: any, data?: GetRecommendationCommandOutput) => void): void;
25
+ getRecommendation(args: GetRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationCommandOutput) => void): void;
26
+ /**
27
+ * @see {@link ListChecksCommand}
28
+ */
29
+ listChecks(args: ListChecksCommandInput, options?: __HttpHandlerOptions): Promise<ListChecksCommandOutput>;
30
+ listChecks(args: ListChecksCommandInput, cb: (err: any, data?: ListChecksCommandOutput) => void): void;
31
+ listChecks(args: ListChecksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChecksCommandOutput) => void): void;
32
+ /**
33
+ * @see {@link ListOrganizationRecommendationAccountsCommand}
34
+ */
35
+ listOrganizationRecommendationAccounts(args: ListOrganizationRecommendationAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListOrganizationRecommendationAccountsCommandOutput>;
36
+ listOrganizationRecommendationAccounts(args: ListOrganizationRecommendationAccountsCommandInput, cb: (err: any, data?: ListOrganizationRecommendationAccountsCommandOutput) => void): void;
37
+ listOrganizationRecommendationAccounts(args: ListOrganizationRecommendationAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOrganizationRecommendationAccountsCommandOutput) => void): void;
38
+ /**
39
+ * @see {@link ListOrganizationRecommendationResourcesCommand}
40
+ */
41
+ listOrganizationRecommendationResources(args: ListOrganizationRecommendationResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListOrganizationRecommendationResourcesCommandOutput>;
42
+ listOrganizationRecommendationResources(args: ListOrganizationRecommendationResourcesCommandInput, cb: (err: any, data?: ListOrganizationRecommendationResourcesCommandOutput) => void): void;
43
+ listOrganizationRecommendationResources(args: ListOrganizationRecommendationResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOrganizationRecommendationResourcesCommandOutput) => void): void;
44
+ /**
45
+ * @see {@link ListOrganizationRecommendationsCommand}
46
+ */
47
+ listOrganizationRecommendations(args: ListOrganizationRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ListOrganizationRecommendationsCommandOutput>;
48
+ listOrganizationRecommendations(args: ListOrganizationRecommendationsCommandInput, cb: (err: any, data?: ListOrganizationRecommendationsCommandOutput) => void): void;
49
+ listOrganizationRecommendations(args: ListOrganizationRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOrganizationRecommendationsCommandOutput) => void): void;
50
+ /**
51
+ * @see {@link ListRecommendationResourcesCommand}
52
+ */
53
+ listRecommendationResources(args: ListRecommendationResourcesCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationResourcesCommandOutput>;
54
+ listRecommendationResources(args: ListRecommendationResourcesCommandInput, cb: (err: any, data?: ListRecommendationResourcesCommandOutput) => void): void;
55
+ listRecommendationResources(args: ListRecommendationResourcesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationResourcesCommandOutput) => void): void;
56
+ /**
57
+ * @see {@link ListRecommendationsCommand}
58
+ */
59
+ listRecommendations(args: ListRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationsCommandOutput>;
60
+ listRecommendations(args: ListRecommendationsCommandInput, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
61
+ listRecommendations(args: ListRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
62
+ /**
63
+ * @see {@link UpdateOrganizationRecommendationLifecycleCommand}
64
+ */
65
+ updateOrganizationRecommendationLifecycle(args: UpdateOrganizationRecommendationLifecycleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateOrganizationRecommendationLifecycleCommandOutput>;
66
+ updateOrganizationRecommendationLifecycle(args: UpdateOrganizationRecommendationLifecycleCommandInput, cb: (err: any, data?: UpdateOrganizationRecommendationLifecycleCommandOutput) => void): void;
67
+ updateOrganizationRecommendationLifecycle(args: UpdateOrganizationRecommendationLifecycleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOrganizationRecommendationLifecycleCommandOutput) => void): void;
68
+ /**
69
+ * @see {@link UpdateRecommendationLifecycleCommand}
70
+ */
71
+ updateRecommendationLifecycle(args: UpdateRecommendationLifecycleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRecommendationLifecycleCommandOutput>;
72
+ updateRecommendationLifecycle(args: UpdateRecommendationLifecycleCommandInput, cb: (err: any, data?: UpdateRecommendationLifecycleCommandOutput) => void): void;
73
+ updateRecommendationLifecycle(args: UpdateRecommendationLifecycleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRecommendationLifecycleCommandOutput) => void): void;
74
+ }
75
+ /**
76
+ * @public
77
+ * <p>TrustedAdvisor Public API</p>
78
+ */
79
+ export declare class TrustedAdvisor extends TrustedAdvisorClient implements TrustedAdvisor {
80
+ }
@@ -0,0 +1,179 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
3
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
+ import { Credentials as __Credentials } from "@aws-sdk/types";
5
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
7
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
8
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
9
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
10
+ import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
11
+ import { GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput } from "./commands/GetOrganizationRecommendationCommand";
12
+ import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "./commands/GetRecommendationCommand";
13
+ import { ListChecksCommandInput, ListChecksCommandOutput } from "./commands/ListChecksCommand";
14
+ import { ListOrganizationRecommendationAccountsCommandInput, ListOrganizationRecommendationAccountsCommandOutput } from "./commands/ListOrganizationRecommendationAccountsCommand";
15
+ import { ListOrganizationRecommendationResourcesCommandInput, ListOrganizationRecommendationResourcesCommandOutput } from "./commands/ListOrganizationRecommendationResourcesCommand";
16
+ import { ListOrganizationRecommendationsCommandInput, ListOrganizationRecommendationsCommandOutput } from "./commands/ListOrganizationRecommendationsCommand";
17
+ import { ListRecommendationResourcesCommandInput, ListRecommendationResourcesCommandOutput } from "./commands/ListRecommendationResourcesCommand";
18
+ import { ListRecommendationsCommandInput, ListRecommendationsCommandOutput } from "./commands/ListRecommendationsCommand";
19
+ import { UpdateOrganizationRecommendationLifecycleCommandInput, UpdateOrganizationRecommendationLifecycleCommandOutput } from "./commands/UpdateOrganizationRecommendationLifecycleCommand";
20
+ import { UpdateRecommendationLifecycleCommandInput, UpdateRecommendationLifecycleCommandOutput } from "./commands/UpdateRecommendationLifecycleCommand";
21
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
22
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
23
+ export { __Client };
24
+ /**
25
+ * @public
26
+ */
27
+ export type ServiceInputTypes = GetOrganizationRecommendationCommandInput | GetRecommendationCommandInput | ListChecksCommandInput | ListOrganizationRecommendationAccountsCommandInput | ListOrganizationRecommendationResourcesCommandInput | ListOrganizationRecommendationsCommandInput | ListRecommendationResourcesCommandInput | ListRecommendationsCommandInput | UpdateOrganizationRecommendationLifecycleCommandInput | UpdateRecommendationLifecycleCommandInput;
28
+ /**
29
+ * @public
30
+ */
31
+ export type ServiceOutputTypes = GetOrganizationRecommendationCommandOutput | GetRecommendationCommandOutput | ListChecksCommandOutput | ListOrganizationRecommendationAccountsCommandOutput | ListOrganizationRecommendationResourcesCommandOutput | ListOrganizationRecommendationsCommandOutput | ListRecommendationResourcesCommandOutput | ListRecommendationsCommandOutput | UpdateOrganizationRecommendationLifecycleCommandOutput | UpdateRecommendationLifecycleCommandOutput;
32
+ /**
33
+ * @public
34
+ */
35
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
36
+ /**
37
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
38
+ */
39
+ requestHandler?: __HttpHandler;
40
+ /**
41
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
42
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
43
+ * @internal
44
+ */
45
+ sha256?: __ChecksumConstructor | __HashConstructor;
46
+ /**
47
+ * The function that will be used to convert strings into HTTP endpoints.
48
+ * @internal
49
+ */
50
+ urlParser?: __UrlParser;
51
+ /**
52
+ * A function that can calculate the length of a request body.
53
+ * @internal
54
+ */
55
+ bodyLengthChecker?: __BodyLengthCalculator;
56
+ /**
57
+ * A function that converts a stream into an array of bytes.
58
+ * @internal
59
+ */
60
+ streamCollector?: __StreamCollector;
61
+ /**
62
+ * The function that will be used to convert a base64-encoded string to a byte array.
63
+ * @internal
64
+ */
65
+ base64Decoder?: __Decoder;
66
+ /**
67
+ * The function that will be used to convert binary data to a base64-encoded string.
68
+ * @internal
69
+ */
70
+ base64Encoder?: __Encoder;
71
+ /**
72
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
73
+ * @internal
74
+ */
75
+ utf8Decoder?: __Decoder;
76
+ /**
77
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
78
+ * @internal
79
+ */
80
+ utf8Encoder?: __Encoder;
81
+ /**
82
+ * The runtime environment.
83
+ * @internal
84
+ */
85
+ runtime?: string;
86
+ /**
87
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
88
+ * trait of an operation.
89
+ */
90
+ disableHostPrefix?: boolean;
91
+ /**
92
+ * Unique service identifier.
93
+ * @internal
94
+ */
95
+ serviceId?: string;
96
+ /**
97
+ * Enables IPv6/IPv4 dualstack endpoint.
98
+ */
99
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
100
+ /**
101
+ * Enables FIPS compatible endpoints.
102
+ */
103
+ useFipsEndpoint?: boolean | __Provider<boolean>;
104
+ /**
105
+ * The AWS region to which this client will send requests
106
+ */
107
+ region?: string | __Provider<string>;
108
+ /**
109
+ * Default credentials provider; Not available in browser runtime.
110
+ * @internal
111
+ */
112
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
113
+ /**
114
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
115
+ * @internal
116
+ */
117
+ defaultUserAgentProvider?: Provider<__UserAgent>;
118
+ /**
119
+ * Value for how many times a request will be made at most in case of retry.
120
+ */
121
+ maxAttempts?: number | __Provider<number>;
122
+ /**
123
+ * Specifies which retry algorithm to use.
124
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
125
+ *
126
+ */
127
+ retryMode?: string | __Provider<string>;
128
+ /**
129
+ * Optional logger for logging debug/info/warn/error.
130
+ */
131
+ logger?: __Logger;
132
+ /**
133
+ * Optional extensions
134
+ */
135
+ extensions?: RuntimeExtension[];
136
+ /**
137
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
138
+ */
139
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
140
+ }
141
+ /**
142
+ * @public
143
+ */
144
+ export type TrustedAdvisorClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
145
+ /**
146
+ * @public
147
+ *
148
+ * The configuration interface of TrustedAdvisorClient class constructor that set the region, credentials and other options.
149
+ */
150
+ export interface TrustedAdvisorClientConfig extends TrustedAdvisorClientConfigType {
151
+ }
152
+ /**
153
+ * @public
154
+ */
155
+ export type TrustedAdvisorClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
156
+ /**
157
+ * @public
158
+ *
159
+ * The resolved configuration interface of TrustedAdvisorClient class. This is resolved and normalized from the {@link TrustedAdvisorClientConfig | constructor configuration interface}.
160
+ */
161
+ export interface TrustedAdvisorClientResolvedConfig extends TrustedAdvisorClientResolvedConfigType {
162
+ }
163
+ /**
164
+ * @public
165
+ * <p>TrustedAdvisor Public API</p>
166
+ */
167
+ export declare class TrustedAdvisorClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, TrustedAdvisorClientResolvedConfig> {
168
+ /**
169
+ * The resolved configuration of TrustedAdvisorClient class. This is resolved and normalized from the {@link TrustedAdvisorClientConfig | constructor configuration interface}.
170
+ */
171
+ readonly config: TrustedAdvisorClientResolvedConfig;
172
+ constructor(...[configuration]: __CheckOptionalClientConfig<TrustedAdvisorClientConfig>);
173
+ /**
174
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
175
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
176
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
177
+ */
178
+ destroy(): void;
179
+ }
@@ -0,0 +1,125 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { GetOrganizationRecommendationRequest, GetOrganizationRecommendationResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, TrustedAdvisorClientResolvedConfig } from "../TrustedAdvisorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetOrganizationRecommendationCommand}.
14
+ */
15
+ export interface GetOrganizationRecommendationCommandInput extends GetOrganizationRecommendationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetOrganizationRecommendationCommand}.
21
+ */
22
+ export interface GetOrganizationRecommendationCommandOutput extends GetOrganizationRecommendationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Get a specific recommendation within an AWS Organizations organization. This API supports only prioritized
27
+ * recommendations.
28
+ * </p>
29
+ * @example
30
+ * Use a bare-bones client and the command you need to make an API call.
31
+ * ```javascript
32
+ * import { TrustedAdvisorClient, GetOrganizationRecommendationCommand } from "@aws-sdk/client-trustedadvisor"; // ES Modules import
33
+ * // const { TrustedAdvisorClient, GetOrganizationRecommendationCommand } = require("@aws-sdk/client-trustedadvisor"); // CommonJS import
34
+ * const client = new TrustedAdvisorClient(config);
35
+ * const input = { // GetOrganizationRecommendationRequest
36
+ * organizationRecommendationIdentifier: "STRING_VALUE", // required
37
+ * };
38
+ * const command = new GetOrganizationRecommendationCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // GetOrganizationRecommendationResponse
41
+ * // organizationRecommendation: { // OrganizationRecommendation
42
+ * // id: "STRING_VALUE", // required
43
+ * // type: "standard" || "priority", // required
44
+ * // checkArn: "STRING_VALUE",
45
+ * // status: "ok" || "warning" || "error", // required
46
+ * // lifecycleStage: "in_progress" || "pending_response" || "dismissed" || "resolved",
47
+ * // pillars: [ // RecommendationPillarList // required
48
+ * // "cost_optimizing" || "performance" || "security" || "service_limits" || "fault_tolerance" || "operational_excellence",
49
+ * // ],
50
+ * // source: "aws_config" || "compute_optimizer" || "cost_explorer" || "lse" || "manual" || "pse" || "rds" || "resilience" || "resilience_hub" || "security_hub" || "stir" || "ta_check" || "well_architected", // required
51
+ * // awsServices: [ // RecommendationAwsServiceList
52
+ * // "STRING_VALUE",
53
+ * // ],
54
+ * // name: "STRING_VALUE", // required
55
+ * // resourcesAggregates: { // RecommendationResourcesAggregates
56
+ * // okCount: Number("long"), // required
57
+ * // warningCount: Number("long"), // required
58
+ * // errorCount: Number("long"), // required
59
+ * // },
60
+ * // pillarSpecificAggregates: { // RecommendationPillarSpecificAggregates
61
+ * // costOptimizing: { // RecommendationCostOptimizingAggregates
62
+ * // estimatedMonthlySavings: Number("double"), // required
63
+ * // estimatedPercentMonthlySavings: Number("double"), // required
64
+ * // },
65
+ * // },
66
+ * // createdAt: new Date("TIMESTAMP"),
67
+ * // lastUpdatedAt: new Date("TIMESTAMP"),
68
+ * // arn: "STRING_VALUE", // required
69
+ * // description: "STRING_VALUE", // required
70
+ * // createdBy: "STRING_VALUE",
71
+ * // updatedOnBehalfOf: "STRING_VALUE",
72
+ * // updatedOnBehalfOfJobTitle: "STRING_VALUE",
73
+ * // updateReason: "STRING_VALUE",
74
+ * // updateReasonCode: "non_critical_account" || "temporary_account" || "valid_business_case" || "other_methods_available" || "low_priority" || "not_applicable" || "other",
75
+ * // resolvedAt: new Date("TIMESTAMP"),
76
+ * // },
77
+ * // };
78
+ *
79
+ * ```
80
+ *
81
+ * @param GetOrganizationRecommendationCommandInput - {@link GetOrganizationRecommendationCommandInput}
82
+ * @returns {@link GetOrganizationRecommendationCommandOutput}
83
+ * @see {@link GetOrganizationRecommendationCommandInput} for command's `input` shape.
84
+ * @see {@link GetOrganizationRecommendationCommandOutput} for command's `response` shape.
85
+ * @see {@link TrustedAdvisorClientResolvedConfig | config} for TrustedAdvisorClient's `config` shape.
86
+ *
87
+ * @throws {@link AccessDeniedException} (client fault)
88
+ * <p>Exception that access has been denied due to insufficient access</p>
89
+ *
90
+ * @throws {@link InternalServerException} (server fault)
91
+ * <p>Exception to notify that an unexpected internal error occurred during processing of the request</p>
92
+ *
93
+ * @throws {@link ResourceNotFoundException} (client fault)
94
+ * <p>Exception that the requested resource has not been found</p>
95
+ *
96
+ * @throws {@link ThrottlingException} (client fault)
97
+ * <p>Exception to notify that requests are being throttled</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>Exception that the request failed to satisfy service constraints</p>
101
+ *
102
+ * @throws {@link TrustedAdvisorServiceException}
103
+ * <p>Base exception class for all service exceptions from TrustedAdvisor service.</p>
104
+ *
105
+ */
106
+ export declare class GetOrganizationRecommendationCommand extends $Command<GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput, TrustedAdvisorClientResolvedConfig> {
107
+ readonly input: GetOrganizationRecommendationCommandInput;
108
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
109
+ /**
110
+ * @public
111
+ */
112
+ constructor(input: GetOrganizationRecommendationCommandInput);
113
+ /**
114
+ * @internal
115
+ */
116
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TrustedAdvisorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetOrganizationRecommendationCommandInput, GetOrganizationRecommendationCommandOutput>;
117
+ /**
118
+ * @internal
119
+ */
120
+ private serialize;
121
+ /**
122
+ * @internal
123
+ */
124
+ private deserialize;
125
+ }
@@ -0,0 +1,123 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { GetRecommendationRequest, GetRecommendationResponse } from "../models/models_0";
5
+ import { ServiceInputTypes, ServiceOutputTypes, TrustedAdvisorClientResolvedConfig } from "../TrustedAdvisorClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetRecommendationCommand}.
14
+ */
15
+ export interface GetRecommendationCommandInput extends GetRecommendationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRecommendationCommand}.
21
+ */
22
+ export interface GetRecommendationCommandOutput extends GetRecommendationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Get a specific Recommendation</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { TrustedAdvisorClient, GetRecommendationCommand } from "@aws-sdk/client-trustedadvisor"; // ES Modules import
31
+ * // const { TrustedAdvisorClient, GetRecommendationCommand } = require("@aws-sdk/client-trustedadvisor"); // CommonJS import
32
+ * const client = new TrustedAdvisorClient(config);
33
+ * const input = { // GetRecommendationRequest
34
+ * recommendationIdentifier: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new GetRecommendationCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // GetRecommendationResponse
39
+ * // recommendation: { // Recommendation
40
+ * // id: "STRING_VALUE", // required
41
+ * // type: "standard" || "priority", // required
42
+ * // checkArn: "STRING_VALUE",
43
+ * // status: "ok" || "warning" || "error", // required
44
+ * // lifecycleStage: "in_progress" || "pending_response" || "dismissed" || "resolved",
45
+ * // pillars: [ // RecommendationPillarList // required
46
+ * // "cost_optimizing" || "performance" || "security" || "service_limits" || "fault_tolerance" || "operational_excellence",
47
+ * // ],
48
+ * // source: "aws_config" || "compute_optimizer" || "cost_explorer" || "lse" || "manual" || "pse" || "rds" || "resilience" || "resilience_hub" || "security_hub" || "stir" || "ta_check" || "well_architected", // required
49
+ * // awsServices: [ // RecommendationAwsServiceList
50
+ * // "STRING_VALUE",
51
+ * // ],
52
+ * // name: "STRING_VALUE", // required
53
+ * // resourcesAggregates: { // RecommendationResourcesAggregates
54
+ * // okCount: Number("long"), // required
55
+ * // warningCount: Number("long"), // required
56
+ * // errorCount: Number("long"), // required
57
+ * // },
58
+ * // pillarSpecificAggregates: { // RecommendationPillarSpecificAggregates
59
+ * // costOptimizing: { // RecommendationCostOptimizingAggregates
60
+ * // estimatedMonthlySavings: Number("double"), // required
61
+ * // estimatedPercentMonthlySavings: Number("double"), // required
62
+ * // },
63
+ * // },
64
+ * // createdAt: new Date("TIMESTAMP"),
65
+ * // lastUpdatedAt: new Date("TIMESTAMP"),
66
+ * // arn: "STRING_VALUE", // required
67
+ * // description: "STRING_VALUE", // required
68
+ * // createdBy: "STRING_VALUE",
69
+ * // updatedOnBehalfOf: "STRING_VALUE",
70
+ * // updatedOnBehalfOfJobTitle: "STRING_VALUE",
71
+ * // updateReason: "STRING_VALUE",
72
+ * // updateReasonCode: "non_critical_account" || "temporary_account" || "valid_business_case" || "other_methods_available" || "low_priority" || "not_applicable" || "other",
73
+ * // resolvedAt: new Date("TIMESTAMP"),
74
+ * // },
75
+ * // };
76
+ *
77
+ * ```
78
+ *
79
+ * @param GetRecommendationCommandInput - {@link GetRecommendationCommandInput}
80
+ * @returns {@link GetRecommendationCommandOutput}
81
+ * @see {@link GetRecommendationCommandInput} for command's `input` shape.
82
+ * @see {@link GetRecommendationCommandOutput} for command's `response` shape.
83
+ * @see {@link TrustedAdvisorClientResolvedConfig | config} for TrustedAdvisorClient's `config` shape.
84
+ *
85
+ * @throws {@link AccessDeniedException} (client fault)
86
+ * <p>Exception that access has been denied due to insufficient access</p>
87
+ *
88
+ * @throws {@link InternalServerException} (server fault)
89
+ * <p>Exception to notify that an unexpected internal error occurred during processing of the request</p>
90
+ *
91
+ * @throws {@link ResourceNotFoundException} (client fault)
92
+ * <p>Exception that the requested resource has not been found</p>
93
+ *
94
+ * @throws {@link ThrottlingException} (client fault)
95
+ * <p>Exception to notify that requests are being throttled</p>
96
+ *
97
+ * @throws {@link ValidationException} (client fault)
98
+ * <p>Exception that the request failed to satisfy service constraints</p>
99
+ *
100
+ * @throws {@link TrustedAdvisorServiceException}
101
+ * <p>Base exception class for all service exceptions from TrustedAdvisor service.</p>
102
+ *
103
+ */
104
+ export declare class GetRecommendationCommand extends $Command<GetRecommendationCommandInput, GetRecommendationCommandOutput, TrustedAdvisorClientResolvedConfig> {
105
+ readonly input: GetRecommendationCommandInput;
106
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
107
+ /**
108
+ * @public
109
+ */
110
+ constructor(input: GetRecommendationCommandInput);
111
+ /**
112
+ * @internal
113
+ */
114
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TrustedAdvisorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetRecommendationCommandInput, GetRecommendationCommandOutput>;
115
+ /**
116
+ * @internal
117
+ */
118
+ private serialize;
119
+ /**
120
+ * @internal
121
+ */
122
+ private deserialize;
123
+ }