aws-sdk-computeoptimizer 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,413 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::ComputeOptimizer
9
+ # @api private
10
+ module ClientApi
11
+
12
+ include Seahorse::Model
13
+
14
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
15
+ AccountId = Shapes::StringShape.new(name: 'AccountId')
16
+ AccountIds = Shapes::ListShape.new(name: 'AccountIds')
17
+ AutoScalingGroupArn = Shapes::StringShape.new(name: 'AutoScalingGroupArn')
18
+ AutoScalingGroupArns = Shapes::ListShape.new(name: 'AutoScalingGroupArns')
19
+ AutoScalingGroupConfiguration = Shapes::StructureShape.new(name: 'AutoScalingGroupConfiguration')
20
+ AutoScalingGroupName = Shapes::StringShape.new(name: 'AutoScalingGroupName')
21
+ AutoScalingGroupRecommendation = Shapes::StructureShape.new(name: 'AutoScalingGroupRecommendation')
22
+ AutoScalingGroupRecommendationOption = Shapes::StructureShape.new(name: 'AutoScalingGroupRecommendationOption')
23
+ AutoScalingGroupRecommendationOptions = Shapes::ListShape.new(name: 'AutoScalingGroupRecommendationOptions')
24
+ AutoScalingGroupRecommendations = Shapes::ListShape.new(name: 'AutoScalingGroupRecommendations')
25
+ Code = Shapes::StringShape.new(name: 'Code')
26
+ CurrentInstanceType = Shapes::StringShape.new(name: 'CurrentInstanceType')
27
+ DesiredCapacity = Shapes::IntegerShape.new(name: 'DesiredCapacity')
28
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
29
+ Filter = Shapes::StructureShape.new(name: 'Filter')
30
+ FilterName = Shapes::StringShape.new(name: 'FilterName')
31
+ FilterValue = Shapes::StringShape.new(name: 'FilterValue')
32
+ FilterValues = Shapes::ListShape.new(name: 'FilterValues')
33
+ Filters = Shapes::ListShape.new(name: 'Filters')
34
+ Finding = Shapes::StringShape.new(name: 'Finding')
35
+ GetAutoScalingGroupRecommendationsRequest = Shapes::StructureShape.new(name: 'GetAutoScalingGroupRecommendationsRequest')
36
+ GetAutoScalingGroupRecommendationsResponse = Shapes::StructureShape.new(name: 'GetAutoScalingGroupRecommendationsResponse')
37
+ GetEC2InstanceRecommendationsRequest = Shapes::StructureShape.new(name: 'GetEC2InstanceRecommendationsRequest')
38
+ GetEC2InstanceRecommendationsResponse = Shapes::StructureShape.new(name: 'GetEC2InstanceRecommendationsResponse')
39
+ GetEC2RecommendationProjectedMetricsRequest = Shapes::StructureShape.new(name: 'GetEC2RecommendationProjectedMetricsRequest')
40
+ GetEC2RecommendationProjectedMetricsResponse = Shapes::StructureShape.new(name: 'GetEC2RecommendationProjectedMetricsResponse')
41
+ GetEnrollmentStatusRequest = Shapes::StructureShape.new(name: 'GetEnrollmentStatusRequest')
42
+ GetEnrollmentStatusResponse = Shapes::StructureShape.new(name: 'GetEnrollmentStatusResponse')
43
+ GetRecommendationError = Shapes::StructureShape.new(name: 'GetRecommendationError')
44
+ GetRecommendationErrors = Shapes::ListShape.new(name: 'GetRecommendationErrors')
45
+ GetRecommendationSummariesRequest = Shapes::StructureShape.new(name: 'GetRecommendationSummariesRequest')
46
+ GetRecommendationSummariesResponse = Shapes::StructureShape.new(name: 'GetRecommendationSummariesResponse')
47
+ Identifier = Shapes::StringShape.new(name: 'Identifier')
48
+ IncludeMemberAccounts = Shapes::BooleanShape.new(name: 'IncludeMemberAccounts')
49
+ InstanceArn = Shapes::StringShape.new(name: 'InstanceArn')
50
+ InstanceArns = Shapes::ListShape.new(name: 'InstanceArns')
51
+ InstanceName = Shapes::StringShape.new(name: 'InstanceName')
52
+ InstanceRecommendation = Shapes::StructureShape.new(name: 'InstanceRecommendation')
53
+ InstanceRecommendationOption = Shapes::StructureShape.new(name: 'InstanceRecommendationOption')
54
+ InstanceRecommendations = Shapes::ListShape.new(name: 'InstanceRecommendations')
55
+ InstanceType = Shapes::StringShape.new(name: 'InstanceType')
56
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
57
+ InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
58
+ LastRefreshTimestamp = Shapes::TimestampShape.new(name: 'LastRefreshTimestamp')
59
+ LookBackPeriodInDays = Shapes::FloatShape.new(name: 'LookBackPeriodInDays')
60
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
61
+ MaxSize = Shapes::IntegerShape.new(name: 'MaxSize')
62
+ MemberAccountsEnrolled = Shapes::BooleanShape.new(name: 'MemberAccountsEnrolled')
63
+ Message = Shapes::StringShape.new(name: 'Message')
64
+ MetricName = Shapes::StringShape.new(name: 'MetricName')
65
+ MetricStatistic = Shapes::StringShape.new(name: 'MetricStatistic')
66
+ MetricValue = Shapes::FloatShape.new(name: 'MetricValue')
67
+ MetricValues = Shapes::ListShape.new(name: 'MetricValues')
68
+ MinSize = Shapes::IntegerShape.new(name: 'MinSize')
69
+ MissingAuthenticationToken = Shapes::StructureShape.new(name: 'MissingAuthenticationToken')
70
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
71
+ OptInRequiredException = Shapes::StructureShape.new(name: 'OptInRequiredException')
72
+ PerformanceRisk = Shapes::FloatShape.new(name: 'PerformanceRisk')
73
+ Period = Shapes::IntegerShape.new(name: 'Period')
74
+ ProjectedMetric = Shapes::StructureShape.new(name: 'ProjectedMetric')
75
+ ProjectedMetrics = Shapes::ListShape.new(name: 'ProjectedMetrics')
76
+ ProjectedUtilizationMetrics = Shapes::ListShape.new(name: 'ProjectedUtilizationMetrics')
77
+ Rank = Shapes::IntegerShape.new(name: 'Rank')
78
+ RecommendationOptions = Shapes::ListShape.new(name: 'RecommendationOptions')
79
+ RecommendationSource = Shapes::StructureShape.new(name: 'RecommendationSource')
80
+ RecommendationSourceArn = Shapes::StringShape.new(name: 'RecommendationSourceArn')
81
+ RecommendationSourceType = Shapes::StringShape.new(name: 'RecommendationSourceType')
82
+ RecommendationSources = Shapes::ListShape.new(name: 'RecommendationSources')
83
+ RecommendationSummaries = Shapes::ListShape.new(name: 'RecommendationSummaries')
84
+ RecommendationSummary = Shapes::StructureShape.new(name: 'RecommendationSummary')
85
+ RecommendedInstanceType = Shapes::StringShape.new(name: 'RecommendedInstanceType')
86
+ RecommendedOptionProjectedMetric = Shapes::StructureShape.new(name: 'RecommendedOptionProjectedMetric')
87
+ RecommendedOptionProjectedMetrics = Shapes::ListShape.new(name: 'RecommendedOptionProjectedMetrics')
88
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
89
+ ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
90
+ Status = Shapes::StringShape.new(name: 'Status')
91
+ StatusReason = Shapes::StringShape.new(name: 'StatusReason')
92
+ Summaries = Shapes::ListShape.new(name: 'Summaries')
93
+ Summary = Shapes::StructureShape.new(name: 'Summary')
94
+ SummaryValue = Shapes::FloatShape.new(name: 'SummaryValue')
95
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
96
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
97
+ Timestamps = Shapes::ListShape.new(name: 'Timestamps')
98
+ UpdateEnrollmentStatusRequest = Shapes::StructureShape.new(name: 'UpdateEnrollmentStatusRequest')
99
+ UpdateEnrollmentStatusResponse = Shapes::StructureShape.new(name: 'UpdateEnrollmentStatusResponse')
100
+ UtilizationMetric = Shapes::StructureShape.new(name: 'UtilizationMetric')
101
+ UtilizationMetrics = Shapes::ListShape.new(name: 'UtilizationMetrics')
102
+
103
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
104
+ AccessDeniedException.struct_class = Types::AccessDeniedException
105
+
106
+ AccountIds.member = Shapes::ShapeRef.new(shape: AccountId)
107
+
108
+ AutoScalingGroupArns.member = Shapes::ShapeRef.new(shape: AutoScalingGroupArn)
109
+
110
+ AutoScalingGroupConfiguration.add_member(:desired_capacity, Shapes::ShapeRef.new(shape: DesiredCapacity, location_name: "desiredCapacity"))
111
+ AutoScalingGroupConfiguration.add_member(:min_size, Shapes::ShapeRef.new(shape: MinSize, location_name: "minSize"))
112
+ AutoScalingGroupConfiguration.add_member(:max_size, Shapes::ShapeRef.new(shape: MaxSize, location_name: "maxSize"))
113
+ AutoScalingGroupConfiguration.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
114
+ AutoScalingGroupConfiguration.struct_class = Types::AutoScalingGroupConfiguration
115
+
116
+ AutoScalingGroupRecommendation.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
117
+ AutoScalingGroupRecommendation.add_member(:auto_scaling_group_arn, Shapes::ShapeRef.new(shape: AutoScalingGroupArn, location_name: "autoScalingGroupArn"))
118
+ AutoScalingGroupRecommendation.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: AutoScalingGroupName, location_name: "autoScalingGroupName"))
119
+ AutoScalingGroupRecommendation.add_member(:finding, Shapes::ShapeRef.new(shape: Finding, location_name: "finding"))
120
+ AutoScalingGroupRecommendation.add_member(:utilization_metrics, Shapes::ShapeRef.new(shape: UtilizationMetrics, location_name: "utilizationMetrics"))
121
+ AutoScalingGroupRecommendation.add_member(:look_back_period_in_days, Shapes::ShapeRef.new(shape: LookBackPeriodInDays, location_name: "lookBackPeriodInDays"))
122
+ AutoScalingGroupRecommendation.add_member(:current_configuration, Shapes::ShapeRef.new(shape: AutoScalingGroupConfiguration, location_name: "currentConfiguration"))
123
+ AutoScalingGroupRecommendation.add_member(:recommendation_options, Shapes::ShapeRef.new(shape: AutoScalingGroupRecommendationOptions, location_name: "recommendationOptions"))
124
+ AutoScalingGroupRecommendation.add_member(:last_refresh_timestamp, Shapes::ShapeRef.new(shape: LastRefreshTimestamp, location_name: "lastRefreshTimestamp"))
125
+ AutoScalingGroupRecommendation.struct_class = Types::AutoScalingGroupRecommendation
126
+
127
+ AutoScalingGroupRecommendationOption.add_member(:configuration, Shapes::ShapeRef.new(shape: AutoScalingGroupConfiguration, location_name: "configuration"))
128
+ AutoScalingGroupRecommendationOption.add_member(:projected_utilization_metrics, Shapes::ShapeRef.new(shape: ProjectedUtilizationMetrics, location_name: "projectedUtilizationMetrics"))
129
+ AutoScalingGroupRecommendationOption.add_member(:performance_risk, Shapes::ShapeRef.new(shape: PerformanceRisk, location_name: "performanceRisk"))
130
+ AutoScalingGroupRecommendationOption.add_member(:rank, Shapes::ShapeRef.new(shape: Rank, location_name: "rank"))
131
+ AutoScalingGroupRecommendationOption.struct_class = Types::AutoScalingGroupRecommendationOption
132
+
133
+ AutoScalingGroupRecommendationOptions.member = Shapes::ShapeRef.new(shape: AutoScalingGroupRecommendationOption)
134
+
135
+ AutoScalingGroupRecommendations.member = Shapes::ShapeRef.new(shape: AutoScalingGroupRecommendation)
136
+
137
+ Filter.add_member(:name, Shapes::ShapeRef.new(shape: FilterName, location_name: "name"))
138
+ Filter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValues, location_name: "values"))
139
+ Filter.struct_class = Types::Filter
140
+
141
+ FilterValues.member = Shapes::ShapeRef.new(shape: FilterValue)
142
+
143
+ Filters.member = Shapes::ShapeRef.new(shape: Filter)
144
+
145
+ GetAutoScalingGroupRecommendationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
146
+ GetAutoScalingGroupRecommendationsRequest.add_member(:auto_scaling_group_arns, Shapes::ShapeRef.new(shape: AutoScalingGroupArns, location_name: "autoScalingGroupArns"))
147
+ GetAutoScalingGroupRecommendationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
148
+ GetAutoScalingGroupRecommendationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
149
+ GetAutoScalingGroupRecommendationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "filters"))
150
+ GetAutoScalingGroupRecommendationsRequest.struct_class = Types::GetAutoScalingGroupRecommendationsRequest
151
+
152
+ GetAutoScalingGroupRecommendationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
153
+ GetAutoScalingGroupRecommendationsResponse.add_member(:auto_scaling_group_recommendations, Shapes::ShapeRef.new(shape: AutoScalingGroupRecommendations, location_name: "autoScalingGroupRecommendations"))
154
+ GetAutoScalingGroupRecommendationsResponse.add_member(:errors, Shapes::ShapeRef.new(shape: GetRecommendationErrors, location_name: "errors"))
155
+ GetAutoScalingGroupRecommendationsResponse.struct_class = Types::GetAutoScalingGroupRecommendationsResponse
156
+
157
+ GetEC2InstanceRecommendationsRequest.add_member(:instance_arns, Shapes::ShapeRef.new(shape: InstanceArns, location_name: "instanceArns"))
158
+ GetEC2InstanceRecommendationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
159
+ GetEC2InstanceRecommendationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
160
+ GetEC2InstanceRecommendationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "filters"))
161
+ GetEC2InstanceRecommendationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
162
+ GetEC2InstanceRecommendationsRequest.struct_class = Types::GetEC2InstanceRecommendationsRequest
163
+
164
+ GetEC2InstanceRecommendationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
165
+ GetEC2InstanceRecommendationsResponse.add_member(:instance_recommendations, Shapes::ShapeRef.new(shape: InstanceRecommendations, location_name: "instanceRecommendations"))
166
+ GetEC2InstanceRecommendationsResponse.add_member(:errors, Shapes::ShapeRef.new(shape: GetRecommendationErrors, location_name: "errors"))
167
+ GetEC2InstanceRecommendationsResponse.struct_class = Types::GetEC2InstanceRecommendationsResponse
168
+
169
+ GetEC2RecommendationProjectedMetricsRequest.add_member(:instance_arn, Shapes::ShapeRef.new(shape: InstanceArn, required: true, location_name: "instanceArn"))
170
+ GetEC2RecommendationProjectedMetricsRequest.add_member(:stat, Shapes::ShapeRef.new(shape: MetricStatistic, required: true, location_name: "stat"))
171
+ GetEC2RecommendationProjectedMetricsRequest.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "period"))
172
+ GetEC2RecommendationProjectedMetricsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startTime"))
173
+ GetEC2RecommendationProjectedMetricsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "endTime"))
174
+ GetEC2RecommendationProjectedMetricsRequest.struct_class = Types::GetEC2RecommendationProjectedMetricsRequest
175
+
176
+ GetEC2RecommendationProjectedMetricsResponse.add_member(:recommended_option_projected_metrics, Shapes::ShapeRef.new(shape: RecommendedOptionProjectedMetrics, location_name: "recommendedOptionProjectedMetrics"))
177
+ GetEC2RecommendationProjectedMetricsResponse.struct_class = Types::GetEC2RecommendationProjectedMetricsResponse
178
+
179
+ GetEnrollmentStatusRequest.struct_class = Types::GetEnrollmentStatusRequest
180
+
181
+ GetEnrollmentStatusResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
182
+ GetEnrollmentStatusResponse.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
183
+ GetEnrollmentStatusResponse.add_member(:member_accounts_enrolled, Shapes::ShapeRef.new(shape: MemberAccountsEnrolled, location_name: "memberAccountsEnrolled"))
184
+ GetEnrollmentStatusResponse.struct_class = Types::GetEnrollmentStatusResponse
185
+
186
+ GetRecommendationError.add_member(:identifier, Shapes::ShapeRef.new(shape: Identifier, location_name: "identifier"))
187
+ GetRecommendationError.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "code"))
188
+ GetRecommendationError.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
189
+ GetRecommendationError.struct_class = Types::GetRecommendationError
190
+
191
+ GetRecommendationErrors.member = Shapes::ShapeRef.new(shape: GetRecommendationError)
192
+
193
+ GetRecommendationSummariesRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
194
+ GetRecommendationSummariesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
195
+ GetRecommendationSummariesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
196
+ GetRecommendationSummariesRequest.struct_class = Types::GetRecommendationSummariesRequest
197
+
198
+ GetRecommendationSummariesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
199
+ GetRecommendationSummariesResponse.add_member(:recommendation_summaries, Shapes::ShapeRef.new(shape: RecommendationSummaries, location_name: "recommendationSummaries"))
200
+ GetRecommendationSummariesResponse.struct_class = Types::GetRecommendationSummariesResponse
201
+
202
+ InstanceArns.member = Shapes::ShapeRef.new(shape: InstanceArn)
203
+
204
+ InstanceRecommendation.add_member(:instance_arn, Shapes::ShapeRef.new(shape: InstanceArn, location_name: "instanceArn"))
205
+ InstanceRecommendation.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
206
+ InstanceRecommendation.add_member(:instance_name, Shapes::ShapeRef.new(shape: InstanceName, location_name: "instanceName"))
207
+ InstanceRecommendation.add_member(:current_instance_type, Shapes::ShapeRef.new(shape: CurrentInstanceType, location_name: "currentInstanceType"))
208
+ InstanceRecommendation.add_member(:finding, Shapes::ShapeRef.new(shape: Finding, location_name: "finding"))
209
+ InstanceRecommendation.add_member(:utilization_metrics, Shapes::ShapeRef.new(shape: UtilizationMetrics, location_name: "utilizationMetrics"))
210
+ InstanceRecommendation.add_member(:look_back_period_in_days, Shapes::ShapeRef.new(shape: LookBackPeriodInDays, location_name: "lookBackPeriodInDays"))
211
+ InstanceRecommendation.add_member(:recommendation_options, Shapes::ShapeRef.new(shape: RecommendationOptions, location_name: "recommendationOptions"))
212
+ InstanceRecommendation.add_member(:recommendation_sources, Shapes::ShapeRef.new(shape: RecommendationSources, location_name: "recommendationSources"))
213
+ InstanceRecommendation.add_member(:last_refresh_timestamp, Shapes::ShapeRef.new(shape: LastRefreshTimestamp, location_name: "lastRefreshTimestamp"))
214
+ InstanceRecommendation.struct_class = Types::InstanceRecommendation
215
+
216
+ InstanceRecommendationOption.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
217
+ InstanceRecommendationOption.add_member(:projected_utilization_metrics, Shapes::ShapeRef.new(shape: ProjectedUtilizationMetrics, location_name: "projectedUtilizationMetrics"))
218
+ InstanceRecommendationOption.add_member(:performance_risk, Shapes::ShapeRef.new(shape: PerformanceRisk, location_name: "performanceRisk"))
219
+ InstanceRecommendationOption.add_member(:rank, Shapes::ShapeRef.new(shape: Rank, location_name: "rank"))
220
+ InstanceRecommendationOption.struct_class = Types::InstanceRecommendationOption
221
+
222
+ InstanceRecommendations.member = Shapes::ShapeRef.new(shape: InstanceRecommendation)
223
+
224
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
225
+ InternalServerException.struct_class = Types::InternalServerException
226
+
227
+ InvalidParameterValueException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
228
+ InvalidParameterValueException.struct_class = Types::InvalidParameterValueException
229
+
230
+ MetricValues.member = Shapes::ShapeRef.new(shape: MetricValue)
231
+
232
+ MissingAuthenticationToken.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
233
+ MissingAuthenticationToken.struct_class = Types::MissingAuthenticationToken
234
+
235
+ OptInRequiredException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
236
+ OptInRequiredException.struct_class = Types::OptInRequiredException
237
+
238
+ ProjectedMetric.add_member(:name, Shapes::ShapeRef.new(shape: MetricName, location_name: "name"))
239
+ ProjectedMetric.add_member(:timestamps, Shapes::ShapeRef.new(shape: Timestamps, location_name: "timestamps"))
240
+ ProjectedMetric.add_member(:values, Shapes::ShapeRef.new(shape: MetricValues, location_name: "values"))
241
+ ProjectedMetric.struct_class = Types::ProjectedMetric
242
+
243
+ ProjectedMetrics.member = Shapes::ShapeRef.new(shape: ProjectedMetric)
244
+
245
+ ProjectedUtilizationMetrics.member = Shapes::ShapeRef.new(shape: UtilizationMetric)
246
+
247
+ RecommendationOptions.member = Shapes::ShapeRef.new(shape: InstanceRecommendationOption)
248
+
249
+ RecommendationSource.add_member(:recommendation_source_arn, Shapes::ShapeRef.new(shape: RecommendationSourceArn, location_name: "recommendationSourceArn"))
250
+ RecommendationSource.add_member(:recommendation_source_type, Shapes::ShapeRef.new(shape: RecommendationSourceType, location_name: "recommendationSourceType"))
251
+ RecommendationSource.struct_class = Types::RecommendationSource
252
+
253
+ RecommendationSources.member = Shapes::ShapeRef.new(shape: RecommendationSource)
254
+
255
+ RecommendationSummaries.member = Shapes::ShapeRef.new(shape: RecommendationSummary)
256
+
257
+ RecommendationSummary.add_member(:summaries, Shapes::ShapeRef.new(shape: Summaries, location_name: "summaries"))
258
+ RecommendationSummary.add_member(:recommendation_resource_type, Shapes::ShapeRef.new(shape: RecommendationSourceType, location_name: "recommendationResourceType"))
259
+ RecommendationSummary.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
260
+ RecommendationSummary.struct_class = Types::RecommendationSummary
261
+
262
+ RecommendedOptionProjectedMetric.add_member(:recommended_instance_type, Shapes::ShapeRef.new(shape: RecommendedInstanceType, location_name: "recommendedInstanceType"))
263
+ RecommendedOptionProjectedMetric.add_member(:rank, Shapes::ShapeRef.new(shape: Rank, location_name: "rank"))
264
+ RecommendedOptionProjectedMetric.add_member(:projected_metrics, Shapes::ShapeRef.new(shape: ProjectedMetrics, location_name: "projectedMetrics"))
265
+ RecommendedOptionProjectedMetric.struct_class = Types::RecommendedOptionProjectedMetric
266
+
267
+ RecommendedOptionProjectedMetrics.member = Shapes::ShapeRef.new(shape: RecommendedOptionProjectedMetric)
268
+
269
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
270
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
271
+
272
+ ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
273
+ ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
274
+
275
+ Summaries.member = Shapes::ShapeRef.new(shape: Summary)
276
+
277
+ Summary.add_member(:name, Shapes::ShapeRef.new(shape: Finding, location_name: "name"))
278
+ Summary.add_member(:value, Shapes::ShapeRef.new(shape: SummaryValue, location_name: "value"))
279
+ Summary.struct_class = Types::Summary
280
+
281
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, required: true, location_name: "message"))
282
+ ThrottlingException.struct_class = Types::ThrottlingException
283
+
284
+ Timestamps.member = Shapes::ShapeRef.new(shape: Timestamp)
285
+
286
+ UpdateEnrollmentStatusRequest.add_member(:status, Shapes::ShapeRef.new(shape: Status, required: true, location_name: "status"))
287
+ UpdateEnrollmentStatusRequest.add_member(:include_member_accounts, Shapes::ShapeRef.new(shape: IncludeMemberAccounts, location_name: "includeMemberAccounts"))
288
+ UpdateEnrollmentStatusRequest.struct_class = Types::UpdateEnrollmentStatusRequest
289
+
290
+ UpdateEnrollmentStatusResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
291
+ UpdateEnrollmentStatusResponse.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
292
+ UpdateEnrollmentStatusResponse.struct_class = Types::UpdateEnrollmentStatusResponse
293
+
294
+ UtilizationMetric.add_member(:name, Shapes::ShapeRef.new(shape: MetricName, location_name: "name"))
295
+ UtilizationMetric.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, location_name: "statistic"))
296
+ UtilizationMetric.add_member(:value, Shapes::ShapeRef.new(shape: MetricValue, location_name: "value"))
297
+ UtilizationMetric.struct_class = Types::UtilizationMetric
298
+
299
+ UtilizationMetrics.member = Shapes::ShapeRef.new(shape: UtilizationMetric)
300
+
301
+
302
+ # @api private
303
+ API = Seahorse::Model::Api.new.tap do |api|
304
+
305
+ api.version = "2019-11-01"
306
+
307
+ api.metadata = {
308
+ "apiVersion" => "2019-11-01",
309
+ "endpointPrefix" => "compute-optimizer",
310
+ "jsonVersion" => "1.0",
311
+ "protocol" => "json",
312
+ "serviceFullName" => "AWS Compute Optimizer",
313
+ "serviceId" => "Compute Optimizer",
314
+ "signatureVersion" => "v4",
315
+ "signingName" => "compute-optimizer",
316
+ "targetPrefix" => "ComputeOptimizerService",
317
+ "uid" => "compute-optimizer-2019-11-01",
318
+ }
319
+
320
+ api.add_operation(:get_auto_scaling_group_recommendations, Seahorse::Model::Operation.new.tap do |o|
321
+ o.name = "GetAutoScalingGroupRecommendations"
322
+ o.http_method = "POST"
323
+ o.http_request_uri = "/"
324
+ o.input = Shapes::ShapeRef.new(shape: GetAutoScalingGroupRecommendationsRequest)
325
+ o.output = Shapes::ShapeRef.new(shape: GetAutoScalingGroupRecommendationsResponse)
326
+ o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
327
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
328
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
329
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
330
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
331
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
332
+ o.errors << Shapes::ShapeRef.new(shape: MissingAuthenticationToken)
333
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
334
+ end)
335
+
336
+ api.add_operation(:get_ec2_instance_recommendations, Seahorse::Model::Operation.new.tap do |o|
337
+ o.name = "GetEC2InstanceRecommendations"
338
+ o.http_method = "POST"
339
+ o.http_request_uri = "/"
340
+ o.input = Shapes::ShapeRef.new(shape: GetEC2InstanceRecommendationsRequest)
341
+ o.output = Shapes::ShapeRef.new(shape: GetEC2InstanceRecommendationsResponse)
342
+ o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
343
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
344
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
345
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
346
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
347
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
348
+ o.errors << Shapes::ShapeRef.new(shape: MissingAuthenticationToken)
349
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
350
+ end)
351
+
352
+ api.add_operation(:get_ec2_recommendation_projected_metrics, Seahorse::Model::Operation.new.tap do |o|
353
+ o.name = "GetEC2RecommendationProjectedMetrics"
354
+ o.http_method = "POST"
355
+ o.http_request_uri = "/"
356
+ o.input = Shapes::ShapeRef.new(shape: GetEC2RecommendationProjectedMetricsRequest)
357
+ o.output = Shapes::ShapeRef.new(shape: GetEC2RecommendationProjectedMetricsResponse)
358
+ o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
359
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
360
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
361
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
362
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
363
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
364
+ o.errors << Shapes::ShapeRef.new(shape: MissingAuthenticationToken)
365
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
366
+ end)
367
+
368
+ api.add_operation(:get_enrollment_status, Seahorse::Model::Operation.new.tap do |o|
369
+ o.name = "GetEnrollmentStatus"
370
+ o.http_method = "POST"
371
+ o.http_request_uri = "/"
372
+ o.input = Shapes::ShapeRef.new(shape: GetEnrollmentStatusRequest)
373
+ o.output = Shapes::ShapeRef.new(shape: GetEnrollmentStatusResponse)
374
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
375
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
376
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
377
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
378
+ o.errors << Shapes::ShapeRef.new(shape: MissingAuthenticationToken)
379
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
380
+ end)
381
+
382
+ api.add_operation(:get_recommendation_summaries, Seahorse::Model::Operation.new.tap do |o|
383
+ o.name = "GetRecommendationSummaries"
384
+ o.http_method = "POST"
385
+ o.http_request_uri = "/"
386
+ o.input = Shapes::ShapeRef.new(shape: GetRecommendationSummariesRequest)
387
+ o.output = Shapes::ShapeRef.new(shape: GetRecommendationSummariesResponse)
388
+ o.errors << Shapes::ShapeRef.new(shape: OptInRequiredException)
389
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
390
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
391
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
392
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
393
+ o.errors << Shapes::ShapeRef.new(shape: MissingAuthenticationToken)
394
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
395
+ end)
396
+
397
+ api.add_operation(:update_enrollment_status, Seahorse::Model::Operation.new.tap do |o|
398
+ o.name = "UpdateEnrollmentStatus"
399
+ o.http_method = "POST"
400
+ o.http_request_uri = "/"
401
+ o.input = Shapes::ShapeRef.new(shape: UpdateEnrollmentStatusRequest)
402
+ o.output = Shapes::ShapeRef.new(shape: UpdateEnrollmentStatusResponse)
403
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
404
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
405
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
406
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
407
+ o.errors << Shapes::ShapeRef.new(shape: MissingAuthenticationToken)
408
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
409
+ end)
410
+ end
411
+
412
+ end
413
+ end
@@ -0,0 +1,142 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws::ComputeOptimizer
9
+ module Errors
10
+
11
+ extend Aws::Errors::DynamicErrors
12
+
13
+ class AccessDeniedException < ServiceError
14
+
15
+ # @param [Seahorse::Client::RequestContext] context
16
+ # @param [String] message
17
+ # @param [Aws::ComputeOptimizer::Types::AccessDeniedException] data
18
+ def initialize(context, message, data = Aws::EmptyStructure.new)
19
+ super(context, message, data)
20
+ end
21
+
22
+ # @return [String]
23
+ def message
24
+ @message || @data[:message]
25
+ end
26
+
27
+ end
28
+
29
+ class InternalServerException < ServiceError
30
+
31
+ # @param [Seahorse::Client::RequestContext] context
32
+ # @param [String] message
33
+ # @param [Aws::ComputeOptimizer::Types::InternalServerException] data
34
+ def initialize(context, message, data = Aws::EmptyStructure.new)
35
+ super(context, message, data)
36
+ end
37
+
38
+ # @return [String]
39
+ def message
40
+ @message || @data[:message]
41
+ end
42
+
43
+ end
44
+
45
+ class InvalidParameterValueException < ServiceError
46
+
47
+ # @param [Seahorse::Client::RequestContext] context
48
+ # @param [String] message
49
+ # @param [Aws::ComputeOptimizer::Types::InvalidParameterValueException] data
50
+ def initialize(context, message, data = Aws::EmptyStructure.new)
51
+ super(context, message, data)
52
+ end
53
+
54
+ # @return [String]
55
+ def message
56
+ @message || @data[:message]
57
+ end
58
+
59
+ end
60
+
61
+ class MissingAuthenticationToken < ServiceError
62
+
63
+ # @param [Seahorse::Client::RequestContext] context
64
+ # @param [String] message
65
+ # @param [Aws::ComputeOptimizer::Types::MissingAuthenticationToken] data
66
+ def initialize(context, message, data = Aws::EmptyStructure.new)
67
+ super(context, message, data)
68
+ end
69
+
70
+ # @return [String]
71
+ def message
72
+ @message || @data[:message]
73
+ end
74
+
75
+ end
76
+
77
+ class OptInRequiredException < ServiceError
78
+
79
+ # @param [Seahorse::Client::RequestContext] context
80
+ # @param [String] message
81
+ # @param [Aws::ComputeOptimizer::Types::OptInRequiredException] data
82
+ def initialize(context, message, data = Aws::EmptyStructure.new)
83
+ super(context, message, data)
84
+ end
85
+
86
+ # @return [String]
87
+ def message
88
+ @message || @data[:message]
89
+ end
90
+
91
+ end
92
+
93
+ class ResourceNotFoundException < ServiceError
94
+
95
+ # @param [Seahorse::Client::RequestContext] context
96
+ # @param [String] message
97
+ # @param [Aws::ComputeOptimizer::Types::ResourceNotFoundException] data
98
+ def initialize(context, message, data = Aws::EmptyStructure.new)
99
+ super(context, message, data)
100
+ end
101
+
102
+ # @return [String]
103
+ def message
104
+ @message || @data[:message]
105
+ end
106
+
107
+ end
108
+
109
+ class ServiceUnavailableException < ServiceError
110
+
111
+ # @param [Seahorse::Client::RequestContext] context
112
+ # @param [String] message
113
+ # @param [Aws::ComputeOptimizer::Types::ServiceUnavailableException] data
114
+ def initialize(context, message, data = Aws::EmptyStructure.new)
115
+ super(context, message, data)
116
+ end
117
+
118
+ # @return [String]
119
+ def message
120
+ @message || @data[:message]
121
+ end
122
+
123
+ end
124
+
125
+ class ThrottlingException < ServiceError
126
+
127
+ # @param [Seahorse::Client::RequestContext] context
128
+ # @param [String] message
129
+ # @param [Aws::ComputeOptimizer::Types::ThrottlingException] data
130
+ def initialize(context, message, data = Aws::EmptyStructure.new)
131
+ super(context, message, data)
132
+ end
133
+
134
+ # @return [String]
135
+ def message
136
+ @message || @data[:message]
137
+ end
138
+
139
+ end
140
+
141
+ end
142
+ end