aws-sdk-costoptimizationhub 1.19.0 → 1.21.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-costoptimizationhub/client.rb +35 -4
- data/lib/aws-sdk-costoptimizationhub/client_api.rb +12 -0
- data/lib/aws-sdk-costoptimizationhub/endpoint_provider.rb +13 -17
- data/lib/aws-sdk-costoptimizationhub/types.rb +40 -6
- data/lib/aws-sdk-costoptimizationhub.rb +1 -1
- data/sig/client.rbs +5 -3
- data/sig/resource.rbs +2 -0
- data/sig/types.rbs +10 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f53c4e57daa254e590d53108c5d5605c577cf3bb03ab130f10313ded4fb677ed
|
4
|
+
data.tar.gz: 43be62fffa708b2a5c7e37cb39ba6d1836479d63cb19a340e997039d53ba8af1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 840c526e8d648465a260a6a84029d17ca2ef6fe0fe60bb99b5180889afc8156242f4e4afd77b44541dc4b67b2b65ca3be8c34d871eacfaa04dd1cf7bcd416ad8
|
7
|
+
data.tar.gz: c9ecc5d626bf3d82450e4231a8e5090ef71e534c17073c62acbc1fdf740b7cf47ec45c31d956e8a278e2f554f6a193cd3e925fdcd594808ca74b5a930e6a9d52
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.21.0 (2025-02-06)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release enables AWS Cost Optimization Hub to show cost optimization recommendations for Amazon Auto Scaling Groups, including those with single and mixed instance types.
|
8
|
+
|
9
|
+
1.20.0 (2025-01-15)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.19.0 (2024-11-20)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.21.0
|
@@ -257,11 +257,34 @@ module Aws::CostOptimizationHub
|
|
257
257
|
# Used when loading credentials from the shared credentials file
|
258
258
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
259
259
|
#
|
260
|
+
# @option options [String] :request_checksum_calculation ("when_supported")
|
261
|
+
# Determines when a checksum will be calculated for request payloads. Values are:
|
262
|
+
#
|
263
|
+
# * `when_supported` - (default) When set, a checksum will be
|
264
|
+
# calculated for all request payloads of operations modeled with the
|
265
|
+
# `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
|
266
|
+
# `requestAlgorithmMember` is modeled.
|
267
|
+
# * `when_required` - When set, a checksum will only be calculated for
|
268
|
+
# request payloads of operations modeled with the `httpChecksum` trait where
|
269
|
+
# `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
|
270
|
+
# is modeled and supplied.
|
271
|
+
#
|
260
272
|
# @option options [Integer] :request_min_compression_size_bytes (10240)
|
261
273
|
# The minimum size in bytes that triggers compression for request
|
262
274
|
# bodies. The value must be non-negative integer value between 0
|
263
275
|
# and 10485780 bytes inclusive.
|
264
276
|
#
|
277
|
+
# @option options [String] :response_checksum_validation ("when_supported")
|
278
|
+
# Determines when checksum validation will be performed on response payloads. Values are:
|
279
|
+
#
|
280
|
+
# * `when_supported` - (default) When set, checksum validation is performed on all
|
281
|
+
# response payloads of operations modeled with the `httpChecksum` trait where
|
282
|
+
# `responseAlgorithms` is modeled, except when no modeled checksum algorithms
|
283
|
+
# are supported.
|
284
|
+
# * `when_required` - When set, checksum validation is not performed on
|
285
|
+
# response payloads of operations unless the checksum algorithm is supported and
|
286
|
+
# the `requestValidationModeMember` member is set to `ENABLED`.
|
287
|
+
#
|
265
288
|
# @option options [Proc] :retry_backoff
|
266
289
|
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
267
290
|
# This option is only used in the `legacy` retry mode.
|
@@ -541,7 +564,7 @@ module Aws::CostOptimizationHub
|
|
541
564
|
# resp.estimated_monthly_cost #=> Float
|
542
565
|
# resp.implementation_effort #=> String, one of "VeryLow", "Low", "Medium", "High", "VeryHigh"
|
543
566
|
# resp.restart_needed #=> Boolean
|
544
|
-
# resp.action_type #=> String, one of "Rightsize", "Stop", "Upgrade", "PurchaseSavingsPlans", "PurchaseReservedInstances", "MigrateToGraviton", "Delete"
|
567
|
+
# resp.action_type #=> String, one of "Rightsize", "Stop", "Upgrade", "PurchaseSavingsPlans", "PurchaseReservedInstances", "MigrateToGraviton", "Delete", "ScaleIn"
|
545
568
|
# resp.rollback_possible #=> Boolean
|
546
569
|
# resp.current_resource_details.lambda_function.configuration.compute.v_cpu #=> Float
|
547
570
|
# resp.current_resource_details.lambda_function.configuration.compute.memory_size_in_mb #=> Integer
|
@@ -606,6 +629,10 @@ module Aws::CostOptimizationHub
|
|
606
629
|
# resp.current_resource_details.ebs_volume.cost_calculation.pricing.estimated_discounts.other_discount #=> Float
|
607
630
|
# resp.current_resource_details.ebs_volume.cost_calculation.pricing.estimated_cost_after_discounts #=> Float
|
608
631
|
# resp.current_resource_details.ec2_auto_scaling_group.configuration.instance.type #=> String
|
632
|
+
# resp.current_resource_details.ec2_auto_scaling_group.configuration.mixed_instances #=> Array
|
633
|
+
# resp.current_resource_details.ec2_auto_scaling_group.configuration.mixed_instances[0].type #=> String
|
634
|
+
# resp.current_resource_details.ec2_auto_scaling_group.configuration.type #=> String, one of "SingleInstanceType", "MixedInstanceTypes"
|
635
|
+
# resp.current_resource_details.ec2_auto_scaling_group.configuration.allocation_strategy #=> String, one of "Prioritized", "LowestPrice"
|
609
636
|
# resp.current_resource_details.ec2_auto_scaling_group.cost_calculation.usages #=> Array
|
610
637
|
# resp.current_resource_details.ec2_auto_scaling_group.cost_calculation.usages[0].usage_type #=> String
|
611
638
|
# resp.current_resource_details.ec2_auto_scaling_group.cost_calculation.usages[0].usage_amount #=> Float
|
@@ -827,6 +854,10 @@ module Aws::CostOptimizationHub
|
|
827
854
|
# resp.recommended_resource_details.ebs_volume.cost_calculation.pricing.estimated_discounts.other_discount #=> Float
|
828
855
|
# resp.recommended_resource_details.ebs_volume.cost_calculation.pricing.estimated_cost_after_discounts #=> Float
|
829
856
|
# resp.recommended_resource_details.ec2_auto_scaling_group.configuration.instance.type #=> String
|
857
|
+
# resp.recommended_resource_details.ec2_auto_scaling_group.configuration.mixed_instances #=> Array
|
858
|
+
# resp.recommended_resource_details.ec2_auto_scaling_group.configuration.mixed_instances[0].type #=> String
|
859
|
+
# resp.recommended_resource_details.ec2_auto_scaling_group.configuration.type #=> String, one of "SingleInstanceType", "MixedInstanceTypes"
|
860
|
+
# resp.recommended_resource_details.ec2_auto_scaling_group.configuration.allocation_strategy #=> String, one of "Prioritized", "LowestPrice"
|
830
861
|
# resp.recommended_resource_details.ec2_auto_scaling_group.cost_calculation.usages #=> Array
|
831
862
|
# resp.recommended_resource_details.ec2_auto_scaling_group.cost_calculation.usages[0].usage_type #=> String
|
832
863
|
# resp.recommended_resource_details.ec2_auto_scaling_group.cost_calculation.usages[0].usage_amount #=> Float
|
@@ -1097,7 +1128,7 @@ module Aws::CostOptimizationHub
|
|
1097
1128
|
# account_ids: ["AccountId"],
|
1098
1129
|
# regions: ["String"],
|
1099
1130
|
# resource_types: ["Ec2Instance"], # accepts Ec2Instance, LambdaFunction, EbsVolume, EcsService, Ec2AutoScalingGroup, Ec2InstanceSavingsPlans, ComputeSavingsPlans, SageMakerSavingsPlans, Ec2ReservedInstances, RdsReservedInstances, OpenSearchReservedInstances, RedshiftReservedInstances, ElastiCacheReservedInstances, RdsDbInstanceStorage, RdsDbInstance
|
1100
|
-
# action_types: ["Rightsize"], # accepts Rightsize, Stop, Upgrade, PurchaseSavingsPlans, PurchaseReservedInstances, MigrateToGraviton, Delete
|
1131
|
+
# action_types: ["Rightsize"], # accepts Rightsize, Stop, Upgrade, PurchaseSavingsPlans, PurchaseReservedInstances, MigrateToGraviton, Delete, ScaleIn
|
1101
1132
|
# tags: [
|
1102
1133
|
# {
|
1103
1134
|
# key: "String",
|
@@ -1171,7 +1202,7 @@ module Aws::CostOptimizationHub
|
|
1171
1202
|
# account_ids: ["AccountId"],
|
1172
1203
|
# regions: ["String"],
|
1173
1204
|
# resource_types: ["Ec2Instance"], # accepts Ec2Instance, LambdaFunction, EbsVolume, EcsService, Ec2AutoScalingGroup, Ec2InstanceSavingsPlans, ComputeSavingsPlans, SageMakerSavingsPlans, Ec2ReservedInstances, RdsReservedInstances, OpenSearchReservedInstances, RedshiftReservedInstances, ElastiCacheReservedInstances, RdsDbInstanceStorage, RdsDbInstance
|
1174
|
-
# action_types: ["Rightsize"], # accepts Rightsize, Stop, Upgrade, PurchaseSavingsPlans, PurchaseReservedInstances, MigrateToGraviton, Delete
|
1205
|
+
# action_types: ["Rightsize"], # accepts Rightsize, Stop, Upgrade, PurchaseSavingsPlans, PurchaseReservedInstances, MigrateToGraviton, Delete, ScaleIn
|
1175
1206
|
# tags: [
|
1176
1207
|
# {
|
1177
1208
|
# key: "String",
|
@@ -1325,7 +1356,7 @@ module Aws::CostOptimizationHub
|
|
1325
1356
|
tracer: tracer
|
1326
1357
|
)
|
1327
1358
|
context[:gem_name] = 'aws-sdk-costoptimizationhub'
|
1328
|
-
context[:gem_version] = '1.
|
1359
|
+
context[:gem_version] = '1.21.0'
|
1329
1360
|
Seahorse::Client::Request.new(handlers, context)
|
1330
1361
|
end
|
1331
1362
|
|
@@ -21,6 +21,7 @@ module Aws::CostOptimizationHub
|
|
21
21
|
AccountIdList = Shapes::ListShape.new(name: 'AccountIdList')
|
22
22
|
ActionType = Shapes::StringShape.new(name: 'ActionType')
|
23
23
|
ActionTypeList = Shapes::ListShape.new(name: 'ActionTypeList')
|
24
|
+
AllocationStrategy = Shapes::StringShape.new(name: 'AllocationStrategy')
|
24
25
|
BlockStoragePerformanceConfiguration = Shapes::StructureShape.new(name: 'BlockStoragePerformanceConfiguration')
|
25
26
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
26
27
|
ComputeConfiguration = Shapes::StructureShape.new(name: 'ComputeConfiguration')
|
@@ -33,6 +34,7 @@ module Aws::CostOptimizationHub
|
|
33
34
|
EbsVolumeConfiguration = Shapes::StructureShape.new(name: 'EbsVolumeConfiguration')
|
34
35
|
Ec2AutoScalingGroup = Shapes::StructureShape.new(name: 'Ec2AutoScalingGroup')
|
35
36
|
Ec2AutoScalingGroupConfiguration = Shapes::StructureShape.new(name: 'Ec2AutoScalingGroupConfiguration')
|
37
|
+
Ec2AutoScalingGroupType = Shapes::StringShape.new(name: 'Ec2AutoScalingGroupType')
|
36
38
|
Ec2Instance = Shapes::StructureShape.new(name: 'Ec2Instance')
|
37
39
|
Ec2InstanceConfiguration = Shapes::StructureShape.new(name: 'Ec2InstanceConfiguration')
|
38
40
|
Ec2InstanceSavingsPlans = Shapes::StructureShape.new(name: 'Ec2InstanceSavingsPlans')
|
@@ -67,6 +69,8 @@ module Aws::CostOptimizationHub
|
|
67
69
|
ListRecommendationsResponse = Shapes::StructureShape.new(name: 'ListRecommendationsResponse')
|
68
70
|
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
69
71
|
MemberAccountDiscountVisibility = Shapes::StringShape.new(name: 'MemberAccountDiscountVisibility')
|
72
|
+
MixedInstanceConfiguration = Shapes::StructureShape.new(name: 'MixedInstanceConfiguration')
|
73
|
+
MixedInstanceConfigurationList = Shapes::ListShape.new(name: 'MixedInstanceConfigurationList')
|
70
74
|
OpenSearchReservedInstances = Shapes::StructureShape.new(name: 'OpenSearchReservedInstances')
|
71
75
|
OpenSearchReservedInstancesConfiguration = Shapes::StructureShape.new(name: 'OpenSearchReservedInstancesConfiguration')
|
72
76
|
Order = Shapes::StringShape.new(name: 'Order')
|
@@ -174,6 +178,9 @@ module Aws::CostOptimizationHub
|
|
174
178
|
Ec2AutoScalingGroup.struct_class = Types::Ec2AutoScalingGroup
|
175
179
|
|
176
180
|
Ec2AutoScalingGroupConfiguration.add_member(:instance, Shapes::ShapeRef.new(shape: InstanceConfiguration, location_name: "instance"))
|
181
|
+
Ec2AutoScalingGroupConfiguration.add_member(:mixed_instances, Shapes::ShapeRef.new(shape: MixedInstanceConfigurationList, location_name: "mixedInstances"))
|
182
|
+
Ec2AutoScalingGroupConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: Ec2AutoScalingGroupType, location_name: "type"))
|
183
|
+
Ec2AutoScalingGroupConfiguration.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: AllocationStrategy, location_name: "allocationStrategy"))
|
177
184
|
Ec2AutoScalingGroupConfiguration.struct_class = Types::Ec2AutoScalingGroupConfiguration
|
178
185
|
|
179
186
|
Ec2Instance.add_member(:configuration, Shapes::ShapeRef.new(shape: Ec2InstanceConfiguration, location_name: "configuration"))
|
@@ -347,6 +354,11 @@ module Aws::CostOptimizationHub
|
|
347
354
|
ListRecommendationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
348
355
|
ListRecommendationsResponse.struct_class = Types::ListRecommendationsResponse
|
349
356
|
|
357
|
+
MixedInstanceConfiguration.add_member(:type, Shapes::ShapeRef.new(shape: String, location_name: "type"))
|
358
|
+
MixedInstanceConfiguration.struct_class = Types::MixedInstanceConfiguration
|
359
|
+
|
360
|
+
MixedInstanceConfigurationList.member = Shapes::ShapeRef.new(shape: MixedInstanceConfiguration)
|
361
|
+
|
350
362
|
OpenSearchReservedInstances.add_member(:configuration, Shapes::ShapeRef.new(shape: OpenSearchReservedInstancesConfiguration, location_name: "configuration"))
|
351
363
|
OpenSearchReservedInstances.add_member(:cost_calculation, Shapes::ShapeRef.new(shape: ReservedInstancesCostCalculation, location_name: "costCalculation"))
|
352
364
|
OpenSearchReservedInstances.struct_class = Types::OpenSearchReservedInstances
|
@@ -10,40 +10,36 @@
|
|
10
10
|
module Aws::CostOptimizationHub
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
|
14
|
-
|
15
|
-
use_fips = parameters.use_fips
|
16
|
-
endpoint = parameters.endpoint
|
17
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
19
15
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
20
16
|
end
|
21
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
22
18
|
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
23
19
|
end
|
24
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
25
21
|
end
|
26
|
-
if Aws::Endpoints::Matchers.set?(region)
|
27
|
-
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
29
25
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
31
27
|
end
|
32
28
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
29
|
end
|
34
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
35
31
|
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
33
|
end
|
38
34
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
39
35
|
end
|
40
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
41
37
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
43
39
|
end
|
44
40
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
41
|
end
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://cost-optimization-hub.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
43
|
end
|
48
44
|
end
|
49
45
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
@@ -238,16 +238,35 @@ module Aws::CostOptimizationHub
|
|
238
238
|
include Aws::Structure
|
239
239
|
end
|
240
240
|
|
241
|
-
# The EC2
|
241
|
+
# The EC2 Auto Scaling group configuration used for recommendations.
|
242
242
|
#
|
243
243
|
# @!attribute [rw] instance
|
244
|
-
# Details about the instance
|
244
|
+
# Details about the instance for the EC2 Auto Scaling group with a
|
245
|
+
# single instance type.
|
245
246
|
# @return [Types::InstanceConfiguration]
|
246
247
|
#
|
248
|
+
# @!attribute [rw] mixed_instances
|
249
|
+
# A list of instance types for an EC2 Auto Scaling group with mixed
|
250
|
+
# instance types.
|
251
|
+
# @return [Array<Types::MixedInstanceConfiguration>]
|
252
|
+
#
|
253
|
+
# @!attribute [rw] type
|
254
|
+
# The type of EC2 Auto Scaling group, showing whether it consists of a
|
255
|
+
# single instance type or mixed instance types.
|
256
|
+
# @return [String]
|
257
|
+
#
|
258
|
+
# @!attribute [rw] allocation_strategy
|
259
|
+
# The strategy used for allocating instances, based on a predefined
|
260
|
+
# priority order or based on the lowest available price.
|
261
|
+
# @return [String]
|
262
|
+
#
|
247
263
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/Ec2AutoScalingGroupConfiguration AWS API Documentation
|
248
264
|
#
|
249
265
|
class Ec2AutoScalingGroupConfiguration < Struct.new(
|
250
|
-
:instance
|
266
|
+
:instance,
|
267
|
+
:mixed_instances,
|
268
|
+
:type,
|
269
|
+
:allocation_strategy)
|
251
270
|
SENSITIVE = []
|
252
271
|
include Aws::Structure
|
253
272
|
end
|
@@ -848,10 +867,10 @@ module Aws::CostOptimizationHub
|
|
848
867
|
include Aws::Structure
|
849
868
|
end
|
850
869
|
|
851
|
-
# The
|
870
|
+
# The instance configuration used for recommendations.
|
852
871
|
#
|
853
872
|
# @!attribute [rw] type
|
854
|
-
#
|
873
|
+
# The instance type of the configuration.
|
855
874
|
# @return [String]
|
856
875
|
#
|
857
876
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/InstanceConfiguration AWS API Documentation
|
@@ -1085,6 +1104,21 @@ module Aws::CostOptimizationHub
|
|
1085
1104
|
include Aws::Structure
|
1086
1105
|
end
|
1087
1106
|
|
1107
|
+
# The configuration for the EC2 Auto Scaling group with mixed instance
|
1108
|
+
# types.
|
1109
|
+
#
|
1110
|
+
# @!attribute [rw] type
|
1111
|
+
# The instance type of the configuration.
|
1112
|
+
# @return [String]
|
1113
|
+
#
|
1114
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cost-optimization-hub-2022-07-26/MixedInstanceConfiguration AWS API Documentation
|
1115
|
+
#
|
1116
|
+
class MixedInstanceConfiguration < Struct.new(
|
1117
|
+
:type)
|
1118
|
+
SENSITIVE = []
|
1119
|
+
include Aws::Structure
|
1120
|
+
end
|
1121
|
+
|
1088
1122
|
# The OpenSearch reserved instances recommendation details.
|
1089
1123
|
#
|
1090
1124
|
# @!attribute [rw] configuration
|
@@ -1759,7 +1793,7 @@ module Aws::CostOptimizationHub
|
|
1759
1793
|
# @return [Types::ComputeSavingsPlans]
|
1760
1794
|
#
|
1761
1795
|
# @!attribute [rw] sage_maker_savings_plans
|
1762
|
-
# The SageMaker Savings Plans recommendation details.
|
1796
|
+
# The SageMaker AI Savings Plans recommendation details.
|
1763
1797
|
# @return [Types::SageMakerSavingsPlans]
|
1764
1798
|
#
|
1765
1799
|
# @!attribute [rw] rds_db_instance
|
data/sig/client.rbs
CHANGED
@@ -39,7 +39,9 @@ module Aws
|
|
39
39
|
?logger: untyped,
|
40
40
|
?max_attempts: Integer,
|
41
41
|
?profile: String,
|
42
|
+
?request_checksum_calculation: String,
|
42
43
|
?request_min_compression_size_bytes: Integer,
|
44
|
+
?response_checksum_validation: String,
|
43
45
|
?retry_backoff: Proc,
|
44
46
|
?retry_base_delay: Float,
|
45
47
|
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
@@ -106,7 +108,7 @@ module Aws
|
|
106
108
|
def estimated_monthly_cost: () -> ::Float
|
107
109
|
def implementation_effort: () -> ("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")
|
108
110
|
def restart_needed: () -> bool
|
109
|
-
def action_type: () -> ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete")
|
111
|
+
def action_type: () -> ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete" | "ScaleIn")
|
110
112
|
def rollback_possible: () -> bool
|
111
113
|
def current_resource_details: () -> Types::ResourceDetails
|
112
114
|
def recommended_resource_details: () -> Types::ResourceDetails
|
@@ -151,7 +153,7 @@ module Aws
|
|
151
153
|
account_ids: Array[::String]?,
|
152
154
|
regions: Array[::String]?,
|
153
155
|
resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances" | "RdsDbInstanceStorage" | "RdsDbInstance")]?,
|
154
|
-
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete")]?,
|
156
|
+
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete" | "ScaleIn")]?,
|
155
157
|
tags: Array[
|
156
158
|
{
|
157
159
|
key: ::String?,
|
@@ -183,7 +185,7 @@ module Aws
|
|
183
185
|
account_ids: Array[::String]?,
|
184
186
|
regions: Array[::String]?,
|
185
187
|
resource_types: Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances" | "RdsDbInstanceStorage" | "RdsDbInstance")]?,
|
186
|
-
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete")]?,
|
188
|
+
action_types: Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete" | "ScaleIn")]?,
|
187
189
|
tags: Array[
|
188
190
|
{
|
189
191
|
key: ::String?,
|
data/sig/resource.rbs
CHANGED
@@ -39,7 +39,9 @@ module Aws
|
|
39
39
|
?logger: untyped,
|
40
40
|
?max_attempts: Integer,
|
41
41
|
?profile: String,
|
42
|
+
?request_checksum_calculation: String,
|
42
43
|
?request_min_compression_size_bytes: Integer,
|
44
|
+
?response_checksum_validation: String,
|
43
45
|
?retry_backoff: Proc,
|
44
46
|
?retry_base_delay: Float,
|
45
47
|
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
data/sig/types.rbs
CHANGED
@@ -75,6 +75,9 @@ module Aws::CostOptimizationHub
|
|
75
75
|
|
76
76
|
class Ec2AutoScalingGroupConfiguration
|
77
77
|
attr_accessor instance: Types::InstanceConfiguration
|
78
|
+
attr_accessor mixed_instances: ::Array[Types::MixedInstanceConfiguration]
|
79
|
+
attr_accessor type: ("SingleInstanceType" | "MixedInstanceTypes")
|
80
|
+
attr_accessor allocation_strategy: ("Prioritized" | "LowestPrice")
|
78
81
|
SENSITIVE: []
|
79
82
|
end
|
80
83
|
|
@@ -179,7 +182,7 @@ module Aws::CostOptimizationHub
|
|
179
182
|
attr_accessor account_ids: ::Array[::String]
|
180
183
|
attr_accessor regions: ::Array[::String]
|
181
184
|
attr_accessor resource_types: ::Array[("Ec2Instance" | "LambdaFunction" | "EbsVolume" | "EcsService" | "Ec2AutoScalingGroup" | "Ec2InstanceSavingsPlans" | "ComputeSavingsPlans" | "SageMakerSavingsPlans" | "Ec2ReservedInstances" | "RdsReservedInstances" | "OpenSearchReservedInstances" | "RedshiftReservedInstances" | "ElastiCacheReservedInstances" | "RdsDbInstanceStorage" | "RdsDbInstance")]
|
182
|
-
attr_accessor action_types: ::Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete")]
|
185
|
+
attr_accessor action_types: ::Array[("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete" | "ScaleIn")]
|
183
186
|
attr_accessor tags: ::Array[Types::Tag]
|
184
187
|
attr_accessor resource_ids: ::Array[::String]
|
185
188
|
attr_accessor resource_arns: ::Array[::String]
|
@@ -220,7 +223,7 @@ module Aws::CostOptimizationHub
|
|
220
223
|
attr_accessor estimated_monthly_cost: ::Float
|
221
224
|
attr_accessor implementation_effort: ("VeryLow" | "Low" | "Medium" | "High" | "VeryHigh")
|
222
225
|
attr_accessor restart_needed: bool
|
223
|
-
attr_accessor action_type: ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete")
|
226
|
+
attr_accessor action_type: ("Rightsize" | "Stop" | "Upgrade" | "PurchaseSavingsPlans" | "PurchaseReservedInstances" | "MigrateToGraviton" | "Delete" | "ScaleIn")
|
224
227
|
attr_accessor rollback_possible: bool
|
225
228
|
attr_accessor current_resource_details: Types::ResourceDetails
|
226
229
|
attr_accessor recommended_resource_details: Types::ResourceDetails
|
@@ -298,6 +301,11 @@ module Aws::CostOptimizationHub
|
|
298
301
|
SENSITIVE: []
|
299
302
|
end
|
300
303
|
|
304
|
+
class MixedInstanceConfiguration
|
305
|
+
attr_accessor type: ::String
|
306
|
+
SENSITIVE: []
|
307
|
+
end
|
308
|
+
|
301
309
|
class OpenSearchReservedInstances
|
302
310
|
attr_accessor configuration: Types::OpenSearchReservedInstancesConfiguration
|
303
311
|
attr_accessor cost_calculation: Types::ReservedInstancesCostCalculation
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-costoptimizationhub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.216.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.216.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|