aws-sdk-ec2 1.478.0 → 1.480.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.
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 +2723 -2650
  6. data/lib/aws-sdk-ec2/client_api.rb +459 -436
  7. data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
  8. data/lib/aws-sdk-ec2/endpoints.rb +11 -0
  9. data/lib/aws-sdk-ec2/image.rb +82 -82
  10. data/lib/aws-sdk-ec2/instance.rb +304 -304
  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 +12 -12
  16. data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
  17. data/lib/aws-sdk-ec2/resource.rb +597 -597
  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 +278 -278
  23. data/lib/aws-sdk-ec2/types.rb +3322 -3269
  24. data/lib/aws-sdk-ec2/volume.rb +93 -93
  25. data/lib/aws-sdk-ec2/vpc.rb +143 -143
  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 +875 -860
  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 +453 -437
  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,65 +35,12 @@ module Aws::EC2
35
35
  end
36
36
  alias :volume_id :id
37
37
 
38
- # <note markdown="1"> This parameter is not returned by CreateVolume.
39
- #
40
- # </note>
41
- #
42
- # Information about the volume attachments.
43
- # @return [Array<Types::VolumeAttachment>]
44
- def attachments
45
- data[:attachments]
46
- end
47
-
48
- # The Availability Zone for the volume.
49
- # @return [String]
50
- def availability_zone
51
- data[:availability_zone]
52
- end
53
-
54
- # The time stamp when volume creation was initiated.
55
- # @return [Time]
56
- def create_time
57
- data[:create_time]
58
- end
59
-
60
- # Indicates whether the volume is encrypted.
61
- # @return [Boolean]
62
- def encrypted
63
- data[:encrypted]
64
- end
65
-
66
- # The Amazon Resource Name (ARN) of the KMS key that was used to protect
67
- # the volume encryption key for the volume.
68
- # @return [String]
69
- def kms_key_id
70
- data[:kms_key_id]
71
- end
72
-
73
38
  # The Amazon Resource Name (ARN) of the Outpost.
74
39
  # @return [String]
75
40
  def outpost_arn
76
41
  data[:outpost_arn]
77
42
  end
78
43
 
79
- # The size of the volume, in GiBs.
80
- # @return [Integer]
81
- def size
82
- data[:size]
83
- end
84
-
85
- # The snapshot from which the volume was created, if applicable.
86
- # @return [String]
87
- def snapshot_id
88
- data[:snapshot_id]
89
- end
90
-
91
- # The volume state.
92
- # @return [String]
93
- def state
94
- data[:state]
95
- end
96
-
97
44
  # The number of I/O operations per second (IOPS). For `gp3`, `io1`, and
98
45
  # `io2` volumes, this represents the number of IOPS that are provisioned
99
46
  # for the volume. For `gp2` volumes, this represents the baseline
@@ -148,6 +95,59 @@ module Aws::EC2
148
95
  data[:sse_type]
149
96
  end
150
97
 
98
+ # The size of the volume, in GiBs.
99
+ # @return [Integer]
100
+ def size
101
+ data[:size]
102
+ end
103
+
104
+ # The snapshot from which the volume was created, if applicable.
105
+ # @return [String]
106
+ def snapshot_id
107
+ data[:snapshot_id]
108
+ end
109
+
110
+ # The Availability Zone for the volume.
111
+ # @return [String]
112
+ def availability_zone
113
+ data[:availability_zone]
114
+ end
115
+
116
+ # The volume state.
117
+ # @return [String]
118
+ def state
119
+ data[:state]
120
+ end
121
+
122
+ # The time stamp when volume creation was initiated.
123
+ # @return [Time]
124
+ def create_time
125
+ data[:create_time]
126
+ end
127
+
128
+ # <note markdown="1"> This parameter is not returned by CreateVolume.
129
+ #
130
+ # </note>
131
+ #
132
+ # Information about the volume attachments.
133
+ # @return [Array<Types::VolumeAttachment>]
134
+ def attachments
135
+ data[:attachments]
136
+ end
137
+
138
+ # Indicates whether the volume is encrypted.
139
+ # @return [Boolean]
140
+ def encrypted
141
+ data[:encrypted]
142
+ end
143
+
144
+ # The Amazon Resource Name (ARN) of the KMS key that was used to protect
145
+ # the volume encryption key for the volume.
146
+ # @return [String]
147
+ def kms_key_id
148
+ data[:kms_key_id]
149
+ end
150
+
151
151
  # @!endgroup
152
152
 
153
153
  # @return [Client]
@@ -506,17 +506,33 @@ module Aws::EC2
506
506
  # @example Request syntax with placeholder values
507
507
  #
508
508
  # volume.describe_status({
509
+ # max_results: 1,
510
+ # next_token: "String",
511
+ # dry_run: false,
509
512
  # filters: [
510
513
  # {
511
514
  # name: "String",
512
515
  # values: ["String"],
513
516
  # },
514
517
  # ],
515
- # max_results: 1,
516
- # next_token: "String",
517
- # dry_run: false,
518
518
  # })
519
519
  # @param [Hash] options ({})
520
+ # @option options [Integer] :max_results
521
+ # The maximum number of items to return for this request. To get the
522
+ # next page of items, make another request with the token returned in
523
+ # the output. For more information, see [Pagination][1].
524
+ #
525
+ #
526
+ #
527
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
528
+ # @option options [String] :next_token
529
+ # The token returned from a previous paginated request. Pagination
530
+ # continues from the end of the items returned by the previous request.
531
+ # @option options [Boolean] :dry_run
532
+ # Checks whether you have the required permissions for the action,
533
+ # without actually making the request, and provides an error response.
534
+ # If you have the required permissions, the error response is
535
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
520
536
  # @option options [Array<Types::Filter>] :filters
521
537
  # The filters.
522
538
  #
@@ -551,22 +567,6 @@ module Aws::EC2
551
567
  #
552
568
  # * `volume-status.status` - The status of the volume (`ok` \|
553
569
  # `impaired` \| `warning` \| `insufficient-data`).
554
- # @option options [Integer] :max_results
555
- # The maximum number of items to return for this request. To get the
556
- # next page of items, make another request with the token returned in
557
- # the output. For more information, see [Pagination][1].
558
- #
559
- #
560
- #
561
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
562
- # @option options [String] :next_token
563
- # The token returned from a previous paginated request. Pagination
564
- # continues from the end of the items returned by the previous request.
565
- # @option options [Boolean] :dry_run
566
- # Checks whether you have the required permissions for the action,
567
- # without actually making the request, and provides an error response.
568
- # If you have the required permissions, the error response is
569
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
570
570
  # @return [Types::DescribeVolumeStatusResult]
571
571
  def describe_status(options = {})
572
572
  options = Aws::Util.deep_merge(options, volume_ids: [@id])
@@ -664,18 +664,35 @@ module Aws::EC2
664
664
  # @example Request syntax with placeholder values
665
665
  #
666
666
  # snapshots = volume.snapshots({
667
+ # owner_ids: ["String"],
668
+ # restorable_by_user_ids: ["String"],
669
+ # snapshot_ids: ["SnapshotId"],
670
+ # dry_run: false,
667
671
  # filters: [
668
672
  # {
669
673
  # name: "String",
670
674
  # values: ["String"],
671
675
  # },
672
676
  # ],
673
- # owner_ids: ["String"],
674
- # restorable_by_user_ids: ["String"],
675
- # snapshot_ids: ["SnapshotId"],
676
- # dry_run: false,
677
677
  # })
678
678
  # @param [Hash] options ({})
679
+ # @option options [Array<String>] :owner_ids
680
+ # Scopes the results to snapshots with the specified owners. You can
681
+ # specify a combination of Amazon Web Services account IDs, `self`, and
682
+ # `amazon`.
683
+ # @option options [Array<String>] :restorable_by_user_ids
684
+ # The IDs of the Amazon Web Services accounts that can create volumes
685
+ # from the snapshot.
686
+ # @option options [Array<String>] :snapshot_ids
687
+ # The snapshot IDs.
688
+ #
689
+ # Default: Describes the snapshots for which you have create volume
690
+ # permissions.
691
+ # @option options [Boolean] :dry_run
692
+ # Checks whether you have the required permissions for the action,
693
+ # without actually making the request, and provides an error response.
694
+ # If you have the required permissions, the error response is
695
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
679
696
  # @option options [Array<Types::Filter>] :filters
680
697
  # The filters.
681
698
  #
@@ -718,23 +735,6 @@ module Aws::EC2
718
735
  # * `volume-id` - The ID of the volume the snapshot is for.
719
736
  #
720
737
  # * `volume-size` - The size of the volume, in GiB.
721
- # @option options [Array<String>] :owner_ids
722
- # Scopes the results to snapshots with the specified owners. You can
723
- # specify a combination of Amazon Web Services account IDs, `self`, and
724
- # `amazon`.
725
- # @option options [Array<String>] :restorable_by_user_ids
726
- # The IDs of the Amazon Web Services accounts that can create volumes
727
- # from the snapshot.
728
- # @option options [Array<String>] :snapshot_ids
729
- # The snapshot IDs.
730
- #
731
- # Default: Describes the snapshots for which you have create volume
732
- # permissions.
733
- # @option options [Boolean] :dry_run
734
- # Checks whether you have the required permissions for the action,
735
- # without actually making the request, and provides an error response.
736
- # If you have the required permissions, the error response is
737
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
738
738
  # @return [Snapshot::Collection]
739
739
  def snapshots(options = {})
740
740
  batches = Enumerator.new do |y|