@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,1668 @@
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
10
+ var middlewareContentLength = require('@smithy/middleware-content-length');
11
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
12
+ var middlewareRetry = require('@smithy/middleware-retry');
13
+ var smithyClient = require('@smithy/smithy-client');
14
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
+ var runtimeConfig = require('./runtimeConfig');
16
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
+ var protocolHttp = require('@smithy/protocol-http');
18
+
19
+ const resolveClientEndpointParameters = (options) => {
20
+ return Object.assign(options, {
21
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
22
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
23
+ defaultSigningName: "aco-automation",
24
+ });
25
+ };
26
+ const commonParams = {
27
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
28
+ Endpoint: { type: "builtInParams", name: "endpoint" },
29
+ Region: { type: "builtInParams", name: "region" },
30
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
31
+ };
32
+
33
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
34
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
35
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
36
+ let _credentials = runtimeConfig.credentials;
37
+ return {
38
+ setHttpAuthScheme(httpAuthScheme) {
39
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
40
+ if (index === -1) {
41
+ _httpAuthSchemes.push(httpAuthScheme);
42
+ }
43
+ else {
44
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
45
+ }
46
+ },
47
+ httpAuthSchemes() {
48
+ return _httpAuthSchemes;
49
+ },
50
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
51
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
52
+ },
53
+ httpAuthSchemeProvider() {
54
+ return _httpAuthSchemeProvider;
55
+ },
56
+ setCredentials(credentials) {
57
+ _credentials = credentials;
58
+ },
59
+ credentials() {
60
+ return _credentials;
61
+ },
62
+ };
63
+ };
64
+ const resolveHttpAuthRuntimeConfig = (config) => {
65
+ return {
66
+ httpAuthSchemes: config.httpAuthSchemes(),
67
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
68
+ credentials: config.credentials(),
69
+ };
70
+ };
71
+
72
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
73
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
74
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
75
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
76
+ };
77
+
78
+ class ComputeOptimizerAutomationClient extends smithyClient.Client {
79
+ config;
80
+ constructor(...[configuration]) {
81
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
82
+ super(_config_0);
83
+ this.initConfig = _config_0;
84
+ const _config_1 = resolveClientEndpointParameters(_config_0);
85
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
86
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
87
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
88
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
89
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
90
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
91
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
92
+ this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
94
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
95
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
96
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
97
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
98
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
99
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
100
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
101
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultComputeOptimizerAutomationHttpAuthSchemeParametersProvider,
102
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
103
+ "aws.auth#sigv4": config.credentials,
104
+ }),
105
+ }));
106
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
107
+ }
108
+ destroy() {
109
+ super.destroy();
110
+ }
111
+ }
112
+
113
+ let ComputeOptimizerAutomationServiceException$1 = class ComputeOptimizerAutomationServiceException extends smithyClient.ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, ComputeOptimizerAutomationServiceException.prototype);
117
+ }
118
+ };
119
+
120
+ let AccessDeniedException$1 = class AccessDeniedException extends ComputeOptimizerAutomationServiceException$1 {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ }
131
+ };
132
+ let ForbiddenException$1 = class ForbiddenException extends ComputeOptimizerAutomationServiceException$1 {
133
+ name = "ForbiddenException";
134
+ $fault = "client";
135
+ constructor(opts) {
136
+ super({
137
+ name: "ForbiddenException",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
142
+ }
143
+ };
144
+ let IdempotencyTokenInUseException$1 = class IdempotencyTokenInUseException extends ComputeOptimizerAutomationServiceException$1 {
145
+ name = "IdempotencyTokenInUseException";
146
+ $fault = "client";
147
+ constructor(opts) {
148
+ super({
149
+ name: "IdempotencyTokenInUseException",
150
+ $fault: "client",
151
+ ...opts,
152
+ });
153
+ Object.setPrototypeOf(this, IdempotencyTokenInUseException.prototype);
154
+ }
155
+ };
156
+ let IdempotentParameterMismatchException$1 = class IdempotentParameterMismatchException extends ComputeOptimizerAutomationServiceException$1 {
157
+ name = "IdempotentParameterMismatchException";
158
+ $fault = "client";
159
+ constructor(opts) {
160
+ super({
161
+ name: "IdempotentParameterMismatchException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
166
+ }
167
+ };
168
+ let InternalServerException$1 = class InternalServerException extends ComputeOptimizerAutomationServiceException$1 {
169
+ name = "InternalServerException";
170
+ $fault = "server";
171
+ constructor(opts) {
172
+ super({
173
+ name: "InternalServerException",
174
+ $fault: "server",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, InternalServerException.prototype);
178
+ }
179
+ };
180
+ let InvalidParameterValueException$1 = class InvalidParameterValueException extends ComputeOptimizerAutomationServiceException$1 {
181
+ name = "InvalidParameterValueException";
182
+ $fault = "client";
183
+ constructor(opts) {
184
+ super({
185
+ name: "InvalidParameterValueException",
186
+ $fault: "client",
187
+ ...opts,
188
+ });
189
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
190
+ }
191
+ };
192
+ let NotManagementAccountException$1 = class NotManagementAccountException extends ComputeOptimizerAutomationServiceException$1 {
193
+ name = "NotManagementAccountException";
194
+ $fault = "client";
195
+ constructor(opts) {
196
+ super({
197
+ name: "NotManagementAccountException",
198
+ $fault: "client",
199
+ ...opts,
200
+ });
201
+ Object.setPrototypeOf(this, NotManagementAccountException.prototype);
202
+ }
203
+ };
204
+ let OptInRequiredException$1 = class OptInRequiredException extends ComputeOptimizerAutomationServiceException$1 {
205
+ name = "OptInRequiredException";
206
+ $fault = "client";
207
+ constructor(opts) {
208
+ super({
209
+ name: "OptInRequiredException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ Object.setPrototypeOf(this, OptInRequiredException.prototype);
214
+ }
215
+ };
216
+ let ServiceUnavailableException$1 = class ServiceUnavailableException extends ComputeOptimizerAutomationServiceException$1 {
217
+ name = "ServiceUnavailableException";
218
+ $fault = "server";
219
+ constructor(opts) {
220
+ super({
221
+ name: "ServiceUnavailableException",
222
+ $fault: "server",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
226
+ }
227
+ };
228
+ let ThrottlingException$1 = class ThrottlingException extends ComputeOptimizerAutomationServiceException$1 {
229
+ name = "ThrottlingException";
230
+ $fault = "client";
231
+ constructor(opts) {
232
+ super({
233
+ name: "ThrottlingException",
234
+ $fault: "client",
235
+ ...opts,
236
+ });
237
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
238
+ }
239
+ };
240
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends ComputeOptimizerAutomationServiceException$1 {
241
+ name = "ResourceNotFoundException";
242
+ $fault = "client";
243
+ constructor(opts) {
244
+ super({
245
+ name: "ResourceNotFoundException",
246
+ $fault: "client",
247
+ ...opts,
248
+ });
249
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
250
+ }
251
+ };
252
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends ComputeOptimizerAutomationServiceException$1 {
253
+ name = "ServiceQuotaExceededException";
254
+ $fault = "client";
255
+ constructor(opts) {
256
+ super({
257
+ name: "ServiceQuotaExceededException",
258
+ $fault: "client",
259
+ ...opts,
260
+ });
261
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
262
+ }
263
+ };
264
+
265
+ const _AA = "AssociateAccounts";
266
+ const _AAR = "AssociateAccountsRequest";
267
+ const _AARs = "AssociateAccountsResponse";
268
+ const _ADE = "AccessDeniedException";
269
+ const _AE = "AutomationEvent";
270
+ const _AEF = "AutomationEventFilter";
271
+ const _AEFL = "AutomationEventFilterList";
272
+ const _AES = "AutomationEventStep";
273
+ const _AESL = "AutomationEventSummaryList";
274
+ const _AESu = "AutomationEventSummary";
275
+ const _AESut = "AutomationEventSteps";
276
+ const _AEu = "AutomationEvents";
277
+ const _AI = "AccountInfo";
278
+ const _AIL = "AccountInfoList";
279
+ const _AR = "AutomationRule";
280
+ const _ARu = "AutomationRules";
281
+ const _C = "Criteria";
282
+ const _CAR = "CreateAutomationRule";
283
+ const _CARR = "CreateAutomationRuleRequest";
284
+ const _CARRr = "CreateAutomationRuleResponse";
285
+ const _DA = "DisassociateAccounts";
286
+ const _DAR = "DisassociateAccountsRequest";
287
+ const _DARR = "DeleteAutomationRuleRequest";
288
+ const _DARRe = "DeleteAutomationRuleResponse";
289
+ const _DARe = "DeleteAutomationRule";
290
+ const _DARi = "DisassociateAccountsResponse";
291
+ const _DCC = "DoubleCriteriaCondition";
292
+ const _DCCL = "DoubleCriteriaConditionList";
293
+ const _EMS = "EstimatedMonthlySavings";
294
+ const _EV = "EbsVolume";
295
+ const _EVC = "EbsVolumeConfiguration";
296
+ const _F = "Filter";
297
+ const _FE = "ForbiddenException";
298
+ const _FL = "FilterList";
299
+ const _GAE = "GetAutomationEvent";
300
+ const _GAER = "GetAutomationEventRequest";
301
+ const _GAERe = "GetAutomationEventResponse";
302
+ const _GAR = "GetAutomationRule";
303
+ const _GARR = "GetAutomationRuleRequest";
304
+ const _GARRe = "GetAutomationRuleResponse";
305
+ const _GEC = "GetEnrollmentConfiguration";
306
+ const _GECR = "GetEnrollmentConfigurationRequest";
307
+ const _GECRe = "GetEnrollmentConfigurationResponse";
308
+ const _ICC = "IntegerCriteriaCondition";
309
+ const _ICCL = "IntegerCriteriaConditionList";
310
+ const _IPME = "IdempotentParameterMismatchException";
311
+ const _IPVE = "InvalidParameterValueException";
312
+ const _ISE = "InternalServerException";
313
+ const _ITIUE = "IdempotencyTokenInUseException";
314
+ const _LA = "ListAccounts";
315
+ const _LAE = "ListAutomationEvents";
316
+ const _LAER = "ListAutomationEventsRequest";
317
+ const _LAERi = "ListAutomationEventsResponse";
318
+ const _LAES = "ListAutomationEventSteps";
319
+ const _LAESR = "ListAutomationEventStepsRequest";
320
+ const _LAESRi = "ListAutomationEventStepsResponse";
321
+ const _LAESRis = "ListAutomationEventSummariesRequest";
322
+ const _LAESRist = "ListAutomationEventSummariesResponse";
323
+ const _LAESi = "ListAutomationEventSummaries";
324
+ const _LAR = "ListAccountsRequest";
325
+ const _LARP = "ListAutomationRulePreview";
326
+ const _LARPR = "ListAutomationRulePreviewRequest";
327
+ const _LARPRi = "ListAutomationRulePreviewResponse";
328
+ const _LARPS = "ListAutomationRulePreviewSummaries";
329
+ const _LARPSR = "ListAutomationRulePreviewSummariesRequest";
330
+ const _LARPSRi = "ListAutomationRulePreviewSummariesResponse";
331
+ const _LARR = "ListAutomationRulesRequest";
332
+ const _LARRi = "ListAutomationRulesResponse";
333
+ const _LARi = "ListAccountsResponse";
334
+ const _LARis = "ListAutomationRules";
335
+ const _LRA = "ListRecommendedActions";
336
+ const _LRAR = "ListRecommendedActionsRequest";
337
+ const _LRARi = "ListRecommendedActionsResponse";
338
+ const _LRAS = "ListRecommendedActionSummaries";
339
+ const _LRASR = "ListRecommendedActionSummariesRequest";
340
+ const _LRASRi = "ListRecommendedActionSummariesResponse";
341
+ const _LTFR = "ListTagsForResource";
342
+ const _LTFRR = "ListTagsForResourceRequest";
343
+ const _LTFRRi = "ListTagsForResourceResponse";
344
+ const _NMAE = "NotManagementAccountException";
345
+ const _OC = "OrganizationConfiguration";
346
+ const _OIRE = "OptInRequiredException";
347
+ const _OS = "OrganizationScope";
348
+ const _PR = "PreviewResult";
349
+ const _PRS = "PreviewResultSummary";
350
+ const _PRSr = "PreviewResultSummaries";
351
+ const _PRr = "PreviewResults";
352
+ const _RA = "RecommendedAction";
353
+ const _RAE = "RollbackAutomationEvent";
354
+ const _RAER = "RollbackAutomationEventRequest";
355
+ const _RAERo = "RollbackAutomationEventResponse";
356
+ const _RAF = "RecommendedActionFilter";
357
+ const _RAFL = "RecommendedActionFilterList";
358
+ const _RAS = "RecommendedActionSummary";
359
+ const _RASe = "RecommendedActionSummaries";
360
+ const _RAT = "RecommendedActionTotal";
361
+ const _RAe = "RecommendedActions";
362
+ const _RD = "ResourceDetails";
363
+ const _RNFE = "ResourceNotFoundException";
364
+ const _RPT = "RulePreviewTotal";
365
+ const _RTCC = "ResourceTagsCriteriaCondition";
366
+ const _RTCCL = "ResourceTagsCriteriaConditionList";
367
+ const _S = "Schedule";
368
+ const _SAE = "StartAutomationEvent";
369
+ const _SAER = "StartAutomationEventRequest";
370
+ const _SAERt = "StartAutomationEventResponse";
371
+ const _SCC = "StringCriteriaCondition";
372
+ const _SCCL = "StringCriteriaConditionList";
373
+ const _SD = "SummaryDimension";
374
+ const _SDu = "SummaryDimensions";
375
+ const _SQEE = "ServiceQuotaExceededException";
376
+ const _ST = "SummaryTotals";
377
+ const _SUE = "ServiceUnavailableException";
378
+ const _T = "Tag";
379
+ const _TE = "ThrottlingException";
380
+ const _TL = "TagList";
381
+ const _TP = "TimePeriod";
382
+ const _TR = "TagResource";
383
+ const _TRR = "TagResourceRequest";
384
+ const _TRRa = "TagResourceResponse";
385
+ const _UAR = "UpdateAutomationRule";
386
+ const _UARR = "UpdateAutomationRuleRequest";
387
+ const _UARRp = "UpdateAutomationRuleResponse";
388
+ const _UEC = "UpdateEnrollmentConfiguration";
389
+ const _UECR = "UpdateEnrollmentConfigurationRequest";
390
+ const _UECRp = "UpdateEnrollmentConfigurationResponse";
391
+ const _UR = "UntagResource";
392
+ const _URR = "UntagResourceRequest";
393
+ const _URRn = "UntagResourceResponse";
394
+ const _a = "accounts";
395
+ const _aDS = "afterDiscountSavings";
396
+ const _aE = "automationEvents";
397
+ const _aEC = "automationEventCount";
398
+ const _aES = "automationEventSteps";
399
+ const _aESu = "automationEventSummaries";
400
+ const _aI = "accountId";
401
+ const _aIc = "accountIds";
402
+ const _aR = "automationRules";
403
+ const _bDS = "beforeDiscountSavings";
404
+ const _c = "client";
405
+ const _cRD = "currentResourceDetails";
406
+ const _cRS = "currentResourceSummary";
407
+ const _cT = "clientToken";
408
+ const _cTo = "completedTimestamp";
409
+ const _cTr = "createdTimestamp";
410
+ const _co = "comparison";
411
+ const _con = "configuration";
412
+ const _cr = "criteria";
413
+ const _cu = "currency";
414
+ const _d = "dimensions";
415
+ const _de = "description";
416
+ const _e = "error";
417
+ const _eD = "eventDescription";
418
+ const _eDE = "endDateExclusive";
419
+ const _eI = "eventId";
420
+ const _eMS = "estimatedMonthlySavings";
421
+ const _eS = "eventStatus";
422
+ const _eSR = "eventStatusReason";
423
+ const _eT = "eventType";
424
+ const _eTE = "endTimeExclusive";
425
+ const _eV = "ebsVolume";
426
+ const _eVSIG = "ebsVolumeSizeInGib";
427
+ const _eVT = "ebsVolumeType";
428
+ const _eWIM = "executionWindowInMinutes";
429
+ const _er = "errors";
430
+ const _f = "filters";
431
+ const _hE = "httpError";
432
+ const _i = "iops";
433
+ const _k = "key";
434
+ const _lBPID = "lookBackPeriodInDays";
435
+ const _lUT = "lastUpdatedTimestamp";
436
+ const _m = "message";
437
+ const _mR = "maxResults";
438
+ const _n = "name";
439
+ const _nT = "nextToken";
440
+ const _oC = "organizationConfiguration";
441
+ const _oRM = "organizationRuleMode";
442
+ const _oS = "organizationScope";
443
+ const _p = "priority";
444
+ const _pR = "previewResults";
445
+ const _pRS = "previewResultSummaries";
446
+ const _r = "region";
447
+ const _rA = "resourceArn";
448
+ const _rAC = "recommendedActionCount";
449
+ const _rAI = "recommendedActionId";
450
+ const _rAO = "ruleApplyOrder";
451
+ const _rAS = "recommendedActionSummaries";
452
+ const _rAT = "recommendedActionTypes";
453
+ const _rATe = "recommendedActionType";
454
+ const _rAe = "recommendedActions";
455
+ const _rAu = "ruleArn";
456
+ const _rI = "resourceId";
457
+ const _rIu = "ruleId";
458
+ const _rN = "restartNeeded";
459
+ const _rR = "ruleRevision";
460
+ const _rRD = "recommendedResourceDetails";
461
+ const _rRS = "recommendedResourceSummary";
462
+ const _rT = "resourceType";
463
+ const _rTe = "resourceTag";
464
+ const _rTes = "resourceTags";
465
+ const _rTu = "ruleType";
466
+ const _s = "status";
467
+ const _sDI = "startDateInclusive";
468
+ const _sE = "scheduleExpression";
469
+ const _sEM = "savingsEstimationMode";
470
+ const _sET = "scheduleExpressionTimezone";
471
+ const _sI = "stepId";
472
+ const _sIG = "sizeInGib";
473
+ const _sR = "statusReason";
474
+ const _sS = "stepStatus";
475
+ const _sT = "stepType";
476
+ const _sTI = "startTimeInclusive";
477
+ const _sTt = "startTimestamp";
478
+ const _sc = "schedule";
479
+ const _se = "server";
480
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.computeoptimizerautomation";
481
+ const _t = "total";
482
+ const _tK = "tagKeys";
483
+ const _tP = "timePeriod";
484
+ const _ta = "tags";
485
+ const _th = "throughput";
486
+ const _ty = "type";
487
+ const _v = "values";
488
+ const _va = "value";
489
+ const n0 = "com.amazonaws.computeoptimizerautomation";
490
+ var AccessDeniedException = [
491
+ -3,
492
+ n0,
493
+ _ADE,
494
+ {
495
+ [_e]: _c,
496
+ [_hE]: 403,
497
+ },
498
+ [_m],
499
+ [0],
500
+ ];
501
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
502
+ var AccountInfo = [3, n0, _AI, 0, [_aI, _s, _oRM, _sR, _lUT], [0, 0, 0, 0, 4]];
503
+ var AssociateAccountsRequest = [3, n0, _AAR, 0, [_aIc, _cT], [64 | 0, [0, 4]]];
504
+ var AssociateAccountsResponse = [3, n0, _AARs, 0, [_aIc, _er], [64 | 0, 64 | 0]];
505
+ var AutomationEvent = [
506
+ 3,
507
+ n0,
508
+ _AE,
509
+ 0,
510
+ [_eI, _eD, _eT, _eS, _eSR, _rA, _rI, _rAI, _aI, _r, _rIu, _rT, _cTr, _cTo, _eMS],
511
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, () => EstimatedMonthlySavings],
512
+ ];
513
+ var AutomationEventFilter = [3, n0, _AEF, 0, [_n, _v], [0, 64 | 0]];
514
+ var AutomationEventStep = [
515
+ 3,
516
+ n0,
517
+ _AES,
518
+ 0,
519
+ [_eI, _sI, _sT, _sS, _rI, _sTt, _cTo, _eMS],
520
+ [0, 0, 0, 0, 0, 4, 4, () => EstimatedMonthlySavings],
521
+ ];
522
+ var AutomationEventSummary = [
523
+ 3,
524
+ n0,
525
+ _AESu,
526
+ 0,
527
+ [_k, _d, _tP, _t],
528
+ [0, () => SummaryDimensions, () => TimePeriod, () => SummaryTotals],
529
+ ];
530
+ var AutomationRule = [
531
+ 3,
532
+ n0,
533
+ _AR,
534
+ 0,
535
+ [_rAu, _rIu, _n, _de, _rTu, _rR, _aI, _oC, _p, _rAT, _sc, _s, _cTr, _lUT],
536
+ [0, 0, 0, 0, 0, 1, 0, () => OrganizationConfiguration, 0, 64 | 0, () => Schedule, 0, 4, 4],
537
+ ];
538
+ var CreateAutomationRuleRequest = [
539
+ 3,
540
+ n0,
541
+ _CARR,
542
+ 0,
543
+ [_n, _de, _rTu, _oC, _p, _rAT, _cr, _sc, _s, _ta, _cT],
544
+ [0, 0, 0, () => OrganizationConfiguration, 0, 64 | 0, () => Criteria, () => Schedule, 0, () => TagList, [0, 4]],
545
+ ];
546
+ var CreateAutomationRuleResponse = [
547
+ 3,
548
+ n0,
549
+ _CARRr,
550
+ 0,
551
+ [_rAu, _rIu, _n, _de, _rTu, _rR, _oC, _p, _rAT, _cr, _sc, _s, _ta, _cTr],
552
+ [0, 0, 0, 0, 0, 1, () => OrganizationConfiguration, 0, 64 | 0, () => Criteria, () => Schedule, 0, () => TagList, 4],
553
+ ];
554
+ var Criteria = [
555
+ 3,
556
+ n0,
557
+ _C,
558
+ 0,
559
+ [_r, _rA, _eVT, _eVSIG, _eMS, _rTe, _lBPID, _rN],
560
+ [
561
+ () => StringCriteriaConditionList,
562
+ () => StringCriteriaConditionList,
563
+ () => StringCriteriaConditionList,
564
+ () => IntegerCriteriaConditionList,
565
+ () => DoubleCriteriaConditionList,
566
+ () => ResourceTagsCriteriaConditionList,
567
+ () => IntegerCriteriaConditionList,
568
+ () => StringCriteriaConditionList,
569
+ ],
570
+ ];
571
+ var DeleteAutomationRuleRequest = [3, n0, _DARR, 0, [_rAu, _rR, _cT], [0, 1, [0, 4]]];
572
+ var DeleteAutomationRuleResponse = [3, n0, _DARRe, 0, [], []];
573
+ var DisassociateAccountsRequest = [3, n0, _DAR, 0, [_aIc, _cT], [64 | 0, [0, 4]]];
574
+ var DisassociateAccountsResponse = [3, n0, _DARi, 0, [_aIc, _er], [64 | 0, 64 | 0]];
575
+ var DoubleCriteriaCondition = [3, n0, _DCC, 0, [_co, _v], [0, 64 | 1]];
576
+ var EbsVolume = [3, n0, _EV, 0, [_con], [() => EbsVolumeConfiguration]];
577
+ var EbsVolumeConfiguration = [3, n0, _EVC, 0, [_ty, _sIG, _i, _th], [0, 1, 1, 1]];
578
+ var EstimatedMonthlySavings = [3, n0, _EMS, 0, [_cu, _bDS, _aDS, _sEM], [0, 1, 1, 0]];
579
+ var Filter = [3, n0, _F, 0, [_n, _v], [0, 64 | 0]];
580
+ var ForbiddenException = [
581
+ -3,
582
+ n0,
583
+ _FE,
584
+ {
585
+ [_e]: _c,
586
+ [_hE]: 403,
587
+ },
588
+ [_m],
589
+ [0],
590
+ ];
591
+ schema.TypeRegistry.for(n0).registerError(ForbiddenException, ForbiddenException$1);
592
+ var GetAutomationEventRequest = [3, n0, _GAER, 0, [_eI], [0]];
593
+ var GetAutomationEventResponse = [
594
+ 3,
595
+ n0,
596
+ _GAERe,
597
+ 0,
598
+ [_eI, _eD, _eT, _eS, _eSR, _rA, _rI, _rAI, _aI, _r, _rIu, _rT, _cTr, _cTo, _eMS],
599
+ [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, () => EstimatedMonthlySavings],
600
+ ];
601
+ var GetAutomationRuleRequest = [3, n0, _GARR, 0, [_rAu], [0]];
602
+ var GetAutomationRuleResponse = [
603
+ 3,
604
+ n0,
605
+ _GARRe,
606
+ 0,
607
+ [_rAu, _rIu, _n, _de, _rTu, _rR, _aI, _oC, _p, _rAT, _cr, _sc, _s, _ta, _cTr, _lUT],
608
+ [
609
+ 0,
610
+ 0,
611
+ 0,
612
+ 0,
613
+ 0,
614
+ 1,
615
+ 0,
616
+ () => OrganizationConfiguration,
617
+ 0,
618
+ 64 | 0,
619
+ () => Criteria,
620
+ () => Schedule,
621
+ 0,
622
+ () => TagList,
623
+ 4,
624
+ 4,
625
+ ],
626
+ ];
627
+ var GetEnrollmentConfigurationRequest = [3, n0, _GECR, 0, [], []];
628
+ var GetEnrollmentConfigurationResponse = [
629
+ 3,
630
+ n0,
631
+ _GECRe,
632
+ 0,
633
+ [_s, _sR, _oRM, _lUT],
634
+ [0, 0, 0, 4],
635
+ ];
636
+ var IdempotencyTokenInUseException = [
637
+ -3,
638
+ n0,
639
+ _ITIUE,
640
+ {
641
+ [_e]: _c,
642
+ [_hE]: 409,
643
+ },
644
+ [_m],
645
+ [0],
646
+ ];
647
+ schema.TypeRegistry.for(n0).registerError(IdempotencyTokenInUseException, IdempotencyTokenInUseException$1);
648
+ var IdempotentParameterMismatchException = [
649
+ -3,
650
+ n0,
651
+ _IPME,
652
+ {
653
+ [_e]: _c,
654
+ [_hE]: 409,
655
+ },
656
+ [_m],
657
+ [0],
658
+ ];
659
+ schema.TypeRegistry.for(n0).registerError(IdempotentParameterMismatchException, IdempotentParameterMismatchException$1);
660
+ var IntegerCriteriaCondition = [3, n0, _ICC, 0, [_co, _v], [0, 64 | 1]];
661
+ var InternalServerException = [
662
+ -3,
663
+ n0,
664
+ _ISE,
665
+ {
666
+ [_e]: _se,
667
+ [_hE]: 500,
668
+ },
669
+ [_m],
670
+ [0],
671
+ ];
672
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
673
+ var InvalidParameterValueException = [
674
+ -3,
675
+ n0,
676
+ _IPVE,
677
+ {
678
+ [_e]: _c,
679
+ [_hE]: 400,
680
+ },
681
+ [_m],
682
+ [0],
683
+ ];
684
+ schema.TypeRegistry.for(n0).registerError(InvalidParameterValueException, InvalidParameterValueException$1);
685
+ var ListAccountsRequest = [3, n0, _LAR, 0, [_mR, _nT], [1, 0]];
686
+ var ListAccountsResponse = [3, n0, _LARi, 0, [_a, _nT], [() => AccountInfoList, 0]];
687
+ var ListAutomationEventsRequest = [
688
+ 3,
689
+ n0,
690
+ _LAER,
691
+ 0,
692
+ [_f, _sTI, _eTE, _mR, _nT],
693
+ [() => AutomationEventFilterList, 4, 4, 1, 0],
694
+ ];
695
+ var ListAutomationEventsResponse = [
696
+ 3,
697
+ n0,
698
+ _LAERi,
699
+ 0,
700
+ [_aE, _nT],
701
+ [() => AutomationEvents, 0],
702
+ ];
703
+ var ListAutomationEventStepsRequest = [3, n0, _LAESR, 0, [_eI, _mR, _nT], [0, 1, 0]];
704
+ var ListAutomationEventStepsResponse = [
705
+ 3,
706
+ n0,
707
+ _LAESRi,
708
+ 0,
709
+ [_aES, _nT],
710
+ [() => AutomationEventSteps, 0],
711
+ ];
712
+ var ListAutomationEventSummariesRequest = [
713
+ 3,
714
+ n0,
715
+ _LAESRis,
716
+ 0,
717
+ [_f, _sDI, _eDE, _mR, _nT],
718
+ [() => AutomationEventFilterList, 0, 0, 1, 0],
719
+ ];
720
+ var ListAutomationEventSummariesResponse = [
721
+ 3,
722
+ n0,
723
+ _LAESRist,
724
+ 0,
725
+ [_aESu, _nT],
726
+ [() => AutomationEventSummaryList, 0],
727
+ ];
728
+ var ListAutomationRulePreviewRequest = [
729
+ 3,
730
+ n0,
731
+ _LARPR,
732
+ 0,
733
+ [_rTu, _oS, _rAT, _cr, _mR, _nT],
734
+ [0, () => OrganizationScope, 64 | 0, () => Criteria, 1, 0],
735
+ ];
736
+ var ListAutomationRulePreviewResponse = [
737
+ 3,
738
+ n0,
739
+ _LARPRi,
740
+ 0,
741
+ [_pR, _nT],
742
+ [() => PreviewResults, 0],
743
+ ];
744
+ var ListAutomationRulePreviewSummariesRequest = [
745
+ 3,
746
+ n0,
747
+ _LARPSR,
748
+ 0,
749
+ [_rTu, _oS, _rAT, _cr, _mR, _nT],
750
+ [0, () => OrganizationScope, 64 | 0, () => Criteria, 1, 0],
751
+ ];
752
+ var ListAutomationRulePreviewSummariesResponse = [
753
+ 3,
754
+ n0,
755
+ _LARPSRi,
756
+ 0,
757
+ [_pRS, _nT],
758
+ [() => PreviewResultSummaries, 0],
759
+ ];
760
+ var ListAutomationRulesRequest = [
761
+ 3,
762
+ n0,
763
+ _LARR,
764
+ 0,
765
+ [_f, _mR, _nT],
766
+ [() => FilterList, 1, 0],
767
+ ];
768
+ var ListAutomationRulesResponse = [
769
+ 3,
770
+ n0,
771
+ _LARRi,
772
+ 0,
773
+ [_aR, _nT],
774
+ [() => AutomationRules, 0],
775
+ ];
776
+ var ListRecommendedActionsRequest = [
777
+ 3,
778
+ n0,
779
+ _LRAR,
780
+ 0,
781
+ [_f, _mR, _nT],
782
+ [() => RecommendedActionFilterList, 1, 0],
783
+ ];
784
+ var ListRecommendedActionsResponse = [
785
+ 3,
786
+ n0,
787
+ _LRARi,
788
+ 0,
789
+ [_rAe, _nT],
790
+ [() => RecommendedActions, 0],
791
+ ];
792
+ var ListRecommendedActionSummariesRequest = [
793
+ 3,
794
+ n0,
795
+ _LRASR,
796
+ 0,
797
+ [_f, _mR, _nT],
798
+ [() => RecommendedActionFilterList, 1, 0],
799
+ ];
800
+ var ListRecommendedActionSummariesResponse = [
801
+ 3,
802
+ n0,
803
+ _LRASRi,
804
+ 0,
805
+ [_rAS, _nT],
806
+ [() => RecommendedActionSummaries, 0],
807
+ ];
808
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [0]];
809
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_ta], [() => TagList]];
810
+ var NotManagementAccountException = [
811
+ -3,
812
+ n0,
813
+ _NMAE,
814
+ {
815
+ [_e]: _c,
816
+ [_hE]: 400,
817
+ },
818
+ [_m],
819
+ [0],
820
+ ];
821
+ schema.TypeRegistry.for(n0).registerError(NotManagementAccountException, NotManagementAccountException$1);
822
+ var OptInRequiredException = [
823
+ -3,
824
+ n0,
825
+ _OIRE,
826
+ {
827
+ [_e]: _c,
828
+ [_hE]: 403,
829
+ },
830
+ [_m],
831
+ [0],
832
+ ];
833
+ schema.TypeRegistry.for(n0).registerError(OptInRequiredException, OptInRequiredException$1);
834
+ var OrganizationConfiguration = [3, n0, _OC, 0, [_rAO, _aIc], [0, 64 | 0]];
835
+ var OrganizationScope = [3, n0, _OS, 0, [_aIc], [64 | 0]];
836
+ var PreviewResult = [
837
+ 3,
838
+ n0,
839
+ _PR,
840
+ 0,
841
+ [_rAI, _rA, _rI, _aI, _r, _rT, _lBPID, _rATe, _cRS, _cRD, _rRS, _rRD, _rN, _eMS, _rTes],
842
+ [
843
+ 0,
844
+ 0,
845
+ 0,
846
+ 0,
847
+ 0,
848
+ 0,
849
+ 1,
850
+ 0,
851
+ 0,
852
+ () => ResourceDetails,
853
+ 0,
854
+ () => ResourceDetails,
855
+ 2,
856
+ () => EstimatedMonthlySavings,
857
+ () => TagList,
858
+ ],
859
+ ];
860
+ var PreviewResultSummary = [3, n0, _PRS, 0, [_k, _t], [0, () => RulePreviewTotal]];
861
+ var RecommendedAction = [
862
+ 3,
863
+ n0,
864
+ _RA,
865
+ 0,
866
+ [_rAI, _rA, _rI, _aI, _r, _rT, _lBPID, _rATe, _cRS, _cRD, _rRS, _rRD, _rN, _eMS, _rTes],
867
+ [
868
+ 0,
869
+ 0,
870
+ 0,
871
+ 0,
872
+ 0,
873
+ 0,
874
+ 1,
875
+ 0,
876
+ 0,
877
+ () => ResourceDetails,
878
+ 0,
879
+ () => ResourceDetails,
880
+ 2,
881
+ () => EstimatedMonthlySavings,
882
+ () => TagList,
883
+ ],
884
+ ];
885
+ var RecommendedActionFilter = [3, n0, _RAF, 0, [_n, _v], [0, 64 | 0]];
886
+ var RecommendedActionSummary = [
887
+ 3,
888
+ n0,
889
+ _RAS,
890
+ 0,
891
+ [_k, _t],
892
+ [0, () => RecommendedActionTotal],
893
+ ];
894
+ var RecommendedActionTotal = [
895
+ 3,
896
+ n0,
897
+ _RAT,
898
+ 0,
899
+ [_rAC, _eMS],
900
+ [1, () => EstimatedMonthlySavings],
901
+ ];
902
+ var ResourceNotFoundException = [
903
+ -3,
904
+ n0,
905
+ _RNFE,
906
+ {
907
+ [_e]: _c,
908
+ [_hE]: 404,
909
+ },
910
+ [_m],
911
+ [0],
912
+ ];
913
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
914
+ var ResourceTagsCriteriaCondition = [3, n0, _RTCC, 0, [_co, _k, _v], [0, 0, 64 | 0]];
915
+ var RollbackAutomationEventRequest = [3, n0, _RAER, 0, [_eI, _cT], [0, [0, 4]]];
916
+ var RollbackAutomationEventResponse = [3, n0, _RAERo, 0, [_eI, _eS], [0, 0]];
917
+ var RulePreviewTotal = [3, n0, _RPT, 0, [_rAC, _eMS], [1, () => EstimatedMonthlySavings]];
918
+ var Schedule = [3, n0, _S, 0, [_sE, _sET, _eWIM], [0, 0, 1]];
919
+ var ServiceQuotaExceededException = [
920
+ -3,
921
+ n0,
922
+ _SQEE,
923
+ {
924
+ [_e]: _c,
925
+ [_hE]: 402,
926
+ },
927
+ [_m],
928
+ [0],
929
+ ];
930
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
931
+ var ServiceUnavailableException = [
932
+ -3,
933
+ n0,
934
+ _SUE,
935
+ {
936
+ [_e]: _se,
937
+ [_hE]: 503,
938
+ },
939
+ [_m],
940
+ [0],
941
+ ];
942
+ schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
943
+ var StartAutomationEventRequest = [3, n0, _SAER, 0, [_rAI, _cT], [0, [0, 4]]];
944
+ var StartAutomationEventResponse = [3, n0, _SAERt, 0, [_rAI, _eI, _eS], [0, 0, 0]];
945
+ var StringCriteriaCondition = [3, n0, _SCC, 0, [_co, _v], [0, 64 | 0]];
946
+ var SummaryDimension = [3, n0, _SD, 0, [_k, _va], [0, 0]];
947
+ var SummaryTotals = [3, n0, _ST, 0, [_aEC, _eMS], [1, () => EstimatedMonthlySavings]];
948
+ var Tag = [3, n0, _T, 0, [_k, _va], [0, 0]];
949
+ var TagResourceRequest = [
950
+ 3,
951
+ n0,
952
+ _TRR,
953
+ 0,
954
+ [_rA, _rR, _ta, _cT],
955
+ [0, 1, () => TagList, [0, 4]],
956
+ ];
957
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
958
+ var ThrottlingException = [
959
+ -3,
960
+ n0,
961
+ _TE,
962
+ {
963
+ [_e]: _c,
964
+ [_hE]: 429,
965
+ },
966
+ [_m],
967
+ [0],
968
+ ];
969
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
970
+ var TimePeriod = [3, n0, _TP, 0, [_sTI, _eTE], [4, 4]];
971
+ var UntagResourceRequest = [3, n0, _URR, 0, [_rA, _rR, _tK, _cT], [0, 1, 64 | 0, [0, 4]]];
972
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
973
+ var UpdateAutomationRuleRequest = [
974
+ 3,
975
+ n0,
976
+ _UARR,
977
+ 0,
978
+ [_rAu, _rR, _n, _de, _rTu, _oC, _p, _rAT, _cr, _sc, _s, _cT],
979
+ [0, 1, 0, 0, 0, () => OrganizationConfiguration, 0, 64 | 0, () => Criteria, () => Schedule, 0, [0, 4]],
980
+ ];
981
+ var UpdateAutomationRuleResponse = [
982
+ 3,
983
+ n0,
984
+ _UARRp,
985
+ 0,
986
+ [_rAu, _rR, _n, _de, _rTu, _oC, _p, _rAT, _cr, _sc, _s, _cTr, _lUT],
987
+ [0, 1, 0, 0, 0, () => OrganizationConfiguration, 0, 64 | 0, () => Criteria, () => Schedule, 0, 4, 4],
988
+ ];
989
+ var UpdateEnrollmentConfigurationRequest = [3, n0, _UECR, 0, [_s, _cT], [0, [0, 4]]];
990
+ var UpdateEnrollmentConfigurationResponse = [
991
+ 3,
992
+ n0,
993
+ _UECRp,
994
+ 0,
995
+ [_s, _sR, _lUT],
996
+ [0, 0, 4],
997
+ ];
998
+ var ComputeOptimizerAutomationServiceException = [
999
+ -3,
1000
+ _sm,
1001
+ "ComputeOptimizerAutomationServiceException",
1002
+ 0,
1003
+ [],
1004
+ [],
1005
+ ];
1006
+ schema.TypeRegistry.for(_sm).registerError(ComputeOptimizerAutomationServiceException, ComputeOptimizerAutomationServiceException$1);
1007
+ var AccountInfoList = [1, n0, _AIL, 0, () => AccountInfo];
1008
+ var AutomationEventFilterList = [1, n0, _AEFL, 0, () => AutomationEventFilter];
1009
+ var AutomationEvents = [1, n0, _AEu, 0, () => AutomationEvent];
1010
+ var AutomationEventSteps = [1, n0, _AESut, 0, () => AutomationEventStep];
1011
+ var AutomationEventSummaryList = [1, n0, _AESL, 0, () => AutomationEventSummary];
1012
+ var AutomationRules = [1, n0, _ARu, 0, () => AutomationRule];
1013
+ var DoubleCriteriaConditionList = [1, n0, _DCCL, 0, () => DoubleCriteriaCondition];
1014
+ var FilterList = [1, n0, _FL, 0, () => Filter];
1015
+ var IntegerCriteriaConditionList = [1, n0, _ICCL, 0, () => IntegerCriteriaCondition];
1016
+ var PreviewResults = [1, n0, _PRr, 0, () => PreviewResult];
1017
+ var PreviewResultSummaries = [1, n0, _PRSr, 0, () => PreviewResultSummary];
1018
+ var RecommendedActionFilterList = [1, n0, _RAFL, 0, () => RecommendedActionFilter];
1019
+ var RecommendedActions = [1, n0, _RAe, 0, () => RecommendedAction];
1020
+ var RecommendedActionSummaries = [1, n0, _RASe, 0, () => RecommendedActionSummary];
1021
+ var ResourceTagsCriteriaConditionList = [
1022
+ 1,
1023
+ n0,
1024
+ _RTCCL,
1025
+ 0,
1026
+ () => ResourceTagsCriteriaCondition,
1027
+ ];
1028
+ var StringCriteriaConditionList = [1, n0, _SCCL, 0, () => StringCriteriaCondition];
1029
+ var SummaryDimensions = [1, n0, _SDu, 0, () => SummaryDimension];
1030
+ var TagList = [1, n0, _TL, 0, () => Tag];
1031
+ var ResourceDetails = [3, n0, _RD, 0, [_eV], [() => EbsVolume]];
1032
+ var AssociateAccounts = [
1033
+ 9,
1034
+ n0,
1035
+ _AA,
1036
+ 2,
1037
+ () => AssociateAccountsRequest,
1038
+ () => AssociateAccountsResponse,
1039
+ ];
1040
+ var CreateAutomationRule = [
1041
+ 9,
1042
+ n0,
1043
+ _CAR,
1044
+ 2,
1045
+ () => CreateAutomationRuleRequest,
1046
+ () => CreateAutomationRuleResponse,
1047
+ ];
1048
+ var DeleteAutomationRule = [
1049
+ 9,
1050
+ n0,
1051
+ _DARe,
1052
+ 2,
1053
+ () => DeleteAutomationRuleRequest,
1054
+ () => DeleteAutomationRuleResponse,
1055
+ ];
1056
+ var DisassociateAccounts = [
1057
+ 9,
1058
+ n0,
1059
+ _DA,
1060
+ 2,
1061
+ () => DisassociateAccountsRequest,
1062
+ () => DisassociateAccountsResponse,
1063
+ ];
1064
+ var GetAutomationEvent = [
1065
+ 9,
1066
+ n0,
1067
+ _GAE,
1068
+ 0,
1069
+ () => GetAutomationEventRequest,
1070
+ () => GetAutomationEventResponse,
1071
+ ];
1072
+ var GetAutomationRule = [
1073
+ 9,
1074
+ n0,
1075
+ _GAR,
1076
+ 0,
1077
+ () => GetAutomationRuleRequest,
1078
+ () => GetAutomationRuleResponse,
1079
+ ];
1080
+ var GetEnrollmentConfiguration = [
1081
+ 9,
1082
+ n0,
1083
+ _GEC,
1084
+ 0,
1085
+ () => GetEnrollmentConfigurationRequest,
1086
+ () => GetEnrollmentConfigurationResponse,
1087
+ ];
1088
+ var ListAccounts = [9, n0, _LA, 0, () => ListAccountsRequest, () => ListAccountsResponse];
1089
+ var ListAutomationEvents = [
1090
+ 9,
1091
+ n0,
1092
+ _LAE,
1093
+ 0,
1094
+ () => ListAutomationEventsRequest,
1095
+ () => ListAutomationEventsResponse,
1096
+ ];
1097
+ var ListAutomationEventSteps = [
1098
+ 9,
1099
+ n0,
1100
+ _LAES,
1101
+ 0,
1102
+ () => ListAutomationEventStepsRequest,
1103
+ () => ListAutomationEventStepsResponse,
1104
+ ];
1105
+ var ListAutomationEventSummaries = [
1106
+ 9,
1107
+ n0,
1108
+ _LAESi,
1109
+ 0,
1110
+ () => ListAutomationEventSummariesRequest,
1111
+ () => ListAutomationEventSummariesResponse,
1112
+ ];
1113
+ var ListAutomationRulePreview = [
1114
+ 9,
1115
+ n0,
1116
+ _LARP,
1117
+ 0,
1118
+ () => ListAutomationRulePreviewRequest,
1119
+ () => ListAutomationRulePreviewResponse,
1120
+ ];
1121
+ var ListAutomationRulePreviewSummaries = [
1122
+ 9,
1123
+ n0,
1124
+ _LARPS,
1125
+ 0,
1126
+ () => ListAutomationRulePreviewSummariesRequest,
1127
+ () => ListAutomationRulePreviewSummariesResponse,
1128
+ ];
1129
+ var ListAutomationRules = [
1130
+ 9,
1131
+ n0,
1132
+ _LARis,
1133
+ 0,
1134
+ () => ListAutomationRulesRequest,
1135
+ () => ListAutomationRulesResponse,
1136
+ ];
1137
+ var ListRecommendedActions = [
1138
+ 9,
1139
+ n0,
1140
+ _LRA,
1141
+ 0,
1142
+ () => ListRecommendedActionsRequest,
1143
+ () => ListRecommendedActionsResponse,
1144
+ ];
1145
+ var ListRecommendedActionSummaries = [
1146
+ 9,
1147
+ n0,
1148
+ _LRAS,
1149
+ 0,
1150
+ () => ListRecommendedActionSummariesRequest,
1151
+ () => ListRecommendedActionSummariesResponse,
1152
+ ];
1153
+ var ListTagsForResource = [
1154
+ 9,
1155
+ n0,
1156
+ _LTFR,
1157
+ 0,
1158
+ () => ListTagsForResourceRequest,
1159
+ () => ListTagsForResourceResponse,
1160
+ ];
1161
+ var RollbackAutomationEvent = [
1162
+ 9,
1163
+ n0,
1164
+ _RAE,
1165
+ 2,
1166
+ () => RollbackAutomationEventRequest,
1167
+ () => RollbackAutomationEventResponse,
1168
+ ];
1169
+ var StartAutomationEvent = [
1170
+ 9,
1171
+ n0,
1172
+ _SAE,
1173
+ 2,
1174
+ () => StartAutomationEventRequest,
1175
+ () => StartAutomationEventResponse,
1176
+ ];
1177
+ var TagResource = [9, n0, _TR, 2, () => TagResourceRequest, () => TagResourceResponse];
1178
+ var UntagResource = [
1179
+ 9,
1180
+ n0,
1181
+ _UR,
1182
+ 2,
1183
+ () => UntagResourceRequest,
1184
+ () => UntagResourceResponse,
1185
+ ];
1186
+ var UpdateAutomationRule = [
1187
+ 9,
1188
+ n0,
1189
+ _UAR,
1190
+ 2,
1191
+ () => UpdateAutomationRuleRequest,
1192
+ () => UpdateAutomationRuleResponse,
1193
+ ];
1194
+ var UpdateEnrollmentConfiguration = [
1195
+ 9,
1196
+ n0,
1197
+ _UEC,
1198
+ 2,
1199
+ () => UpdateEnrollmentConfigurationRequest,
1200
+ () => UpdateEnrollmentConfigurationResponse,
1201
+ ];
1202
+
1203
+ class AssociateAccountsCommand extends smithyClient.Command
1204
+ .classBuilder()
1205
+ .ep(commonParams)
1206
+ .m(function (Command, cs, config, o) {
1207
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1208
+ })
1209
+ .s("ComputeOptimizerAutomationService", "AssociateAccounts", {})
1210
+ .n("ComputeOptimizerAutomationClient", "AssociateAccountsCommand")
1211
+ .sc(AssociateAccounts)
1212
+ .build() {
1213
+ }
1214
+
1215
+ class CreateAutomationRuleCommand extends smithyClient.Command
1216
+ .classBuilder()
1217
+ .ep(commonParams)
1218
+ .m(function (Command, cs, config, o) {
1219
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1220
+ })
1221
+ .s("ComputeOptimizerAutomationService", "CreateAutomationRule", {})
1222
+ .n("ComputeOptimizerAutomationClient", "CreateAutomationRuleCommand")
1223
+ .sc(CreateAutomationRule)
1224
+ .build() {
1225
+ }
1226
+
1227
+ class DeleteAutomationRuleCommand extends smithyClient.Command
1228
+ .classBuilder()
1229
+ .ep(commonParams)
1230
+ .m(function (Command, cs, config, o) {
1231
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1232
+ })
1233
+ .s("ComputeOptimizerAutomationService", "DeleteAutomationRule", {})
1234
+ .n("ComputeOptimizerAutomationClient", "DeleteAutomationRuleCommand")
1235
+ .sc(DeleteAutomationRule)
1236
+ .build() {
1237
+ }
1238
+
1239
+ class DisassociateAccountsCommand extends smithyClient.Command
1240
+ .classBuilder()
1241
+ .ep(commonParams)
1242
+ .m(function (Command, cs, config, o) {
1243
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1244
+ })
1245
+ .s("ComputeOptimizerAutomationService", "DisassociateAccounts", {})
1246
+ .n("ComputeOptimizerAutomationClient", "DisassociateAccountsCommand")
1247
+ .sc(DisassociateAccounts)
1248
+ .build() {
1249
+ }
1250
+
1251
+ class GetAutomationEventCommand extends smithyClient.Command
1252
+ .classBuilder()
1253
+ .ep(commonParams)
1254
+ .m(function (Command, cs, config, o) {
1255
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1256
+ })
1257
+ .s("ComputeOptimizerAutomationService", "GetAutomationEvent", {})
1258
+ .n("ComputeOptimizerAutomationClient", "GetAutomationEventCommand")
1259
+ .sc(GetAutomationEvent)
1260
+ .build() {
1261
+ }
1262
+
1263
+ class GetAutomationRuleCommand extends smithyClient.Command
1264
+ .classBuilder()
1265
+ .ep(commonParams)
1266
+ .m(function (Command, cs, config, o) {
1267
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1268
+ })
1269
+ .s("ComputeOptimizerAutomationService", "GetAutomationRule", {})
1270
+ .n("ComputeOptimizerAutomationClient", "GetAutomationRuleCommand")
1271
+ .sc(GetAutomationRule)
1272
+ .build() {
1273
+ }
1274
+
1275
+ class GetEnrollmentConfigurationCommand extends smithyClient.Command
1276
+ .classBuilder()
1277
+ .ep(commonParams)
1278
+ .m(function (Command, cs, config, o) {
1279
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1280
+ })
1281
+ .s("ComputeOptimizerAutomationService", "GetEnrollmentConfiguration", {})
1282
+ .n("ComputeOptimizerAutomationClient", "GetEnrollmentConfigurationCommand")
1283
+ .sc(GetEnrollmentConfiguration)
1284
+ .build() {
1285
+ }
1286
+
1287
+ class ListAccountsCommand extends smithyClient.Command
1288
+ .classBuilder()
1289
+ .ep(commonParams)
1290
+ .m(function (Command, cs, config, o) {
1291
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1292
+ })
1293
+ .s("ComputeOptimizerAutomationService", "ListAccounts", {})
1294
+ .n("ComputeOptimizerAutomationClient", "ListAccountsCommand")
1295
+ .sc(ListAccounts)
1296
+ .build() {
1297
+ }
1298
+
1299
+ class ListAutomationEventsCommand extends smithyClient.Command
1300
+ .classBuilder()
1301
+ .ep(commonParams)
1302
+ .m(function (Command, cs, config, o) {
1303
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1304
+ })
1305
+ .s("ComputeOptimizerAutomationService", "ListAutomationEvents", {})
1306
+ .n("ComputeOptimizerAutomationClient", "ListAutomationEventsCommand")
1307
+ .sc(ListAutomationEvents)
1308
+ .build() {
1309
+ }
1310
+
1311
+ class ListAutomationEventStepsCommand extends smithyClient.Command
1312
+ .classBuilder()
1313
+ .ep(commonParams)
1314
+ .m(function (Command, cs, config, o) {
1315
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1316
+ })
1317
+ .s("ComputeOptimizerAutomationService", "ListAutomationEventSteps", {})
1318
+ .n("ComputeOptimizerAutomationClient", "ListAutomationEventStepsCommand")
1319
+ .sc(ListAutomationEventSteps)
1320
+ .build() {
1321
+ }
1322
+
1323
+ class ListAutomationEventSummariesCommand extends smithyClient.Command
1324
+ .classBuilder()
1325
+ .ep(commonParams)
1326
+ .m(function (Command, cs, config, o) {
1327
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1328
+ })
1329
+ .s("ComputeOptimizerAutomationService", "ListAutomationEventSummaries", {})
1330
+ .n("ComputeOptimizerAutomationClient", "ListAutomationEventSummariesCommand")
1331
+ .sc(ListAutomationEventSummaries)
1332
+ .build() {
1333
+ }
1334
+
1335
+ class ListAutomationRulePreviewCommand extends smithyClient.Command
1336
+ .classBuilder()
1337
+ .ep(commonParams)
1338
+ .m(function (Command, cs, config, o) {
1339
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1340
+ })
1341
+ .s("ComputeOptimizerAutomationService", "ListAutomationRulePreview", {})
1342
+ .n("ComputeOptimizerAutomationClient", "ListAutomationRulePreviewCommand")
1343
+ .sc(ListAutomationRulePreview)
1344
+ .build() {
1345
+ }
1346
+
1347
+ class ListAutomationRulePreviewSummariesCommand extends smithyClient.Command
1348
+ .classBuilder()
1349
+ .ep(commonParams)
1350
+ .m(function (Command, cs, config, o) {
1351
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1352
+ })
1353
+ .s("ComputeOptimizerAutomationService", "ListAutomationRulePreviewSummaries", {})
1354
+ .n("ComputeOptimizerAutomationClient", "ListAutomationRulePreviewSummariesCommand")
1355
+ .sc(ListAutomationRulePreviewSummaries)
1356
+ .build() {
1357
+ }
1358
+
1359
+ class ListAutomationRulesCommand extends smithyClient.Command
1360
+ .classBuilder()
1361
+ .ep(commonParams)
1362
+ .m(function (Command, cs, config, o) {
1363
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1364
+ })
1365
+ .s("ComputeOptimizerAutomationService", "ListAutomationRules", {})
1366
+ .n("ComputeOptimizerAutomationClient", "ListAutomationRulesCommand")
1367
+ .sc(ListAutomationRules)
1368
+ .build() {
1369
+ }
1370
+
1371
+ class ListRecommendedActionsCommand extends smithyClient.Command
1372
+ .classBuilder()
1373
+ .ep(commonParams)
1374
+ .m(function (Command, cs, config, o) {
1375
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1376
+ })
1377
+ .s("ComputeOptimizerAutomationService", "ListRecommendedActions", {})
1378
+ .n("ComputeOptimizerAutomationClient", "ListRecommendedActionsCommand")
1379
+ .sc(ListRecommendedActions)
1380
+ .build() {
1381
+ }
1382
+
1383
+ class ListRecommendedActionSummariesCommand extends smithyClient.Command
1384
+ .classBuilder()
1385
+ .ep(commonParams)
1386
+ .m(function (Command, cs, config, o) {
1387
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1388
+ })
1389
+ .s("ComputeOptimizerAutomationService", "ListRecommendedActionSummaries", {})
1390
+ .n("ComputeOptimizerAutomationClient", "ListRecommendedActionSummariesCommand")
1391
+ .sc(ListRecommendedActionSummaries)
1392
+ .build() {
1393
+ }
1394
+
1395
+ class ListTagsForResourceCommand extends smithyClient.Command
1396
+ .classBuilder()
1397
+ .ep(commonParams)
1398
+ .m(function (Command, cs, config, o) {
1399
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1400
+ })
1401
+ .s("ComputeOptimizerAutomationService", "ListTagsForResource", {})
1402
+ .n("ComputeOptimizerAutomationClient", "ListTagsForResourceCommand")
1403
+ .sc(ListTagsForResource)
1404
+ .build() {
1405
+ }
1406
+
1407
+ class RollbackAutomationEventCommand extends smithyClient.Command
1408
+ .classBuilder()
1409
+ .ep(commonParams)
1410
+ .m(function (Command, cs, config, o) {
1411
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1412
+ })
1413
+ .s("ComputeOptimizerAutomationService", "RollbackAutomationEvent", {})
1414
+ .n("ComputeOptimizerAutomationClient", "RollbackAutomationEventCommand")
1415
+ .sc(RollbackAutomationEvent)
1416
+ .build() {
1417
+ }
1418
+
1419
+ class StartAutomationEventCommand extends smithyClient.Command
1420
+ .classBuilder()
1421
+ .ep(commonParams)
1422
+ .m(function (Command, cs, config, o) {
1423
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1424
+ })
1425
+ .s("ComputeOptimizerAutomationService", "StartAutomationEvent", {})
1426
+ .n("ComputeOptimizerAutomationClient", "StartAutomationEventCommand")
1427
+ .sc(StartAutomationEvent)
1428
+ .build() {
1429
+ }
1430
+
1431
+ class TagResourceCommand extends smithyClient.Command
1432
+ .classBuilder()
1433
+ .ep(commonParams)
1434
+ .m(function (Command, cs, config, o) {
1435
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1436
+ })
1437
+ .s("ComputeOptimizerAutomationService", "TagResource", {})
1438
+ .n("ComputeOptimizerAutomationClient", "TagResourceCommand")
1439
+ .sc(TagResource)
1440
+ .build() {
1441
+ }
1442
+
1443
+ class UntagResourceCommand extends smithyClient.Command
1444
+ .classBuilder()
1445
+ .ep(commonParams)
1446
+ .m(function (Command, cs, config, o) {
1447
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1448
+ })
1449
+ .s("ComputeOptimizerAutomationService", "UntagResource", {})
1450
+ .n("ComputeOptimizerAutomationClient", "UntagResourceCommand")
1451
+ .sc(UntagResource)
1452
+ .build() {
1453
+ }
1454
+
1455
+ class UpdateAutomationRuleCommand extends smithyClient.Command
1456
+ .classBuilder()
1457
+ .ep(commonParams)
1458
+ .m(function (Command, cs, config, o) {
1459
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1460
+ })
1461
+ .s("ComputeOptimizerAutomationService", "UpdateAutomationRule", {})
1462
+ .n("ComputeOptimizerAutomationClient", "UpdateAutomationRuleCommand")
1463
+ .sc(UpdateAutomationRule)
1464
+ .build() {
1465
+ }
1466
+
1467
+ class UpdateEnrollmentConfigurationCommand extends smithyClient.Command
1468
+ .classBuilder()
1469
+ .ep(commonParams)
1470
+ .m(function (Command, cs, config, o) {
1471
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1472
+ })
1473
+ .s("ComputeOptimizerAutomationService", "UpdateEnrollmentConfiguration", {})
1474
+ .n("ComputeOptimizerAutomationClient", "UpdateEnrollmentConfigurationCommand")
1475
+ .sc(UpdateEnrollmentConfiguration)
1476
+ .build() {
1477
+ }
1478
+
1479
+ const commands = {
1480
+ AssociateAccountsCommand,
1481
+ CreateAutomationRuleCommand,
1482
+ DeleteAutomationRuleCommand,
1483
+ DisassociateAccountsCommand,
1484
+ GetAutomationEventCommand,
1485
+ GetAutomationRuleCommand,
1486
+ GetEnrollmentConfigurationCommand,
1487
+ ListAccountsCommand,
1488
+ ListAutomationEventsCommand,
1489
+ ListAutomationEventStepsCommand,
1490
+ ListAutomationEventSummariesCommand,
1491
+ ListAutomationRulePreviewCommand,
1492
+ ListAutomationRulePreviewSummariesCommand,
1493
+ ListAutomationRulesCommand,
1494
+ ListRecommendedActionsCommand,
1495
+ ListRecommendedActionSummariesCommand,
1496
+ ListTagsForResourceCommand,
1497
+ RollbackAutomationEventCommand,
1498
+ StartAutomationEventCommand,
1499
+ TagResourceCommand,
1500
+ UntagResourceCommand,
1501
+ UpdateAutomationRuleCommand,
1502
+ UpdateEnrollmentConfigurationCommand,
1503
+ };
1504
+ class ComputeOptimizerAutomation extends ComputeOptimizerAutomationClient {
1505
+ }
1506
+ smithyClient.createAggregatedClient(commands, ComputeOptimizerAutomation);
1507
+
1508
+ const paginateListAccounts = core.createPaginator(ComputeOptimizerAutomationClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
1509
+
1510
+ const paginateListAutomationEventSteps = core.createPaginator(ComputeOptimizerAutomationClient, ListAutomationEventStepsCommand, "nextToken", "nextToken", "maxResults");
1511
+
1512
+ const paginateListAutomationEventSummaries = core.createPaginator(ComputeOptimizerAutomationClient, ListAutomationEventSummariesCommand, "nextToken", "nextToken", "maxResults");
1513
+
1514
+ const paginateListAutomationEvents = core.createPaginator(ComputeOptimizerAutomationClient, ListAutomationEventsCommand, "nextToken", "nextToken", "maxResults");
1515
+
1516
+ const paginateListAutomationRulePreview = core.createPaginator(ComputeOptimizerAutomationClient, ListAutomationRulePreviewCommand, "nextToken", "nextToken", "maxResults");
1517
+
1518
+ const paginateListAutomationRulePreviewSummaries = core.createPaginator(ComputeOptimizerAutomationClient, ListAutomationRulePreviewSummariesCommand, "nextToken", "nextToken", "maxResults");
1519
+
1520
+ const paginateListAutomationRules = core.createPaginator(ComputeOptimizerAutomationClient, ListAutomationRulesCommand, "nextToken", "nextToken", "maxResults");
1521
+
1522
+ const paginateListRecommendedActionSummaries = core.createPaginator(ComputeOptimizerAutomationClient, ListRecommendedActionSummariesCommand, "nextToken", "nextToken", "maxResults");
1523
+
1524
+ const paginateListRecommendedActions = core.createPaginator(ComputeOptimizerAutomationClient, ListRecommendedActionsCommand, "nextToken", "nextToken", "maxResults");
1525
+
1526
+ const OrganizationRuleMode = {
1527
+ ANY_ALLOWED: "AnyAllowed",
1528
+ NONE_ALLOWED: "NoneAllowed",
1529
+ };
1530
+ const EnrollmentStatus = {
1531
+ ACTIVE: "Active",
1532
+ FAILED: "Failed",
1533
+ INACTIVE: "Inactive",
1534
+ PENDING: "Pending",
1535
+ };
1536
+ const SavingsEstimationMode = {
1537
+ AFTER_DISCOUNT: "AfterDiscount",
1538
+ BEFORE_DISCOUNT: "BeforeDiscount",
1539
+ };
1540
+ const EventStatus = {
1541
+ CANCELLED: "Cancelled",
1542
+ COMPLETE: "Complete",
1543
+ FAILED: "Failed",
1544
+ IN_PROGRESS: "InProgress",
1545
+ READY: "Ready",
1546
+ ROLLBACK_COMPLETE: "RollbackComplete",
1547
+ ROLLBACK_FAILED: "RollbackFailed",
1548
+ ROLLBACK_IN_PROGRESS: "RollbackInProgress",
1549
+ ROLLBACK_READY: "RollbackReady",
1550
+ };
1551
+ const EventType = {
1552
+ SNAPSHOT_AND_DELETE_UNATTACHED_EBS_VOLUME: "SnapshotAndDeleteUnattachedEbsVolume",
1553
+ UPGRADE_EBS_VOLUME_TYPE: "UpgradeEbsVolumeType",
1554
+ };
1555
+ const ResourceType = {
1556
+ EBS_VOLUME: "EbsVolume",
1557
+ };
1558
+ const StepStatus = {
1559
+ COMPLETE: "Complete",
1560
+ FAILED: "Failed",
1561
+ IN_PROGRESS: "InProgress",
1562
+ READY: "Ready",
1563
+ };
1564
+ const StepType = {
1565
+ CREATE_EBS_SNAPSHOT: "CreateEbsSnapshot",
1566
+ CREATE_EBS_VOLUME: "CreateEbsVolume",
1567
+ DELETE_EBS_VOLUME: "DeleteEbsVolume",
1568
+ MODIFY_EBS_VOLUME: "ModifyEbsVolume",
1569
+ };
1570
+ const RuleApplyOrder = {
1571
+ AFTER_ACCOUNT_RULES: "AfterAccountRules",
1572
+ BEFORE_ACCOUNT_RULES: "BeforeAccountRules",
1573
+ };
1574
+ const RecommendedActionType = {
1575
+ SNAPSHOT_AND_DELETE_UNATTACHED_EBS_VOLUME: "SnapshotAndDeleteUnattachedEbsVolume",
1576
+ UPGRADE_EBS_VOLUME_TYPE: "UpgradeEbsVolumeType",
1577
+ };
1578
+ const RuleType = {
1579
+ ACCOUNT_RULE: "AccountRule",
1580
+ ORGANIZATIONAL_RULE: "OrganizationRule",
1581
+ };
1582
+ const RuleStatus = {
1583
+ ACTIVE: "Active",
1584
+ INACTIVE: "Inactive",
1585
+ };
1586
+ const ComparisonOperator = {
1587
+ NUMERIC_EQUALS: "NumericEquals",
1588
+ NUMERIC_GREATER_THAN: "NumericGreaterThan",
1589
+ NUMERIC_GREATER_THAN_EQUALS: "NumericGreaterThanEquals",
1590
+ NUMERIC_LESS_THAN: "NumericLessThan",
1591
+ NUMERIC_LESS_THAN_EQUALS: "NumericLessThanEquals",
1592
+ NUMERIC_NOT_EQUALS: "NumericNotEquals",
1593
+ STRING_EQUALS: "StringEquals",
1594
+ STRING_EQUALS_IGNORE_CASE: "StringEqualsIgnoreCase",
1595
+ STRING_LIKE: "StringLike",
1596
+ STRING_NOT_EQUALS: "StringNotEquals",
1597
+ STRING_NOT_EQUALS_IGNORE_CASE: "StringNotEqualsIgnoreCase",
1598
+ STRING_NOT_LIKE: "StringNotLike",
1599
+ };
1600
+
1601
+ Object.defineProperty(exports, "$Command", {
1602
+ enumerable: true,
1603
+ get: function () { return smithyClient.Command; }
1604
+ });
1605
+ Object.defineProperty(exports, "__Client", {
1606
+ enumerable: true,
1607
+ get: function () { return smithyClient.Client; }
1608
+ });
1609
+ exports.AccessDeniedException = AccessDeniedException$1;
1610
+ exports.AssociateAccountsCommand = AssociateAccountsCommand;
1611
+ exports.ComparisonOperator = ComparisonOperator;
1612
+ exports.ComputeOptimizerAutomation = ComputeOptimizerAutomation;
1613
+ exports.ComputeOptimizerAutomationClient = ComputeOptimizerAutomationClient;
1614
+ exports.ComputeOptimizerAutomationServiceException = ComputeOptimizerAutomationServiceException$1;
1615
+ exports.CreateAutomationRuleCommand = CreateAutomationRuleCommand;
1616
+ exports.DeleteAutomationRuleCommand = DeleteAutomationRuleCommand;
1617
+ exports.DisassociateAccountsCommand = DisassociateAccountsCommand;
1618
+ exports.EnrollmentStatus = EnrollmentStatus;
1619
+ exports.EventStatus = EventStatus;
1620
+ exports.EventType = EventType;
1621
+ exports.ForbiddenException = ForbiddenException$1;
1622
+ exports.GetAutomationEventCommand = GetAutomationEventCommand;
1623
+ exports.GetAutomationRuleCommand = GetAutomationRuleCommand;
1624
+ exports.GetEnrollmentConfigurationCommand = GetEnrollmentConfigurationCommand;
1625
+ exports.IdempotencyTokenInUseException = IdempotencyTokenInUseException$1;
1626
+ exports.IdempotentParameterMismatchException = IdempotentParameterMismatchException$1;
1627
+ exports.InternalServerException = InternalServerException$1;
1628
+ exports.InvalidParameterValueException = InvalidParameterValueException$1;
1629
+ exports.ListAccountsCommand = ListAccountsCommand;
1630
+ exports.ListAutomationEventStepsCommand = ListAutomationEventStepsCommand;
1631
+ exports.ListAutomationEventSummariesCommand = ListAutomationEventSummariesCommand;
1632
+ exports.ListAutomationEventsCommand = ListAutomationEventsCommand;
1633
+ exports.ListAutomationRulePreviewCommand = ListAutomationRulePreviewCommand;
1634
+ exports.ListAutomationRulePreviewSummariesCommand = ListAutomationRulePreviewSummariesCommand;
1635
+ exports.ListAutomationRulesCommand = ListAutomationRulesCommand;
1636
+ exports.ListRecommendedActionSummariesCommand = ListRecommendedActionSummariesCommand;
1637
+ exports.ListRecommendedActionsCommand = ListRecommendedActionsCommand;
1638
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1639
+ exports.NotManagementAccountException = NotManagementAccountException$1;
1640
+ exports.OptInRequiredException = OptInRequiredException$1;
1641
+ exports.OrganizationRuleMode = OrganizationRuleMode;
1642
+ exports.RecommendedActionType = RecommendedActionType;
1643
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
1644
+ exports.ResourceType = ResourceType;
1645
+ exports.RollbackAutomationEventCommand = RollbackAutomationEventCommand;
1646
+ exports.RuleApplyOrder = RuleApplyOrder;
1647
+ exports.RuleStatus = RuleStatus;
1648
+ exports.RuleType = RuleType;
1649
+ exports.SavingsEstimationMode = SavingsEstimationMode;
1650
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1651
+ exports.ServiceUnavailableException = ServiceUnavailableException$1;
1652
+ exports.StartAutomationEventCommand = StartAutomationEventCommand;
1653
+ exports.StepStatus = StepStatus;
1654
+ exports.StepType = StepType;
1655
+ exports.TagResourceCommand = TagResourceCommand;
1656
+ exports.ThrottlingException = ThrottlingException$1;
1657
+ exports.UntagResourceCommand = UntagResourceCommand;
1658
+ exports.UpdateAutomationRuleCommand = UpdateAutomationRuleCommand;
1659
+ exports.UpdateEnrollmentConfigurationCommand = UpdateEnrollmentConfigurationCommand;
1660
+ exports.paginateListAccounts = paginateListAccounts;
1661
+ exports.paginateListAutomationEventSteps = paginateListAutomationEventSteps;
1662
+ exports.paginateListAutomationEventSummaries = paginateListAutomationEventSummaries;
1663
+ exports.paginateListAutomationEvents = paginateListAutomationEvents;
1664
+ exports.paginateListAutomationRulePreview = paginateListAutomationRulePreview;
1665
+ exports.paginateListAutomationRulePreviewSummaries = paginateListAutomationRulePreviewSummaries;
1666
+ exports.paginateListAutomationRules = paginateListAutomationRules;
1667
+ exports.paginateListRecommendedActionSummaries = paginateListRecommendedActionSummaries;
1668
+ exports.paginateListRecommendedActions = paginateListRecommendedActions;