aws-sdk-ec2 1.56.0 → 1.57.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca9d6e4b22e378f2368b5faadb338dec831cf76b
4
- data.tar.gz: cffb436f95a46813cdfce209a664c336b8495de7
3
+ metadata.gz: 1d1aa85e40eb9ccb2654f4c10d179803f098e31e
4
+ data.tar.gz: 972d35c6ee4804d2f0d793788f3a3707f4d2b07a
5
5
  SHA512:
6
- metadata.gz: e7cd598c3abc2d6aee474beac33d08177c6bfa4cc048bc3d27af2040721edfb5da0740d4fbdb011e1224666dbee796c026217c7763e23ae272dba7a1e0570b80
7
- data.tar.gz: 6ece7ce29754c099c046ca6e8376f2cb84318d30626ac9395f554c2f3d29abb23cd63d2dc2bf5f567a1019acba492694b5f584776a7e1416f2b5e888d57e522d
6
+ metadata.gz: 0f51e09f27d56795d35d92a969737c826f2b080021d38b8afee86e3cef0e743292008d5838eefd737366031d6e7560606dacdd61d1e907d789d162f34fd2f358
7
+ data.tar.gz: fdd415addc7bb5c4d07f210a16fa39e2e0a4da063f57746f88cb9a56bb8dbc98739d87e4c25de0d63f9dba36b5a3c756ec84803acc23c5e804a904bd64421a23
@@ -65,6 +65,6 @@ require_relative 'aws-sdk-ec2/customizations'
65
65
  # @service
66
66
  module Aws::EC2
67
67
 
68
- GEM_VERSION = '1.56.0'
68
+ GEM_VERSION = '1.57.0'
69
69
 
70
70
  end
@@ -15,6 +15,7 @@ require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
15
15
  require 'aws-sdk-core/plugins/retry_errors.rb'
16
16
  require 'aws-sdk-core/plugins/global_configuration.rb'
17
17
  require 'aws-sdk-core/plugins/regional_endpoint.rb'
18
+ require 'aws-sdk-core/plugins/endpoint_discovery.rb'
18
19
  require 'aws-sdk-core/plugins/response_paging.rb'
19
20
  require 'aws-sdk-core/plugins/stub_responses.rb'
20
21
  require 'aws-sdk-core/plugins/idempotency_token.rb'
@@ -47,6 +48,7 @@ module Aws::EC2
47
48
  add_plugin(Aws::Plugins::RetryErrors)
48
49
  add_plugin(Aws::Plugins::GlobalConfiguration)
49
50
  add_plugin(Aws::Plugins::RegionalEndpoint)
51
+ add_plugin(Aws::Plugins::EndpointDiscovery)
50
52
  add_plugin(Aws::Plugins::ResponsePaging)
51
53
  add_plugin(Aws::Plugins::StubResponses)
52
54
  add_plugin(Aws::Plugins::IdempotencyToken)
@@ -102,6 +104,10 @@ module Aws::EC2
102
104
  #
103
105
  # @option options [String] :access_key_id
104
106
  #
107
+ # @option options [Boolean] :active_endpoint_cache (false)
108
+ # When set to `true`, a thread polling for endpoints will be running in
109
+ # the background every 60 secs (default). Defaults to `false`.
110
+ #
105
111
  # @option options [Boolean] :client_side_monitoring (false)
106
112
  # When `true`, client-side metrics will be collected for all API requests from
107
113
  # this client.
@@ -127,6 +133,21 @@ module Aws::EC2
127
133
  # option. You should only configure an `:endpoint` when connecting
128
134
  # to test endpoints. This should be avalid HTTP(S) URI.
129
135
  #
136
+ # @option options [Integer] :endpoint_cache_max_entries (1000)
137
+ # Used for the maximum size limit of the LRU cache storing endpoints data
138
+ # for endpoint discovery enabled operations. Defaults to 1000.
139
+ #
140
+ # @option options [Integer] :endpoint_cache_max_threads (10)
141
+ # Used for the maximum threads in use for polling endpoints to be cached, defaults to 10.
142
+ #
143
+ # @option options [Integer] :endpoint_cache_poll_interval (60)
144
+ # When :endpoint_discovery and :active_endpoint_cache is enabled,
145
+ # Use this option to config the time interval in seconds for making
146
+ # requests fetching endpoints information. Defaults to 60 sec.
147
+ #
148
+ # @option options [Boolean] :endpoint_discovery (false)
149
+ # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
150
+ #
130
151
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
131
152
  # The log formatter.
132
153
  #
@@ -3491,15 +3512,15 @@ module Aws::EC2
3491
3512
  # Fleet expires.
3492
3513
  #
3493
3514
  # @option params [String] :type
3494
- # The type of request. Indicates whether the EC2 Fleet only `requests`
3495
- # the target capacity, or also attempts to `maintain` it. If you request
3496
- # a certain target capacity, EC2 Fleet only places the required
3497
- # requests. It does not attempt to replenish instances if capacity is
3498
- # diminished, and does not submit requests in alternative capacity pools
3499
- # if capacity is unavailable. To maintain a certain target capacity, EC2
3500
- # Fleet places the required requests to meet this target capacity. It
3501
- # also automatically replenishes any interrupted Spot Instances.
3502
- # Default: `maintain`.
3515
+ # The type of request. `instant` indicates whether the EC2 Fleet submits
3516
+ # a one-time request for your desired capacity. `request` indicates
3517
+ # whether the EC2 Fleet submits ongoing requests until your desired
3518
+ # capacity is fulfilled, but does not attempt to submit requests in
3519
+ # alternative capacity pools if capacity is unavailable or maintain the
3520
+ # capacity. `maintain` indicates whether the EC2 Fleet submits ongoing
3521
+ # requests until your desired capacity is fulfilled, and continues to
3522
+ # maintain your desired capacity by replenishing interrupted Spot
3523
+ # Instances. Default: `maintain`.
3503
3524
  #
3504
3525
  # @option params [Time,DateTime,Date,Integer,String] :valid_from
3505
3526
  # The start date and time of the request, in UTC format (for example,
@@ -3530,6 +3551,8 @@ module Aws::EC2
3530
3551
  # @return [Types::CreateFleetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3531
3552
  #
3532
3553
  # * {Types::CreateFleetResult#fleet_id #fleet_id} => String
3554
+ # * {Types::CreateFleetResult#errors #errors} => Array<Types::CreateFleetError>
3555
+ # * {Types::CreateFleetResult#instances #instances} => Array<Types::CreateFleetInstance>
3533
3556
  #
3534
3557
  # @example Request syntax with placeholder values
3535
3558
  #
@@ -3540,9 +3563,13 @@ module Aws::EC2
3540
3563
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified
3541
3564
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
3542
3565
  # instance_pools_to_use_count: 1,
3566
+ # single_instance_type: false,
3567
+ # min_target_capacity: 1,
3543
3568
  # },
3544
3569
  # on_demand_options: {
3545
3570
  # allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
3571
+ # single_instance_type: false,
3572
+ # min_target_capacity: 1,
3546
3573
  # },
3547
3574
  # excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
3548
3575
  # launch_template_configs: [ # required
@@ -3560,6 +3587,14 @@ module Aws::EC2
3560
3587
  # availability_zone: "String",
3561
3588
  # weighted_capacity: 1.0,
3562
3589
  # priority: 1.0,
3590
+ # placement: {
3591
+ # availability_zone: "String",
3592
+ # affinity: "String",
3593
+ # group_name: "String",
3594
+ # host_id: "String",
3595
+ # tenancy: "default", # accepts default, dedicated, host
3596
+ # spread_domain: "String",
3597
+ # },
3563
3598
  # },
3564
3599
  # ],
3565
3600
  # },
@@ -3571,7 +3606,7 @@ module Aws::EC2
3571
3606
  # default_target_capacity_type: "spot", # accepts spot, on-demand
3572
3607
  # },
3573
3608
  # terminate_instances_with_expiration: false,
3574
- # type: "request", # accepts request, maintain
3609
+ # type: "request", # accepts request, maintain, instant
3575
3610
  # valid_from: Time.now,
3576
3611
  # valid_until: Time.now,
3577
3612
  # replace_unhealthy_instances: false,
@@ -3591,6 +3626,36 @@ module Aws::EC2
3591
3626
  # @example Response structure
3592
3627
  #
3593
3628
  # resp.fleet_id #=> String
3629
+ # resp.errors #=> Array
3630
+ # resp.errors[0].launch_template_and_overrides.launch_template_specification.launch_template_id #=> String
3631
+ # resp.errors[0].launch_template_and_overrides.launch_template_specification.launch_template_name #=> String
3632
+ # resp.errors[0].launch_template_and_overrides.launch_template_specification.version #=> String
3633
+ # resp.errors[0].launch_template_and_overrides.overrides.instance_type #=> String, one of "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "t2.xlarge", "t2.2xlarge", "t3.nano", "t3.micro", "t3.small", "t3.medium", "t3.large", "t3.xlarge", "t3.2xlarge", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "m4.16xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "cr1.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "r4.large", "r4.xlarge", "r4.2xlarge", "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", "r5.large", "r5.xlarge", "r5.2xlarge", "r5.4xlarge", "r5.8xlarge", "r5.12xlarge", "r5.16xlarge", "r5.24xlarge", "r5.metal", "r5a.large", "r5a.xlarge", "r5a.2xlarge", "r5a.4xlarge", "r5a.12xlarge", "r5a.24xlarge", "r5d.large", "r5d.xlarge", "r5d.2xlarge", "r5d.4xlarge", "r5d.8xlarge", "r5d.12xlarge", "r5d.16xlarge", "r5d.24xlarge", "r5d.metal", "x1.16xlarge", "x1.32xlarge", "x1e.xlarge", "x1e.2xlarge", "x1e.4xlarge", "x1e.8xlarge", "x1e.16xlarge", "x1e.32xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "i3.large", "i3.xlarge", "i3.2xlarge", "i3.4xlarge", "i3.8xlarge", "i3.16xlarge", "i3.metal", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", "c5.4xlarge", "c5.9xlarge", "c5.18xlarge", "c5d.large", "c5d.xlarge", "c5d.2xlarge", "c5d.4xlarge", "c5d.9xlarge", "c5d.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", "g2.8xlarge", "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", "p2.16xlarge", "p3.2xlarge", "p3.8xlarge", "p3.16xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", "f1.4xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", "m5.2xlarge", "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", "m5a.large", "m5a.xlarge", "m5a.2xlarge", "m5a.4xlarge", "m5a.12xlarge", "m5a.24xlarge", "m5d.large", "m5d.xlarge", "m5d.2xlarge", "m5d.4xlarge", "m5d.12xlarge", "m5d.24xlarge", "h1.2xlarge", "h1.4xlarge", "h1.8xlarge", "h1.16xlarge", "z1d.large", "z1d.xlarge", "z1d.2xlarge", "z1d.3xlarge", "z1d.6xlarge", "z1d.12xlarge", "u-6tb1.metal", "u-9tb1.metal", "u-12tb1.metal"
3634
+ # resp.errors[0].launch_template_and_overrides.overrides.max_price #=> String
3635
+ # resp.errors[0].launch_template_and_overrides.overrides.subnet_id #=> String
3636
+ # resp.errors[0].launch_template_and_overrides.overrides.availability_zone #=> String
3637
+ # resp.errors[0].launch_template_and_overrides.overrides.weighted_capacity #=> Float
3638
+ # resp.errors[0].launch_template_and_overrides.overrides.priority #=> Float
3639
+ # resp.errors[0].launch_template_and_overrides.overrides.placement.group_name #=> String
3640
+ # resp.errors[0].lifecycle #=> String, one of "spot", "on-demand"
3641
+ # resp.errors[0].error_code #=> String
3642
+ # resp.errors[0].error_message #=> String
3643
+ # resp.instances #=> Array
3644
+ # resp.instances[0].launch_template_and_overrides.launch_template_specification.launch_template_id #=> String
3645
+ # resp.instances[0].launch_template_and_overrides.launch_template_specification.launch_template_name #=> String
3646
+ # resp.instances[0].launch_template_and_overrides.launch_template_specification.version #=> String
3647
+ # resp.instances[0].launch_template_and_overrides.overrides.instance_type #=> String, one of "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "t2.xlarge", "t2.2xlarge", "t3.nano", "t3.micro", "t3.small", "t3.medium", "t3.large", "t3.xlarge", "t3.2xlarge", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "m4.16xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "cr1.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "r4.large", "r4.xlarge", "r4.2xlarge", "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", "r5.large", "r5.xlarge", "r5.2xlarge", "r5.4xlarge", "r5.8xlarge", "r5.12xlarge", "r5.16xlarge", "r5.24xlarge", "r5.metal", "r5a.large", "r5a.xlarge", "r5a.2xlarge", "r5a.4xlarge", "r5a.12xlarge", "r5a.24xlarge", "r5d.large", "r5d.xlarge", "r5d.2xlarge", "r5d.4xlarge", "r5d.8xlarge", "r5d.12xlarge", "r5d.16xlarge", "r5d.24xlarge", "r5d.metal", "x1.16xlarge", "x1.32xlarge", "x1e.xlarge", "x1e.2xlarge", "x1e.4xlarge", "x1e.8xlarge", "x1e.16xlarge", "x1e.32xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "i3.large", "i3.xlarge", "i3.2xlarge", "i3.4xlarge", "i3.8xlarge", "i3.16xlarge", "i3.metal", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", "c5.4xlarge", "c5.9xlarge", "c5.18xlarge", "c5d.large", "c5d.xlarge", "c5d.2xlarge", "c5d.4xlarge", "c5d.9xlarge", "c5d.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", "g2.8xlarge", "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", "p2.16xlarge", "p3.2xlarge", "p3.8xlarge", "p3.16xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", "f1.4xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", "m5.2xlarge", "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", "m5a.large", "m5a.xlarge", "m5a.2xlarge", "m5a.4xlarge", "m5a.12xlarge", "m5a.24xlarge", "m5d.large", "m5d.xlarge", "m5d.2xlarge", "m5d.4xlarge", "m5d.12xlarge", "m5d.24xlarge", "h1.2xlarge", "h1.4xlarge", "h1.8xlarge", "h1.16xlarge", "z1d.large", "z1d.xlarge", "z1d.2xlarge", "z1d.3xlarge", "z1d.6xlarge", "z1d.12xlarge", "u-6tb1.metal", "u-9tb1.metal", "u-12tb1.metal"
3648
+ # resp.instances[0].launch_template_and_overrides.overrides.max_price #=> String
3649
+ # resp.instances[0].launch_template_and_overrides.overrides.subnet_id #=> String
3650
+ # resp.instances[0].launch_template_and_overrides.overrides.availability_zone #=> String
3651
+ # resp.instances[0].launch_template_and_overrides.overrides.weighted_capacity #=> Float
3652
+ # resp.instances[0].launch_template_and_overrides.overrides.priority #=> Float
3653
+ # resp.instances[0].launch_template_and_overrides.overrides.placement.group_name #=> String
3654
+ # resp.instances[0].lifecycle #=> String, one of "spot", "on-demand"
3655
+ # resp.instances[0].instance_ids #=> Array
3656
+ # resp.instances[0].instance_ids[0] #=> String
3657
+ # resp.instances[0].instance_type #=> String, one of "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "t2.xlarge", "t2.2xlarge", "t3.nano", "t3.micro", "t3.small", "t3.medium", "t3.large", "t3.xlarge", "t3.2xlarge", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "m4.16xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "cr1.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "r4.large", "r4.xlarge", "r4.2xlarge", "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", "r5.large", "r5.xlarge", "r5.2xlarge", "r5.4xlarge", "r5.8xlarge", "r5.12xlarge", "r5.16xlarge", "r5.24xlarge", "r5.metal", "r5a.large", "r5a.xlarge", "r5a.2xlarge", "r5a.4xlarge", "r5a.12xlarge", "r5a.24xlarge", "r5d.large", "r5d.xlarge", "r5d.2xlarge", "r5d.4xlarge", "r5d.8xlarge", "r5d.12xlarge", "r5d.16xlarge", "r5d.24xlarge", "r5d.metal", "x1.16xlarge", "x1.32xlarge", "x1e.xlarge", "x1e.2xlarge", "x1e.4xlarge", "x1e.8xlarge", "x1e.16xlarge", "x1e.32xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "i3.large", "i3.xlarge", "i3.2xlarge", "i3.4xlarge", "i3.8xlarge", "i3.16xlarge", "i3.metal", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", "c5.4xlarge", "c5.9xlarge", "c5.18xlarge", "c5d.large", "c5d.xlarge", "c5d.2xlarge", "c5d.4xlarge", "c5d.9xlarge", "c5d.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", "g2.8xlarge", "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", "p2.16xlarge", "p3.2xlarge", "p3.8xlarge", "p3.16xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", "f1.4xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", "m5.2xlarge", "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", "m5a.large", "m5a.xlarge", "m5a.2xlarge", "m5a.4xlarge", "m5a.12xlarge", "m5a.24xlarge", "m5d.large", "m5d.xlarge", "m5d.2xlarge", "m5d.4xlarge", "m5d.12xlarge", "m5d.24xlarge", "h1.2xlarge", "h1.4xlarge", "h1.8xlarge", "h1.16xlarge", "z1d.large", "z1d.xlarge", "z1d.2xlarge", "z1d.3xlarge", "z1d.6xlarge", "z1d.12xlarge", "u-6tb1.metal", "u-9tb1.metal", "u-12tb1.metal"
3658
+ # resp.instances[0].platform #=> String, one of "Windows"
3594
3659
  #
3595
3660
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleet AWS API Documentation
3596
3661
  #
@@ -10008,7 +10073,7 @@ module Aws::EC2
10008
10073
  req.send_request(options)
10009
10074
  end
10010
10075
 
10011
- # Describes one or more of your EC2 Fleet.
10076
+ # Describes one or more of your EC2 Fleets.
10012
10077
  #
10013
10078
  # @option params [Boolean] :dry_run
10014
10079
  # Checks whether you have the required permissions for the action,
@@ -10045,7 +10110,7 @@ module Aws::EC2
10045
10110
  # * `replace-unhealthy-instances` - Indicates whether EC2 Fleet should
10046
10111
  # replace unhealthy instances (`true` \| `false`).
10047
10112
  #
10048
- # * `type` - The type of request (`request` \| `maintain`).
10113
+ # * `type` - The type of request (`instant` \| `request` \| `maintain`).
10049
10114
  #
10050
10115
  # @return [Types::DescribeFleetsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
10051
10116
  #
@@ -10090,22 +10155,57 @@ module Aws::EC2
10090
10155
  # resp.fleets[0].launch_template_configs[0].overrides[0].availability_zone #=> String
10091
10156
  # resp.fleets[0].launch_template_configs[0].overrides[0].weighted_capacity #=> Float
10092
10157
  # resp.fleets[0].launch_template_configs[0].overrides[0].priority #=> Float
10158
+ # resp.fleets[0].launch_template_configs[0].overrides[0].placement.group_name #=> String
10093
10159
  # resp.fleets[0].target_capacity_specification.total_target_capacity #=> Integer
10094
10160
  # resp.fleets[0].target_capacity_specification.on_demand_target_capacity #=> Integer
10095
10161
  # resp.fleets[0].target_capacity_specification.spot_target_capacity #=> Integer
10096
10162
  # resp.fleets[0].target_capacity_specification.default_target_capacity_type #=> String, one of "spot", "on-demand"
10097
10163
  # resp.fleets[0].terminate_instances_with_expiration #=> Boolean
10098
- # resp.fleets[0].type #=> String, one of "request", "maintain"
10164
+ # resp.fleets[0].type #=> String, one of "request", "maintain", "instant"
10099
10165
  # resp.fleets[0].valid_from #=> Time
10100
10166
  # resp.fleets[0].valid_until #=> Time
10101
10167
  # resp.fleets[0].replace_unhealthy_instances #=> Boolean
10102
10168
  # resp.fleets[0].spot_options.allocation_strategy #=> String, one of "lowest-price", "diversified"
10103
10169
  # resp.fleets[0].spot_options.instance_interruption_behavior #=> String, one of "hibernate", "stop", "terminate"
10104
10170
  # resp.fleets[0].spot_options.instance_pools_to_use_count #=> Integer
10171
+ # resp.fleets[0].spot_options.single_instance_type #=> Boolean
10172
+ # resp.fleets[0].spot_options.min_target_capacity #=> Integer
10105
10173
  # resp.fleets[0].on_demand_options.allocation_strategy #=> String, one of "lowest-price", "prioritized"
10174
+ # resp.fleets[0].on_demand_options.single_instance_type #=> Boolean
10175
+ # resp.fleets[0].on_demand_options.min_target_capacity #=> Integer
10106
10176
  # resp.fleets[0].tags #=> Array
10107
10177
  # resp.fleets[0].tags[0].key #=> String
10108
10178
  # resp.fleets[0].tags[0].value #=> String
10179
+ # resp.fleets[0].errors #=> Array
10180
+ # resp.fleets[0].errors[0].launch_template_and_overrides.launch_template_specification.launch_template_id #=> String
10181
+ # resp.fleets[0].errors[0].launch_template_and_overrides.launch_template_specification.launch_template_name #=> String
10182
+ # resp.fleets[0].errors[0].launch_template_and_overrides.launch_template_specification.version #=> String
10183
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.instance_type #=> String, one of "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "t2.xlarge", "t2.2xlarge", "t3.nano", "t3.micro", "t3.small", "t3.medium", "t3.large", "t3.xlarge", "t3.2xlarge", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "m4.16xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "cr1.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "r4.large", "r4.xlarge", "r4.2xlarge", "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", "r5.large", "r5.xlarge", "r5.2xlarge", "r5.4xlarge", "r5.8xlarge", "r5.12xlarge", "r5.16xlarge", "r5.24xlarge", "r5.metal", "r5a.large", "r5a.xlarge", "r5a.2xlarge", "r5a.4xlarge", "r5a.12xlarge", "r5a.24xlarge", "r5d.large", "r5d.xlarge", "r5d.2xlarge", "r5d.4xlarge", "r5d.8xlarge", "r5d.12xlarge", "r5d.16xlarge", "r5d.24xlarge", "r5d.metal", "x1.16xlarge", "x1.32xlarge", "x1e.xlarge", "x1e.2xlarge", "x1e.4xlarge", "x1e.8xlarge", "x1e.16xlarge", "x1e.32xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "i3.large", "i3.xlarge", "i3.2xlarge", "i3.4xlarge", "i3.8xlarge", "i3.16xlarge", "i3.metal", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", "c5.4xlarge", "c5.9xlarge", "c5.18xlarge", "c5d.large", "c5d.xlarge", "c5d.2xlarge", "c5d.4xlarge", "c5d.9xlarge", "c5d.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", "g2.8xlarge", "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", "p2.16xlarge", "p3.2xlarge", "p3.8xlarge", "p3.16xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", "f1.4xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", "m5.2xlarge", "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", "m5a.large", "m5a.xlarge", "m5a.2xlarge", "m5a.4xlarge", "m5a.12xlarge", "m5a.24xlarge", "m5d.large", "m5d.xlarge", "m5d.2xlarge", "m5d.4xlarge", "m5d.12xlarge", "m5d.24xlarge", "h1.2xlarge", "h1.4xlarge", "h1.8xlarge", "h1.16xlarge", "z1d.large", "z1d.xlarge", "z1d.2xlarge", "z1d.3xlarge", "z1d.6xlarge", "z1d.12xlarge", "u-6tb1.metal", "u-9tb1.metal", "u-12tb1.metal"
10184
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.max_price #=> String
10185
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.subnet_id #=> String
10186
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.availability_zone #=> String
10187
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.weighted_capacity #=> Float
10188
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.priority #=> Float
10189
+ # resp.fleets[0].errors[0].launch_template_and_overrides.overrides.placement.group_name #=> String
10190
+ # resp.fleets[0].errors[0].lifecycle #=> String, one of "spot", "on-demand"
10191
+ # resp.fleets[0].errors[0].error_code #=> String
10192
+ # resp.fleets[0].errors[0].error_message #=> String
10193
+ # resp.fleets[0].instances #=> Array
10194
+ # resp.fleets[0].instances[0].launch_template_and_overrides.launch_template_specification.launch_template_id #=> String
10195
+ # resp.fleets[0].instances[0].launch_template_and_overrides.launch_template_specification.launch_template_name #=> String
10196
+ # resp.fleets[0].instances[0].launch_template_and_overrides.launch_template_specification.version #=> String
10197
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.instance_type #=> String, one of "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "t2.xlarge", "t2.2xlarge", "t3.nano", "t3.micro", "t3.small", "t3.medium", "t3.large", "t3.xlarge", "t3.2xlarge", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "m4.16xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "cr1.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "r4.large", "r4.xlarge", "r4.2xlarge", "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", "r5.large", "r5.xlarge", "r5.2xlarge", "r5.4xlarge", "r5.8xlarge", "r5.12xlarge", "r5.16xlarge", "r5.24xlarge", "r5.metal", "r5a.large", "r5a.xlarge", "r5a.2xlarge", "r5a.4xlarge", "r5a.12xlarge", "r5a.24xlarge", "r5d.large", "r5d.xlarge", "r5d.2xlarge", "r5d.4xlarge", "r5d.8xlarge", "r5d.12xlarge", "r5d.16xlarge", "r5d.24xlarge", "r5d.metal", "x1.16xlarge", "x1.32xlarge", "x1e.xlarge", "x1e.2xlarge", "x1e.4xlarge", "x1e.8xlarge", "x1e.16xlarge", "x1e.32xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "i3.large", "i3.xlarge", "i3.2xlarge", "i3.4xlarge", "i3.8xlarge", "i3.16xlarge", "i3.metal", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", "c5.4xlarge", "c5.9xlarge", "c5.18xlarge", "c5d.large", "c5d.xlarge", "c5d.2xlarge", "c5d.4xlarge", "c5d.9xlarge", "c5d.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", "g2.8xlarge", "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", "p2.16xlarge", "p3.2xlarge", "p3.8xlarge", "p3.16xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", "f1.4xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", "m5.2xlarge", "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", "m5a.large", "m5a.xlarge", "m5a.2xlarge", "m5a.4xlarge", "m5a.12xlarge", "m5a.24xlarge", "m5d.large", "m5d.xlarge", "m5d.2xlarge", "m5d.4xlarge", "m5d.12xlarge", "m5d.24xlarge", "h1.2xlarge", "h1.4xlarge", "h1.8xlarge", "h1.16xlarge", "z1d.large", "z1d.xlarge", "z1d.2xlarge", "z1d.3xlarge", "z1d.6xlarge", "z1d.12xlarge", "u-6tb1.metal", "u-9tb1.metal", "u-12tb1.metal"
10198
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.max_price #=> String
10199
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.subnet_id #=> String
10200
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.availability_zone #=> String
10201
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.weighted_capacity #=> Float
10202
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.priority #=> Float
10203
+ # resp.fleets[0].instances[0].launch_template_and_overrides.overrides.placement.group_name #=> String
10204
+ # resp.fleets[0].instances[0].lifecycle #=> String, one of "spot", "on-demand"
10205
+ # resp.fleets[0].instances[0].instance_ids #=> Array
10206
+ # resp.fleets[0].instances[0].instance_ids[0] #=> String
10207
+ # resp.fleets[0].instances[0].instance_type #=> String, one of "t1.micro", "t2.nano", "t2.micro", "t2.small", "t2.medium", "t2.large", "t2.xlarge", "t2.2xlarge", "t3.nano", "t3.micro", "t3.small", "t3.medium", "t3.large", "t3.xlarge", "t3.2xlarge", "m1.small", "m1.medium", "m1.large", "m1.xlarge", "m3.medium", "m3.large", "m3.xlarge", "m3.2xlarge", "m4.large", "m4.xlarge", "m4.2xlarge", "m4.4xlarge", "m4.10xlarge", "m4.16xlarge", "m2.xlarge", "m2.2xlarge", "m2.4xlarge", "cr1.8xlarge", "r3.large", "r3.xlarge", "r3.2xlarge", "r3.4xlarge", "r3.8xlarge", "r4.large", "r4.xlarge", "r4.2xlarge", "r4.4xlarge", "r4.8xlarge", "r4.16xlarge", "r5.large", "r5.xlarge", "r5.2xlarge", "r5.4xlarge", "r5.8xlarge", "r5.12xlarge", "r5.16xlarge", "r5.24xlarge", "r5.metal", "r5a.large", "r5a.xlarge", "r5a.2xlarge", "r5a.4xlarge", "r5a.12xlarge", "r5a.24xlarge", "r5d.large", "r5d.xlarge", "r5d.2xlarge", "r5d.4xlarge", "r5d.8xlarge", "r5d.12xlarge", "r5d.16xlarge", "r5d.24xlarge", "r5d.metal", "x1.16xlarge", "x1.32xlarge", "x1e.xlarge", "x1e.2xlarge", "x1e.4xlarge", "x1e.8xlarge", "x1e.16xlarge", "x1e.32xlarge", "i2.xlarge", "i2.2xlarge", "i2.4xlarge", "i2.8xlarge", "i3.large", "i3.xlarge", "i3.2xlarge", "i3.4xlarge", "i3.8xlarge", "i3.16xlarge", "i3.metal", "hi1.4xlarge", "hs1.8xlarge", "c1.medium", "c1.xlarge", "c3.large", "c3.xlarge", "c3.2xlarge", "c3.4xlarge", "c3.8xlarge", "c4.large", "c4.xlarge", "c4.2xlarge", "c4.4xlarge", "c4.8xlarge", "c5.large", "c5.xlarge", "c5.2xlarge", "c5.4xlarge", "c5.9xlarge", "c5.18xlarge", "c5d.large", "c5d.xlarge", "c5d.2xlarge", "c5d.4xlarge", "c5d.9xlarge", "c5d.18xlarge", "cc1.4xlarge", "cc2.8xlarge", "g2.2xlarge", "g2.8xlarge", "g3.4xlarge", "g3.8xlarge", "g3.16xlarge", "g3s.xlarge", "cg1.4xlarge", "p2.xlarge", "p2.8xlarge", "p2.16xlarge", "p3.2xlarge", "p3.8xlarge", "p3.16xlarge", "d2.xlarge", "d2.2xlarge", "d2.4xlarge", "d2.8xlarge", "f1.2xlarge", "f1.4xlarge", "f1.16xlarge", "m5.large", "m5.xlarge", "m5.2xlarge", "m5.4xlarge", "m5.12xlarge", "m5.24xlarge", "m5a.large", "m5a.xlarge", "m5a.2xlarge", "m5a.4xlarge", "m5a.12xlarge", "m5a.24xlarge", "m5d.large", "m5d.xlarge", "m5d.2xlarge", "m5d.4xlarge", "m5d.12xlarge", "m5d.24xlarge", "h1.2xlarge", "h1.4xlarge", "h1.8xlarge", "h1.16xlarge", "z1d.large", "z1d.xlarge", "z1d.2xlarge", "z1d.3xlarge", "z1d.6xlarge", "z1d.12xlarge", "u-6tb1.metal", "u-9tb1.metal", "u-12tb1.metal"
10208
+ # resp.fleets[0].instances[0].platform #=> String, one of "Windows"
10109
10209
  #
10110
10210
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleets AWS API Documentation
10111
10211
  #
@@ -12727,7 +12827,7 @@ module Aws::EC2
12727
12827
  # @option params [Integer] :max_results
12728
12828
  # The maximum number of results to return in a single call. To retrieve
12729
12829
  # the remaining results, make another call with the returned `NextToken`
12730
- # value. This value can be between 5 and 1000.
12830
+ # value. This value can be between 1 and 200.
12731
12831
  #
12732
12832
  # @return [Types::DescribeLaunchTemplatesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
12733
12833
  #
@@ -16135,7 +16235,7 @@ module Aws::EC2
16135
16235
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.target_capacity #=> Integer
16136
16236
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_target_capacity #=> Integer
16137
16237
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.terminate_instances_with_expiration #=> Boolean
16138
- # resp.spot_fleet_request_configs[0].spot_fleet_request_config.type #=> String, one of "request", "maintain"
16238
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.type #=> String, one of "request", "maintain", "instant"
16139
16239
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.valid_from #=> Time
16140
16240
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.valid_until #=> Time
16141
16241
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.replace_unhealthy_instances #=> Boolean
@@ -24254,7 +24354,7 @@ module Aws::EC2
24254
24354
  # target_capacity: 1, # required
24255
24355
  # on_demand_target_capacity: 1,
24256
24356
  # terminate_instances_with_expiration: false,
24257
- # type: "request", # accepts request, maintain
24357
+ # type: "request", # accepts request, maintain, instant
24258
24358
  # valid_from: Time.now,
24259
24359
  # valid_until: Time.now,
24260
24360
  # replace_unhealthy_instances: false,
@@ -26691,7 +26791,7 @@ module Aws::EC2
26691
26791
  params: params,
26692
26792
  config: config)
26693
26793
  context[:gem_name] = 'aws-sdk-ec2'
26694
- context[:gem_version] = '1.56.0'
26794
+ context[:gem_version] = '1.57.0'
26695
26795
  Seahorse::Client::Request.new(handlers, context)
26696
26796
  end
26697
26797
 
@@ -170,6 +170,10 @@ module Aws::EC2
170
170
  CreateDhcpOptionsResult = Shapes::StructureShape.new(name: 'CreateDhcpOptionsResult')
171
171
  CreateEgressOnlyInternetGatewayRequest = Shapes::StructureShape.new(name: 'CreateEgressOnlyInternetGatewayRequest')
172
172
  CreateEgressOnlyInternetGatewayResult = Shapes::StructureShape.new(name: 'CreateEgressOnlyInternetGatewayResult')
173
+ CreateFleetError = Shapes::StructureShape.new(name: 'CreateFleetError')
174
+ CreateFleetErrorsSet = Shapes::ListShape.new(name: 'CreateFleetErrorsSet')
175
+ CreateFleetInstance = Shapes::StructureShape.new(name: 'CreateFleetInstance')
176
+ CreateFleetInstancesSet = Shapes::ListShape.new(name: 'CreateFleetInstancesSet')
173
177
  CreateFleetRequest = Shapes::StructureShape.new(name: 'CreateFleetRequest')
174
178
  CreateFleetResult = Shapes::StructureShape.new(name: 'CreateFleetResult')
175
179
  CreateFlowLogsRequest = Shapes::StructureShape.new(name: 'CreateFlowLogsRequest')
@@ -325,10 +329,14 @@ module Aws::EC2
325
329
  DescribeElasticGpusResult = Shapes::StructureShape.new(name: 'DescribeElasticGpusResult')
326
330
  DescribeExportTasksRequest = Shapes::StructureShape.new(name: 'DescribeExportTasksRequest')
327
331
  DescribeExportTasksResult = Shapes::StructureShape.new(name: 'DescribeExportTasksResult')
332
+ DescribeFleetError = Shapes::StructureShape.new(name: 'DescribeFleetError')
328
333
  DescribeFleetHistoryRequest = Shapes::StructureShape.new(name: 'DescribeFleetHistoryRequest')
329
334
  DescribeFleetHistoryResult = Shapes::StructureShape.new(name: 'DescribeFleetHistoryResult')
330
335
  DescribeFleetInstancesRequest = Shapes::StructureShape.new(name: 'DescribeFleetInstancesRequest')
331
336
  DescribeFleetInstancesResult = Shapes::StructureShape.new(name: 'DescribeFleetInstancesResult')
337
+ DescribeFleetsErrorSet = Shapes::ListShape.new(name: 'DescribeFleetsErrorSet')
338
+ DescribeFleetsInstances = Shapes::StructureShape.new(name: 'DescribeFleetsInstances')
339
+ DescribeFleetsInstancesSet = Shapes::ListShape.new(name: 'DescribeFleetsInstancesSet')
332
340
  DescribeFleetsRequest = Shapes::StructureShape.new(name: 'DescribeFleetsRequest')
333
341
  DescribeFleetsResult = Shapes::StructureShape.new(name: 'DescribeFleetsResult')
334
342
  DescribeFlowLogsRequest = Shapes::StructureShape.new(name: 'DescribeFlowLogsRequest')
@@ -663,13 +671,16 @@ module Aws::EC2
663
671
  InstanceCreditSpecificationRequest = Shapes::StructureShape.new(name: 'InstanceCreditSpecificationRequest')
664
672
  InstanceExportDetails = Shapes::StructureShape.new(name: 'InstanceExportDetails')
665
673
  InstanceHealthStatus = Shapes::StringShape.new(name: 'InstanceHealthStatus')
674
+ InstanceId = Shapes::StringShape.new(name: 'InstanceId')
666
675
  InstanceIdSet = Shapes::ListShape.new(name: 'InstanceIdSet')
667
676
  InstanceIdStringList = Shapes::ListShape.new(name: 'InstanceIdStringList')
677
+ InstanceIdsSet = Shapes::ListShape.new(name: 'InstanceIdsSet')
668
678
  InstanceInterruptionBehavior = Shapes::StringShape.new(name: 'InstanceInterruptionBehavior')
669
679
  InstanceIpv6Address = Shapes::StructureShape.new(name: 'InstanceIpv6Address')
670
680
  InstanceIpv6AddressList = Shapes::ListShape.new(name: 'InstanceIpv6AddressList')
671
681
  InstanceIpv6AddressListRequest = Shapes::ListShape.new(name: 'InstanceIpv6AddressListRequest')
672
682
  InstanceIpv6AddressRequest = Shapes::StructureShape.new(name: 'InstanceIpv6AddressRequest')
683
+ InstanceLifecycle = Shapes::StringShape.new(name: 'InstanceLifecycle')
673
684
  InstanceLifecycleType = Shapes::StringShape.new(name: 'InstanceLifecycleType')
674
685
  InstanceList = Shapes::ListShape.new(name: 'InstanceList')
675
686
  InstanceMarketOptionsRequest = Shapes::StructureShape.new(name: 'InstanceMarketOptionsRequest')
@@ -724,6 +735,7 @@ module Aws::EC2
724
735
  LaunchSpecification = Shapes::StructureShape.new(name: 'LaunchSpecification')
725
736
  LaunchSpecsList = Shapes::ListShape.new(name: 'LaunchSpecsList')
726
737
  LaunchTemplate = Shapes::StructureShape.new(name: 'LaunchTemplate')
738
+ LaunchTemplateAndOverridesResponse = Shapes::StructureShape.new(name: 'LaunchTemplateAndOverridesResponse')
727
739
  LaunchTemplateBlockDeviceMapping = Shapes::StructureShape.new(name: 'LaunchTemplateBlockDeviceMapping')
728
740
  LaunchTemplateBlockDeviceMappingList = Shapes::ListShape.new(name: 'LaunchTemplateBlockDeviceMappingList')
729
741
  LaunchTemplateBlockDeviceMappingRequest = Shapes::StructureShape.new(name: 'LaunchTemplateBlockDeviceMappingRequest')
@@ -878,6 +890,7 @@ module Aws::EC2
878
890
  PlacementGroupList = Shapes::ListShape.new(name: 'PlacementGroupList')
879
891
  PlacementGroupState = Shapes::StringShape.new(name: 'PlacementGroupState')
880
892
  PlacementGroupStringList = Shapes::ListShape.new(name: 'PlacementGroupStringList')
893
+ PlacementResponse = Shapes::StructureShape.new(name: 'PlacementResponse')
881
894
  PlacementStrategy = Shapes::StringShape.new(name: 'PlacementStrategy')
882
895
  PlatformValues = Shapes::StringShape.new(name: 'PlatformValues')
883
896
  PoolMaxResults = Shapes::IntegerShape.new(name: 'PoolMaxResults')
@@ -1821,6 +1834,23 @@ module Aws::EC2
1821
1834
  CreateEgressOnlyInternetGatewayResult.add_member(:egress_only_internet_gateway, Shapes::ShapeRef.new(shape: EgressOnlyInternetGateway, location_name: "egressOnlyInternetGateway"))
1822
1835
  CreateEgressOnlyInternetGatewayResult.struct_class = Types::CreateEgressOnlyInternetGatewayResult
1823
1836
 
1837
+ CreateFleetError.add_member(:launch_template_and_overrides, Shapes::ShapeRef.new(shape: LaunchTemplateAndOverridesResponse, location_name: "launchTemplateAndOverrides"))
1838
+ CreateFleetError.add_member(:lifecycle, Shapes::ShapeRef.new(shape: InstanceLifecycle, location_name: "lifecycle"))
1839
+ CreateFleetError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "errorCode"))
1840
+ CreateFleetError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
1841
+ CreateFleetError.struct_class = Types::CreateFleetError
1842
+
1843
+ CreateFleetErrorsSet.member = Shapes::ShapeRef.new(shape: CreateFleetError, location_name: "item")
1844
+
1845
+ CreateFleetInstance.add_member(:launch_template_and_overrides, Shapes::ShapeRef.new(shape: LaunchTemplateAndOverridesResponse, location_name: "launchTemplateAndOverrides"))
1846
+ CreateFleetInstance.add_member(:lifecycle, Shapes::ShapeRef.new(shape: InstanceLifecycle, location_name: "lifecycle"))
1847
+ CreateFleetInstance.add_member(:instance_ids, Shapes::ShapeRef.new(shape: InstanceIdsSet, location_name: "instanceIds"))
1848
+ CreateFleetInstance.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
1849
+ CreateFleetInstance.add_member(:platform, Shapes::ShapeRef.new(shape: PlatformValues, location_name: "platform"))
1850
+ CreateFleetInstance.struct_class = Types::CreateFleetInstance
1851
+
1852
+ CreateFleetInstancesSet.member = Shapes::ShapeRef.new(shape: CreateFleetInstance, location_name: "item")
1853
+
1824
1854
  CreateFleetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
1825
1855
  CreateFleetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken"))
1826
1856
  CreateFleetRequest.add_member(:spot_options, Shapes::ShapeRef.new(shape: SpotOptionsRequest, location_name: "SpotOptions"))
@@ -1837,6 +1867,8 @@ module Aws::EC2
1837
1867
  CreateFleetRequest.struct_class = Types::CreateFleetRequest
1838
1868
 
1839
1869
  CreateFleetResult.add_member(:fleet_id, Shapes::ShapeRef.new(shape: FleetIdentifier, location_name: "fleetId"))
1870
+ CreateFleetResult.add_member(:errors, Shapes::ShapeRef.new(shape: CreateFleetErrorsSet, location_name: "errorSet"))
1871
+ CreateFleetResult.add_member(:instances, Shapes::ShapeRef.new(shape: CreateFleetInstancesSet, location_name: "fleetInstanceSet"))
1840
1872
  CreateFleetResult.struct_class = Types::CreateFleetResult
1841
1873
 
1842
1874
  CreateFlowLogsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
@@ -2505,6 +2537,12 @@ module Aws::EC2
2505
2537
  DescribeExportTasksResult.add_member(:export_tasks, Shapes::ShapeRef.new(shape: ExportTaskList, location_name: "exportTaskSet"))
2506
2538
  DescribeExportTasksResult.struct_class = Types::DescribeExportTasksResult
2507
2539
 
2540
+ DescribeFleetError.add_member(:launch_template_and_overrides, Shapes::ShapeRef.new(shape: LaunchTemplateAndOverridesResponse, location_name: "launchTemplateAndOverrides"))
2541
+ DescribeFleetError.add_member(:lifecycle, Shapes::ShapeRef.new(shape: InstanceLifecycle, location_name: "lifecycle"))
2542
+ DescribeFleetError.add_member(:error_code, Shapes::ShapeRef.new(shape: String, location_name: "errorCode"))
2543
+ DescribeFleetError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "errorMessage"))
2544
+ DescribeFleetError.struct_class = Types::DescribeFleetError
2545
+
2508
2546
  DescribeFleetHistoryRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
2509
2547
  DescribeFleetHistoryRequest.add_member(:event_type, Shapes::ShapeRef.new(shape: FleetEventType, location_name: "EventType"))
2510
2548
  DescribeFleetHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
@@ -2532,6 +2570,17 @@ module Aws::EC2
2532
2570
  DescribeFleetInstancesResult.add_member(:fleet_id, Shapes::ShapeRef.new(shape: FleetIdentifier, location_name: "fleetId"))
2533
2571
  DescribeFleetInstancesResult.struct_class = Types::DescribeFleetInstancesResult
2534
2572
 
2573
+ DescribeFleetsErrorSet.member = Shapes::ShapeRef.new(shape: DescribeFleetError, location_name: "item")
2574
+
2575
+ DescribeFleetsInstances.add_member(:launch_template_and_overrides, Shapes::ShapeRef.new(shape: LaunchTemplateAndOverridesResponse, location_name: "launchTemplateAndOverrides"))
2576
+ DescribeFleetsInstances.add_member(:lifecycle, Shapes::ShapeRef.new(shape: InstanceLifecycle, location_name: "lifecycle"))
2577
+ DescribeFleetsInstances.add_member(:instance_ids, Shapes::ShapeRef.new(shape: InstanceIdsSet, location_name: "instanceIds"))
2578
+ DescribeFleetsInstances.add_member(:instance_type, Shapes::ShapeRef.new(shape: InstanceType, location_name: "instanceType"))
2579
+ DescribeFleetsInstances.add_member(:platform, Shapes::ShapeRef.new(shape: PlatformValues, location_name: "platform"))
2580
+ DescribeFleetsInstances.struct_class = Types::DescribeFleetsInstances
2581
+
2582
+ DescribeFleetsInstancesSet.member = Shapes::ShapeRef.new(shape: DescribeFleetsInstances, location_name: "item")
2583
+
2535
2584
  DescribeFleetsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
2536
2585
  DescribeFleetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
2537
2586
  DescribeFleetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
@@ -3504,6 +3553,8 @@ module Aws::EC2
3504
3553
  FleetData.add_member(:spot_options, Shapes::ShapeRef.new(shape: SpotOptions, location_name: "spotOptions"))
3505
3554
  FleetData.add_member(:on_demand_options, Shapes::ShapeRef.new(shape: OnDemandOptions, location_name: "onDemandOptions"))
3506
3555
  FleetData.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
3556
+ FleetData.add_member(:errors, Shapes::ShapeRef.new(shape: DescribeFleetsErrorSet, location_name: "errorSet"))
3557
+ FleetData.add_member(:instances, Shapes::ShapeRef.new(shape: DescribeFleetsInstancesSet, location_name: "fleetInstanceSet"))
3507
3558
  FleetData.struct_class = Types::FleetData
3508
3559
 
3509
3560
  FleetIdSet.member = Shapes::ShapeRef.new(shape: FleetIdentifier)
@@ -3526,6 +3577,7 @@ module Aws::EC2
3526
3577
  FleetLaunchTemplateOverrides.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
3527
3578
  FleetLaunchTemplateOverrides.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: Double, location_name: "weightedCapacity"))
3528
3579
  FleetLaunchTemplateOverrides.add_member(:priority, Shapes::ShapeRef.new(shape: Double, location_name: "priority"))
3580
+ FleetLaunchTemplateOverrides.add_member(:placement, Shapes::ShapeRef.new(shape: PlacementResponse, location_name: "placement"))
3529
3581
  FleetLaunchTemplateOverrides.struct_class = Types::FleetLaunchTemplateOverrides
3530
3582
 
3531
3583
  FleetLaunchTemplateOverridesList.member = Shapes::ShapeRef.new(shape: FleetLaunchTemplateOverrides, location_name: "item")
@@ -3538,6 +3590,7 @@ module Aws::EC2
3538
3590
  FleetLaunchTemplateOverridesRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZone"))
3539
3591
  FleetLaunchTemplateOverridesRequest.add_member(:weighted_capacity, Shapes::ShapeRef.new(shape: Double, location_name: "WeightedCapacity"))
3540
3592
  FleetLaunchTemplateOverridesRequest.add_member(:priority, Shapes::ShapeRef.new(shape: Double, location_name: "Priority"))
3593
+ FleetLaunchTemplateOverridesRequest.add_member(:placement, Shapes::ShapeRef.new(shape: Placement, location_name: "Placement"))
3541
3594
  FleetLaunchTemplateOverridesRequest.struct_class = Types::FleetLaunchTemplateOverridesRequest
3542
3595
 
3543
3596
  FleetLaunchTemplateSpecification.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateId"))
@@ -4065,6 +4118,8 @@ module Aws::EC2
4065
4118
 
4066
4119
  InstanceIdStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "InstanceId")
4067
4120
 
4121
+ InstanceIdsSet.member = Shapes::ShapeRef.new(shape: InstanceId, location_name: "item")
4122
+
4068
4123
  InstanceIpv6Address.add_member(:ipv_6_address, Shapes::ShapeRef.new(shape: String, location_name: "ipv6Address"))
4069
4124
  InstanceIpv6Address.struct_class = Types::InstanceIpv6Address
4070
4125
 
@@ -4280,6 +4335,10 @@ module Aws::EC2
4280
4335
  LaunchTemplate.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
4281
4336
  LaunchTemplate.struct_class = Types::LaunchTemplate
4282
4337
 
4338
+ LaunchTemplateAndOverridesResponse.add_member(:launch_template_specification, Shapes::ShapeRef.new(shape: FleetLaunchTemplateSpecification, location_name: "launchTemplateSpecification"))
4339
+ LaunchTemplateAndOverridesResponse.add_member(:overrides, Shapes::ShapeRef.new(shape: FleetLaunchTemplateOverrides, location_name: "overrides"))
4340
+ LaunchTemplateAndOverridesResponse.struct_class = Types::LaunchTemplateAndOverridesResponse
4341
+
4283
4342
  LaunchTemplateBlockDeviceMapping.add_member(:device_name, Shapes::ShapeRef.new(shape: String, location_name: "deviceName"))
4284
4343
  LaunchTemplateBlockDeviceMapping.add_member(:virtual_name, Shapes::ShapeRef.new(shape: String, location_name: "virtualName"))
4285
4344
  LaunchTemplateBlockDeviceMapping.add_member(:ebs, Shapes::ShapeRef.new(shape: LaunchTemplateEbsBlockDevice, location_name: "ebs"))
@@ -4883,9 +4942,13 @@ module Aws::EC2
4883
4942
  OccurrenceDaySet.member = Shapes::ShapeRef.new(shape: Integer, location_name: "item")
4884
4943
 
4885
4944
  OnDemandOptions.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: FleetOnDemandAllocationStrategy, location_name: "allocationStrategy"))
4945
+ OnDemandOptions.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleInstanceType"))
4946
+ OnDemandOptions.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "minTargetCapacity"))
4886
4947
  OnDemandOptions.struct_class = Types::OnDemandOptions
4887
4948
 
4888
4949
  OnDemandOptionsRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: FleetOnDemandAllocationStrategy, location_name: "AllocationStrategy"))
4950
+ OnDemandOptionsRequest.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleInstanceType"))
4951
+ OnDemandOptionsRequest.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "MinTargetCapacity"))
4889
4952
  OnDemandOptionsRequest.struct_class = Types::OnDemandOptionsRequest
4890
4953
 
4891
4954
  OwnerStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "Owner")
@@ -4923,6 +4986,9 @@ module Aws::EC2
4923
4986
 
4924
4987
  PlacementGroupStringList.member = Shapes::ShapeRef.new(shape: String)
4925
4988
 
4989
+ PlacementResponse.add_member(:group_name, Shapes::ShapeRef.new(shape: String, location_name: "groupName"))
4990
+ PlacementResponse.struct_class = Types::PlacementResponse
4991
+
4926
4992
  PortRange.add_member(:from, Shapes::ShapeRef.new(shape: Integer, location_name: "from"))
4927
4993
  PortRange.add_member(:to, Shapes::ShapeRef.new(shape: Integer, location_name: "to"))
4928
4994
  PortRange.struct_class = Types::PortRange
@@ -5927,11 +5993,15 @@ module Aws::EC2
5927
5993
  SpotOptions.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: SpotAllocationStrategy, location_name: "allocationStrategy"))
5928
5994
  SpotOptions.add_member(:instance_interruption_behavior, Shapes::ShapeRef.new(shape: SpotInstanceInterruptionBehavior, location_name: "instanceInterruptionBehavior"))
5929
5995
  SpotOptions.add_member(:instance_pools_to_use_count, Shapes::ShapeRef.new(shape: Integer, location_name: "instancePoolsToUseCount"))
5996
+ SpotOptions.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "singleInstanceType"))
5997
+ SpotOptions.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "minTargetCapacity"))
5930
5998
  SpotOptions.struct_class = Types::SpotOptions
5931
5999
 
5932
6000
  SpotOptionsRequest.add_member(:allocation_strategy, Shapes::ShapeRef.new(shape: SpotAllocationStrategy, location_name: "AllocationStrategy"))
5933
6001
  SpotOptionsRequest.add_member(:instance_interruption_behavior, Shapes::ShapeRef.new(shape: SpotInstanceInterruptionBehavior, location_name: "InstanceInterruptionBehavior"))
5934
6002
  SpotOptionsRequest.add_member(:instance_pools_to_use_count, Shapes::ShapeRef.new(shape: Integer, location_name: "InstancePoolsToUseCount"))
6003
+ SpotOptionsRequest.add_member(:single_instance_type, Shapes::ShapeRef.new(shape: Boolean, location_name: "SingleInstanceType"))
6004
+ SpotOptionsRequest.add_member(:min_target_capacity, Shapes::ShapeRef.new(shape: Integer, location_name: "MinTargetCapacity"))
5935
6005
  SpotOptionsRequest.struct_class = Types::SpotOptionsRequest
5936
6006
 
5937
6007
  SpotPlacement.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZone"))
@@ -3456,6 +3456,85 @@ module Aws::EC2
3456
3456
  include Aws::Structure
3457
3457
  end
3458
3458
 
3459
+ # Describes the instances that could not be launched by the fleet.
3460
+ #
3461
+ # @!attribute [rw] launch_template_and_overrides
3462
+ # The launch templates and overrides that were used for launching the
3463
+ # instances. Any parameters that you specify in the Overrides override
3464
+ # the same parameters in the launch template.
3465
+ # @return [Types::LaunchTemplateAndOverridesResponse]
3466
+ #
3467
+ # @!attribute [rw] lifecycle
3468
+ # Indicates if the instance that could not be launched was a Spot
3469
+ # Instance or On-Demand Instance.
3470
+ # @return [String]
3471
+ #
3472
+ # @!attribute [rw] error_code
3473
+ # The error code that indicates why the instance could not be
3474
+ # launched. For more information about error codes, see [Error
3475
+ # Codes][1].
3476
+ #
3477
+ #
3478
+ #
3479
+ # [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html
3480
+ # @return [String]
3481
+ #
3482
+ # @!attribute [rw] error_message
3483
+ # The error message that describes why the instance could not be
3484
+ # launched. For more information about error messages, see ee [Error
3485
+ # Codes][1].
3486
+ #
3487
+ #
3488
+ #
3489
+ # [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html
3490
+ # @return [String]
3491
+ #
3492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleetError AWS API Documentation
3493
+ #
3494
+ class CreateFleetError < Struct.new(
3495
+ :launch_template_and_overrides,
3496
+ :lifecycle,
3497
+ :error_code,
3498
+ :error_message)
3499
+ include Aws::Structure
3500
+ end
3501
+
3502
+ # Describes the instances that were launched by the fleet.
3503
+ #
3504
+ # @!attribute [rw] launch_template_and_overrides
3505
+ # The launch templates and overrides that were used for launching the
3506
+ # instances. Any parameters that you specify in the Overrides override
3507
+ # the same parameters in the launch template.
3508
+ # @return [Types::LaunchTemplateAndOverridesResponse]
3509
+ #
3510
+ # @!attribute [rw] lifecycle
3511
+ # Indicates if the instance that was launched is a Spot Instance or
3512
+ # On-Demand Instance.
3513
+ # @return [String]
3514
+ #
3515
+ # @!attribute [rw] instance_ids
3516
+ # The IDs of the instances.
3517
+ # @return [Array<String>]
3518
+ #
3519
+ # @!attribute [rw] instance_type
3520
+ # The instance type.
3521
+ # @return [String]
3522
+ #
3523
+ # @!attribute [rw] platform
3524
+ # The value is `Windows` for Windows instances; otherwise blank.
3525
+ # @return [String]
3526
+ #
3527
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleetInstance AWS API Documentation
3528
+ #
3529
+ class CreateFleetInstance < Struct.new(
3530
+ :launch_template_and_overrides,
3531
+ :lifecycle,
3532
+ :instance_ids,
3533
+ :instance_type,
3534
+ :platform)
3535
+ include Aws::Structure
3536
+ end
3537
+
3459
3538
  # @note When making an API call, you may pass CreateFleetRequest
3460
3539
  # data as a hash:
3461
3540
  #
@@ -3466,9 +3545,13 @@ module Aws::EC2
3466
3545
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified
3467
3546
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
3468
3547
  # instance_pools_to_use_count: 1,
3548
+ # single_instance_type: false,
3549
+ # min_target_capacity: 1,
3469
3550
  # },
3470
3551
  # on_demand_options: {
3471
3552
  # allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
3553
+ # single_instance_type: false,
3554
+ # min_target_capacity: 1,
3472
3555
  # },
3473
3556
  # excess_capacity_termination_policy: "no-termination", # accepts no-termination, termination
3474
3557
  # launch_template_configs: [ # required
@@ -3486,6 +3569,14 @@ module Aws::EC2
3486
3569
  # availability_zone: "String",
3487
3570
  # weighted_capacity: 1.0,
3488
3571
  # priority: 1.0,
3572
+ # placement: {
3573
+ # availability_zone: "String",
3574
+ # affinity: "String",
3575
+ # group_name: "String",
3576
+ # host_id: "String",
3577
+ # tenancy: "default", # accepts default, dedicated, host
3578
+ # spread_domain: "String",
3579
+ # },
3489
3580
  # },
3490
3581
  # ],
3491
3582
  # },
@@ -3497,7 +3588,7 @@ module Aws::EC2
3497
3588
  # default_target_capacity_type: "spot", # accepts spot, on-demand
3498
3589
  # },
3499
3590
  # terminate_instances_with_expiration: false,
3500
- # type: "request", # accepts request, maintain
3591
+ # type: "request", # accepts request, maintain, instant
3501
3592
  # valid_from: Time.now,
3502
3593
  # valid_until: Time.now,
3503
3594
  # replace_unhealthy_instances: false,
@@ -3560,15 +3651,15 @@ module Aws::EC2
3560
3651
  # @return [Boolean]
3561
3652
  #
3562
3653
  # @!attribute [rw] type
3563
- # The type of request. Indicates whether the EC2 Fleet only `requests`
3564
- # the target capacity, or also attempts to `maintain` it. If you
3565
- # request a certain target capacity, EC2 Fleet only places the
3566
- # required requests. It does not attempt to replenish instances if
3567
- # capacity is diminished, and does not submit requests in alternative
3568
- # capacity pools if capacity is unavailable. To maintain a certain
3569
- # target capacity, EC2 Fleet places the required requests to meet this
3570
- # target capacity. It also automatically replenishes any interrupted
3571
- # Spot Instances. Default: `maintain`.
3654
+ # The type of request. `instant` indicates whether the EC2 Fleet
3655
+ # submits a one-time request for your desired capacity. `request`
3656
+ # indicates whether the EC2 Fleet submits ongoing requests until your
3657
+ # desired capacity is fulfilled, but does not attempt to submit
3658
+ # requests in alternative capacity pools if capacity is unavailable or
3659
+ # maintain the capacity. `maintain` indicates whether the EC2 Fleet
3660
+ # submits ongoing requests until your desired capacity is fulfilled,
3661
+ # and continues to maintain your desired capacity by replenishing
3662
+ # interrupted Spot Instances. Default: `maintain`.
3572
3663
  # @return [String]
3573
3664
  #
3574
3665
  # @!attribute [rw] valid_from
@@ -3624,10 +3715,22 @@ module Aws::EC2
3624
3715
  # The ID of the EC2 Fleet.
3625
3716
  # @return [String]
3626
3717
  #
3718
+ # @!attribute [rw] errors
3719
+ # Information about the instances that could not be launched by the
3720
+ # fleet. Valid only when **Type** is set to `instant`.
3721
+ # @return [Array<Types::CreateFleetError>]
3722
+ #
3723
+ # @!attribute [rw] instances
3724
+ # Information about the instances that were launched by the fleet.
3725
+ # Valid only when **Type** is set to `instant`.
3726
+ # @return [Array<Types::CreateFleetInstance>]
3727
+ #
3627
3728
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateFleetResult AWS API Documentation
3628
3729
  #
3629
3730
  class CreateFleetResult < Struct.new(
3630
- :fleet_id)
3731
+ :fleet_id,
3732
+ :errors,
3733
+ :instances)
3631
3734
  include Aws::Structure
3632
3735
  end
3633
3736
 
@@ -8295,6 +8398,49 @@ module Aws::EC2
8295
8398
  include Aws::Structure
8296
8399
  end
8297
8400
 
8401
+ # Describes the instances that could not be launched by the fleet.
8402
+ #
8403
+ # @!attribute [rw] launch_template_and_overrides
8404
+ # The launch templates and overrides that were used for launching the
8405
+ # instances. Any parameters that you specify in the Overrides override
8406
+ # the same parameters in the launch template.
8407
+ # @return [Types::LaunchTemplateAndOverridesResponse]
8408
+ #
8409
+ # @!attribute [rw] lifecycle
8410
+ # Indicates if the instance that could not be launched was a Spot
8411
+ # Instance or On-Demand Instance.
8412
+ # @return [String]
8413
+ #
8414
+ # @!attribute [rw] error_code
8415
+ # The error code that indicates why the instance could not be
8416
+ # launched. For more information about error codes, see [Error
8417
+ # Codes][1].
8418
+ #
8419
+ #
8420
+ #
8421
+ # [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html
8422
+ # @return [String]
8423
+ #
8424
+ # @!attribute [rw] error_message
8425
+ # The error message that describes why the instance could not be
8426
+ # launched. For more information about error messages, see ee [Error
8427
+ # Codes][1].
8428
+ #
8429
+ #
8430
+ #
8431
+ # [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/errors-overview.html.html
8432
+ # @return [String]
8433
+ #
8434
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetError AWS API Documentation
8435
+ #
8436
+ class DescribeFleetError < Struct.new(
8437
+ :launch_template_and_overrides,
8438
+ :lifecycle,
8439
+ :error_code,
8440
+ :error_message)
8441
+ include Aws::Structure
8442
+ end
8443
+
8298
8444
  # @note When making an API call, you may pass DescribeFleetHistoryRequest
8299
8445
  # data as a hash:
8300
8446
  #
@@ -8467,6 +8613,42 @@ module Aws::EC2
8467
8613
  include Aws::Structure
8468
8614
  end
8469
8615
 
8616
+ # Describes the instances that were launched by the fleet.
8617
+ #
8618
+ # @!attribute [rw] launch_template_and_overrides
8619
+ # The launch templates and overrides that were used for launching the
8620
+ # instances. Any parameters that you specify in the Overrides override
8621
+ # the same parameters in the launch template.
8622
+ # @return [Types::LaunchTemplateAndOverridesResponse]
8623
+ #
8624
+ # @!attribute [rw] lifecycle
8625
+ # Indicates if the instance that was launched is a Spot Instance or
8626
+ # On-Demand Instance.
8627
+ # @return [String]
8628
+ #
8629
+ # @!attribute [rw] instance_ids
8630
+ # The IDs of the instances.
8631
+ # @return [Array<String>]
8632
+ #
8633
+ # @!attribute [rw] instance_type
8634
+ # The instance type.
8635
+ # @return [String]
8636
+ #
8637
+ # @!attribute [rw] platform
8638
+ # The value is `Windows` for Windows instances; otherwise blank.
8639
+ # @return [String]
8640
+ #
8641
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetsInstances AWS API Documentation
8642
+ #
8643
+ class DescribeFleetsInstances < Struct.new(
8644
+ :launch_template_and_overrides,
8645
+ :lifecycle,
8646
+ :instance_ids,
8647
+ :instance_type,
8648
+ :platform)
8649
+ include Aws::Structure
8650
+ end
8651
+
8470
8652
  # @note When making an API call, you may pass DescribeFleetsRequest
8471
8653
  # data as a hash:
8472
8654
  #
@@ -8522,7 +8704,8 @@ module Aws::EC2
8522
8704
  # * `replace-unhealthy-instances` - Indicates whether EC2 Fleet should
8523
8705
  # replace unhealthy instances (`true` \| `false`).
8524
8706
  #
8525
- # * `type` - The type of request (`request` \| `maintain`).
8707
+ # * `type` - The type of request (`instant` \| `request` \|
8708
+ # `maintain`).
8526
8709
  # @return [Array<Types::Filter>]
8527
8710
  #
8528
8711
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFleetsRequest AWS API Documentation
@@ -10415,7 +10598,7 @@ module Aws::EC2
10415
10598
  # @!attribute [rw] max_results
10416
10599
  # The maximum number of results to return in a single call. To
10417
10600
  # retrieve the remaining results, make another call with the returned
10418
- # `NextToken` value. This value can be between 5 and 1000.
10601
+ # `NextToken` value. This value can be between 1 and 200.
10419
10602
  # @return [Integer]
10420
10603
  #
10421
10604
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeLaunchTemplatesRequest AWS API Documentation
@@ -16199,6 +16382,16 @@ module Aws::EC2
16199
16382
  # The tags for an EC2 Fleet resource.
16200
16383
  # @return [Array<Types::Tag>]
16201
16384
  #
16385
+ # @!attribute [rw] errors
16386
+ # Information about the instances that could not be launched by the
16387
+ # fleet. Valid only when **Type** is set to `instant`.
16388
+ # @return [Array<Types::DescribeFleetError>]
16389
+ #
16390
+ # @!attribute [rw] instances
16391
+ # Information about the instances that were launched by the fleet.
16392
+ # Valid only when **Type** is set to `instant`.
16393
+ # @return [Array<Types::DescribeFleetsInstances>]
16394
+ #
16202
16395
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetData AWS API Documentation
16203
16396
  #
16204
16397
  class FleetData < Struct.new(
@@ -16219,7 +16412,9 @@ module Aws::EC2
16219
16412
  :replace_unhealthy_instances,
16220
16413
  :spot_options,
16221
16414
  :on_demand_options,
16222
- :tags)
16415
+ :tags,
16416
+ :errors,
16417
+ :instances)
16223
16418
  include Aws::Structure
16224
16419
  end
16225
16420
 
@@ -16261,6 +16456,14 @@ module Aws::EC2
16261
16456
  # availability_zone: "String",
16262
16457
  # weighted_capacity: 1.0,
16263
16458
  # priority: 1.0,
16459
+ # placement: {
16460
+ # availability_zone: "String",
16461
+ # affinity: "String",
16462
+ # group_name: "String",
16463
+ # host_id: "String",
16464
+ # tenancy: "default", # accepts default, dedicated, host
16465
+ # spread_domain: "String",
16466
+ # },
16264
16467
  # },
16265
16468
  # ],
16266
16469
  # }
@@ -16316,6 +16519,10 @@ module Aws::EC2
16316
16519
  # has the lowest priority.
16317
16520
  # @return [Float]
16318
16521
  #
16522
+ # @!attribute [rw] placement
16523
+ # The location where the instance launched, if applicable.
16524
+ # @return [Types::PlacementResponse]
16525
+ #
16319
16526
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetLaunchTemplateOverrides AWS API Documentation
16320
16527
  #
16321
16528
  class FleetLaunchTemplateOverrides < Struct.new(
@@ -16324,7 +16531,8 @@ module Aws::EC2
16324
16531
  :subnet_id,
16325
16532
  :availability_zone,
16326
16533
  :weighted_capacity,
16327
- :priority)
16534
+ :priority,
16535
+ :placement)
16328
16536
  include Aws::Structure
16329
16537
  end
16330
16538
 
@@ -16340,6 +16548,14 @@ module Aws::EC2
16340
16548
  # availability_zone: "String",
16341
16549
  # weighted_capacity: 1.0,
16342
16550
  # priority: 1.0,
16551
+ # placement: {
16552
+ # availability_zone: "String",
16553
+ # affinity: "String",
16554
+ # group_name: "String",
16555
+ # host_id: "String",
16556
+ # tenancy: "default", # accepts default, dedicated, host
16557
+ # spread_domain: "String",
16558
+ # },
16343
16559
  # }
16344
16560
  #
16345
16561
  # @!attribute [rw] instance_type
@@ -16373,6 +16589,10 @@ module Aws::EC2
16373
16589
  # template override has the lowest priority.
16374
16590
  # @return [Float]
16375
16591
  #
16592
+ # @!attribute [rw] placement
16593
+ # The location where the instance launched, if applicable.
16594
+ # @return [Types::Placement]
16595
+ #
16376
16596
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetLaunchTemplateOverridesRequest AWS API Documentation
16377
16597
  #
16378
16598
  class FleetLaunchTemplateOverridesRequest < Struct.new(
@@ -16381,7 +16601,8 @@ module Aws::EC2
16381
16601
  :subnet_id,
16382
16602
  :availability_zone,
16383
16603
  :weighted_capacity,
16384
- :priority)
16604
+ :priority,
16605
+ :placement)
16385
16606
  include Aws::Structure
16386
16607
  end
16387
16608
 
@@ -20157,6 +20378,25 @@ module Aws::EC2
20157
20378
  include Aws::Structure
20158
20379
  end
20159
20380
 
20381
+ # Describes a launch template and overrides.
20382
+ #
20383
+ # @!attribute [rw] launch_template_specification
20384
+ # The launch template.
20385
+ # @return [Types::FleetLaunchTemplateSpecification]
20386
+ #
20387
+ # @!attribute [rw] overrides
20388
+ # Any parameters that you specify override the same parameters in the
20389
+ # launch template.
20390
+ # @return [Types::FleetLaunchTemplateOverrides]
20391
+ #
20392
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateAndOverridesResponse AWS API Documentation
20393
+ #
20394
+ class LaunchTemplateAndOverridesResponse < Struct.new(
20395
+ :launch_template_specification,
20396
+ :overrides)
20397
+ include Aws::Structure
20398
+ end
20399
+
20160
20400
  # Describes a block device mapping.
20161
20401
  #
20162
20402
  # @!attribute [rw] device_name
@@ -23760,10 +24000,23 @@ module Aws::EC2
23760
24000
  # `lowest-price`.
23761
24001
  # @return [String]
23762
24002
  #
24003
+ # @!attribute [rw] single_instance_type
24004
+ # Indicates that the fleet uses a single instance type to launch all
24005
+ # On-Demand Instances in the fleet.
24006
+ # @return [Boolean]
24007
+ #
24008
+ # @!attribute [rw] min_target_capacity
24009
+ # The minimum target capacity for On-Demand Instances in the fleet. If
24010
+ # the minimum target capacity is not reached, the fleet launches no
24011
+ # instances.
24012
+ # @return [Integer]
24013
+ #
23763
24014
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/OnDemandOptions AWS API Documentation
23764
24015
  #
23765
24016
  class OnDemandOptions < Struct.new(
23766
- :allocation_strategy)
24017
+ :allocation_strategy,
24018
+ :single_instance_type,
24019
+ :min_target_capacity)
23767
24020
  include Aws::Structure
23768
24021
  end
23769
24022
 
@@ -23774,6 +24027,8 @@ module Aws::EC2
23774
24027
  #
23775
24028
  # {
23776
24029
  # allocation_strategy: "lowest-price", # accepts lowest-price, prioritized
24030
+ # single_instance_type: false,
24031
+ # min_target_capacity: 1,
23777
24032
  # }
23778
24033
  #
23779
24034
  # @!attribute [rw] allocation_strategy
@@ -23786,10 +24041,23 @@ module Aws::EC2
23786
24041
  # `lowest-price`.
23787
24042
  # @return [String]
23788
24043
  #
24044
+ # @!attribute [rw] single_instance_type
24045
+ # Indicates that the fleet uses a single instance type to launch all
24046
+ # On-Demand Instances in the fleet.
24047
+ # @return [Boolean]
24048
+ #
24049
+ # @!attribute [rw] min_target_capacity
24050
+ # The minimum target capacity for On-Demand Instances in the fleet. If
24051
+ # the minimum target capacity is not reached, the fleet launches no
24052
+ # instances.
24053
+ # @return [Integer]
24054
+ #
23789
24055
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/OnDemandOptionsRequest AWS API Documentation
23790
24056
  #
23791
24057
  class OnDemandOptionsRequest < Struct.new(
23792
- :allocation_strategy)
24058
+ :allocation_strategy,
24059
+ :single_instance_type,
24060
+ :min_target_capacity)
23793
24061
  include Aws::Structure
23794
24062
  end
23795
24063
 
@@ -23966,6 +24234,19 @@ module Aws::EC2
23966
24234
  include Aws::Structure
23967
24235
  end
23968
24236
 
24237
+ # Describes the placement of an instance.
24238
+ #
24239
+ # @!attribute [rw] group_name
24240
+ # The name of the placement group the instance is in.
24241
+ # @return [String]
24242
+ #
24243
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/PlacementResponse AWS API Documentation
24244
+ #
24245
+ class PlacementResponse < Struct.new(
24246
+ :group_name)
24247
+ include Aws::Structure
24248
+ end
24249
+
23969
24250
  # Describes a range of ports.
23970
24251
  #
23971
24252
  # @note When making an API call, you may pass PortRange
@@ -25864,7 +26145,7 @@ module Aws::EC2
25864
26145
  # target_capacity: 1, # required
25865
26146
  # on_demand_target_capacity: 1,
25866
26147
  # terminate_instances_with_expiration: false,
25867
- # type: "request", # accepts request, maintain
26148
+ # type: "request", # accepts request, maintain, instant
25868
26149
  # valid_from: Time.now,
25869
26150
  # valid_until: Time.now,
25870
26151
  # replace_unhealthy_instances: false,
@@ -29963,7 +30244,7 @@ module Aws::EC2
29963
30244
  # target_capacity: 1, # required
29964
30245
  # on_demand_target_capacity: 1,
29965
30246
  # terminate_instances_with_expiration: false,
29966
- # type: "request", # accepts request, maintain
30247
+ # type: "request", # accepts request, maintain, instant
29967
30248
  # valid_from: Time.now,
29968
30249
  # valid_until: Time.now,
29969
30250
  # replace_unhealthy_instances: false,
@@ -30427,12 +30708,25 @@ module Aws::EC2
30427
30708
  # that you specify.
30428
30709
  # @return [Integer]
30429
30710
  #
30711
+ # @!attribute [rw] single_instance_type
30712
+ # Indicates that the fleet uses a single instance type to launch all
30713
+ # Spot Instances in the fleet.
30714
+ # @return [Boolean]
30715
+ #
30716
+ # @!attribute [rw] min_target_capacity
30717
+ # The minimum target capacity for Spot Instances in the fleet. If the
30718
+ # minimum target capacity is not reached, the fleet launches no
30719
+ # instances.
30720
+ # @return [Integer]
30721
+ #
30430
30722
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotOptions AWS API Documentation
30431
30723
  #
30432
30724
  class SpotOptions < Struct.new(
30433
30725
  :allocation_strategy,
30434
30726
  :instance_interruption_behavior,
30435
- :instance_pools_to_use_count)
30727
+ :instance_pools_to_use_count,
30728
+ :single_instance_type,
30729
+ :min_target_capacity)
30436
30730
  include Aws::Structure
30437
30731
  end
30438
30732
 
@@ -30445,6 +30739,8 @@ module Aws::EC2
30445
30739
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified
30446
30740
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
30447
30741
  # instance_pools_to_use_count: 1,
30742
+ # single_instance_type: false,
30743
+ # min_target_capacity: 1,
30448
30744
  # }
30449
30745
  #
30450
30746
  # @!attribute [rw] allocation_strategy
@@ -30465,12 +30761,25 @@ module Aws::EC2
30465
30761
  # that you specify.
30466
30762
  # @return [Integer]
30467
30763
  #
30764
+ # @!attribute [rw] single_instance_type
30765
+ # Indicates that the fleet uses a single instance type to launch all
30766
+ # Spot Instances in the fleet.
30767
+ # @return [Boolean]
30768
+ #
30769
+ # @!attribute [rw] min_target_capacity
30770
+ # The minimum target capacity for Spot Instances in the fleet. If the
30771
+ # minimum target capacity is not reached, the fleet launches no
30772
+ # instances.
30773
+ # @return [Integer]
30774
+ #
30468
30775
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotOptionsRequest AWS API Documentation
30469
30776
  #
30470
30777
  class SpotOptionsRequest < Struct.new(
30471
30778
  :allocation_strategy,
30472
30779
  :instance_interruption_behavior,
30473
- :instance_pools_to_use_count)
30780
+ :instance_pools_to_use_count,
30781
+ :single_instance_type,
30782
+ :min_target_capacity)
30474
30783
  include Aws::Structure
30475
30784
  end
30476
30785
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.56.0
4
+ version: 1.57.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: 2018-11-07 00:00:00.000000000 Z
11
+ date: 2018-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4