@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.
Files changed (173) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +392 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1668 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +41 -0
  11. package/dist-es/ComputeOptimizerAutomation.js +53 -0
  12. package/dist-es/ComputeOptimizerAutomationClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/AssociateAccountsCommand.js +16 -0
  16. package/dist-es/commands/CreateAutomationRuleCommand.js +16 -0
  17. package/dist-es/commands/DeleteAutomationRuleCommand.js +16 -0
  18. package/dist-es/commands/DisassociateAccountsCommand.js +16 -0
  19. package/dist-es/commands/GetAutomationEventCommand.js +16 -0
  20. package/dist-es/commands/GetAutomationRuleCommand.js +16 -0
  21. package/dist-es/commands/GetEnrollmentConfigurationCommand.js +16 -0
  22. package/dist-es/commands/ListAccountsCommand.js +16 -0
  23. package/dist-es/commands/ListAutomationEventStepsCommand.js +16 -0
  24. package/dist-es/commands/ListAutomationEventSummariesCommand.js +16 -0
  25. package/dist-es/commands/ListAutomationEventsCommand.js +16 -0
  26. package/dist-es/commands/ListAutomationRulePreviewCommand.js +16 -0
  27. package/dist-es/commands/ListAutomationRulePreviewSummariesCommand.js +16 -0
  28. package/dist-es/commands/ListAutomationRulesCommand.js +16 -0
  29. package/dist-es/commands/ListRecommendedActionSummariesCommand.js +16 -0
  30. package/dist-es/commands/ListRecommendedActionsCommand.js +16 -0
  31. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  32. package/dist-es/commands/RollbackAutomationEventCommand.js +16 -0
  33. package/dist-es/commands/StartAutomationEventCommand.js +16 -0
  34. package/dist-es/commands/TagResourceCommand.js +16 -0
  35. package/dist-es/commands/UntagResourceCommand.js +16 -0
  36. package/dist-es/commands/UpdateAutomationRuleCommand.js +16 -0
  37. package/dist-es/commands/UpdateEnrollmentConfigurationCommand.js +16 -0
  38. package/dist-es/commands/index.js +23 -0
  39. package/dist-es/endpoint/EndpointParameters.js +13 -0
  40. package/dist-es/endpoint/endpointResolver.js +14 -0
  41. package/dist-es/endpoint/ruleset.js +4 -0
  42. package/dist-es/extensionConfiguration.js +1 -0
  43. package/dist-es/index.js +7 -0
  44. package/dist-es/models/ComputeOptimizerAutomationServiceException.js +8 -0
  45. package/dist-es/models/enums.js +74 -0
  46. package/dist-es/models/errors.js +145 -0
  47. package/dist-es/models/models_0.js +28 -0
  48. package/dist-es/pagination/Interfaces.js +1 -0
  49. package/dist-es/pagination/ListAccountsPaginator.js +4 -0
  50. package/dist-es/pagination/ListAutomationEventStepsPaginator.js +4 -0
  51. package/dist-es/pagination/ListAutomationEventSummariesPaginator.js +4 -0
  52. package/dist-es/pagination/ListAutomationEventsPaginator.js +4 -0
  53. package/dist-es/pagination/ListAutomationRulePreviewPaginator.js +4 -0
  54. package/dist-es/pagination/ListAutomationRulePreviewSummariesPaginator.js +4 -0
  55. package/dist-es/pagination/ListAutomationRulesPaginator.js +4 -0
  56. package/dist-es/pagination/ListRecommendedActionSummariesPaginator.js +4 -0
  57. package/dist-es/pagination/ListRecommendedActionsPaginator.js +4 -0
  58. package/dist-es/pagination/index.js +10 -0
  59. package/dist-es/runtimeConfig.browser.js +34 -0
  60. package/dist-es/runtimeConfig.js +51 -0
  61. package/dist-es/runtimeConfig.native.js +11 -0
  62. package/dist-es/runtimeConfig.shared.js +37 -0
  63. package/dist-es/runtimeExtensions.js +9 -0
  64. package/dist-es/schemas/schemas_0.js +950 -0
  65. package/dist-types/ComputeOptimizerAutomation.d.ts +178 -0
  66. package/dist-types/ComputeOptimizerAutomationClient.d.ts +219 -0
  67. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  68. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  69. package/dist-types/commands/AssociateAccountsCommand.d.ts +112 -0
  70. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +294 -0
  71. package/dist-types/commands/DeleteAutomationRuleCommand.d.ts +104 -0
  72. package/dist-types/commands/DisassociateAccountsCommand.d.ts +112 -0
  73. package/dist-types/commands/GetAutomationEventCommand.d.ts +117 -0
  74. package/dist-types/commands/GetAutomationRuleCommand.d.ts +195 -0
  75. package/dist-types/commands/GetEnrollmentConfigurationCommand.d.ts +99 -0
  76. package/dist-types/commands/ListAccountsCommand.d.ts +108 -0
  77. package/dist-types/commands/ListAutomationEventStepsCommand.d.ts +117 -0
  78. package/dist-types/commands/ListAutomationEventSummariesCommand.d.ts +130 -0
  79. package/dist-types/commands/ListAutomationEventsCommand.d.ts +130 -0
  80. package/dist-types/commands/ListAutomationRulePreviewCommand.d.ts +219 -0
  81. package/dist-types/commands/ListAutomationRulePreviewSummariesCommand.d.ts +186 -0
  82. package/dist-types/commands/ListAutomationRulesCommand.d.ts +133 -0
  83. package/dist-types/commands/ListRecommendedActionSummariesCommand.d.ts +118 -0
  84. package/dist-types/commands/ListRecommendedActionsCommand.d.ts +151 -0
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +103 -0
  86. package/dist-types/commands/RollbackAutomationEventCommand.d.ts +106 -0
  87. package/dist-types/commands/StartAutomationEventCommand.d.ts +110 -0
  88. package/dist-types/commands/TagResourceCommand.d.ts +110 -0
  89. package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
  90. package/dist-types/commands/UpdateAutomationRuleCommand.d.ts +281 -0
  91. package/dist-types/commands/UpdateEnrollmentConfigurationCommand.d.ts +110 -0
  92. package/dist-types/commands/index.d.ts +23 -0
  93. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  94. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  95. package/dist-types/endpoint/ruleset.d.ts +2 -0
  96. package/dist-types/extensionConfiguration.d.ts +9 -0
  97. package/dist-types/index.d.ts +16 -0
  98. package/dist-types/models/ComputeOptimizerAutomationServiceException.d.ts +14 -0
  99. package/dist-types/models/enums.d.ts +178 -0
  100. package/dist-types/models/errors.d.ts +146 -0
  101. package/dist-types/models/models_0.d.ts +2028 -0
  102. package/dist-types/pagination/Interfaces.d.ts +8 -0
  103. package/dist-types/pagination/ListAccountsPaginator.d.ts +7 -0
  104. package/dist-types/pagination/ListAutomationEventStepsPaginator.d.ts +7 -0
  105. package/dist-types/pagination/ListAutomationEventSummariesPaginator.d.ts +7 -0
  106. package/dist-types/pagination/ListAutomationEventsPaginator.d.ts +7 -0
  107. package/dist-types/pagination/ListAutomationRulePreviewPaginator.d.ts +7 -0
  108. package/dist-types/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListAutomationRulesPaginator.d.ts +7 -0
  110. package/dist-types/pagination/ListRecommendedActionSummariesPaginator.d.ts +7 -0
  111. package/dist-types/pagination/ListRecommendedActionsPaginator.d.ts +7 -0
  112. package/dist-types/pagination/index.d.ts +10 -0
  113. package/dist-types/runtimeConfig.browser.d.ts +51 -0
  114. package/dist-types/runtimeConfig.d.ts +51 -0
  115. package/dist-types/runtimeConfig.native.d.ts +50 -0
  116. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  117. package/dist-types/runtimeExtensions.d.ts +17 -0
  118. package/dist-types/schemas/schemas_0.d.ts +141 -0
  119. package/dist-types/ts3.4/ComputeOptimizerAutomation.d.ts +411 -0
  120. package/dist-types/ts3.4/ComputeOptimizerAutomationClient.d.ts +264 -0
  121. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  122. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  123. package/dist-types/ts3.4/commands/AssociateAccountsCommand.d.ts +51 -0
  124. package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +51 -0
  125. package/dist-types/ts3.4/commands/DeleteAutomationRuleCommand.d.ts +51 -0
  126. package/dist-types/ts3.4/commands/DisassociateAccountsCommand.d.ts +51 -0
  127. package/dist-types/ts3.4/commands/GetAutomationEventCommand.d.ts +51 -0
  128. package/dist-types/ts3.4/commands/GetAutomationRuleCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/GetEnrollmentConfigurationCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +47 -0
  131. package/dist-types/ts3.4/commands/ListAutomationEventStepsCommand.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/ListAutomationEventSummariesCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/ListAutomationEventsCommand.d.ts +51 -0
  134. package/dist-types/ts3.4/commands/ListAutomationRulePreviewCommand.d.ts +51 -0
  135. package/dist-types/ts3.4/commands/ListAutomationRulePreviewSummariesCommand.d.ts +51 -0
  136. package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +51 -0
  137. package/dist-types/ts3.4/commands/ListRecommendedActionSummariesCommand.d.ts +51 -0
  138. package/dist-types/ts3.4/commands/ListRecommendedActionsCommand.d.ts +51 -0
  139. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  140. package/dist-types/ts3.4/commands/RollbackAutomationEventCommand.d.ts +51 -0
  141. package/dist-types/ts3.4/commands/StartAutomationEventCommand.d.ts +51 -0
  142. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  143. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  144. package/dist-types/ts3.4/commands/UpdateAutomationRuleCommand.d.ts +51 -0
  145. package/dist-types/ts3.4/commands/UpdateEnrollmentConfigurationCommand.d.ts +51 -0
  146. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  147. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  148. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  149. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  150. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  151. package/dist-types/ts3.4/index.d.ts +11 -0
  152. package/dist-types/ts3.4/models/ComputeOptimizerAutomationServiceException.d.ts +9 -0
  153. package/dist-types/ts3.4/models/enums.d.ts +93 -0
  154. package/dist-types/ts3.4/models/errors.d.ts +87 -0
  155. package/dist-types/ts3.4/models/models_0.d.ts +520 -0
  156. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  157. package/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +11 -0
  158. package/dist-types/ts3.4/pagination/ListAutomationEventStepsPaginator.d.ts +11 -0
  159. package/dist-types/ts3.4/pagination/ListAutomationEventSummariesPaginator.d.ts +11 -0
  160. package/dist-types/ts3.4/pagination/ListAutomationEventsPaginator.d.ts +11 -0
  161. package/dist-types/ts3.4/pagination/ListAutomationRulePreviewPaginator.d.ts +11 -0
  162. package/dist-types/ts3.4/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +11 -0
  163. package/dist-types/ts3.4/pagination/ListAutomationRulesPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/ListRecommendedActionSummariesPaginator.d.ts +11 -0
  165. package/dist-types/ts3.4/pagination/ListRecommendedActionsPaginator.d.ts +11 -0
  166. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  167. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +98 -0
  168. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  169. package/dist-types/ts3.4/runtimeConfig.native.d.ts +102 -0
  170. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
  171. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  172. package/dist-types/ts3.4/schemas/schemas_0.d.ts +146 -0
  173. package/package.json +99 -0
@@ -0,0 +1,520 @@
1
+ import {
2
+ ComparisonOperator,
3
+ EnrollmentStatus,
4
+ EventStatus,
5
+ EventType,
6
+ OrganizationRuleMode,
7
+ RecommendedActionType,
8
+ ResourceType,
9
+ RuleApplyOrder,
10
+ RuleStatus,
11
+ RuleType,
12
+ SavingsEstimationMode,
13
+ StepStatus,
14
+ StepType,
15
+ } from "./enums";
16
+ export interface AccountInfo {
17
+ accountId: string | undefined;
18
+ status: EnrollmentStatus | undefined;
19
+ organizationRuleMode: OrganizationRuleMode | undefined;
20
+ statusReason?: string | undefined;
21
+ lastUpdatedTimestamp: Date | undefined;
22
+ }
23
+ export interface AssociateAccountsRequest {
24
+ accountIds: string[] | undefined;
25
+ clientToken?: string | undefined;
26
+ }
27
+ export interface AssociateAccountsResponse {
28
+ accountIds?: string[] | undefined;
29
+ errors?: string[] | undefined;
30
+ }
31
+ export interface EstimatedMonthlySavings {
32
+ currency: string | undefined;
33
+ beforeDiscountSavings: number | undefined;
34
+ afterDiscountSavings: number | undefined;
35
+ savingsEstimationMode: SavingsEstimationMode | undefined;
36
+ }
37
+ export interface AutomationEvent {
38
+ eventId?: string | undefined;
39
+ eventDescription?: string | undefined;
40
+ eventType?: EventType | undefined;
41
+ eventStatus?: EventStatus | undefined;
42
+ eventStatusReason?: string | undefined;
43
+ resourceArn?: string | undefined;
44
+ resourceId?: string | undefined;
45
+ recommendedActionId?: string | undefined;
46
+ accountId?: string | undefined;
47
+ region?: string | undefined;
48
+ ruleId?: string | undefined;
49
+ resourceType?: ResourceType | undefined;
50
+ createdTimestamp?: Date | undefined;
51
+ completedTimestamp?: Date | undefined;
52
+ estimatedMonthlySavings?: EstimatedMonthlySavings | undefined;
53
+ }
54
+ export declare const AutomationEventFilterName: {
55
+ readonly ACCOUNT_ID: "AccountId";
56
+ readonly EVENT_STATUS: "EventStatus";
57
+ readonly EVENT_TYPE: "EventType";
58
+ readonly RESOURCE_TYPE: "ResourceType";
59
+ };
60
+ export type AutomationEventFilterName =
61
+ (typeof AutomationEventFilterName)[keyof typeof AutomationEventFilterName];
62
+ export interface AutomationEventFilter {
63
+ name: AutomationEventFilterName | undefined;
64
+ values: string[] | undefined;
65
+ }
66
+ export interface AutomationEventStep {
67
+ eventId?: string | undefined;
68
+ stepId?: string | undefined;
69
+ stepType?: StepType | undefined;
70
+ stepStatus?: StepStatus | undefined;
71
+ resourceId?: string | undefined;
72
+ startTimestamp?: Date | undefined;
73
+ completedTimestamp?: Date | undefined;
74
+ estimatedMonthlySavings?: EstimatedMonthlySavings | undefined;
75
+ }
76
+ export declare const SummaryDimensionKey: {
77
+ readonly EVENT_STATUS: "EventStatus";
78
+ };
79
+ export type SummaryDimensionKey =
80
+ (typeof SummaryDimensionKey)[keyof typeof SummaryDimensionKey];
81
+ export interface SummaryDimension {
82
+ key: SummaryDimensionKey | undefined;
83
+ value: string | undefined;
84
+ }
85
+ export interface TimePeriod {
86
+ startTimeInclusive?: Date | undefined;
87
+ endTimeExclusive?: Date | undefined;
88
+ }
89
+ export interface SummaryTotals {
90
+ automationEventCount?: number | undefined;
91
+ estimatedMonthlySavings?: EstimatedMonthlySavings | undefined;
92
+ }
93
+ export interface AutomationEventSummary {
94
+ key?: string | undefined;
95
+ dimensions?: SummaryDimension[] | undefined;
96
+ timePeriod?: TimePeriod | undefined;
97
+ total?: SummaryTotals | undefined;
98
+ }
99
+ export interface OrganizationConfiguration {
100
+ ruleApplyOrder?: RuleApplyOrder | undefined;
101
+ accountIds?: string[] | undefined;
102
+ }
103
+ export interface Schedule {
104
+ scheduleExpression?: string | undefined;
105
+ scheduleExpressionTimezone?: string | undefined;
106
+ executionWindowInMinutes?: number | undefined;
107
+ }
108
+ export interface AutomationRule {
109
+ ruleArn?: string | undefined;
110
+ ruleId?: string | undefined;
111
+ name?: string | undefined;
112
+ description?: string | undefined;
113
+ ruleType?: RuleType | undefined;
114
+ ruleRevision?: number | undefined;
115
+ accountId?: string | undefined;
116
+ organizationConfiguration?: OrganizationConfiguration | undefined;
117
+ priority?: string | undefined;
118
+ recommendedActionTypes?: RecommendedActionType[] | undefined;
119
+ schedule?: Schedule | undefined;
120
+ status?: RuleStatus | undefined;
121
+ createdTimestamp?: Date | undefined;
122
+ lastUpdatedTimestamp?: Date | undefined;
123
+ }
124
+ export declare const AutomationRuleFilterName: {
125
+ readonly ACCOUNT_ID: "AccountId";
126
+ readonly NAME: "Name";
127
+ readonly ORGANIZATION_CONFIGURATION_RULE_APPLY_ORDER: "OrganizationConfigurationRuleApplyOrder";
128
+ readonly RECOMMENDED_ACTION_TYPE: "RecommendedActionType";
129
+ readonly RULE_TYPE: "RuleType";
130
+ readonly STATUS: "Status";
131
+ };
132
+ export type AutomationRuleFilterName =
133
+ (typeof AutomationRuleFilterName)[keyof typeof AutomationRuleFilterName];
134
+ export interface IntegerCriteriaCondition {
135
+ comparison?: ComparisonOperator | undefined;
136
+ values?: number[] | undefined;
137
+ }
138
+ export interface StringCriteriaCondition {
139
+ comparison?: ComparisonOperator | undefined;
140
+ values?: string[] | undefined;
141
+ }
142
+ export interface DoubleCriteriaCondition {
143
+ comparison?: ComparisonOperator | undefined;
144
+ values?: number[] | undefined;
145
+ }
146
+ export interface ResourceTagsCriteriaCondition {
147
+ comparison?: ComparisonOperator | undefined;
148
+ key?: string | undefined;
149
+ values?: string[] | undefined;
150
+ }
151
+ export interface Criteria {
152
+ region?: StringCriteriaCondition[] | undefined;
153
+ resourceArn?: StringCriteriaCondition[] | undefined;
154
+ ebsVolumeType?: StringCriteriaCondition[] | undefined;
155
+ ebsVolumeSizeInGib?: IntegerCriteriaCondition[] | undefined;
156
+ estimatedMonthlySavings?: DoubleCriteriaCondition[] | undefined;
157
+ resourceTag?: ResourceTagsCriteriaCondition[] | undefined;
158
+ lookBackPeriodInDays?: IntegerCriteriaCondition[] | undefined;
159
+ restartNeeded?: StringCriteriaCondition[] | undefined;
160
+ }
161
+ export interface Tag {
162
+ key: string | undefined;
163
+ value: string | undefined;
164
+ }
165
+ export interface CreateAutomationRuleRequest {
166
+ name: string | undefined;
167
+ description?: string | undefined;
168
+ ruleType: RuleType | undefined;
169
+ organizationConfiguration?: OrganizationConfiguration | undefined;
170
+ priority?: string | undefined;
171
+ recommendedActionTypes: RecommendedActionType[] | undefined;
172
+ criteria?: Criteria | undefined;
173
+ schedule: Schedule | undefined;
174
+ status: RuleStatus | undefined;
175
+ tags?: Tag[] | undefined;
176
+ clientToken?: string | undefined;
177
+ }
178
+ export interface CreateAutomationRuleResponse {
179
+ ruleArn?: string | undefined;
180
+ ruleId?: string | undefined;
181
+ name?: string | undefined;
182
+ description?: string | undefined;
183
+ ruleType?: RuleType | undefined;
184
+ ruleRevision?: number | undefined;
185
+ organizationConfiguration?: OrganizationConfiguration | undefined;
186
+ priority?: string | undefined;
187
+ recommendedActionTypes?: RecommendedActionType[] | undefined;
188
+ criteria?: Criteria | undefined;
189
+ schedule?: Schedule | undefined;
190
+ status?: RuleStatus | undefined;
191
+ tags?: Tag[] | undefined;
192
+ createdTimestamp?: Date | undefined;
193
+ }
194
+ export interface DeleteAutomationRuleRequest {
195
+ ruleArn: string | undefined;
196
+ ruleRevision: number | undefined;
197
+ clientToken?: string | undefined;
198
+ }
199
+ export interface DeleteAutomationRuleResponse {}
200
+ export interface DisassociateAccountsRequest {
201
+ accountIds: string[] | undefined;
202
+ clientToken?: string | undefined;
203
+ }
204
+ export interface DisassociateAccountsResponse {
205
+ accountIds?: string[] | undefined;
206
+ errors?: string[] | undefined;
207
+ }
208
+ export interface GetAutomationEventRequest {
209
+ eventId: string | undefined;
210
+ }
211
+ export interface GetAutomationEventResponse {
212
+ eventId?: string | undefined;
213
+ eventDescription?: string | undefined;
214
+ eventType?: EventType | undefined;
215
+ eventStatus?: EventStatus | undefined;
216
+ eventStatusReason?: string | undefined;
217
+ resourceArn?: string | undefined;
218
+ resourceId?: string | undefined;
219
+ recommendedActionId?: string | undefined;
220
+ accountId?: string | undefined;
221
+ region?: string | undefined;
222
+ ruleId?: string | undefined;
223
+ resourceType?: ResourceType | undefined;
224
+ createdTimestamp?: Date | undefined;
225
+ completedTimestamp?: Date | undefined;
226
+ estimatedMonthlySavings?: EstimatedMonthlySavings | undefined;
227
+ }
228
+ export interface GetAutomationRuleRequest {
229
+ ruleArn: string | undefined;
230
+ }
231
+ export interface GetAutomationRuleResponse {
232
+ ruleArn?: string | undefined;
233
+ ruleId?: string | undefined;
234
+ name?: string | undefined;
235
+ description?: string | undefined;
236
+ ruleType?: RuleType | undefined;
237
+ ruleRevision?: number | undefined;
238
+ accountId?: string | undefined;
239
+ organizationConfiguration?: OrganizationConfiguration | undefined;
240
+ priority?: string | undefined;
241
+ recommendedActionTypes?: RecommendedActionType[] | undefined;
242
+ criteria?: Criteria | undefined;
243
+ schedule?: Schedule | undefined;
244
+ status?: RuleStatus | undefined;
245
+ tags?: Tag[] | undefined;
246
+ createdTimestamp?: Date | undefined;
247
+ lastUpdatedTimestamp?: Date | undefined;
248
+ }
249
+ export interface GetEnrollmentConfigurationRequest {}
250
+ export interface GetEnrollmentConfigurationResponse {
251
+ status: EnrollmentStatus | undefined;
252
+ statusReason?: string | undefined;
253
+ organizationRuleMode?: OrganizationRuleMode | undefined;
254
+ lastUpdatedTimestamp?: Date | undefined;
255
+ }
256
+ export interface ListAccountsRequest {
257
+ maxResults?: number | undefined;
258
+ nextToken?: string | undefined;
259
+ }
260
+ export interface ListAccountsResponse {
261
+ accounts: AccountInfo[] | undefined;
262
+ nextToken?: string | undefined;
263
+ }
264
+ export interface ListAutomationEventsRequest {
265
+ filters?: AutomationEventFilter[] | undefined;
266
+ startTimeInclusive?: Date | undefined;
267
+ endTimeExclusive?: Date | undefined;
268
+ maxResults?: number | undefined;
269
+ nextToken?: string | undefined;
270
+ }
271
+ export interface ListAutomationEventsResponse {
272
+ automationEvents?: AutomationEvent[] | undefined;
273
+ nextToken?: string | undefined;
274
+ }
275
+ export interface ListAutomationEventStepsRequest {
276
+ eventId: string | undefined;
277
+ maxResults?: number | undefined;
278
+ nextToken?: string | undefined;
279
+ }
280
+ export interface ListAutomationEventStepsResponse {
281
+ automationEventSteps?: AutomationEventStep[] | undefined;
282
+ nextToken?: string | undefined;
283
+ }
284
+ export interface ListAutomationEventSummariesRequest {
285
+ filters?: AutomationEventFilter[] | undefined;
286
+ startDateInclusive?: string | undefined;
287
+ endDateExclusive?: string | undefined;
288
+ maxResults?: number | undefined;
289
+ nextToken?: string | undefined;
290
+ }
291
+ export interface ListAutomationEventSummariesResponse {
292
+ automationEventSummaries?: AutomationEventSummary[] | undefined;
293
+ nextToken?: string | undefined;
294
+ }
295
+ export interface OrganizationScope {
296
+ accountIds?: string[] | undefined;
297
+ }
298
+ export interface ListAutomationRulePreviewRequest {
299
+ ruleType: RuleType | undefined;
300
+ organizationScope?: OrganizationScope | undefined;
301
+ recommendedActionTypes: RecommendedActionType[] | undefined;
302
+ criteria?: Criteria | undefined;
303
+ maxResults?: number | undefined;
304
+ nextToken?: string | undefined;
305
+ }
306
+ export interface EbsVolumeConfiguration {
307
+ type?: string | undefined;
308
+ sizeInGib?: number | undefined;
309
+ iops?: number | undefined;
310
+ throughput?: number | undefined;
311
+ }
312
+ export interface EbsVolume {
313
+ configuration?: EbsVolumeConfiguration | undefined;
314
+ }
315
+ export type ResourceDetails =
316
+ | ResourceDetails.EbsVolumeMember
317
+ | ResourceDetails.$UnknownMember;
318
+ export declare namespace ResourceDetails {
319
+ interface EbsVolumeMember {
320
+ ebsVolume: EbsVolume;
321
+ $unknown?: never;
322
+ }
323
+ interface $UnknownMember {
324
+ ebsVolume?: never;
325
+ $unknown: [string, any];
326
+ }
327
+ interface Visitor<T> {
328
+ ebsVolume: (value: EbsVolume) => T;
329
+ _: (name: string, value: any) => T;
330
+ }
331
+ }
332
+ export interface PreviewResult {
333
+ recommendedActionId?: string | undefined;
334
+ resourceArn?: string | undefined;
335
+ resourceId?: string | undefined;
336
+ accountId?: string | undefined;
337
+ region?: string | undefined;
338
+ resourceType?: ResourceType | undefined;
339
+ lookBackPeriodInDays?: number | undefined;
340
+ recommendedActionType?: RecommendedActionType | undefined;
341
+ currentResourceSummary?: string | undefined;
342
+ currentResourceDetails?: ResourceDetails | undefined;
343
+ recommendedResourceSummary?: string | undefined;
344
+ recommendedResourceDetails?: ResourceDetails | undefined;
345
+ restartNeeded?: boolean | undefined;
346
+ estimatedMonthlySavings?: EstimatedMonthlySavings | undefined;
347
+ resourceTags?: Tag[] | undefined;
348
+ }
349
+ export interface ListAutomationRulePreviewResponse {
350
+ previewResults?: PreviewResult[] | undefined;
351
+ nextToken?: string | undefined;
352
+ }
353
+ export interface ListAutomationRulePreviewSummariesRequest {
354
+ ruleType: RuleType | undefined;
355
+ organizationScope?: OrganizationScope | undefined;
356
+ recommendedActionTypes: RecommendedActionType[] | undefined;
357
+ criteria?: Criteria | undefined;
358
+ maxResults?: number | undefined;
359
+ nextToken?: string | undefined;
360
+ }
361
+ export interface RulePreviewTotal {
362
+ recommendedActionCount: number | undefined;
363
+ estimatedMonthlySavings: EstimatedMonthlySavings | undefined;
364
+ }
365
+ export interface PreviewResultSummary {
366
+ key: string | undefined;
367
+ total: RulePreviewTotal | undefined;
368
+ }
369
+ export interface ListAutomationRulePreviewSummariesResponse {
370
+ previewResultSummaries?: PreviewResultSummary[] | undefined;
371
+ nextToken?: string | undefined;
372
+ }
373
+ export interface Filter {
374
+ name: AutomationRuleFilterName | undefined;
375
+ values: string[] | undefined;
376
+ }
377
+ export interface ListAutomationRulesRequest {
378
+ filters?: Filter[] | undefined;
379
+ maxResults?: number | undefined;
380
+ nextToken?: string | undefined;
381
+ }
382
+ export interface ListAutomationRulesResponse {
383
+ automationRules?: AutomationRule[] | undefined;
384
+ nextToken?: string | undefined;
385
+ }
386
+ export declare const RecommendedActionFilterName: {
387
+ readonly ACCOUNT_ID: "AccountId";
388
+ readonly CURRENT_RESOURCE_DETAILS_EBS_VOLUME_TYPE: "CurrentResourceDetailsEbsVolumeType";
389
+ readonly LOOK_BACK_PERIOD_IN_DAYS: "LookBackPeriodInDays";
390
+ readonly RECOMMENDED_ACTION_TYPE: "RecommendedActionType";
391
+ readonly RESOURCE_ID: "ResourceId";
392
+ readonly RESOURCE_TAGS_KEY: "ResourceTagsKey";
393
+ readonly RESOURCE_TAGS_VALUE: "ResourceTagsValue";
394
+ readonly RESOURCE_TYPE: "ResourceType";
395
+ readonly RESTART_NEEDED: "RestartNeeded";
396
+ };
397
+ export type RecommendedActionFilterName =
398
+ (typeof RecommendedActionFilterName)[keyof typeof RecommendedActionFilterName];
399
+ export interface RecommendedActionFilter {
400
+ name: RecommendedActionFilterName | undefined;
401
+ values: string[] | undefined;
402
+ }
403
+ export interface ListRecommendedActionsRequest {
404
+ filters?: RecommendedActionFilter[] | undefined;
405
+ maxResults?: number | undefined;
406
+ nextToken?: string | undefined;
407
+ }
408
+ export interface RecommendedAction {
409
+ recommendedActionId?: string | undefined;
410
+ resourceArn?: string | undefined;
411
+ resourceId?: string | undefined;
412
+ accountId?: string | undefined;
413
+ region?: string | undefined;
414
+ resourceType?: ResourceType | undefined;
415
+ lookBackPeriodInDays?: number | undefined;
416
+ recommendedActionType?: RecommendedActionType | undefined;
417
+ currentResourceSummary?: string | undefined;
418
+ currentResourceDetails?: ResourceDetails | undefined;
419
+ recommendedResourceSummary?: string | undefined;
420
+ recommendedResourceDetails?: ResourceDetails | undefined;
421
+ restartNeeded?: boolean | undefined;
422
+ estimatedMonthlySavings?: EstimatedMonthlySavings | undefined;
423
+ resourceTags?: Tag[] | undefined;
424
+ }
425
+ export interface ListRecommendedActionsResponse {
426
+ recommendedActions?: RecommendedAction[] | undefined;
427
+ nextToken?: string | undefined;
428
+ }
429
+ export interface ListRecommendedActionSummariesRequest {
430
+ filters?: RecommendedActionFilter[] | undefined;
431
+ maxResults?: number | undefined;
432
+ nextToken?: string | undefined;
433
+ }
434
+ export interface RecommendedActionTotal {
435
+ recommendedActionCount: number | undefined;
436
+ estimatedMonthlySavings: EstimatedMonthlySavings | undefined;
437
+ }
438
+ export interface RecommendedActionSummary {
439
+ key: string | undefined;
440
+ total: RecommendedActionTotal | undefined;
441
+ }
442
+ export interface ListRecommendedActionSummariesResponse {
443
+ recommendedActionSummaries?: RecommendedActionSummary[] | undefined;
444
+ nextToken?: string | undefined;
445
+ }
446
+ export interface ListTagsForResourceRequest {
447
+ resourceArn: string | undefined;
448
+ }
449
+ export interface ListTagsForResourceResponse {
450
+ tags?: Tag[] | undefined;
451
+ }
452
+ export interface RollbackAutomationEventRequest {
453
+ eventId: string | undefined;
454
+ clientToken?: string | undefined;
455
+ }
456
+ export interface RollbackAutomationEventResponse {
457
+ eventId?: string | undefined;
458
+ eventStatus?: EventStatus | undefined;
459
+ }
460
+ export interface StartAutomationEventRequest {
461
+ recommendedActionId: string | undefined;
462
+ clientToken?: string | undefined;
463
+ }
464
+ export interface StartAutomationEventResponse {
465
+ recommendedActionId?: string | undefined;
466
+ eventId?: string | undefined;
467
+ eventStatus?: EventStatus | undefined;
468
+ }
469
+ export interface TagResourceRequest {
470
+ resourceArn: string | undefined;
471
+ ruleRevision: number | undefined;
472
+ tags: Tag[] | undefined;
473
+ clientToken?: string | undefined;
474
+ }
475
+ export interface TagResourceResponse {}
476
+ export interface UntagResourceRequest {
477
+ resourceArn: string | undefined;
478
+ ruleRevision: number | undefined;
479
+ tagKeys: string[] | undefined;
480
+ clientToken?: string | undefined;
481
+ }
482
+ export interface UntagResourceResponse {}
483
+ export interface UpdateAutomationRuleRequest {
484
+ ruleArn: string | undefined;
485
+ ruleRevision: number | undefined;
486
+ name?: string | undefined;
487
+ description?: string | undefined;
488
+ ruleType?: RuleType | undefined;
489
+ organizationConfiguration?: OrganizationConfiguration | undefined;
490
+ priority?: string | undefined;
491
+ recommendedActionTypes?: RecommendedActionType[] | undefined;
492
+ criteria?: Criteria | undefined;
493
+ schedule?: Schedule | undefined;
494
+ status?: RuleStatus | undefined;
495
+ clientToken?: string | undefined;
496
+ }
497
+ export interface UpdateAutomationRuleResponse {
498
+ ruleArn?: string | undefined;
499
+ ruleRevision?: number | undefined;
500
+ name?: string | undefined;
501
+ description?: string | undefined;
502
+ ruleType?: RuleType | undefined;
503
+ organizationConfiguration?: OrganizationConfiguration | undefined;
504
+ priority?: string | undefined;
505
+ recommendedActionTypes?: RecommendedActionType[] | undefined;
506
+ criteria?: Criteria | undefined;
507
+ schedule?: Schedule | undefined;
508
+ status?: RuleStatus | undefined;
509
+ createdTimestamp?: Date | undefined;
510
+ lastUpdatedTimestamp?: Date | undefined;
511
+ }
512
+ export interface UpdateEnrollmentConfigurationRequest {
513
+ status: EnrollmentStatus | undefined;
514
+ clientToken?: string | undefined;
515
+ }
516
+ export interface UpdateEnrollmentConfigurationResponse {
517
+ status: EnrollmentStatus | undefined;
518
+ statusReason?: string | undefined;
519
+ lastUpdatedTimestamp: Date | undefined;
520
+ }
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@smithy/types";
2
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
3
+ export interface ComputeOptimizerAutomationPaginationConfiguration
4
+ extends PaginationConfiguration {
5
+ client: ComputeOptimizerAutomationClient;
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAccountsCommandInput,
4
+ ListAccountsCommandOutput,
5
+ } from "../commands/ListAccountsCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAccounts: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListAccountsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAccountsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAutomationEventStepsCommandInput,
4
+ ListAutomationEventStepsCommandOutput,
5
+ } from "../commands/ListAutomationEventStepsCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAutomationEventSteps: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListAutomationEventStepsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAutomationEventStepsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAutomationEventSummariesCommandInput,
4
+ ListAutomationEventSummariesCommandOutput,
5
+ } from "../commands/ListAutomationEventSummariesCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAutomationEventSummaries: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListAutomationEventSummariesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAutomationEventSummariesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAutomationEventsCommandInput,
4
+ ListAutomationEventsCommandOutput,
5
+ } from "../commands/ListAutomationEventsCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAutomationEvents: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListAutomationEventsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAutomationEventsCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAutomationRulePreviewCommandInput,
4
+ ListAutomationRulePreviewCommandOutput,
5
+ } from "../commands/ListAutomationRulePreviewCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAutomationRulePreview: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListAutomationRulePreviewCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAutomationRulePreviewCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAutomationRulePreviewSummariesCommandInput,
4
+ ListAutomationRulePreviewSummariesCommandOutput,
5
+ } from "../commands/ListAutomationRulePreviewSummariesCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAutomationRulePreviewSummaries: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListAutomationRulePreviewSummariesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAutomationRulePreviewSummariesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAutomationRulesCommandInput,
4
+ ListAutomationRulesCommandOutput,
5
+ } from "../commands/ListAutomationRulesCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAutomationRules: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListAutomationRulesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAutomationRulesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListRecommendedActionSummariesCommandInput,
4
+ ListRecommendedActionSummariesCommandOutput,
5
+ } from "../commands/ListRecommendedActionSummariesCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListRecommendedActionSummaries: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListRecommendedActionSummariesCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListRecommendedActionSummariesCommandOutput>;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListRecommendedActionsCommandInput,
4
+ ListRecommendedActionsCommandOutput,
5
+ } from "../commands/ListRecommendedActionsCommand";
6
+ import { ComputeOptimizerAutomationPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListRecommendedActions: (
8
+ config: ComputeOptimizerAutomationPaginationConfiguration,
9
+ input: ListRecommendedActionsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListRecommendedActionsCommandOutput>;
@@ -0,0 +1,10 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAccountsPaginator";
3
+ export * from "./ListAutomationEventStepsPaginator";
4
+ export * from "./ListAutomationEventSummariesPaginator";
5
+ export * from "./ListAutomationEventsPaginator";
6
+ export * from "./ListAutomationRulePreviewPaginator";
7
+ export * from "./ListAutomationRulePreviewSummariesPaginator";
8
+ export * from "./ListAutomationRulesPaginator";
9
+ export * from "./ListRecommendedActionSummariesPaginator";
10
+ export * from "./ListRecommendedActionsPaginator";