aws-sdk-ec2 1.225.0 → 1.226.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1647,24 +1647,24 @@ module Aws::EC2
1647
1647
  # data as a hash:
1648
1648
  #
1649
1649
  # {
1650
- # ipv_6_cidr_block: "String", # required
1651
1650
  # subnet_id: "SubnetId", # required
1651
+ # ipv_6_cidr_block: "String", # required
1652
1652
  # }
1653
1653
  #
1654
+ # @!attribute [rw] subnet_id
1655
+ # The ID of your subnet.
1656
+ # @return [String]
1657
+ #
1654
1658
  # @!attribute [rw] ipv_6_cidr_block
1655
1659
  # The IPv6 CIDR block for your subnet. The subnet must have a /64
1656
1660
  # prefix length.
1657
1661
  # @return [String]
1658
1662
  #
1659
- # @!attribute [rw] subnet_id
1660
- # The ID of your subnet.
1661
- # @return [String]
1662
- #
1663
1663
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockRequest AWS API Documentation
1664
1664
  #
1665
1665
  class AssociateSubnetCidrBlockRequest < Struct.new(
1666
- :ipv_6_cidr_block,
1667
- :subnet_id)
1666
+ :subnet_id,
1667
+ :ipv_6_cidr_block)
1668
1668
  SENSITIVE = []
1669
1669
  include Aws::Structure
1670
1670
  end
@@ -6276,7 +6276,7 @@ module Aws::EC2
6276
6276
  # dry_run: false,
6277
6277
  # client_token: "String",
6278
6278
  # spot_options: {
6279
- # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized
6279
+ # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
6280
6280
  # maintenance_strategies: {
6281
6281
  # capacity_rebalance: {
6282
6282
  # replacement_strategy: "launch", # accepts launch
@@ -7755,7 +7755,6 @@ module Aws::EC2
7755
7755
  # data as a hash:
7756
7756
  #
7757
7757
  # {
7758
- # allocation_id: "AllocationId", # required
7759
7758
  # client_token: "String",
7760
7759
  # dry_run: false,
7761
7760
  # subnet_id: "SubnetId", # required
@@ -7770,14 +7769,9 @@ module Aws::EC2
7770
7769
  # ],
7771
7770
  # },
7772
7771
  # ],
7772
+ # allocation_id: "AllocationId", # required
7773
7773
  # }
7774
7774
  #
7775
- # @!attribute [rw] allocation_id
7776
- # The allocation ID of an Elastic IP address to associate with the NAT
7777
- # gateway. If the Elastic IP address is associated with another
7778
- # resource, you must first disassociate it.
7779
- # @return [String]
7780
- #
7781
7775
  # @!attribute [rw] client_token
7782
7776
  # Unique, case-sensitive identifier that you provide to ensure the
7783
7777
  # idempotency of the request. For more information, see [How to Ensure
@@ -7808,14 +7802,20 @@ module Aws::EC2
7808
7802
  # The tags to assign to the NAT gateway.
7809
7803
  # @return [Array<Types::TagSpecification>]
7810
7804
  #
7805
+ # @!attribute [rw] allocation_id
7806
+ # The allocation ID of an Elastic IP address to associate with the NAT
7807
+ # gateway. If the Elastic IP address is associated with another
7808
+ # resource, you must first disassociate it.
7809
+ # @return [String]
7810
+ #
7811
7811
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayRequest AWS API Documentation
7812
7812
  #
7813
7813
  class CreateNatGatewayRequest < Struct.new(
7814
- :allocation_id,
7815
7814
  :client_token,
7816
7815
  :dry_run,
7817
7816
  :subnet_id,
7818
- :tag_specifications)
7817
+ :tag_specifications,
7818
+ :allocation_id)
7819
7819
  SENSITIVE = []
7820
7820
  include Aws::Structure
7821
7821
  end
@@ -8973,11 +8973,11 @@ module Aws::EC2
8973
8973
  # ],
8974
8974
  # availability_zone: "String",
8975
8975
  # availability_zone_id: "String",
8976
- # cidr_block: "String", # required
8977
8976
  # ipv_6_cidr_block: "String",
8978
8977
  # outpost_arn: "String",
8979
8978
  # vpc_id: "VpcId", # required
8980
8979
  # dry_run: false,
8980
+ # cidr_block: "String", # required
8981
8981
  # }
8982
8982
  #
8983
8983
  # @!attribute [rw] tag_specifications
@@ -9008,13 +9008,6 @@ module Aws::EC2
9008
9008
  # The AZ ID or the Local Zone ID of the subnet.
9009
9009
  # @return [String]
9010
9010
  #
9011
- # @!attribute [rw] cidr_block
9012
- # The IPv4 network range for the subnet, in CIDR notation. For
9013
- # example, `10.0.0.0/24`. We modify the specified CIDR block to its
9014
- # canonical form; for example, if you specify `100.68.0.18/18`, we
9015
- # modify it to `100.68.0.0/18`.
9016
- # @return [String]
9017
- #
9018
9011
  # @!attribute [rw] ipv_6_cidr_block
9019
9012
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
9020
9013
  # size must use a /64 prefix length.
@@ -9037,17 +9030,24 @@ module Aws::EC2
9037
9030
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
9038
9031
  # @return [Boolean]
9039
9032
  #
9033
+ # @!attribute [rw] cidr_block
9034
+ # The IPv4 network range for the subnet, in CIDR notation. For
9035
+ # example, `10.0.0.0/24`. We modify the specified CIDR block to its
9036
+ # canonical form; for example, if you specify `100.68.0.18/18`, we
9037
+ # modify it to `100.68.0.0/18`.
9038
+ # @return [String]
9039
+ #
9040
9040
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetRequest AWS API Documentation
9041
9041
  #
9042
9042
  class CreateSubnetRequest < Struct.new(
9043
9043
  :tag_specifications,
9044
9044
  :availability_zone,
9045
9045
  :availability_zone_id,
9046
- :cidr_block,
9047
9046
  :ipv_6_cidr_block,
9048
9047
  :outpost_arn,
9049
9048
  :vpc_id,
9050
- :dry_run)
9049
+ :dry_run,
9050
+ :cidr_block)
9051
9051
  SENSITIVE = []
9052
9052
  include Aws::Structure
9053
9053
  end
@@ -16851,10 +16851,10 @@ module Aws::EC2
16851
16851
  # @!attribute [rw] attribute
16852
16852
  # The AMI attribute.
16853
16853
  #
16854
- # **Note**\: Depending on your account privileges, the
16855
- # `blockDeviceMapping` attribute may return a `Client.AuthFailure`
16856
- # error. If this happens, use DescribeImages to get information about
16857
- # the block device mapping for the AMI.
16854
+ # **Note**\: The `blockDeviceMapping` attribute is deprecated. Using
16855
+ # this attribute returns the `Client.AuthFailure` error. To get
16856
+ # information about the block device mappings for an AMI, use the
16857
+ # DescribeImages action.
16858
16858
  # @return [String]
16859
16859
  #
16860
16860
  # @!attribute [rw] image_id
@@ -28373,13 +28373,22 @@ module Aws::EC2
28373
28373
  # @return [Float]
28374
28374
  #
28375
28375
  # @!attribute [rw] priority
28376
- # The priority for the launch template override. If
28377
- # **AllocationStrategy** is set to `prioritized`, EC2 Fleet uses
28378
- # priority to determine which launch template override to use first in
28379
- # fulfilling On-Demand capacity. The highest priority is launched
28380
- # first. Valid values are whole numbers starting at `0`. The lower the
28376
+ # The priority for the launch template override. The highest priority
28377
+ # is launched first.
28378
+ #
28379
+ # If the On-Demand `AllocationStrategy` is set to `prioritized`, EC2
28380
+ # Fleet uses priority to determine which launch template override to
28381
+ # use first in fulfilling On-Demand capacity.
28382
+ #
28383
+ # If the Spot `AllocationStrategy` is set to
28384
+ # `capacity-optimized-prioritized`, EC2 Fleet uses priority on a
28385
+ # best-effort basis to determine which launch template override to use
28386
+ # first in fulfilling Spot capacity, but optimizes for capacity first.
28387
+ #
28388
+ # Valid values are whole numbers starting at `0`. The lower the
28381
28389
  # number, the higher the priority. If no number is set, the override
28382
- # has the lowest priority.
28390
+ # has the lowest priority. You can set the same priority for different
28391
+ # launch template overrides.
28383
28392
  # @return [Float]
28384
28393
  #
28385
28394
  # @!attribute [rw] placement
@@ -28449,13 +28458,22 @@ module Aws::EC2
28449
28458
  # @return [Float]
28450
28459
  #
28451
28460
  # @!attribute [rw] priority
28452
- # The priority for the launch template override. If
28453
- # **AllocationStrategy** is set to `prioritized`, EC2 Fleet uses
28454
- # priority to determine which launch template override to use first in
28455
- # fulfilling On-Demand capacity. The highest priority is launched
28456
- # first. Valid values are whole numbers starting at `0`. The lower the
28461
+ # The priority for the launch template override. The highest priority
28462
+ # is launched first.
28463
+ #
28464
+ # If the On-Demand `AllocationStrategy` is set to `prioritized`, EC2
28465
+ # Fleet uses priority to determine which launch template override to
28466
+ # use first in fulfilling On-Demand capacity.
28467
+ #
28468
+ # If the Spot `AllocationStrategy` is set to
28469
+ # `capacity-optimized-prioritized`, EC2 Fleet uses priority on a
28470
+ # best-effort basis to determine which launch template override to use
28471
+ # first in fulfilling Spot capacity, but optimizes for capacity first.
28472
+ #
28473
+ # Valid values are whole numbers starting at `0`. The lower the
28457
28474
  # number, the higher the priority. If no number is set, the launch
28458
- # template override has the lowest priority.
28475
+ # template override has the lowest priority. You can set the same
28476
+ # priority for different launch template overrides.
28459
28477
  # @return [Float]
28460
28478
  #
28461
28479
  # @!attribute [rw] placement
@@ -35775,13 +35793,22 @@ module Aws::EC2
35775
35793
  # @return [Float]
35776
35794
  #
35777
35795
  # @!attribute [rw] priority
35778
- # The priority for the launch template override. If
35779
- # **OnDemandAllocationStrategy** is set to `prioritized`, Spot Fleet
35796
+ # The priority for the launch template override. The highest priority
35797
+ # is launched first.
35798
+ #
35799
+ # If `OnDemandAllocationStrategy` is set to `prioritized`, Spot Fleet
35780
35800
  # uses priority to determine which launch template override to use
35781
- # first in fulfilling On-Demand capacity. The highest priority is
35782
- # launched first. Valid values are whole numbers starting at `0`. The
35783
- # lower the number, the higher the priority. If no number is set, the
35784
- # launch template override has the lowest priority.
35801
+ # first in fulfilling On-Demand capacity.
35802
+ #
35803
+ # If the Spot `AllocationStrategy` is set to
35804
+ # `capacityOptimizedPrioritized`, Spot Fleet uses priority on a
35805
+ # best-effort basis to determine which launch template override to use
35806
+ # first in fulfilling Spot capacity, but optimizes for capacity first.
35807
+ #
35808
+ # Valid values are whole numbers starting at `0`. The lower the
35809
+ # number, the higher the priority. If no number is set, the launch
35810
+ # template override has the lowest priority. You can set the same
35811
+ # priority for different launch template overrides.
35785
35812
  # @return [Float]
35786
35813
  #
35787
35814
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateOverrides AWS API Documentation
@@ -44693,7 +44720,7 @@ module Aws::EC2
44693
44720
  # {
44694
44721
  # dry_run: false,
44695
44722
  # spot_fleet_request_config: { # required
44696
- # allocation_strategy: "lowestPrice", # accepts lowestPrice, diversified, capacityOptimized
44723
+ # allocation_strategy: "lowestPrice", # accepts lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized
44697
44724
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
44698
44725
  # spot_maintenance_strategies: {
44699
44726
  # capacity_rebalance: {
@@ -49881,7 +49908,7 @@ module Aws::EC2
49881
49908
  # data as a hash:
49882
49909
  #
49883
49910
  # {
49884
- # allocation_strategy: "lowestPrice", # accepts lowestPrice, diversified, capacityOptimized
49911
+ # allocation_strategy: "lowestPrice", # accepts lowestPrice, diversified, capacityOptimized, capacityOptimizedPrioritized
49885
49912
  # on_demand_allocation_strategy: "lowestPrice", # accepts lowestPrice, prioritized
49886
49913
  # spot_maintenance_strategies: {
49887
49914
  # capacity_rebalance: {
@@ -50054,9 +50081,19 @@ module Aws::EC2
50054
50081
  # If the allocation strategy is `diversified`, Spot Fleet launches
50055
50082
  # instances from all the Spot Instance pools that you specify.
50056
50083
  #
50057
- # If the allocation strategy is `capacityOptimized`, Spot Fleet
50058
- # launches instances from Spot Instance pools with optimal capacity
50059
- # for the number of instances that are launching.
50084
+ # If the allocation strategy is `capacityOptimized` (recommended),
50085
+ # Spot Fleet launches instances from Spot Instance pools with optimal
50086
+ # capacity for the number of instances that are launching. To give
50087
+ # certain instance types a higher chance of launching first, use
50088
+ # `capacityOptimizedPrioritized`. Set a priority for each instance
50089
+ # type by using the `Priority` parameter for
50090
+ # `LaunchTemplateOverrides`. You can assign the same priority to
50091
+ # different `LaunchTemplateOverrides`. EC2 implements the priorities
50092
+ # on a best-effort basis, but optimizes for capacity first.
50093
+ # `capacityOptimizedPrioritized` is supported only if your Spot Fleet
50094
+ # uses a launch template. Note that if the
50095
+ # `OnDemandAllocationStrategy` is set to `prioritized`, the same
50096
+ # priority is applied when fulfilling On-Demand capacity.
50060
50097
  # @return [String]
50061
50098
  #
50062
50099
  # @!attribute [rw] on_demand_allocation_strategy
@@ -50617,9 +50654,19 @@ module Aws::EC2
50617
50654
  # If the allocation strategy is `diversified`, EC2 Fleet launches
50618
50655
  # instances from all of the Spot Instance pools that you specify.
50619
50656
  #
50620
- # If the allocation strategy is `capacity-optimized`, EC2 Fleet
50621
- # launches instances from Spot Instance pools with optimal capacity
50622
- # for the number of instances that are launching.
50657
+ # If the allocation strategy is `capacity-optimized` (recommended),
50658
+ # EC2 Fleet launches instances from Spot Instance pools with optimal
50659
+ # capacity for the number of instances that are launching. To give
50660
+ # certain instance types a higher chance of launching first, use
50661
+ # `capacity-optimized-prioritized`. Set a priority for each instance
50662
+ # type by using the `Priority` parameter for
50663
+ # `LaunchTemplateOverrides`. You can assign the same priority to
50664
+ # different `LaunchTemplateOverrides`. EC2 implements the priorities
50665
+ # on a best-effort basis, but optimizes for capacity first.
50666
+ # `capacity-optimized-prioritized` is supported only if your fleet
50667
+ # uses a launch template. Note that if the On-Demand
50668
+ # `AllocationStrategy` is set to `prioritized`, the same priority is
50669
+ # applied when fulfilling On-Demand capacity.
50623
50670
  # @return [String]
50624
50671
  #
50625
50672
  # @!attribute [rw] maintenance_strategies
@@ -50684,7 +50731,7 @@ module Aws::EC2
50684
50731
  # data as a hash:
50685
50732
  #
50686
50733
  # {
50687
- # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized
50734
+ # allocation_strategy: "lowest-price", # accepts lowest-price, diversified, capacity-optimized, capacity-optimized-prioritized
50688
50735
  # maintenance_strategies: {
50689
50736
  # capacity_rebalance: {
50690
50737
  # replacement_strategy: "launch", # accepts launch
@@ -50709,9 +50756,19 @@ module Aws::EC2
50709
50756
  # If the allocation strategy is `diversified`, EC2 Fleet launches
50710
50757
  # instances from all of the Spot Instance pools that you specify.
50711
50758
  #
50712
- # If the allocation strategy is `capacity-optimized`, EC2 Fleet
50713
- # launches instances from Spot Instance pools with optimal capacity
50714
- # for the number of instances that are launching.
50759
+ # If the allocation strategy is `capacity-optimized` (recommended),
50760
+ # EC2 Fleet launches instances from Spot Instance pools with optimal
50761
+ # capacity for the number of instances that are launching. To give
50762
+ # certain instance types a higher chance of launching first, use
50763
+ # `capacity-optimized-prioritized`. Set a priority for each instance
50764
+ # type by using the `Priority` parameter for
50765
+ # `LaunchTemplateOverrides`. You can assign the same priority to
50766
+ # different `LaunchTemplateOverrides`. EC2 implements the priorities
50767
+ # on a best-effort basis, but optimizes for capacity first.
50768
+ # `capacity-optimized-prioritized` is supported only if your fleet
50769
+ # uses a launch template. Note that if the On-Demand
50770
+ # `AllocationStrategy` is set to `prioritized`, the same priority is
50771
+ # applied when fulfilling On-Demand capacity.
50715
50772
  # @return [String]
50716
50773
  #
50717
50774
  # @!attribute [rw] maintenance_strategies
@@ -480,10 +480,10 @@ module Aws::EC2
480
480
  # ],
481
481
  # availability_zone: "String",
482
482
  # availability_zone_id: "String",
483
- # cidr_block: "String", # required
484
483
  # ipv_6_cidr_block: "String",
485
484
  # outpost_arn: "String",
486
485
  # dry_run: false,
486
+ # cidr_block: "String", # required
487
487
  # })
488
488
  # @param [Hash] options ({})
489
489
  # @option options [Array<Types::TagSpecification>] :tag_specifications
@@ -508,11 +508,6 @@ module Aws::EC2
508
508
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
509
509
  # @option options [String] :availability_zone_id
510
510
  # The AZ ID or the Local Zone ID of the subnet.
511
- # @option options [required, String] :cidr_block
512
- # The IPv4 network range for the subnet, in CIDR notation. For example,
513
- # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
514
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
515
- # `100.68.0.0/18`.
516
511
  # @option options [String] :ipv_6_cidr_block
517
512
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
518
513
  # size must use a /64 prefix length.
@@ -525,6 +520,11 @@ module Aws::EC2
525
520
  # without actually making the request, and provides an error response.
526
521
  # If you have the required permissions, the error response is
527
522
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
523
+ # @option options [required, String] :cidr_block
524
+ # The IPv4 network range for the subnet, in CIDR notation. For example,
525
+ # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
526
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
527
+ # `100.68.0.0/18`.
528
528
  # @return [Subnet]
529
529
  def create_subnet(options = {})
530
530
  options = options.merge(vpc_id: @id)
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.225.0
4
+ version: 1.226.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-02-17 00:00:00.000000000 Z
11
+ date: 2021-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4
@@ -47,11 +47,14 @@ dependencies:
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:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-ec2.rb
56
59
  - lib/aws-sdk-ec2/classic_address.rb
57
60
  - lib/aws-sdk-ec2/client.rb