@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,294 @@
|
|
|
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 { CreateAutomationRuleRequest, CreateAutomationRuleResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateAutomationRuleCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateAutomationRuleCommandInput extends CreateAutomationRuleRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateAutomationRuleCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateAutomationRuleCommandOutput extends CreateAutomationRuleResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateAutomationRuleCommand_base: {
|
|
25
|
+
new (input: CreateAutomationRuleCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateAutomationRuleCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Creates a new automation rule to apply recommended actions to resources based on specified criteria. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, CreateAutomationRuleCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, CreateAutomationRuleCommand } = 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 = { // CreateAutomationRuleRequest
|
|
40
|
+
* name: "STRING_VALUE", // required
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* ruleType: "OrganizationRule" || "AccountRule", // required
|
|
43
|
+
* organizationConfiguration: { // OrganizationConfiguration
|
|
44
|
+
* ruleApplyOrder: "BeforeAccountRules" || "AfterAccountRules",
|
|
45
|
+
* accountIds: [ // OrganizationConfigurationAccountIds
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* priority: "STRING_VALUE",
|
|
50
|
+
* recommendedActionTypes: [ // RecommendedActionTypeList // required
|
|
51
|
+
* "SnapshotAndDeleteUnattachedEbsVolume" || "UpgradeEbsVolumeType",
|
|
52
|
+
* ],
|
|
53
|
+
* criteria: { // Criteria
|
|
54
|
+
* region: [ // StringCriteriaConditionList
|
|
55
|
+
* { // StringCriteriaCondition
|
|
56
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
57
|
+
* values: [ // StringCriteriaValues
|
|
58
|
+
* "STRING_VALUE",
|
|
59
|
+
* ],
|
|
60
|
+
* },
|
|
61
|
+
* ],
|
|
62
|
+
* resourceArn: [
|
|
63
|
+
* {
|
|
64
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
65
|
+
* values: [
|
|
66
|
+
* "STRING_VALUE",
|
|
67
|
+
* ],
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* ebsVolumeType: [
|
|
71
|
+
* {
|
|
72
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
73
|
+
* values: [
|
|
74
|
+
* "STRING_VALUE",
|
|
75
|
+
* ],
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* ebsVolumeSizeInGib: [ // IntegerCriteriaConditionList
|
|
79
|
+
* { // IntegerCriteriaCondition
|
|
80
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
81
|
+
* values: [ // IntegerList
|
|
82
|
+
* Number("int"),
|
|
83
|
+
* ],
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* estimatedMonthlySavings: [ // DoubleCriteriaConditionList
|
|
87
|
+
* { // DoubleCriteriaCondition
|
|
88
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
89
|
+
* values: [ // DoubleList
|
|
90
|
+
* Number("double"),
|
|
91
|
+
* ],
|
|
92
|
+
* },
|
|
93
|
+
* ],
|
|
94
|
+
* resourceTag: [ // ResourceTagsCriteriaConditionList
|
|
95
|
+
* { // ResourceTagsCriteriaCondition
|
|
96
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
97
|
+
* key: "STRING_VALUE",
|
|
98
|
+
* values: [
|
|
99
|
+
* "STRING_VALUE",
|
|
100
|
+
* ],
|
|
101
|
+
* },
|
|
102
|
+
* ],
|
|
103
|
+
* lookBackPeriodInDays: [
|
|
104
|
+
* {
|
|
105
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
106
|
+
* values: [
|
|
107
|
+
* Number("int"),
|
|
108
|
+
* ],
|
|
109
|
+
* },
|
|
110
|
+
* ],
|
|
111
|
+
* restartNeeded: [
|
|
112
|
+
* {
|
|
113
|
+
* comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
114
|
+
* values: [
|
|
115
|
+
* "STRING_VALUE",
|
|
116
|
+
* ],
|
|
117
|
+
* },
|
|
118
|
+
* ],
|
|
119
|
+
* },
|
|
120
|
+
* schedule: { // Schedule
|
|
121
|
+
* scheduleExpression: "STRING_VALUE",
|
|
122
|
+
* scheduleExpressionTimezone: "STRING_VALUE",
|
|
123
|
+
* executionWindowInMinutes: Number("int"),
|
|
124
|
+
* },
|
|
125
|
+
* status: "Active" || "Inactive", // required
|
|
126
|
+
* tags: [ // TagList
|
|
127
|
+
* { // Tag
|
|
128
|
+
* key: "STRING_VALUE", // required
|
|
129
|
+
* value: "STRING_VALUE", // required
|
|
130
|
+
* },
|
|
131
|
+
* ],
|
|
132
|
+
* clientToken: "STRING_VALUE",
|
|
133
|
+
* };
|
|
134
|
+
* const command = new CreateAutomationRuleCommand(input);
|
|
135
|
+
* const response = await client.send(command);
|
|
136
|
+
* // { // CreateAutomationRuleResponse
|
|
137
|
+
* // ruleArn: "STRING_VALUE",
|
|
138
|
+
* // ruleId: "STRING_VALUE",
|
|
139
|
+
* // name: "STRING_VALUE",
|
|
140
|
+
* // description: "STRING_VALUE",
|
|
141
|
+
* // ruleType: "OrganizationRule" || "AccountRule",
|
|
142
|
+
* // ruleRevision: Number("long"),
|
|
143
|
+
* // organizationConfiguration: { // OrganizationConfiguration
|
|
144
|
+
* // ruleApplyOrder: "BeforeAccountRules" || "AfterAccountRules",
|
|
145
|
+
* // accountIds: [ // OrganizationConfigurationAccountIds
|
|
146
|
+
* // "STRING_VALUE",
|
|
147
|
+
* // ],
|
|
148
|
+
* // },
|
|
149
|
+
* // priority: "STRING_VALUE",
|
|
150
|
+
* // recommendedActionTypes: [ // RecommendedActionTypeList
|
|
151
|
+
* // "SnapshotAndDeleteUnattachedEbsVolume" || "UpgradeEbsVolumeType",
|
|
152
|
+
* // ],
|
|
153
|
+
* // criteria: { // Criteria
|
|
154
|
+
* // region: [ // StringCriteriaConditionList
|
|
155
|
+
* // { // StringCriteriaCondition
|
|
156
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
157
|
+
* // values: [ // StringCriteriaValues
|
|
158
|
+
* // "STRING_VALUE",
|
|
159
|
+
* // ],
|
|
160
|
+
* // },
|
|
161
|
+
* // ],
|
|
162
|
+
* // resourceArn: [
|
|
163
|
+
* // {
|
|
164
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
165
|
+
* // values: [
|
|
166
|
+
* // "STRING_VALUE",
|
|
167
|
+
* // ],
|
|
168
|
+
* // },
|
|
169
|
+
* // ],
|
|
170
|
+
* // ebsVolumeType: [
|
|
171
|
+
* // {
|
|
172
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
173
|
+
* // values: [
|
|
174
|
+
* // "STRING_VALUE",
|
|
175
|
+
* // ],
|
|
176
|
+
* // },
|
|
177
|
+
* // ],
|
|
178
|
+
* // ebsVolumeSizeInGib: [ // IntegerCriteriaConditionList
|
|
179
|
+
* // { // IntegerCriteriaCondition
|
|
180
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
181
|
+
* // values: [ // IntegerList
|
|
182
|
+
* // Number("int"),
|
|
183
|
+
* // ],
|
|
184
|
+
* // },
|
|
185
|
+
* // ],
|
|
186
|
+
* // estimatedMonthlySavings: [ // DoubleCriteriaConditionList
|
|
187
|
+
* // { // DoubleCriteriaCondition
|
|
188
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
189
|
+
* // values: [ // DoubleList
|
|
190
|
+
* // Number("double"),
|
|
191
|
+
* // ],
|
|
192
|
+
* // },
|
|
193
|
+
* // ],
|
|
194
|
+
* // resourceTag: [ // ResourceTagsCriteriaConditionList
|
|
195
|
+
* // { // ResourceTagsCriteriaCondition
|
|
196
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
197
|
+
* // key: "STRING_VALUE",
|
|
198
|
+
* // values: [
|
|
199
|
+
* // "STRING_VALUE",
|
|
200
|
+
* // ],
|
|
201
|
+
* // },
|
|
202
|
+
* // ],
|
|
203
|
+
* // lookBackPeriodInDays: [
|
|
204
|
+
* // {
|
|
205
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
206
|
+
* // values: [
|
|
207
|
+
* // Number("int"),
|
|
208
|
+
* // ],
|
|
209
|
+
* // },
|
|
210
|
+
* // ],
|
|
211
|
+
* // restartNeeded: [
|
|
212
|
+
* // {
|
|
213
|
+
* // comparison: "StringEquals" || "StringNotEquals" || "StringEqualsIgnoreCase" || "StringNotEqualsIgnoreCase" || "StringLike" || "StringNotLike" || "NumericEquals" || "NumericNotEquals" || "NumericLessThan" || "NumericLessThanEquals" || "NumericGreaterThan" || "NumericGreaterThanEquals",
|
|
214
|
+
* // values: [
|
|
215
|
+
* // "STRING_VALUE",
|
|
216
|
+
* // ],
|
|
217
|
+
* // },
|
|
218
|
+
* // ],
|
|
219
|
+
* // },
|
|
220
|
+
* // schedule: { // Schedule
|
|
221
|
+
* // scheduleExpression: "STRING_VALUE",
|
|
222
|
+
* // scheduleExpressionTimezone: "STRING_VALUE",
|
|
223
|
+
* // executionWindowInMinutes: Number("int"),
|
|
224
|
+
* // },
|
|
225
|
+
* // status: "Active" || "Inactive",
|
|
226
|
+
* // tags: [ // TagList
|
|
227
|
+
* // { // Tag
|
|
228
|
+
* // key: "STRING_VALUE", // required
|
|
229
|
+
* // value: "STRING_VALUE", // required
|
|
230
|
+
* // },
|
|
231
|
+
* // ],
|
|
232
|
+
* // createdTimestamp: new Date("TIMESTAMP"),
|
|
233
|
+
* // };
|
|
234
|
+
*
|
|
235
|
+
* ```
|
|
236
|
+
*
|
|
237
|
+
* @param CreateAutomationRuleCommandInput - {@link CreateAutomationRuleCommandInput}
|
|
238
|
+
* @returns {@link CreateAutomationRuleCommandOutput}
|
|
239
|
+
* @see {@link CreateAutomationRuleCommandInput} for command's `input` shape.
|
|
240
|
+
* @see {@link CreateAutomationRuleCommandOutput} for command's `response` shape.
|
|
241
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
242
|
+
*
|
|
243
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
244
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
245
|
+
*
|
|
246
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
247
|
+
* <p> You are not authorized to perform this action. </p>
|
|
248
|
+
*
|
|
249
|
+
* @throws {@link IdempotencyTokenInUseException} (client fault)
|
|
250
|
+
* <p> The specified client token is already in use. </p>
|
|
251
|
+
*
|
|
252
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
253
|
+
* <p>Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.</p>
|
|
254
|
+
*
|
|
255
|
+
* @throws {@link InternalServerException} (server fault)
|
|
256
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
257
|
+
*
|
|
258
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
259
|
+
* <p> One or more parameter values are not valid. </p>
|
|
260
|
+
*
|
|
261
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
262
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
263
|
+
*
|
|
264
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
265
|
+
* <p> The specified resource was not found. </p>
|
|
266
|
+
*
|
|
267
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
268
|
+
* <p> The request would exceed service quotas. </p>
|
|
269
|
+
*
|
|
270
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
271
|
+
* <p> The service is temporarily unavailable. </p>
|
|
272
|
+
*
|
|
273
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
274
|
+
* <p> The request was denied due to request throttling. </p>
|
|
275
|
+
*
|
|
276
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
277
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
278
|
+
*
|
|
279
|
+
*
|
|
280
|
+
* @public
|
|
281
|
+
*/
|
|
282
|
+
export declare class CreateAutomationRuleCommand extends CreateAutomationRuleCommand_base {
|
|
283
|
+
/** @internal type navigation helper, not in runtime. */
|
|
284
|
+
protected static __types: {
|
|
285
|
+
api: {
|
|
286
|
+
input: CreateAutomationRuleRequest;
|
|
287
|
+
output: CreateAutomationRuleResponse;
|
|
288
|
+
};
|
|
289
|
+
sdk: {
|
|
290
|
+
input: CreateAutomationRuleCommandInput;
|
|
291
|
+
output: CreateAutomationRuleCommandOutput;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { DeleteAutomationRuleRequest, DeleteAutomationRuleResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteAutomationRuleCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteAutomationRuleCommandInput extends DeleteAutomationRuleRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteAutomationRuleCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteAutomationRuleCommandOutput extends DeleteAutomationRuleResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteAutomationRuleCommand_base: {
|
|
25
|
+
new (input: DeleteAutomationRuleCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAutomationRuleCommandInput, DeleteAutomationRuleCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteAutomationRuleCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteAutomationRuleCommandInput, DeleteAutomationRuleCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Deletes an existing automation rule. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, DeleteAutomationRuleCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, DeleteAutomationRuleCommand } = 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 = { // DeleteAutomationRuleRequest
|
|
40
|
+
* ruleArn: "STRING_VALUE", // required
|
|
41
|
+
* ruleRevision: Number("long"), // required
|
|
42
|
+
* clientToken: "STRING_VALUE",
|
|
43
|
+
* };
|
|
44
|
+
* const command = new DeleteAutomationRuleCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // {};
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param DeleteAutomationRuleCommandInput - {@link DeleteAutomationRuleCommandInput}
|
|
51
|
+
* @returns {@link DeleteAutomationRuleCommandOutput}
|
|
52
|
+
* @see {@link DeleteAutomationRuleCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link DeleteAutomationRuleCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
60
|
+
* <p> You are not authorized to perform this action. </p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link IdempotencyTokenInUseException} (client fault)
|
|
63
|
+
* <p> The specified client token is already in use. </p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
66
|
+
* <p>Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalServerException} (server fault)
|
|
69
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
72
|
+
* <p> One or more parameter values are not valid. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
75
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
78
|
+
* <p> The specified resource was not found. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
81
|
+
* <p> The service is temporarily unavailable. </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
84
|
+
* <p> The request was denied due to request throttling. </p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
87
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export declare class DeleteAutomationRuleCommand extends DeleteAutomationRuleCommand_base {
|
|
93
|
+
/** @internal type navigation helper, not in runtime. */
|
|
94
|
+
protected static __types: {
|
|
95
|
+
api: {
|
|
96
|
+
input: DeleteAutomationRuleRequest;
|
|
97
|
+
output: {};
|
|
98
|
+
};
|
|
99
|
+
sdk: {
|
|
100
|
+
input: DeleteAutomationRuleCommandInput;
|
|
101
|
+
output: DeleteAutomationRuleCommandOutput;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { DisassociateAccountsRequest, DisassociateAccountsResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DisassociateAccountsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DisassociateAccountsCommandInput extends DisassociateAccountsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DisassociateAccountsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DisassociateAccountsCommandOutput extends DisassociateAccountsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DisassociateAccountsCommand_base: {
|
|
25
|
+
new (input: DisassociateAccountsCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAccountsCommandInput, DisassociateAccountsCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DisassociateAccountsCommandInput): import("@smithy/smithy-client").CommandImpl<DisassociateAccountsCommandInput, DisassociateAccountsCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Disassociates member accounts from your organization's management account, removing centralized automation capabilities. Once disassociated, organization rules no longer apply to the member account, and the management account (or delegated administrator) cannot create Automation rules for that account. </p> <note> <p>Only the management account or a delegated administrator can perform this action.</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, DisassociateAccountsCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, DisassociateAccountsCommand } = 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 = { // DisassociateAccountsRequest
|
|
40
|
+
* accountIds: [ // AccountIdList // required
|
|
41
|
+
* "STRING_VALUE",
|
|
42
|
+
* ],
|
|
43
|
+
* clientToken: "STRING_VALUE",
|
|
44
|
+
* };
|
|
45
|
+
* const command = new DisassociateAccountsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // DisassociateAccountsResponse
|
|
48
|
+
* // accountIds: [ // AccountIdList
|
|
49
|
+
* // "STRING_VALUE",
|
|
50
|
+
* // ],
|
|
51
|
+
* // errors: [ // StringList
|
|
52
|
+
* // "STRING_VALUE",
|
|
53
|
+
* // ],
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param DisassociateAccountsCommandInput - {@link DisassociateAccountsCommandInput}
|
|
59
|
+
* @returns {@link DisassociateAccountsCommandOutput}
|
|
60
|
+
* @see {@link DisassociateAccountsCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link DisassociateAccountsCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
65
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
68
|
+
* <p> You are not authorized to perform this action. </p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link IdempotencyTokenInUseException} (client fault)
|
|
71
|
+
* <p> The specified client token is already in use. </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
74
|
+
* <p>Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link InternalServerException} (server fault)
|
|
77
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
80
|
+
* <p> One or more parameter values are not valid. </p>
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link NotManagementAccountException} (client fault)
|
|
83
|
+
* <p> The operation can only be performed by a management account. </p>
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
86
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
89
|
+
* <p> The service is temporarily unavailable. </p>
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
92
|
+
* <p> The request was denied due to request throttling. </p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
95
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @public
|
|
99
|
+
*/
|
|
100
|
+
export declare class DisassociateAccountsCommand extends DisassociateAccountsCommand_base {
|
|
101
|
+
/** @internal type navigation helper, not in runtime. */
|
|
102
|
+
protected static __types: {
|
|
103
|
+
api: {
|
|
104
|
+
input: DisassociateAccountsRequest;
|
|
105
|
+
output: DisassociateAccountsResponse;
|
|
106
|
+
};
|
|
107
|
+
sdk: {
|
|
108
|
+
input: DisassociateAccountsCommandInput;
|
|
109
|
+
output: DisassociateAccountsCommandOutput;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { GetAutomationEventRequest, GetAutomationEventResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetAutomationEventCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetAutomationEventCommandInput extends GetAutomationEventRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetAutomationEventCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetAutomationEventCommandOutput extends GetAutomationEventResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetAutomationEventCommand_base: {
|
|
25
|
+
new (input: GetAutomationEventCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomationEventCommandInput, GetAutomationEventCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetAutomationEventCommandInput): import("@smithy/smithy-client").CommandImpl<GetAutomationEventCommandInput, GetAutomationEventCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Retrieves details about a specific automation event. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, GetAutomationEventCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, GetAutomationEventCommand } = 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 = { // GetAutomationEventRequest
|
|
40
|
+
* eventId: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetAutomationEventCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetAutomationEventResponse
|
|
45
|
+
* // eventId: "STRING_VALUE",
|
|
46
|
+
* // eventDescription: "STRING_VALUE",
|
|
47
|
+
* // eventType: "SnapshotAndDeleteUnattachedEbsVolume" || "UpgradeEbsVolumeType",
|
|
48
|
+
* // eventStatus: "Ready" || "InProgress" || "Complete" || "Failed" || "Cancelled" || "RollbackReady" || "RollbackInProgress" || "RollbackComplete" || "RollbackFailed",
|
|
49
|
+
* // eventStatusReason: "STRING_VALUE",
|
|
50
|
+
* // resourceArn: "STRING_VALUE",
|
|
51
|
+
* // resourceId: "STRING_VALUE",
|
|
52
|
+
* // recommendedActionId: "STRING_VALUE",
|
|
53
|
+
* // accountId: "STRING_VALUE",
|
|
54
|
+
* // region: "STRING_VALUE",
|
|
55
|
+
* // ruleId: "STRING_VALUE",
|
|
56
|
+
* // resourceType: "EbsVolume",
|
|
57
|
+
* // createdTimestamp: new Date("TIMESTAMP"),
|
|
58
|
+
* // completedTimestamp: new Date("TIMESTAMP"),
|
|
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
|
+
*
|
|
69
|
+
* @param GetAutomationEventCommandInput - {@link GetAutomationEventCommandInput}
|
|
70
|
+
* @returns {@link GetAutomationEventCommandOutput}
|
|
71
|
+
* @see {@link GetAutomationEventCommandInput} for command's `input` shape.
|
|
72
|
+
* @see {@link GetAutomationEventCommandOutput} for command's `response` shape.
|
|
73
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
76
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
79
|
+
* <p> You are not authorized to perform this action. </p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link InternalServerException} (server fault)
|
|
82
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
85
|
+
* <p> One or more parameter values are not valid. </p>
|
|
86
|
+
*
|
|
87
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
88
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
91
|
+
* <p> The specified resource was not found. </p>
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
94
|
+
* <p> The service is temporarily unavailable. </p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
97
|
+
* <p> The request was denied due to request throttling. </p>
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
100
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
101
|
+
*
|
|
102
|
+
*
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export declare class GetAutomationEventCommand extends GetAutomationEventCommand_base {
|
|
106
|
+
/** @internal type navigation helper, not in runtime. */
|
|
107
|
+
protected static __types: {
|
|
108
|
+
api: {
|
|
109
|
+
input: GetAutomationEventRequest;
|
|
110
|
+
output: GetAutomationEventResponse;
|
|
111
|
+
};
|
|
112
|
+
sdk: {
|
|
113
|
+
input: GetAutomationEventCommandInput;
|
|
114
|
+
output: GetAutomationEventCommandOutput;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
}
|