@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.
- package/LICENSE +201 -0
- package/README.md +268 -0
- package/dist-cjs/CostOptimizationHub.js +25 -0
- package/dist-cjs/CostOptimizationHubClient.js +43 -0
- package/dist-cjs/commands/GetPreferencesCommand.js +51 -0
- package/dist-cjs/commands/GetRecommendationCommand.js +51 -0
- package/dist-cjs/commands/ListEnrollmentStatusesCommand.js +51 -0
- package/dist-cjs/commands/ListRecommendationSummariesCommand.js +51 -0
- package/dist-cjs/commands/ListRecommendationsCommand.js +51 -0
- package/dist-cjs/commands/UpdateEnrollmentStatusCommand.js +51 -0
- package/dist-cjs/commands/UpdatePreferencesCommand.js +51 -0
- package/dist-cjs/commands/index.js +10 -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/CostOptimizationHubServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +158 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListEnrollmentStatusesPaginator.js +29 -0
- package/dist-cjs/pagination/ListRecommendationSummariesPaginator.js +29 -0
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +830 -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/CostOptimizationHub.js +21 -0
- package/dist-es/CostOptimizationHubClient.js +39 -0
- package/dist-es/commands/GetPreferencesCommand.js +47 -0
- package/dist-es/commands/GetRecommendationCommand.js +47 -0
- package/dist-es/commands/ListEnrollmentStatusesCommand.js +47 -0
- package/dist-es/commands/ListRecommendationSummariesCommand.js +47 -0
- package/dist-es/commands/ListRecommendationsCommand.js +47 -0
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +47 -0
- package/dist-es/commands/UpdatePreferencesCommand.js +47 -0
- package/dist-es/commands/index.js +7 -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/CostOptimizationHubServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +150 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEnrollmentStatusesPaginator.js +25 -0
- package/dist-es/pagination/ListRecommendationSummariesPaginator.js +25 -0
- package/dist-es/pagination/ListRecommendationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +813 -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/CostOptimizationHub.d.ts +66 -0
- package/dist-types/CostOptimizationHubClient.d.ts +183 -0
- package/dist-types/commands/GetPreferencesCommand.d.ts +89 -0
- package/dist-types/commands/GetRecommendationCommand.d.ts +647 -0
- package/dist-types/commands/ListEnrollmentStatusesCommand.d.ts +99 -0
- package/dist-types/commands/ListRecommendationSummariesCommand.d.ts +138 -0
- package/dist-types/commands/ListRecommendationsCommand.d.ts +157 -0
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +94 -0
- package/dist-types/commands/UpdatePreferencesCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +7 -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 +22 -0
- package/dist-types/models/CostOptimizationHubServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2141 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListEnrollmentStatusesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendationSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +65 -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/CostOptimizationHub.d.ts +126 -0
- package/dist-types/ts3.4/CostOptimizationHubClient.d.ts +163 -0
- package/dist-types/ts3.4/commands/GetPreferencesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRecommendationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListEnrollmentStatusesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRecommendationSummariesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePreferencesCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -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/CostOptimizationHubServiceException.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 +734 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListEnrollmentStatusesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendationSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +102 -0
|
@@ -0,0 +1,99 @@
|
|
|
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 { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
5
|
+
import { ListEnrollmentStatusesRequest, ListEnrollmentStatusesResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListEnrollmentStatusesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListEnrollmentStatusesCommandInput extends ListEnrollmentStatusesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListEnrollmentStatusesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListEnrollmentStatusesCommandOutput extends ListEnrollmentStatusesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Retrieves the enrollment status for an account. It can also return the list of accounts
|
|
27
|
+
* that are enrolled under the organization.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { CostOptimizationHubClient, ListEnrollmentStatusesCommand } from "@aws-sdk/client-cost-optimization-hub"; // ES Modules import
|
|
32
|
+
* // const { CostOptimizationHubClient, ListEnrollmentStatusesCommand } = require("@aws-sdk/client-cost-optimization-hub"); // CommonJS import
|
|
33
|
+
* const client = new CostOptimizationHubClient(config);
|
|
34
|
+
* const input = { // ListEnrollmentStatusesRequest
|
|
35
|
+
* includeOrganizationInfo: true || false,
|
|
36
|
+
* accountId: "STRING_VALUE",
|
|
37
|
+
* nextToken: "STRING_VALUE",
|
|
38
|
+
* maxResults: Number("int"),
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListEnrollmentStatusesCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListEnrollmentStatusesResponse
|
|
43
|
+
* // items: [ // AccountEnrollmentStatuses
|
|
44
|
+
* // { // AccountEnrollmentStatus
|
|
45
|
+
* // accountId: "STRING_VALUE",
|
|
46
|
+
* // status: "Active" || "Inactive",
|
|
47
|
+
* // lastUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
48
|
+
* // createdTimestamp: new Date("TIMESTAMP"),
|
|
49
|
+
* // },
|
|
50
|
+
* // ],
|
|
51
|
+
* // nextToken: "STRING_VALUE",
|
|
52
|
+
* // };
|
|
53
|
+
*
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @param ListEnrollmentStatusesCommandInput - {@link ListEnrollmentStatusesCommandInput}
|
|
57
|
+
* @returns {@link ListEnrollmentStatusesCommandOutput}
|
|
58
|
+
* @see {@link ListEnrollmentStatusesCommandInput} for command's `input` shape.
|
|
59
|
+
* @see {@link ListEnrollmentStatusesCommandOutput} for command's `response` shape.
|
|
60
|
+
* @see {@link CostOptimizationHubClientResolvedConfig | config} for CostOptimizationHubClient's `config` shape.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
63
|
+
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link InternalServerException} (server fault)
|
|
66
|
+
* <p>An error on the server occurred during the processing of your request. Try again
|
|
67
|
+
* later.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
70
|
+
* <p>The request was denied due to request throttling.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ValidationException} (client fault)
|
|
73
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
74
|
+
* service.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link CostOptimizationHubServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare class ListEnrollmentStatusesCommand extends $Command<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput, CostOptimizationHubClientResolvedConfig> {
|
|
81
|
+
readonly input: ListEnrollmentStatusesCommandInput;
|
|
82
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
constructor(input: ListEnrollmentStatusesCommandInput);
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostOptimizationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput>;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
private serialize;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
private deserialize;
|
|
99
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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 { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
5
|
+
import { ListRecommendationSummariesRequest, ListRecommendationSummariesResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListRecommendationSummariesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListRecommendationSummariesCommandInput extends ListRecommendationSummariesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListRecommendationSummariesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListRecommendationSummariesCommandOutput extends ListRecommendationSummariesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns a concise representation of savings estimates for resources. Also returns de-duped
|
|
27
|
+
* savings across different types of recommendations.</p>
|
|
28
|
+
* <note>
|
|
29
|
+
* <p>The following filters are not supported for this API: <code>recommendationIds</code>,
|
|
30
|
+
* <code>resourceArns</code>, and <code>resourceIds</code>.</p>
|
|
31
|
+
* </note>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { CostOptimizationHubClient, ListRecommendationSummariesCommand } from "@aws-sdk/client-cost-optimization-hub"; // ES Modules import
|
|
36
|
+
* // const { CostOptimizationHubClient, ListRecommendationSummariesCommand } = require("@aws-sdk/client-cost-optimization-hub"); // CommonJS import
|
|
37
|
+
* const client = new CostOptimizationHubClient(config);
|
|
38
|
+
* const input = { // ListRecommendationSummariesRequest
|
|
39
|
+
* filter: { // Filter
|
|
40
|
+
* restartNeeded: true || false,
|
|
41
|
+
* rollbackPossible: true || false,
|
|
42
|
+
* implementationEfforts: [ // ImplementationEffortList
|
|
43
|
+
* "VeryLow" || "Low" || "Medium" || "High" || "VeryHigh",
|
|
44
|
+
* ],
|
|
45
|
+
* accountIds: [ // AccountIdList
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* regions: [ // RegionList
|
|
49
|
+
* "STRING_VALUE",
|
|
50
|
+
* ],
|
|
51
|
+
* resourceTypes: [ // ResourceTypeList
|
|
52
|
+
* "Ec2Instance" || "LambdaFunction" || "EbsVolume" || "EcsService" || "Ec2AutoScalingGroup" || "Ec2InstanceSavingsPlans" || "ComputeSavingsPlans" || "SageMakerSavingsPlans" || "Ec2ReservedInstances" || "RdsReservedInstances" || "OpenSearchReservedInstances" || "RedshiftReservedInstances" || "ElastiCacheReservedInstances",
|
|
53
|
+
* ],
|
|
54
|
+
* actionTypes: [ // ActionTypeList
|
|
55
|
+
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton",
|
|
56
|
+
* ],
|
|
57
|
+
* tags: [ // TagList
|
|
58
|
+
* { // Tag
|
|
59
|
+
* key: "STRING_VALUE",
|
|
60
|
+
* value: "STRING_VALUE",
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* resourceIds: [ // ResourceIdList
|
|
64
|
+
* "STRING_VALUE",
|
|
65
|
+
* ],
|
|
66
|
+
* resourceArns: [ // ResourceArnList
|
|
67
|
+
* "STRING_VALUE",
|
|
68
|
+
* ],
|
|
69
|
+
* recommendationIds: [ // RecommendationIdList
|
|
70
|
+
* "STRING_VALUE",
|
|
71
|
+
* ],
|
|
72
|
+
* },
|
|
73
|
+
* groupBy: "STRING_VALUE", // required
|
|
74
|
+
* maxResults: Number("int"),
|
|
75
|
+
* nextToken: "STRING_VALUE",
|
|
76
|
+
* };
|
|
77
|
+
* const command = new ListRecommendationSummariesCommand(input);
|
|
78
|
+
* const response = await client.send(command);
|
|
79
|
+
* // { // ListRecommendationSummariesResponse
|
|
80
|
+
* // estimatedTotalDedupedSavings: Number("double"),
|
|
81
|
+
* // items: [ // RecommendationSummariesList
|
|
82
|
+
* // { // RecommendationSummary
|
|
83
|
+
* // group: "STRING_VALUE",
|
|
84
|
+
* // estimatedMonthlySavings: Number("double"),
|
|
85
|
+
* // recommendationCount: Number("int"),
|
|
86
|
+
* // },
|
|
87
|
+
* // ],
|
|
88
|
+
* // groupBy: "STRING_VALUE",
|
|
89
|
+
* // currencyCode: "STRING_VALUE",
|
|
90
|
+
* // nextToken: "STRING_VALUE",
|
|
91
|
+
* // };
|
|
92
|
+
*
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @param ListRecommendationSummariesCommandInput - {@link ListRecommendationSummariesCommandInput}
|
|
96
|
+
* @returns {@link ListRecommendationSummariesCommandOutput}
|
|
97
|
+
* @see {@link ListRecommendationSummariesCommandInput} for command's `input` shape.
|
|
98
|
+
* @see {@link ListRecommendationSummariesCommandOutput} for command's `response` shape.
|
|
99
|
+
* @see {@link CostOptimizationHubClientResolvedConfig | config} for CostOptimizationHubClient's `config` shape.
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
102
|
+
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link InternalServerException} (server fault)
|
|
105
|
+
* <p>An error on the server occurred during the processing of your request. Try again
|
|
106
|
+
* later.</p>
|
|
107
|
+
*
|
|
108
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
109
|
+
* <p>The request was denied due to request throttling.</p>
|
|
110
|
+
*
|
|
111
|
+
* @throws {@link ValidationException} (client fault)
|
|
112
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
113
|
+
* service.</p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link CostOptimizationHubServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
export declare class ListRecommendationSummariesCommand extends $Command<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput, CostOptimizationHubClientResolvedConfig> {
|
|
120
|
+
readonly input: ListRecommendationSummariesCommandInput;
|
|
121
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
122
|
+
/**
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
constructor(input: ListRecommendationSummariesCommandInput);
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
*/
|
|
129
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostOptimizationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput>;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
private serialize;
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
*/
|
|
137
|
+
private deserialize;
|
|
138
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
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 { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
5
|
+
import { ListRecommendationsRequest, ListRecommendationsResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListRecommendationsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListRecommendationsCommandInput extends ListRecommendationsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListRecommendationsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListRecommendationsCommandOutput extends ListRecommendationsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns a list of recommendations.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { CostOptimizationHubClient, ListRecommendationsCommand } from "@aws-sdk/client-cost-optimization-hub"; // ES Modules import
|
|
31
|
+
* // const { CostOptimizationHubClient, ListRecommendationsCommand } = require("@aws-sdk/client-cost-optimization-hub"); // CommonJS import
|
|
32
|
+
* const client = new CostOptimizationHubClient(config);
|
|
33
|
+
* const input = { // ListRecommendationsRequest
|
|
34
|
+
* filter: { // Filter
|
|
35
|
+
* restartNeeded: true || false,
|
|
36
|
+
* rollbackPossible: true || false,
|
|
37
|
+
* implementationEfforts: [ // ImplementationEffortList
|
|
38
|
+
* "VeryLow" || "Low" || "Medium" || "High" || "VeryHigh",
|
|
39
|
+
* ],
|
|
40
|
+
* accountIds: [ // AccountIdList
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* regions: [ // RegionList
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* resourceTypes: [ // ResourceTypeList
|
|
47
|
+
* "Ec2Instance" || "LambdaFunction" || "EbsVolume" || "EcsService" || "Ec2AutoScalingGroup" || "Ec2InstanceSavingsPlans" || "ComputeSavingsPlans" || "SageMakerSavingsPlans" || "Ec2ReservedInstances" || "RdsReservedInstances" || "OpenSearchReservedInstances" || "RedshiftReservedInstances" || "ElastiCacheReservedInstances",
|
|
48
|
+
* ],
|
|
49
|
+
* actionTypes: [ // ActionTypeList
|
|
50
|
+
* "Rightsize" || "Stop" || "Upgrade" || "PurchaseSavingsPlans" || "PurchaseReservedInstances" || "MigrateToGraviton",
|
|
51
|
+
* ],
|
|
52
|
+
* tags: [ // TagList
|
|
53
|
+
* { // Tag
|
|
54
|
+
* key: "STRING_VALUE",
|
|
55
|
+
* value: "STRING_VALUE",
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* resourceIds: [ // ResourceIdList
|
|
59
|
+
* "STRING_VALUE",
|
|
60
|
+
* ],
|
|
61
|
+
* resourceArns: [ // ResourceArnList
|
|
62
|
+
* "STRING_VALUE",
|
|
63
|
+
* ],
|
|
64
|
+
* recommendationIds: [ // RecommendationIdList
|
|
65
|
+
* "STRING_VALUE",
|
|
66
|
+
* ],
|
|
67
|
+
* },
|
|
68
|
+
* orderBy: { // OrderBy
|
|
69
|
+
* dimension: "STRING_VALUE",
|
|
70
|
+
* order: "Asc" || "Desc",
|
|
71
|
+
* },
|
|
72
|
+
* includeAllRecommendations: true || false,
|
|
73
|
+
* maxResults: Number("int"),
|
|
74
|
+
* nextToken: "STRING_VALUE",
|
|
75
|
+
* };
|
|
76
|
+
* const command = new ListRecommendationsCommand(input);
|
|
77
|
+
* const response = await client.send(command);
|
|
78
|
+
* // { // ListRecommendationsResponse
|
|
79
|
+
* // items: [ // RecommendationList
|
|
80
|
+
* // { // Recommendation
|
|
81
|
+
* // recommendationId: "STRING_VALUE",
|
|
82
|
+
* // accountId: "STRING_VALUE",
|
|
83
|
+
* // region: "STRING_VALUE",
|
|
84
|
+
* // resourceId: "STRING_VALUE",
|
|
85
|
+
* // resourceArn: "STRING_VALUE",
|
|
86
|
+
* // currentResourceType: "STRING_VALUE",
|
|
87
|
+
* // recommendedResourceType: "STRING_VALUE",
|
|
88
|
+
* // estimatedMonthlySavings: Number("double"),
|
|
89
|
+
* // estimatedSavingsPercentage: Number("double"),
|
|
90
|
+
* // estimatedMonthlyCost: Number("double"),
|
|
91
|
+
* // currencyCode: "STRING_VALUE",
|
|
92
|
+
* // implementationEffort: "STRING_VALUE",
|
|
93
|
+
* // restartNeeded: true || false,
|
|
94
|
+
* // actionType: "STRING_VALUE",
|
|
95
|
+
* // rollbackPossible: true || false,
|
|
96
|
+
* // currentResourceSummary: "STRING_VALUE",
|
|
97
|
+
* // recommendedResourceSummary: "STRING_VALUE",
|
|
98
|
+
* // lastRefreshTimestamp: new Date("TIMESTAMP"),
|
|
99
|
+
* // recommendationLookbackPeriodInDays: Number("int"),
|
|
100
|
+
* // source: "ComputeOptimizer" || "CostExplorer",
|
|
101
|
+
* // tags: [ // TagList
|
|
102
|
+
* // { // Tag
|
|
103
|
+
* // key: "STRING_VALUE",
|
|
104
|
+
* // value: "STRING_VALUE",
|
|
105
|
+
* // },
|
|
106
|
+
* // ],
|
|
107
|
+
* // },
|
|
108
|
+
* // ],
|
|
109
|
+
* // nextToken: "STRING_VALUE",
|
|
110
|
+
* // };
|
|
111
|
+
*
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* @param ListRecommendationsCommandInput - {@link ListRecommendationsCommandInput}
|
|
115
|
+
* @returns {@link ListRecommendationsCommandOutput}
|
|
116
|
+
* @see {@link ListRecommendationsCommandInput} for command's `input` shape.
|
|
117
|
+
* @see {@link ListRecommendationsCommandOutput} for command's `response` shape.
|
|
118
|
+
* @see {@link CostOptimizationHubClientResolvedConfig | config} for CostOptimizationHubClient's `config` shape.
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
121
|
+
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link InternalServerException} (server fault)
|
|
124
|
+
* <p>An error on the server occurred during the processing of your request. Try again
|
|
125
|
+
* later.</p>
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
128
|
+
* <p>The request was denied due to request throttling.</p>
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link ValidationException} (client fault)
|
|
131
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
132
|
+
* service.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link CostOptimizationHubServiceException}
|
|
135
|
+
* <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
export declare class ListRecommendationsCommand extends $Command<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, CostOptimizationHubClientResolvedConfig> {
|
|
139
|
+
readonly input: ListRecommendationsCommandInput;
|
|
140
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
constructor(input: ListRecommendationsCommandInput);
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
*/
|
|
148
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostOptimizationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRecommendationsCommandInput, ListRecommendationsCommandOutput>;
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
private serialize;
|
|
153
|
+
/**
|
|
154
|
+
* @internal
|
|
155
|
+
*/
|
|
156
|
+
private deserialize;
|
|
157
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
5
|
+
import { UpdateEnrollmentStatusRequest, UpdateEnrollmentStatusResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateEnrollmentStatusCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateEnrollmentStatusCommandInput extends UpdateEnrollmentStatusRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateEnrollmentStatusCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateEnrollmentStatusCommandOutput extends UpdateEnrollmentStatusResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization
|
|
27
|
+
* Hub service.</p>
|
|
28
|
+
* <p>If the account is a management account of an organization, this action can also be used to
|
|
29
|
+
* enroll member accounts of the organization.</p>
|
|
30
|
+
* <p>You must have the appropriate permissions to opt in to Cost Optimization Hub and to view
|
|
31
|
+
* its recommendations. When you opt in, Cost Optimization Hub automatically creates a
|
|
32
|
+
* service-linked role in your account to access its data.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { CostOptimizationHubClient, UpdateEnrollmentStatusCommand } from "@aws-sdk/client-cost-optimization-hub"; // ES Modules import
|
|
37
|
+
* // const { CostOptimizationHubClient, UpdateEnrollmentStatusCommand } = require("@aws-sdk/client-cost-optimization-hub"); // CommonJS import
|
|
38
|
+
* const client = new CostOptimizationHubClient(config);
|
|
39
|
+
* const input = { // UpdateEnrollmentStatusRequest
|
|
40
|
+
* status: "Active" || "Inactive", // required
|
|
41
|
+
* includeMemberAccounts: true || false,
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateEnrollmentStatusCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // UpdateEnrollmentStatusResponse
|
|
46
|
+
* // status: "STRING_VALUE",
|
|
47
|
+
* // };
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param UpdateEnrollmentStatusCommandInput - {@link UpdateEnrollmentStatusCommandInput}
|
|
52
|
+
* @returns {@link UpdateEnrollmentStatusCommandOutput}
|
|
53
|
+
* @see {@link UpdateEnrollmentStatusCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link UpdateEnrollmentStatusCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link CostOptimizationHubClientResolvedConfig | config} for CostOptimizationHubClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>An error on the server occurred during the processing of your request. Try again
|
|
62
|
+
* later.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
65
|
+
* <p>The request was denied due to request throttling.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ValidationException} (client fault)
|
|
68
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
69
|
+
* service.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link CostOptimizationHubServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export declare class UpdateEnrollmentStatusCommand extends $Command<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, CostOptimizationHubClientResolvedConfig> {
|
|
76
|
+
readonly input: UpdateEnrollmentStatusCommandInput;
|
|
77
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
constructor(input: UpdateEnrollmentStatusCommandInput);
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostOptimizationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput>;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
private serialize;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
private deserialize;
|
|
94
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostOptimizationHubClient";
|
|
5
|
+
import { UpdatePreferencesRequest, UpdatePreferencesResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdatePreferencesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdatePreferencesCommandInput extends UpdatePreferencesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdatePreferencesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdatePreferencesCommandOutput extends UpdatePreferencesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Updates a set of preferences for an account in order to add account-specific preferences
|
|
27
|
+
* into the service. These preferences impact how the savings associated with recommendations are
|
|
28
|
+
* presented.</p>
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { CostOptimizationHubClient, UpdatePreferencesCommand } from "@aws-sdk/client-cost-optimization-hub"; // ES Modules import
|
|
33
|
+
* // const { CostOptimizationHubClient, UpdatePreferencesCommand } = require("@aws-sdk/client-cost-optimization-hub"); // CommonJS import
|
|
34
|
+
* const client = new CostOptimizationHubClient(config);
|
|
35
|
+
* const input = { // UpdatePreferencesRequest
|
|
36
|
+
* savingsEstimationMode: "BeforeDiscounts" || "AfterDiscounts",
|
|
37
|
+
* memberAccountDiscountVisibility: "All" || "None",
|
|
38
|
+
* };
|
|
39
|
+
* const command = new UpdatePreferencesCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // UpdatePreferencesResponse
|
|
42
|
+
* // savingsEstimationMode: "BeforeDiscounts" || "AfterDiscounts",
|
|
43
|
+
* // memberAccountDiscountVisibility: "All" || "None",
|
|
44
|
+
* // };
|
|
45
|
+
*
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @param UpdatePreferencesCommandInput - {@link UpdatePreferencesCommandInput}
|
|
49
|
+
* @returns {@link UpdatePreferencesCommandOutput}
|
|
50
|
+
* @see {@link UpdatePreferencesCommandInput} for command's `input` shape.
|
|
51
|
+
* @see {@link UpdatePreferencesCommandOutput} for command's `response` shape.
|
|
52
|
+
* @see {@link CostOptimizationHubClientResolvedConfig | config} for CostOptimizationHubClient's `config` shape.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
55
|
+
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link InternalServerException} (server fault)
|
|
58
|
+
* <p>An error on the server occurred during the processing of your request. Try again
|
|
59
|
+
* later.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
62
|
+
* <p>The request was denied due to request throttling.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services
|
|
66
|
+
* service.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link CostOptimizationHubServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
export declare class UpdatePreferencesCommand extends $Command<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput, CostOptimizationHubClientResolvedConfig> {
|
|
73
|
+
readonly input: UpdatePreferencesCommandInput;
|
|
74
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
75
|
+
/**
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
constructor(input: UpdatePreferencesCommandInput);
|
|
79
|
+
/**
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostOptimizationHubClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput>;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
private serialize;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
private deserialize;
|
|
91
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./GetPreferencesCommand";
|
|
2
|
+
export * from "./GetRecommendationCommand";
|
|
3
|
+
export * from "./ListEnrollmentStatusesCommand";
|
|
4
|
+
export * from "./ListRecommendationSummariesCommand";
|
|
5
|
+
export * from "./ListRecommendationsCommand";
|
|
6
|
+
export * from "./UpdateEnrollmentStatusCommand";
|
|
7
|
+
export * from "./UpdatePreferencesCommand";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | Provider<string>;
|
|
7
|
+
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
15
|
+
defaultSigningName: string;
|
|
16
|
+
};
|
|
17
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
18
|
+
Region?: string;
|
|
19
|
+
UseDualStack?: boolean;
|
|
20
|
+
UseFIPS?: boolean;
|
|
21
|
+
Endpoint?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface CostOptimizationHubExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>You can use the Cost Optimization Hub API to programmatically identify, filter, aggregate,
|
|
3
|
+
* and quantify savings for your cost optimization recommendations across multiple Amazon Web Services Regions and Amazon Web Services accounts in your organization.</p>
|
|
4
|
+
* <p>The Cost Optimization Hub API provides the following endpoint:</p>
|
|
5
|
+
* <ul>
|
|
6
|
+
* <li>
|
|
7
|
+
* <p> https://cost-optimization-hub.us-east-1.amazonaws.com </p>
|
|
8
|
+
* </li>
|
|
9
|
+
* </ul>
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
export * from "./CostOptimizationHubClient";
|
|
14
|
+
export * from "./CostOptimizationHub";
|
|
15
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
16
|
+
export { RuntimeExtension } from "./runtimeExtensions";
|
|
17
|
+
export { CostOptimizationHubExtensionConfiguration } from "./extensionConfiguration";
|
|
18
|
+
export * from "./commands";
|
|
19
|
+
export * from "./pagination";
|
|
20
|
+
export * from "./models";
|
|
21
|
+
import "@aws-sdk/util-endpoints";
|
|
22
|
+
export { CostOptimizationHubServiceException } from "./models/CostOptimizationHubServiceException";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* Base exception class for all service exceptions from CostOptimizationHub service.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CostOptimizationHubServiceException extends __ServiceException {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(options: __ServiceExceptionOptions);
|
|
13
|
+
}
|