aws-sdk-computeoptimizer 1.21.0 → 1.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,8 @@ module Aws::ComputeOptimizer
14
14
  include Seahorse::Model
15
15
 
16
16
  AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ AccountEnrollmentStatus = Shapes::StructureShape.new(name: 'AccountEnrollmentStatus')
18
+ AccountEnrollmentStatuses = Shapes::ListShape.new(name: 'AccountEnrollmentStatuses')
17
19
  AccountId = Shapes::StringShape.new(name: 'AccountId')
18
20
  AccountIds = Shapes::ListShape.new(name: 'AccountIds')
19
21
  AutoScalingGroupArn = Shapes::StringShape.new(name: 'AutoScalingGroupArn')
@@ -25,6 +27,8 @@ module Aws::ComputeOptimizer
25
27
  AutoScalingGroupRecommendationOptions = Shapes::ListShape.new(name: 'AutoScalingGroupRecommendationOptions')
26
28
  AutoScalingGroupRecommendations = Shapes::ListShape.new(name: 'AutoScalingGroupRecommendations')
27
29
  Code = Shapes::StringShape.new(name: 'Code')
30
+ CpuVendorArchitecture = Shapes::StringShape.new(name: 'CpuVendorArchitecture')
31
+ CpuVendorArchitectures = Shapes::ListShape.new(name: 'CpuVendorArchitectures')
28
32
  CreationTimestamp = Shapes::TimestampShape.new(name: 'CreationTimestamp')
29
33
  CurrentInstanceType = Shapes::StringShape.new(name: 'CurrentInstanceType')
30
34
  DescribeRecommendationExportJobsRequest = Shapes::StructureShape.new(name: 'DescribeRecommendationExportJobsRequest')
@@ -40,6 +44,9 @@ module Aws::ComputeOptimizer
40
44
  EBSMetricName = Shapes::StringShape.new(name: 'EBSMetricName')
41
45
  EBSUtilizationMetric = Shapes::StructureShape.new(name: 'EBSUtilizationMetric')
42
46
  EBSUtilizationMetrics = Shapes::ListShape.new(name: 'EBSUtilizationMetrics')
47
+ EnrollmentFilter = Shapes::StructureShape.new(name: 'EnrollmentFilter')
48
+ EnrollmentFilterName = Shapes::StringShape.new(name: 'EnrollmentFilterName')
49
+ EnrollmentFilters = Shapes::ListShape.new(name: 'EnrollmentFilters')
43
50
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
44
51
  ExportAutoScalingGroupRecommendationsRequest = Shapes::StructureShape.new(name: 'ExportAutoScalingGroupRecommendationsRequest')
45
52
  ExportAutoScalingGroupRecommendationsResponse = Shapes::StructureShape.new(name: 'ExportAutoScalingGroupRecommendationsResponse')
@@ -80,6 +87,8 @@ module Aws::ComputeOptimizer
80
87
  GetEC2RecommendationProjectedMetricsResponse = Shapes::StructureShape.new(name: 'GetEC2RecommendationProjectedMetricsResponse')
81
88
  GetEnrollmentStatusRequest = Shapes::StructureShape.new(name: 'GetEnrollmentStatusRequest')
82
89
  GetEnrollmentStatusResponse = Shapes::StructureShape.new(name: 'GetEnrollmentStatusResponse')
90
+ GetEnrollmentStatusesForOrganizationRequest = Shapes::StructureShape.new(name: 'GetEnrollmentStatusesForOrganizationRequest')
91
+ GetEnrollmentStatusesForOrganizationResponse = Shapes::StructureShape.new(name: 'GetEnrollmentStatusesForOrganizationResponse')
83
92
  GetLambdaFunctionRecommendationsRequest = Shapes::StructureShape.new(name: 'GetLambdaFunctionRecommendationsRequest')
84
93
  GetLambdaFunctionRecommendationsResponse = Shapes::StructureShape.new(name: 'GetLambdaFunctionRecommendationsResponse')
85
94
  GetRecommendationError = Shapes::StructureShape.new(name: 'GetRecommendationError')
@@ -141,6 +150,7 @@ module Aws::ComputeOptimizer
141
150
  MissingAuthenticationToken = Shapes::StructureShape.new(name: 'MissingAuthenticationToken')
142
151
  NextToken = Shapes::StringShape.new(name: 'NextToken')
143
152
  NumberOfInvocations = Shapes::IntegerShape.new(name: 'NumberOfInvocations')
153
+ NumberOfMemberAccountsOptedIn = Shapes::IntegerShape.new(name: 'NumberOfMemberAccountsOptedIn')
144
154
  OptInRequiredException = Shapes::StructureShape.new(name: 'OptInRequiredException')
145
155
  PerformanceRisk = Shapes::FloatShape.new(name: 'PerformanceRisk')
146
156
  Period = Shapes::IntegerShape.new(name: 'Period')
@@ -155,6 +165,7 @@ module Aws::ComputeOptimizer
155
165
  RecommendationExportJob = Shapes::StructureShape.new(name: 'RecommendationExportJob')
156
166
  RecommendationExportJobs = Shapes::ListShape.new(name: 'RecommendationExportJobs')
157
167
  RecommendationOptions = Shapes::ListShape.new(name: 'RecommendationOptions')
168
+ RecommendationPreferences = Shapes::StructureShape.new(name: 'RecommendationPreferences')
158
169
  RecommendationSource = Shapes::StructureShape.new(name: 'RecommendationSource')
159
170
  RecommendationSourceArn = Shapes::StringShape.new(name: 'RecommendationSourceArn')
160
171
  RecommendationSourceType = Shapes::StringShape.new(name: 'RecommendationSourceType')
@@ -198,6 +209,14 @@ module Aws::ComputeOptimizer
198
209
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
199
210
  AccessDeniedException.struct_class = Types::AccessDeniedException
200
211
 
212
+ AccountEnrollmentStatus.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, location_name: "accountId"))
213
+ AccountEnrollmentStatus.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
214
+ AccountEnrollmentStatus.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
215
+ AccountEnrollmentStatus.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: LastUpdatedTimestamp, location_name: "lastUpdatedTimestamp"))
216
+ AccountEnrollmentStatus.struct_class = Types::AccountEnrollmentStatus
217
+
218
+ AccountEnrollmentStatuses.member = Shapes::ShapeRef.new(shape: AccountEnrollmentStatus)
219
+
201
220
  AccountIds.member = Shapes::ShapeRef.new(shape: AccountId)
202
221
 
203
222
  AutoScalingGroupArns.member = Shapes::ShapeRef.new(shape: AutoScalingGroupArn)
@@ -229,6 +248,8 @@ module Aws::ComputeOptimizer
229
248
 
230
249
  AutoScalingGroupRecommendations.member = Shapes::ShapeRef.new(shape: AutoScalingGroupRecommendation)
231
250
 
251
+ CpuVendorArchitectures.member = Shapes::ShapeRef.new(shape: CpuVendorArchitecture)
252
+
232
253
  DescribeRecommendationExportJobsRequest.add_member(:job_ids, Shapes::ShapeRef.new(shape: JobIds, location_name: "jobIds"))
233
254
  DescribeRecommendationExportJobsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: JobFilters, location_name: "filters"))
234
255
  DescribeRecommendationExportJobsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -252,12 +273,19 @@ module Aws::ComputeOptimizer
252
273
 
253
274
  EBSUtilizationMetrics.member = Shapes::ShapeRef.new(shape: EBSUtilizationMetric)
254
275
 
276
+ EnrollmentFilter.add_member(:name, Shapes::ShapeRef.new(shape: EnrollmentFilterName, location_name: "name"))
277
+ EnrollmentFilter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValues, location_name: "values"))
278
+ EnrollmentFilter.struct_class = Types::EnrollmentFilter
279
+
280
+ EnrollmentFilters.member = Shapes::ShapeRef.new(shape: EnrollmentFilter)
281
+
255
282
  ExportAutoScalingGroupRecommendationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
256
283
  ExportAutoScalingGroupRecommendationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "filters"))
257
284
  ExportAutoScalingGroupRecommendationsRequest.add_member(:fields_to_export, Shapes::ShapeRef.new(shape: ExportableAutoScalingGroupFields, location_name: "fieldsToExport"))
258
285
  ExportAutoScalingGroupRecommendationsRequest.add_member(:s3_destination_config, Shapes::ShapeRef.new(shape: S3DestinationConfig, required: true, location_name: "s3DestinationConfig"))
259
286
  ExportAutoScalingGroupRecommendationsRequest.add_member(:file_format, Shapes::ShapeRef.new(shape: FileFormat, location_name: "fileFormat"))
260
287
  ExportAutoScalingGroupRecommendationsRequest.add_member(:include_member_accounts, Shapes::ShapeRef.new(shape: IncludeMemberAccounts, location_name: "includeMemberAccounts"))
288
+ ExportAutoScalingGroupRecommendationsRequest.add_member(:recommendation_preferences, Shapes::ShapeRef.new(shape: RecommendationPreferences, location_name: "recommendationPreferences"))
261
289
  ExportAutoScalingGroupRecommendationsRequest.struct_class = Types::ExportAutoScalingGroupRecommendationsRequest
262
290
 
263
291
  ExportAutoScalingGroupRecommendationsResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "jobId"))
@@ -285,6 +313,7 @@ module Aws::ComputeOptimizer
285
313
  ExportEC2InstanceRecommendationsRequest.add_member(:s3_destination_config, Shapes::ShapeRef.new(shape: S3DestinationConfig, required: true, location_name: "s3DestinationConfig"))
286
314
  ExportEC2InstanceRecommendationsRequest.add_member(:file_format, Shapes::ShapeRef.new(shape: FileFormat, location_name: "fileFormat"))
287
315
  ExportEC2InstanceRecommendationsRequest.add_member(:include_member_accounts, Shapes::ShapeRef.new(shape: IncludeMemberAccounts, location_name: "includeMemberAccounts"))
316
+ ExportEC2InstanceRecommendationsRequest.add_member(:recommendation_preferences, Shapes::ShapeRef.new(shape: RecommendationPreferences, location_name: "recommendationPreferences"))
288
317
  ExportEC2InstanceRecommendationsRequest.struct_class = Types::ExportEC2InstanceRecommendationsRequest
289
318
 
290
319
  ExportEC2InstanceRecommendationsResponse.add_member(:job_id, Shapes::ShapeRef.new(shape: JobId, location_name: "jobId"))
@@ -326,6 +355,7 @@ module Aws::ComputeOptimizer
326
355
  GetAutoScalingGroupRecommendationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
327
356
  GetAutoScalingGroupRecommendationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
328
357
  GetAutoScalingGroupRecommendationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "filters"))
358
+ GetAutoScalingGroupRecommendationsRequest.add_member(:recommendation_preferences, Shapes::ShapeRef.new(shape: RecommendationPreferences, location_name: "recommendationPreferences"))
329
359
  GetAutoScalingGroupRecommendationsRequest.struct_class = Types::GetAutoScalingGroupRecommendationsRequest
330
360
 
331
361
  GetAutoScalingGroupRecommendationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -350,6 +380,7 @@ module Aws::ComputeOptimizer
350
380
  GetEC2InstanceRecommendationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
351
381
  GetEC2InstanceRecommendationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: Filters, location_name: "filters"))
352
382
  GetEC2InstanceRecommendationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
383
+ GetEC2InstanceRecommendationsRequest.add_member(:recommendation_preferences, Shapes::ShapeRef.new(shape: RecommendationPreferences, location_name: "recommendationPreferences"))
353
384
  GetEC2InstanceRecommendationsRequest.struct_class = Types::GetEC2InstanceRecommendationsRequest
354
385
 
355
386
  GetEC2InstanceRecommendationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
@@ -362,6 +393,7 @@ module Aws::ComputeOptimizer
362
393
  GetEC2RecommendationProjectedMetricsRequest.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "period"))
363
394
  GetEC2RecommendationProjectedMetricsRequest.add_member(:start_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "startTime"))
364
395
  GetEC2RecommendationProjectedMetricsRequest.add_member(:end_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "endTime"))
396
+ GetEC2RecommendationProjectedMetricsRequest.add_member(:recommendation_preferences, Shapes::ShapeRef.new(shape: RecommendationPreferences, location_name: "recommendationPreferences"))
365
397
  GetEC2RecommendationProjectedMetricsRequest.struct_class = Types::GetEC2RecommendationProjectedMetricsRequest
366
398
 
367
399
  GetEC2RecommendationProjectedMetricsResponse.add_member(:recommended_option_projected_metrics, Shapes::ShapeRef.new(shape: RecommendedOptionProjectedMetrics, location_name: "recommendedOptionProjectedMetrics"))
@@ -372,8 +404,19 @@ module Aws::ComputeOptimizer
372
404
  GetEnrollmentStatusResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
373
405
  GetEnrollmentStatusResponse.add_member(:status_reason, Shapes::ShapeRef.new(shape: StatusReason, location_name: "statusReason"))
374
406
  GetEnrollmentStatusResponse.add_member(:member_accounts_enrolled, Shapes::ShapeRef.new(shape: MemberAccountsEnrolled, location_name: "memberAccountsEnrolled"))
407
+ GetEnrollmentStatusResponse.add_member(:last_updated_timestamp, Shapes::ShapeRef.new(shape: LastUpdatedTimestamp, location_name: "lastUpdatedTimestamp"))
408
+ GetEnrollmentStatusResponse.add_member(:number_of_member_accounts_opted_in, Shapes::ShapeRef.new(shape: NumberOfMemberAccountsOptedIn, location_name: "numberOfMemberAccountsOptedIn"))
375
409
  GetEnrollmentStatusResponse.struct_class = Types::GetEnrollmentStatusResponse
376
410
 
411
+ GetEnrollmentStatusesForOrganizationRequest.add_member(:filters, Shapes::ShapeRef.new(shape: EnrollmentFilters, location_name: "filters"))
412
+ GetEnrollmentStatusesForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
413
+ GetEnrollmentStatusesForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
414
+ GetEnrollmentStatusesForOrganizationRequest.struct_class = Types::GetEnrollmentStatusesForOrganizationRequest
415
+
416
+ GetEnrollmentStatusesForOrganizationResponse.add_member(:account_enrollment_statuses, Shapes::ShapeRef.new(shape: AccountEnrollmentStatuses, location_name: "accountEnrollmentStatuses"))
417
+ GetEnrollmentStatusesForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
418
+ GetEnrollmentStatusesForOrganizationResponse.struct_class = Types::GetEnrollmentStatusesForOrganizationResponse
419
+
377
420
  GetLambdaFunctionRecommendationsRequest.add_member(:function_arns, Shapes::ShapeRef.new(shape: FunctionArns, location_name: "functionArns"))
378
421
  GetLambdaFunctionRecommendationsRequest.add_member(:account_ids, Shapes::ShapeRef.new(shape: AccountIds, location_name: "accountIds"))
379
422
  GetLambdaFunctionRecommendationsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: LambdaFunctionRecommendationFilters, location_name: "filters"))
@@ -526,6 +569,9 @@ module Aws::ComputeOptimizer
526
569
 
527
570
  RecommendationOptions.member = Shapes::ShapeRef.new(shape: InstanceRecommendationOption)
528
571
 
572
+ RecommendationPreferences.add_member(:cpu_vendor_architectures, Shapes::ShapeRef.new(shape: CpuVendorArchitectures, location_name: "cpuVendorArchitectures"))
573
+ RecommendationPreferences.struct_class = Types::RecommendationPreferences
574
+
529
575
  RecommendationSource.add_member(:recommendation_source_arn, Shapes::ShapeRef.new(shape: RecommendationSourceArn, location_name: "recommendationSourceArn"))
530
576
  RecommendationSource.add_member(:recommendation_source_type, Shapes::ShapeRef.new(shape: RecommendationSourceType, location_name: "recommendationSourceType"))
531
577
  RecommendationSource.struct_class = Types::RecommendationSource
@@ -794,6 +840,20 @@ module Aws::ComputeOptimizer
794
840
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
795
841
  end)
796
842
 
843
+ api.add_operation(:get_enrollment_statuses_for_organization, Seahorse::Model::Operation.new.tap do |o|
844
+ o.name = "GetEnrollmentStatusesForOrganization"
845
+ o.http_method = "POST"
846
+ o.http_request_uri = "/"
847
+ o.input = Shapes::ShapeRef.new(shape: GetEnrollmentStatusesForOrganizationRequest)
848
+ o.output = Shapes::ShapeRef.new(shape: GetEnrollmentStatusesForOrganizationResponse)
849
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
850
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
851
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
852
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
853
+ o.errors << Shapes::ShapeRef.new(shape: MissingAuthenticationToken)
854
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
855
+ end)
856
+
797
857
  api.add_operation(:get_lambda_function_recommendations, Seahorse::Model::Operation.new.tap do |o|
798
858
  o.name = "GetLambdaFunctionRecommendations"
799
859
  o.http_method = "POST"