@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,178 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { AssociateAccountsCommandInput, AssociateAccountsCommandOutput } from "./commands/AssociateAccountsCommand";
3
+ import { CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput } from "./commands/CreateAutomationRuleCommand";
4
+ import { DeleteAutomationRuleCommandInput, DeleteAutomationRuleCommandOutput } from "./commands/DeleteAutomationRuleCommand";
5
+ import { DisassociateAccountsCommandInput, DisassociateAccountsCommandOutput } from "./commands/DisassociateAccountsCommand";
6
+ import { GetAutomationEventCommandInput, GetAutomationEventCommandOutput } from "./commands/GetAutomationEventCommand";
7
+ import { GetAutomationRuleCommandInput, GetAutomationRuleCommandOutput } from "./commands/GetAutomationRuleCommand";
8
+ import { GetEnrollmentConfigurationCommandInput, GetEnrollmentConfigurationCommandOutput } from "./commands/GetEnrollmentConfigurationCommand";
9
+ import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
10
+ import { ListAutomationEventsCommandInput, ListAutomationEventsCommandOutput } from "./commands/ListAutomationEventsCommand";
11
+ import { ListAutomationEventStepsCommandInput, ListAutomationEventStepsCommandOutput } from "./commands/ListAutomationEventStepsCommand";
12
+ import { ListAutomationEventSummariesCommandInput, ListAutomationEventSummariesCommandOutput } from "./commands/ListAutomationEventSummariesCommand";
13
+ import { ListAutomationRulePreviewCommandInput, ListAutomationRulePreviewCommandOutput } from "./commands/ListAutomationRulePreviewCommand";
14
+ import { ListAutomationRulePreviewSummariesCommandInput, ListAutomationRulePreviewSummariesCommandOutput } from "./commands/ListAutomationRulePreviewSummariesCommand";
15
+ import { ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput } from "./commands/ListAutomationRulesCommand";
16
+ import { ListRecommendedActionsCommandInput, ListRecommendedActionsCommandOutput } from "./commands/ListRecommendedActionsCommand";
17
+ import { ListRecommendedActionSummariesCommandInput, ListRecommendedActionSummariesCommandOutput } from "./commands/ListRecommendedActionSummariesCommand";
18
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
19
+ import { RollbackAutomationEventCommandInput, RollbackAutomationEventCommandOutput } from "./commands/RollbackAutomationEventCommand";
20
+ import { StartAutomationEventCommandInput, StartAutomationEventCommandOutput } from "./commands/StartAutomationEventCommand";
21
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
22
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
23
+ import { UpdateAutomationRuleCommandInput, UpdateAutomationRuleCommandOutput } from "./commands/UpdateAutomationRuleCommand";
24
+ import { UpdateEnrollmentConfigurationCommandInput, UpdateEnrollmentConfigurationCommandOutput } from "./commands/UpdateEnrollmentConfigurationCommand";
25
+ import { ComputeOptimizerAutomationClient } from "./ComputeOptimizerAutomationClient";
26
+ export interface ComputeOptimizerAutomation {
27
+ /**
28
+ * @see {@link AssociateAccountsCommand}
29
+ */
30
+ associateAccounts(args: AssociateAccountsCommandInput, options?: __HttpHandlerOptions): Promise<AssociateAccountsCommandOutput>;
31
+ associateAccounts(args: AssociateAccountsCommandInput, cb: (err: any, data?: AssociateAccountsCommandOutput) => void): void;
32
+ associateAccounts(args: AssociateAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateAccountsCommandOutput) => void): void;
33
+ /**
34
+ * @see {@link CreateAutomationRuleCommand}
35
+ */
36
+ createAutomationRule(args: CreateAutomationRuleCommandInput, options?: __HttpHandlerOptions): Promise<CreateAutomationRuleCommandOutput>;
37
+ createAutomationRule(args: CreateAutomationRuleCommandInput, cb: (err: any, data?: CreateAutomationRuleCommandOutput) => void): void;
38
+ createAutomationRule(args: CreateAutomationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAutomationRuleCommandOutput) => void): void;
39
+ /**
40
+ * @see {@link DeleteAutomationRuleCommand}
41
+ */
42
+ deleteAutomationRule(args: DeleteAutomationRuleCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAutomationRuleCommandOutput>;
43
+ deleteAutomationRule(args: DeleteAutomationRuleCommandInput, cb: (err: any, data?: DeleteAutomationRuleCommandOutput) => void): void;
44
+ deleteAutomationRule(args: DeleteAutomationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAutomationRuleCommandOutput) => void): void;
45
+ /**
46
+ * @see {@link DisassociateAccountsCommand}
47
+ */
48
+ disassociateAccounts(args: DisassociateAccountsCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateAccountsCommandOutput>;
49
+ disassociateAccounts(args: DisassociateAccountsCommandInput, cb: (err: any, data?: DisassociateAccountsCommandOutput) => void): void;
50
+ disassociateAccounts(args: DisassociateAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateAccountsCommandOutput) => void): void;
51
+ /**
52
+ * @see {@link GetAutomationEventCommand}
53
+ */
54
+ getAutomationEvent(args: GetAutomationEventCommandInput, options?: __HttpHandlerOptions): Promise<GetAutomationEventCommandOutput>;
55
+ getAutomationEvent(args: GetAutomationEventCommandInput, cb: (err: any, data?: GetAutomationEventCommandOutput) => void): void;
56
+ getAutomationEvent(args: GetAutomationEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAutomationEventCommandOutput) => void): void;
57
+ /**
58
+ * @see {@link GetAutomationRuleCommand}
59
+ */
60
+ getAutomationRule(args: GetAutomationRuleCommandInput, options?: __HttpHandlerOptions): Promise<GetAutomationRuleCommandOutput>;
61
+ getAutomationRule(args: GetAutomationRuleCommandInput, cb: (err: any, data?: GetAutomationRuleCommandOutput) => void): void;
62
+ getAutomationRule(args: GetAutomationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAutomationRuleCommandOutput) => void): void;
63
+ /**
64
+ * @see {@link GetEnrollmentConfigurationCommand}
65
+ */
66
+ getEnrollmentConfiguration(): Promise<GetEnrollmentConfigurationCommandOutput>;
67
+ getEnrollmentConfiguration(args: GetEnrollmentConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<GetEnrollmentConfigurationCommandOutput>;
68
+ getEnrollmentConfiguration(args: GetEnrollmentConfigurationCommandInput, cb: (err: any, data?: GetEnrollmentConfigurationCommandOutput) => void): void;
69
+ getEnrollmentConfiguration(args: GetEnrollmentConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEnrollmentConfigurationCommandOutput) => void): void;
70
+ /**
71
+ * @see {@link ListAccountsCommand}
72
+ */
73
+ listAccounts(): Promise<ListAccountsCommandOutput>;
74
+ listAccounts(args: ListAccountsCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountsCommandOutput>;
75
+ listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
76
+ listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void;
77
+ /**
78
+ * @see {@link ListAutomationEventsCommand}
79
+ */
80
+ listAutomationEvents(): Promise<ListAutomationEventsCommandOutput>;
81
+ listAutomationEvents(args: ListAutomationEventsCommandInput, options?: __HttpHandlerOptions): Promise<ListAutomationEventsCommandOutput>;
82
+ listAutomationEvents(args: ListAutomationEventsCommandInput, cb: (err: any, data?: ListAutomationEventsCommandOutput) => void): void;
83
+ listAutomationEvents(args: ListAutomationEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAutomationEventsCommandOutput) => void): void;
84
+ /**
85
+ * @see {@link ListAutomationEventStepsCommand}
86
+ */
87
+ listAutomationEventSteps(args: ListAutomationEventStepsCommandInput, options?: __HttpHandlerOptions): Promise<ListAutomationEventStepsCommandOutput>;
88
+ listAutomationEventSteps(args: ListAutomationEventStepsCommandInput, cb: (err: any, data?: ListAutomationEventStepsCommandOutput) => void): void;
89
+ listAutomationEventSteps(args: ListAutomationEventStepsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAutomationEventStepsCommandOutput) => void): void;
90
+ /**
91
+ * @see {@link ListAutomationEventSummariesCommand}
92
+ */
93
+ listAutomationEventSummaries(): Promise<ListAutomationEventSummariesCommandOutput>;
94
+ listAutomationEventSummaries(args: ListAutomationEventSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListAutomationEventSummariesCommandOutput>;
95
+ listAutomationEventSummaries(args: ListAutomationEventSummariesCommandInput, cb: (err: any, data?: ListAutomationEventSummariesCommandOutput) => void): void;
96
+ listAutomationEventSummaries(args: ListAutomationEventSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAutomationEventSummariesCommandOutput) => void): void;
97
+ /**
98
+ * @see {@link ListAutomationRulePreviewCommand}
99
+ */
100
+ listAutomationRulePreview(args: ListAutomationRulePreviewCommandInput, options?: __HttpHandlerOptions): Promise<ListAutomationRulePreviewCommandOutput>;
101
+ listAutomationRulePreview(args: ListAutomationRulePreviewCommandInput, cb: (err: any, data?: ListAutomationRulePreviewCommandOutput) => void): void;
102
+ listAutomationRulePreview(args: ListAutomationRulePreviewCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAutomationRulePreviewCommandOutput) => void): void;
103
+ /**
104
+ * @see {@link ListAutomationRulePreviewSummariesCommand}
105
+ */
106
+ listAutomationRulePreviewSummaries(args: ListAutomationRulePreviewSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListAutomationRulePreviewSummariesCommandOutput>;
107
+ listAutomationRulePreviewSummaries(args: ListAutomationRulePreviewSummariesCommandInput, cb: (err: any, data?: ListAutomationRulePreviewSummariesCommandOutput) => void): void;
108
+ listAutomationRulePreviewSummaries(args: ListAutomationRulePreviewSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAutomationRulePreviewSummariesCommandOutput) => void): void;
109
+ /**
110
+ * @see {@link ListAutomationRulesCommand}
111
+ */
112
+ listAutomationRules(): Promise<ListAutomationRulesCommandOutput>;
113
+ listAutomationRules(args: ListAutomationRulesCommandInput, options?: __HttpHandlerOptions): Promise<ListAutomationRulesCommandOutput>;
114
+ listAutomationRules(args: ListAutomationRulesCommandInput, cb: (err: any, data?: ListAutomationRulesCommandOutput) => void): void;
115
+ listAutomationRules(args: ListAutomationRulesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAutomationRulesCommandOutput) => void): void;
116
+ /**
117
+ * @see {@link ListRecommendedActionsCommand}
118
+ */
119
+ listRecommendedActions(): Promise<ListRecommendedActionsCommandOutput>;
120
+ listRecommendedActions(args: ListRecommendedActionsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendedActionsCommandOutput>;
121
+ listRecommendedActions(args: ListRecommendedActionsCommandInput, cb: (err: any, data?: ListRecommendedActionsCommandOutput) => void): void;
122
+ listRecommendedActions(args: ListRecommendedActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendedActionsCommandOutput) => void): void;
123
+ /**
124
+ * @see {@link ListRecommendedActionSummariesCommand}
125
+ */
126
+ listRecommendedActionSummaries(): Promise<ListRecommendedActionSummariesCommandOutput>;
127
+ listRecommendedActionSummaries(args: ListRecommendedActionSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendedActionSummariesCommandOutput>;
128
+ listRecommendedActionSummaries(args: ListRecommendedActionSummariesCommandInput, cb: (err: any, data?: ListRecommendedActionSummariesCommandOutput) => void): void;
129
+ listRecommendedActionSummaries(args: ListRecommendedActionSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendedActionSummariesCommandOutput) => void): void;
130
+ /**
131
+ * @see {@link ListTagsForResourceCommand}
132
+ */
133
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
134
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
135
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
136
+ /**
137
+ * @see {@link RollbackAutomationEventCommand}
138
+ */
139
+ rollbackAutomationEvent(args: RollbackAutomationEventCommandInput, options?: __HttpHandlerOptions): Promise<RollbackAutomationEventCommandOutput>;
140
+ rollbackAutomationEvent(args: RollbackAutomationEventCommandInput, cb: (err: any, data?: RollbackAutomationEventCommandOutput) => void): void;
141
+ rollbackAutomationEvent(args: RollbackAutomationEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RollbackAutomationEventCommandOutput) => void): void;
142
+ /**
143
+ * @see {@link StartAutomationEventCommand}
144
+ */
145
+ startAutomationEvent(args: StartAutomationEventCommandInput, options?: __HttpHandlerOptions): Promise<StartAutomationEventCommandOutput>;
146
+ startAutomationEvent(args: StartAutomationEventCommandInput, cb: (err: any, data?: StartAutomationEventCommandOutput) => void): void;
147
+ startAutomationEvent(args: StartAutomationEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAutomationEventCommandOutput) => void): void;
148
+ /**
149
+ * @see {@link TagResourceCommand}
150
+ */
151
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
152
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
153
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
154
+ /**
155
+ * @see {@link UntagResourceCommand}
156
+ */
157
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
158
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
159
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
160
+ /**
161
+ * @see {@link UpdateAutomationRuleCommand}
162
+ */
163
+ updateAutomationRule(args: UpdateAutomationRuleCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAutomationRuleCommandOutput>;
164
+ updateAutomationRule(args: UpdateAutomationRuleCommandInput, cb: (err: any, data?: UpdateAutomationRuleCommandOutput) => void): void;
165
+ updateAutomationRule(args: UpdateAutomationRuleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAutomationRuleCommandOutput) => void): void;
166
+ /**
167
+ * @see {@link UpdateEnrollmentConfigurationCommand}
168
+ */
169
+ updateEnrollmentConfiguration(args: UpdateEnrollmentConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnrollmentConfigurationCommandOutput>;
170
+ updateEnrollmentConfiguration(args: UpdateEnrollmentConfigurationCommandInput, cb: (err: any, data?: UpdateEnrollmentConfigurationCommandOutput) => void): void;
171
+ updateEnrollmentConfiguration(args: UpdateEnrollmentConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnrollmentConfigurationCommandOutput) => void): void;
172
+ }
173
+ /**
174
+ * <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>
175
+ * @public
176
+ */
177
+ export declare class ComputeOptimizerAutomation extends ComputeOptimizerAutomationClient implements ComputeOptimizerAutomation {
178
+ }
@@ -0,0 +1,219 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { AssociateAccountsCommandInput, AssociateAccountsCommandOutput } from "./commands/AssociateAccountsCommand";
11
+ import { CreateAutomationRuleCommandInput, CreateAutomationRuleCommandOutput } from "./commands/CreateAutomationRuleCommand";
12
+ import { DeleteAutomationRuleCommandInput, DeleteAutomationRuleCommandOutput } from "./commands/DeleteAutomationRuleCommand";
13
+ import { DisassociateAccountsCommandInput, DisassociateAccountsCommandOutput } from "./commands/DisassociateAccountsCommand";
14
+ import { GetAutomationEventCommandInput, GetAutomationEventCommandOutput } from "./commands/GetAutomationEventCommand";
15
+ import { GetAutomationRuleCommandInput, GetAutomationRuleCommandOutput } from "./commands/GetAutomationRuleCommand";
16
+ import { GetEnrollmentConfigurationCommandInput, GetEnrollmentConfigurationCommandOutput } from "./commands/GetEnrollmentConfigurationCommand";
17
+ import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand";
18
+ import { ListAutomationEventsCommandInput, ListAutomationEventsCommandOutput } from "./commands/ListAutomationEventsCommand";
19
+ import { ListAutomationEventStepsCommandInput, ListAutomationEventStepsCommandOutput } from "./commands/ListAutomationEventStepsCommand";
20
+ import { ListAutomationEventSummariesCommandInput, ListAutomationEventSummariesCommandOutput } from "./commands/ListAutomationEventSummariesCommand";
21
+ import { ListAutomationRulePreviewCommandInput, ListAutomationRulePreviewCommandOutput } from "./commands/ListAutomationRulePreviewCommand";
22
+ import { ListAutomationRulePreviewSummariesCommandInput, ListAutomationRulePreviewSummariesCommandOutput } from "./commands/ListAutomationRulePreviewSummariesCommand";
23
+ import { ListAutomationRulesCommandInput, ListAutomationRulesCommandOutput } from "./commands/ListAutomationRulesCommand";
24
+ import { ListRecommendedActionsCommandInput, ListRecommendedActionsCommandOutput } from "./commands/ListRecommendedActionsCommand";
25
+ import { ListRecommendedActionSummariesCommandInput, ListRecommendedActionSummariesCommandOutput } from "./commands/ListRecommendedActionSummariesCommand";
26
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
27
+ import { RollbackAutomationEventCommandInput, RollbackAutomationEventCommandOutput } from "./commands/RollbackAutomationEventCommand";
28
+ import { StartAutomationEventCommandInput, StartAutomationEventCommandOutput } from "./commands/StartAutomationEventCommand";
29
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
30
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
31
+ import { UpdateAutomationRuleCommandInput, UpdateAutomationRuleCommandOutput } from "./commands/UpdateAutomationRuleCommand";
32
+ import { UpdateEnrollmentConfigurationCommandInput, UpdateEnrollmentConfigurationCommandOutput } from "./commands/UpdateEnrollmentConfigurationCommand";
33
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
34
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
35
+ export { __Client };
36
+ /**
37
+ * @public
38
+ */
39
+ export type ServiceInputTypes = AssociateAccountsCommandInput | CreateAutomationRuleCommandInput | DeleteAutomationRuleCommandInput | DisassociateAccountsCommandInput | GetAutomationEventCommandInput | GetAutomationRuleCommandInput | GetEnrollmentConfigurationCommandInput | ListAccountsCommandInput | ListAutomationEventStepsCommandInput | ListAutomationEventSummariesCommandInput | ListAutomationEventsCommandInput | ListAutomationRulePreviewCommandInput | ListAutomationRulePreviewSummariesCommandInput | ListAutomationRulesCommandInput | ListRecommendedActionSummariesCommandInput | ListRecommendedActionsCommandInput | ListTagsForResourceCommandInput | RollbackAutomationEventCommandInput | StartAutomationEventCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAutomationRuleCommandInput | UpdateEnrollmentConfigurationCommandInput;
40
+ /**
41
+ * @public
42
+ */
43
+ export type ServiceOutputTypes = AssociateAccountsCommandOutput | CreateAutomationRuleCommandOutput | DeleteAutomationRuleCommandOutput | DisassociateAccountsCommandOutput | GetAutomationEventCommandOutput | GetAutomationRuleCommandOutput | GetEnrollmentConfigurationCommandOutput | ListAccountsCommandOutput | ListAutomationEventStepsCommandOutput | ListAutomationEventSummariesCommandOutput | ListAutomationEventsCommandOutput | ListAutomationRulePreviewCommandOutput | ListAutomationRulePreviewSummariesCommandOutput | ListAutomationRulesCommandOutput | ListRecommendedActionSummariesCommandOutput | ListRecommendedActionsCommandOutput | ListTagsForResourceCommandOutput | RollbackAutomationEventCommandOutput | StartAutomationEventCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAutomationRuleCommandOutput | UpdateEnrollmentConfigurationCommandOutput;
44
+ /**
45
+ * @public
46
+ */
47
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
48
+ /**
49
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
50
+ */
51
+ requestHandler?: __HttpHandlerUserInput;
52
+ /**
53
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
54
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
55
+ * @internal
56
+ */
57
+ sha256?: __ChecksumConstructor | __HashConstructor;
58
+ /**
59
+ * The function that will be used to convert strings into HTTP endpoints.
60
+ * @internal
61
+ */
62
+ urlParser?: __UrlParser;
63
+ /**
64
+ * A function that can calculate the length of a request body.
65
+ * @internal
66
+ */
67
+ bodyLengthChecker?: __BodyLengthCalculator;
68
+ /**
69
+ * A function that converts a stream into an array of bytes.
70
+ * @internal
71
+ */
72
+ streamCollector?: __StreamCollector;
73
+ /**
74
+ * The function that will be used to convert a base64-encoded string to a byte array.
75
+ * @internal
76
+ */
77
+ base64Decoder?: __Decoder;
78
+ /**
79
+ * The function that will be used to convert binary data to a base64-encoded string.
80
+ * @internal
81
+ */
82
+ base64Encoder?: __Encoder;
83
+ /**
84
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
85
+ * @internal
86
+ */
87
+ utf8Decoder?: __Decoder;
88
+ /**
89
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
90
+ * @internal
91
+ */
92
+ utf8Encoder?: __Encoder;
93
+ /**
94
+ * The runtime environment.
95
+ * @internal
96
+ */
97
+ runtime?: string;
98
+ /**
99
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
100
+ * trait of an operation.
101
+ */
102
+ disableHostPrefix?: boolean;
103
+ /**
104
+ * Unique service identifier.
105
+ * @internal
106
+ */
107
+ serviceId?: string;
108
+ /**
109
+ * Enables IPv6/IPv4 dualstack endpoint.
110
+ */
111
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
112
+ /**
113
+ * Enables FIPS compatible endpoints.
114
+ */
115
+ useFipsEndpoint?: boolean | __Provider<boolean>;
116
+ /**
117
+ * The AWS region to which this client will send requests
118
+ */
119
+ region?: string | __Provider<string>;
120
+ /**
121
+ * Setting a client profile is similar to setting a value for the
122
+ * AWS_PROFILE environment variable. Setting a profile on a client
123
+ * in code only affects the single client instance, unlike AWS_PROFILE.
124
+ *
125
+ * When set, and only for environments where an AWS configuration
126
+ * file exists, fields configurable by this file will be retrieved
127
+ * from the specified profile within that file.
128
+ * Conflicting code configuration and environment variables will
129
+ * still have higher priority.
130
+ *
131
+ * For client credential resolution that involves checking the AWS
132
+ * configuration file, the client's profile (this value) will be
133
+ * used unless a different profile is set in the credential
134
+ * provider options.
135
+ *
136
+ */
137
+ profile?: string;
138
+ /**
139
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
140
+ * @internal
141
+ */
142
+ defaultUserAgentProvider?: Provider<__UserAgent>;
143
+ /**
144
+ * Default credentials provider; Not available in browser runtime.
145
+ * @deprecated
146
+ * @internal
147
+ */
148
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
149
+ /**
150
+ * Value for how many times a request will be made at most in case of retry.
151
+ */
152
+ maxAttempts?: number | __Provider<number>;
153
+ /**
154
+ * Specifies which retry algorithm to use.
155
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
156
+ *
157
+ */
158
+ retryMode?: string | __Provider<string>;
159
+ /**
160
+ * Optional logger for logging debug/info/warn/error.
161
+ */
162
+ logger?: __Logger;
163
+ /**
164
+ * Optional extensions
165
+ */
166
+ extensions?: RuntimeExtension[];
167
+ /**
168
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
169
+ * may be overridden. A default will always be set by the client.
170
+ * Available options depend on the service's supported protocols and will not be validated by
171
+ * the client.
172
+ * @alpha
173
+ *
174
+ */
175
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
176
+ /**
177
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
178
+ */
179
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
180
+ }
181
+ /**
182
+ * @public
183
+ */
184
+ export type ComputeOptimizerAutomationClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
185
+ /**
186
+ * @public
187
+ *
188
+ * The configuration interface of ComputeOptimizerAutomationClient class constructor that set the region, credentials and other options.
189
+ */
190
+ export interface ComputeOptimizerAutomationClientConfig extends ComputeOptimizerAutomationClientConfigType {
191
+ }
192
+ /**
193
+ * @public
194
+ */
195
+ export type ComputeOptimizerAutomationClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
196
+ /**
197
+ * @public
198
+ *
199
+ * The resolved configuration interface of ComputeOptimizerAutomationClient class. This is resolved and normalized from the {@link ComputeOptimizerAutomationClientConfig | constructor configuration interface}.
200
+ */
201
+ export interface ComputeOptimizerAutomationClientResolvedConfig extends ComputeOptimizerAutomationClientResolvedConfigType {
202
+ }
203
+ /**
204
+ * <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>
205
+ * @public
206
+ */
207
+ export declare class ComputeOptimizerAutomationClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ComputeOptimizerAutomationClientResolvedConfig> {
208
+ /**
209
+ * The resolved configuration of ComputeOptimizerAutomationClient class. This is resolved and normalized from the {@link ComputeOptimizerAutomationClientConfig | constructor configuration interface}.
210
+ */
211
+ readonly config: ComputeOptimizerAutomationClientResolvedConfig;
212
+ constructor(...[configuration]: __CheckOptionalClientConfig<ComputeOptimizerAutomationClientConfig>);
213
+ /**
214
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
215
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
216
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
217
+ */
218
+ destroy(): void;
219
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { ComputeOptimizerAutomationHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: ComputeOptimizerAutomationHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): ComputeOptimizerAutomationHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: ComputeOptimizerAutomationHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { ComputeOptimizerAutomationClientResolvedConfig } from "../ComputeOptimizerAutomationClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface ComputeOptimizerAutomationHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface ComputeOptimizerAutomationHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<ComputeOptimizerAutomationClientResolvedConfig, HandlerExecutionContext, ComputeOptimizerAutomationHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultComputeOptimizerAutomationHttpAuthSchemeParametersProvider: (config: ComputeOptimizerAutomationClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<ComputeOptimizerAutomationHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface ComputeOptimizerAutomationHttpAuthSchemeProvider extends HttpAuthSchemeProvider<ComputeOptimizerAutomationHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultComputeOptimizerAutomationHttpAuthSchemeProvider: ComputeOptimizerAutomationHttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: ComputeOptimizerAutomationHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: ComputeOptimizerAutomationHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -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 { AssociateAccountsRequest, AssociateAccountsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link AssociateAccountsCommand}.
14
+ */
15
+ export interface AssociateAccountsCommandInput extends AssociateAccountsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link AssociateAccountsCommand}.
21
+ */
22
+ export interface AssociateAccountsCommandOutput extends AssociateAccountsResponse, __MetadataBearer {
23
+ }
24
+ declare const AssociateAccountsCommand_base: {
25
+ new (input: AssociateAccountsCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateAccountsCommandInput, AssociateAccountsCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: AssociateAccountsCommandInput): import("@smithy/smithy-client").CommandImpl<AssociateAccountsCommandInput, AssociateAccountsCommandOutput, ComputeOptimizerAutomationClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Associates one or more member accounts with your organization's management account, enabling centralized implementation of optimization actions across those accounts. Once associated, the management account (or a delegated administrator) can apply recommended actions to the member account. When you associate a member account, its organization rule mode is automatically set to "Any allowed," which permits the management account to create Automation rules that automatically apply actions to that account. If the member account has not previously enabled the Automation feature, the association process automatically enables it.</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, AssociateAccountsCommand } from "@aws-sdk/client-compute-optimizer-automation"; // ES Modules import
35
+ * // const { ComputeOptimizerAutomationClient, AssociateAccountsCommand } = 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 = { // AssociateAccountsRequest
40
+ * accountIds: [ // AccountIdList // required
41
+ * "STRING_VALUE",
42
+ * ],
43
+ * clientToken: "STRING_VALUE",
44
+ * };
45
+ * const command = new AssociateAccountsCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // AssociateAccountsResponse
48
+ * // accountIds: [ // AccountIdList
49
+ * // "STRING_VALUE",
50
+ * // ],
51
+ * // errors: [ // StringList
52
+ * // "STRING_VALUE",
53
+ * // ],
54
+ * // };
55
+ *
56
+ * ```
57
+ *
58
+ * @param AssociateAccountsCommandInput - {@link AssociateAccountsCommandInput}
59
+ * @returns {@link AssociateAccountsCommandOutput}
60
+ * @see {@link AssociateAccountsCommandInput} for command's `input` shape.
61
+ * @see {@link AssociateAccountsCommandOutput} 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 AssociateAccountsCommand extends AssociateAccountsCommand_base {
101
+ /** @internal type navigation helper, not in runtime. */
102
+ protected static __types: {
103
+ api: {
104
+ input: AssociateAccountsRequest;
105
+ output: AssociateAccountsResponse;
106
+ };
107
+ sdk: {
108
+ input: AssociateAccountsCommandInput;
109
+ output: AssociateAccountsCommandOutput;
110
+ };
111
+ };
112
+ }