@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,110 @@
|
|
|
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 { UpdateEnrollmentConfigurationRequest, UpdateEnrollmentConfigurationResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateEnrollmentConfigurationCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateEnrollmentConfigurationCommandInput extends UpdateEnrollmentConfigurationRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateEnrollmentConfigurationCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateEnrollmentConfigurationCommandOutput extends UpdateEnrollmentConfigurationResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateEnrollmentConfigurationCommand_base: {
|
|
25
|
+
new (input: UpdateEnrollmentConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateEnrollmentConfigurationCommandInput, UpdateEnrollmentConfigurationCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateEnrollmentConfigurationCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateEnrollmentConfigurationCommandInput, UpdateEnrollmentConfigurationCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates your account’s Compute Optimizer Automation enrollment configuration. </p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ComputeOptimizerAutomationClient, UpdateEnrollmentConfigurationCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
|
|
35
|
+
* // const { ComputeOptimizerAutomationClient, UpdateEnrollmentConfigurationCommand } = 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 = { // UpdateEnrollmentConfigurationRequest
|
|
40
|
+
* status: "Active" || "Inactive" || "Pending" || "Failed", // required
|
|
41
|
+
* clientToken: "STRING_VALUE",
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateEnrollmentConfigurationCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // UpdateEnrollmentConfigurationResponse
|
|
46
|
+
* // status: "Active" || "Inactive" || "Pending" || "Failed", // required
|
|
47
|
+
* // statusReason: "STRING_VALUE",
|
|
48
|
+
* // lastUpdatedTimestamp: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // };
|
|
50
|
+
*
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @param UpdateEnrollmentConfigurationCommandInput - {@link UpdateEnrollmentConfigurationCommandInput}
|
|
54
|
+
* @returns {@link UpdateEnrollmentConfigurationCommandOutput}
|
|
55
|
+
* @see {@link UpdateEnrollmentConfigurationCommandInput} for command's `input` shape.
|
|
56
|
+
* @see {@link UpdateEnrollmentConfigurationCommandOutput} for command's `response` shape.
|
|
57
|
+
* @see {@link ComputeOptimizerAutomationClientResolvedConfig | config} for ComputeOptimizerAutomationClient's `config` shape.
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
60
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
63
|
+
* <p> You are not authorized to perform this action. </p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link IdempotencyTokenInUseException} (client fault)
|
|
66
|
+
* <p> The specified client token is already in use. </p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link IdempotentParameterMismatchException} (client fault)
|
|
69
|
+
* <p>Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link InternalServerException} (server fault)
|
|
72
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InvalidParameterValueException} (client fault)
|
|
75
|
+
* <p> One or more parameter values are not valid. </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link NotManagementAccountException} (client fault)
|
|
78
|
+
* <p> The operation can only be performed by a management account. </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link OptInRequiredException} (client fault)
|
|
81
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
84
|
+
* <p> The specified resource was not found. </p>
|
|
85
|
+
*
|
|
86
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
87
|
+
* <p> The service is temporarily unavailable. </p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
90
|
+
* <p> The request was denied due to request throttling. </p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ComputeOptimizerAutomationServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from ComputeOptimizerAutomation service.</p>
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
export declare class UpdateEnrollmentConfigurationCommand extends UpdateEnrollmentConfigurationCommand_base {
|
|
99
|
+
/** @internal type navigation helper, not in runtime. */
|
|
100
|
+
protected static __types: {
|
|
101
|
+
api: {
|
|
102
|
+
input: UpdateEnrollmentConfigurationRequest;
|
|
103
|
+
output: UpdateEnrollmentConfigurationResponse;
|
|
104
|
+
};
|
|
105
|
+
sdk: {
|
|
106
|
+
input: UpdateEnrollmentConfigurationCommandInput;
|
|
107
|
+
output: UpdateEnrollmentConfigurationCommandOutput;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export * from "./AssociateAccountsCommand";
|
|
2
|
+
export * from "./CreateAutomationRuleCommand";
|
|
3
|
+
export * from "./DeleteAutomationRuleCommand";
|
|
4
|
+
export * from "./DisassociateAccountsCommand";
|
|
5
|
+
export * from "./GetAutomationEventCommand";
|
|
6
|
+
export * from "./GetAutomationRuleCommand";
|
|
7
|
+
export * from "./GetEnrollmentConfigurationCommand";
|
|
8
|
+
export * from "./ListAccountsCommand";
|
|
9
|
+
export * from "./ListAutomationEventStepsCommand";
|
|
10
|
+
export * from "./ListAutomationEventSummariesCommand";
|
|
11
|
+
export * from "./ListAutomationEventsCommand";
|
|
12
|
+
export * from "./ListAutomationRulePreviewCommand";
|
|
13
|
+
export * from "./ListAutomationRulePreviewSummariesCommand";
|
|
14
|
+
export * from "./ListAutomationRulesCommand";
|
|
15
|
+
export * from "./ListRecommendedActionSummariesCommand";
|
|
16
|
+
export * from "./ListRecommendedActionsCommand";
|
|
17
|
+
export * from "./ListTagsForResourceCommand";
|
|
18
|
+
export * from "./RollbackAutomationEventCommand";
|
|
19
|
+
export * from "./StartAutomationEventCommand";
|
|
20
|
+
export * from "./TagResourceCommand";
|
|
21
|
+
export * from "./UntagResourceCommand";
|
|
22
|
+
export * from "./UpdateAutomationRuleCommand";
|
|
23
|
+
export * from "./UpdateEnrollmentConfigurationCommand";
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
region?: string | undefined | Provider<string | undefined>;
|
|
7
|
+
useDualstackEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
8
|
+
useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
|
|
9
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
10
|
+
}
|
|
11
|
+
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
|
|
12
|
+
defaultSigningName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
|
|
15
|
+
export declare const commonParams: {
|
|
16
|
+
readonly UseFIPS: {
|
|
17
|
+
readonly type: "builtInParams";
|
|
18
|
+
readonly name: "useFipsEndpoint";
|
|
19
|
+
};
|
|
20
|
+
readonly Endpoint: {
|
|
21
|
+
readonly type: "builtInParams";
|
|
22
|
+
readonly name: "endpoint";
|
|
23
|
+
};
|
|
24
|
+
readonly Region: {
|
|
25
|
+
readonly type: "builtInParams";
|
|
26
|
+
readonly name: "region";
|
|
27
|
+
};
|
|
28
|
+
readonly UseDualStack: {
|
|
29
|
+
readonly type: "builtInParams";
|
|
30
|
+
readonly name: "useDualstackEndpoint";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
34
|
+
Region?: string | undefined;
|
|
35
|
+
UseDualStack?: boolean | undefined;
|
|
36
|
+
UseFIPS?: boolean | undefined;
|
|
37
|
+
Endpoint?: string | undefined;
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface ComputeOptimizerAutomationExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p> Automation is a feature within Amazon Web Services Compute Optimizer that enables you to apply optimization recommendations to your Amazon Web Services resources, reducing costs and improving performance. You can apply recommended actions directly or create automation rules that implement recommendations on a recurring schedule when they match your specified criteria. With automation rules, set criteria such as Amazon Web Services Region and Resource Tags to target specific geographies and workloads. Configure rules to run daily, weekly, or monthly, and Compute Optimizer continuously evaluates new recommendations against your criteria. Track automation events over time, examine detailed step history, estimate savings achieved, and reverse actions directly from Compute Optimizer when needed. </p>
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from "./ComputeOptimizerAutomationClient";
|
|
7
|
+
export * from "./ComputeOptimizerAutomation";
|
|
8
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
9
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
10
|
+
export type { ComputeOptimizerAutomationExtensionConfiguration } from "./extensionConfiguration";
|
|
11
|
+
export * from "./commands";
|
|
12
|
+
export * from "./pagination";
|
|
13
|
+
export * from "./models/enums";
|
|
14
|
+
export * from "./models/errors";
|
|
15
|
+
export type * from "./models/models_0";
|
|
16
|
+
export { ComputeOptimizerAutomationServiceException } from "./models/ComputeOptimizerAutomationServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from ComputeOptimizerAutomation service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ComputeOptimizerAutomationServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
* @enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const OrganizationRuleMode: {
|
|
6
|
+
readonly ANY_ALLOWED: "AnyAllowed";
|
|
7
|
+
readonly NONE_ALLOWED: "NoneAllowed";
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type OrganizationRuleMode = (typeof OrganizationRuleMode)[keyof typeof OrganizationRuleMode];
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
* @enum
|
|
16
|
+
*/
|
|
17
|
+
export declare const EnrollmentStatus: {
|
|
18
|
+
readonly ACTIVE: "Active";
|
|
19
|
+
readonly FAILED: "Failed";
|
|
20
|
+
readonly INACTIVE: "Inactive";
|
|
21
|
+
readonly PENDING: "Pending";
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
export type EnrollmentStatus = (typeof EnrollmentStatus)[keyof typeof EnrollmentStatus];
|
|
27
|
+
/**
|
|
28
|
+
* @public
|
|
29
|
+
* @enum
|
|
30
|
+
*/
|
|
31
|
+
export declare const SavingsEstimationMode: {
|
|
32
|
+
readonly AFTER_DISCOUNT: "AfterDiscount";
|
|
33
|
+
readonly BEFORE_DISCOUNT: "BeforeDiscount";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type SavingsEstimationMode = (typeof SavingsEstimationMode)[keyof typeof SavingsEstimationMode];
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
* @enum
|
|
42
|
+
*/
|
|
43
|
+
export declare const EventStatus: {
|
|
44
|
+
readonly CANCELLED: "Cancelled";
|
|
45
|
+
readonly COMPLETE: "Complete";
|
|
46
|
+
readonly FAILED: "Failed";
|
|
47
|
+
readonly IN_PROGRESS: "InProgress";
|
|
48
|
+
readonly READY: "Ready";
|
|
49
|
+
readonly ROLLBACK_COMPLETE: "RollbackComplete";
|
|
50
|
+
readonly ROLLBACK_FAILED: "RollbackFailed";
|
|
51
|
+
readonly ROLLBACK_IN_PROGRESS: "RollbackInProgress";
|
|
52
|
+
readonly ROLLBACK_READY: "RollbackReady";
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export type EventStatus = (typeof EventStatus)[keyof typeof EventStatus];
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
* @enum
|
|
61
|
+
*/
|
|
62
|
+
export declare const EventType: {
|
|
63
|
+
readonly SNAPSHOT_AND_DELETE_UNATTACHED_EBS_VOLUME: "SnapshotAndDeleteUnattachedEbsVolume";
|
|
64
|
+
readonly UPGRADE_EBS_VOLUME_TYPE: "UpgradeEbsVolumeType";
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
export type EventType = (typeof EventType)[keyof typeof EventType];
|
|
70
|
+
/**
|
|
71
|
+
* @public
|
|
72
|
+
* @enum
|
|
73
|
+
*/
|
|
74
|
+
export declare const ResourceType: {
|
|
75
|
+
readonly EBS_VOLUME: "EbsVolume";
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
81
|
+
/**
|
|
82
|
+
* @public
|
|
83
|
+
* @enum
|
|
84
|
+
*/
|
|
85
|
+
export declare const StepStatus: {
|
|
86
|
+
readonly COMPLETE: "Complete";
|
|
87
|
+
readonly FAILED: "Failed";
|
|
88
|
+
readonly IN_PROGRESS: "InProgress";
|
|
89
|
+
readonly READY: "Ready";
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
export type StepStatus = (typeof StepStatus)[keyof typeof StepStatus];
|
|
95
|
+
/**
|
|
96
|
+
* @public
|
|
97
|
+
* @enum
|
|
98
|
+
*/
|
|
99
|
+
export declare const StepType: {
|
|
100
|
+
readonly CREATE_EBS_SNAPSHOT: "CreateEbsSnapshot";
|
|
101
|
+
readonly CREATE_EBS_VOLUME: "CreateEbsVolume";
|
|
102
|
+
readonly DELETE_EBS_VOLUME: "DeleteEbsVolume";
|
|
103
|
+
readonly MODIFY_EBS_VOLUME: "ModifyEbsVolume";
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
export type StepType = (typeof StepType)[keyof typeof StepType];
|
|
109
|
+
/**
|
|
110
|
+
* @public
|
|
111
|
+
* @enum
|
|
112
|
+
*/
|
|
113
|
+
export declare const RuleApplyOrder: {
|
|
114
|
+
readonly AFTER_ACCOUNT_RULES: "AfterAccountRules";
|
|
115
|
+
readonly BEFORE_ACCOUNT_RULES: "BeforeAccountRules";
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export type RuleApplyOrder = (typeof RuleApplyOrder)[keyof typeof RuleApplyOrder];
|
|
121
|
+
/**
|
|
122
|
+
* @public
|
|
123
|
+
* @enum
|
|
124
|
+
*/
|
|
125
|
+
export declare const RecommendedActionType: {
|
|
126
|
+
readonly SNAPSHOT_AND_DELETE_UNATTACHED_EBS_VOLUME: "SnapshotAndDeleteUnattachedEbsVolume";
|
|
127
|
+
readonly UPGRADE_EBS_VOLUME_TYPE: "UpgradeEbsVolumeType";
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
export type RecommendedActionType = (typeof RecommendedActionType)[keyof typeof RecommendedActionType];
|
|
133
|
+
/**
|
|
134
|
+
* @public
|
|
135
|
+
* @enum
|
|
136
|
+
*/
|
|
137
|
+
export declare const RuleType: {
|
|
138
|
+
readonly ACCOUNT_RULE: "AccountRule";
|
|
139
|
+
readonly ORGANIZATIONAL_RULE: "OrganizationRule";
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
export type RuleType = (typeof RuleType)[keyof typeof RuleType];
|
|
145
|
+
/**
|
|
146
|
+
* @public
|
|
147
|
+
* @enum
|
|
148
|
+
*/
|
|
149
|
+
export declare const RuleStatus: {
|
|
150
|
+
readonly ACTIVE: "Active";
|
|
151
|
+
readonly INACTIVE: "Inactive";
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export type RuleStatus = (typeof RuleStatus)[keyof typeof RuleStatus];
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
* @enum
|
|
160
|
+
*/
|
|
161
|
+
export declare const ComparisonOperator: {
|
|
162
|
+
readonly NUMERIC_EQUALS: "NumericEquals";
|
|
163
|
+
readonly NUMERIC_GREATER_THAN: "NumericGreaterThan";
|
|
164
|
+
readonly NUMERIC_GREATER_THAN_EQUALS: "NumericGreaterThanEquals";
|
|
165
|
+
readonly NUMERIC_LESS_THAN: "NumericLessThan";
|
|
166
|
+
readonly NUMERIC_LESS_THAN_EQUALS: "NumericLessThanEquals";
|
|
167
|
+
readonly NUMERIC_NOT_EQUALS: "NumericNotEquals";
|
|
168
|
+
readonly STRING_EQUALS: "StringEquals";
|
|
169
|
+
readonly STRING_EQUALS_IGNORE_CASE: "StringEqualsIgnoreCase";
|
|
170
|
+
readonly STRING_LIKE: "StringLike";
|
|
171
|
+
readonly STRING_NOT_EQUALS: "StringNotEquals";
|
|
172
|
+
readonly STRING_NOT_EQUALS_IGNORE_CASE: "StringNotEqualsIgnoreCase";
|
|
173
|
+
readonly STRING_NOT_LIKE: "StringNotLike";
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export type ComparisonOperator = (typeof ComparisonOperator)[keyof typeof ComparisonOperator];
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { ComputeOptimizerAutomationServiceException as __BaseException } from "./ComputeOptimizerAutomationServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* <p> You do not have sufficient permissions to perform this action. </p>
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* <p> You are not authorized to perform this action. </p>
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export declare class ForbiddenException extends __BaseException {
|
|
20
|
+
readonly name: "ForbiddenException";
|
|
21
|
+
readonly $fault: "client";
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* <p> The specified client token is already in use. </p>
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare class IdempotencyTokenInUseException extends __BaseException {
|
|
32
|
+
readonly name: "IdempotencyTokenInUseException";
|
|
33
|
+
readonly $fault: "client";
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
constructor(opts: __ExceptionOptionType<IdempotencyTokenInUseException, __BaseException>);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* <p>Exception thrown when the same client token is used with different parameters, indicating a mismatch in idempotent request parameters.</p>
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
export declare class IdempotentParameterMismatchException extends __BaseException {
|
|
44
|
+
readonly name: "IdempotentParameterMismatchException";
|
|
45
|
+
readonly $fault: "client";
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
constructor(opts: __ExceptionOptionType<IdempotentParameterMismatchException, __BaseException>);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* <p> An internal error occurred while processing the request. </p>
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
export declare class InternalServerException extends __BaseException {
|
|
56
|
+
readonly name: "InternalServerException";
|
|
57
|
+
readonly $fault: "server";
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* <p> One or more parameter values are not valid. </p>
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare class InvalidParameterValueException extends __BaseException {
|
|
68
|
+
readonly name: "InvalidParameterValueException";
|
|
69
|
+
readonly $fault: "client";
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* <p> The operation can only be performed by a management account. </p>
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
export declare class NotManagementAccountException extends __BaseException {
|
|
80
|
+
readonly name: "NotManagementAccountException";
|
|
81
|
+
readonly $fault: "client";
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
constructor(opts: __ExceptionOptionType<NotManagementAccountException, __BaseException>);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* <p> The account must be opted in to Compute Optimizer Automation before performing this action. </p>
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class OptInRequiredException extends __BaseException {
|
|
92
|
+
readonly name: "OptInRequiredException";
|
|
93
|
+
readonly $fault: "client";
|
|
94
|
+
/**
|
|
95
|
+
* @internal
|
|
96
|
+
*/
|
|
97
|
+
constructor(opts: __ExceptionOptionType<OptInRequiredException, __BaseException>);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* <p> The service is temporarily unavailable. </p>
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
export declare class ServiceUnavailableException extends __BaseException {
|
|
104
|
+
readonly name: "ServiceUnavailableException";
|
|
105
|
+
readonly $fault: "server";
|
|
106
|
+
/**
|
|
107
|
+
* @internal
|
|
108
|
+
*/
|
|
109
|
+
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* <p> The request was denied due to request throttling. </p>
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export declare class ThrottlingException extends __BaseException {
|
|
116
|
+
readonly name: "ThrottlingException";
|
|
117
|
+
readonly $fault: "client";
|
|
118
|
+
/**
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* <p> The specified resource was not found. </p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
128
|
+
readonly name: "ResourceNotFoundException";
|
|
129
|
+
readonly $fault: "client";
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* <p> The request would exceed service quotas. </p>
|
|
137
|
+
* @public
|
|
138
|
+
*/
|
|
139
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
140
|
+
readonly name: "ServiceQuotaExceededException";
|
|
141
|
+
readonly $fault: "client";
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
146
|
+
}
|