aws-sdk-ec2 1.394.0 → 1.396.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.
@@ -9430,6 +9430,24 @@ module Aws::EC2
9430
9430
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
9431
9431
  # @return [String]
9432
9432
  #
9433
+ # @!attribute [rw] enable_primary_ipv_6
9434
+ # If you’re creating a network interface in a dual-stack or IPv6-only
9435
+ # subnet, you have the option to assign a primary IPv6 IP address. A
9436
+ # primary IPv6 address is an IPv6 GUA address associated with an ENI
9437
+ # that you have enabled to use a primary IPv6 address. Use this option
9438
+ # if the instance that this ENI will be attached to relies on its IPv6
9439
+ # address not changing. Amazon Web Services will automatically assign
9440
+ # an IPv6 address associated with the ENI attached to your instance to
9441
+ # be the primary IPv6 address. Once you enable an IPv6 GUA address to
9442
+ # be a primary IPv6, you cannot disable it. When you enable an IPv6
9443
+ # GUA address to be a primary IPv6, the first IPv6 GUA will be made
9444
+ # the primary IPv6 address until the instance is terminated or the
9445
+ # network interface is detached. If you have multiple IPv6 addresses
9446
+ # associated with an ENI attached to your instance and you enable a
9447
+ # primary IPv6 address, the first IPv6 GUA address associated with the
9448
+ # ENI becomes the primary IPv6 address.
9449
+ # @return [Boolean]
9450
+ #
9433
9451
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceRequest AWS API Documentation
9434
9452
  #
9435
9453
  class CreateNetworkInterfaceRequest < Struct.new(
@@ -9448,7 +9466,8 @@ module Aws::EC2
9448
9466
  :interface_type,
9449
9467
  :subnet_id,
9450
9468
  :tag_specifications,
9451
- :client_token)
9469
+ :client_token,
9470
+ :enable_primary_ipv_6)
9452
9471
  SENSITIVE = []
9453
9472
  include Aws::Structure
9454
9473
  end
@@ -28752,8 +28771,7 @@ module Aws::EC2
28752
28771
  # @!attribute [rw] outpost_arn
28753
28772
  # The ARN of the Outpost on which the snapshot is stored.
28754
28773
  #
28755
- # This parameter is only supported on `BlockDeviceMapping` objects
28756
- # called by [ CreateImage][1].
28774
+ # This parameter is not supported when using [CreateImage][1].
28757
28775
  #
28758
28776
  #
28759
28777
  #
@@ -32752,10 +32770,15 @@ module Aws::EC2
32752
32770
  # Indicates whether encryption by default is enabled.
32753
32771
  # @return [Boolean]
32754
32772
  #
32773
+ # @!attribute [rw] sse_type
32774
+ # Reserved for future use.
32775
+ # @return [String]
32776
+ #
32755
32777
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetEbsEncryptionByDefaultResult AWS API Documentation
32756
32778
  #
32757
32779
  class GetEbsEncryptionByDefaultResult < Struct.new(
32758
- :ebs_encryption_by_default)
32780
+ :ebs_encryption_by_default,
32781
+ :sse_type)
32759
32782
  SENSITIVE = []
32760
32783
  include Aws::Structure
32761
32784
  end
@@ -37578,10 +37601,23 @@ module Aws::EC2
37578
37601
  # The IPv6 address.
37579
37602
  # @return [String]
37580
37603
  #
37604
+ # @!attribute [rw] is_primary_ipv_6
37605
+ # Determines if an IPv6 address associated with a network interface is
37606
+ # the primary IPv6 address. When you enable an IPv6 GUA address to be
37607
+ # a primary IPv6, the first IPv6 GUA will be made the primary IPv6
37608
+ # address until the instance is terminated or the network interface is
37609
+ # detached. For more information, see [RunInstances][1].
37610
+ #
37611
+ #
37612
+ #
37613
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
37614
+ # @return [Boolean]
37615
+ #
37581
37616
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceIpv6Address AWS API Documentation
37582
37617
  #
37583
37618
  class InstanceIpv6Address < Struct.new(
37584
- :ipv_6_address)
37619
+ :ipv_6_address,
37620
+ :is_primary_ipv_6)
37585
37621
  SENSITIVE = []
37586
37622
  include Aws::Structure
37587
37623
  end
@@ -38172,6 +38208,18 @@ module Aws::EC2
38172
38208
  # `Ipv6Prefix` option.
38173
38209
  # @return [Integer]
38174
38210
  #
38211
+ # @!attribute [rw] primary_ipv_6
38212
+ # The primary IPv6 address of the network interface. When you enable
38213
+ # an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be
38214
+ # made the primary IPv6 address until the instance is terminated or
38215
+ # the network interface is detached. For more information about
38216
+ # primary IPv6 addresses, see [RunInstances][1].
38217
+ #
38218
+ #
38219
+ #
38220
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
38221
+ # @return [Boolean]
38222
+ #
38175
38223
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceNetworkInterfaceSpecification AWS API Documentation
38176
38224
  #
38177
38225
  class InstanceNetworkInterfaceSpecification < Struct.new(
@@ -38193,7 +38241,8 @@ module Aws::EC2
38193
38241
  :ipv_4_prefixes,
38194
38242
  :ipv_4_prefix_count,
38195
38243
  :ipv_6_prefixes,
38196
- :ipv_6_prefix_count)
38244
+ :ipv_6_prefix_count,
38245
+ :primary_ipv_6)
38197
38246
  SENSITIVE = []
38198
38247
  include Aws::Structure
38199
38248
  end
@@ -42265,6 +42314,18 @@ module Aws::EC2
42265
42314
  # assigned to the network interface.
42266
42315
  # @return [Integer]
42267
42316
  #
42317
+ # @!attribute [rw] primary_ipv_6
42318
+ # The primary IPv6 address of the network interface. When you enable
42319
+ # an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be
42320
+ # made the primary IPv6 address until the instance is terminated or
42321
+ # the network interface is detached. For more information about
42322
+ # primary IPv6 addresses, see [RunInstances][1].
42323
+ #
42324
+ #
42325
+ #
42326
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
42327
+ # @return [Boolean]
42328
+ #
42268
42329
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceNetworkInterfaceSpecification AWS API Documentation
42269
42330
  #
42270
42331
  class LaunchTemplateInstanceNetworkInterfaceSpecification < Struct.new(
@@ -42286,7 +42347,8 @@ module Aws::EC2
42286
42347
  :ipv_4_prefixes,
42287
42348
  :ipv_4_prefix_count,
42288
42349
  :ipv_6_prefixes,
42289
- :ipv_6_prefix_count)
42350
+ :ipv_6_prefix_count,
42351
+ :primary_ipv_6)
42290
42352
  SENSITIVE = []
42291
42353
  include Aws::Structure
42292
42354
  end
@@ -42406,6 +42468,18 @@ module Aws::EC2
42406
42468
  # `Ipv6Prefix` option.
42407
42469
  # @return [Integer]
42408
42470
  #
42471
+ # @!attribute [rw] primary_ipv_6
42472
+ # The primary IPv6 address of the network interface. When you enable
42473
+ # an IPv6 GUA address to be a primary IPv6, the first IPv6 GUA will be
42474
+ # made the primary IPv6 address until the instance is terminated or
42475
+ # the network interface is detached. For more information about
42476
+ # primary IPv6 addresses, see [RunInstances][1].
42477
+ #
42478
+ #
42479
+ #
42480
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html
42481
+ # @return [Boolean]
42482
+ #
42409
42483
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/LaunchTemplateInstanceNetworkInterfaceSpecificationRequest AWS API Documentation
42410
42484
  #
42411
42485
  class LaunchTemplateInstanceNetworkInterfaceSpecificationRequest < Struct.new(
@@ -42427,7 +42501,8 @@ module Aws::EC2
42427
42501
  :ipv_4_prefixes,
42428
42502
  :ipv_4_prefix_count,
42429
42503
  :ipv_6_prefixes,
42430
- :ipv_6_prefix_count)
42504
+ :ipv_6_prefix_count,
42505
+ :primary_ipv_6)
42431
42506
  SENSITIVE = []
42432
42507
  include Aws::Structure
42433
42508
  end
@@ -45728,6 +45803,24 @@ module Aws::EC2
45728
45803
  # that’s attached to the instance.
45729
45804
  # @return [Types::EnaSrdSpecification]
45730
45805
  #
45806
+ # @!attribute [rw] enable_primary_ipv_6
45807
+ # If you’re modifying a network interface in a dual-stack or IPv6-only
45808
+ # subnet, you have the option to assign a primary IPv6 IP address. A
45809
+ # primary IPv6 address is an IPv6 GUA address associated with an ENI
45810
+ # that you have enabled to use a primary IPv6 address. Use this option
45811
+ # if the instance that this ENI will be attached to relies on its IPv6
45812
+ # address not changing. Amazon Web Services will automatically assign
45813
+ # an IPv6 address associated with the ENI attached to your instance to
45814
+ # be the primary IPv6 address. Once you enable an IPv6 GUA address to
45815
+ # be a primary IPv6, you cannot disable it. When you enable an IPv6
45816
+ # GUA address to be a primary IPv6, the first IPv6 GUA will be made
45817
+ # the primary IPv6 address until the instance is terminated or the
45818
+ # network interface is detached. If you have multiple IPv6 addresses
45819
+ # associated with an ENI attached to your instance and you enable a
45820
+ # primary IPv6 address, the first IPv6 GUA address associated with the
45821
+ # ENI becomes the primary IPv6 address.
45822
+ # @return [Boolean]
45823
+ #
45731
45824
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyNetworkInterfaceAttributeRequest AWS API Documentation
45732
45825
  #
45733
45826
  class ModifyNetworkInterfaceAttributeRequest < Struct.new(
@@ -45737,7 +45830,8 @@ module Aws::EC2
45737
45830
  :groups,
45738
45831
  :network_interface_id,
45739
45832
  :source_dest_check,
45740
- :ena_srd_specification)
45833
+ :ena_srd_specification,
45834
+ :enable_primary_ipv_6)
45741
45835
  SENSITIVE = []
45742
45836
  include Aws::Structure
45743
45837
  end
@@ -49288,10 +49382,24 @@ module Aws::EC2
49288
49382
  # The IPv6 address.
49289
49383
  # @return [String]
49290
49384
  #
49385
+ # @!attribute [rw] is_primary_ipv_6
49386
+ # Determines if an IPv6 address associated with a network interface is
49387
+ # the primary IPv6 address. When you enable an IPv6 GUA address to be
49388
+ # a primary IPv6, the first IPv6 GUA will be made the primary IPv6
49389
+ # address until the instance is terminated or the network interface is
49390
+ # detached. For more information, see
49391
+ # [ModifyNetworkInterfaceAttribute][1].
49392
+ #
49393
+ #
49394
+ #
49395
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyNetworkInterfaceAttribute.html
49396
+ # @return [Boolean]
49397
+ #
49291
49398
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NetworkInterfaceIpv6Address AWS API Documentation
49292
49399
  #
49293
49400
  class NetworkInterfaceIpv6Address < Struct.new(
49294
- :ipv_6_address)
49401
+ :ipv_6_address,
49402
+ :is_primary_ipv_6)
49295
49403
  SENSITIVE = []
49296
49404
  include Aws::Structure
49297
49405
  end
@@ -54717,6 +54825,10 @@ module Aws::EC2
54717
54825
  # The size of the volume, in GiB.
54718
54826
  # @return [Integer]
54719
54827
  #
54828
+ # @!attribute [rw] sse_type
54829
+ # Reserved for future use.
54830
+ # @return [String]
54831
+ #
54720
54832
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreSnapshotFromRecycleBinResult AWS API Documentation
54721
54833
  #
54722
54834
  class RestoreSnapshotFromRecycleBinResult < Struct.new(
@@ -54729,7 +54841,8 @@ module Aws::EC2
54729
54841
  :start_time,
54730
54842
  :state,
54731
54843
  :volume_id,
54732
- :volume_size)
54844
+ :volume_size,
54845
+ :sse_type)
54733
54846
  SENSITIVE = []
54734
54847
  include Aws::Structure
54735
54848
  end
@@ -55743,6 +55856,24 @@ module Aws::EC2
55743
55856
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
55744
55857
  # @return [Boolean]
55745
55858
  #
55859
+ # @!attribute [rw] enable_primary_ipv_6
55860
+ # If you’re launching an instance into a dual-stack or IPv6-only
55861
+ # subnet, you can enable assigning a primary IPv6 address. A primary
55862
+ # IPv6 address is an IPv6 GUA address associated with an ENI that you
55863
+ # have enabled to use a primary IPv6 address. Use this option if an
55864
+ # instance relies on its IPv6 address not changing. When you launch
55865
+ # the instance, Amazon Web Services will automatically assign an IPv6
55866
+ # address associated with the ENI attached to your instance to be the
55867
+ # primary IPv6 address. Once you enable an IPv6 GUA address to be a
55868
+ # primary IPv6, you cannot disable it. When you enable an IPv6 GUA
55869
+ # address to be a primary IPv6, the first IPv6 GUA will be made the
55870
+ # primary IPv6 address until the instance is terminated or the network
55871
+ # interface is detached. If you have multiple IPv6 addresses
55872
+ # associated with an ENI attached to your instance and you enable a
55873
+ # primary IPv6 address, the first IPv6 GUA address associated with the
55874
+ # ENI becomes the primary IPv6 address.
55875
+ # @return [Boolean]
55876
+ #
55746
55877
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RunInstancesRequest AWS API Documentation
55747
55878
  #
55748
55879
  class RunInstancesRequest < Struct.new(
@@ -55785,7 +55916,8 @@ module Aws::EC2
55785
55916
  :enclave_options,
55786
55917
  :private_dns_name_options,
55787
55918
  :maintenance_options,
55788
- :disable_api_stop)
55919
+ :disable_api_stop,
55920
+ :enable_primary_ipv_6)
55789
55921
  SENSITIVE = [:user_data]
55790
55922
  include Aws::Structure
55791
55923
  end
@@ -57422,6 +57554,10 @@ module Aws::EC2
57422
57554
  # automatically re-archived.
57423
57555
  # @return [Time]
57424
57556
  #
57557
+ # @!attribute [rw] sse_type
57558
+ # Reserved for future use.
57559
+ # @return [String]
57560
+ #
57425
57561
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Snapshot AWS API Documentation
57426
57562
  #
57427
57563
  class Snapshot < Struct.new(
@@ -57441,7 +57577,8 @@ module Aws::EC2
57441
57577
  :outpost_arn,
57442
57578
  :tags,
57443
57579
  :storage_tier,
57444
- :restore_expiry_time)
57580
+ :restore_expiry_time,
57581
+ :sse_type)
57445
57582
  SENSITIVE = []
57446
57583
  include Aws::Structure
57447
57584
  end
@@ -57591,6 +57728,10 @@ module Aws::EC2
57591
57728
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html
57592
57729
  # @return [String]
57593
57730
  #
57731
+ # @!attribute [rw] sse_type
57732
+ # Reserved for future use.
57733
+ # @return [String]
57734
+ #
57594
57735
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SnapshotInfo AWS API Documentation
57595
57736
  #
57596
57737
  class SnapshotInfo < Struct.new(
@@ -57604,7 +57745,8 @@ module Aws::EC2
57604
57745
  :progress,
57605
57746
  :owner_id,
57606
57747
  :snapshot_id,
57607
- :outpost_arn)
57748
+ :outpost_arn,
57749
+ :sse_type)
57608
57750
  SENSITIVE = []
57609
57751
  include Aws::Structure
57610
57752
  end
@@ -63641,6 +63783,10 @@ module Aws::EC2
63641
63783
  # The throughput that the volume supports, in MiB/s.
63642
63784
  # @return [Integer]
63643
63785
  #
63786
+ # @!attribute [rw] sse_type
63787
+ # Reserved for future use.
63788
+ # @return [String]
63789
+ #
63644
63790
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Volume AWS API Documentation
63645
63791
  #
63646
63792
  class Volume < Struct.new(
@@ -63659,7 +63805,8 @@ module Aws::EC2
63659
63805
  :volume_type,
63660
63806
  :fast_restored,
63661
63807
  :multi_attach_enabled,
63662
- :throughput)
63808
+ :throughput,
63809
+ :sse_type)
63663
63810
  SENSITIVE = []
63664
63811
  include Aws::Structure
63665
63812
  end
@@ -130,6 +130,12 @@ module Aws::EC2
130
130
  data[:throughput]
131
131
  end
132
132
 
133
+ # Reserved for future use.
134
+ # @return [String]
135
+ def sse_type
136
+ data[:sse_type]
137
+ end
138
+
133
139
  # @!endgroup
134
140
 
135
141
  # @return [Client]
@@ -93,6 +93,7 @@ module Aws::EC2
93
93
  # | snapshot_completed | {Client#describe_snapshots} | 15 | 40 |
94
94
  # | snapshot_imported | {Client#describe_import_snapshot_tasks} | 15 | 40 |
95
95
  # | spot_instance_request_fulfilled | {Client#describe_spot_instance_requests} | 15 | 40 |
96
+ # | store_image_task_complete | {Client#describe_store_image_tasks} | 5 | 40 |
96
97
  # | subnet_available | {Client#describe_subnets} | 15 | 40 |
97
98
  # | system_status_ok | {Client#describe_instance_status} | 15 | 40 |
98
99
  # | volume_available | {Client#describe_volumes} | 15 | 40 |
@@ -1202,6 +1203,56 @@ module Aws::EC2
1202
1203
 
1203
1204
  end
1204
1205
 
1206
+ class StoreImageTaskComplete
1207
+
1208
+ # @param [Hash] options
1209
+ # @option options [required, Client] :client
1210
+ # @option options [Integer] :max_attempts (40)
1211
+ # @option options [Integer] :delay (5)
1212
+ # @option options [Proc] :before_attempt
1213
+ # @option options [Proc] :before_wait
1214
+ def initialize(options)
1215
+ @client = options.fetch(:client)
1216
+ @waiter = Aws::Waiters::Waiter.new({
1217
+ max_attempts: 40,
1218
+ delay: 5,
1219
+ poller: Aws::Waiters::Poller.new(
1220
+ operation_name: :describe_store_image_tasks,
1221
+ acceptors: [
1222
+ {
1223
+ "expected" => "Completed",
1224
+ "matcher" => "pathAll",
1225
+ "state" => "success",
1226
+ "argument" => "store_image_task_results[].store_task_state"
1227
+ },
1228
+ {
1229
+ "expected" => "Failed",
1230
+ "matcher" => "pathAny",
1231
+ "state" => "failure",
1232
+ "argument" => "store_image_task_results[].store_task_state"
1233
+ },
1234
+ {
1235
+ "expected" => "InProgress",
1236
+ "matcher" => "pathAny",
1237
+ "state" => "retry",
1238
+ "argument" => "store_image_task_results[].store_task_state"
1239
+ }
1240
+ ]
1241
+ )
1242
+ }.merge(options))
1243
+ end
1244
+
1245
+ # @option (see Client#describe_store_image_tasks)
1246
+ # @return (see Client#describe_store_image_tasks)
1247
+ def wait(params = {})
1248
+ @waiter.wait(client: @client, params: params)
1249
+ end
1250
+
1251
+ # @api private
1252
+ attr_reader :waiter
1253
+
1254
+ end
1255
+
1205
1256
  class SubnetAvailable
1206
1257
 
1207
1258
  # @param [Hash] options
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.394.0'
79
+ GEM_VERSION = '1.396.0'
80
80
 
81
81
  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.394.0
4
+ version: 1.396.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: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2023-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4