aws-sdk-ec2 1.274.0 → 1.278.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 898edb5a4f9f6ca7c35d76f7c8d9b30640d7fc78465d662ba2d5495dbf9681dd
4
- data.tar.gz: 51f641cd18fd9656a062799aa293667ea7663668dbc8290256da0e3b59275f4e
3
+ metadata.gz: 274544329b71218d0b2b0909ae2469bea539c388cee2412c0b3e05e55983ef3c
4
+ data.tar.gz: a9913ba6db0c632b0b61a2ea389779a202a78371ca8310f83864f0cbe7d11edf
5
5
  SHA512:
6
- metadata.gz: 1160e20b35ab5666b239f4967fb1a9f8c50f1b80478252ea73b1428929ef5cb52f209fb8a37271e5f4dbc7d303adf92c1c5e039c632fc97be21038cbf1060f26
7
- data.tar.gz: 125bfe7d979294985367133fdeef8ce4b510e5da2dfc77e6c468f11d758bb69f800d73f93ae14d09bcf9e4dcdc8fc3b5c30b8dd58cdbdcedd33712c82c404697
6
+ metadata.gz: b293150a65824261ced83d4eeff8d50f5249f0b29b7e260e9cefbae8abcfcb400650ab5755bfc241011771697561660352303fd066ab58959d0a651ab03985bc
7
+ data.tar.gz: e0eca2feb56b5fadb02840b76045d143201864aede4ae5bad86080bd7d01ede010884f6b9db0c6ec4f1bc51cb9879d75a397d458ed9a35df9e4b299f5a2dbc0d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.278.0 (2021-11-08)
5
+ ------------------
6
+
7
+ * Feature - This release adds internal validation on the GatewayAssociationState field
8
+
9
+ 1.277.0 (2021-11-05)
10
+ ------------------
11
+
12
+ * Feature - DescribeInstances now returns customer-owned IP addresses for instances running on an AWS Outpost.
13
+
14
+ 1.276.0 (2021-11-04)
15
+ ------------------
16
+
17
+ * Feature - This release adds a new instance replacement strategy for EC2 Fleet, Spot Fleet. Now you can select an action to perform when your instance gets a rebalance notification. EC2 Fleet, Spot Fleet can launch a replacement then terminate the instance that received notification after a termination delay
18
+
19
+ 1.275.0 (2021-10-29)
20
+ ------------------
21
+
22
+ * Feature - Support added for AMI sharing with organizations and organizational units in ModifyImageAttribute API
23
+
4
24
  1.274.0 (2021-10-28)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.274.0
1
+ 1.278.0
@@ -279,6 +279,15 @@ module Aws::EC2
279
279
  # ** Please note ** When response stubbing is enabled, no HTTP
280
280
  # requests are made, and retries are disabled.
281
281
  #
282
+ # @option options [Boolean] :use_dualstack_endpoint
283
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
284
+ # will be used if available.
285
+ #
286
+ # @option options [Boolean] :use_fips_endpoint
287
+ # When set to `true`, fips compatible endpoints will be used if available.
288
+ # When a `fips` region is used, the region is normalized and this config
289
+ # is set to `true`.
290
+ #
282
291
  # @option options [Boolean] :validate_params (true)
283
292
  # When `true`, request parameters are validated before
284
293
  # sending the request.
@@ -5404,7 +5413,8 @@ module Aws::EC2
5404
5413
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
5405
5414
  # maintenance_strategies: {
5406
5415
  # capacity_rebalance: {
5407
- # replacement_strategy: "launch", # accepts launch
5416
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
5417
+ # termination_delay: 1,
5408
5418
  # },
5409
5419
  # },
5410
5420
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
@@ -12060,7 +12070,7 @@ module Aws::EC2
12060
12070
  # resp.vpn_connection.transit_gateway_id #=> String
12061
12071
  # resp.vpn_connection.core_network_arn #=> String
12062
12072
  # resp.vpn_connection.core_network_attachment_arn #=> String
12063
- # resp.vpn_connection.gateway_association_state #=> String
12073
+ # resp.vpn_connection.gateway_association_state #=> String, one of "associated", "not-associated", "associating", "disassociating"
12064
12074
  # resp.vpn_connection.options.enable_acceleration #=> Boolean
12065
12075
  # resp.vpn_connection.options.static_routes_only #=> Boolean
12066
12076
  # resp.vpn_connection.options.local_ipv_4_network_cidr #=> String
@@ -17715,7 +17725,8 @@ module Aws::EC2
17715
17725
  # resp.fleets[0].valid_until #=> Time
17716
17726
  # resp.fleets[0].replace_unhealthy_instances #=> Boolean
17717
17727
  # resp.fleets[0].spot_options.allocation_strategy #=> String, one of "lowest-price", "diversified", "capacity-optimized", "capacity-optimized-prioritized"
17718
- # resp.fleets[0].spot_options.maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch"
17728
+ # resp.fleets[0].spot_options.maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch", "launch-before-terminate"
17729
+ # resp.fleets[0].spot_options.maintenance_strategies.capacity_rebalance.termination_delay #=> Integer
17719
17730
  # resp.fleets[0].spot_options.instance_interruption_behavior #=> String, one of "hibernate", "stop", "terminate"
17720
17731
  # resp.fleets[0].spot_options.instance_pools_to_use_count #=> Integer
17721
17732
  # resp.fleets[0].spot_options.single_instance_type #=> Boolean
@@ -18717,6 +18728,8 @@ module Aws::EC2
18717
18728
  # resp.launch_permissions #=> Array
18718
18729
  # resp.launch_permissions[0].group #=> String, one of "all"
18719
18730
  # resp.launch_permissions[0].user_id #=> String
18731
+ # resp.launch_permissions[0].organization_arn #=> String
18732
+ # resp.launch_permissions[0].organizational_unit_arn #=> String
18720
18733
  # resp.product_codes #=> Array
18721
18734
  # resp.product_codes[0].product_code_id #=> String
18722
18735
  # resp.product_codes[0].product_code_type #=> String, one of "devpay", "marketplace"
@@ -18753,6 +18766,18 @@ module Aws::EC2
18753
18766
  # an Amazon Web Services account ID, `self` (the sender of the request),
18754
18767
  # or `all` (public AMIs).
18755
18768
  #
18769
+ # * If you specify an Amazon Web Services account ID that is not your
18770
+ # own, only AMIs shared with that specific Amazon Web Services account
18771
+ # ID are returned. However, AMIs that are shared with the account’s
18772
+ # organization or organizational unit (OU) are not returned.
18773
+ #
18774
+ # * If you specify `self` or your own Amazon Web Services account ID,
18775
+ # AMIs shared with your account are returned. In addition, AMIs that
18776
+ # are shared with the organization or OU of which you are member are
18777
+ # also returned.
18778
+ #
18779
+ # * If you specify `all`, all public AMIs are returned.
18780
+ #
18756
18781
  # @option params [Array<Types::Filter>] :filters
18757
18782
  # The filters.
18758
18783
  #
@@ -20620,6 +20645,7 @@ module Aws::EC2
20620
20645
  # resp.reservations[0].instances[0].elastic_inference_accelerator_associations[0].elastic_inference_accelerator_association_time #=> Time
20621
20646
  # resp.reservations[0].instances[0].network_interfaces #=> Array
20622
20647
  # resp.reservations[0].instances[0].network_interfaces[0].association.carrier_ip #=> String
20648
+ # resp.reservations[0].instances[0].network_interfaces[0].association.customer_owned_ip #=> String
20623
20649
  # resp.reservations[0].instances[0].network_interfaces[0].association.ip_owner_id #=> String
20624
20650
  # resp.reservations[0].instances[0].network_interfaces[0].association.public_dns_name #=> String
20625
20651
  # resp.reservations[0].instances[0].network_interfaces[0].association.public_ip #=> String
@@ -20642,6 +20668,7 @@ module Aws::EC2
20642
20668
  # resp.reservations[0].instances[0].network_interfaces[0].private_ip_address #=> String
20643
20669
  # resp.reservations[0].instances[0].network_interfaces[0].private_ip_addresses #=> Array
20644
20670
  # resp.reservations[0].instances[0].network_interfaces[0].private_ip_addresses[0].association.carrier_ip #=> String
20671
+ # resp.reservations[0].instances[0].network_interfaces[0].private_ip_addresses[0].association.customer_owned_ip #=> String
20645
20672
  # resp.reservations[0].instances[0].network_interfaces[0].private_ip_addresses[0].association.ip_owner_id #=> String
20646
20673
  # resp.reservations[0].instances[0].network_interfaces[0].private_ip_addresses[0].association.public_dns_name #=> String
20647
20674
  # resp.reservations[0].instances[0].network_interfaces[0].private_ip_addresses[0].association.public_ip #=> String
@@ -25980,7 +26007,8 @@ module Aws::EC2
25980
26007
  # resp.spot_fleet_request_configs[0].create_time #=> Time
25981
26008
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.allocation_strategy #=> String, one of "lowestPrice", "diversified", "capacityOptimized", "capacityOptimizedPrioritized"
25982
26009
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.on_demand_allocation_strategy #=> String, one of "lowestPrice", "prioritized"
25983
- # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch"
26010
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.replacement_strategy #=> String, one of "launch", "launch-before-terminate"
26011
+ # resp.spot_fleet_request_configs[0].spot_fleet_request_config.spot_maintenance_strategies.capacity_rebalance.termination_delay #=> Integer
25984
26012
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.client_token #=> String
25985
26013
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.excess_capacity_termination_policy #=> String, one of "noTermination", "default"
25986
26014
  # resp.spot_fleet_request_configs[0].spot_fleet_request_config.fulfilled_capacity #=> Float
@@ -30010,7 +30038,7 @@ module Aws::EC2
30010
30038
  # resp.vpn_connections[0].transit_gateway_id #=> String
30011
30039
  # resp.vpn_connections[0].core_network_arn #=> String
30012
30040
  # resp.vpn_connections[0].core_network_attachment_arn #=> String
30013
- # resp.vpn_connections[0].gateway_association_state #=> String
30041
+ # resp.vpn_connections[0].gateway_association_state #=> String, one of "associated", "not-associated", "associating", "disassociating"
30014
30042
  # resp.vpn_connections[0].options.enable_acceleration #=> Boolean
30015
30043
  # resp.vpn_connections[0].options.static_routes_only #=> Boolean
30016
30044
  # resp.vpn_connections[0].options.local_ipv_4_network_cidr #=> String
@@ -35919,8 +35947,9 @@ module Aws::EC2
35919
35947
  # the instance.
35920
35948
  #
35921
35949
  # @option params [String] :attribute
35922
- # The name of the attribute to modify. The valid values are
35923
- # `description` and `launchPermission`.
35950
+ # The name of the attribute to modify.
35951
+ #
35952
+ # Valid values: `description` \| `launchPermission`
35924
35953
  #
35925
35954
  # @option params [Types::AttributeValue] :description
35926
35955
  # A new description for the AMI.
@@ -35956,6 +35985,15 @@ module Aws::EC2
35956
35985
  # If you have the required permissions, the error response is
35957
35986
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
35958
35987
  #
35988
+ # @option params [Array<String>] :organization_arns
35989
+ # The Amazon Resource Name (ARN) of an organization. This parameter can
35990
+ # be used only when the `Attribute` parameter is `launchPermission`.
35991
+ #
35992
+ # @option params [Array<String>] :organizational_unit_arns
35993
+ # The Amazon Resource Name (ARN) of an organizational unit (OU). This
35994
+ # parameter can be used only when the `Attribute` parameter is
35995
+ # `launchPermission`.
35996
+ #
35959
35997
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
35960
35998
  #
35961
35999
  #
@@ -36008,12 +36046,16 @@ module Aws::EC2
36008
36046
  # {
36009
36047
  # group: "all", # accepts all
36010
36048
  # user_id: "String",
36049
+ # organization_arn: "String",
36050
+ # organizational_unit_arn: "String",
36011
36051
  # },
36012
36052
  # ],
36013
36053
  # remove: [
36014
36054
  # {
36015
36055
  # group: "all", # accepts all
36016
36056
  # user_id: "String",
36057
+ # organization_arn: "String",
36058
+ # organizational_unit_arn: "String",
36017
36059
  # },
36018
36060
  # ],
36019
36061
  # },
@@ -36023,6 +36065,8 @@ module Aws::EC2
36023
36065
  # user_ids: ["String"],
36024
36066
  # value: "String",
36025
36067
  # dry_run: false,
36068
+ # organization_arns: ["String"],
36069
+ # organizational_unit_arns: ["String"],
36026
36070
  # })
36027
36071
  #
36028
36072
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttribute AWS API Documentation
@@ -38754,7 +38798,7 @@ module Aws::EC2
38754
38798
  # resp.vpn_connection.transit_gateway_id #=> String
38755
38799
  # resp.vpn_connection.core_network_arn #=> String
38756
38800
  # resp.vpn_connection.core_network_attachment_arn #=> String
38757
- # resp.vpn_connection.gateway_association_state #=> String
38801
+ # resp.vpn_connection.gateway_association_state #=> String, one of "associated", "not-associated", "associating", "disassociating"
38758
38802
  # resp.vpn_connection.options.enable_acceleration #=> Boolean
38759
38803
  # resp.vpn_connection.options.static_routes_only #=> Boolean
38760
38804
  # resp.vpn_connection.options.local_ipv_4_network_cidr #=> String
@@ -38878,7 +38922,7 @@ module Aws::EC2
38878
38922
  # resp.vpn_connection.transit_gateway_id #=> String
38879
38923
  # resp.vpn_connection.core_network_arn #=> String
38880
38924
  # resp.vpn_connection.core_network_attachment_arn #=> String
38881
- # resp.vpn_connection.gateway_association_state #=> String
38925
+ # resp.vpn_connection.gateway_association_state #=> String, one of "associated", "not-associated", "associating", "disassociating"
38882
38926
  # resp.vpn_connection.options.enable_acceleration #=> Boolean
38883
38927
  # resp.vpn_connection.options.static_routes_only #=> Boolean
38884
38928
  # resp.vpn_connection.options.local_ipv_4_network_cidr #=> String
@@ -38975,7 +39019,7 @@ module Aws::EC2
38975
39019
  # resp.vpn_connection.transit_gateway_id #=> String
38976
39020
  # resp.vpn_connection.core_network_arn #=> String
38977
39021
  # resp.vpn_connection.core_network_attachment_arn #=> String
38978
- # resp.vpn_connection.gateway_association_state #=> String
39022
+ # resp.vpn_connection.gateway_association_state #=> String, one of "associated", "not-associated", "associating", "disassociating"
38979
39023
  # resp.vpn_connection.options.enable_acceleration #=> Boolean
38980
39024
  # resp.vpn_connection.options.static_routes_only #=> Boolean
38981
39025
  # resp.vpn_connection.options.local_ipv_4_network_cidr #=> String
@@ -39132,7 +39176,7 @@ module Aws::EC2
39132
39176
  # resp.vpn_connection.transit_gateway_id #=> String
39133
39177
  # resp.vpn_connection.core_network_arn #=> String
39134
39178
  # resp.vpn_connection.core_network_attachment_arn #=> String
39135
- # resp.vpn_connection.gateway_association_state #=> String
39179
+ # resp.vpn_connection.gateway_association_state #=> String, one of "associated", "not-associated", "associating", "disassociating"
39136
39180
  # resp.vpn_connection.options.enable_acceleration #=> Boolean
39137
39181
  # resp.vpn_connection.options.static_routes_only #=> Boolean
39138
39182
  # resp.vpn_connection.options.local_ipv_4_network_cidr #=> String
@@ -41222,7 +41266,8 @@ module Aws::EC2
41222
41266
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
41223
41267
  # spot_maintenance_strategies: {
41224
41268
  # capacity_rebalance: {
41225
- # replacement_strategy: "launch", # accepts launch
41269
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
41270
+ # termination_delay: 1,
41226
41271
  # },
41227
41272
  # },
41228
41273
  # client_token: "String",
@@ -43381,6 +43426,7 @@ module Aws::EC2
43381
43426
  # resp.instances[0].elastic_inference_accelerator_associations[0].elastic_inference_accelerator_association_time #=> Time
43382
43427
  # resp.instances[0].network_interfaces #=> Array
43383
43428
  # resp.instances[0].network_interfaces[0].association.carrier_ip #=> String
43429
+ # resp.instances[0].network_interfaces[0].association.customer_owned_ip #=> String
43384
43430
  # resp.instances[0].network_interfaces[0].association.ip_owner_id #=> String
43385
43431
  # resp.instances[0].network_interfaces[0].association.public_dns_name #=> String
43386
43432
  # resp.instances[0].network_interfaces[0].association.public_ip #=> String
@@ -43403,6 +43449,7 @@ module Aws::EC2
43403
43449
  # resp.instances[0].network_interfaces[0].private_ip_address #=> String
43404
43450
  # resp.instances[0].network_interfaces[0].private_ip_addresses #=> Array
43405
43451
  # resp.instances[0].network_interfaces[0].private_ip_addresses[0].association.carrier_ip #=> String
43452
+ # resp.instances[0].network_interfaces[0].private_ip_addresses[0].association.customer_owned_ip #=> String
43406
43453
  # resp.instances[0].network_interfaces[0].private_ip_addresses[0].association.ip_owner_id #=> String
43407
43454
  # resp.instances[0].network_interfaces[0].private_ip_addresses[0].association.public_dns_name #=> String
43408
43455
  # resp.instances[0].network_interfaces[0].private_ip_addresses[0].association.public_ip #=> String
@@ -45181,7 +45228,7 @@ module Aws::EC2
45181
45228
  params: params,
45182
45229
  config: config)
45183
45230
  context[:gem_name] = 'aws-sdk-ec2'
45184
- context[:gem_version] = '1.274.0'
45231
+ context[:gem_version] = '1.278.0'
45185
45232
  Seahorse::Client::Request.new(handlers, context)
45186
45233
  end
45187
45234
 
@@ -1132,6 +1132,7 @@ module Aws::EC2
1132
1132
  FpgaInfo = Shapes::StructureShape.new(name: 'FpgaInfo')
1133
1133
  FreeTierEligibleFlag = Shapes::BooleanShape.new(name: 'FreeTierEligibleFlag')
1134
1134
  GVCDMaxResults = Shapes::IntegerShape.new(name: 'GVCDMaxResults')
1135
+ GatewayAssociationState = Shapes::StringShape.new(name: 'GatewayAssociationState')
1135
1136
  GatewayType = Shapes::StringShape.new(name: 'GatewayType')
1136
1137
  GetAssociatedEnclaveCertificateIamRolesRequest = Shapes::StructureShape.new(name: 'GetAssociatedEnclaveCertificateIamRolesRequest')
1137
1138
  GetAssociatedEnclaveCertificateIamRolesResult = Shapes::StructureShape.new(name: 'GetAssociatedEnclaveCertificateIamRolesResult')
@@ -1750,6 +1751,8 @@ module Aws::EC2
1750
1751
  OnDemandOptions = Shapes::StructureShape.new(name: 'OnDemandOptions')
1751
1752
  OnDemandOptionsRequest = Shapes::StructureShape.new(name: 'OnDemandOptionsRequest')
1752
1753
  OperationType = Shapes::StringShape.new(name: 'OperationType')
1754
+ OrganizationArnStringList = Shapes::ListShape.new(name: 'OrganizationArnStringList')
1755
+ OrganizationalUnitArnStringList = Shapes::ListShape.new(name: 'OrganizationalUnitArnStringList')
1753
1756
  OutpostArn = Shapes::StringShape.new(name: 'OutpostArn')
1754
1757
  OwnerStringList = Shapes::ListShape.new(name: 'OwnerStringList')
1755
1758
  PartitionLoadFrequency = Shapes::StringShape.new(name: 'PartitionLoadFrequency')
@@ -6841,9 +6844,11 @@ module Aws::EC2
6841
6844
  FleetSet.member = Shapes::ShapeRef.new(shape: FleetData, location_name: "item")
6842
6845
 
6843
6846
  FleetSpotCapacityRebalance.add_member(:replacement_strategy, Shapes::ShapeRef.new(shape: FleetReplacementStrategy, location_name: "replacementStrategy"))
6847
+ FleetSpotCapacityRebalance.add_member(:termination_delay, Shapes::ShapeRef.new(shape: Integer, location_name: "terminationDelay"))
6844
6848
  FleetSpotCapacityRebalance.struct_class = Types::FleetSpotCapacityRebalance
6845
6849
 
6846
6850
  FleetSpotCapacityRebalanceRequest.add_member(:replacement_strategy, Shapes::ShapeRef.new(shape: FleetReplacementStrategy, location_name: "ReplacementStrategy"))
6851
+ FleetSpotCapacityRebalanceRequest.add_member(:termination_delay, Shapes::ShapeRef.new(shape: Integer, location_name: "TerminationDelay"))
6847
6852
  FleetSpotCapacityRebalanceRequest.struct_class = Types::FleetSpotCapacityRebalanceRequest
6848
6853
 
6849
6854
  FleetSpotMaintenanceStrategies.add_member(:capacity_rebalance, Shapes::ShapeRef.new(shape: FleetSpotCapacityRebalance, location_name: "capacityRebalance"))
@@ -7840,6 +7845,7 @@ module Aws::EC2
7840
7845
  InstanceNetworkInterface.struct_class = Types::InstanceNetworkInterface
7841
7846
 
7842
7847
  InstanceNetworkInterfaceAssociation.add_member(:carrier_ip, Shapes::ShapeRef.new(shape: String, location_name: "carrierIp"))
7848
+ InstanceNetworkInterfaceAssociation.add_member(:customer_owned_ip, Shapes::ShapeRef.new(shape: String, location_name: "customerOwnedIp"))
7843
7849
  InstanceNetworkInterfaceAssociation.add_member(:ip_owner_id, Shapes::ShapeRef.new(shape: String, location_name: "ipOwnerId"))
7844
7850
  InstanceNetworkInterfaceAssociation.add_member(:public_dns_name, Shapes::ShapeRef.new(shape: String, location_name: "publicDnsName"))
7845
7851
  InstanceNetworkInterfaceAssociation.add_member(:public_ip, Shapes::ShapeRef.new(shape: String, location_name: "publicIp"))
@@ -8173,6 +8179,8 @@ module Aws::EC2
8173
8179
 
8174
8180
  LaunchPermission.add_member(:group, Shapes::ShapeRef.new(shape: PermissionGroup, location_name: "group"))
8175
8181
  LaunchPermission.add_member(:user_id, Shapes::ShapeRef.new(shape: String, location_name: "userId"))
8182
+ LaunchPermission.add_member(:organization_arn, Shapes::ShapeRef.new(shape: String, location_name: "organizationArn"))
8183
+ LaunchPermission.add_member(:organizational_unit_arn, Shapes::ShapeRef.new(shape: String, location_name: "organizationalUnitArn"))
8176
8184
  LaunchPermission.struct_class = Types::LaunchPermission
8177
8185
 
8178
8186
  LaunchPermissionList.member = Shapes::ShapeRef.new(shape: LaunchPermission, location_name: "item")
@@ -8746,6 +8754,8 @@ module Aws::EC2
8746
8754
  ModifyImageAttributeRequest.add_member(:user_ids, Shapes::ShapeRef.new(shape: UserIdStringList, location_name: "UserId"))
8747
8755
  ModifyImageAttributeRequest.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "Value"))
8748
8756
  ModifyImageAttributeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
8757
+ ModifyImageAttributeRequest.add_member(:organization_arns, Shapes::ShapeRef.new(shape: OrganizationArnStringList, location_name: "OrganizationArn"))
8758
+ ModifyImageAttributeRequest.add_member(:organizational_unit_arns, Shapes::ShapeRef.new(shape: OrganizationalUnitArnStringList, location_name: "OrganizationalUnitArn"))
8749
8759
  ModifyImageAttributeRequest.struct_class = Types::ModifyImageAttributeRequest
8750
8760
 
8751
8761
  ModifyInstanceAttributeRequest.add_member(:source_dest_check, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "SourceDestCheck"))
@@ -9384,6 +9394,10 @@ module Aws::EC2
9384
9394
  OnDemandOptionsRequest.add_member(:max_total_price, Shapes::ShapeRef.new(shape: String, location_name: "MaxTotalPrice"))
9385
9395
  OnDemandOptionsRequest.struct_class = Types::OnDemandOptionsRequest
9386
9396
 
9397
+ OrganizationArnStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "OrganizationArn")
9398
+
9399
+ OrganizationalUnitArnStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "OrganizationalUnitArn")
9400
+
9387
9401
  OwnerStringList.member = Shapes::ShapeRef.new(shape: String, location_name: "Owner")
9388
9402
 
9389
9403
  PathComponent.add_member(:sequence_number, Shapes::ShapeRef.new(shape: Integer, location_name: "sequenceNumber"))
@@ -10760,6 +10774,7 @@ module Aws::EC2
10760
10774
  SnapshotTaskDetail.struct_class = Types::SnapshotTaskDetail
10761
10775
 
10762
10776
  SpotCapacityRebalance.add_member(:replacement_strategy, Shapes::ShapeRef.new(shape: ReplacementStrategy, location_name: "replacementStrategy"))
10777
+ SpotCapacityRebalance.add_member(:termination_delay, Shapes::ShapeRef.new(shape: Integer, location_name: "terminationDelay"))
10763
10778
  SpotCapacityRebalance.struct_class = Types::SpotCapacityRebalance
10764
10779
 
10765
10780
  SpotDatafeedSubscription.add_member(:bucket, Shapes::ShapeRef.new(shape: String, location_name: "bucket"))
@@ -11927,7 +11942,7 @@ module Aws::EC2
11927
11942
  VpnConnection.add_member(:transit_gateway_id, Shapes::ShapeRef.new(shape: String, location_name: "transitGatewayId"))
11928
11943
  VpnConnection.add_member(:core_network_arn, Shapes::ShapeRef.new(shape: String, location_name: "coreNetworkArn"))
11929
11944
  VpnConnection.add_member(:core_network_attachment_arn, Shapes::ShapeRef.new(shape: String, location_name: "coreNetworkAttachmentArn"))
11930
- VpnConnection.add_member(:gateway_association_state, Shapes::ShapeRef.new(shape: String, location_name: "gatewayAssociationState"))
11945
+ VpnConnection.add_member(:gateway_association_state, Shapes::ShapeRef.new(shape: GatewayAssociationState, location_name: "gatewayAssociationState"))
11931
11946
  VpnConnection.add_member(:options, Shapes::ShapeRef.new(shape: VpnConnectionOptions, location_name: "options"))
11932
11947
  VpnConnection.add_member(:routes, Shapes::ShapeRef.new(shape: VpnStaticRouteList, location_name: "routes"))
11933
11948
  VpnConnection.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
@@ -533,12 +533,16 @@ module Aws::EC2
533
533
  # {
534
534
  # group: "all", # accepts all
535
535
  # user_id: "String",
536
+ # organization_arn: "String",
537
+ # organizational_unit_arn: "String",
536
538
  # },
537
539
  # ],
538
540
  # remove: [
539
541
  # {
540
542
  # group: "all", # accepts all
541
543
  # user_id: "String",
544
+ # organization_arn: "String",
545
+ # organizational_unit_arn: "String",
542
546
  # },
543
547
  # ],
544
548
  # },
@@ -548,11 +552,14 @@ module Aws::EC2
548
552
  # user_ids: ["String"],
549
553
  # value: "String",
550
554
  # dry_run: false,
555
+ # organization_arns: ["String"],
556
+ # organizational_unit_arns: ["String"],
551
557
  # })
552
558
  # @param [Hash] options ({})
553
559
  # @option options [String] :attribute
554
- # The name of the attribute to modify. The valid values are
555
- # `description` and `launchPermission`.
560
+ # The name of the attribute to modify.
561
+ #
562
+ # Valid values: `description` \| `launchPermission`
556
563
  # @option options [Types::AttributeValue] :description
557
564
  # A new description for the AMI.
558
565
  # @option options [Types::LaunchPermissionModifications] :launch_permission
@@ -576,6 +583,13 @@ module Aws::EC2
576
583
  # without actually making the request, and provides an error response.
577
584
  # If you have the required permissions, the error response is
578
585
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
586
+ # @option options [Array<String>] :organization_arns
587
+ # The Amazon Resource Name (ARN) of an organization. This parameter can
588
+ # be used only when the `Attribute` parameter is `launchPermission`.
589
+ # @option options [Array<String>] :organizational_unit_arns
590
+ # The Amazon Resource Name (ARN) of an organizational unit (OU). This
591
+ # parameter can be used only when the `Attribute` parameter is
592
+ # `launchPermission`.
579
593
  # @return [EmptyStructure]
580
594
  def modify_attribute(options = {})
581
595
  options = options.merge(image_id: @id)
@@ -40,6 +40,12 @@ module Aws::EC2
40
40
  data[:carrier_ip]
41
41
  end
42
42
 
43
+ # The customer-owned IP address associated with the network interface.
44
+ # @return [String]
45
+ def customer_owned_ip
46
+ data[:customer_owned_ip]
47
+ end
48
+
43
49
  # The ID of the owner of the Elastic IP address.
44
50
  # @return [String]
45
51
  def ip_owner_id
@@ -40,7 +40,13 @@ module Aws
40
40
  region: params[:source_region],
41
41
  credentials_provider: context.config.credentials
42
42
  )
43
- url = Aws::Partitions::EndpointProvider.resolve(signer.region, 'ec2')
43
+ url = Aws::Partitions::EndpointProvider.resolve(
44
+ signer.region, 'ec2', 'regional',
45
+ {
46
+ dualstack: context.config.use_dualstack_endpoint,
47
+ fips: context.config.use_fips_endpoint
48
+ }
49
+ )
44
50
  url += "?#{param_list.to_s}"
45
51
 
46
52
  signer.presign_url(
@@ -1902,6 +1902,18 @@ module Aws::EC2
1902
1902
  # Scopes the images by users with explicit launch permissions. Specify
1903
1903
  # an Amazon Web Services account ID, `self` (the sender of the request),
1904
1904
  # or `all` (public AMIs).
1905
+ #
1906
+ # * If you specify an Amazon Web Services account ID that is not your
1907
+ # own, only AMIs shared with that specific Amazon Web Services account
1908
+ # ID are returned. However, AMIs that are shared with the account’s
1909
+ # organization or organizational unit (OU) are not returned.
1910
+ #
1911
+ # * If you specify `self` or your own Amazon Web Services account ID,
1912
+ # AMIs shared with your account are returned. In addition, AMIs that
1913
+ # are shared with the organization or OU of which you are member are
1914
+ # also returned.
1915
+ #
1916
+ # * If you specify `all`, all public AMIs are returned.
1905
1917
  # @option options [Array<Types::Filter>] :filters
1906
1918
  # The filters.
1907
1919
  #
@@ -7229,7 +7229,8 @@ module Aws::EC2
7229
7229
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
7230
7230
  # maintenance_strategies: {
7231
7231
  # capacity_rebalance: {
7232
- # replacement_strategy: "launch", # accepts launch
7232
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
7233
+ # termination_delay: 1,
7233
7234
  # },
7234
7235
  # },
7235
7236
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
@@ -18734,6 +18735,19 @@ module Aws::EC2
18734
18735
  # Scopes the images by users with explicit launch permissions. Specify
18735
18736
  # an Amazon Web Services account ID, `self` (the sender of the
18736
18737
  # request), or `all` (public AMIs).
18738
+ #
18739
+ # * If you specify an Amazon Web Services account ID that is not your
18740
+ # own, only AMIs shared with that specific Amazon Web Services
18741
+ # account ID are returned. However, AMIs that are shared with the
18742
+ # account’s organization or organizational unit (OU) are not
18743
+ # returned.
18744
+ #
18745
+ # * If you specify `self` or your own Amazon Web Services account ID,
18746
+ # AMIs shared with your account are returned. In addition, AMIs that
18747
+ # are shared with the organization or OU of which you are member are
18748
+ # also returned.
18749
+ #
18750
+ # * If you specify `all`, all public AMIs are returned.
18737
18751
  # @return [Array<String>]
18738
18752
  #
18739
18753
  # @!attribute [rw] filters
@@ -31527,31 +31541,42 @@ module Aws::EC2
31527
31541
  # Instance is at an elevated risk of being interrupted.
31528
31542
  #
31529
31543
  # @!attribute [rw] replacement_strategy
31530
- # To allow EC2 Fleet to launch a replacement Spot Instance when an
31531
- # instance rebalance notification is emitted for an existing Spot
31532
- # Instance in the fleet, specify `launch`. Only available for fleets
31533
- # of type `maintain`.
31534
- #
31535
- # <note markdown="1"> When a replacement instance is launched, the instance marked for
31536
- # rebalance is not automatically terminated. You can terminate it, or
31537
- # you can leave it running. You are charged for both instances while
31538
- # they are running.
31544
+ # The replacement strategy to use. Only available for fleets of type
31545
+ # `maintain`.
31539
31546
  #
31540
- # </note>
31547
+ # `launch` - EC2 Fleet launches a new replacement Spot Instance when a
31548
+ # rebalance notification is emitted for an existing Spot Instance in
31549
+ # the fleet. EC2 Fleet does not terminate the instances that receive a
31550
+ # rebalance notification. You can terminate the old instances, or you
31551
+ # can leave them running. You are charged for all instances while they
31552
+ # are running.
31553
+ #
31554
+ # `launch-before-terminate` - EC2 Fleet launches a new replacement
31555
+ # Spot Instance when a rebalance notification is emitted for an
31556
+ # existing Spot Instance in the fleet, and then, after a delay that
31557
+ # you specify (in `TerminationDelay`), terminates the instances that
31558
+ # received a rebalance notification.
31541
31559
  # @return [String]
31542
31560
  #
31561
+ # @!attribute [rw] termination_delay
31562
+ # The amount of time (in seconds) that Amazon EC2 waits before
31563
+ # terminating the old Spot Instance after launching a new replacement
31564
+ # Spot Instance.
31565
+ # @return [Integer]
31566
+ #
31543
31567
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetSpotCapacityRebalance AWS API Documentation
31544
31568
  #
31545
31569
  class FleetSpotCapacityRebalance < Struct.new(
31546
- :replacement_strategy)
31570
+ :replacement_strategy,
31571
+ :termination_delay)
31547
31572
  SENSITIVE = []
31548
31573
  include Aws::Structure
31549
31574
  end
31550
31575
 
31551
31576
  # The Spot Instance replacement strategy to use when Amazon EC2 emits a
31552
- # signal that your Spot Instance is at an elevated risk of being
31553
- # interrupted. For more information, see [Capacity rebalancing][1] in
31554
- # the *Amazon EC2 User Guide*.
31577
+ # rebalance notification signal that your Spot Instance is at an
31578
+ # elevated risk of being interrupted. For more information, see
31579
+ # [Capacity rebalancing][1] in the *Amazon EC2 User Guide*.
31555
31580
  #
31556
31581
  #
31557
31582
  #
@@ -31561,30 +31586,39 @@ module Aws::EC2
31561
31586
  # data as a hash:
31562
31587
  #
31563
31588
  # {
31564
- # replacement_strategy: "launch", # accepts launch
31589
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
31590
+ # termination_delay: 1,
31565
31591
  # }
31566
31592
  #
31567
31593
  # @!attribute [rw] replacement_strategy
31568
31594
  # The replacement strategy to use. Only available for fleets of type
31569
31595
  # `maintain`.
31570
31596
  #
31571
- # To allow EC2 Fleet to launch a replacement Spot Instance when an
31572
- # instance rebalance notification is emitted for an existing Spot
31573
- # Instance in the fleet, specify `launch`. You must specify a value,
31574
- # otherwise you get an error.
31575
- #
31576
- # <note markdown="1"> When a replacement instance is launched, the instance marked for
31577
- # rebalance is not automatically terminated. You can terminate it, or
31578
- # you can leave it running. You are charged for all instances while
31579
- # they are running.
31597
+ # `launch` - EC2 Fleet launches a replacement Spot Instance when a
31598
+ # rebalance notification is emitted for an existing Spot Instance in
31599
+ # the fleet. EC2 Fleet does not terminate the instances that receive a
31600
+ # rebalance notification. You can terminate the old instances, or you
31601
+ # can leave them running. You are charged for all instances while they
31602
+ # are running.
31580
31603
  #
31581
- # </note>
31604
+ # `launch-before-terminate` - EC2 Fleet launches a replacement Spot
31605
+ # Instance when a rebalance notification is emitted for an existing
31606
+ # Spot Instance in the fleet, and then, after a delay that you specify
31607
+ # (in `TerminationDelay`), terminates the instances that received a
31608
+ # rebalance notification.
31582
31609
  # @return [String]
31583
31610
  #
31611
+ # @!attribute [rw] termination_delay
31612
+ # The amount of time (in seconds) that Amazon EC2 waits before
31613
+ # terminating the old Spot Instance after launching a new replacement
31614
+ # Spot Instance.
31615
+ # @return [Integer]
31616
+ #
31584
31617
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/FleetSpotCapacityRebalanceRequest AWS API Documentation
31585
31618
  #
31586
31619
  class FleetSpotCapacityRebalanceRequest < Struct.new(
31587
- :replacement_strategy)
31620
+ :replacement_strategy,
31621
+ :termination_delay)
31588
31622
  SENSITIVE = []
31589
31623
  include Aws::Structure
31590
31624
  end
@@ -31613,7 +31647,8 @@ module Aws::EC2
31613
31647
  #
31614
31648
  # {
31615
31649
  # capacity_rebalance: {
31616
- # replacement_strategy: "launch", # accepts launch
31650
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
31651
+ # termination_delay: 1,
31617
31652
  # },
31618
31653
  # }
31619
31654
  #
@@ -37297,6 +37332,10 @@ module Aws::EC2
37297
37332
  # The carrier IP address associated with the network interface.
37298
37333
  # @return [String]
37299
37334
  #
37335
+ # @!attribute [rw] customer_owned_ip
37336
+ # The customer-owned IP address associated with the network interface.
37337
+ # @return [String]
37338
+ #
37300
37339
  # @!attribute [rw] ip_owner_id
37301
37340
  # The ID of the owner of the Elastic IP address.
37302
37341
  # @return [String]
@@ -37314,6 +37353,7 @@ module Aws::EC2
37314
37353
  #
37315
37354
  class InstanceNetworkInterfaceAssociation < Struct.new(
37316
37355
  :carrier_ip,
37356
+ :customer_owned_ip,
37317
37357
  :ip_owner_id,
37318
37358
  :public_dns_name,
37319
37359
  :public_ip)
@@ -37737,10 +37777,10 @@ module Aws::EC2
37737
37777
  # type, size, or generation. The following are examples: `m5.8xlarge`,
37738
37778
  # `c5*.*`, `m5a.*`, `r*`, `*3*`.
37739
37779
  #
37740
- # For example, if you specify `c5*.*`, Amazon EC2 will exclude the
37741
- # entire C5 instance family (all C5a and C5n instance types). If you
37742
- # specify `c5a.*`, Amazon EC2 excludes all the C5a instance types, but
37743
- # does not exclude the C5n instance types.
37780
+ # For example, if you specify `c5*`,Amazon EC2 will exclude the entire
37781
+ # C5 instance family, which includes all C5a and C5n instance types.
37782
+ # If you specify `m5a.*`, Amazon EC2 will exclude all the M5a instance
37783
+ # types, but not the M5n instance types.
37744
37784
  #
37745
37785
  # Default: No excluded instance types
37746
37786
  # @return [Array<String>]
@@ -38125,10 +38165,10 @@ module Aws::EC2
38125
38165
  # family, type, size, or generation. The following are examples:
38126
38166
  # `m5.8xlarge`, `c5*.*`, `m5a.*`, `r*`, `*3*`.
38127
38167
  #
38128
- # For example, if you specify `c5*.*`, Amazon EC2 will exclude the
38129
- # entire C5 instance family (all C5a and C5n instance types). If you
38130
- # specify `c5a.*`, Amazon EC2 excludes all the C5a instance types, but
38131
- # does not exclude the C5n instance types.
38168
+ # For example, if you specify `c5*`,Amazon EC2 will exclude the entire
38169
+ # C5 instance family, which includes all C5a and C5n instance types.
38170
+ # If you specify `m5a.*`, Amazon EC2 will exclude all the M5a instance
38171
+ # types, but not the M5n instance types.
38132
38172
  #
38133
38173
  # Default: No excluded instance types
38134
38174
  # @return [Array<String>]
@@ -39511,6 +39551,8 @@ module Aws::EC2
39511
39551
  # {
39512
39552
  # group: "all", # accepts all
39513
39553
  # user_id: "String",
39554
+ # organization_arn: "String",
39555
+ # organizational_unit_arn: "String",
39514
39556
  # }
39515
39557
  #
39516
39558
  # @!attribute [rw] group
@@ -39524,11 +39566,21 @@ module Aws::EC2
39524
39566
  # request.
39525
39567
  # @return [String]
39526
39568
  #
39569
+ # @!attribute [rw] organization_arn
39570
+ # The Amazon Resource Name (ARN) of an organization.
39571
+ # @return [String]
39572
+ #
39573
+ # @!attribute [rw] organizational_unit_arn
39574
+ # The Amazon Resource Name (ARN) of an organizational unit (OU).
39575
+ # @return [String]
39576
+ #
39527
39577
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchPermission AWS API Documentation
39528
39578
  #
39529
39579
  class LaunchPermission < Struct.new(
39530
39580
  :group,
39531
- :user_id)
39581
+ :user_id,
39582
+ :organization_arn,
39583
+ :organizational_unit_arn)
39532
39584
  SENSITIVE = []
39533
39585
  include Aws::Structure
39534
39586
  end
@@ -39543,12 +39595,16 @@ module Aws::EC2
39543
39595
  # {
39544
39596
  # group: "all", # accepts all
39545
39597
  # user_id: "String",
39598
+ # organization_arn: "String",
39599
+ # organizational_unit_arn: "String",
39546
39600
  # },
39547
39601
  # ],
39548
39602
  # remove: [
39549
39603
  # {
39550
39604
  # group: "all", # accepts all
39551
39605
  # user_id: "String",
39606
+ # organization_arn: "String",
39607
+ # organizational_unit_arn: "String",
39552
39608
  # },
39553
39609
  # ],
39554
39610
  # }
@@ -43068,12 +43124,16 @@ module Aws::EC2
43068
43124
  # {
43069
43125
  # group: "all", # accepts all
43070
43126
  # user_id: "String",
43127
+ # organization_arn: "String",
43128
+ # organizational_unit_arn: "String",
43071
43129
  # },
43072
43130
  # ],
43073
43131
  # remove: [
43074
43132
  # {
43075
43133
  # group: "all", # accepts all
43076
43134
  # user_id: "String",
43135
+ # organization_arn: "String",
43136
+ # organizational_unit_arn: "String",
43077
43137
  # },
43078
43138
  # ],
43079
43139
  # },
@@ -43083,11 +43143,14 @@ module Aws::EC2
43083
43143
  # user_ids: ["String"],
43084
43144
  # value: "String",
43085
43145
  # dry_run: false,
43146
+ # organization_arns: ["String"],
43147
+ # organizational_unit_arns: ["String"],
43086
43148
  # }
43087
43149
  #
43088
43150
  # @!attribute [rw] attribute
43089
- # The name of the attribute to modify. The valid values are
43090
- # `description` and `launchPermission`.
43151
+ # The name of the attribute to modify.
43152
+ #
43153
+ # Valid values: `description` \| `launchPermission`
43091
43154
  # @return [String]
43092
43155
  #
43093
43156
  # @!attribute [rw] description
@@ -43133,6 +43196,18 @@ module Aws::EC2
43133
43196
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
43134
43197
  # @return [Boolean]
43135
43198
  #
43199
+ # @!attribute [rw] organization_arns
43200
+ # The Amazon Resource Name (ARN) of an organization. This parameter
43201
+ # can be used only when the `Attribute` parameter is
43202
+ # `launchPermission`.
43203
+ # @return [Array<String>]
43204
+ #
43205
+ # @!attribute [rw] organizational_unit_arns
43206
+ # The Amazon Resource Name (ARN) of an organizational unit (OU). This
43207
+ # parameter can be used only when the `Attribute` parameter is
43208
+ # `launchPermission`.
43209
+ # @return [Array<String>]
43210
+ #
43136
43211
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyImageAttributeRequest AWS API Documentation
43137
43212
  #
43138
43213
  class ModifyImageAttributeRequest < Struct.new(
@@ -43145,7 +43220,9 @@ module Aws::EC2
43145
43220
  :user_groups,
43146
43221
  :user_ids,
43147
43222
  :value,
43148
- :dry_run)
43223
+ :dry_run,
43224
+ :organization_arns,
43225
+ :organizational_unit_arns)
43149
43226
  SENSITIVE = []
43150
43227
  include Aws::Structure
43151
43228
  end
@@ -50736,7 +50813,8 @@ module Aws::EC2
50736
50813
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
50737
50814
  # spot_maintenance_strategies: {
50738
50815
  # capacity_rebalance: {
50739
- # replacement_strategy: "launch", # accepts launch
50816
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
50817
+ # termination_delay: 1,
50740
50818
  # },
50741
50819
  # },
50742
50820
  # client_token: "String",
@@ -56076,29 +56154,39 @@ module Aws::EC2
56076
56154
  # data as a hash:
56077
56155
  #
56078
56156
  # {
56079
- # replacement_strategy: "launch", # accepts launch
56157
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
56158
+ # termination_delay: 1,
56080
56159
  # }
56081
56160
  #
56082
56161
  # @!attribute [rw] replacement_strategy
56083
56162
  # The replacement strategy to use. Only available for fleets of type
56084
- # `maintain`. You must specify a value, otherwise you get an error.
56085
- #
56086
- # To allow Spot Fleet to launch a replacement Spot Instance when an
56087
- # instance rebalance notification is emitted for a Spot Instance in
56088
- # the fleet, specify `launch`.
56163
+ # `maintain`.
56089
56164
  #
56090
- # <note markdown="1"> When a replacement instance is launched, the instance marked for
56091
- # rebalance is not automatically terminated. You can terminate it, or
56092
- # you can leave it running. You are charged for all instances while
56165
+ # `launch` - Spot Fleet launches a new replacement Spot Instance when
56166
+ # a rebalance notification is emitted for an existing Spot Instance in
56167
+ # the fleet. Spot Fleet does not terminate the instances that receive
56168
+ # a rebalance notification. You can terminate the old instances, or
56169
+ # you can leave them running. You are charged for all instances while
56093
56170
  # they are running.
56094
56171
  #
56095
- # </note>
56172
+ # `launch-before-terminate` - Spot Fleet launches a new replacement
56173
+ # Spot Instance when a rebalance notification is emitted for an
56174
+ # existing Spot Instance in the fleet, and then, after a delay that
56175
+ # you specify (in `TerminationDelay`), terminates the instances that
56176
+ # received a rebalance notification.
56096
56177
  # @return [String]
56097
56178
  #
56179
+ # @!attribute [rw] termination_delay
56180
+ # The amount of time (in seconds) that Amazon EC2 waits before
56181
+ # terminating the old Spot Instance after launching a new replacement
56182
+ # Spot Instance.
56183
+ # @return [Integer]
56184
+ #
56098
56185
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotCapacityRebalance AWS API Documentation
56099
56186
  #
56100
56187
  class SpotCapacityRebalance < Struct.new(
56101
- :replacement_strategy)
56188
+ :replacement_strategy,
56189
+ :termination_delay)
56102
56190
  SENSITIVE = []
56103
56191
  include Aws::Structure
56104
56192
  end
@@ -56527,7 +56615,8 @@ module Aws::EC2
56527
56615
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
56528
56616
  # spot_maintenance_strategies: {
56529
56617
  # capacity_rebalance: {
56530
- # replacement_strategy: "launch", # accepts launch
56618
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
56619
+ # termination_delay: 1,
56531
56620
  # },
56532
56621
  # },
56533
56622
  # client_token: "String",
@@ -57289,7 +57378,8 @@ module Aws::EC2
57289
57378
  #
57290
57379
  # {
57291
57380
  # capacity_rebalance: {
57292
- # replacement_strategy: "launch", # accepts launch
57381
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
57382
+ # termination_delay: 1,
57293
57383
  # },
57294
57384
  # }
57295
57385
  #
@@ -57472,7 +57562,8 @@ module Aws::EC2
57472
57562
  # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
57473
57563
  # maintenance_strategies: {
57474
57564
  # capacity_rebalance: {
57475
- # replacement_strategy: "launch", # accepts launch
57565
+ # replacement_strategy: "launch", # accepts launch, launch-before-terminate
57566
+ # termination_delay: 1,
57476
57567
  # },
57477
57568
  # },
57478
57569
  # instance_interruption_behavior: "hibernate", # accepts hibernate, stop, terminate
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.274.0'
75
+ GEM_VERSION = '1.278.0'
76
76
 
77
77
  end
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.274.0
4
+ version: 1.278.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: 2021-10-28 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '3'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 3.121.2
36
+ version: 3.122.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.121.2
46
+ version: 3.122.0
47
47
  description: Official AWS Ruby gem for Amazon Elastic Compute Cloud (Amazon EC2).
48
48
  This gem is part of the AWS SDK for Ruby.
49
49
  email: