aws-sdk-ecs 1.221.0 → 1.222.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +22 -6
- data/lib/aws-sdk-ecs/client_api.rb +8 -0
- data/lib/aws-sdk-ecs/types.rb +64 -4
- data/lib/aws-sdk-ecs.rb +1 -1
- data/sig/client.rbs +10 -2
- data/sig/types.rbs +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a80793e37fe009b8f213059eec4e91de9235402b7c7319f0e0e8f317e3da961
|
|
4
|
+
data.tar.gz: bbf6915ee3bb5fac2a87b8ab81d6b5c760887c12afbee72728e54d1666e0ed57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0b09e3f708f04c85a5548c0fe6b5fa7b348263b25cfc49bd34cd16b212c10344e36c1d4a9db04c8769a4363a2e16e1c511f57bd0ca13301978b26406c6de331a
|
|
7
|
+
data.tar.gz: e9c57c9ed6570ddfeaef3a642b17d003785dc5fb17746d1b42ccd26d0f92603135fed646fbdb4e01e570a89e3c3b26438dd3e2d326c8910f98576409701a7cc5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.222.0 (2026-02-26)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Adding support for Capacity Reservations for ECS Managed Instances by introducing a new "capacityOptionType" value of "RESERVED" and new field "capacityReservations" for CreateCapacityProvider and UpdateCapacityProvider APIs.
|
|
8
|
+
|
|
4
9
|
1.221.0 (2026-02-20)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.222.0
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
|
@@ -612,7 +612,7 @@ module Aws::ECS
|
|
|
612
612
|
# storage_size_gi_b: 1,
|
|
613
613
|
# },
|
|
614
614
|
# monitoring: "BASIC", # accepts BASIC, DETAILED
|
|
615
|
-
# capacity_option_type: "ON_DEMAND", # accepts ON_DEMAND, SPOT
|
|
615
|
+
# capacity_option_type: "ON_DEMAND", # accepts ON_DEMAND, SPOT, RESERVED
|
|
616
616
|
# instance_requirements: {
|
|
617
617
|
# v_cpu_count: { # required
|
|
618
618
|
# min: 1, # required
|
|
@@ -667,6 +667,10 @@ module Aws::ECS
|
|
|
667
667
|
# max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
|
|
668
668
|
# },
|
|
669
669
|
# fips_enabled: false,
|
|
670
|
+
# capacity_reservations: {
|
|
671
|
+
# reservation_group_arn: "String",
|
|
672
|
+
# reservation_preference: "RESERVATIONS_ONLY", # accepts RESERVATIONS_ONLY, RESERVATIONS_FIRST, RESERVATIONS_EXCLUDED
|
|
673
|
+
# },
|
|
670
674
|
# },
|
|
671
675
|
# propagate_tags: "CAPACITY_PROVIDER", # accepts CAPACITY_PROVIDER, NONE
|
|
672
676
|
# infrastructure_optimization: {
|
|
@@ -703,7 +707,7 @@ module Aws::ECS
|
|
|
703
707
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.network_configuration.security_groups[0] #=> String
|
|
704
708
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.storage_configuration.storage_size_gi_b #=> Integer
|
|
705
709
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.monitoring #=> String, one of "BASIC", "DETAILED"
|
|
706
|
-
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT"
|
|
710
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT", "RESERVED"
|
|
707
711
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.min #=> Integer
|
|
708
712
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.max #=> Integer
|
|
709
713
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.memory_mi_b.min #=> Integer
|
|
@@ -746,6 +750,8 @@ module Aws::ECS
|
|
|
746
750
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.allowed_instance_types[0] #=> String
|
|
747
751
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
|
|
748
752
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.fips_enabled #=> Boolean
|
|
753
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_reservations.reservation_group_arn #=> String
|
|
754
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_reservations.reservation_preference #=> String, one of "RESERVATIONS_ONLY", "RESERVATIONS_FIRST", "RESERVATIONS_EXCLUDED"
|
|
749
755
|
# resp.capacity_provider.managed_instances_provider.propagate_tags #=> String, one of "CAPACITY_PROVIDER", "NONE"
|
|
750
756
|
# resp.capacity_provider.managed_instances_provider.infrastructure_optimization.scale_in_after #=> Integer
|
|
751
757
|
# resp.capacity_provider.update_status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
|
@@ -2982,7 +2988,7 @@ module Aws::ECS
|
|
|
2982
2988
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.network_configuration.security_groups[0] #=> String
|
|
2983
2989
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.storage_configuration.storage_size_gi_b #=> Integer
|
|
2984
2990
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.monitoring #=> String, one of "BASIC", "DETAILED"
|
|
2985
|
-
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT"
|
|
2991
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT", "RESERVED"
|
|
2986
2992
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.min #=> Integer
|
|
2987
2993
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.max #=> Integer
|
|
2988
2994
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.memory_mi_b.min #=> Integer
|
|
@@ -3025,6 +3031,8 @@ module Aws::ECS
|
|
|
3025
3031
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.allowed_instance_types[0] #=> String
|
|
3026
3032
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
|
|
3027
3033
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.fips_enabled #=> Boolean
|
|
3034
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_reservations.reservation_group_arn #=> String
|
|
3035
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_reservations.reservation_preference #=> String, one of "RESERVATIONS_ONLY", "RESERVATIONS_FIRST", "RESERVATIONS_EXCLUDED"
|
|
3028
3036
|
# resp.capacity_provider.managed_instances_provider.propagate_tags #=> String, one of "CAPACITY_PROVIDER", "NONE"
|
|
3029
3037
|
# resp.capacity_provider.managed_instances_provider.infrastructure_optimization.scale_in_after #=> Integer
|
|
3030
3038
|
# resp.capacity_provider.update_status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
|
@@ -4518,7 +4526,7 @@ module Aws::ECS
|
|
|
4518
4526
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.network_configuration.security_groups[0] #=> String
|
|
4519
4527
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.storage_configuration.storage_size_gi_b #=> Integer
|
|
4520
4528
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.monitoring #=> String, one of "BASIC", "DETAILED"
|
|
4521
|
-
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT"
|
|
4529
|
+
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT", "RESERVED"
|
|
4522
4530
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.min #=> Integer
|
|
4523
4531
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.max #=> Integer
|
|
4524
4532
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.instance_requirements.memory_mi_b.min #=> Integer
|
|
@@ -4561,6 +4569,8 @@ module Aws::ECS
|
|
|
4561
4569
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.instance_requirements.allowed_instance_types[0] #=> String
|
|
4562
4570
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
|
|
4563
4571
|
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.fips_enabled #=> Boolean
|
|
4572
|
+
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.capacity_reservations.reservation_group_arn #=> String
|
|
4573
|
+
# resp.capacity_providers[0].managed_instances_provider.instance_launch_template.capacity_reservations.reservation_preference #=> String, one of "RESERVATIONS_ONLY", "RESERVATIONS_FIRST", "RESERVATIONS_EXCLUDED"
|
|
4564
4574
|
# resp.capacity_providers[0].managed_instances_provider.propagate_tags #=> String, one of "CAPACITY_PROVIDER", "NONE"
|
|
4565
4575
|
# resp.capacity_providers[0].managed_instances_provider.infrastructure_optimization.scale_in_after #=> Integer
|
|
4566
4576
|
# resp.capacity_providers[0].update_status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
|
@@ -11517,6 +11527,10 @@ module Aws::ECS
|
|
|
11517
11527
|
# allowed_instance_types: ["AllowedInstanceType"],
|
|
11518
11528
|
# max_spot_price_as_percentage_of_optimal_on_demand_price: 1,
|
|
11519
11529
|
# },
|
|
11530
|
+
# capacity_reservations: {
|
|
11531
|
+
# reservation_group_arn: "String",
|
|
11532
|
+
# reservation_preference: "RESERVATIONS_ONLY", # accepts RESERVATIONS_ONLY, RESERVATIONS_FIRST, RESERVATIONS_EXCLUDED
|
|
11533
|
+
# },
|
|
11520
11534
|
# },
|
|
11521
11535
|
# propagate_tags: "CAPACITY_PROVIDER", # accepts CAPACITY_PROVIDER, NONE
|
|
11522
11536
|
# infrastructure_optimization: {
|
|
@@ -11547,7 +11561,7 @@ module Aws::ECS
|
|
|
11547
11561
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.network_configuration.security_groups[0] #=> String
|
|
11548
11562
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.storage_configuration.storage_size_gi_b #=> Integer
|
|
11549
11563
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.monitoring #=> String, one of "BASIC", "DETAILED"
|
|
11550
|
-
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT"
|
|
11564
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_option_type #=> String, one of "ON_DEMAND", "SPOT", "RESERVED"
|
|
11551
11565
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.min #=> Integer
|
|
11552
11566
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.v_cpu_count.max #=> Integer
|
|
11553
11567
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.memory_mi_b.min #=> Integer
|
|
@@ -11590,6 +11604,8 @@ module Aws::ECS
|
|
|
11590
11604
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.allowed_instance_types[0] #=> String
|
|
11591
11605
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.instance_requirements.max_spot_price_as_percentage_of_optimal_on_demand_price #=> Integer
|
|
11592
11606
|
# resp.capacity_provider.managed_instances_provider.instance_launch_template.fips_enabled #=> Boolean
|
|
11607
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_reservations.reservation_group_arn #=> String
|
|
11608
|
+
# resp.capacity_provider.managed_instances_provider.instance_launch_template.capacity_reservations.reservation_preference #=> String, one of "RESERVATIONS_ONLY", "RESERVATIONS_FIRST", "RESERVATIONS_EXCLUDED"
|
|
11593
11609
|
# resp.capacity_provider.managed_instances_provider.propagate_tags #=> String, one of "CAPACITY_PROVIDER", "NONE"
|
|
11594
11610
|
# resp.capacity_provider.managed_instances_provider.infrastructure_optimization.scale_in_after #=> Integer
|
|
11595
11611
|
# resp.capacity_provider.update_status #=> String, one of "CREATE_IN_PROGRESS", "CREATE_COMPLETE", "CREATE_FAILED", "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
|
@@ -14046,7 +14062,7 @@ module Aws::ECS
|
|
|
14046
14062
|
tracer: tracer
|
|
14047
14063
|
)
|
|
14048
14064
|
context[:gem_name] = 'aws-sdk-ecs'
|
|
14049
|
-
context[:gem_version] = '1.
|
|
14065
|
+
context[:gem_version] = '1.222.0'
|
|
14050
14066
|
Seahorse::Client::Request.new(handlers, context)
|
|
14051
14067
|
end
|
|
14052
14068
|
|
|
@@ -64,6 +64,8 @@ module Aws::ECS
|
|
|
64
64
|
CapacityProviderType = Shapes::StringShape.new(name: 'CapacityProviderType')
|
|
65
65
|
CapacityProviderUpdateStatus = Shapes::StringShape.new(name: 'CapacityProviderUpdateStatus')
|
|
66
66
|
CapacityProviders = Shapes::ListShape.new(name: 'CapacityProviders')
|
|
67
|
+
CapacityReservationPreference = Shapes::StringShape.new(name: 'CapacityReservationPreference')
|
|
68
|
+
CapacityReservationRequest = Shapes::StructureShape.new(name: 'CapacityReservationRequest')
|
|
67
69
|
ClientException = Shapes::StructureShape.new(name: 'ClientException')
|
|
68
70
|
Cluster = Shapes::StructureShape.new(name: 'Cluster')
|
|
69
71
|
ClusterConfiguration = Shapes::StructureShape.new(name: 'ClusterConfiguration')
|
|
@@ -658,6 +660,10 @@ module Aws::ECS
|
|
|
658
660
|
|
|
659
661
|
CapacityProviders.member = Shapes::ShapeRef.new(shape: CapacityProvider)
|
|
660
662
|
|
|
663
|
+
CapacityReservationRequest.add_member(:reservation_group_arn, Shapes::ShapeRef.new(shape: String, location_name: "reservationGroupArn"))
|
|
664
|
+
CapacityReservationRequest.add_member(:reservation_preference, Shapes::ShapeRef.new(shape: CapacityReservationPreference, location_name: "reservationPreference"))
|
|
665
|
+
CapacityReservationRequest.struct_class = Types::CapacityReservationRequest
|
|
666
|
+
|
|
661
667
|
ClientException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
|
662
668
|
ClientException.struct_class = Types::ClientException
|
|
663
669
|
|
|
@@ -1407,6 +1413,7 @@ module Aws::ECS
|
|
|
1407
1413
|
InstanceLaunchTemplate.add_member(:capacity_option_type, Shapes::ShapeRef.new(shape: CapacityOptionType, location_name: "capacityOptionType"))
|
|
1408
1414
|
InstanceLaunchTemplate.add_member(:instance_requirements, Shapes::ShapeRef.new(shape: InstanceRequirementsRequest, location_name: "instanceRequirements"))
|
|
1409
1415
|
InstanceLaunchTemplate.add_member(:fips_enabled, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "fipsEnabled"))
|
|
1416
|
+
InstanceLaunchTemplate.add_member(:capacity_reservations, Shapes::ShapeRef.new(shape: CapacityReservationRequest, location_name: "capacityReservations"))
|
|
1410
1417
|
InstanceLaunchTemplate.struct_class = Types::InstanceLaunchTemplate
|
|
1411
1418
|
|
|
1412
1419
|
InstanceLaunchTemplateUpdate.add_member(:ec2_instance_profile_arn, Shapes::ShapeRef.new(shape: String, location_name: "ec2InstanceProfileArn"))
|
|
@@ -1414,6 +1421,7 @@ module Aws::ECS
|
|
|
1414
1421
|
InstanceLaunchTemplateUpdate.add_member(:storage_configuration, Shapes::ShapeRef.new(shape: ManagedInstancesStorageConfiguration, location_name: "storageConfiguration"))
|
|
1415
1422
|
InstanceLaunchTemplateUpdate.add_member(:monitoring, Shapes::ShapeRef.new(shape: ManagedInstancesMonitoringOptions, location_name: "monitoring"))
|
|
1416
1423
|
InstanceLaunchTemplateUpdate.add_member(:instance_requirements, Shapes::ShapeRef.new(shape: InstanceRequirementsRequest, location_name: "instanceRequirements"))
|
|
1424
|
+
InstanceLaunchTemplateUpdate.add_member(:capacity_reservations, Shapes::ShapeRef.new(shape: CapacityReservationRequest, location_name: "capacityReservations"))
|
|
1417
1425
|
InstanceLaunchTemplateUpdate.struct_class = Types::InstanceLaunchTemplateUpdate
|
|
1418
1426
|
|
|
1419
1427
|
InstanceRequirementsRequest.add_member(:v_cpu_count, Shapes::ShapeRef.new(shape: VCpuCountRangeRequest, required: true, location_name: "vCpuCount"))
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
|
@@ -672,6 +672,42 @@ module Aws::ECS
|
|
|
672
672
|
include Aws::Structure
|
|
673
673
|
end
|
|
674
674
|
|
|
675
|
+
# The Capacity Reservation configurations to be used when using the
|
|
676
|
+
# `RESERVED` capacity option type.
|
|
677
|
+
#
|
|
678
|
+
# @!attribute [rw] reservation_group_arn
|
|
679
|
+
# The ARN of the Capacity Reservation resource group in which to run
|
|
680
|
+
# the instance.
|
|
681
|
+
# @return [String]
|
|
682
|
+
#
|
|
683
|
+
# @!attribute [rw] reservation_preference
|
|
684
|
+
# The preference on when capacity reservations should be used.
|
|
685
|
+
#
|
|
686
|
+
# Valid values are:
|
|
687
|
+
#
|
|
688
|
+
# * `RESERVATIONS_ONLY` - Exclusively launch instances into capacity
|
|
689
|
+
# reservations that match the instance requirements configured for
|
|
690
|
+
# the capacity provider. If none exist, instances will fail to
|
|
691
|
+
# provision.
|
|
692
|
+
#
|
|
693
|
+
# * `RESERVATIONS_FIRST` - Prefer to launch instances into a capacity
|
|
694
|
+
# reservation if any exist that match the instance requirements
|
|
695
|
+
# configured for the capacity provider. If none exist, fall back to
|
|
696
|
+
# launching instances On-Demand.
|
|
697
|
+
#
|
|
698
|
+
# * `RESERVATIONS_EXCLUDED` - Avoid using capacity reservations and
|
|
699
|
+
# launch exclusively On-Demand.
|
|
700
|
+
# @return [String]
|
|
701
|
+
#
|
|
702
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CapacityReservationRequest AWS API Documentation
|
|
703
|
+
#
|
|
704
|
+
class CapacityReservationRequest < Struct.new(
|
|
705
|
+
:reservation_group_arn,
|
|
706
|
+
:reservation_preference)
|
|
707
|
+
SENSITIVE = []
|
|
708
|
+
include Aws::Structure
|
|
709
|
+
end
|
|
710
|
+
|
|
675
711
|
# These errors are usually caused by a client action. This client action
|
|
676
712
|
# might be using an action or resource on behalf of a user that doesn't
|
|
677
713
|
# have permissions to use the action or resource. Or, it might be
|
|
@@ -6980,8 +7016,8 @@ module Aws::ECS
|
|
|
6980
7016
|
#
|
|
6981
7017
|
# @!attribute [rw] capacity_option_type
|
|
6982
7018
|
# The capacity option type. This determines whether Amazon ECS
|
|
6983
|
-
# launches On-Demand or
|
|
6984
|
-
# capacity provider.
|
|
7019
|
+
# launches On-Demand, Spot or Capacity Reservation Instances for your
|
|
7020
|
+
# managed instance capacity provider.
|
|
6985
7021
|
#
|
|
6986
7022
|
# Valid values are:
|
|
6987
7023
|
#
|
|
@@ -6993,6 +7029,10 @@ module Aws::ECS
|
|
|
6993
7029
|
# Amazon EC2 with a two-minute notification when the capacity is
|
|
6994
7030
|
# needed back.
|
|
6995
7031
|
#
|
|
7032
|
+
# * `RESERVED` - Launches Instances using Amazon EC2 Capacity
|
|
7033
|
+
# Reservations. Capacity Reservations allow you to reserve compute
|
|
7034
|
+
# capacity for Amazon EC2 instances in a specific Availability Zone.
|
|
7035
|
+
#
|
|
6996
7036
|
# The default is On-Demand
|
|
6997
7037
|
#
|
|
6998
7038
|
# For more information about Amazon EC2 capacity options, see
|
|
@@ -7026,6 +7066,18 @@ module Aws::ECS
|
|
|
7026
7066
|
# GovCloud (US) regions and FIPS disabled in other regions.
|
|
7027
7067
|
# @return [Boolean]
|
|
7028
7068
|
#
|
|
7069
|
+
# @!attribute [rw] capacity_reservations
|
|
7070
|
+
# Capacity reservation specifications. You can specify:
|
|
7071
|
+
#
|
|
7072
|
+
# * Capacity reservation preference
|
|
7073
|
+
#
|
|
7074
|
+
# * Reservation resource group to be used for targeted capacity
|
|
7075
|
+
# reservations
|
|
7076
|
+
#
|
|
7077
|
+
# Amazon ECS will launch instances according to the specified
|
|
7078
|
+
# criteria.
|
|
7079
|
+
# @return [Types::CapacityReservationRequest]
|
|
7080
|
+
#
|
|
7029
7081
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/InstanceLaunchTemplate AWS API Documentation
|
|
7030
7082
|
#
|
|
7031
7083
|
class InstanceLaunchTemplate < Struct.new(
|
|
@@ -7035,7 +7087,8 @@ module Aws::ECS
|
|
|
7035
7087
|
:monitoring,
|
|
7036
7088
|
:capacity_option_type,
|
|
7037
7089
|
:instance_requirements,
|
|
7038
|
-
:fips_enabled
|
|
7090
|
+
:fips_enabled,
|
|
7091
|
+
:capacity_reservations)
|
|
7039
7092
|
SENSITIVE = []
|
|
7040
7093
|
include Aws::Structure
|
|
7041
7094
|
end
|
|
@@ -7098,6 +7151,12 @@ module Aws::ECS
|
|
|
7098
7151
|
# types Amazon ECS selects for new instances.
|
|
7099
7152
|
# @return [Types::InstanceRequirementsRequest]
|
|
7100
7153
|
#
|
|
7154
|
+
# @!attribute [rw] capacity_reservations
|
|
7155
|
+
# The updated capacity reservations specifications for Amazon ECS
|
|
7156
|
+
# Managed Instances. Changes to capacity reservations settings apply
|
|
7157
|
+
# to new instances launched after the update.
|
|
7158
|
+
# @return [Types::CapacityReservationRequest]
|
|
7159
|
+
#
|
|
7101
7160
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/InstanceLaunchTemplateUpdate AWS API Documentation
|
|
7102
7161
|
#
|
|
7103
7162
|
class InstanceLaunchTemplateUpdate < Struct.new(
|
|
@@ -7105,7 +7164,8 @@ module Aws::ECS
|
|
|
7105
7164
|
:network_configuration,
|
|
7106
7165
|
:storage_configuration,
|
|
7107
7166
|
:monitoring,
|
|
7108
|
-
:instance_requirements
|
|
7167
|
+
:instance_requirements,
|
|
7168
|
+
:capacity_reservations)
|
|
7109
7169
|
SENSITIVE = []
|
|
7110
7170
|
include Aws::Structure
|
|
7111
7171
|
end
|
data/lib/aws-sdk-ecs.rb
CHANGED
data/sig/client.rbs
CHANGED
|
@@ -111,7 +111,7 @@ module Aws
|
|
|
111
111
|
storage_size_gi_b: ::Integer?
|
|
112
112
|
}?,
|
|
113
113
|
monitoring: ("BASIC" | "DETAILED")?,
|
|
114
|
-
capacity_option_type: ("ON_DEMAND" | "SPOT")?,
|
|
114
|
+
capacity_option_type: ("ON_DEMAND" | "SPOT" | "RESERVED")?,
|
|
115
115
|
instance_requirements: {
|
|
116
116
|
v_cpu_count: {
|
|
117
117
|
min: ::Integer,
|
|
@@ -165,7 +165,11 @@ module Aws
|
|
|
165
165
|
allowed_instance_types: Array[::String]?,
|
|
166
166
|
max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
|
|
167
167
|
}?,
|
|
168
|
-
fips_enabled: bool
|
|
168
|
+
fips_enabled: bool?,
|
|
169
|
+
capacity_reservations: {
|
|
170
|
+
reservation_group_arn: ::String?,
|
|
171
|
+
reservation_preference: ("RESERVATIONS_ONLY" | "RESERVATIONS_FIRST" | "RESERVATIONS_EXCLUDED")?
|
|
172
|
+
}?
|
|
169
173
|
},
|
|
170
174
|
propagate_tags: ("CAPACITY_PROVIDER" | "NONE")?,
|
|
171
175
|
infrastructure_optimization: {
|
|
@@ -1808,6 +1812,10 @@ module Aws
|
|
|
1808
1812
|
}?,
|
|
1809
1813
|
allowed_instance_types: Array[::String]?,
|
|
1810
1814
|
max_spot_price_as_percentage_of_optimal_on_demand_price: ::Integer?
|
|
1815
|
+
}?,
|
|
1816
|
+
capacity_reservations: {
|
|
1817
|
+
reservation_group_arn: ::String?,
|
|
1818
|
+
reservation_preference: ("RESERVATIONS_ONLY" | "RESERVATIONS_FIRST" | "RESERVATIONS_EXCLUDED")?
|
|
1811
1819
|
}?
|
|
1812
1820
|
},
|
|
1813
1821
|
propagate_tags: ("CAPACITY_PROVIDER" | "NONE")?,
|
data/sig/types.rbs
CHANGED
|
@@ -114,6 +114,12 @@ module Aws::ECS
|
|
|
114
114
|
SENSITIVE: []
|
|
115
115
|
end
|
|
116
116
|
|
|
117
|
+
class CapacityReservationRequest
|
|
118
|
+
attr_accessor reservation_group_arn: ::String
|
|
119
|
+
attr_accessor reservation_preference: ("RESERVATIONS_ONLY" | "RESERVATIONS_FIRST" | "RESERVATIONS_EXCLUDED")
|
|
120
|
+
SENSITIVE: []
|
|
121
|
+
end
|
|
122
|
+
|
|
117
123
|
class ClientException
|
|
118
124
|
attr_accessor message: ::String
|
|
119
125
|
SENSITIVE: []
|
|
@@ -1018,9 +1024,10 @@ module Aws::ECS
|
|
|
1018
1024
|
attr_accessor network_configuration: Types::ManagedInstancesNetworkConfiguration
|
|
1019
1025
|
attr_accessor storage_configuration: Types::ManagedInstancesStorageConfiguration
|
|
1020
1026
|
attr_accessor monitoring: ("BASIC" | "DETAILED")
|
|
1021
|
-
attr_accessor capacity_option_type: ("ON_DEMAND" | "SPOT")
|
|
1027
|
+
attr_accessor capacity_option_type: ("ON_DEMAND" | "SPOT" | "RESERVED")
|
|
1022
1028
|
attr_accessor instance_requirements: Types::InstanceRequirementsRequest
|
|
1023
1029
|
attr_accessor fips_enabled: bool
|
|
1030
|
+
attr_accessor capacity_reservations: Types::CapacityReservationRequest
|
|
1024
1031
|
SENSITIVE: []
|
|
1025
1032
|
end
|
|
1026
1033
|
|
|
@@ -1030,6 +1037,7 @@ module Aws::ECS
|
|
|
1030
1037
|
attr_accessor storage_configuration: Types::ManagedInstancesStorageConfiguration
|
|
1031
1038
|
attr_accessor monitoring: ("BASIC" | "DETAILED")
|
|
1032
1039
|
attr_accessor instance_requirements: Types::InstanceRequirementsRequest
|
|
1040
|
+
attr_accessor capacity_reservations: Types::CapacityReservationRequest
|
|
1033
1041
|
SENSITIVE: []
|
|
1034
1042
|
end
|
|
1035
1043
|
|