@aws-sdk/client-compute-optimizer-automation 3.938.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 +392 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1668 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +41 -0
- package/dist-es/ComputeOptimizerAutomation.js +53 -0
- package/dist-es/ComputeOptimizerAutomationClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateAccountsCommand.js +16 -0
- package/dist-es/commands/CreateAutomationRuleCommand.js +16 -0
- package/dist-es/commands/DeleteAutomationRuleCommand.js +16 -0
- package/dist-es/commands/DisassociateAccountsCommand.js +16 -0
- package/dist-es/commands/GetAutomationEventCommand.js +16 -0
- package/dist-es/commands/GetAutomationRuleCommand.js +16 -0
- package/dist-es/commands/GetEnrollmentConfigurationCommand.js +16 -0
- package/dist-es/commands/ListAccountsCommand.js +16 -0
- package/dist-es/commands/ListAutomationEventStepsCommand.js +16 -0
- package/dist-es/commands/ListAutomationEventSummariesCommand.js +16 -0
- package/dist-es/commands/ListAutomationEventsCommand.js +16 -0
- package/dist-es/commands/ListAutomationRulePreviewCommand.js +16 -0
- package/dist-es/commands/ListAutomationRulePreviewSummariesCommand.js +16 -0
- package/dist-es/commands/ListAutomationRulesCommand.js +16 -0
- package/dist-es/commands/ListRecommendedActionSummariesCommand.js +16 -0
- package/dist-es/commands/ListRecommendedActionsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/RollbackAutomationEventCommand.js +16 -0
- package/dist-es/commands/StartAutomationEventCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateAutomationRuleCommand.js +16 -0
- package/dist-es/commands/UpdateEnrollmentConfigurationCommand.js +16 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -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/ComputeOptimizerAutomationServiceException.js +8 -0
- package/dist-es/models/enums.js +74 -0
- package/dist-es/models/errors.js +145 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccountsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationEventStepsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationEventSummariesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationEventsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationRulePreviewPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationRulePreviewSummariesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationRulesPaginator.js +4 -0
- package/dist-es/pagination/ListRecommendedActionSummariesPaginator.js +4 -0
- package/dist-es/pagination/ListRecommendedActionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +10 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +37 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +950 -0
- package/dist-types/ComputeOptimizerAutomation.d.ts +178 -0
- package/dist-types/ComputeOptimizerAutomationClient.d.ts +219 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AssociateAccountsCommand.d.ts +112 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +294 -0
- package/dist-types/commands/DeleteAutomationRuleCommand.d.ts +104 -0
- package/dist-types/commands/DisassociateAccountsCommand.d.ts +112 -0
- package/dist-types/commands/GetAutomationEventCommand.d.ts +117 -0
- package/dist-types/commands/GetAutomationRuleCommand.d.ts +195 -0
- package/dist-types/commands/GetEnrollmentConfigurationCommand.d.ts +99 -0
- package/dist-types/commands/ListAccountsCommand.d.ts +108 -0
- package/dist-types/commands/ListAutomationEventStepsCommand.d.ts +117 -0
- package/dist-types/commands/ListAutomationEventSummariesCommand.d.ts +130 -0
- package/dist-types/commands/ListAutomationEventsCommand.d.ts +130 -0
- package/dist-types/commands/ListAutomationRulePreviewCommand.d.ts +219 -0
- package/dist-types/commands/ListAutomationRulePreviewSummariesCommand.d.ts +186 -0
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +133 -0
- package/dist-types/commands/ListRecommendedActionSummariesCommand.d.ts +118 -0
- package/dist-types/commands/ListRecommendedActionsCommand.d.ts +151 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +103 -0
- package/dist-types/commands/RollbackAutomationEventCommand.d.ts +106 -0
- package/dist-types/commands/StartAutomationEventCommand.d.ts +110 -0
- package/dist-types/commands/TagResourceCommand.d.ts +110 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UpdateAutomationRuleCommand.d.ts +281 -0
- package/dist-types/commands/UpdateEnrollmentConfigurationCommand.d.ts +110 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -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 +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/ComputeOptimizerAutomationServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +178 -0
- package/dist-types/models/errors.d.ts +146 -0
- package/dist-types/models/models_0.d.ts +2028 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationEventStepsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationEventSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationRulePreviewPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationRulesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendedActionSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendedActionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/runtimeConfig.browser.d.ts +51 -0
- package/dist-types/runtimeConfig.d.ts +51 -0
- package/dist-types/runtimeConfig.native.d.ts +50 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +141 -0
- package/dist-types/ts3.4/ComputeOptimizerAutomation.d.ts +411 -0
- package/dist-types/ts3.4/ComputeOptimizerAutomationClient.d.ts +264 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AssociateAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomationEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEnrollmentConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListAutomationEventStepsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationEventSummariesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationEventsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulePreviewCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulePreviewSummariesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRecommendedActionSummariesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRecommendedActionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RollbackAutomationEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartAutomationEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateEnrollmentConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -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 +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/ComputeOptimizerAutomationServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +93 -0
- package/dist-types/ts3.4/models/errors.d.ts +87 -0
- package/dist-types/ts3.4/models/models_0.d.ts +520 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationEventStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationEventSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationRulePreviewPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationRulesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendedActionSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendedActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +102 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +146 -0
- package/package.json +99 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerAutomationClient";
|
|
4
|
+
import { ListAutomationRulesRequest, ListAutomationRulesResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListAutomationRulesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListAutomationRulesCommandInput extends ListAutomationRulesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListAutomationRulesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListAutomationRulesCommandOutput extends ListAutomationRulesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListAutomationRulesCommand_base: {
|
|
25
|
+
new (input: ListAutomationRulesCommandInput): import("@smithy/smithy-client").CommandImpl<ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListAutomationRulesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Lists the automation rules that match specified filters. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, ListAutomationRulesCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, ListAutomationRulesCommand } = require("@aws-sdk/client-compute-optimizer-automation"); // CommonJS import
|
|
36
|
+
* // import type { ComputeOptimizerAutomationClientConfig } from "@aws-sdk/client-compute-optimizer-automation";
|
|
37
|
+
* const config = {}; // type is ComputeOptimizerAutomationClientConfig
|
|
38
|
+
* const client = new ComputeOptimizerAutomationClient(config);
|
|
39
|
+
* const input = { // ListAutomationRulesRequest
|
|
40
|
+
* filters: [ // FilterList
|
|
41
|
+
* { // Filter
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* values: [ // FilterValues // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* maxResults: Number("int"),
|
|
49
|
+
* nextToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new ListAutomationRulesCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // ListAutomationRulesResponse
|
|
54
|
+
* // automationRules: [ // AutomationRules
|
|
55
|
+
* // { // AutomationRule
|
|
56
|
+
* // ruleArn: "STRING_VALUE",
|
|
57
|
+
* // ruleId: "STRING_VALUE",
|
|
58
|
+
* // name: "STRING_VALUE",
|
|
59
|
+
* // description: "STRING_VALUE",
|
|
60
|
+
* // ruleType: "OrganizationRule" || "AccountRule",
|
|
61
|
+
* // ruleRevision: Number("long"),
|
|
62
|
+
* // accountId: "STRING_VALUE",
|
|
63
|
+
* // organizationConfiguration: { // OrganizationConfiguration
|
|
64
|
+
* // ruleApplyOrder: "BeforeAccountRules" || "AfterAccountRules",
|
|
65
|
+
* // accountIds: [ // OrganizationConfigurationAccountIds
|
|
66
|
+
* // "STRING_VALUE",
|
|
67
|
+
* // ],
|
|
68
|
+
* // },
|
|
69
|
+
* // priority: "STRING_VALUE",
|
|
70
|
+
* // recommendedActionTypes: [ // RecommendedActionTypeList
|
|
71
|
+
* // "SnapshotAndDeleteUnattachedEbsVolume" || "UpgradeEbsVolumeType",
|
|
72
|
+
* // ],
|
|
73
|
+
* // schedule: { // Schedule
|
|
74
|
+
* // scheduleExpression: "STRING_VALUE",
|
|
75
|
+
* // scheduleExpressionTimezone: "STRING_VALUE",
|
|
76
|
+
* // executionWindowInMinutes: Number("int"),
|
|
77
|
+
* // },
|
|
78
|
+
* // status: "Active" || "Inactive",
|
|
79
|
+
* // createdTimestamp: new Date("TIMESTAMP"),
|
|
80
|
+
* // lastUpdatedTimestamp: new Date("TIMESTAMP"),
|
|
81
|
+
* // },
|
|
82
|
+
* // ],
|
|
83
|
+
* // nextToken: "STRING_VALUE",
|
|
84
|
+
* // };
|
|
85
|
+
*
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @param ListAutomationRulesCommandInput - {@link ListAutomationRulesCommandInput}
|
|
89
|
+
* @returns {@link ListAutomationRulesCommandOutput}
|
|
90
|
+
* @see {@link ListAutomationRulesCommandInput} for command's `input` shape.
|
|
91
|
+
* @see {@link ListAutomationRulesCommandOutput} for command's `response` shape.
|
|
92
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
95
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
98
|
+
* <p> You are not authorized to perform this action. </p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link InternalServerException} (server fault)
|
|
101
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
104
|
+
* <p> One or more parameter values are not valid. </p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
107
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
110
|
+
* <p> The service is temporarily unavailable. </p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
113
|
+
* <p> The request was denied due to request throttling. </p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
116
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
117
|
+
*
|
|
118
|
+
*
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
export declare class ListAutomationRulesCommand extends ListAutomationRulesCommand_base {
|
|
122
|
+
/** @internal type navigation helper, not in runtime. */
|
|
123
|
+
protected static __types: {
|
|
124
|
+
api: {
|
|
125
|
+
input: ListAutomationRulesRequest;
|
|
126
|
+
output: ListAutomationRulesResponse;
|
|
127
|
+
};
|
|
128
|
+
sdk: {
|
|
129
|
+
input: ListAutomationRulesCommandInput;
|
|
130
|
+
output: ListAutomationRulesCommandOutput;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerAutomationClient";
|
|
4
|
+
import { ListRecommendedActionSummariesRequest, ListRecommendedActionSummariesResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListRecommendedActionSummariesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListRecommendedActionSummariesCommandInput extends ListRecommendedActionSummariesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListRecommendedActionSummariesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListRecommendedActionSummariesCommandOutput extends ListRecommendedActionSummariesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListRecommendedActionSummariesCommand_base: {
|
|
25
|
+
new (input: ListRecommendedActionSummariesCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendedActionSummariesCommandInput, ListRecommendedActionSummariesCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListRecommendedActionSummariesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListRecommendedActionSummariesCommandInput, ListRecommendedActionSummariesCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Provides a summary of recommended actions based on specified filters. </p> <note> <p>Management accounts and delegated administrators can retrieve recommended actions that include associated member accounts. You can associate a member account using <code>AssociateAccounts</code>.</p> </note>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, ListRecommendedActionSummariesCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, ListRecommendedActionSummariesCommand } = require("@aws-sdk/client-compute-optimizer-automation"); // CommonJS import
|
|
36
|
+
* // import type { ComputeOptimizerAutomationClientConfig } from "@aws-sdk/client-compute-optimizer-automation";
|
|
37
|
+
* const config = {}; // type is ComputeOptimizerAutomationClientConfig
|
|
38
|
+
* const client = new ComputeOptimizerAutomationClient(config);
|
|
39
|
+
* const input = { // ListRecommendedActionSummariesRequest
|
|
40
|
+
* filters: [ // RecommendedActionFilterList
|
|
41
|
+
* { // RecommendedActionFilter
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* values: [ // FilterValues // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* maxResults: Number("int"),
|
|
49
|
+
* nextToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new ListRecommendedActionSummariesCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // ListRecommendedActionSummariesResponse
|
|
54
|
+
* // recommendedActionSummaries: [ // RecommendedActionSummaries
|
|
55
|
+
* // { // RecommendedActionSummary
|
|
56
|
+
* // key: "STRING_VALUE", // required
|
|
57
|
+
* // total: { // RecommendedActionTotal
|
|
58
|
+
* // recommendedActionCount: Number("int"), // required
|
|
59
|
+
* // estimatedMonthlySavings: { // EstimatedMonthlySavings
|
|
60
|
+
* // currency: "STRING_VALUE", // required
|
|
61
|
+
* // beforeDiscountSavings: Number("double"), // required
|
|
62
|
+
* // afterDiscountSavings: Number("double"), // required
|
|
63
|
+
* // savingsEstimationMode: "BeforeDiscount" || "AfterDiscount", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // nextToken: "STRING_VALUE",
|
|
69
|
+
* // };
|
|
70
|
+
*
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @param ListRecommendedActionSummariesCommandInput - {@link ListRecommendedActionSummariesCommandInput}
|
|
74
|
+
* @returns {@link ListRecommendedActionSummariesCommandOutput}
|
|
75
|
+
* @see {@link ListRecommendedActionSummariesCommandInput} for command's `input` shape.
|
|
76
|
+
* @see {@link ListRecommendedActionSummariesCommandOutput} for command's `response` shape.
|
|
77
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
80
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
83
|
+
* <p> You are not authorized to perform this action. </p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link InternalServerException} (server fault)
|
|
86
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
89
|
+
* <p> One or more parameter values are not valid. </p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
92
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
95
|
+
* <p> The service is temporarily unavailable. </p>
|
|
96
|
+
*
|
|
97
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
98
|
+
* <p> The request was denied due to request throttling. </p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
101
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
102
|
+
*
|
|
103
|
+
*
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
export declare class ListRecommendedActionSummariesCommand extends ListRecommendedActionSummariesCommand_base {
|
|
107
|
+
/** @internal type navigation helper, not in runtime. */
|
|
108
|
+
protected static __types: {
|
|
109
|
+
api: {
|
|
110
|
+
input: ListRecommendedActionSummariesRequest;
|
|
111
|
+
output: ListRecommendedActionSummariesResponse;
|
|
112
|
+
};
|
|
113
|
+
sdk: {
|
|
114
|
+
input: ListRecommendedActionSummariesCommandInput;
|
|
115
|
+
output: ListRecommendedActionSummariesCommandOutput;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerAutomationClient";
|
|
4
|
+
import { ListRecommendedActionsRequest, ListRecommendedActionsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListRecommendedActionsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListRecommendedActionsCommandInput extends ListRecommendedActionsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListRecommendedActionsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListRecommendedActionsCommandOutput extends ListRecommendedActionsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListRecommendedActionsCommand_base: {
|
|
25
|
+
new (input: ListRecommendedActionsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendedActionsCommandInput, ListRecommendedActionsCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [ListRecommendedActionsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListRecommendedActionsCommandInput, ListRecommendedActionsCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Lists the recommended actions based that match specified filters. </p> <note> <p>Management accounts and delegated administrators can retrieve recommended actions that include associated member accounts. You can associate a member account using <code>AssociateAccounts</code>.</p> </note>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, ListRecommendedActionsCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, ListRecommendedActionsCommand } = require("@aws-sdk/client-compute-optimizer-automation"); // CommonJS import
|
|
36
|
+
* // import type { ComputeOptimizerAutomationClientConfig } from "@aws-sdk/client-compute-optimizer-automation";
|
|
37
|
+
* const config = {}; // type is ComputeOptimizerAutomationClientConfig
|
|
38
|
+
* const client = new ComputeOptimizerAutomationClient(config);
|
|
39
|
+
* const input = { // ListRecommendedActionsRequest
|
|
40
|
+
* filters: [ // RecommendedActionFilterList
|
|
41
|
+
* { // RecommendedActionFilter
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* values: [ // FilterValues // required
|
|
44
|
+
* "STRING_VALUE",
|
|
45
|
+
* ],
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* maxResults: Number("int"),
|
|
49
|
+
* nextToken: "STRING_VALUE",
|
|
50
|
+
* };
|
|
51
|
+
* const command = new ListRecommendedActionsCommand(input);
|
|
52
|
+
* const response = await client.send(command);
|
|
53
|
+
* // { // ListRecommendedActionsResponse
|
|
54
|
+
* // recommendedActions: [ // RecommendedActions
|
|
55
|
+
* // { // RecommendedAction
|
|
56
|
+
* // recommendedActionId: "STRING_VALUE",
|
|
57
|
+
* // resourceArn: "STRING_VALUE",
|
|
58
|
+
* // resourceId: "STRING_VALUE",
|
|
59
|
+
* // accountId: "STRING_VALUE",
|
|
60
|
+
* // region: "STRING_VALUE",
|
|
61
|
+
* // resourceType: "EbsVolume",
|
|
62
|
+
* // lookBackPeriodInDays: Number("int"),
|
|
63
|
+
* // recommendedActionType: "SnapshotAndDeleteUnattachedEbsVolume" || "UpgradeEbsVolumeType",
|
|
64
|
+
* // currentResourceSummary: "STRING_VALUE",
|
|
65
|
+
* // currentResourceDetails: { // ResourceDetails Union: only one key present
|
|
66
|
+
* // ebsVolume: { // EbsVolume
|
|
67
|
+
* // configuration: { // EbsVolumeConfiguration
|
|
68
|
+
* // type: "STRING_VALUE",
|
|
69
|
+
* // sizeInGib: Number("int"),
|
|
70
|
+
* // iops: Number("int"),
|
|
71
|
+
* // throughput: Number("int"),
|
|
72
|
+
* // },
|
|
73
|
+
* // },
|
|
74
|
+
* // },
|
|
75
|
+
* // recommendedResourceSummary: "STRING_VALUE",
|
|
76
|
+
* // recommendedResourceDetails: {// Union: only one key present
|
|
77
|
+
* // ebsVolume: {
|
|
78
|
+
* // configuration: {
|
|
79
|
+
* // type: "STRING_VALUE",
|
|
80
|
+
* // sizeInGib: Number("int"),
|
|
81
|
+
* // iops: Number("int"),
|
|
82
|
+
* // throughput: Number("int"),
|
|
83
|
+
* // },
|
|
84
|
+
* // },
|
|
85
|
+
* // },
|
|
86
|
+
* // restartNeeded: true || false,
|
|
87
|
+
* // estimatedMonthlySavings: { // EstimatedMonthlySavings
|
|
88
|
+
* // currency: "STRING_VALUE", // required
|
|
89
|
+
* // beforeDiscountSavings: Number("double"), // required
|
|
90
|
+
* // afterDiscountSavings: Number("double"), // required
|
|
91
|
+
* // savingsEstimationMode: "BeforeDiscount" || "AfterDiscount", // required
|
|
92
|
+
* // },
|
|
93
|
+
* // resourceTags: [ // TagList
|
|
94
|
+
* // { // Tag
|
|
95
|
+
* // key: "STRING_VALUE", // required
|
|
96
|
+
* // value: "STRING_VALUE", // required
|
|
97
|
+
* // },
|
|
98
|
+
* // ],
|
|
99
|
+
* // },
|
|
100
|
+
* // ],
|
|
101
|
+
* // nextToken: "STRING_VALUE",
|
|
102
|
+
* // };
|
|
103
|
+
*
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* @param ListRecommendedActionsCommandInput - {@link ListRecommendedActionsCommandInput}
|
|
107
|
+
* @returns {@link ListRecommendedActionsCommandOutput}
|
|
108
|
+
* @see {@link ListRecommendedActionsCommandInput} for command's `input` shape.
|
|
109
|
+
* @see {@link ListRecommendedActionsCommandOutput} for command's `response` shape.
|
|
110
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
113
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
114
|
+
*
|
|
115
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
116
|
+
* <p> You are not authorized to perform this action. </p>
|
|
117
|
+
*
|
|
118
|
+
* @throws {@link InternalServerException} (server fault)
|
|
119
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
120
|
+
*
|
|
121
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
122
|
+
* <p> One or more parameter values are not valid. </p>
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
125
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
128
|
+
* <p> The service is temporarily unavailable. </p>
|
|
129
|
+
*
|
|
130
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
131
|
+
* <p> The request was denied due to request throttling. </p>
|
|
132
|
+
*
|
|
133
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
134
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
export declare class ListRecommendedActionsCommand extends ListRecommendedActionsCommand_base {
|
|
140
|
+
/** @internal type navigation helper, not in runtime. */
|
|
141
|
+
protected static __types: {
|
|
142
|
+
api: {
|
|
143
|
+
input: ListRecommendedActionsRequest;
|
|
144
|
+
output: ListRecommendedActionsResponse;
|
|
145
|
+
};
|
|
146
|
+
sdk: {
|
|
147
|
+
input: ListRecommendedActionsCommandInput;
|
|
148
|
+
output: ListRecommendedActionsCommandOutput;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerAutomationClient";
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTagsForResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTagsForResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListTagsForResourceCommand_base: {
|
|
25
|
+
new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Lists the tags for a specified resource. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, ListTagsForResourceCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, ListTagsForResourceCommand } = require("@aws-sdk/client-compute-optimizer-automation"); // CommonJS import
|
|
36
|
+
* // import type { ComputeOptimizerAutomationClientConfig } from "@aws-sdk/client-compute-optimizer-automation";
|
|
37
|
+
* const config = {}; // type is ComputeOptimizerAutomationClientConfig
|
|
38
|
+
* const client = new ComputeOptimizerAutomationClient(config);
|
|
39
|
+
* const input = { // ListTagsForResourceRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // ListTagsForResourceResponse
|
|
45
|
+
* // tags: [ // TagList
|
|
46
|
+
* // { // Tag
|
|
47
|
+
* // key: "STRING_VALUE", // required
|
|
48
|
+
* // value: "STRING_VALUE", // required
|
|
49
|
+
* // },
|
|
50
|
+
* // ],
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
56
|
+
* @returns {@link ListTagsForResourceCommandOutput}
|
|
57
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
59
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
62
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
65
|
+
* <p> You are not authorized to perform this action. </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerException} (server fault)
|
|
68
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
71
|
+
* <p> One or more parameter values are not valid. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
74
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
77
|
+
* <p> The specified resource was not found. </p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
80
|
+
* <p> The service is temporarily unavailable. </p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
83
|
+
* <p> The request was denied due to request throttling. </p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: ListTagsForResourceRequest;
|
|
96
|
+
output: ListTagsForResourceResponse;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: ListTagsForResourceCommandInput;
|
|
100
|
+
output: ListTagsForResourceCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ComputeOptimizerAutomationClient";
|
|
4
|
+
import { RollbackAutomationEventRequest, RollbackAutomationEventResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link RollbackAutomationEventCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface RollbackAutomationEventCommandInput extends RollbackAutomationEventRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link RollbackAutomationEventCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface RollbackAutomationEventCommandOutput extends RollbackAutomationEventResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const RollbackAutomationEventCommand_base: {
|
|
25
|
+
new (input: RollbackAutomationEventCommandInput): import("@smithy/smithy-client").CommandImpl<RollbackAutomationEventCommandInput, RollbackAutomationEventCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: RollbackAutomationEventCommandInput): import("@smithy/smithy-client").CommandImpl<RollbackAutomationEventCommandInput, RollbackAutomationEventCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Initiates a rollback for a completed automation event. </p> <note> <p>Management accounts and delegated administrators can only initiate a rollback for events belonging to associated member accounts. You can associate a member account using <code>AssociateAccounts</code>.</p> </note>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, RollbackAutomationEventCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, RollbackAutomationEventCommand } = require("@aws-sdk/client-compute-optimizer-automation"); // CommonJS import
|
|
36
|
+
* // import type { ComputeOptimizerAutomationClientConfig } from "@aws-sdk/client-compute-optimizer-automation";
|
|
37
|
+
* const config = {}; // type is ComputeOptimizerAutomationClientConfig
|
|
38
|
+
* const client = new ComputeOptimizerAutomationClient(config);
|
|
39
|
+
* const input = { // RollbackAutomationEventRequest
|
|
40
|
+
* eventId: "STRING_VALUE", // required
|
|
41
|
+
* clientToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new RollbackAutomationEventCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // RollbackAutomationEventResponse
|
|
46
|
+
* // eventId: "STRING_VALUE",
|
|
47
|
+
* // eventStatus: "Ready" || "InProgress" || "Complete" || "Failed" || "Cancelled" || "RollbackReady" || "RollbackInProgress" || "RollbackComplete" || "RollbackFailed",
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param RollbackAutomationEventCommandInput - {@link RollbackAutomationEventCommandInput}
|
|
53
|
+
* @returns {@link RollbackAutomationEventCommandOutput}
|
|
54
|
+
* @see {@link RollbackAutomationEventCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link RollbackAutomationEventCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
59
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
62
|
+
* <p> You are not authorized to perform this action. </p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link IdempotencyTokenInUseException} (client fault)
|
|
65
|
+
* <p> The specified client token is already in use. </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
68
|
+
* <p>Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link InternalServerException} (server fault)
|
|
71
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
74
|
+
* <p> One or more parameter values are not valid. </p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
77
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
80
|
+
* <p> The specified resource was not found. </p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
83
|
+
* <p> The service is temporarily unavailable. </p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
86
|
+
* <p> The request was denied due to request throttling. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
89
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export declare class RollbackAutomationEventCommand extends RollbackAutomationEventCommand_base {
|
|
95
|
+
/** @internal type navigation helper, not in runtime. */
|
|
96
|
+
protected static __types: {
|
|
97
|
+
api: {
|
|
98
|
+
input: RollbackAutomationEventRequest;
|
|
99
|
+
output: RollbackAutomationEventResponse;
|
|
100
|
+
};
|
|
101
|
+
sdk: {
|
|
102
|
+
input: RollbackAutomationEventCommandInput;
|
|
103
|
+
output: RollbackAutomationEventCommandOutput;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}
|