aws-sdk-ec2 1.479.0 → 1.481.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +11 -11
  5. data/lib/aws-sdk-ec2/client.rb +3074 -2792
  6. data/lib/aws-sdk-ec2/client_api.rb +562 -438
  7. data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
  8. data/lib/aws-sdk-ec2/endpoints.rb +55 -0
  9. data/lib/aws-sdk-ec2/image.rb +82 -82
  10. data/lib/aws-sdk-ec2/instance.rb +291 -289
  11. data/lib/aws-sdk-ec2/key_pair.rb +12 -12
  12. data/lib/aws-sdk-ec2/key_pair_info.rb +27 -27
  13. data/lib/aws-sdk-ec2/network_acl.rb +60 -60
  14. data/lib/aws-sdk-ec2/network_interface.rb +65 -65
  15. data/lib/aws-sdk-ec2/placement_group.rb +11 -14
  16. data/lib/aws-sdk-ec2/plugins/endpoints.rb +10 -0
  17. data/lib/aws-sdk-ec2/resource.rb +594 -602
  18. data/lib/aws-sdk-ec2/route.rb +30 -30
  19. data/lib/aws-sdk-ec2/route_table.rb +37 -37
  20. data/lib/aws-sdk-ec2/security_group.rb +137 -137
  21. data/lib/aws-sdk-ec2/snapshot.rb +77 -77
  22. data/lib/aws-sdk-ec2/subnet.rb +279 -287
  23. data/lib/aws-sdk-ec2/types.rb +3640 -3368
  24. data/lib/aws-sdk-ec2/volume.rb +93 -93
  25. data/lib/aws-sdk-ec2/vpc.rb +143 -146
  26. data/lib/aws-sdk-ec2/vpc_address.rb +17 -17
  27. data/lib/aws-sdk-ec2.rb +1 -1
  28. data/sig/classic_address.rbs +5 -5
  29. data/sig/client.rbs +948 -881
  30. data/sig/dhcp_options.rbs +3 -3
  31. data/sig/image.rbs +41 -41
  32. data/sig/instance.rbs +108 -108
  33. data/sig/key_pair.rbs +6 -6
  34. data/sig/key_pair_info.rbs +3 -3
  35. data/sig/network_acl.rbs +16 -16
  36. data/sig/network_interface.rbs +22 -22
  37. data/sig/placement_group.rbs +3 -3
  38. data/sig/resource.rbs +201 -201
  39. data/sig/route.rbs +9 -9
  40. data/sig/route_table.rbs +10 -10
  41. data/sig/security_group.rbs +110 -110
  42. data/sig/snapshot.rbs +34 -34
  43. data/sig/subnet.rbs +116 -116
  44. data/sig/types.rbs +525 -443
  45. data/sig/volume.rbs +33 -33
  46. data/sig/vpc.rbs +46 -46
  47. data/sig/vpc_address.rbs +8 -8
  48. data/sig/waiters.rbs +113 -113
  49. metadata +2 -2
@@ -35,38 +35,12 @@ module Aws::EC2
35
35
  end
36
36
  alias :subnet_id :id
37
37
 
38
- # The Availability Zone of the subnet.
39
- # @return [String]
40
- def availability_zone
41
- data[:availability_zone]
42
- end
43
-
44
38
  # The AZ ID of the subnet.
45
39
  # @return [String]
46
40
  def availability_zone_id
47
41
  data[:availability_zone_id]
48
42
  end
49
43
 
50
- # The number of unused private IPv4 addresses in the subnet. The IPv4
51
- # addresses for any stopped instances are considered unavailable.
52
- # @return [Integer]
53
- def available_ip_address_count
54
- data[:available_ip_address_count]
55
- end
56
-
57
- # The IPv4 CIDR block assigned to the subnet.
58
- # @return [String]
59
- def cidr_block
60
- data[:cidr_block]
61
- end
62
-
63
- # Indicates whether this is the default subnet for the Availability
64
- # Zone.
65
- # @return [Boolean]
66
- def default_for_az
67
- data[:default_for_az]
68
- end
69
-
70
44
  # Indicates the device position for local network interfaces in this
71
45
  # subnet. For example, `1` indicates local network interfaces in this
72
46
  # subnet are the secondary network interface (eth1).
@@ -75,22 +49,6 @@ module Aws::EC2
75
49
  data[:enable_lni_at_device_index]
76
50
  end
77
51
 
78
- # Indicates whether instances launched in this subnet receive a public
79
- # IPv4 address.
80
- #
81
- # Amazon Web Services charges for all public IPv4 addresses, including
82
- # public IPv4 addresses associated with running instances and Elastic IP
83
- # addresses. For more information, see the *Public IPv4 Address* tab on
84
- # the [Amazon VPC pricing page][1].
85
- #
86
- #
87
- #
88
- # [1]: http://aws.amazon.com/vpc/pricing/
89
- # @return [Boolean]
90
- def map_public_ip_on_launch
91
- data[:map_public_ip_on_launch]
92
- end
93
-
94
52
  # Indicates whether a network interface created in this subnet
95
53
  # (including a network interface created by RunInstances) receives a
96
54
  # customer-owned IPv4 address.
@@ -105,18 +63,6 @@ module Aws::EC2
105
63
  data[:customer_owned_ipv_4_pool]
106
64
  end
107
65
 
108
- # The current state of the subnet.
109
- # @return [String]
110
- def state
111
- data[:state]
112
- end
113
-
114
- # The ID of the VPC the subnet is in.
115
- # @return [String]
116
- def vpc_id
117
- data[:vpc_id]
118
- end
119
-
120
66
  # The ID of the Amazon Web Services account that owns the subnet.
121
67
  # @return [String]
122
68
  def owner_id
@@ -177,6 +123,60 @@ module Aws::EC2
177
123
  data[:private_dns_name_options_on_launch]
178
124
  end
179
125
 
126
+ # The current state of the subnet.
127
+ # @return [String]
128
+ def state
129
+ data[:state]
130
+ end
131
+
132
+ # The ID of the VPC the subnet is in.
133
+ # @return [String]
134
+ def vpc_id
135
+ data[:vpc_id]
136
+ end
137
+
138
+ # The IPv4 CIDR block assigned to the subnet.
139
+ # @return [String]
140
+ def cidr_block
141
+ data[:cidr_block]
142
+ end
143
+
144
+ # The number of unused private IPv4 addresses in the subnet. The IPv4
145
+ # addresses for any stopped instances are considered unavailable.
146
+ # @return [Integer]
147
+ def available_ip_address_count
148
+ data[:available_ip_address_count]
149
+ end
150
+
151
+ # The Availability Zone of the subnet.
152
+ # @return [String]
153
+ def availability_zone
154
+ data[:availability_zone]
155
+ end
156
+
157
+ # Indicates whether this is the default subnet for the Availability
158
+ # Zone.
159
+ # @return [Boolean]
160
+ def default_for_az
161
+ data[:default_for_az]
162
+ end
163
+
164
+ # Indicates whether instances launched in this subnet receive a public
165
+ # IPv4 address.
166
+ #
167
+ # Amazon Web Services charges for all public IPv4 addresses, including
168
+ # public IPv4 addresses associated with running instances and Elastic IP
169
+ # addresses. For more information, see the *Public IPv4 Address* tab on
170
+ # the [Amazon VPC pricing page][1].
171
+ #
172
+ #
173
+ #
174
+ # [1]: http://aws.amazon.com/vpc/pricing/
175
+ # @return [Boolean]
176
+ def map_public_ip_on_launch
177
+ data[:map_public_ip_on_launch]
178
+ end
179
+
180
180
  # @!endgroup
181
181
 
182
182
  # @return [Client]
@@ -320,8 +320,6 @@ module Aws::EC2
320
320
  # instance = subnet.create_instances({
321
321
  # block_device_mappings: [
322
322
  # {
323
- # device_name: "String",
324
- # virtual_name: "String",
325
323
  # ebs: {
326
324
  # delete_on_termination: false,
327
325
  # iops: 1,
@@ -334,6 +332,8 @@ module Aws::EC2
334
332
  # encrypted: false,
335
333
  # },
336
334
  # no_device: "String",
335
+ # device_name: "String",
336
+ # virtual_name: "String",
337
337
  # },
338
338
  # ],
339
339
  # image_id: "ImageId",
@@ -353,7 +353,6 @@ module Aws::EC2
353
353
  # enabled: false, # required
354
354
  # },
355
355
  # placement: {
356
- # availability_zone: "String",
357
356
  # affinity: "String",
358
357
  # group_name: "PlacementGroupName",
359
358
  # partition_number: 1,
@@ -362,75 +361,12 @@ module Aws::EC2
362
361
  # spread_domain: "String",
363
362
  # host_resource_group_arn: "String",
364
363
  # group_id: "PlacementGroupId",
364
+ # availability_zone: "String",
365
365
  # },
366
366
  # ramdisk_id: "RamdiskId",
367
367
  # security_group_ids: ["SecurityGroupId"],
368
368
  # security_groups: ["SecurityGroupName"],
369
369
  # user_data: "RunInstancesUserData",
370
- # additional_info: "String",
371
- # client_token: "String",
372
- # disable_api_termination: false,
373
- # dry_run: false,
374
- # ebs_optimized: false,
375
- # iam_instance_profile: {
376
- # arn: "String",
377
- # name: "String",
378
- # },
379
- # instance_initiated_shutdown_behavior: "stop", # accepts stop, terminate
380
- # network_interfaces: [
381
- # {
382
- # associate_public_ip_address: false,
383
- # delete_on_termination: false,
384
- # description: "String",
385
- # device_index: 1,
386
- # groups: ["SecurityGroupId"],
387
- # ipv_6_address_count: 1,
388
- # ipv_6_addresses: [
389
- # {
390
- # ipv_6_address: "String",
391
- # is_primary_ipv_6: false,
392
- # },
393
- # ],
394
- # network_interface_id: "NetworkInterfaceId",
395
- # private_ip_address: "String",
396
- # private_ip_addresses: [
397
- # {
398
- # primary: false,
399
- # private_ip_address: "String",
400
- # },
401
- # ],
402
- # secondary_private_ip_address_count: 1,
403
- # subnet_id: "String",
404
- # associate_carrier_ip_address: false,
405
- # interface_type: "String",
406
- # network_card_index: 1,
407
- # ipv_4_prefixes: [
408
- # {
409
- # ipv_4_prefix: "String",
410
- # },
411
- # ],
412
- # ipv_4_prefix_count: 1,
413
- # ipv_6_prefixes: [
414
- # {
415
- # ipv_6_prefix: "String",
416
- # },
417
- # ],
418
- # ipv_6_prefix_count: 1,
419
- # primary_ipv_6: false,
420
- # ena_srd_specification: {
421
- # ena_srd_enabled: false,
422
- # ena_srd_udp_specification: {
423
- # ena_srd_udp_enabled: false,
424
- # },
425
- # },
426
- # connection_tracking_specification: {
427
- # tcp_established_timeout: 1,
428
- # udp_stream_timeout: 1,
429
- # udp_timeout: 1,
430
- # },
431
- # },
432
- # ],
433
- # private_ip_address: "String",
434
370
  # elastic_gpu_specification: [
435
371
  # {
436
372
  # type: "String", # required
@@ -511,6 +447,70 @@ module Aws::EC2
511
447
  # },
512
448
  # disable_api_stop: false,
513
449
  # enable_primary_ipv_6: false,
450
+ # dry_run: false,
451
+ # disable_api_termination: false,
452
+ # instance_initiated_shutdown_behavior: "stop", # accepts stop, terminate
453
+ # private_ip_address: "String",
454
+ # client_token: "String",
455
+ # additional_info: "String",
456
+ # network_interfaces: [
457
+ # {
458
+ # associate_public_ip_address: false,
459
+ # delete_on_termination: false,
460
+ # description: "String",
461
+ # device_index: 1,
462
+ # groups: ["SecurityGroupId"],
463
+ # ipv_6_address_count: 1,
464
+ # ipv_6_addresses: [
465
+ # {
466
+ # ipv_6_address: "String",
467
+ # is_primary_ipv_6: false,
468
+ # },
469
+ # ],
470
+ # network_interface_id: "NetworkInterfaceId",
471
+ # private_ip_address: "String",
472
+ # private_ip_addresses: [
473
+ # {
474
+ # primary: false,
475
+ # private_ip_address: "String",
476
+ # },
477
+ # ],
478
+ # secondary_private_ip_address_count: 1,
479
+ # subnet_id: "String",
480
+ # associate_carrier_ip_address: false,
481
+ # interface_type: "String",
482
+ # network_card_index: 1,
483
+ # ipv_4_prefixes: [
484
+ # {
485
+ # ipv_4_prefix: "String",
486
+ # },
487
+ # ],
488
+ # ipv_4_prefix_count: 1,
489
+ # ipv_6_prefixes: [
490
+ # {
491
+ # ipv_6_prefix: "String",
492
+ # },
493
+ # ],
494
+ # ipv_6_prefix_count: 1,
495
+ # primary_ipv_6: false,
496
+ # ena_srd_specification: {
497
+ # ena_srd_enabled: false,
498
+ # ena_srd_udp_specification: {
499
+ # ena_srd_udp_enabled: false,
500
+ # },
501
+ # },
502
+ # connection_tracking_specification: {
503
+ # tcp_established_timeout: 1,
504
+ # udp_stream_timeout: 1,
505
+ # udp_timeout: 1,
506
+ # },
507
+ # },
508
+ # ],
509
+ # iam_instance_profile: {
510
+ # arn: "String",
511
+ # name: "String",
512
+ # },
513
+ # ebs_optimized: false,
514
514
  # })
515
515
  # @param [Hash] options ({})
516
516
  # @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
@@ -634,77 +634,13 @@ module Aws::EC2
634
634
  # Default: Amazon EC2 uses the default security group.
635
635
  # @option options [String] :user_data
636
636
  # The user data to make available to the instance. User data must be
637
- # base64-encoded. Depending on the tool or SDK that you're using, the
638
- # base64-encoding might be performed for you. For more information, see
639
- # [Work with instance user data][1].
640
- #
641
- #
642
- #
643
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
644
- # @option options [String] :additional_info
645
- # Reserved.
646
- # @option options [String] :client_token
647
- # Unique, case-sensitive identifier you provide to ensure the
648
- # idempotency of the request. If you do not specify a client token, a
649
- # randomly generated token is used for the request to ensure
650
- # idempotency.
651
- #
652
- # For more information, see [Ensuring Idempotency][1].
653
- #
654
- # Constraints: Maximum 64 ASCII characters
655
- #
656
- #
657
- #
658
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
659
- # @option options [Boolean] :disable_api_termination
660
- # If you set this parameter to `true`, you can't terminate the instance
661
- # using the Amazon EC2 console, CLI, or API; otherwise, you can. To
662
- # change this attribute after launch, use [ModifyInstanceAttribute][1].
663
- # Alternatively, if you set `InstanceInitiatedShutdownBehavior` to
664
- # `terminate`, you can terminate the instance by running the shutdown
665
- # command from the instance.
666
- #
667
- # Default: `false`
668
- #
669
- #
670
- #
671
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html
672
- # @option options [Boolean] :dry_run
673
- # Checks whether you have the required permissions for the operation,
674
- # without actually making the request, and provides an error response.
675
- # If you have the required permissions, the error response is
676
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
677
- # @option options [Boolean] :ebs_optimized
678
- # Indicates whether the instance is optimized for Amazon EBS I/O. This
679
- # optimization provides dedicated throughput to Amazon EBS and an
680
- # optimized configuration stack to provide optimal Amazon EBS I/O
681
- # performance. This optimization isn't available with all instance
682
- # types. Additional usage charges apply when using an EBS-optimized
683
- # instance.
684
- #
685
- # Default: `false`
686
- # @option options [Types::IamInstanceProfileSpecification] :iam_instance_profile
687
- # The name or Amazon Resource Name (ARN) of an IAM instance profile.
688
- # @option options [String] :instance_initiated_shutdown_behavior
689
- # Indicates whether an instance stops or terminates when you initiate
690
- # shutdown from the instance (using the operating system command for
691
- # system shutdown).
692
- #
693
- # Default: `stop`
694
- # @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
695
- # The network interfaces to associate with the instance.
696
- # @option options [String] :private_ip_address
697
- # The primary IPv4 address. You must specify a value from the IPv4
698
- # address range of the subnet.
637
+ # base64-encoded. Depending on the tool or SDK that you're using, the
638
+ # base64-encoding might be performed for you. For more information, see
639
+ # [Work with instance user data][1].
699
640
  #
700
- # Only one private IP address can be designated as primary. You can't
701
- # specify this option if you've specified the option to designate a
702
- # private IP address as the primary IP address in a network interface
703
- # specification. You cannot specify this option if you're launching
704
- # more than one instance in the request.
705
641
  #
706
- # You cannot specify this option and the network interfaces option in
707
- # the same request.
642
+ #
643
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html
708
644
  # @option options [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
709
645
  # An elastic GPU to associate with the instance.
710
646
  #
@@ -714,14 +650,9 @@ module Aws::EC2
714
650
  # @option options [Array<Types::ElasticInferenceAccelerator>] :elastic_inference_accelerators
715
651
  # An elastic inference accelerator to associate with the instance.
716
652
  #
717
- # <note markdown="1"> Amazon Elastic Inference (EI) is no longer available to new customers.
718
- # For more information, see [Amazon Elastic Inference FAQs][1].
653
+ # <note markdown="1"> Amazon Elastic Inference is no longer available.
719
654
  #
720
655
  # </note>
721
- #
722
- #
723
- #
724
- # [1]: http://aws.amazon.com/machine-learning/elastic-inference/faqs/
725
656
  # @option options [Array<Types::TagSpecification>] :tag_specifications
726
657
  # The tags to apply to the resources that are created during instance
727
658
  # launch.
@@ -843,6 +774,70 @@ module Aws::EC2
843
774
  # attached to your instance and you enable a primary IPv6 address, the
844
775
  # first IPv6 GUA address associated with the ENI becomes the primary
845
776
  # IPv6 address.
777
+ # @option options [Boolean] :dry_run
778
+ # Checks whether you have the required permissions for the operation,
779
+ # without actually making the request, and provides an error response.
780
+ # If you have the required permissions, the error response is
781
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
782
+ # @option options [Boolean] :disable_api_termination
783
+ # If you set this parameter to `true`, you can't terminate the instance
784
+ # using the Amazon EC2 console, CLI, or API; otherwise, you can. To
785
+ # change this attribute after launch, use [ModifyInstanceAttribute][1].
786
+ # Alternatively, if you set `InstanceInitiatedShutdownBehavior` to
787
+ # `terminate`, you can terminate the instance by running the shutdown
788
+ # command from the instance.
789
+ #
790
+ # Default: `false`
791
+ #
792
+ #
793
+ #
794
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ModifyInstanceAttribute.html
795
+ # @option options [String] :instance_initiated_shutdown_behavior
796
+ # Indicates whether an instance stops or terminates when you initiate
797
+ # shutdown from the instance (using the operating system command for
798
+ # system shutdown).
799
+ #
800
+ # Default: `stop`
801
+ # @option options [String] :private_ip_address
802
+ # The primary IPv4 address. You must specify a value from the IPv4
803
+ # address range of the subnet.
804
+ #
805
+ # Only one private IP address can be designated as primary. You can't
806
+ # specify this option if you've specified the option to designate a
807
+ # private IP address as the primary IP address in a network interface
808
+ # specification. You cannot specify this option if you're launching
809
+ # more than one instance in the request.
810
+ #
811
+ # You cannot specify this option and the network interfaces option in
812
+ # the same request.
813
+ # @option options [String] :client_token
814
+ # Unique, case-sensitive identifier you provide to ensure the
815
+ # idempotency of the request. If you do not specify a client token, a
816
+ # randomly generated token is used for the request to ensure
817
+ # idempotency.
818
+ #
819
+ # For more information, see [Ensuring Idempotency][1].
820
+ #
821
+ # Constraints: Maximum 64 ASCII characters
822
+ #
823
+ #
824
+ #
825
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
826
+ # @option options [String] :additional_info
827
+ # Reserved.
828
+ # @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
829
+ # The network interfaces to associate with the instance.
830
+ # @option options [Types::IamInstanceProfileSpecification] :iam_instance_profile
831
+ # The name or Amazon Resource Name (ARN) of an IAM instance profile.
832
+ # @option options [Boolean] :ebs_optimized
833
+ # Indicates whether the instance is optimized for Amazon EBS I/O. This
834
+ # optimization provides dedicated throughput to Amazon EBS and an
835
+ # optimized configuration stack to provide optimal Amazon EBS I/O
836
+ # performance. This optimization isn't available with all instance
837
+ # types. Additional usage charges apply when using an EBS-optimized
838
+ # instance.
839
+ #
840
+ # Default: `false`
846
841
  # @return [Instance::Collection]
847
842
  def create_instances(options = {})
848
843
  batch = []
@@ -863,24 +858,6 @@ module Aws::EC2
863
858
  # @example Request syntax with placeholder values
864
859
  #
865
860
  # networkinterface = subnet.create_network_interface({
866
- # description: "String",
867
- # dry_run: false,
868
- # groups: ["SecurityGroupId"],
869
- # ipv_6_address_count: 1,
870
- # ipv_6_addresses: [
871
- # {
872
- # ipv_6_address: "String",
873
- # is_primary_ipv_6: false,
874
- # },
875
- # ],
876
- # private_ip_address: "String",
877
- # private_ip_addresses: [
878
- # {
879
- # primary: false,
880
- # private_ip_address: "String",
881
- # },
882
- # ],
883
- # secondary_private_ip_address_count: 1,
884
861
  # ipv_4_prefixes: [
885
862
  # {
886
863
  # ipv_4_prefix: "String",
@@ -912,56 +889,26 @@ module Aws::EC2
912
889
  # udp_stream_timeout: 1,
913
890
  # udp_timeout: 1,
914
891
  # },
892
+ # description: "String",
893
+ # private_ip_address: "String",
894
+ # groups: ["SecurityGroupId"],
895
+ # private_ip_addresses: [
896
+ # {
897
+ # primary: false,
898
+ # private_ip_address: "String",
899
+ # },
900
+ # ],
901
+ # secondary_private_ip_address_count: 1,
902
+ # ipv_6_addresses: [
903
+ # {
904
+ # ipv_6_address: "String",
905
+ # is_primary_ipv_6: false,
906
+ # },
907
+ # ],
908
+ # ipv_6_address_count: 1,
909
+ # dry_run: false,
915
910
  # })
916
911
  # @param [Hash] options ({})
917
- # @option options [String] :description
918
- # A description for the network interface.
919
- # @option options [Boolean] :dry_run
920
- # Checks whether you have the required permissions for the action,
921
- # without actually making the request, and provides an error response.
922
- # If you have the required permissions, the error response is
923
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
924
- # @option options [Array<String>] :groups
925
- # The IDs of one or more security groups.
926
- # @option options [Integer] :ipv_6_address_count
927
- # The number of IPv6 addresses to assign to a network interface. Amazon
928
- # EC2 automatically selects the IPv6 addresses from the subnet range.
929
- #
930
- # You can't specify a count of IPv6 addresses using this parameter if
931
- # you've specified one of the following: specific IPv6 addresses,
932
- # specific IPv6 prefixes, or a count of IPv6 prefixes.
933
- #
934
- # If your subnet has the `AssignIpv6AddressOnCreation` attribute set,
935
- # you can override that setting by specifying 0 as the IPv6 address
936
- # count.
937
- # @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
938
- # The IPv6 addresses from the IPv6 CIDR block range of your subnet.
939
- #
940
- # You can't specify IPv6 addresses using this parameter if you've
941
- # specified one of the following: a count of IPv6 addresses, specific
942
- # IPv6 prefixes, or a count of IPv6 prefixes.
943
- # @option options [String] :private_ip_address
944
- # The primary private IPv4 address of the network interface. If you
945
- # don't specify an IPv4 address, Amazon EC2 selects one for you from
946
- # the subnet's IPv4 CIDR range. If you specify an IP address, you
947
- # cannot indicate any IP addresses specified in `privateIpAddresses` as
948
- # primary (only one IP address can be designated as primary).
949
- # @option options [Array<Types::PrivateIpAddressSpecification>] :private_ip_addresses
950
- # The private IPv4 addresses.
951
- #
952
- # You can't specify private IPv4 addresses if you've specified one of
953
- # the following: a count of private IPv4 addresses, specific IPv4
954
- # prefixes, or a count of IPv4 prefixes.
955
- # @option options [Integer] :secondary_private_ip_address_count
956
- # The number of secondary private IPv4 addresses to assign to a network
957
- # interface. When you specify a number of secondary IPv4 addresses,
958
- # Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR
959
- # range. You can't specify this option and specify more than one
960
- # private IP address using `privateIpAddresses`.
961
- #
962
- # You can't specify a count of private IPv4 addresses if you've
963
- # specified one of the following: specific private IPv4 addresses,
964
- # specific IPv4 prefixes, or a count of IPv4 prefixes.
965
912
  # @option options [Array<Types::Ipv4PrefixSpecificationRequest>] :ipv_4_prefixes
966
913
  # The IPv4 prefixes assigned to the network interface.
967
914
  #
@@ -1020,6 +967,54 @@ module Aws::EC2
1020
967
  # the primary IPv6 address.
1021
968
  # @option options [Types::ConnectionTrackingSpecificationRequest] :connection_tracking_specification
1022
969
  # A connection tracking specification for the network interface.
970
+ # @option options [String] :description
971
+ # A description for the network interface.
972
+ # @option options [String] :private_ip_address
973
+ # The primary private IPv4 address of the network interface. If you
974
+ # don't specify an IPv4 address, Amazon EC2 selects one for you from
975
+ # the subnet's IPv4 CIDR range. If you specify an IP address, you
976
+ # cannot indicate any IP addresses specified in `privateIpAddresses` as
977
+ # primary (only one IP address can be designated as primary).
978
+ # @option options [Array<String>] :groups
979
+ # The IDs of one or more security groups.
980
+ # @option options [Array<Types::PrivateIpAddressSpecification>] :private_ip_addresses
981
+ # The private IPv4 addresses.
982
+ #
983
+ # You can't specify private IPv4 addresses if you've specified one of
984
+ # the following: a count of private IPv4 addresses, specific IPv4
985
+ # prefixes, or a count of IPv4 prefixes.
986
+ # @option options [Integer] :secondary_private_ip_address_count
987
+ # The number of secondary private IPv4 addresses to assign to a network
988
+ # interface. When you specify a number of secondary IPv4 addresses,
989
+ # Amazon EC2 selects these IP addresses within the subnet's IPv4 CIDR
990
+ # range. You can't specify this option and specify more than one
991
+ # private IP address using `privateIpAddresses`.
992
+ #
993
+ # You can't specify a count of private IPv4 addresses if you've
994
+ # specified one of the following: specific private IPv4 addresses,
995
+ # specific IPv4 prefixes, or a count of IPv4 prefixes.
996
+ # @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
997
+ # The IPv6 addresses from the IPv6 CIDR block range of your subnet.
998
+ #
999
+ # You can't specify IPv6 addresses using this parameter if you've
1000
+ # specified one of the following: a count of IPv6 addresses, specific
1001
+ # IPv6 prefixes, or a count of IPv6 prefixes.
1002
+ # @option options [Integer] :ipv_6_address_count
1003
+ # The number of IPv6 addresses to assign to a network interface. Amazon
1004
+ # EC2 automatically selects the IPv6 addresses from the subnet range.
1005
+ #
1006
+ # You can't specify a count of IPv6 addresses using this parameter if
1007
+ # you've specified one of the following: specific IPv6 addresses,
1008
+ # specific IPv6 prefixes, or a count of IPv6 prefixes.
1009
+ #
1010
+ # If your subnet has the `AssignIpv6AddressOnCreation` attribute set,
1011
+ # you can override that setting by specifying 0 as the IPv6 address
1012
+ # count.
1013
+ # @option options [Boolean] :dry_run
1014
+ # Checks whether you have the required permissions for the action,
1015
+ # without actually making the request, and provides an error response.
1016
+ # If you have the required permissions, the error response is
1017
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1023
1018
  # @return [NetworkInterface]
1024
1019
  def create_network_interface(options = {})
1025
1020
  options = options.merge(subnet_id: @id)
@@ -1144,16 +1139,25 @@ module Aws::EC2
1144
1139
  # @example Request syntax with placeholder values
1145
1140
  #
1146
1141
  # instances = subnet.instances({
1142
+ # instance_ids: ["InstanceId"],
1143
+ # dry_run: false,
1147
1144
  # filters: [
1148
1145
  # {
1149
1146
  # name: "String",
1150
1147
  # values: ["String"],
1151
1148
  # },
1152
1149
  # ],
1153
- # instance_ids: ["InstanceId"],
1154
- # dry_run: false,
1155
1150
  # })
1156
1151
  # @param [Hash] options ({})
1152
+ # @option options [Array<String>] :instance_ids
1153
+ # The instance IDs.
1154
+ #
1155
+ # Default: Describes all your instances.
1156
+ # @option options [Boolean] :dry_run
1157
+ # Checks whether you have the required permissions for the operation,
1158
+ # without actually making the request, and provides an error response.
1159
+ # If you have the required permissions, the error response is
1160
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1157
1161
  # @option options [Array<Types::Filter>] :filters
1158
1162
  # The filters.
1159
1163
  #
@@ -1229,9 +1233,6 @@ module Aws::EC2
1229
1233
  # * `iam-instance-profile.id` - The instance profile associated with the
1230
1234
  # instance. Specified as an ID.
1231
1235
  #
1232
- # * `iam-instance-profile.name` - The instance profile associated with
1233
- # the instance. Specified as an name.
1234
- #
1235
1236
  # * `image-id` - The ID of the image used to launch the instance.
1236
1237
  #
1237
1238
  # * `instance-id` - The ID of the instance.
@@ -1583,15 +1584,6 @@ module Aws::EC2
1583
1584
  # (`paravirtual` \| `hvm`).
1584
1585
  #
1585
1586
  # * `vpc-id` - The ID of the VPC that the instance is running in.
1586
- # @option options [Array<String>] :instance_ids
1587
- # The instance IDs.
1588
- #
1589
- # Default: Describes all your instances.
1590
- # @option options [Boolean] :dry_run
1591
- # Checks whether you have the required permissions for the operation,
1592
- # without actually making the request, and provides an error response.
1593
- # If you have the required permissions, the error response is
1594
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1595
1587
  # @return [Instance::Collection]
1596
1588
  def instances(options = {})
1597
1589
  batches = Enumerator.new do |y|
@@ -1688,16 +1680,25 @@ module Aws::EC2
1688
1680
  # @example Request syntax with placeholder values
1689
1681
  #
1690
1682
  # network_interfaces = subnet.network_interfaces({
1683
+ # dry_run: false,
1684
+ # network_interface_ids: ["NetworkInterfaceId"],
1691
1685
  # filters: [
1692
1686
  # {
1693
1687
  # name: "String",
1694
1688
  # values: ["String"],
1695
1689
  # },
1696
1690
  # ],
1697
- # dry_run: false,
1698
- # network_interface_ids: ["NetworkInterfaceId"],
1699
1691
  # })
1700
1692
  # @param [Hash] options ({})
1693
+ # @option options [Boolean] :dry_run
1694
+ # Checks whether you have the required permissions for the action,
1695
+ # without actually making the request, and provides an error response.
1696
+ # If you have the required permissions, the error response is
1697
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1698
+ # @option options [Array<String>] :network_interface_ids
1699
+ # The network interface IDs.
1700
+ #
1701
+ # Default: Describes all your network interfaces.
1701
1702
  # @option options [Array<Types::Filter>] :filters
1702
1703
  # One or more filters.
1703
1704
  #
@@ -1813,15 +1814,6 @@ module Aws::EC2
1813
1814
  # regardless of the tag value.
1814
1815
  #
1815
1816
  # * `vpc-id` - The ID of the VPC for the network interface.
1816
- # @option options [Boolean] :dry_run
1817
- # Checks whether you have the required permissions for the action,
1818
- # without actually making the request, and provides an error response.
1819
- # If you have the required permissions, the error response is
1820
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
1821
- # @option options [Array<String>] :network_interface_ids
1822
- # The network interface IDs.
1823
- #
1824
- # Default: Describes all your network interfaces.
1825
1817
  # @return [NetworkInterface::Collection]
1826
1818
  def network_interfaces(options = {})
1827
1819
  batches = Enumerator.new do |y|