aws-sdk-ec2 1.0.0.rc7 → 1.0.0.rc8
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/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +24 -24
- data/lib/aws-sdk-ec2/client.rb +3671 -3546
- data/lib/aws-sdk-ec2/client_api.rb +954 -896
- data/lib/aws-sdk-ec2/dhcp_options.rb +3 -3
- data/lib/aws-sdk-ec2/image.rb +93 -93
- data/lib/aws-sdk-ec2/instance.rb +252 -252
- data/lib/aws-sdk-ec2/network_acl.rb +73 -73
- data/lib/aws-sdk-ec2/network_interface.rb +82 -82
- data/lib/aws-sdk-ec2/network_interface_association.rb +10 -10
- data/lib/aws-sdk-ec2/placement_group.rb +17 -17
- data/lib/aws-sdk-ec2/resource.rb +526 -525
- data/lib/aws-sdk-ec2/route.rb +38 -38
- data/lib/aws-sdk-ec2/route_table.rb +21 -21
- data/lib/aws-sdk-ec2/route_table_association.rb +6 -6
- data/lib/aws-sdk-ec2/security_group.rb +175 -175
- data/lib/aws-sdk-ec2/snapshot.rb +102 -102
- data/lib/aws-sdk-ec2/subnet.rb +228 -227
- data/lib/aws-sdk-ec2/types.rb +6558 -6298
- data/lib/aws-sdk-ec2/volume.rb +95 -95
- data/lib/aws-sdk-ec2/vpc.rb +171 -171
- data/lib/aws-sdk-ec2/vpc_address.rb +18 -18
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +4 -5
- metadata +4 -4
@@ -83,17 +83,17 @@ module Aws::EC2
|
|
83
83
|
# @example Request syntax with placeholder values
|
84
84
|
#
|
85
85
|
# dhcp_options.associate_with_vpc({
|
86
|
-
# dry_run: false,
|
87
86
|
# vpc_id: "String", # required
|
87
|
+
# dry_run: false,
|
88
88
|
# })
|
89
89
|
# @param [Hash] options ({})
|
90
|
+
# @option options [required, String] :vpc_id
|
91
|
+
# The ID of the VPC.
|
90
92
|
# @option options [Boolean] :dry_run
|
91
93
|
# Checks whether you have the required permissions for the action,
|
92
94
|
# without actually making the request, and provides an error response.
|
93
95
|
# If you have the required permissions, the error response is
|
94
96
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
95
|
-
# @option options [required, String] :vpc_id
|
96
|
-
# The ID of the VPC.
|
97
97
|
# @return [EmptyStructure]
|
98
98
|
def associate_with_vpc(options = {})
|
99
99
|
options = options.merge(dhcp_options_id: @id)
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -31,29 +31,28 @@ module Aws::EC2
|
|
31
31
|
end
|
32
32
|
alias :image_id :id
|
33
33
|
|
34
|
-
# The
|
34
|
+
# The architecture of the image.
|
35
35
|
# @return [String]
|
36
|
-
def
|
37
|
-
data.
|
36
|
+
def architecture
|
37
|
+
data.architecture
|
38
38
|
end
|
39
39
|
|
40
|
-
# The
|
41
|
-
# is successfully registered and can be used to launch an instance.
|
40
|
+
# The date and time the image was created.
|
42
41
|
# @return [String]
|
43
|
-
def
|
44
|
-
data.
|
42
|
+
def creation_date
|
43
|
+
data.creation_date
|
45
44
|
end
|
46
45
|
|
47
|
-
# The
|
46
|
+
# The location of the AMI.
|
48
47
|
# @return [String]
|
49
|
-
def
|
50
|
-
data.
|
48
|
+
def image_location
|
49
|
+
data.image_location
|
51
50
|
end
|
52
51
|
|
53
|
-
# The
|
52
|
+
# The type of image.
|
54
53
|
# @return [String]
|
55
|
-
def
|
56
|
-
data.
|
54
|
+
def image_type
|
55
|
+
data.image_type
|
57
56
|
end
|
58
57
|
|
59
58
|
# Indicates whether the image has public launch permissions. The value
|
@@ -64,29 +63,29 @@ module Aws::EC2
|
|
64
63
|
data.public
|
65
64
|
end
|
66
65
|
|
67
|
-
#
|
68
|
-
#
|
69
|
-
|
70
|
-
|
66
|
+
# The kernel associated with the image, if any. Only applicable for
|
67
|
+
# machine images.
|
68
|
+
# @return [String]
|
69
|
+
def kernel_id
|
70
|
+
data.kernel_id
|
71
71
|
end
|
72
72
|
|
73
|
-
# The
|
73
|
+
# The AWS account ID of the image owner.
|
74
74
|
# @return [String]
|
75
|
-
def
|
76
|
-
data.
|
75
|
+
def owner_id
|
76
|
+
data.owner_id
|
77
77
|
end
|
78
78
|
|
79
|
-
# The
|
79
|
+
# The value is `Windows` for Windows AMIs; otherwise blank.
|
80
80
|
# @return [String]
|
81
|
-
def
|
82
|
-
data.
|
81
|
+
def platform
|
82
|
+
data.platform
|
83
83
|
end
|
84
84
|
|
85
|
-
#
|
86
|
-
#
|
87
|
-
|
88
|
-
|
89
|
-
data.kernel_id
|
85
|
+
# Any product codes associated with the AMI.
|
86
|
+
# @return [Array<Types::ProductCode>]
|
87
|
+
def product_codes
|
88
|
+
data.product_codes
|
90
89
|
end
|
91
90
|
|
92
91
|
# The RAM disk associated with the image, if any. Only applicable for
|
@@ -96,17 +95,23 @@ module Aws::EC2
|
|
96
95
|
data.ramdisk_id
|
97
96
|
end
|
98
97
|
|
99
|
-
# The
|
98
|
+
# The current state of the AMI. If the state is `available`, the image
|
99
|
+
# is successfully registered and can be used to launch an instance.
|
100
100
|
# @return [String]
|
101
|
-
def
|
102
|
-
data.
|
101
|
+
def state
|
102
|
+
data.state
|
103
103
|
end
|
104
104
|
|
105
|
-
#
|
106
|
-
#
|
105
|
+
# Any block device mapping entries.
|
106
|
+
# @return [Array<Types::BlockDeviceMapping>]
|
107
|
+
def block_device_mappings
|
108
|
+
data.block_device_mappings
|
109
|
+
end
|
110
|
+
|
111
|
+
# The description of the AMI that was provided during image creation.
|
107
112
|
# @return [String]
|
108
|
-
def
|
109
|
-
data.
|
113
|
+
def description
|
114
|
+
data.description
|
110
115
|
end
|
111
116
|
|
112
117
|
# Specifies whether enhanced networking with ENA is enabled.
|
@@ -115,10 +120,10 @@ module Aws::EC2
|
|
115
120
|
data.ena_support
|
116
121
|
end
|
117
122
|
|
118
|
-
# The
|
119
|
-
# @return [
|
120
|
-
def
|
121
|
-
data.
|
123
|
+
# The hypervisor type of the image.
|
124
|
+
# @return [String]
|
125
|
+
def hypervisor
|
126
|
+
data.hypervisor
|
122
127
|
end
|
123
128
|
|
124
129
|
# The AWS account alias (for example, `amazon`, `self`) or the AWS
|
@@ -134,10 +139,11 @@ module Aws::EC2
|
|
134
139
|
data.name
|
135
140
|
end
|
136
141
|
|
137
|
-
# The
|
142
|
+
# The device name of the root device (for example, `/dev/sda1` or
|
143
|
+
# `/dev/xvda`).
|
138
144
|
# @return [String]
|
139
|
-
def
|
140
|
-
data.
|
145
|
+
def root_device_name
|
146
|
+
data.root_device_name
|
141
147
|
end
|
142
148
|
|
143
149
|
# The type of root device used by the AMI. The AMI can use an EBS volume
|
@@ -147,23 +153,17 @@ module Aws::EC2
|
|
147
153
|
data.root_device_type
|
148
154
|
end
|
149
155
|
|
150
|
-
#
|
151
|
-
#
|
156
|
+
# Specifies whether enhanced networking with the Intel 82599 Virtual
|
157
|
+
# Function interface is enabled.
|
152
158
|
# @return [String]
|
153
|
-
def
|
154
|
-
data.
|
155
|
-
end
|
156
|
-
|
157
|
-
# Any block device mapping entries.
|
158
|
-
# @return [Array<Types::BlockDeviceMapping>]
|
159
|
-
def block_device_mappings
|
160
|
-
data.block_device_mappings
|
159
|
+
def sriov_net_support
|
160
|
+
data.sriov_net_support
|
161
161
|
end
|
162
162
|
|
163
|
-
# The
|
164
|
-
# @return [
|
165
|
-
def
|
166
|
-
data.
|
163
|
+
# The reason for the state change.
|
164
|
+
# @return [Types::StateReason]
|
165
|
+
def state_reason
|
166
|
+
data.state_reason
|
167
167
|
end
|
168
168
|
|
169
169
|
# Any tags assigned to the image.
|
@@ -172,10 +172,10 @@ module Aws::EC2
|
|
172
172
|
data.tags
|
173
173
|
end
|
174
174
|
|
175
|
-
# The
|
175
|
+
# The type of virtualization of the AMI.
|
176
176
|
# @return [String]
|
177
|
-
def
|
178
|
-
data.
|
177
|
+
def virtualization_type
|
178
|
+
data.virtualization_type
|
179
179
|
end
|
180
180
|
|
181
181
|
# @!endgroup
|
@@ -305,15 +305,10 @@ module Aws::EC2
|
|
305
305
|
# @example Request syntax with placeholder values
|
306
306
|
#
|
307
307
|
# image.describe_attribute({
|
308
|
-
# dry_run: false,
|
309
308
|
# attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport
|
309
|
+
# dry_run: false,
|
310
310
|
# })
|
311
311
|
# @param [Hash] options ({})
|
312
|
-
# @option options [Boolean] :dry_run
|
313
|
-
# Checks whether you have the required permissions for the action,
|
314
|
-
# without actually making the request, and provides an error response.
|
315
|
-
# If you have the required permissions, the error response is
|
316
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
317
312
|
# @option options [required, String] :attribute
|
318
313
|
# The AMI attribute.
|
319
314
|
#
|
@@ -321,6 +316,11 @@ module Aws::EC2
|
|
321
316
|
# `blockDeviceMapping` attribute may return a `Client.AuthFailure`
|
322
317
|
# error. If this happens, use DescribeImages to get information about
|
323
318
|
# the block device mapping for the AMI.
|
319
|
+
# @option options [Boolean] :dry_run
|
320
|
+
# Checks whether you have the required permissions for the action,
|
321
|
+
# without actually making the request, and provides an error response.
|
322
|
+
# If you have the required permissions, the error response is
|
323
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
324
324
|
# @return [Types::ImageAttribute]
|
325
325
|
def describe_attribute(options = {})
|
326
326
|
options = options.merge(image_id: @id)
|
@@ -331,56 +331,56 @@ module Aws::EC2
|
|
331
331
|
# @example Request syntax with placeholder values
|
332
332
|
#
|
333
333
|
# image.modify_attribute({
|
334
|
-
# dry_run: false,
|
335
334
|
# attribute: "String",
|
336
|
-
#
|
337
|
-
# user_ids: ["String"],
|
338
|
-
# user_groups: ["String"],
|
339
|
-
# product_codes: ["String"],
|
340
|
-
# value: "String",
|
335
|
+
# description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
341
336
|
# launch_permission: {
|
342
337
|
# add: [
|
343
338
|
# {
|
344
|
-
# user_id: "String",
|
345
339
|
# group: "all", # accepts all
|
340
|
+
# user_id: "String",
|
346
341
|
# },
|
347
342
|
# ],
|
348
343
|
# remove: [
|
349
344
|
# {
|
350
|
-
# user_id: "String",
|
351
345
|
# group: "all", # accepts all
|
346
|
+
# user_id: "String",
|
352
347
|
# },
|
353
348
|
# ],
|
354
349
|
# },
|
355
|
-
#
|
350
|
+
# operation_type: "add", # accepts add, remove
|
351
|
+
# product_codes: ["String"],
|
352
|
+
# user_groups: ["String"],
|
353
|
+
# user_ids: ["String"],
|
354
|
+
# value: "String",
|
355
|
+
# dry_run: false,
|
356
356
|
# })
|
357
357
|
# @param [Hash] options ({})
|
358
|
-
# @option options [Boolean] :dry_run
|
359
|
-
# Checks whether you have the required permissions for the action,
|
360
|
-
# without actually making the request, and provides an error response.
|
361
|
-
# If you have the required permissions, the error response is
|
362
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
363
358
|
# @option options [String] :attribute
|
364
359
|
# The name of the attribute to modify.
|
360
|
+
# @option options [Types::AttributeValue] :description
|
361
|
+
# A description for the AMI.
|
362
|
+
# @option options [Types::LaunchPermissionModifications] :launch_permission
|
363
|
+
# A launch permission modification.
|
365
364
|
# @option options [String] :operation_type
|
366
365
|
# The operation type.
|
367
|
-
# @option options [Array<String>] :user_ids
|
368
|
-
# One or more AWS account IDs. This is only valid when modifying the
|
369
|
-
# `launchPermission` attribute.
|
370
|
-
# @option options [Array<String>] :user_groups
|
371
|
-
# One or more user groups. This is only valid when modifying the
|
372
|
-
# `launchPermission` attribute.
|
373
366
|
# @option options [Array<String>] :product_codes
|
374
367
|
# One or more product codes. After you add a product code to an AMI, it
|
375
368
|
# can't be removed. This is only valid when modifying the
|
376
369
|
# `productCodes` attribute.
|
370
|
+
# @option options [Array<String>] :user_groups
|
371
|
+
# One or more user groups. This is only valid when modifying the
|
372
|
+
# `launchPermission` attribute.
|
373
|
+
# @option options [Array<String>] :user_ids
|
374
|
+
# One or more AWS account IDs. This is only valid when modifying the
|
375
|
+
# `launchPermission` attribute.
|
377
376
|
# @option options [String] :value
|
378
377
|
# The value of the attribute being modified. This is only valid when
|
379
378
|
# modifying the `description` attribute.
|
380
|
-
# @option options [
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
379
|
+
# @option options [Boolean] :dry_run
|
380
|
+
# Checks whether you have the required permissions for the action,
|
381
|
+
# without actually making the request, and provides an error response.
|
382
|
+
# If you have the required permissions, the error response is
|
383
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
384
384
|
# @return [EmptyStructure]
|
385
385
|
def modify_attribute(options = {})
|
386
386
|
options = options.merge(image_id: @id)
|
@@ -391,18 +391,18 @@ module Aws::EC2
|
|
391
391
|
# @example Request syntax with placeholder values
|
392
392
|
#
|
393
393
|
# image.reset_attribute({
|
394
|
-
# dry_run: false,
|
395
394
|
# attribute: "launchPermission", # required, accepts launchPermission
|
395
|
+
# dry_run: false,
|
396
396
|
# })
|
397
397
|
# @param [Hash] options ({})
|
398
|
+
# @option options [required, String] :attribute
|
399
|
+
# The attribute to reset (currently you can only reset the launch
|
400
|
+
# permission attribute).
|
398
401
|
# @option options [Boolean] :dry_run
|
399
402
|
# Checks whether you have the required permissions for the action,
|
400
403
|
# without actually making the request, and provides an error response.
|
401
404
|
# If you have the required permissions, the error response is
|
402
405
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
403
|
-
# @option options [required, String] :attribute
|
404
|
-
# The attribute to reset (currently you can only reset the launch
|
405
|
-
# permission attribute).
|
406
406
|
# @return [EmptyStructure]
|
407
407
|
def reset_attribute(options = {})
|
408
408
|
options = options.merge(image_id: @id)
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -31,16 +31,60 @@ module Aws::EC2
|
|
31
31
|
end
|
32
32
|
alias :instance_id :id
|
33
33
|
|
34
|
+
# The AMI launch index, which can be used to find this instance in the
|
35
|
+
# launch group.
|
36
|
+
# @return [Integer]
|
37
|
+
def ami_launch_index
|
38
|
+
data.ami_launch_index
|
39
|
+
end
|
40
|
+
|
34
41
|
# The ID of the AMI used to launch the instance.
|
35
42
|
# @return [String]
|
36
43
|
def image_id
|
37
44
|
data.image_id
|
38
45
|
end
|
39
46
|
|
40
|
-
# The
|
41
|
-
# @return [
|
42
|
-
def
|
43
|
-
data.
|
47
|
+
# The instance type.
|
48
|
+
# @return [String]
|
49
|
+
def instance_type
|
50
|
+
data.instance_type
|
51
|
+
end
|
52
|
+
|
53
|
+
# The kernel associated with this instance, if applicable.
|
54
|
+
# @return [String]
|
55
|
+
def kernel_id
|
56
|
+
data.kernel_id
|
57
|
+
end
|
58
|
+
|
59
|
+
# The name of the key pair, if this instance was launched with an
|
60
|
+
# associated key pair.
|
61
|
+
# @return [String]
|
62
|
+
def key_name
|
63
|
+
data.key_name
|
64
|
+
end
|
65
|
+
|
66
|
+
# The time the instance was launched.
|
67
|
+
# @return [Time]
|
68
|
+
def launch_time
|
69
|
+
data.launch_time
|
70
|
+
end
|
71
|
+
|
72
|
+
# The monitoring for the instance.
|
73
|
+
# @return [Types::Monitoring]
|
74
|
+
def monitoring
|
75
|
+
data.monitoring
|
76
|
+
end
|
77
|
+
|
78
|
+
# The location where the instance launched, if applicable.
|
79
|
+
# @return [Types::Placement]
|
80
|
+
def placement
|
81
|
+
data.placement
|
82
|
+
end
|
83
|
+
|
84
|
+
# The value is `Windows` for Windows instances; otherwise blank.
|
85
|
+
# @return [String]
|
86
|
+
def platform
|
87
|
+
data.platform
|
44
88
|
end
|
45
89
|
|
46
90
|
# (IPv4 only) The private DNS hostname name assigned to the instance.
|
@@ -57,34 +101,10 @@ module Aws::EC2
|
|
57
101
|
data.private_dns_name
|
58
102
|
end
|
59
103
|
|
60
|
-
#
|
61
|
-
# not available until the instance enters the `running` state. For
|
62
|
-
# EC2-VPC, this name is only available if you've enabled DNS hostnames
|
63
|
-
# for your VPC.
|
64
|
-
# @return [String]
|
65
|
-
def public_dns_name
|
66
|
-
data.public_dns_name
|
67
|
-
end
|
68
|
-
|
69
|
-
# The reason for the most recent state transition. This might be an
|
70
|
-
# empty string.
|
71
|
-
# @return [String]
|
72
|
-
def state_transition_reason
|
73
|
-
data.state_transition_reason
|
74
|
-
end
|
75
|
-
|
76
|
-
# The name of the key pair, if this instance was launched with an
|
77
|
-
# associated key pair.
|
104
|
+
# The private IPv4 address assigned to the instance.
|
78
105
|
# @return [String]
|
79
|
-
def
|
80
|
-
data.
|
81
|
-
end
|
82
|
-
|
83
|
-
# The AMI launch index, which can be used to find this instance in the
|
84
|
-
# launch group.
|
85
|
-
# @return [Integer]
|
86
|
-
def ami_launch_index
|
87
|
-
data.ami_launch_index
|
106
|
+
def private_ip_address
|
107
|
+
data.private_ip_address
|
88
108
|
end
|
89
109
|
|
90
110
|
# The product codes attached to this instance, if applicable.
|
@@ -93,28 +113,19 @@ module Aws::EC2
|
|
93
113
|
data.product_codes
|
94
114
|
end
|
95
115
|
|
96
|
-
# The instance
|
116
|
+
# (IPv4 only) The public DNS name assigned to the instance. This name is
|
117
|
+
# not available until the instance enters the `running` state. For
|
118
|
+
# EC2-VPC, this name is only available if you've enabled DNS hostnames
|
119
|
+
# for your VPC.
|
97
120
|
# @return [String]
|
98
|
-
def
|
99
|
-
data.
|
100
|
-
end
|
101
|
-
|
102
|
-
# The time the instance was launched.
|
103
|
-
# @return [Time]
|
104
|
-
def launch_time
|
105
|
-
data.launch_time
|
106
|
-
end
|
107
|
-
|
108
|
-
# The location where the instance launched, if applicable.
|
109
|
-
# @return [Types::Placement]
|
110
|
-
def placement
|
111
|
-
data.placement
|
121
|
+
def public_dns_name
|
122
|
+
data.public_dns_name
|
112
123
|
end
|
113
124
|
|
114
|
-
# The
|
125
|
+
# The public IPv4 address assigned to the instance, if applicable.
|
115
126
|
# @return [String]
|
116
|
-
def
|
117
|
-
data.
|
127
|
+
def public_ip_address
|
128
|
+
data.public_ip_address
|
118
129
|
end
|
119
130
|
|
120
131
|
# The RAM disk associated with this instance, if applicable.
|
@@ -123,16 +134,17 @@ module Aws::EC2
|
|
123
134
|
data.ramdisk_id
|
124
135
|
end
|
125
136
|
|
126
|
-
# The
|
127
|
-
# @return [
|
128
|
-
def
|
129
|
-
data.
|
137
|
+
# The current state of the instance.
|
138
|
+
# @return [Types::InstanceState]
|
139
|
+
def state
|
140
|
+
data.state
|
130
141
|
end
|
131
142
|
|
132
|
-
# The
|
133
|
-
#
|
134
|
-
|
135
|
-
|
143
|
+
# The reason for the most recent state transition. This might be an
|
144
|
+
# empty string.
|
145
|
+
# @return [String]
|
146
|
+
def state_transition_reason
|
147
|
+
data.state_transition_reason
|
136
148
|
end
|
137
149
|
|
138
150
|
# \[EC2-VPC\] The ID of the subnet in which the instance is running.
|
@@ -147,53 +159,51 @@ module Aws::EC2
|
|
147
159
|
data.vpc_id
|
148
160
|
end
|
149
161
|
|
150
|
-
# The private IPv4 address assigned to the instance.
|
151
|
-
# @return [String]
|
152
|
-
def private_ip_address
|
153
|
-
data.private_ip_address
|
154
|
-
end
|
155
|
-
|
156
|
-
# The public IPv4 address assigned to the instance, if applicable.
|
157
|
-
# @return [String]
|
158
|
-
def public_ip_address
|
159
|
-
data.public_ip_address
|
160
|
-
end
|
161
|
-
|
162
|
-
# The reason for the most recent state transition.
|
163
|
-
# @return [Types::StateReason]
|
164
|
-
def state_reason
|
165
|
-
data.state_reason
|
166
|
-
end
|
167
|
-
|
168
162
|
# The architecture of the image.
|
169
163
|
# @return [String]
|
170
164
|
def architecture
|
171
165
|
data.architecture
|
172
166
|
end
|
173
167
|
|
174
|
-
#
|
175
|
-
#
|
176
|
-
|
177
|
-
|
178
|
-
data.root_device_type
|
168
|
+
# Any block device mapping entries for the instance.
|
169
|
+
# @return [Array<Types::InstanceBlockDeviceMapping>]
|
170
|
+
def block_device_mappings
|
171
|
+
data.block_device_mappings
|
179
172
|
end
|
180
173
|
|
181
|
-
# The
|
174
|
+
# The idempotency token you provided when you launched the instance, if
|
175
|
+
# applicable.
|
182
176
|
# @return [String]
|
183
|
-
def
|
184
|
-
data.
|
177
|
+
def client_token
|
178
|
+
data.client_token
|
185
179
|
end
|
186
180
|
|
187
|
-
#
|
188
|
-
#
|
189
|
-
|
190
|
-
|
181
|
+
# Indicates whether the instance is optimized for EBS I/O. This
|
182
|
+
# optimization provides dedicated throughput to Amazon EBS and an
|
183
|
+
# optimized configuration stack to provide optimal I/O performance. This
|
184
|
+
# optimization isn't available with all instance types. Additional
|
185
|
+
# usage charges apply when using an EBS Optimized instance.
|
186
|
+
# @return [Boolean]
|
187
|
+
def ebs_optimized
|
188
|
+
data.ebs_optimized
|
191
189
|
end
|
192
190
|
|
193
|
-
#
|
191
|
+
# Specifies whether enhanced networking with ENA is enabled.
|
192
|
+
# @return [Boolean]
|
193
|
+
def ena_support
|
194
|
+
data.ena_support
|
195
|
+
end
|
196
|
+
|
197
|
+
# The hypervisor type of the instance.
|
194
198
|
# @return [String]
|
195
|
-
def
|
196
|
-
data.
|
199
|
+
def hypervisor
|
200
|
+
data.hypervisor
|
201
|
+
end
|
202
|
+
|
203
|
+
# The IAM instance profile associated with the instance, if applicable.
|
204
|
+
# @return [Types::IamInstanceProfile]
|
205
|
+
def iam_instance_profile
|
206
|
+
data.iam_instance_profile
|
197
207
|
end
|
198
208
|
|
199
209
|
# Indicates whether this is a Spot instance or a Scheduled Instance.
|
@@ -202,23 +212,17 @@ module Aws::EC2
|
|
202
212
|
data.instance_lifecycle
|
203
213
|
end
|
204
214
|
|
205
|
-
#
|
215
|
+
# The root device name (for example, `/dev/sda1` or `/dev/xvda`).
|
206
216
|
# @return [String]
|
207
|
-
def
|
208
|
-
data.
|
217
|
+
def root_device_name
|
218
|
+
data.root_device_name
|
209
219
|
end
|
210
220
|
|
211
|
-
# The
|
212
|
-
#
|
221
|
+
# The root device type used by the AMI. The AMI can use an EBS volume or
|
222
|
+
# an instance store volume.
|
213
223
|
# @return [String]
|
214
|
-
def
|
215
|
-
data.
|
216
|
-
end
|
217
|
-
|
218
|
-
# Any tags assigned to the instance.
|
219
|
-
# @return [Array<Types::Tag>]
|
220
|
-
def tags
|
221
|
-
data.tags
|
224
|
+
def root_device_type
|
225
|
+
data.root_device_type
|
222
226
|
end
|
223
227
|
|
224
228
|
# One or more security groups for the instance.
|
@@ -242,26 +246,10 @@ module Aws::EC2
|
|
242
246
|
data.source_dest_check
|
243
247
|
end
|
244
248
|
|
245
|
-
#
|
249
|
+
# If the request is a Spot instance request, the ID of the request.
|
246
250
|
# @return [String]
|
247
|
-
def
|
248
|
-
data.
|
249
|
-
end
|
250
|
-
|
251
|
-
# The IAM instance profile associated with the instance, if applicable.
|
252
|
-
# @return [Types::IamInstanceProfile]
|
253
|
-
def iam_instance_profile
|
254
|
-
data.iam_instance_profile
|
255
|
-
end
|
256
|
-
|
257
|
-
# Indicates whether the instance is optimized for EBS I/O. This
|
258
|
-
# optimization provides dedicated throughput to Amazon EBS and an
|
259
|
-
# optimized configuration stack to provide optimal I/O performance. This
|
260
|
-
# optimization isn't available with all instance types. Additional
|
261
|
-
# usage charges apply when using an EBS Optimized instance.
|
262
|
-
# @return [Boolean]
|
263
|
-
def ebs_optimized
|
264
|
-
data.ebs_optimized
|
251
|
+
def spot_instance_request_id
|
252
|
+
data.spot_instance_request_id
|
265
253
|
end
|
266
254
|
|
267
255
|
# Specifies whether enhanced networking with the Intel 82599 Virtual
|
@@ -271,10 +259,22 @@ module Aws::EC2
|
|
271
259
|
data.sriov_net_support
|
272
260
|
end
|
273
261
|
|
274
|
-
#
|
275
|
-
# @return [
|
276
|
-
def
|
277
|
-
data.
|
262
|
+
# The reason for the most recent state transition.
|
263
|
+
# @return [Types::StateReason]
|
264
|
+
def state_reason
|
265
|
+
data.state_reason
|
266
|
+
end
|
267
|
+
|
268
|
+
# Any tags assigned to the instance.
|
269
|
+
# @return [Array<Types::Tag>]
|
270
|
+
def tags
|
271
|
+
data.tags
|
272
|
+
end
|
273
|
+
|
274
|
+
# The virtualization type of the instance.
|
275
|
+
# @return [String]
|
276
|
+
def virtualization_type
|
277
|
+
data.virtualization_type
|
278
278
|
end
|
279
279
|
|
280
280
|
# @!endgroup
|
@@ -404,8 +404,8 @@ module Aws::EC2
|
|
404
404
|
#
|
405
405
|
# instance.attach_classic_link_vpc({
|
406
406
|
# dry_run: false,
|
407
|
-
# vpc_id: "String", # required
|
408
407
|
# groups: ["String"], # required
|
408
|
+
# vpc_id: "String", # required
|
409
409
|
# })
|
410
410
|
# @param [Hash] options ({})
|
411
411
|
# @option options [Boolean] :dry_run
|
@@ -413,11 +413,11 @@ module Aws::EC2
|
|
413
413
|
# without actually making the request, and provides an error response.
|
414
414
|
# If you have the required permissions, the error response is
|
415
415
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
416
|
-
# @option options [required, String] :vpc_id
|
417
|
-
# The ID of a ClassicLink-enabled VPC.
|
418
416
|
# @option options [required, Array<String>] :groups
|
419
417
|
# The ID of one or more of the VPC's security groups. You cannot
|
420
418
|
# specify security groups from a different VPC.
|
419
|
+
# @option options [required, String] :vpc_id
|
420
|
+
# The ID of a ClassicLink-enabled VPC.
|
421
421
|
# @return [Types::AttachClassicLinkVpcResult]
|
422
422
|
def attach_classic_link_vpc(options = {})
|
423
423
|
options = options.merge(instance_id: @id)
|
@@ -428,22 +428,22 @@ module Aws::EC2
|
|
428
428
|
# @example Request syntax with placeholder values
|
429
429
|
#
|
430
430
|
# instance.attach_volume({
|
431
|
-
# dry_run: false,
|
432
|
-
# volume_id: "String", # required
|
433
431
|
# device: "String", # required
|
432
|
+
# volume_id: "String", # required
|
433
|
+
# dry_run: false,
|
434
434
|
# })
|
435
435
|
# @param [Hash] options ({})
|
436
|
+
# @option options [required, String] :device
|
437
|
+
# The device name to expose to the instance (for example, `/dev/sdh` or
|
438
|
+
# `xvdh`).
|
439
|
+
# @option options [required, String] :volume_id
|
440
|
+
# The ID of the EBS volume. The volume and instance must be within the
|
441
|
+
# same Availability Zone.
|
436
442
|
# @option options [Boolean] :dry_run
|
437
443
|
# Checks whether you have the required permissions for the action,
|
438
444
|
# without actually making the request, and provides an error response.
|
439
445
|
# If you have the required permissions, the error response is
|
440
446
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
441
|
-
# @option options [required, String] :volume_id
|
442
|
-
# The ID of the EBS volume. The volume and instance must be within the
|
443
|
-
# same Availability Zone.
|
444
|
-
# @option options [required, String] :device
|
445
|
-
# The device name to expose to the instance (for example, `/dev/sdh` or
|
446
|
-
# `xvdh`).
|
447
447
|
# @return [Types::VolumeAttachment]
|
448
448
|
def attach_volume(options = {})
|
449
449
|
options = options.merge(instance_id: @id)
|
@@ -472,27 +472,31 @@ module Aws::EC2
|
|
472
472
|
# @example Request syntax with placeholder values
|
473
473
|
#
|
474
474
|
# image = instance.create_image({
|
475
|
-
# dry_run: false,
|
476
|
-
# name: "String", # required
|
477
|
-
# description: "String",
|
478
|
-
# no_reboot: false,
|
479
475
|
# block_device_mappings: [
|
480
476
|
# {
|
481
|
-
# virtual_name: "String",
|
482
477
|
# device_name: "String",
|
478
|
+
# virtual_name: "String",
|
483
479
|
# ebs: {
|
480
|
+
# encrypted: false,
|
481
|
+
# delete_on_termination: false,
|
482
|
+
# iops: 1,
|
484
483
|
# snapshot_id: "String",
|
485
484
|
# volume_size: 1,
|
486
|
-
# delete_on_termination: false,
|
487
485
|
# volume_type: "standard", # accepts standard, io1, gp2, sc1, st1
|
488
|
-
# iops: 1,
|
489
|
-
# encrypted: false,
|
490
486
|
# },
|
491
487
|
# no_device: "String",
|
492
488
|
# },
|
493
489
|
# ],
|
490
|
+
# description: "String",
|
491
|
+
# dry_run: false,
|
492
|
+
# name: "String", # required
|
493
|
+
# no_reboot: false,
|
494
494
|
# })
|
495
495
|
# @param [Hash] options ({})
|
496
|
+
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
497
|
+
# Information about one or more block device mappings.
|
498
|
+
# @option options [String] :description
|
499
|
+
# A description for the new image.
|
496
500
|
# @option options [Boolean] :dry_run
|
497
501
|
# Checks whether you have the required permissions for the action,
|
498
502
|
# without actually making the request, and provides an error response.
|
@@ -504,16 +508,12 @@ module Aws::EC2
|
|
504
508
|
# Constraints: 3-128 alphanumeric characters, parentheses (()), square
|
505
509
|
# brackets (\[\]), spaces ( ), periods (.), slashes (/), dashes (-),
|
506
510
|
# single quotes ('), at-signs (@), or underscores(\_)
|
507
|
-
# @option options [String] :description
|
508
|
-
# A description for the new image.
|
509
511
|
# @option options [Boolean] :no_reboot
|
510
512
|
# By default, Amazon EC2 attempts to shut down and reboot the instance
|
511
513
|
# before creating the image. If the 'No Reboot' option is set, Amazon
|
512
514
|
# EC2 doesn't shut down the instance before creating the image. When
|
513
515
|
# this option is used, file system integrity on the created image can't
|
514
516
|
# be guaranteed.
|
515
|
-
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
516
|
-
# Information about one or more block device mappings.
|
517
517
|
# @return [Image]
|
518
518
|
def create_image(options = {})
|
519
519
|
options = options.merge(instance_id: @id)
|
@@ -564,19 +564,19 @@ module Aws::EC2
|
|
564
564
|
# @example Request syntax with placeholder values
|
565
565
|
#
|
566
566
|
# instance.describe_attribute({
|
567
|
-
# dry_run: false,
|
568
567
|
# attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport
|
568
|
+
# dry_run: false,
|
569
569
|
# })
|
570
570
|
# @param [Hash] options ({})
|
571
|
+
# @option options [required, String] :attribute
|
572
|
+
# The instance attribute.
|
573
|
+
#
|
574
|
+
# Note: The `enaSupport` attribute is not supported at this time.
|
571
575
|
# @option options [Boolean] :dry_run
|
572
576
|
# Checks whether you have the required permissions for the action,
|
573
577
|
# without actually making the request, and provides an error response.
|
574
578
|
# If you have the required permissions, the error response is
|
575
579
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
576
|
-
# @option options [required, String] :attribute
|
577
|
-
# The instance attribute.
|
578
|
-
#
|
579
|
-
# Note: The `enaSupport` attribute is not supported at this time.
|
580
580
|
# @return [Types::InstanceAttribute]
|
581
581
|
def describe_attribute(options = {})
|
582
582
|
options = options.merge(instance_id: @id)
|
@@ -608,19 +608,12 @@ module Aws::EC2
|
|
608
608
|
# @example Request syntax with placeholder values
|
609
609
|
#
|
610
610
|
# instance.detach_volume({
|
611
|
-
# dry_run: false,
|
612
|
-
# volume_id: "String", # required
|
613
611
|
# device: "String",
|
614
612
|
# force: false,
|
613
|
+
# volume_id: "String", # required
|
614
|
+
# dry_run: false,
|
615
615
|
# })
|
616
616
|
# @param [Hash] options ({})
|
617
|
-
# @option options [Boolean] :dry_run
|
618
|
-
# Checks whether you have the required permissions for the action,
|
619
|
-
# without actually making the request, and provides an error response.
|
620
|
-
# If you have the required permissions, the error response is
|
621
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
622
|
-
# @option options [required, String] :volume_id
|
623
|
-
# The ID of the volume.
|
624
617
|
# @option options [String] :device
|
625
618
|
# The device name.
|
626
619
|
# @option options [Boolean] :force
|
@@ -632,6 +625,13 @@ module Aws::EC2
|
|
632
625
|
# opportunity to flush file system caches or file system metadata. If
|
633
626
|
# you use this option, you must perform file system check and repair
|
634
627
|
# procedures.
|
628
|
+
# @option options [required, String] :volume_id
|
629
|
+
# The ID of the volume.
|
630
|
+
# @option options [Boolean] :dry_run
|
631
|
+
# Checks whether you have the required permissions for the action,
|
632
|
+
# without actually making the request, and provides an error response.
|
633
|
+
# If you have the required permissions, the error response is
|
634
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
635
635
|
# @return [Types::VolumeAttachment]
|
636
636
|
def detach_volume(options = {})
|
637
637
|
options = options.merge(instance_id: @id)
|
@@ -642,54 +642,50 @@ module Aws::EC2
|
|
642
642
|
# @example Request syntax with placeholder values
|
643
643
|
#
|
644
644
|
# instance.modify_attribute({
|
645
|
-
#
|
645
|
+
# source_dest_check: {
|
646
|
+
# value: false,
|
647
|
+
# },
|
646
648
|
# attribute: "instanceType", # accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport
|
647
|
-
# value: "String",
|
648
649
|
# block_device_mappings: [
|
649
650
|
# {
|
650
651
|
# device_name: "String",
|
651
652
|
# ebs: {
|
652
|
-
# volume_id: "String",
|
653
653
|
# delete_on_termination: false,
|
654
|
+
# volume_id: "String",
|
654
655
|
# },
|
655
|
-
# virtual_name: "String",
|
656
656
|
# no_device: "String",
|
657
|
+
# virtual_name: "String",
|
657
658
|
# },
|
658
659
|
# ],
|
659
|
-
#
|
660
|
+
# disable_api_termination: {
|
660
661
|
# value: false,
|
661
662
|
# },
|
662
|
-
#
|
663
|
+
# dry_run: false,
|
664
|
+
# ebs_optimized: {
|
665
|
+
# value: false,
|
666
|
+
# },
|
667
|
+
# ena_support: {
|
663
668
|
# value: false,
|
664
669
|
# },
|
670
|
+
# groups: ["String"],
|
671
|
+
# instance_initiated_shutdown_behavior: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
665
672
|
# instance_type: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
666
673
|
# kernel: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
667
674
|
# ramdisk: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
675
|
+
# sriov_net_support: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
668
676
|
# user_data: {
|
669
677
|
# value: "data",
|
670
678
|
# },
|
671
|
-
#
|
672
|
-
# groups: ["String"],
|
673
|
-
# ebs_optimized: {
|
674
|
-
# value: false,
|
675
|
-
# },
|
676
|
-
# sriov_net_support: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
677
|
-
# ena_support: {
|
678
|
-
# value: false,
|
679
|
-
# },
|
679
|
+
# value: "String",
|
680
680
|
# })
|
681
681
|
# @param [Hash] options ({})
|
682
|
-
# @option options [
|
683
|
-
#
|
684
|
-
#
|
685
|
-
#
|
686
|
-
#
|
682
|
+
# @option options [Types::AttributeBooleanValue] :source_dest_check
|
683
|
+
# Specifies whether source/destination checking is enabled. A value of
|
684
|
+
# `true` means that checking is enabled, and `false` means checking is
|
685
|
+
# disabled. This value must be `false` for a NAT instance to perform
|
686
|
+
# NAT.
|
687
687
|
# @option options [String] :attribute
|
688
688
|
# The name of the attribute.
|
689
|
-
# @option options [String] :value
|
690
|
-
# A new value for the attribute. Use only with the `kernel`, `ramdisk`,
|
691
|
-
# `userData`, `disableApiTermination`, or
|
692
|
-
# `instanceInitiatedShutdownBehavior` attribute.
|
693
689
|
# @option options [Array<Types::InstanceBlockDeviceMappingSpecification>] :block_device_mappings
|
694
690
|
# Modifies the `DeleteOnTermination` attribute for volumes that are
|
695
691
|
# currently attached. The volume must be owned by the caller. If no
|
@@ -704,15 +700,35 @@ module Aws::EC2
|
|
704
700
|
#
|
705
701
|
#
|
706
702
|
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html#Using_OverridingAMIBDM
|
707
|
-
# @option options [Types::AttributeBooleanValue] :source_dest_check
|
708
|
-
# Specifies whether source/destination checking is enabled. A value of
|
709
|
-
# `true` means that checking is enabled, and `false` means checking is
|
710
|
-
# disabled. This value must be `false` for a NAT instance to perform
|
711
|
-
# NAT.
|
712
703
|
# @option options [Types::AttributeBooleanValue] :disable_api_termination
|
713
704
|
# If the value is `true`, you can't terminate the instance using the
|
714
705
|
# Amazon EC2 console, CLI, or API; otherwise, you can. You cannot use
|
715
706
|
# this paramater for Spot Instances.
|
707
|
+
# @option options [Boolean] :dry_run
|
708
|
+
# Checks whether you have the required permissions for the action,
|
709
|
+
# without actually making the request, and provides an error response.
|
710
|
+
# If you have the required permissions, the error response is
|
711
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
712
|
+
# @option options [Types::AttributeBooleanValue] :ebs_optimized
|
713
|
+
# Specifies whether the instance is optimized for EBS I/O. This
|
714
|
+
# optimization provides dedicated throughput to Amazon EBS and an
|
715
|
+
# optimized configuration stack to provide optimal EBS I/O performance.
|
716
|
+
# This optimization isn't available with all instance types. Additional
|
717
|
+
# usage charges apply when using an EBS Optimized instance.
|
718
|
+
# @option options [Types::AttributeBooleanValue] :ena_support
|
719
|
+
# Set to `true` to enable enhanced networking with ENA for the instance.
|
720
|
+
#
|
721
|
+
# This option is supported only for HVM instances. Specifying this
|
722
|
+
# option with a PV instance can make it unreachable.
|
723
|
+
# @option options [Array<String>] :groups
|
724
|
+
# \[EC2-VPC\] Changes the security groups of the instance. You must
|
725
|
+
# specify at least one security group, even if it's just the default
|
726
|
+
# security group for the VPC. You must specify the security group ID,
|
727
|
+
# not the security group name.
|
728
|
+
# @option options [Types::AttributeValue] :instance_initiated_shutdown_behavior
|
729
|
+
# Specifies whether an instance stops or terminates when you initiate
|
730
|
+
# shutdown from the instance (using the operating system command for
|
731
|
+
# system shutdown).
|
716
732
|
# @option options [Types::AttributeValue] :instance_type
|
717
733
|
# Changes the instance type to the specified value. For more
|
718
734
|
# information, see [Instance Types][1]. If the instance type is not
|
@@ -737,26 +753,6 @@ module Aws::EC2
|
|
737
753
|
#
|
738
754
|
#
|
739
755
|
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedKernels.html
|
740
|
-
# @option options [Types::BlobAttributeValue] :user_data
|
741
|
-
# Changes the instance's user data to the specified value. If you are
|
742
|
-
# using an AWS SDK or command line tool, Base64-encoding is performed
|
743
|
-
# for you, and you can load the text from a file. Otherwise, you must
|
744
|
-
# provide Base64-encoded text.
|
745
|
-
# @option options [Types::AttributeValue] :instance_initiated_shutdown_behavior
|
746
|
-
# Specifies whether an instance stops or terminates when you initiate
|
747
|
-
# shutdown from the instance (using the operating system command for
|
748
|
-
# system shutdown).
|
749
|
-
# @option options [Array<String>] :groups
|
750
|
-
# \[EC2-VPC\] Changes the security groups of the instance. You must
|
751
|
-
# specify at least one security group, even if it's just the default
|
752
|
-
# security group for the VPC. You must specify the security group ID,
|
753
|
-
# not the security group name.
|
754
|
-
# @option options [Types::AttributeBooleanValue] :ebs_optimized
|
755
|
-
# Specifies whether the instance is optimized for EBS I/O. This
|
756
|
-
# optimization provides dedicated throughput to Amazon EBS and an
|
757
|
-
# optimized configuration stack to provide optimal EBS I/O performance.
|
758
|
-
# This optimization isn't available with all instance types. Additional
|
759
|
-
# usage charges apply when using an EBS Optimized instance.
|
760
756
|
# @option options [Types::AttributeValue] :sriov_net_support
|
761
757
|
# Set to `simple` to enable enhanced networking with the Intel 82599
|
762
758
|
# Virtual Function interface for the instance.
|
@@ -766,11 +762,15 @@ module Aws::EC2
|
|
766
762
|
#
|
767
763
|
# This option is supported only for HVM instances. Specifying this
|
768
764
|
# option with a PV instance can make it unreachable.
|
769
|
-
# @option options [Types::
|
770
|
-
#
|
771
|
-
#
|
772
|
-
#
|
773
|
-
#
|
765
|
+
# @option options [Types::BlobAttributeValue] :user_data
|
766
|
+
# Changes the instance's user data to the specified value. If you are
|
767
|
+
# using an AWS SDK or command line tool, Base64-encoding is performed
|
768
|
+
# for you, and you can load the text from a file. Otherwise, you must
|
769
|
+
# provide Base64-encoded text.
|
770
|
+
# @option options [String] :value
|
771
|
+
# A new value for the attribute. Use only with the `kernel`, `ramdisk`,
|
772
|
+
# `userData`, `disableApiTermination`, or
|
773
|
+
# `instanceInitiatedShutdownBehavior` attribute.
|
774
774
|
# @return [EmptyStructure]
|
775
775
|
def modify_attribute(options = {})
|
776
776
|
options = options.merge(instance_id: @id)
|
@@ -835,23 +835,21 @@ module Aws::EC2
|
|
835
835
|
# @example Request syntax with placeholder values
|
836
836
|
#
|
837
837
|
# instance.report_status({
|
838
|
+
# description: "String",
|
838
839
|
# dry_run: false,
|
839
|
-
# status: "ok", # required, accepts ok, impaired
|
840
|
-
# start_time: Time.now,
|
841
840
|
# end_time: Time.now,
|
842
841
|
# reason_codes: ["instance-stuck-in-state"], # required, accepts instance-stuck-in-state, unresponsive, not-accepting-credentials, password-not-available, performance-network, performance-instance-store, performance-ebs-volume, performance-other, other
|
843
|
-
#
|
842
|
+
# start_time: Time.now,
|
843
|
+
# status: "ok", # required, accepts ok, impaired
|
844
844
|
# })
|
845
845
|
# @param [Hash] options ({})
|
846
|
+
# @option options [String] :description
|
847
|
+
# Descriptive text about the health state of your instance.
|
846
848
|
# @option options [Boolean] :dry_run
|
847
849
|
# Checks whether you have the required permissions for the action,
|
848
850
|
# without actually making the request, and provides an error response.
|
849
851
|
# If you have the required permissions, the error response is
|
850
852
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
851
|
-
# @option options [required, String] :status
|
852
|
-
# The status of all instances listed.
|
853
|
-
# @option options [Time,DateTime,Date,Integer,String] :start_time
|
854
|
-
# The time at which the reported instance health state began.
|
855
853
|
# @option options [Time,DateTime,Date,Integer,String] :end_time
|
856
854
|
# The time at which the reported instance health state ended.
|
857
855
|
# @option options [required, Array<String>] :reason_codes
|
@@ -882,8 +880,10 @@ module Aws::EC2
|
|
882
880
|
# problems.
|
883
881
|
#
|
884
882
|
# * `other`\: \[explain using the description parameter\]
|
885
|
-
# @option options [String] :
|
886
|
-
#
|
883
|
+
# @option options [Time,DateTime,Date,Integer,String] :start_time
|
884
|
+
# The time at which the reported instance health state began.
|
885
|
+
# @option options [required, String] :status
|
886
|
+
# The status of all instances listed.
|
887
887
|
# @return [EmptyStructure]
|
888
888
|
def report_status(options = {})
|
889
889
|
options = Aws::Util.deep_merge(options, instances: [@id])
|
@@ -894,21 +894,21 @@ module Aws::EC2
|
|
894
894
|
# @example Request syntax with placeholder values
|
895
895
|
#
|
896
896
|
# instance.reset_attribute({
|
897
|
-
# dry_run: false,
|
898
897
|
# attribute: "instanceType", # required, accepts instanceType, kernel, ramdisk, userData, disableApiTermination, instanceInitiatedShutdownBehavior, rootDeviceName, blockDeviceMapping, productCodes, sourceDestCheck, groupSet, ebsOptimized, sriovNetSupport, enaSupport
|
898
|
+
# dry_run: false,
|
899
899
|
# })
|
900
900
|
# @param [Hash] options ({})
|
901
|
-
# @option options [Boolean] :dry_run
|
902
|
-
# Checks whether you have the required permissions for the action,
|
903
|
-
# without actually making the request, and provides an error response.
|
904
|
-
# If you have the required permissions, the error response is
|
905
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
906
901
|
# @option options [required, String] :attribute
|
907
902
|
# The attribute to reset.
|
908
903
|
#
|
909
904
|
# You can only reset the following attributes: `kernel` \| `ramdisk` \|
|
910
905
|
# `sourceDestCheck`. To change an instance attribute, use
|
911
906
|
# ModifyInstanceAttribute.
|
907
|
+
# @option options [Boolean] :dry_run
|
908
|
+
# Checks whether you have the required permissions for the action,
|
909
|
+
# without actually making the request, and provides an error response.
|
910
|
+
# If you have the required permissions, the error response is
|
911
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
912
912
|
# @return [EmptyStructure]
|
913
913
|
def reset_attribute(options = {})
|
914
914
|
options = options.merge(instance_id: @id)
|
@@ -1140,23 +1140,16 @@ module Aws::EC2
|
|
1140
1140
|
# @example Request syntax with placeholder values
|
1141
1141
|
#
|
1142
1142
|
# volumes = instance.volumes({
|
1143
|
-
# dry_run: false,
|
1144
|
-
# volume_ids: ["String"],
|
1145
1143
|
# filters: [
|
1146
1144
|
# {
|
1147
1145
|
# name: "String",
|
1148
1146
|
# values: ["String"],
|
1149
1147
|
# },
|
1150
1148
|
# ],
|
1149
|
+
# volume_ids: ["String"],
|
1150
|
+
# dry_run: false,
|
1151
1151
|
# })
|
1152
1152
|
# @param [Hash] options ({})
|
1153
|
-
# @option options [Boolean] :dry_run
|
1154
|
-
# Checks whether you have the required permissions for the action,
|
1155
|
-
# without actually making the request, and provides an error response.
|
1156
|
-
# If you have the required permissions, the error response is
|
1157
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1158
|
-
# @option options [Array<String>] :volume_ids
|
1159
|
-
# One or more volume IDs.
|
1160
1153
|
# @option options [Array<Types::Filter>] :filters
|
1161
1154
|
# One or more filters.
|
1162
1155
|
#
|
@@ -1212,6 +1205,13 @@ module Aws::EC2
|
|
1212
1205
|
# General Purpose SSD, `io1` for Provisioned IOPS SSD, `st1` for
|
1213
1206
|
# Throughput Optimized HDD, `sc1` for Cold HDD, or `standard` for
|
1214
1207
|
# Magnetic volumes.
|
1208
|
+
# @option options [Array<String>] :volume_ids
|
1209
|
+
# One or more volume IDs.
|
1210
|
+
# @option options [Boolean] :dry_run
|
1211
|
+
# Checks whether you have the required permissions for the action,
|
1212
|
+
# without actually making the request, and provides an error response.
|
1213
|
+
# If you have the required permissions, the error response is
|
1214
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1215
1215
|
# @return [Volume::Collection]
|
1216
1216
|
def volumes(options = {})
|
1217
1217
|
batches = Enumerator.new do |y|
|
@@ -1250,26 +1250,17 @@ module Aws::EC2
|
|
1250
1250
|
# @example Request syntax with placeholder values
|
1251
1251
|
#
|
1252
1252
|
# vpc_addresses = instance.vpc_addresses({
|
1253
|
-
# dry_run: false,
|
1254
|
-
# public_ips: ["String"],
|
1255
1253
|
# filters: [
|
1256
1254
|
# {
|
1257
1255
|
# name: "String",
|
1258
1256
|
# values: ["String"],
|
1259
1257
|
# },
|
1260
1258
|
# ],
|
1259
|
+
# public_ips: ["String"],
|
1261
1260
|
# allocation_ids: ["String"],
|
1261
|
+
# dry_run: false,
|
1262
1262
|
# })
|
1263
1263
|
# @param [Hash] options ({})
|
1264
|
-
# @option options [Boolean] :dry_run
|
1265
|
-
# Checks whether you have the required permissions for the action,
|
1266
|
-
# without actually making the request, and provides an error response.
|
1267
|
-
# If you have the required permissions, the error response is
|
1268
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1269
|
-
# @option options [Array<String>] :public_ips
|
1270
|
-
# \[EC2-Classic\] One or more Elastic IP addresses.
|
1271
|
-
#
|
1272
|
-
# Default: Describes all your Elastic IP addresses.
|
1273
1264
|
# @option options [Array<Types::Filter>] :filters
|
1274
1265
|
# One or more filters. Filter names and values are case-sensitive.
|
1275
1266
|
#
|
@@ -1292,10 +1283,19 @@ module Aws::EC2
|
|
1292
1283
|
# with the Elastic IP address.
|
1293
1284
|
#
|
1294
1285
|
# * `public-ip` - The Elastic IP address.
|
1286
|
+
# @option options [Array<String>] :public_ips
|
1287
|
+
# \[EC2-Classic\] One or more Elastic IP addresses.
|
1288
|
+
#
|
1289
|
+
# Default: Describes all your Elastic IP addresses.
|
1295
1290
|
# @option options [Array<String>] :allocation_ids
|
1296
1291
|
# \[EC2-VPC\] One or more allocation IDs.
|
1297
1292
|
#
|
1298
1293
|
# Default: Describes all your Elastic IP addresses.
|
1294
|
+
# @option options [Boolean] :dry_run
|
1295
|
+
# Checks whether you have the required permissions for the action,
|
1296
|
+
# without actually making the request, and provides an error response.
|
1297
|
+
# If you have the required permissions, the error response is
|
1298
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1299
1299
|
# @return [VpcAddress::Collection]
|
1300
1300
|
def vpc_addresses(options = {})
|
1301
1301
|
batches = Enumerator.new do |y|
|