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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +11 -11
- data/lib/aws-sdk-ec2/client.rb +2723 -2650
- data/lib/aws-sdk-ec2/client_api.rb +459 -436
- data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
- data/lib/aws-sdk-ec2/endpoints.rb +11 -0
- data/lib/aws-sdk-ec2/image.rb +82 -82
- data/lib/aws-sdk-ec2/instance.rb +304 -304
- data/lib/aws-sdk-ec2/key_pair.rb +12 -12
- data/lib/aws-sdk-ec2/key_pair_info.rb +27 -27
- data/lib/aws-sdk-ec2/network_acl.rb +60 -60
- data/lib/aws-sdk-ec2/network_interface.rb +65 -65
- data/lib/aws-sdk-ec2/placement_group.rb +12 -12
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ec2/resource.rb +597 -597
- data/lib/aws-sdk-ec2/route.rb +30 -30
- data/lib/aws-sdk-ec2/route_table.rb +37 -37
- data/lib/aws-sdk-ec2/security_group.rb +137 -137
- data/lib/aws-sdk-ec2/snapshot.rb +77 -77
- data/lib/aws-sdk-ec2/subnet.rb +278 -278
- data/lib/aws-sdk-ec2/types.rb +3322 -3269
- data/lib/aws-sdk-ec2/volume.rb +93 -93
- data/lib/aws-sdk-ec2/vpc.rb +143 -143
- data/lib/aws-sdk-ec2/vpc_address.rb +17 -17
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/classic_address.rbs +5 -5
- data/sig/client.rbs +875 -860
- data/sig/dhcp_options.rbs +3 -3
- data/sig/image.rbs +41 -41
- data/sig/instance.rbs +108 -108
- data/sig/key_pair.rbs +6 -6
- data/sig/key_pair_info.rbs +3 -3
- data/sig/network_acl.rbs +16 -16
- data/sig/network_interface.rbs +22 -22
- data/sig/placement_group.rbs +3 -3
- data/sig/resource.rbs +201 -201
- data/sig/route.rbs +9 -9
- data/sig/route_table.rbs +10 -10
- data/sig/security_group.rbs +110 -110
- data/sig/snapshot.rbs +34 -34
- data/sig/subnet.rbs +116 -116
- data/sig/types.rbs +453 -437
- data/sig/volume.rbs +33 -33
- data/sig/vpc.rbs +46 -46
- data/sig/vpc_address.rbs +8 -8
- data/sig/waiters.rbs +113 -113
- metadata +2 -2
@@ -35,12 +35,6 @@ module Aws::EC2
|
|
35
35
|
end
|
36
36
|
alias :dhcp_options_id :id
|
37
37
|
|
38
|
-
# The DHCP options in the set.
|
39
|
-
# @return [Array<Types::DhcpConfiguration>]
|
40
|
-
def dhcp_configurations
|
41
|
-
data[:dhcp_configurations]
|
42
|
-
end
|
43
|
-
|
44
38
|
# The ID of the Amazon Web Services account that owns the DHCP options
|
45
39
|
# set.
|
46
40
|
# @return [String]
|
@@ -54,6 +48,12 @@ module Aws::EC2
|
|
54
48
|
data[:tags]
|
55
49
|
end
|
56
50
|
|
51
|
+
# The DHCP options in the set.
|
52
|
+
# @return [Array<Types::DhcpConfiguration>]
|
53
|
+
def dhcp_configurations
|
54
|
+
data[:dhcp_configurations]
|
55
|
+
end
|
56
|
+
|
57
57
|
# @!endgroup
|
58
58
|
|
59
59
|
# @return [Client]
|
@@ -5578,6 +5578,17 @@ module Aws::EC2
|
|
5578
5578
|
end
|
5579
5579
|
end
|
5580
5580
|
|
5581
|
+
class ModifyInstanceCpuOptions
|
5582
|
+
def self.build(context)
|
5583
|
+
Aws::EC2::EndpointParameters.new(
|
5584
|
+
region: context.config.region,
|
5585
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5586
|
+
use_fips: context.config.use_fips_endpoint,
|
5587
|
+
endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
|
5588
|
+
)
|
5589
|
+
end
|
5590
|
+
end
|
5591
|
+
|
5581
5592
|
class ModifyInstanceCreditSpecification
|
5582
5593
|
def self.build(context)
|
5583
5594
|
Aws::EC2::EndpointParameters.new(
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -35,58 +35,6 @@ module Aws::EC2
|
|
35
35
|
end
|
36
36
|
alias :image_id :id
|
37
37
|
|
38
|
-
# The architecture of the image.
|
39
|
-
# @return [String]
|
40
|
-
def architecture
|
41
|
-
data[:architecture]
|
42
|
-
end
|
43
|
-
|
44
|
-
# The date and time the image was created.
|
45
|
-
# @return [String]
|
46
|
-
def creation_date
|
47
|
-
data[:creation_date]
|
48
|
-
end
|
49
|
-
|
50
|
-
# The location of the AMI.
|
51
|
-
# @return [String]
|
52
|
-
def image_location
|
53
|
-
data[:image_location]
|
54
|
-
end
|
55
|
-
|
56
|
-
# The type of image.
|
57
|
-
# @return [String]
|
58
|
-
def image_type
|
59
|
-
data[:image_type]
|
60
|
-
end
|
61
|
-
|
62
|
-
# Indicates whether the image has public launch permissions. The value
|
63
|
-
# is `true` if this image has public launch permissions or `false` if it
|
64
|
-
# has only implicit and explicit launch permissions.
|
65
|
-
# @return [Boolean]
|
66
|
-
def public
|
67
|
-
data[:public]
|
68
|
-
end
|
69
|
-
|
70
|
-
# The kernel associated with the image, if any. Only applicable for
|
71
|
-
# machine images.
|
72
|
-
# @return [String]
|
73
|
-
def kernel_id
|
74
|
-
data[:kernel_id]
|
75
|
-
end
|
76
|
-
|
77
|
-
# The ID of the Amazon Web Services account that owns the image.
|
78
|
-
# @return [String]
|
79
|
-
def owner_id
|
80
|
-
data[:owner_id]
|
81
|
-
end
|
82
|
-
|
83
|
-
# This value is set to `windows` for Windows AMIs; otherwise, it is
|
84
|
-
# blank.
|
85
|
-
# @return [String]
|
86
|
-
def platform
|
87
|
-
data[:platform]
|
88
|
-
end
|
89
|
-
|
90
38
|
# The platform details associated with the billing code of the AMI. For
|
91
39
|
# more information, see [Understand AMI billing information][1] in the
|
92
40
|
# *Amazon EC2 User Guide*.
|
@@ -119,26 +67,6 @@ module Aws::EC2
|
|
119
67
|
data[:usage_operation]
|
120
68
|
end
|
121
69
|
|
122
|
-
# Any product codes associated with the AMI.
|
123
|
-
# @return [Array<Types::ProductCode>]
|
124
|
-
def product_codes
|
125
|
-
data[:product_codes]
|
126
|
-
end
|
127
|
-
|
128
|
-
# The RAM disk associated with the image, if any. Only applicable for
|
129
|
-
# machine images.
|
130
|
-
# @return [String]
|
131
|
-
def ramdisk_id
|
132
|
-
data[:ramdisk_id]
|
133
|
-
end
|
134
|
-
|
135
|
-
# The current state of the AMI. If the state is `available`, the image
|
136
|
-
# is successfully registered and can be used to launch an instance.
|
137
|
-
# @return [String]
|
138
|
-
def state
|
139
|
-
data[:state]
|
140
|
-
end
|
141
|
-
|
142
70
|
# Any block device mapping entries.
|
143
71
|
# @return [Array<Types::BlockDeviceMapping>]
|
144
72
|
def block_device_mappings
|
@@ -294,6 +222,78 @@ module Aws::EC2
|
|
294
222
|
data[:last_launched_time]
|
295
223
|
end
|
296
224
|
|
225
|
+
# The location of the AMI.
|
226
|
+
# @return [String]
|
227
|
+
def image_location
|
228
|
+
data[:image_location]
|
229
|
+
end
|
230
|
+
|
231
|
+
# The current state of the AMI. If the state is `available`, the image
|
232
|
+
# is successfully registered and can be used to launch an instance.
|
233
|
+
# @return [String]
|
234
|
+
def state
|
235
|
+
data[:state]
|
236
|
+
end
|
237
|
+
|
238
|
+
# The ID of the Amazon Web Services account that owns the image.
|
239
|
+
# @return [String]
|
240
|
+
def owner_id
|
241
|
+
data[:owner_id]
|
242
|
+
end
|
243
|
+
|
244
|
+
# The date and time the image was created.
|
245
|
+
# @return [String]
|
246
|
+
def creation_date
|
247
|
+
data[:creation_date]
|
248
|
+
end
|
249
|
+
|
250
|
+
# Indicates whether the image has public launch permissions. The value
|
251
|
+
# is `true` if this image has public launch permissions or `false` if it
|
252
|
+
# has only implicit and explicit launch permissions.
|
253
|
+
# @return [Boolean]
|
254
|
+
def public
|
255
|
+
data[:public]
|
256
|
+
end
|
257
|
+
|
258
|
+
# Any product codes associated with the AMI.
|
259
|
+
# @return [Array<Types::ProductCode>]
|
260
|
+
def product_codes
|
261
|
+
data[:product_codes]
|
262
|
+
end
|
263
|
+
|
264
|
+
# The architecture of the image.
|
265
|
+
# @return [String]
|
266
|
+
def architecture
|
267
|
+
data[:architecture]
|
268
|
+
end
|
269
|
+
|
270
|
+
# The type of image.
|
271
|
+
# @return [String]
|
272
|
+
def image_type
|
273
|
+
data[:image_type]
|
274
|
+
end
|
275
|
+
|
276
|
+
# The kernel associated with the image, if any. Only applicable for
|
277
|
+
# machine images.
|
278
|
+
# @return [String]
|
279
|
+
def kernel_id
|
280
|
+
data[:kernel_id]
|
281
|
+
end
|
282
|
+
|
283
|
+
# The RAM disk associated with the image, if any. Only applicable for
|
284
|
+
# machine images.
|
285
|
+
# @return [String]
|
286
|
+
def ramdisk_id
|
287
|
+
data[:ramdisk_id]
|
288
|
+
end
|
289
|
+
|
290
|
+
# This value is set to `windows` for Windows AMIs; otherwise, it is
|
291
|
+
# blank.
|
292
|
+
# @return [String]
|
293
|
+
def platform
|
294
|
+
data[:platform]
|
295
|
+
end
|
296
|
+
|
297
297
|
# @!endgroup
|
298
298
|
|
299
299
|
# @return [Client]
|
@@ -608,18 +608,18 @@ module Aws::EC2
|
|
608
608
|
# launch_permission: {
|
609
609
|
# add: [
|
610
610
|
# {
|
611
|
-
# group: "all", # accepts all
|
612
|
-
# user_id: "String",
|
613
611
|
# organization_arn: "String",
|
614
612
|
# organizational_unit_arn: "String",
|
613
|
+
# user_id: "String",
|
614
|
+
# group: "all", # accepts all
|
615
615
|
# },
|
616
616
|
# ],
|
617
617
|
# remove: [
|
618
618
|
# {
|
619
|
-
# group: "all", # accepts all
|
620
|
-
# user_id: "String",
|
621
619
|
# organization_arn: "String",
|
622
620
|
# organizational_unit_arn: "String",
|
621
|
+
# user_id: "String",
|
622
|
+
# group: "all", # accepts all
|
623
623
|
# },
|
624
624
|
# ],
|
625
625
|
# },
|
@@ -628,10 +628,10 @@ module Aws::EC2
|
|
628
628
|
# user_groups: ["String"],
|
629
629
|
# user_ids: ["String"],
|
630
630
|
# value: "String",
|
631
|
-
# dry_run: false,
|
632
631
|
# organization_arns: ["String"],
|
633
632
|
# organizational_unit_arns: ["String"],
|
634
633
|
# imds_support: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
634
|
+
# dry_run: false,
|
635
635
|
# })
|
636
636
|
# @param [Hash] options ({})
|
637
637
|
# @option options [String] :attribute
|
@@ -656,11 +656,6 @@ module Aws::EC2
|
|
656
656
|
# @option options [String] :value
|
657
657
|
# The value of the attribute being modified. This parameter can be used
|
658
658
|
# only when the `Attribute` parameter is `description` or `imdsSupport`.
|
659
|
-
# @option options [Boolean] :dry_run
|
660
|
-
# Checks whether you have the required permissions for the action,
|
661
|
-
# without actually making the request, and provides an error response.
|
662
|
-
# If you have the required permissions, the error response is
|
663
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
664
659
|
# @option options [Array<String>] :organization_arns
|
665
660
|
# The Amazon Resource Name (ARN) of an organization. This parameter can
|
666
661
|
# be used only when the `Attribute` parameter is `launchPermission`.
|
@@ -683,6 +678,11 @@ module Aws::EC2
|
|
683
678
|
#
|
684
679
|
#
|
685
680
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
|
681
|
+
# @option options [Boolean] :dry_run
|
682
|
+
# Checks whether you have the required permissions for the action,
|
683
|
+
# without actually making the request, and provides an error response.
|
684
|
+
# If you have the required permissions, the error response is
|
685
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
686
686
|
# @return [EmptyStructure]
|
687
687
|
def modify_attribute(options = {})
|
688
688
|
options = options.merge(image_id: @id)
|