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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +99 -1
- data/lib/aws-sdk-ec2/client_api.rb +14 -0
- data/lib/aws-sdk-ec2/network_interface.rb +17 -0
- data/lib/aws-sdk-ec2/resource.rb +38 -0
- data/lib/aws-sdk-ec2/snapshot.rb +6 -0
- data/lib/aws-sdk-ec2/subnet.rb +38 -0
- data/lib/aws-sdk-ec2/types.rb +162 -15
- data/lib/aws-sdk-ec2/volume.rb +6 -0
- data/lib/aws-sdk-ec2/waiters.rb +51 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
@@ -2508,6 +2508,7 @@ module Aws::EC2
|
|
2508
2508
|
S3ObjectTag = Shapes::StructureShape.new(name: 'S3ObjectTag')
|
2509
2509
|
S3ObjectTagList = Shapes::ListShape.new(name: 'S3ObjectTagList')
|
2510
2510
|
S3Storage = Shapes::StructureShape.new(name: 'S3Storage')
|
2511
|
+
SSEType = Shapes::StringShape.new(name: 'SSEType')
|
2511
2512
|
ScheduledInstance = Shapes::StructureShape.new(name: 'ScheduledInstance')
|
2512
2513
|
ScheduledInstanceAvailability = Shapes::StructureShape.new(name: 'ScheduledInstanceAvailability')
|
2513
2514
|
ScheduledInstanceAvailabilitySet = Shapes::ListShape.new(name: 'ScheduledInstanceAvailabilitySet')
|
@@ -4772,6 +4773,7 @@ module Aws::EC2
|
|
4772
4773
|
CreateNetworkInterfaceRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
|
4773
4774
|
CreateNetworkInterfaceRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
4774
4775
|
CreateNetworkInterfaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
4776
|
+
CreateNetworkInterfaceRequest.add_member(:enable_primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnablePrimaryIpv6"))
|
4775
4777
|
CreateNetworkInterfaceRequest.struct_class = Types::CreateNetworkInterfaceRequest
|
4776
4778
|
|
4777
4779
|
CreateNetworkInterfaceResult.add_member(:network_interface, Shapes::ShapeRef.new(shape: NetworkInterface, location_name: "networkInterface"))
|
@@ -8660,6 +8662,7 @@ module Aws::EC2
|
|
8660
8662
|
GetEbsEncryptionByDefaultRequest.struct_class = Types::GetEbsEncryptionByDefaultRequest
|
8661
8663
|
|
8662
8664
|
GetEbsEncryptionByDefaultResult.add_member(:ebs_encryption_by_default, Shapes::ShapeRef.new(shape: Boolean, location_name: "ebsEncryptionByDefault"))
|
8665
|
+
GetEbsEncryptionByDefaultResult.add_member(:sse_type, Shapes::ShapeRef.new(shape: SSEType, location_name: "sseType"))
|
8663
8666
|
GetEbsEncryptionByDefaultResult.struct_class = Types::GetEbsEncryptionByDefaultResult
|
8664
8667
|
|
8665
8668
|
GetFlowLogsIntegrationTemplateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -9623,6 +9626,7 @@ module Aws::EC2
|
|
9623
9626
|
InstanceIpv4PrefixList.member = Shapes::ShapeRef.new(shape: InstanceIpv4Prefix, location_name: "item")
|
9624
9627
|
|
9625
9628
|
InstanceIpv6Address.add_member(:ipv_6_address, Shapes::ShapeRef.new(shape: String, location_name: "ipv6Address"))
|
9629
|
+
InstanceIpv6Address.add_member(:is_primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPrimaryIpv6"))
|
9626
9630
|
InstanceIpv6Address.struct_class = Types::InstanceIpv6Address
|
9627
9631
|
|
9628
9632
|
InstanceIpv6AddressList.member = Shapes::ShapeRef.new(shape: InstanceIpv6Address, location_name: "item")
|
@@ -9726,6 +9730,7 @@ module Aws::EC2
|
|
9726
9730
|
InstanceNetworkInterfaceSpecification.add_member(:ipv_4_prefix_count, Shapes::ShapeRef.new(shape: Integer, location_name: "Ipv4PrefixCount"))
|
9727
9731
|
InstanceNetworkInterfaceSpecification.add_member(:ipv_6_prefixes, Shapes::ShapeRef.new(shape: Ipv6PrefixList, location_name: "Ipv6Prefix"))
|
9728
9732
|
InstanceNetworkInterfaceSpecification.add_member(:ipv_6_prefix_count, Shapes::ShapeRef.new(shape: Integer, location_name: "Ipv6PrefixCount"))
|
9733
|
+
InstanceNetworkInterfaceSpecification.add_member(:primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "PrimaryIpv6"))
|
9729
9734
|
InstanceNetworkInterfaceSpecification.struct_class = Types::InstanceNetworkInterfaceSpecification
|
9730
9735
|
|
9731
9736
|
InstanceNetworkInterfaceSpecificationList.member = Shapes::ShapeRef.new(shape: InstanceNetworkInterfaceSpecification, location_name: "item")
|
@@ -10413,6 +10418,7 @@ module Aws::EC2
|
|
10413
10418
|
LaunchTemplateInstanceNetworkInterfaceSpecification.add_member(:ipv_4_prefix_count, Shapes::ShapeRef.new(shape: Integer, location_name: "ipv4PrefixCount"))
|
10414
10419
|
LaunchTemplateInstanceNetworkInterfaceSpecification.add_member(:ipv_6_prefixes, Shapes::ShapeRef.new(shape: Ipv6PrefixListResponse, location_name: "ipv6PrefixSet"))
|
10415
10420
|
LaunchTemplateInstanceNetworkInterfaceSpecification.add_member(:ipv_6_prefix_count, Shapes::ShapeRef.new(shape: Integer, location_name: "ipv6PrefixCount"))
|
10421
|
+
LaunchTemplateInstanceNetworkInterfaceSpecification.add_member(:primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "primaryIpv6"))
|
10416
10422
|
LaunchTemplateInstanceNetworkInterfaceSpecification.struct_class = Types::LaunchTemplateInstanceNetworkInterfaceSpecification
|
10417
10423
|
|
10418
10424
|
LaunchTemplateInstanceNetworkInterfaceSpecificationList.member = Shapes::ShapeRef.new(shape: LaunchTemplateInstanceNetworkInterfaceSpecification, location_name: "item")
|
@@ -10436,6 +10442,7 @@ module Aws::EC2
|
|
10436
10442
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.add_member(:ipv_4_prefix_count, Shapes::ShapeRef.new(shape: Integer, location_name: "Ipv4PrefixCount"))
|
10437
10443
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.add_member(:ipv_6_prefixes, Shapes::ShapeRef.new(shape: Ipv6PrefixList, location_name: "Ipv6Prefix"))
|
10438
10444
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.add_member(:ipv_6_prefix_count, Shapes::ShapeRef.new(shape: Integer, location_name: "Ipv6PrefixCount"))
|
10445
|
+
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.add_member(:primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "PrimaryIpv6"))
|
10439
10446
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequest.struct_class = Types::LaunchTemplateInstanceNetworkInterfaceSpecificationRequest
|
10440
10447
|
|
10441
10448
|
LaunchTemplateInstanceNetworkInterfaceSpecificationRequestList.member = Shapes::ShapeRef.new(shape: LaunchTemplateInstanceNetworkInterfaceSpecificationRequest, location_name: "InstanceNetworkInterfaceSpecification")
|
@@ -11058,6 +11065,7 @@ module Aws::EC2
|
|
11058
11065
|
ModifyNetworkInterfaceAttributeRequest.add_member(:network_interface_id, Shapes::ShapeRef.new(shape: NetworkInterfaceId, required: true, location_name: "networkInterfaceId"))
|
11059
11066
|
ModifyNetworkInterfaceAttributeRequest.add_member(:source_dest_check, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "sourceDestCheck"))
|
11060
11067
|
ModifyNetworkInterfaceAttributeRequest.add_member(:ena_srd_specification, Shapes::ShapeRef.new(shape: EnaSrdSpecification, location_name: "EnaSrdSpecification"))
|
11068
|
+
ModifyNetworkInterfaceAttributeRequest.add_member(:enable_primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnablePrimaryIpv6"))
|
11061
11069
|
ModifyNetworkInterfaceAttributeRequest.struct_class = Types::ModifyNetworkInterfaceAttributeRequest
|
11062
11070
|
|
11063
11071
|
ModifyPrivateDnsNameOptionsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -11736,6 +11744,7 @@ module Aws::EC2
|
|
11736
11744
|
NetworkInterfaceIdSet.member = Shapes::ShapeRef.new(shape: String, location_name: "item")
|
11737
11745
|
|
11738
11746
|
NetworkInterfaceIpv6Address.add_member(:ipv_6_address, Shapes::ShapeRef.new(shape: String, location_name: "ipv6Address"))
|
11747
|
+
NetworkInterfaceIpv6Address.add_member(:is_primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "isPrimaryIpv6"))
|
11739
11748
|
NetworkInterfaceIpv6Address.struct_class = Types::NetworkInterfaceIpv6Address
|
11740
11749
|
|
11741
11750
|
NetworkInterfaceIpv6AddressesList.member = Shapes::ShapeRef.new(shape: NetworkInterfaceIpv6Address, location_name: "item")
|
@@ -12854,6 +12863,7 @@ module Aws::EC2
|
|
12854
12863
|
RestoreSnapshotFromRecycleBinResult.add_member(:state, Shapes::ShapeRef.new(shape: SnapshotState, location_name: "status"))
|
12855
12864
|
RestoreSnapshotFromRecycleBinResult.add_member(:volume_id, Shapes::ShapeRef.new(shape: String, location_name: "volumeId"))
|
12856
12865
|
RestoreSnapshotFromRecycleBinResult.add_member(:volume_size, Shapes::ShapeRef.new(shape: Integer, location_name: "volumeSize"))
|
12866
|
+
RestoreSnapshotFromRecycleBinResult.add_member(:sse_type, Shapes::ShapeRef.new(shape: SSEType, location_name: "sseType"))
|
12857
12867
|
RestoreSnapshotFromRecycleBinResult.struct_class = Types::RestoreSnapshotFromRecycleBinResult
|
12858
12868
|
|
12859
12869
|
RestoreSnapshotTierRequest.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: SnapshotId, required: true, location_name: "SnapshotId"))
|
@@ -13021,6 +13031,7 @@ module Aws::EC2
|
|
13021
13031
|
RunInstancesRequest.add_member(:private_dns_name_options, Shapes::ShapeRef.new(shape: PrivateDnsNameOptionsRequest, location_name: "PrivateDnsNameOptions"))
|
13022
13032
|
RunInstancesRequest.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: InstanceMaintenanceOptionsRequest, location_name: "MaintenanceOptions"))
|
13023
13033
|
RunInstancesRequest.add_member(:disable_api_stop, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisableApiStop"))
|
13034
|
+
RunInstancesRequest.add_member(:enable_primary_ipv_6, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnablePrimaryIpv6"))
|
13024
13035
|
RunInstancesRequest.struct_class = Types::RunInstancesRequest
|
13025
13036
|
|
13026
13037
|
RunScheduledInstancesRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
@@ -13346,6 +13357,7 @@ module Aws::EC2
|
|
13346
13357
|
Snapshot.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
13347
13358
|
Snapshot.add_member(:storage_tier, Shapes::ShapeRef.new(shape: StorageTier, location_name: "storageTier"))
|
13348
13359
|
Snapshot.add_member(:restore_expiry_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "restoreExpiryTime"))
|
13360
|
+
Snapshot.add_member(:sse_type, Shapes::ShapeRef.new(shape: SSEType, location_name: "sseType"))
|
13349
13361
|
Snapshot.struct_class = Types::Snapshot
|
13350
13362
|
|
13351
13363
|
SnapshotDetail.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
@@ -13381,6 +13393,7 @@ module Aws::EC2
|
|
13381
13393
|
SnapshotInfo.add_member(:owner_id, Shapes::ShapeRef.new(shape: String, location_name: "ownerId"))
|
13382
13394
|
SnapshotInfo.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: String, location_name: "snapshotId"))
|
13383
13395
|
SnapshotInfo.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "outpostArn"))
|
13396
|
+
SnapshotInfo.add_member(:sse_type, Shapes::ShapeRef.new(shape: SSEType, location_name: "sseType"))
|
13384
13397
|
SnapshotInfo.struct_class = Types::SnapshotInfo
|
13385
13398
|
|
13386
13399
|
SnapshotList.member = Shapes::ShapeRef.new(shape: Snapshot, location_name: "item")
|
@@ -14646,6 +14659,7 @@ module Aws::EC2
|
|
14646
14659
|
Volume.add_member(:fast_restored, Shapes::ShapeRef.new(shape: Boolean, location_name: "fastRestored"))
|
14647
14660
|
Volume.add_member(:multi_attach_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "multiAttachEnabled"))
|
14648
14661
|
Volume.add_member(:throughput, Shapes::ShapeRef.new(shape: Integer, location_name: "throughput"))
|
14662
|
+
Volume.add_member(:sse_type, Shapes::ShapeRef.new(shape: SSEType, location_name: "sseType"))
|
14649
14663
|
Volume.struct_class = Types::Volume
|
14650
14664
|
|
14651
14665
|
VolumeAttachment.add_member(:attach_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "attachTime"))
|
@@ -598,6 +598,7 @@ module Aws::EC2
|
|
598
598
|
# ena_srd_udp_enabled: false,
|
599
599
|
# },
|
600
600
|
# },
|
601
|
+
# enable_primary_ipv_6: false,
|
601
602
|
# })
|
602
603
|
# @param [Hash] options ({})
|
603
604
|
# @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
|
@@ -626,6 +627,22 @@ module Aws::EC2
|
|
626
627
|
# @option options [Types::EnaSrdSpecification] :ena_srd_specification
|
627
628
|
# Updates the ENA Express configuration for the network interface that’s
|
628
629
|
# attached to the instance.
|
630
|
+
# @option options [Boolean] :enable_primary_ipv_6
|
631
|
+
# If you’re modifying a network interface in a dual-stack or IPv6-only
|
632
|
+
# subnet, you have the option to assign a primary IPv6 IP address. A
|
633
|
+
# primary IPv6 address is an IPv6 GUA address associated with an ENI
|
634
|
+
# that you have enabled to use a primary IPv6 address. Use this option
|
635
|
+
# if the instance that this ENI will be attached to relies on its IPv6
|
636
|
+
# address not changing. Amazon Web Services will automatically assign an
|
637
|
+
# IPv6 address associated with the ENI attached to your instance to be
|
638
|
+
# the primary IPv6 address. Once you enable an IPv6 GUA address to be a
|
639
|
+
# primary IPv6, you cannot disable it. When you enable an IPv6 GUA
|
640
|
+
# address to be a primary IPv6, the first IPv6 GUA will be made the
|
641
|
+
# primary IPv6 address until the instance is terminated or the network
|
642
|
+
# interface is detached. If you have multiple IPv6 addresses associated
|
643
|
+
# with an ENI attached to your instance and you enable a primary IPv6
|
644
|
+
# address, the first IPv6 GUA address associated with the ENI becomes
|
645
|
+
# the primary IPv6 address.
|
629
646
|
# @return [EmptyStructure]
|
630
647
|
def modify_attribute(options = {})
|
631
648
|
options = options.merge(network_interface_id: @id)
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -106,6 +106,7 @@ module Aws::EC2
|
|
106
106
|
# ipv_6_addresses: [
|
107
107
|
# {
|
108
108
|
# ipv_6_address: "String",
|
109
|
+
# is_primary_ipv_6: false,
|
109
110
|
# },
|
110
111
|
# ],
|
111
112
|
# kernel_id: "KernelId",
|
@@ -152,6 +153,7 @@ module Aws::EC2
|
|
152
153
|
# ipv_6_addresses: [
|
153
154
|
# {
|
154
155
|
# ipv_6_address: "String",
|
156
|
+
# is_primary_ipv_6: false,
|
155
157
|
# },
|
156
158
|
# ],
|
157
159
|
# network_interface_id: "NetworkInterfaceId",
|
@@ -179,6 +181,7 @@ module Aws::EC2
|
|
179
181
|
# },
|
180
182
|
# ],
|
181
183
|
# ipv_6_prefix_count: 1,
|
184
|
+
# primary_ipv_6: false,
|
182
185
|
# },
|
183
186
|
# ],
|
184
187
|
# private_ip_address: "String",
|
@@ -261,6 +264,7 @@ module Aws::EC2
|
|
261
264
|
# auto_recovery: "disabled", # accepts disabled, default
|
262
265
|
# },
|
263
266
|
# disable_api_stop: false,
|
267
|
+
# enable_primary_ipv_6: false,
|
264
268
|
# })
|
265
269
|
# @param [Hash] options ({})
|
266
270
|
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
@@ -601,6 +605,22 @@ module Aws::EC2
|
|
601
605
|
#
|
602
606
|
#
|
603
607
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
|
608
|
+
# @option options [Boolean] :enable_primary_ipv_6
|
609
|
+
# If you’re launching an instance into a dual-stack or IPv6-only subnet,
|
610
|
+
# you can enable assigning a primary IPv6 address. A primary IPv6
|
611
|
+
# address is an IPv6 GUA address associated with an ENI that you have
|
612
|
+
# enabled to use a primary IPv6 address. Use this option if an instance
|
613
|
+
# relies on its IPv6 address not changing. When you launch the instance,
|
614
|
+
# Amazon Web Services will automatically assign an IPv6 address
|
615
|
+
# associated with the ENI attached to your instance to be the primary
|
616
|
+
# IPv6 address. Once you enable an IPv6 GUA address to be a primary
|
617
|
+
# IPv6, you cannot disable it. When you enable an IPv6 GUA address to be
|
618
|
+
# a primary IPv6, the first IPv6 GUA will be made the primary IPv6
|
619
|
+
# address until the instance is terminated or the network interface is
|
620
|
+
# detached. If you have multiple IPv6 addresses associated with an ENI
|
621
|
+
# attached to your instance and you enable a primary IPv6 address, the
|
622
|
+
# first IPv6 GUA address associated with the ENI becomes the primary
|
623
|
+
# IPv6 address.
|
604
624
|
# @return [Instance::Collection]
|
605
625
|
def create_instances(options = {})
|
606
626
|
batch = []
|
@@ -847,6 +867,7 @@ module Aws::EC2
|
|
847
867
|
# ipv_6_addresses: [
|
848
868
|
# {
|
849
869
|
# ipv_6_address: "String",
|
870
|
+
# is_primary_ipv_6: false,
|
850
871
|
# },
|
851
872
|
# ],
|
852
873
|
# private_ip_address: "String",
|
@@ -883,6 +904,7 @@ module Aws::EC2
|
|
883
904
|
# },
|
884
905
|
# ],
|
885
906
|
# client_token: "String",
|
907
|
+
# enable_primary_ipv_6: false,
|
886
908
|
# })
|
887
909
|
# @param [Hash] options ({})
|
888
910
|
# @option options [String] :description
|
@@ -975,6 +997,22 @@ module Aws::EC2
|
|
975
997
|
#
|
976
998
|
#
|
977
999
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
1000
|
+
# @option options [Boolean] :enable_primary_ipv_6
|
1001
|
+
# If you’re creating a network interface in a dual-stack or IPv6-only
|
1002
|
+
# subnet, you have the option to assign a primary IPv6 IP address. A
|
1003
|
+
# primary IPv6 address is an IPv6 GUA address associated with an ENI
|
1004
|
+
# that you have enabled to use a primary IPv6 address. Use this option
|
1005
|
+
# if the instance that this ENI will be attached to relies on its IPv6
|
1006
|
+
# address not changing. Amazon Web Services will automatically assign an
|
1007
|
+
# IPv6 address associated with the ENI attached to your instance to be
|
1008
|
+
# the primary IPv6 address. Once you enable an IPv6 GUA address to be a
|
1009
|
+
# primary IPv6, you cannot disable it. When you enable an IPv6 GUA
|
1010
|
+
# address to be a primary IPv6, the first IPv6 GUA will be made the
|
1011
|
+
# primary IPv6 address until the instance is terminated or the network
|
1012
|
+
# interface is detached. If you have multiple IPv6 addresses associated
|
1013
|
+
# with an ENI attached to your instance and you enable a primary IPv6
|
1014
|
+
# address, the first IPv6 GUA address associated with the ENI becomes
|
1015
|
+
# the primary IPv6 address.
|
978
1016
|
# @return [NetworkInterface]
|
979
1017
|
def create_network_interface(options = {})
|
980
1018
|
resp = Aws::Plugins::UserAgent.feature('resource') do
|
data/lib/aws-sdk-ec2/snapshot.rb
CHANGED
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -333,6 +333,7 @@ module Aws::EC2
|
|
333
333
|
# ipv_6_addresses: [
|
334
334
|
# {
|
335
335
|
# ipv_6_address: "String",
|
336
|
+
# is_primary_ipv_6: false,
|
336
337
|
# },
|
337
338
|
# ],
|
338
339
|
# kernel_id: "KernelId",
|
@@ -378,6 +379,7 @@ module Aws::EC2
|
|
378
379
|
# ipv_6_addresses: [
|
379
380
|
# {
|
380
381
|
# ipv_6_address: "String",
|
382
|
+
# is_primary_ipv_6: false,
|
381
383
|
# },
|
382
384
|
# ],
|
383
385
|
# network_interface_id: "NetworkInterfaceId",
|
@@ -405,6 +407,7 @@ module Aws::EC2
|
|
405
407
|
# },
|
406
408
|
# ],
|
407
409
|
# ipv_6_prefix_count: 1,
|
410
|
+
# primary_ipv_6: false,
|
408
411
|
# },
|
409
412
|
# ],
|
410
413
|
# private_ip_address: "String",
|
@@ -487,6 +490,7 @@ module Aws::EC2
|
|
487
490
|
# auto_recovery: "disabled", # accepts disabled, default
|
488
491
|
# },
|
489
492
|
# disable_api_stop: false,
|
493
|
+
# enable_primary_ipv_6: false,
|
490
494
|
# })
|
491
495
|
# @param [Hash] options ({})
|
492
496
|
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
@@ -822,6 +826,22 @@ module Aws::EC2
|
|
822
826
|
#
|
823
827
|
#
|
824
828
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Stop_Start.html#Using_StopProtection
|
829
|
+
# @option options [Boolean] :enable_primary_ipv_6
|
830
|
+
# If you’re launching an instance into a dual-stack or IPv6-only subnet,
|
831
|
+
# you can enable assigning a primary IPv6 address. A primary IPv6
|
832
|
+
# address is an IPv6 GUA address associated with an ENI that you have
|
833
|
+
# enabled to use a primary IPv6 address. Use this option if an instance
|
834
|
+
# relies on its IPv6 address not changing. When you launch the instance,
|
835
|
+
# Amazon Web Services will automatically assign an IPv6 address
|
836
|
+
# associated with the ENI attached to your instance to be the primary
|
837
|
+
# IPv6 address. Once you enable an IPv6 GUA address to be a primary
|
838
|
+
# IPv6, you cannot disable it. When you enable an IPv6 GUA address to be
|
839
|
+
# a primary IPv6, the first IPv6 GUA will be made the primary IPv6
|
840
|
+
# address until the instance is terminated or the network interface is
|
841
|
+
# detached. If you have multiple IPv6 addresses associated with an ENI
|
842
|
+
# attached to your instance and you enable a primary IPv6 address, the
|
843
|
+
# first IPv6 GUA address associated with the ENI becomes the primary
|
844
|
+
# IPv6 address.
|
825
845
|
# @return [Instance::Collection]
|
826
846
|
def create_instances(options = {})
|
827
847
|
batch = []
|
@@ -849,6 +869,7 @@ module Aws::EC2
|
|
849
869
|
# ipv_6_addresses: [
|
850
870
|
# {
|
851
871
|
# ipv_6_address: "String",
|
872
|
+
# is_primary_ipv_6: false,
|
852
873
|
# },
|
853
874
|
# ],
|
854
875
|
# private_ip_address: "String",
|
@@ -884,6 +905,7 @@ module Aws::EC2
|
|
884
905
|
# },
|
885
906
|
# ],
|
886
907
|
# client_token: "String",
|
908
|
+
# enable_primary_ipv_6: false,
|
887
909
|
# })
|
888
910
|
# @param [Hash] options ({})
|
889
911
|
# @option options [String] :description
|
@@ -974,6 +996,22 @@ module Aws::EC2
|
|
974
996
|
#
|
975
997
|
#
|
976
998
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
999
|
+
# @option options [Boolean] :enable_primary_ipv_6
|
1000
|
+
# If you’re creating a network interface in a dual-stack or IPv6-only
|
1001
|
+
# subnet, you have the option to assign a primary IPv6 IP address. A
|
1002
|
+
# primary IPv6 address is an IPv6 GUA address associated with an ENI
|
1003
|
+
# that you have enabled to use a primary IPv6 address. Use this option
|
1004
|
+
# if the instance that this ENI will be attached to relies on its IPv6
|
1005
|
+
# address not changing. Amazon Web Services will automatically assign an
|
1006
|
+
# IPv6 address associated with the ENI attached to your instance to be
|
1007
|
+
# the primary IPv6 address. Once you enable an IPv6 GUA address to be a
|
1008
|
+
# primary IPv6, you cannot disable it. When you enable an IPv6 GUA
|
1009
|
+
# address to be a primary IPv6, the first IPv6 GUA will be made the
|
1010
|
+
# primary IPv6 address until the instance is terminated or the network
|
1011
|
+
# interface is detached. If you have multiple IPv6 addresses associated
|
1012
|
+
# with an ENI attached to your instance and you enable a primary IPv6
|
1013
|
+
# address, the first IPv6 GUA address associated with the ENI becomes
|
1014
|
+
# the primary IPv6 address.
|
977
1015
|
# @return [NetworkInterface]
|
978
1016
|
def create_network_interface(options = {})
|
979
1017
|
options = options.merge(subnet_id: @id)
|