@aws-sdk/client-cost-optimization-hub 3.458.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 (119) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +268 -0
  3. package/dist-cjs/CostOptimizationHub.js +25 -0
  4. package/dist-cjs/CostOptimizationHubClient.js +43 -0
  5. package/dist-cjs/commands/GetPreferencesCommand.js +51 -0
  6. package/dist-cjs/commands/GetRecommendationCommand.js +51 -0
  7. package/dist-cjs/commands/ListEnrollmentStatusesCommand.js +51 -0
  8. package/dist-cjs/commands/ListRecommendationSummariesCommand.js +51 -0
  9. package/dist-cjs/commands/ListRecommendationsCommand.js +51 -0
  10. package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +51 -0
  11. package/dist-cjs/commands/UpdatePreferencesCommand.js +51 -0
  12. package/dist-cjs/commands/index.js +10 -0
  13. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  14. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  15. package/dist-cjs/endpoint/ruleset.js +7 -0
  16. package/dist-cjs/extensionConfiguration.js +2 -0
  17. package/dist-cjs/index.js +12 -0
  18. package/dist-cjs/models/CostOptimizationHubServiceException.js +12 -0
  19. package/dist-cjs/models/index.js +4 -0
  20. package/dist-cjs/models/models_0.js +158 -0
  21. package/dist-cjs/pagination/Interfaces.js +2 -0
  22. package/dist-cjs/pagination/ListEnrollmentStatusesPaginator.js +29 -0
  23. package/dist-cjs/pagination/ListRecommendationSummariesPaginator.js +29 -0
  24. package/dist-cjs/pagination/ListRecommendationsPaginator.js +29 -0
  25. package/dist-cjs/pagination/index.js +7 -0
  26. package/dist-cjs/protocols/Aws_json1_0.js +830 -0
  27. package/dist-cjs/runtimeConfig.browser.js +39 -0
  28. package/dist-cjs/runtimeConfig.js +50 -0
  29. package/dist-cjs/runtimeConfig.native.js +15 -0
  30. package/dist-cjs/runtimeConfig.shared.js +24 -0
  31. package/dist-cjs/runtimeExtensions.js +22 -0
  32. package/dist-es/CostOptimizationHub.js +21 -0
  33. package/dist-es/CostOptimizationHubClient.js +39 -0
  34. package/dist-es/commands/GetPreferencesCommand.js +47 -0
  35. package/dist-es/commands/GetRecommendationCommand.js +47 -0
  36. package/dist-es/commands/ListEnrollmentStatusesCommand.js +47 -0
  37. package/dist-es/commands/ListRecommendationSummariesCommand.js +47 -0
  38. package/dist-es/commands/ListRecommendationsCommand.js +47 -0
  39. package/dist-es/commands/UpdateEnrollmentStatusCommand.js +47 -0
  40. package/dist-es/commands/UpdatePreferencesCommand.js +47 -0
  41. package/dist-es/commands/index.js +7 -0
  42. package/dist-es/endpoint/EndpointParameters.js +8 -0
  43. package/dist-es/endpoint/endpointResolver.js +8 -0
  44. package/dist-es/endpoint/ruleset.js +4 -0
  45. package/dist-es/extensionConfiguration.js +1 -0
  46. package/dist-es/index.js +7 -0
  47. package/dist-es/models/CostOptimizationHubServiceException.js +8 -0
  48. package/dist-es/models/index.js +1 -0
  49. package/dist-es/models/models_0.js +150 -0
  50. package/dist-es/pagination/Interfaces.js +1 -0
  51. package/dist-es/pagination/ListEnrollmentStatusesPaginator.js +25 -0
  52. package/dist-es/pagination/ListRecommendationSummariesPaginator.js +25 -0
  53. package/dist-es/pagination/ListRecommendationsPaginator.js +25 -0
  54. package/dist-es/pagination/index.js +4 -0
  55. package/dist-es/protocols/Aws_json1_0.js +813 -0
  56. package/dist-es/runtimeConfig.browser.js +34 -0
  57. package/dist-es/runtimeConfig.js +45 -0
  58. package/dist-es/runtimeConfig.native.js +11 -0
  59. package/dist-es/runtimeConfig.shared.js +20 -0
  60. package/dist-es/runtimeExtensions.js +18 -0
  61. package/dist-types/CostOptimizationHub.d.ts +66 -0
  62. package/dist-types/CostOptimizationHubClient.d.ts +183 -0
  63. package/dist-types/commands/GetPreferencesCommand.d.ts +89 -0
  64. package/dist-types/commands/GetRecommendationCommand.d.ts +647 -0
  65. package/dist-types/commands/ListEnrollmentStatusesCommand.d.ts +99 -0
  66. package/dist-types/commands/ListRecommendationSummariesCommand.d.ts +138 -0
  67. package/dist-types/commands/ListRecommendationsCommand.d.ts +157 -0
  68. package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +94 -0
  69. package/dist-types/commands/UpdatePreferencesCommand.d.ts +91 -0
  70. package/dist-types/commands/index.d.ts +7 -0
  71. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  72. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  73. package/dist-types/endpoint/ruleset.d.ts +2 -0
  74. package/dist-types/extensionConfiguration.d.ts +8 -0
  75. package/dist-types/index.d.ts +22 -0
  76. package/dist-types/models/CostOptimizationHubServiceException.d.ts +13 -0
  77. package/dist-types/models/index.d.ts +1 -0
  78. package/dist-types/models/models_0.d.ts +2141 -0
  79. package/dist-types/pagination/Interfaces.d.ts +8 -0
  80. package/dist-types/pagination/ListEnrollmentStatusesPaginator.d.ts +7 -0
  81. package/dist-types/pagination/ListRecommendationSummariesPaginator.d.ts +7 -0
  82. package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
  83. package/dist-types/pagination/index.d.ts +4 -0
  84. package/dist-types/protocols/Aws_json1_0.d.ts +65 -0
  85. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  86. package/dist-types/runtimeConfig.d.ts +46 -0
  87. package/dist-types/runtimeConfig.native.d.ts +45 -0
  88. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  89. package/dist-types/runtimeExtensions.d.ts +17 -0
  90. package/dist-types/ts3.4/CostOptimizationHub.d.ts +126 -0
  91. package/dist-types/ts3.4/CostOptimizationHubClient.d.ts +163 -0
  92. package/dist-types/ts3.4/commands/GetPreferencesCommand.d.ts +38 -0
  93. package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +39 -0
  94. package/dist-types/ts3.4/commands/ListEnrollmentStatusesCommand.d.ts +42 -0
  95. package/dist-types/ts3.4/commands/ListRecommendationSummariesCommand.d.ts +42 -0
  96. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +39 -0
  97. package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +42 -0
  98. package/dist-types/ts3.4/commands/UpdatePreferencesCommand.d.ts +39 -0
  99. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  100. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  101. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  102. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  103. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  104. package/dist-types/ts3.4/index.d.ts +10 -0
  105. package/dist-types/ts3.4/models/CostOptimizationHubServiceException.d.ts +8 -0
  106. package/dist-types/ts3.4/models/index.d.ts +1 -0
  107. package/dist-types/ts3.4/models/models_0.d.ts +734 -0
  108. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  109. package/dist-types/ts3.4/pagination/ListEnrollmentStatusesPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/ListRecommendationSummariesPaginator.d.ts +11 -0
  111. package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
  112. package/dist-types/ts3.4/pagination/index.d.ts +4 -0
  113. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +89 -0
  114. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
  115. package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
  116. package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
  117. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  118. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  119. package/package.json +102 -0
@@ -0,0 +1,8 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { CostOptimizationHubClient } from "../CostOptimizationHubClient";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface CostOptimizationHubPaginationConfiguration extends PaginationConfiguration {
7
+ client: CostOptimizationHubClient;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput } from "../commands/ListEnrollmentStatusesCommand";
3
+ import { CostOptimizationHubPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListEnrollmentStatuses(config: CostOptimizationHubPaginationConfiguration, input: ListEnrollmentStatusesCommandInput, ...additionalArguments: any): Paginator<ListEnrollmentStatusesCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput } from "../commands/ListRecommendationSummariesCommand";
3
+ import { CostOptimizationHubPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListRecommendationSummaries(config: CostOptimizationHubPaginationConfiguration, input: ListRecommendationSummariesCommandInput, ...additionalArguments: any): Paginator<ListRecommendationSummariesCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import { ListRecommendationsCommandInput, ListRecommendationsCommandOutput } from "../commands/ListRecommendationsCommand";
3
+ import { CostOptimizationHubPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListRecommendations(config: CostOptimizationHubPaginationConfiguration, input: ListRecommendationsCommandInput, ...additionalArguments: any): Paginator<ListRecommendationsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListEnrollmentStatusesPaginator";
3
+ export * from "./ListRecommendationSummariesPaginator";
4
+ export * from "./ListRecommendationsPaginator";
@@ -0,0 +1,65 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
4
+ import { GetRecommendationCommandInput, GetRecommendationCommandOutput } from "../commands/GetRecommendationCommand";
5
+ import { ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput } from "../commands/ListEnrollmentStatusesCommand";
6
+ import { ListRecommendationsCommandInput, ListRecommendationsCommandOutput } from "../commands/ListRecommendationsCommand";
7
+ import { ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput } from "../commands/ListRecommendationSummariesCommand";
8
+ import { UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput } from "../commands/UpdateEnrollmentStatusCommand";
9
+ import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "../commands/UpdatePreferencesCommand";
10
+ /**
11
+ * serializeAws_json1_0GetPreferencesCommand
12
+ */
13
+ export declare const se_GetPreferencesCommand: (input: GetPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
+ /**
15
+ * serializeAws_json1_0GetRecommendationCommand
16
+ */
17
+ export declare const se_GetRecommendationCommand: (input: GetRecommendationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
+ /**
19
+ * serializeAws_json1_0ListEnrollmentStatusesCommand
20
+ */
21
+ export declare const se_ListEnrollmentStatusesCommand: (input: ListEnrollmentStatusesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
+ /**
23
+ * serializeAws_json1_0ListRecommendationsCommand
24
+ */
25
+ export declare const se_ListRecommendationsCommand: (input: ListRecommendationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
26
+ /**
27
+ * serializeAws_json1_0ListRecommendationSummariesCommand
28
+ */
29
+ export declare const se_ListRecommendationSummariesCommand: (input: ListRecommendationSummariesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
30
+ /**
31
+ * serializeAws_json1_0UpdateEnrollmentStatusCommand
32
+ */
33
+ export declare const se_UpdateEnrollmentStatusCommand: (input: UpdateEnrollmentStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
34
+ /**
35
+ * serializeAws_json1_0UpdatePreferencesCommand
36
+ */
37
+ export declare const se_UpdatePreferencesCommand: (input: UpdatePreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
38
+ /**
39
+ * deserializeAws_json1_0GetPreferencesCommand
40
+ */
41
+ export declare const de_GetPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPreferencesCommandOutput>;
42
+ /**
43
+ * deserializeAws_json1_0GetRecommendationCommand
44
+ */
45
+ export declare const de_GetRecommendationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRecommendationCommandOutput>;
46
+ /**
47
+ * deserializeAws_json1_0ListEnrollmentStatusesCommand
48
+ */
49
+ export declare const de_ListEnrollmentStatusesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEnrollmentStatusesCommandOutput>;
50
+ /**
51
+ * deserializeAws_json1_0ListRecommendationsCommand
52
+ */
53
+ export declare const de_ListRecommendationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRecommendationsCommandOutput>;
54
+ /**
55
+ * deserializeAws_json1_0ListRecommendationSummariesCommand
56
+ */
57
+ export declare const de_ListRecommendationSummariesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRecommendationSummariesCommandOutput>;
58
+ /**
59
+ * deserializeAws_json1_0UpdateEnrollmentStatusCommand
60
+ */
61
+ export declare const de_UpdateEnrollmentStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateEnrollmentStatusCommandOutput>;
62
+ /**
63
+ * deserializeAws_json1_0UpdatePreferencesCommand
64
+ */
65
+ export declare const de_UpdatePreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdatePreferencesCommandOutput>;
@@ -0,0 +1,46 @@
1
+ import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
+ import { CostOptimizationHubClientConfig } from "./CostOptimizationHubClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: CostOptimizationHubClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<any>;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
18
+ retryMode: string | import("@smithy/types").Provider<string>;
19
+ sha256: import("@smithy/types").HashConstructor;
20
+ streamCollector: import("@smithy/types").StreamCollector;
21
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
+ apiVersion: string;
24
+ urlParser: import("@smithy/types").UrlParser;
25
+ base64Decoder: import("@smithy/types").Decoder;
26
+ base64Encoder: import("@smithy/types").Encoder;
27
+ utf8Decoder: import("@smithy/types").Decoder;
28
+ utf8Encoder: import("@smithy/types").Encoder;
29
+ disableHostPrefix: boolean;
30
+ serviceId: string;
31
+ logger: import("@smithy/types").Logger;
32
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
33
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
34
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
35
+ logger?: import("@smithy/types").Logger | undefined;
36
+ }) => import("@smithy/types").EndpointV2;
37
+ tls?: boolean | undefined;
38
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
40
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
+ signingEscapePath?: boolean | undefined;
42
+ systemClockOffset?: number | undefined;
43
+ signingRegion?: string | undefined;
44
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
+ };
@@ -0,0 +1,46 @@
1
+ import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
+ import { CostOptimizationHubClientConfig } from "./CostOptimizationHubClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const getRuntimeConfig: (config: CostOptimizationHubClientConfig) => {
7
+ runtime: string;
8
+ defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
+ maxAttempts: number | import("@smithy/types").Provider<number>;
13
+ region: string | import("@smithy/types").Provider<string>;
14
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
15
+ updateHttpClientConfig(key: never, value: never): void;
16
+ httpHandlerConfigs(): {};
17
+ }) | RequestHandler;
18
+ retryMode: string | import("@smithy/types").Provider<string>;
19
+ sha256: import("@smithy/types").HashConstructor;
20
+ streamCollector: import("@smithy/types").StreamCollector;
21
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
22
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
+ apiVersion: string;
24
+ urlParser: import("@smithy/types").UrlParser;
25
+ base64Decoder: import("@smithy/types").Decoder;
26
+ base64Encoder: import("@smithy/types").Encoder;
27
+ utf8Decoder: import("@smithy/types").Decoder;
28
+ utf8Encoder: import("@smithy/types").Encoder;
29
+ disableHostPrefix: boolean;
30
+ serviceId: string;
31
+ logger: import("@smithy/types").Logger;
32
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
33
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
34
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
35
+ logger?: import("@smithy/types").Logger | undefined;
36
+ }) => import("@smithy/types").EndpointV2;
37
+ tls?: boolean | undefined;
38
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
40
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
+ signingEscapePath?: boolean | undefined;
42
+ systemClockOffset?: number | undefined;
43
+ signingRegion?: string | undefined;
44
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
+ };
@@ -0,0 +1,45 @@
1
+ import { CostOptimizationHubClientConfig } from "./CostOptimizationHubClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: CostOptimizationHubClientConfig) => {
6
+ runtime: string;
7
+ sha256: import("@smithy/types").HashConstructor;
8
+ requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
9
+ updateHttpClientConfig(key: never, value: never): void;
10
+ httpHandlerConfigs(): {};
11
+ }) | import("@smithy/fetch-http-handler").FetchHttpHandler;
12
+ apiVersion: string;
13
+ urlParser: import("@smithy/types").UrlParser;
14
+ bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
15
+ streamCollector: import("@smithy/types").StreamCollector;
16
+ base64Decoder: import("@smithy/types").Decoder;
17
+ base64Encoder: import("@smithy/types").Encoder;
18
+ utf8Decoder: import("@smithy/types").Decoder;
19
+ utf8Encoder: import("@smithy/types").Encoder;
20
+ disableHostPrefix: boolean;
21
+ serviceId: string;
22
+ useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
+ useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
+ region: string | import("@smithy/types").Provider<any>;
25
+ credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
26
+ defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
27
+ maxAttempts: number | import("@smithy/types").Provider<number>;
28
+ retryMode: string | import("@smithy/types").Provider<string>;
29
+ logger: import("@smithy/types").Logger;
30
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
31
+ defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
32
+ endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
33
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
34
+ logger?: import("@smithy/types").Logger | undefined;
35
+ }) => import("@smithy/types").EndpointV2;
36
+ tls?: boolean | undefined;
37
+ retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
38
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
40
+ signingEscapePath?: boolean | undefined;
41
+ systemClockOffset?: number | undefined;
42
+ signingRegion?: string | undefined;
43
+ signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
44
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
+ };
@@ -0,0 +1,19 @@
1
+ import { CostOptimizationHubClientConfig } from "./CostOptimizationHubClient";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const getRuntimeConfig: (config: CostOptimizationHubClientConfig) => {
6
+ apiVersion: string;
7
+ base64Decoder: import("@smithy/types").Decoder;
8
+ base64Encoder: import("@smithy/types").Encoder;
9
+ disableHostPrefix: boolean;
10
+ endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
11
+ logger?: import("@smithy/types").Logger | undefined;
12
+ }) => import("@smithy/types").EndpointV2;
13
+ extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ logger: import("@smithy/types").Logger;
15
+ serviceId: string;
16
+ urlParser: import("@smithy/types").UrlParser;
17
+ utf8Decoder: import("@smithy/types").Decoder;
18
+ utf8Encoder: import("@smithy/types").Encoder;
19
+ };
@@ -0,0 +1,17 @@
1
+ import { CostOptimizationHubExtensionConfiguration } from "./extensionConfiguration";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface RuntimeExtension {
6
+ configure(extensionConfiguration: CostOptimizationHubExtensionConfiguration): void;
7
+ }
8
+ /**
9
+ * @public
10
+ */
11
+ export interface RuntimeExtensionsConfig {
12
+ extensions: RuntimeExtension[];
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
@@ -0,0 +1,126 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ GetPreferencesCommandInput,
4
+ GetPreferencesCommandOutput,
5
+ } from "./commands/GetPreferencesCommand";
6
+ import {
7
+ GetRecommendationCommandInput,
8
+ GetRecommendationCommandOutput,
9
+ } from "./commands/GetRecommendationCommand";
10
+ import {
11
+ ListEnrollmentStatusesCommandInput,
12
+ ListEnrollmentStatusesCommandOutput,
13
+ } from "./commands/ListEnrollmentStatusesCommand";
14
+ import {
15
+ ListRecommendationsCommandInput,
16
+ ListRecommendationsCommandOutput,
17
+ } from "./commands/ListRecommendationsCommand";
18
+ import {
19
+ ListRecommendationSummariesCommandInput,
20
+ ListRecommendationSummariesCommandOutput,
21
+ } from "./commands/ListRecommendationSummariesCommand";
22
+ import {
23
+ UpdateEnrollmentStatusCommandInput,
24
+ UpdateEnrollmentStatusCommandOutput,
25
+ } from "./commands/UpdateEnrollmentStatusCommand";
26
+ import {
27
+ UpdatePreferencesCommandInput,
28
+ UpdatePreferencesCommandOutput,
29
+ } from "./commands/UpdatePreferencesCommand";
30
+ import { CostOptimizationHubClient } from "./CostOptimizationHubClient";
31
+ export interface CostOptimizationHub {
32
+ getPreferences(
33
+ args: GetPreferencesCommandInput,
34
+ options?: __HttpHandlerOptions
35
+ ): Promise<GetPreferencesCommandOutput>;
36
+ getPreferences(
37
+ args: GetPreferencesCommandInput,
38
+ cb: (err: any, data?: GetPreferencesCommandOutput) => void
39
+ ): void;
40
+ getPreferences(
41
+ args: GetPreferencesCommandInput,
42
+ options: __HttpHandlerOptions,
43
+ cb: (err: any, data?: GetPreferencesCommandOutput) => void
44
+ ): void;
45
+ getRecommendation(
46
+ args: GetRecommendationCommandInput,
47
+ options?: __HttpHandlerOptions
48
+ ): Promise<GetRecommendationCommandOutput>;
49
+ getRecommendation(
50
+ args: GetRecommendationCommandInput,
51
+ cb: (err: any, data?: GetRecommendationCommandOutput) => void
52
+ ): void;
53
+ getRecommendation(
54
+ args: GetRecommendationCommandInput,
55
+ options: __HttpHandlerOptions,
56
+ cb: (err: any, data?: GetRecommendationCommandOutput) => void
57
+ ): void;
58
+ listEnrollmentStatuses(
59
+ args: ListEnrollmentStatusesCommandInput,
60
+ options?: __HttpHandlerOptions
61
+ ): Promise<ListEnrollmentStatusesCommandOutput>;
62
+ listEnrollmentStatuses(
63
+ args: ListEnrollmentStatusesCommandInput,
64
+ cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void
65
+ ): void;
66
+ listEnrollmentStatuses(
67
+ args: ListEnrollmentStatusesCommandInput,
68
+ options: __HttpHandlerOptions,
69
+ cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void
70
+ ): void;
71
+ listRecommendations(
72
+ args: ListRecommendationsCommandInput,
73
+ options?: __HttpHandlerOptions
74
+ ): Promise<ListRecommendationsCommandOutput>;
75
+ listRecommendations(
76
+ args: ListRecommendationsCommandInput,
77
+ cb: (err: any, data?: ListRecommendationsCommandOutput) => void
78
+ ): void;
79
+ listRecommendations(
80
+ args: ListRecommendationsCommandInput,
81
+ options: __HttpHandlerOptions,
82
+ cb: (err: any, data?: ListRecommendationsCommandOutput) => void
83
+ ): void;
84
+ listRecommendationSummaries(
85
+ args: ListRecommendationSummariesCommandInput,
86
+ options?: __HttpHandlerOptions
87
+ ): Promise<ListRecommendationSummariesCommandOutput>;
88
+ listRecommendationSummaries(
89
+ args: ListRecommendationSummariesCommandInput,
90
+ cb: (err: any, data?: ListRecommendationSummariesCommandOutput) => void
91
+ ): void;
92
+ listRecommendationSummaries(
93
+ args: ListRecommendationSummariesCommandInput,
94
+ options: __HttpHandlerOptions,
95
+ cb: (err: any, data?: ListRecommendationSummariesCommandOutput) => void
96
+ ): void;
97
+ updateEnrollmentStatus(
98
+ args: UpdateEnrollmentStatusCommandInput,
99
+ options?: __HttpHandlerOptions
100
+ ): Promise<UpdateEnrollmentStatusCommandOutput>;
101
+ updateEnrollmentStatus(
102
+ args: UpdateEnrollmentStatusCommandInput,
103
+ cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void
104
+ ): void;
105
+ updateEnrollmentStatus(
106
+ args: UpdateEnrollmentStatusCommandInput,
107
+ options: __HttpHandlerOptions,
108
+ cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void
109
+ ): void;
110
+ updatePreferences(
111
+ args: UpdatePreferencesCommandInput,
112
+ options?: __HttpHandlerOptions
113
+ ): Promise<UpdatePreferencesCommandOutput>;
114
+ updatePreferences(
115
+ args: UpdatePreferencesCommandInput,
116
+ cb: (err: any, data?: UpdatePreferencesCommandOutput) => void
117
+ ): void;
118
+ updatePreferences(
119
+ args: UpdatePreferencesCommandInput,
120
+ options: __HttpHandlerOptions,
121
+ cb: (err: any, data?: UpdatePreferencesCommandOutput) => void
122
+ ): void;
123
+ }
124
+ export declare class CostOptimizationHub
125
+ extends CostOptimizationHubClient
126
+ implements CostOptimizationHub {}
@@ -0,0 +1,163 @@
1
+ import {
2
+ HostHeaderInputConfig,
3
+ HostHeaderResolvedConfig,
4
+ } from "@aws-sdk/middleware-host-header";
5
+ import {
6
+ AwsAuthInputConfig,
7
+ AwsAuthResolvedConfig,
8
+ } from "@aws-sdk/middleware-signing";
9
+ import {
10
+ UserAgentInputConfig,
11
+ UserAgentResolvedConfig,
12
+ } from "@aws-sdk/middleware-user-agent";
13
+ import { Credentials as __Credentials } from "@aws-sdk/types";
14
+ import {
15
+ RegionInputConfig,
16
+ RegionResolvedConfig,
17
+ } from "@smithy/config-resolver";
18
+ import {
19
+ EndpointInputConfig,
20
+ EndpointResolvedConfig,
21
+ } from "@smithy/middleware-endpoint";
22
+ import {
23
+ RetryInputConfig,
24
+ RetryResolvedConfig,
25
+ } from "@smithy/middleware-retry";
26
+ import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
27
+ import {
28
+ Client as __Client,
29
+ DefaultsMode as __DefaultsMode,
30
+ SmithyConfiguration as __SmithyConfiguration,
31
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
+ } from "@smithy/smithy-client";
33
+ import {
34
+ BodyLengthCalculator as __BodyLengthCalculator,
35
+ CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
+ ChecksumConstructor as __ChecksumConstructor,
37
+ Decoder as __Decoder,
38
+ Encoder as __Encoder,
39
+ HashConstructor as __HashConstructor,
40
+ HttpHandlerOptions as __HttpHandlerOptions,
41
+ Logger as __Logger,
42
+ Provider as __Provider,
43
+ Provider,
44
+ StreamCollector as __StreamCollector,
45
+ UrlParser as __UrlParser,
46
+ UserAgent as __UserAgent,
47
+ } from "@smithy/types";
48
+ import {
49
+ GetPreferencesCommandInput,
50
+ GetPreferencesCommandOutput,
51
+ } from "./commands/GetPreferencesCommand";
52
+ import {
53
+ GetRecommendationCommandInput,
54
+ GetRecommendationCommandOutput,
55
+ } from "./commands/GetRecommendationCommand";
56
+ import {
57
+ ListEnrollmentStatusesCommandInput,
58
+ ListEnrollmentStatusesCommandOutput,
59
+ } from "./commands/ListEnrollmentStatusesCommand";
60
+ import {
61
+ ListRecommendationsCommandInput,
62
+ ListRecommendationsCommandOutput,
63
+ } from "./commands/ListRecommendationsCommand";
64
+ import {
65
+ ListRecommendationSummariesCommandInput,
66
+ ListRecommendationSummariesCommandOutput,
67
+ } from "./commands/ListRecommendationSummariesCommand";
68
+ import {
69
+ UpdateEnrollmentStatusCommandInput,
70
+ UpdateEnrollmentStatusCommandOutput,
71
+ } from "./commands/UpdateEnrollmentStatusCommand";
72
+ import {
73
+ UpdatePreferencesCommandInput,
74
+ UpdatePreferencesCommandOutput,
75
+ } from "./commands/UpdatePreferencesCommand";
76
+ import {
77
+ ClientInputEndpointParameters,
78
+ ClientResolvedEndpointParameters,
79
+ EndpointParameters,
80
+ } from "./endpoint/EndpointParameters";
81
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
82
+ export { __Client };
83
+ export type ServiceInputTypes =
84
+ | GetPreferencesCommandInput
85
+ | GetRecommendationCommandInput
86
+ | ListEnrollmentStatusesCommandInput
87
+ | ListRecommendationSummariesCommandInput
88
+ | ListRecommendationsCommandInput
89
+ | UpdateEnrollmentStatusCommandInput
90
+ | UpdatePreferencesCommandInput;
91
+ export type ServiceOutputTypes =
92
+ | GetPreferencesCommandOutput
93
+ | GetRecommendationCommandOutput
94
+ | ListEnrollmentStatusesCommandOutput
95
+ | ListRecommendationSummariesCommandOutput
96
+ | ListRecommendationsCommandOutput
97
+ | UpdateEnrollmentStatusCommandOutput
98
+ | UpdatePreferencesCommandOutput;
99
+ export interface ClientDefaults
100
+ extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
101
+ requestHandler?: __HttpHandler;
102
+ sha256?: __ChecksumConstructor | __HashConstructor;
103
+ urlParser?: __UrlParser;
104
+ bodyLengthChecker?: __BodyLengthCalculator;
105
+ streamCollector?: __StreamCollector;
106
+ base64Decoder?: __Decoder;
107
+ base64Encoder?: __Encoder;
108
+ utf8Decoder?: __Decoder;
109
+ utf8Encoder?: __Encoder;
110
+ runtime?: string;
111
+ disableHostPrefix?: boolean;
112
+ serviceId?: string;
113
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
114
+ useFipsEndpoint?: boolean | __Provider<boolean>;
115
+ region?: string | __Provider<string>;
116
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
117
+ defaultUserAgentProvider?: Provider<__UserAgent>;
118
+ maxAttempts?: number | __Provider<number>;
119
+ retryMode?: string | __Provider<string>;
120
+ logger?: __Logger;
121
+ extensions?: RuntimeExtension[];
122
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
123
+ }
124
+ export type CostOptimizationHubClientConfigType = Partial<
125
+ __SmithyConfiguration<__HttpHandlerOptions>
126
+ > &
127
+ ClientDefaults &
128
+ RegionInputConfig &
129
+ EndpointInputConfig<EndpointParameters> &
130
+ RetryInputConfig &
131
+ HostHeaderInputConfig &
132
+ AwsAuthInputConfig &
133
+ UserAgentInputConfig &
134
+ ClientInputEndpointParameters;
135
+ export interface CostOptimizationHubClientConfig
136
+ extends CostOptimizationHubClientConfigType {}
137
+ export type CostOptimizationHubClientResolvedConfigType =
138
+ __SmithyResolvedConfiguration<__HttpHandlerOptions> &
139
+ Required<ClientDefaults> &
140
+ RuntimeExtensionsConfig &
141
+ RegionResolvedConfig &
142
+ EndpointResolvedConfig<EndpointParameters> &
143
+ RetryResolvedConfig &
144
+ HostHeaderResolvedConfig &
145
+ AwsAuthResolvedConfig &
146
+ UserAgentResolvedConfig &
147
+ ClientResolvedEndpointParameters;
148
+ export interface CostOptimizationHubClientResolvedConfig
149
+ extends CostOptimizationHubClientResolvedConfigType {}
150
+ export declare class CostOptimizationHubClient extends __Client<
151
+ __HttpHandlerOptions,
152
+ ServiceInputTypes,
153
+ ServiceOutputTypes,
154
+ CostOptimizationHubClientResolvedConfig
155
+ > {
156
+ readonly config: CostOptimizationHubClientResolvedConfig;
157
+ constructor(
158
+ ...[
159
+ configuration,
160
+ ]: __CheckOptionalClientConfig<CostOptimizationHubClientConfig>
161
+ );
162
+ destroy(): void;
163
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CostOptimizationHubClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CostOptimizationHubClient";
14
+ import {
15
+ GetPreferencesRequest,
16
+ GetPreferencesResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetPreferencesCommandInput extends GetPreferencesRequest {}
20
+ export interface GetPreferencesCommandOutput
21
+ extends GetPreferencesResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetPreferencesCommand extends $Command<
24
+ GetPreferencesCommandInput,
25
+ GetPreferencesCommandOutput,
26
+ CostOptimizationHubClientResolvedConfig
27
+ > {
28
+ readonly input: GetPreferencesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetPreferencesCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: CostOptimizationHubClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetPreferencesCommandInput, GetPreferencesCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ CostOptimizationHubClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../CostOptimizationHubClient";
14
+ import {
15
+ GetRecommendationRequest,
16
+ GetRecommendationResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetRecommendationCommandInput
20
+ extends GetRecommendationRequest {}
21
+ export interface GetRecommendationCommandOutput
22
+ extends GetRecommendationResponse,
23
+ __MetadataBearer {}
24
+ export declare class GetRecommendationCommand extends $Command<
25
+ GetRecommendationCommandInput,
26
+ GetRecommendationCommandOutput,
27
+ CostOptimizationHubClientResolvedConfig
28
+ > {
29
+ readonly input: GetRecommendationCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: GetRecommendationCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: CostOptimizationHubClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<GetRecommendationCommandInput, GetRecommendationCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }