aws-sdk-ec2 1.0.0.rc7 → 1.0.0.rc8
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -30,11 +30,10 @@ module Aws::EC2
|
|
30
30
|
@id
|
31
31
|
end
|
32
32
|
|
33
|
-
# The
|
34
|
-
# interface.
|
33
|
+
# The ID of the owner of the Elastic IP address.
|
35
34
|
# @return [String]
|
36
|
-
def
|
37
|
-
data.
|
35
|
+
def ip_owner_id
|
36
|
+
data.ip_owner_id
|
38
37
|
end
|
39
38
|
|
40
39
|
# The public DNS name.
|
@@ -43,10 +42,11 @@ module Aws::EC2
|
|
43
42
|
data.public_dns_name
|
44
43
|
end
|
45
44
|
|
46
|
-
# The
|
45
|
+
# The public IP address or Elastic IP address bound to the network
|
46
|
+
# interface.
|
47
47
|
# @return [String]
|
48
|
-
def
|
49
|
-
data.
|
48
|
+
def public_ip
|
49
|
+
data.public_ip
|
50
50
|
end
|
51
51
|
|
52
52
|
# @!endgroup
|
@@ -92,17 +92,17 @@ module Aws::EC2
|
|
92
92
|
# @example Request syntax with placeholder values
|
93
93
|
#
|
94
94
|
# network_interface_association.delete({
|
95
|
-
# dry_run: false,
|
96
95
|
# public_ip: "String",
|
96
|
+
# dry_run: false,
|
97
97
|
# })
|
98
98
|
# @param [Hash] options ({})
|
99
|
+
# @option options [String] :public_ip
|
100
|
+
# \[EC2-Classic\] The Elastic IP address. Required for EC2-Classic.
|
99
101
|
# @option options [Boolean] :dry_run
|
100
102
|
# Checks whether you have the required permissions for the action,
|
101
103
|
# without actually making the request, and provides an error response.
|
102
104
|
# If you have the required permissions, the error response is
|
103
105
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
104
|
-
# @option options [String] :public_ip
|
105
|
-
# \[EC2-Classic\] The Elastic IP address. Required for EC2-Classic.
|
106
106
|
# @return [EmptyStructure]
|
107
107
|
def delete(options = {})
|
108
108
|
options = options.merge(association_id: @id)
|
@@ -31,18 +31,18 @@ module Aws::EC2
|
|
31
31
|
end
|
32
32
|
alias :group_name :name
|
33
33
|
|
34
|
-
# The placement strategy.
|
35
|
-
# @return [String]
|
36
|
-
def strategy
|
37
|
-
data.strategy
|
38
|
-
end
|
39
|
-
|
40
34
|
# The state of the placement group.
|
41
35
|
# @return [String]
|
42
36
|
def state
|
43
37
|
data.state
|
44
38
|
end
|
45
39
|
|
40
|
+
# The placement strategy.
|
41
|
+
# @return [String]
|
42
|
+
def strategy
|
43
|
+
data.strategy
|
44
|
+
end
|
45
|
+
|
46
46
|
# @!endgroup
|
47
47
|
|
48
48
|
# @return [Client]
|
@@ -103,25 +103,16 @@ module Aws::EC2
|
|
103
103
|
# @example Request syntax with placeholder values
|
104
104
|
#
|
105
105
|
# instances = placement_group.instances({
|
106
|
-
# dry_run: false,
|
107
|
-
# instance_ids: ["String"],
|
108
106
|
# filters: [
|
109
107
|
# {
|
110
108
|
# name: "String",
|
111
109
|
# values: ["String"],
|
112
110
|
# },
|
113
111
|
# ],
|
112
|
+
# instance_ids: ["String"],
|
113
|
+
# dry_run: false,
|
114
114
|
# })
|
115
115
|
# @param [Hash] options ({})
|
116
|
-
# @option options [Boolean] :dry_run
|
117
|
-
# Checks whether you have the required permissions for the action,
|
118
|
-
# without actually making the request, and provides an error response.
|
119
|
-
# If you have the required permissions, the error response is
|
120
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
121
|
-
# @option options [Array<String>] :instance_ids
|
122
|
-
# One or more instance IDs.
|
123
|
-
#
|
124
|
-
# Default: Describes all your instances.
|
125
116
|
# @option options [Array<Types::Filter>] :filters
|
126
117
|
# One or more filters.
|
127
118
|
#
|
@@ -384,6 +375,15 @@ module Aws::EC2
|
|
384
375
|
# (`paravirtual` \| `hvm`).
|
385
376
|
#
|
386
377
|
# * `vpc-id` - The ID of the VPC that the instance is running in.
|
378
|
+
# @option options [Array<String>] :instance_ids
|
379
|
+
# One or more instance IDs.
|
380
|
+
#
|
381
|
+
# Default: Describes all your instances.
|
382
|
+
# @option options [Boolean] :dry_run
|
383
|
+
# Checks whether you have the required permissions for the action,
|
384
|
+
# without actually making the request, and provides an error response.
|
385
|
+
# If you have the required permissions, the error response is
|
386
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
387
387
|
# @return [Instance::Collection]
|
388
388
|
def instances(options = {})
|
389
389
|
batches = Enumerator.new do |y|
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -24,22 +24,22 @@ module Aws::EC2
|
|
24
24
|
# @example Request syntax with placeholder values
|
25
25
|
#
|
26
26
|
# dhcpoptions = ec2.create_dhcp_options({
|
27
|
-
# dry_run: false,
|
28
27
|
# dhcp_configurations: [ # required
|
29
28
|
# {
|
30
29
|
# key: "String",
|
31
30
|
# values: ["String"],
|
32
31
|
# },
|
33
32
|
# ],
|
33
|
+
# dry_run: false,
|
34
34
|
# })
|
35
35
|
# @param [Hash] options ({})
|
36
|
+
# @option options [required, Array<Types::NewDhcpConfiguration>] :dhcp_configurations
|
37
|
+
# A DHCP configuration option.
|
36
38
|
# @option options [Boolean] :dry_run
|
37
39
|
# Checks whether you have the required permissions for the action,
|
38
40
|
# without actually making the request, and provides an error response.
|
39
41
|
# If you have the required permissions, the error response is
|
40
42
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
41
|
-
# @option options [required, Array<Types::NewDhcpConfiguration>] :dhcp_configurations
|
42
|
-
# A DHCP configuration option.
|
43
43
|
# @return [DhcpOptions]
|
44
44
|
def create_dhcp_options(options = {})
|
45
45
|
resp = @client.create_dhcp_options(options)
|
@@ -53,84 +53,85 @@ module Aws::EC2
|
|
53
53
|
# @example Request syntax with placeholder values
|
54
54
|
#
|
55
55
|
# instance = ec2.create_instances({
|
56
|
-
# dry_run: false,
|
57
|
-
# image_id: "String", # required
|
58
|
-
# min_count: 1, # required
|
59
|
-
# max_count: 1, # required
|
60
|
-
# key_name: "String",
|
61
|
-
# security_groups: ["String"],
|
62
|
-
# security_group_ids: ["String"],
|
63
|
-
# user_data: "String",
|
64
|
-
# instance_type: "t1.micro", # accepts t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, t2.xlarge, t2.2xlarge, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m4.16xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, r4.large, r4.xlarge, r4.2xlarge, r4.4xlarge, r4.8xlarge, r4.16xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, i3.large, i3.xlarge, i3.2xlarge, i3.4xlarge, i3.8xlarge, i3.16xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, p2.xlarge, p2.8xlarge, p2.16xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge, f1.2xlarge, f1.16xlarge
|
65
|
-
# placement: {
|
66
|
-
# availability_zone: "String",
|
67
|
-
# group_name: "String",
|
68
|
-
# tenancy: "default", # accepts default, dedicated, host
|
69
|
-
# host_id: "String",
|
70
|
-
# affinity: "String",
|
71
|
-
# },
|
72
|
-
# kernel_id: "String",
|
73
|
-
# ramdisk_id: "String",
|
74
56
|
# block_device_mappings: [
|
75
57
|
# {
|
76
|
-
# virtual_name: "String",
|
77
58
|
# device_name: "String",
|
59
|
+
# virtual_name: "String",
|
78
60
|
# ebs: {
|
61
|
+
# encrypted: false,
|
62
|
+
# delete_on_termination: false,
|
63
|
+
# iops: 1,
|
79
64
|
# snapshot_id: "String",
|
80
65
|
# volume_size: 1,
|
81
|
-
# delete_on_termination: false,
|
82
66
|
# volume_type: "standard", # accepts standard, io1, gp2, sc1, st1
|
83
|
-
# iops: 1,
|
84
|
-
# encrypted: false,
|
85
67
|
# },
|
86
68
|
# no_device: "String",
|
87
69
|
# },
|
88
70
|
# ],
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# subnet_id: "String",
|
93
|
-
# disable_api_termination: false,
|
94
|
-
# instance_initiated_shutdown_behavior: "stop", # accepts stop, terminate
|
95
|
-
# private_ip_address: "String",
|
71
|
+
# image_id: "String", # required
|
72
|
+
# instance_type: "t1.micro", # accepts t1.micro, t2.nano, t2.micro, t2.small, t2.medium, t2.large, t2.xlarge, t2.2xlarge, m1.small, m1.medium, m1.large, m1.xlarge, m3.medium, m3.large, m3.xlarge, m3.2xlarge, m4.large, m4.xlarge, m4.2xlarge, m4.4xlarge, m4.10xlarge, m4.16xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, cr1.8xlarge, r3.large, r3.xlarge, r3.2xlarge, r3.4xlarge, r3.8xlarge, r4.large, r4.xlarge, r4.2xlarge, r4.4xlarge, r4.8xlarge, r4.16xlarge, x1.16xlarge, x1.32xlarge, i2.xlarge, i2.2xlarge, i2.4xlarge, i2.8xlarge, i3.large, i3.xlarge, i3.2xlarge, i3.4xlarge, i3.8xlarge, i3.16xlarge, hi1.4xlarge, hs1.8xlarge, c1.medium, c1.xlarge, c3.large, c3.xlarge, c3.2xlarge, c3.4xlarge, c3.8xlarge, c4.large, c4.xlarge, c4.2xlarge, c4.4xlarge, c4.8xlarge, cc1.4xlarge, cc2.8xlarge, g2.2xlarge, g2.8xlarge, cg1.4xlarge, p2.xlarge, p2.8xlarge, p2.16xlarge, d2.xlarge, d2.2xlarge, d2.4xlarge, d2.8xlarge, f1.2xlarge, f1.16xlarge
|
73
|
+
# ipv_6_address_count: 1,
|
96
74
|
# ipv_6_addresses: [
|
97
75
|
# {
|
98
76
|
# ipv_6_address: "String",
|
99
77
|
# },
|
100
78
|
# ],
|
101
|
-
#
|
102
|
-
#
|
79
|
+
# kernel_id: "String",
|
80
|
+
# key_name: "String",
|
81
|
+
# max_count: 1, # required
|
82
|
+
# min_count: 1, # required
|
83
|
+
# monitoring: {
|
84
|
+
# enabled: false, # required
|
85
|
+
# },
|
86
|
+
# placement: {
|
87
|
+
# availability_zone: "String",
|
88
|
+
# affinity: "String",
|
89
|
+
# group_name: "String",
|
90
|
+
# host_id: "String",
|
91
|
+
# tenancy: "default", # accepts default, dedicated, host
|
92
|
+
# spread_domain: "String",
|
93
|
+
# },
|
94
|
+
# ramdisk_id: "String",
|
95
|
+
# security_group_ids: ["String"],
|
96
|
+
# security_groups: ["String"],
|
97
|
+
# subnet_id: "String",
|
98
|
+
# user_data: "String",
|
103
99
|
# additional_info: "String",
|
100
|
+
# client_token: "String",
|
101
|
+
# disable_api_termination: false,
|
102
|
+
# dry_run: false,
|
103
|
+
# ebs_optimized: false,
|
104
|
+
# iam_instance_profile: {
|
105
|
+
# arn: "String",
|
106
|
+
# name: "String",
|
107
|
+
# },
|
108
|
+
# instance_initiated_shutdown_behavior: "stop", # accepts stop, terminate
|
104
109
|
# network_interfaces: [
|
105
110
|
# {
|
106
|
-
#
|
107
|
-
#
|
108
|
-
# subnet_id: "String",
|
111
|
+
# associate_public_ip_address: false,
|
112
|
+
# delete_on_termination: false,
|
109
113
|
# description: "String",
|
110
|
-
#
|
114
|
+
# device_index: 1,
|
111
115
|
# groups: ["String"],
|
112
|
-
#
|
113
|
-
#
|
116
|
+
# ipv_6_address_count: 1,
|
117
|
+
# ipv_6_addresses: [
|
114
118
|
# {
|
115
|
-
#
|
116
|
-
# primary: false,
|
119
|
+
# ipv_6_address: "String",
|
117
120
|
# },
|
118
121
|
# ],
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
+
# network_interface_id: "String",
|
123
|
+
# private_ip_address: "String",
|
124
|
+
# private_ip_addresses: [
|
122
125
|
# {
|
123
|
-
#
|
126
|
+
# primary: false,
|
127
|
+
# private_ip_address: "String", # required
|
124
128
|
# },
|
125
129
|
# ],
|
126
|
-
#
|
130
|
+
# secondary_private_ip_address_count: 1,
|
131
|
+
# subnet_id: "String",
|
127
132
|
# },
|
128
133
|
# ],
|
129
|
-
#
|
130
|
-
# arn: "String",
|
131
|
-
# name: "String",
|
132
|
-
# },
|
133
|
-
# ebs_optimized: false,
|
134
|
+
# private_ip_address: "String",
|
134
135
|
# tag_specifications: [
|
135
136
|
# {
|
136
137
|
# resource_type: "customer-gateway", # accepts customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
|
@@ -144,40 +145,49 @@ module Aws::EC2
|
|
144
145
|
# ],
|
145
146
|
# })
|
146
147
|
# @param [Hash] options ({})
|
147
|
-
# @option options [
|
148
|
-
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
#
|
148
|
+
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
149
|
+
# The block device mapping.
|
150
|
+
#
|
151
|
+
# Supplying both a snapshot ID and an encryption value as arguments for
|
152
|
+
# block-device mapping results in an error. This is because only blank
|
153
|
+
# volumes can be encrypted on start, and these are not created from a
|
154
|
+
# snapshot. If a snapshot is the basis for the volume, it contains data
|
155
|
+
# by definition and its encryption status cannot be changed using this
|
156
|
+
# action.
|
152
157
|
# @option options [required, String] :image_id
|
153
158
|
# The ID of the AMI, which you can get by calling DescribeImages.
|
154
|
-
# @option options [
|
155
|
-
# The
|
156
|
-
#
|
157
|
-
# Availability Zone, Amazon EC2 launches no instances.
|
159
|
+
# @option options [String] :instance_type
|
160
|
+
# The instance type. For more information, see [Instance Types][1] in
|
161
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
158
162
|
#
|
159
|
-
#
|
160
|
-
# specified instance type. For more information about the default
|
161
|
-
# limits, and how to request an increase, see [How many instances can I
|
162
|
-
# run in Amazon EC2][1] in the Amazon EC2 General FAQ.
|
163
|
+
# Default: `m1.small`
|
163
164
|
#
|
164
165
|
#
|
165
166
|
#
|
166
|
-
# [1]: http://aws.amazon.com/
|
167
|
-
# @option options [
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
#
|
167
|
+
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html
|
168
|
+
# @option options [Integer] :ipv_6_address_count
|
169
|
+
# \[EC2-VPC\] A number of IPv6 addresses to associate with the primary
|
170
|
+
# network interface. Amazon EC2 chooses the IPv6 addresses from the
|
171
|
+
# range of your subnet. You cannot specify this option and the option to
|
172
|
+
# assign specific IPv6 addresses in the same request. You can specify
|
173
|
+
# this option if you've specified a minimum number of instances to
|
174
|
+
# launch.
|
175
|
+
# @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
176
|
+
# \[EC2-VPC\] Specify one or more IPv6 addresses from the range of the
|
177
|
+
# subnet to associate with the primary network interface. You cannot
|
178
|
+
# specify this option and the option to assign a number of IPv6
|
179
|
+
# addresses in the same request. You cannot specify this option if
|
180
|
+
# you've specified a minimum number of instances to launch.
|
181
|
+
# @option options [String] :kernel_id
|
182
|
+
# The ID of the kernel.
|
172
183
|
#
|
173
|
-
#
|
174
|
-
#
|
175
|
-
#
|
176
|
-
# run in Amazon EC2][1] in the Amazon EC2 FAQ.
|
184
|
+
# We recommend that you use PV-GRUB instead of kernels and RAM disks.
|
185
|
+
# For more information, see [ PV-GRUB][1] in the *Amazon Elastic Compute
|
186
|
+
# Cloud User Guide*.
|
177
187
|
#
|
178
188
|
#
|
179
189
|
#
|
180
|
-
# [1]: http://aws.amazon.com/
|
190
|
+
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
|
181
191
|
# @option options [String] :key_name
|
182
192
|
# The name of the key pair. You can create a key pair using
|
183
193
|
# CreateKeyPair or ImportKeyPair.
|
@@ -185,49 +195,37 @@ module Aws::EC2
|
|
185
195
|
# If you do not specify a key pair, you can't connect to the instance
|
186
196
|
# unless you choose an AMI that is configured to allow users another way
|
187
197
|
# to log in.
|
188
|
-
# @option options [
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
193
|
-
# @option options [Array<String>] :security_group_ids
|
194
|
-
# One or more security group IDs. You can create a security group using
|
195
|
-
# CreateSecurityGroup.
|
198
|
+
# @option options [required, Integer] :max_count
|
199
|
+
# The maximum number of instances to launch. If you specify more
|
200
|
+
# instances than Amazon EC2 can launch in the target Availability Zone,
|
201
|
+
# Amazon EC2 launches the largest possible number of instances above
|
202
|
+
# `MinCount`.
|
196
203
|
#
|
197
|
-
#
|
198
|
-
#
|
199
|
-
#
|
200
|
-
#
|
201
|
-
# [Adding User Data][2] (Windows). If you are using an AWS SDK or
|
202
|
-
# command line tool, Base64-encoding is performed for you, and you can
|
203
|
-
# load the text from a file. Otherwise, you must provide Base64-encoded
|
204
|
-
# text.
|
204
|
+
# Constraints: Between 1 and the maximum number you're allowed for the
|
205
|
+
# specified instance type. For more information about the default
|
206
|
+
# limits, and how to request an increase, see [How many instances can I
|
207
|
+
# run in Amazon EC2][1] in the Amazon EC2 FAQ.
|
205
208
|
#
|
206
209
|
#
|
207
210
|
#
|
208
|
-
# [1]: http://
|
209
|
-
#
|
210
|
-
#
|
211
|
-
#
|
212
|
-
#
|
211
|
+
# [1]: http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2
|
212
|
+
# @option options [required, Integer] :min_count
|
213
|
+
# The minimum number of instances to launch. If you specify a minimum
|
214
|
+
# that is more instances than Amazon EC2 can launch in the target
|
215
|
+
# Availability Zone, Amazon EC2 launches no instances.
|
213
216
|
#
|
214
|
-
#
|
217
|
+
# Constraints: Between 1 and the maximum number you're allowed for the
|
218
|
+
# specified instance type. For more information about the default
|
219
|
+
# limits, and how to request an increase, see [How many instances can I
|
220
|
+
# run in Amazon EC2][1] in the Amazon EC2 General FAQ.
|
215
221
|
#
|
216
222
|
#
|
217
223
|
#
|
218
|
-
# [1]: http://
|
224
|
+
# [1]: http://aws.amazon.com/ec2/faqs/#How_many_instances_can_I_run_in_Amazon_EC2
|
225
|
+
# @option options [Types::RunInstancesMonitoringEnabled] :monitoring
|
226
|
+
# The monitoring for the instance.
|
219
227
|
# @option options [Types::Placement] :placement
|
220
228
|
# The placement for the instance.
|
221
|
-
# @option options [String] :kernel_id
|
222
|
-
# The ID of the kernel.
|
223
|
-
#
|
224
|
-
# We recommend that you use PV-GRUB instead of kernels and RAM disks.
|
225
|
-
# For more information, see [ PV-GRUB][1] in the *Amazon Elastic Compute
|
226
|
-
# Cloud User Guide*.
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
|
231
229
|
# @option options [String] :ramdisk_id
|
232
230
|
# The ID of the RAM disk.
|
233
231
|
#
|
@@ -238,56 +236,32 @@ module Aws::EC2
|
|
238
236
|
#
|
239
237
|
#
|
240
238
|
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/UserProvidedkernels.html
|
241
|
-
# @option options [Array<
|
242
|
-
#
|
239
|
+
# @option options [Array<String>] :security_group_ids
|
240
|
+
# One or more security group IDs. You can create a security group using
|
241
|
+
# CreateSecurityGroup.
|
243
242
|
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
# @option options [Types::RunInstancesMonitoringEnabled] :monitoring
|
251
|
-
# The monitoring for the instance.
|
243
|
+
# Default: Amazon EC2 uses the default security group.
|
244
|
+
# @option options [Array<String>] :security_groups
|
245
|
+
# \[EC2-Classic, default VPC\] One or more security group names. For a
|
246
|
+
# nondefault VPC, you must use security group IDs instead.
|
247
|
+
#
|
248
|
+
# Default: Amazon EC2 uses the default security group.
|
252
249
|
# @option options [String] :subnet_id
|
253
250
|
# \[EC2-VPC\] The ID of the subnet to launch the instance into.
|
254
|
-
# @option options [
|
255
|
-
#
|
256
|
-
#
|
257
|
-
#
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
251
|
+
# @option options [String] :user_data
|
252
|
+
# The user data to make available to the instance. For more information,
|
253
|
+
# see [Running Commands on Your Linux Instance at Launch][1] (Linux) and
|
254
|
+
# [Adding User Data][2] (Windows). If you are using an AWS SDK or
|
255
|
+
# command line tool, Base64-encoding is performed for you, and you can
|
256
|
+
# load the text from a file. Otherwise, you must provide Base64-encoded
|
257
|
+
# text.
|
261
258
|
#
|
262
|
-
# Default: `false`
|
263
|
-
# @option options [String] :instance_initiated_shutdown_behavior
|
264
|
-
# Indicates whether an instance stops or terminates when you initiate
|
265
|
-
# shutdown from the instance (using the operating system command for
|
266
|
-
# system shutdown).
|
267
259
|
#
|
268
|
-
# Default: `stop`
|
269
|
-
# @option options [String] :private_ip_address
|
270
|
-
# \[EC2-VPC\] The primary IPv4 address. You must specify a value from
|
271
|
-
# the IPv4 address range of the subnet.
|
272
260
|
#
|
273
|
-
#
|
274
|
-
#
|
275
|
-
#
|
276
|
-
#
|
277
|
-
# more than one instance in the request.
|
278
|
-
# @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
279
|
-
# \[EC2-VPC\] Specify one or more IPv6 addresses from the range of the
|
280
|
-
# subnet to associate with the primary network interface. You cannot
|
281
|
-
# specify this option and the option to assign a number of IPv6
|
282
|
-
# addresses in the same request. You cannot specify this option if
|
283
|
-
# you've specified a minimum number of instances to launch.
|
284
|
-
# @option options [Integer] :ipv_6_address_count
|
285
|
-
# \[EC2-VPC\] A number of IPv6 addresses to associate with the primary
|
286
|
-
# network interface. Amazon EC2 chooses the IPv6 addresses from the
|
287
|
-
# range of your subnet. You cannot specify this option and the option to
|
288
|
-
# assign specific IPv6 addresses in the same request. You can specify
|
289
|
-
# this option if you've specified a minimum number of instances to
|
290
|
-
# launch.
|
261
|
+
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
262
|
+
# [2]: http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html#instancedata-add-user-data
|
263
|
+
# @option options [String] :additional_info
|
264
|
+
# Reserved.
|
291
265
|
# @option options [String] :client_token
|
292
266
|
# Unique, case-sensitive identifier you provide to ensure the
|
293
267
|
# idempotency of the request. For more information, see [Ensuring
|
@@ -297,13 +271,21 @@ module Aws::EC2
|
|
297
271
|
#
|
298
272
|
#
|
299
273
|
#
|
300
|
-
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
301
|
-
# @option options [
|
302
|
-
#
|
303
|
-
#
|
304
|
-
#
|
305
|
-
#
|
306
|
-
#
|
274
|
+
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
275
|
+
# @option options [Boolean] :disable_api_termination
|
276
|
+
# If you set this parameter to `true`, you can't terminate the instance
|
277
|
+
# using the Amazon EC2 console, CLI, or API; otherwise, you can. To
|
278
|
+
# change this attribute to `false` after launch, use
|
279
|
+
# ModifyInstanceAttribute. Alternatively, if you set
|
280
|
+
# `InstanceInitiatedShutdownBehavior` to `terminate`, you can terminate
|
281
|
+
# the instance by running the shutdown command from the instance.
|
282
|
+
#
|
283
|
+
# Default: `false`
|
284
|
+
# @option options [Boolean] :dry_run
|
285
|
+
# Checks whether you have the required permissions for the action,
|
286
|
+
# without actually making the request, and provides an error response.
|
287
|
+
# If you have the required permissions, the error response is
|
288
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
307
289
|
# @option options [Boolean] :ebs_optimized
|
308
290
|
# Indicates whether the instance is optimized for EBS I/O. This
|
309
291
|
# optimization provides dedicated throughput to Amazon EBS and an
|
@@ -312,6 +294,25 @@ module Aws::EC2
|
|
312
294
|
# usage charges apply when using an EBS-optimized instance.
|
313
295
|
#
|
314
296
|
# Default: `false`
|
297
|
+
# @option options [Types::IamInstanceProfileSpecification] :iam_instance_profile
|
298
|
+
# The IAM instance profile.
|
299
|
+
# @option options [String] :instance_initiated_shutdown_behavior
|
300
|
+
# Indicates whether an instance stops or terminates when you initiate
|
301
|
+
# shutdown from the instance (using the operating system command for
|
302
|
+
# system shutdown).
|
303
|
+
#
|
304
|
+
# Default: `stop`
|
305
|
+
# @option options [Array<Types::InstanceNetworkInterfaceSpecification>] :network_interfaces
|
306
|
+
# One or more network interfaces.
|
307
|
+
# @option options [String] :private_ip_address
|
308
|
+
# \[EC2-VPC\] The primary IPv4 address. You must specify a value from
|
309
|
+
# the IPv4 address range of the subnet.
|
310
|
+
#
|
311
|
+
# Only one private IP address can be designated as primary. You can't
|
312
|
+
# specify this option if you've specified the option to designate a
|
313
|
+
# private IP address as the primary IP address in a network interface
|
314
|
+
# specification. You cannot specify this option if you're launching
|
315
|
+
# more than one instance in the request.
|
315
316
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
316
317
|
# The tags to apply to the resources during launch. You can tag
|
317
318
|
# instances and volumes. The specified tags are applied to all instances
|
@@ -354,19 +355,19 @@ module Aws::EC2
|
|
354
355
|
# @example Request syntax with placeholder values
|
355
356
|
#
|
356
357
|
# keypair = ec2.create_key_pair({
|
357
|
-
# dry_run: false,
|
358
358
|
# key_name: "String", # required
|
359
|
+
# dry_run: false,
|
359
360
|
# })
|
360
361
|
# @param [Hash] options ({})
|
362
|
+
# @option options [required, String] :key_name
|
363
|
+
# A unique name for the key pair.
|
364
|
+
#
|
365
|
+
# Constraints: Up to 255 ASCII characters
|
361
366
|
# @option options [Boolean] :dry_run
|
362
367
|
# Checks whether you have the required permissions for the action,
|
363
368
|
# without actually making the request, and provides an error response.
|
364
369
|
# If you have the required permissions, the error response is
|
365
370
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
366
|
-
# @option options [required, String] :key_name
|
367
|
-
# A unique name for the key pair.
|
368
|
-
#
|
369
|
-
# Constraints: Up to 255 ASCII characters
|
370
371
|
# @return [KeyPair]
|
371
372
|
def create_key_pair(options = {})
|
372
373
|
resp = @client.create_key_pair(options)
|
@@ -404,38 +405,51 @@ module Aws::EC2
|
|
404
405
|
# @example Request syntax with placeholder values
|
405
406
|
#
|
406
407
|
# networkinterface = ec2.create_network_interface({
|
407
|
-
# subnet_id: "String", # required
|
408
408
|
# description: "String",
|
409
|
-
#
|
409
|
+
# dry_run: false,
|
410
410
|
# groups: ["String"],
|
411
|
-
#
|
411
|
+
# ipv_6_address_count: 1,
|
412
|
+
# ipv_6_addresses: [
|
412
413
|
# {
|
413
|
-
#
|
414
|
-
# primary: false,
|
414
|
+
# ipv_6_address: "String",
|
415
415
|
# },
|
416
416
|
# ],
|
417
|
-
#
|
418
|
-
#
|
417
|
+
# private_ip_address: "String",
|
418
|
+
# private_ip_addresses: [
|
419
419
|
# {
|
420
|
-
#
|
420
|
+
# primary: false,
|
421
|
+
# private_ip_address: "String", # required
|
421
422
|
# },
|
422
423
|
# ],
|
423
|
-
#
|
424
|
-
#
|
424
|
+
# secondary_private_ip_address_count: 1,
|
425
|
+
# subnet_id: "String", # required
|
425
426
|
# })
|
426
427
|
# @param [Hash] options ({})
|
427
|
-
# @option options [required, String] :subnet_id
|
428
|
-
# The ID of the subnet to associate with the network interface.
|
429
428
|
# @option options [String] :description
|
430
429
|
# A description for the network interface.
|
430
|
+
# @option options [Boolean] :dry_run
|
431
|
+
# Checks whether you have the required permissions for the action,
|
432
|
+
# without actually making the request, and provides an error response.
|
433
|
+
# If you have the required permissions, the error response is
|
434
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
435
|
+
# @option options [Array<String>] :groups
|
436
|
+
# The IDs of one or more security groups.
|
437
|
+
# @option options [Integer] :ipv_6_address_count
|
438
|
+
# The number of IPv6 addresses to assign to a network interface. Amazon
|
439
|
+
# EC2 automatically selects the IPv6 addresses from the subnet range.
|
440
|
+
# You can't use this option if specifying specific IPv6 addresses. If
|
441
|
+
# your subnet has the `AssignIpv6AddressOnCreation` attribute set to
|
442
|
+
# `true`, you can specify `0` to override this setting.
|
443
|
+
# @option options [Array<Types::InstanceIpv6Address>] :ipv_6_addresses
|
444
|
+
# One or more specific IPv6 addresses from the IPv6 CIDR block range of
|
445
|
+
# your subnet. You can't use this option if you're specifying a number
|
446
|
+
# of IPv6 addresses.
|
431
447
|
# @option options [String] :private_ip_address
|
432
448
|
# The primary private IPv4 address of the network interface. If you
|
433
449
|
# don't specify an IPv4 address, Amazon EC2 selects one for you from
|
434
450
|
# the subnet's IPv4 CIDR range. If you specify an IP address, you
|
435
451
|
# cannot indicate any IP addresses specified in `privateIpAddresses` as
|
436
452
|
# primary (only one IP address can be designated as primary).
|
437
|
-
# @option options [Array<String>] :groups
|
438
|
-
# The IDs of one or more security groups.
|
439
453
|
# @option options [Array<Types::PrivateIpAddressSpecification>] :private_ip_addresses
|
440
454
|
# One or more private IPv4 addresses.
|
441
455
|
# @option options [Integer] :secondary_private_ip_address_count
|
@@ -453,21 +467,8 @@ module Aws::EC2
|
|
453
467
|
#
|
454
468
|
#
|
455
469
|
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI
|
456
|
-
# @option options [
|
457
|
-
#
|
458
|
-
# your subnet. You can't use this option if you're specifying a number
|
459
|
-
# of IPv6 addresses.
|
460
|
-
# @option options [Integer] :ipv_6_address_count
|
461
|
-
# The number of IPv6 addresses to assign to a network interface. Amazon
|
462
|
-
# EC2 automatically selects the IPv6 addresses from the subnet range.
|
463
|
-
# You can't use this option if specifying specific IPv6 addresses. If
|
464
|
-
# your subnet has the `AssignIpv6AddressOnCreation` attribute set to
|
465
|
-
# `true`, you can specify `0` to override this setting.
|
466
|
-
# @option options [Boolean] :dry_run
|
467
|
-
# Checks whether you have the required permissions for the action,
|
468
|
-
# without actually making the request, and provides an error response.
|
469
|
-
# If you have the required permissions, the error response is
|
470
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
470
|
+
# @option options [required, String] :subnet_id
|
471
|
+
# The ID of the subnet to associate with the network interface.
|
471
472
|
# @return [NetworkInterface]
|
472
473
|
def create_network_interface(options = {})
|
473
474
|
resp = @client.create_network_interface(options)
|
@@ -533,19 +534,14 @@ module Aws::EC2
|
|
533
534
|
# @example Request syntax with placeholder values
|
534
535
|
#
|
535
536
|
# securitygroup = ec2.create_security_group({
|
536
|
-
# dry_run: false,
|
537
|
-
# group_name: "String", # required
|
538
537
|
# description: "String", # required
|
538
|
+
# group_name: "String", # required
|
539
539
|
# vpc_id: "String",
|
540
|
+
# dry_run: false,
|
540
541
|
# })
|
541
542
|
# @param [Hash] options ({})
|
542
|
-
# @option options [
|
543
|
-
#
|
544
|
-
# without actually making the request, and provides an error response.
|
545
|
-
# If you have the required permissions, the error response is
|
546
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
547
|
-
# @option options [required, String] :group_name
|
548
|
-
# The name of the security group.
|
543
|
+
# @option options [required, String] :description
|
544
|
+
# A description for the security group. This is informational only.
|
549
545
|
#
|
550
546
|
# Constraints: Up to 255 characters in length
|
551
547
|
#
|
@@ -553,8 +549,8 @@ module Aws::EC2
|
|
553
549
|
#
|
554
550
|
# Constraints for EC2-VPC: a-z, A-Z, 0-9, spaces, and
|
555
551
|
# .\_-:/()#,@\[\]+=&;\\\{\\}!$*
|
556
|
-
# @option options [required, String] :
|
557
|
-
#
|
552
|
+
# @option options [required, String] :group_name
|
553
|
+
# The name of the security group.
|
558
554
|
#
|
559
555
|
# Constraints: Up to 255 characters in length
|
560
556
|
#
|
@@ -564,6 +560,11 @@ module Aws::EC2
|
|
564
560
|
# .\_-:/()#,@\[\]+=&;\\\{\\}!$*
|
565
561
|
# @option options [String] :vpc_id
|
566
562
|
# \[EC2-VPC\] The ID of the VPC. Required for EC2-VPC.
|
563
|
+
# @option options [Boolean] :dry_run
|
564
|
+
# Checks whether you have the required permissions for the action,
|
565
|
+
# without actually making the request, and provides an error response.
|
566
|
+
# If you have the required permissions, the error response is
|
567
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
567
568
|
# @return [SecurityGroup]
|
568
569
|
def create_security_group(options = {})
|
569
570
|
resp = @client.create_security_group(options)
|
@@ -576,20 +577,20 @@ module Aws::EC2
|
|
576
577
|
# @example Request syntax with placeholder values
|
577
578
|
#
|
578
579
|
# snapshot = ec2.create_snapshot({
|
579
|
-
# dry_run: false,
|
580
|
-
# volume_id: "String", # required
|
581
580
|
# description: "String",
|
581
|
+
# volume_id: "String", # required
|
582
|
+
# dry_run: false,
|
582
583
|
# })
|
583
584
|
# @param [Hash] options ({})
|
585
|
+
# @option options [String] :description
|
586
|
+
# A description for the snapshot.
|
587
|
+
# @option options [required, String] :volume_id
|
588
|
+
# The ID of the EBS volume.
|
584
589
|
# @option options [Boolean] :dry_run
|
585
590
|
# Checks whether you have the required permissions for the action,
|
586
591
|
# without actually making the request, and provides an error response.
|
587
592
|
# If you have the required permissions, the error response is
|
588
593
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
589
|
-
# @option options [required, String] :volume_id
|
590
|
-
# The ID of the EBS volume.
|
591
|
-
# @option options [String] :description
|
592
|
-
# A description for the snapshot.
|
593
594
|
# @return [Snapshot]
|
594
595
|
def create_snapshot(options = {})
|
595
596
|
resp = @client.create_snapshot(options)
|
@@ -603,32 +604,32 @@ module Aws::EC2
|
|
603
604
|
# @example Request syntax with placeholder values
|
604
605
|
#
|
605
606
|
# subnet = ec2.create_subnet({
|
606
|
-
#
|
607
|
-
# vpc_id: "String", # required
|
607
|
+
# availability_zone: "String",
|
608
608
|
# cidr_block: "String", # required
|
609
609
|
# ipv_6_cidr_block: "String",
|
610
|
-
#
|
610
|
+
# vpc_id: "String", # required
|
611
|
+
# dry_run: false,
|
611
612
|
# })
|
612
613
|
# @param [Hash] options ({})
|
613
|
-
# @option options [Boolean] :dry_run
|
614
|
-
# Checks whether you have the required permissions for the action,
|
615
|
-
# without actually making the request, and provides an error response.
|
616
|
-
# If you have the required permissions, the error response is
|
617
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
618
|
-
# @option options [required, String] :vpc_id
|
619
|
-
# The ID of the VPC.
|
620
|
-
# @option options [required, String] :cidr_block
|
621
|
-
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
622
|
-
# `10.0.0.0/24`.
|
623
|
-
# @option options [String] :ipv_6_cidr_block
|
624
|
-
# The IPv6 network range for the subnet, in CIDR notation. The subnet
|
625
|
-
# size must use a /64 prefix length.
|
626
614
|
# @option options [String] :availability_zone
|
627
615
|
# The Availability Zone for the subnet.
|
628
616
|
#
|
629
617
|
# Default: AWS selects one for you. If you create more than one subnet
|
630
618
|
# in your VPC, we may not necessarily select a different zone for each
|
631
619
|
# subnet.
|
620
|
+
# @option options [required, String] :cidr_block
|
621
|
+
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
622
|
+
# `10.0.0.0/24`.
|
623
|
+
# @option options [String] :ipv_6_cidr_block
|
624
|
+
# The IPv6 network range for the subnet, in CIDR notation. The subnet
|
625
|
+
# size must use a /64 prefix length.
|
626
|
+
# @option options [required, String] :vpc_id
|
627
|
+
# The ID of the VPC.
|
628
|
+
# @option options [Boolean] :dry_run
|
629
|
+
# Checks whether you have the required permissions for the action,
|
630
|
+
# without actually making the request, and provides an error response.
|
631
|
+
# If you have the required permissions, the error response is
|
632
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
632
633
|
# @return [Subnet]
|
633
634
|
def create_subnet(options = {})
|
634
635
|
resp = @client.create_subnet(options)
|
@@ -672,14 +673,14 @@ module Aws::EC2
|
|
672
673
|
# @example Request syntax with placeholder values
|
673
674
|
#
|
674
675
|
# volume = ec2.create_volume({
|
675
|
-
# dry_run: false,
|
676
|
-
# size: 1,
|
677
|
-
# snapshot_id: "String",
|
678
676
|
# availability_zone: "String", # required
|
679
|
-
# volume_type: "standard", # accepts standard, io1, gp2, sc1, st1
|
680
|
-
# iops: 1,
|
681
677
|
# encrypted: false,
|
678
|
+
# iops: 1,
|
682
679
|
# kms_key_id: "String",
|
680
|
+
# size: 1,
|
681
|
+
# snapshot_id: "String",
|
682
|
+
# volume_type: "standard", # accepts standard, io1, gp2, sc1, st1
|
683
|
+
# dry_run: false,
|
683
684
|
# tag_specifications: [
|
684
685
|
# {
|
685
686
|
# resource_type: "customer-gateway", # accepts customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
|
@@ -693,39 +694,10 @@ module Aws::EC2
|
|
693
694
|
# ],
|
694
695
|
# })
|
695
696
|
# @param [Hash] options ({})
|
696
|
-
# @option options [Boolean] :dry_run
|
697
|
-
# Checks whether you have the required permissions for the action,
|
698
|
-
# without actually making the request, and provides an error response.
|
699
|
-
# If you have the required permissions, the error response is
|
700
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
701
|
-
# @option options [Integer] :size
|
702
|
-
# The size of the volume, in GiBs.
|
703
|
-
#
|
704
|
-
# Constraints: 1-16384 for `gp2`, 4-16384 for `io1`, 500-16384 for
|
705
|
-
# `st1`, 500-16384 for `sc1`, and 1-1024 for `standard`. If you specify
|
706
|
-
# a snapshot, the volume size must be equal to or larger than the
|
707
|
-
# snapshot size.
|
708
|
-
#
|
709
|
-
# Default: If you're creating the volume from a snapshot and don't
|
710
|
-
# specify a volume size, the default is the snapshot size.
|
711
|
-
# @option options [String] :snapshot_id
|
712
|
-
# The snapshot from which to create the volume.
|
713
697
|
# @option options [required, String] :availability_zone
|
714
698
|
# The Availability Zone in which to create the volume. Use
|
715
699
|
# DescribeAvailabilityZones to list the Availability Zones that are
|
716
700
|
# currently available to you.
|
717
|
-
# @option options [String] :volume_type
|
718
|
-
# The volume type. This can be `gp2` for General Purpose SSD, `io1` for
|
719
|
-
# Provisioned IOPS SSD, `st1` for Throughput Optimized HDD, `sc1` for
|
720
|
-
# Cold HDD, or `standard` for Magnetic volumes.
|
721
|
-
#
|
722
|
-
# Default: `standard`
|
723
|
-
# @option options [Integer] :iops
|
724
|
-
# Only valid for Provisioned IOPS SSD volumes. The number of I/O
|
725
|
-
# operations per second (IOPS) to provision for the volume, with a
|
726
|
-
# maximum ratio of 50 IOPS/GiB.
|
727
|
-
#
|
728
|
-
# Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes
|
729
701
|
# @option options [Boolean] :encrypted
|
730
702
|
# Specifies whether the volume should be encrypted. Encrypted Amazon EBS
|
731
703
|
# volumes may only be attached to instances that support Amazon EBS
|
@@ -739,6 +711,12 @@ module Aws::EC2
|
|
739
711
|
#
|
740
712
|
#
|
741
713
|
# [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html
|
714
|
+
# @option options [Integer] :iops
|
715
|
+
# Only valid for Provisioned IOPS SSD volumes. The number of I/O
|
716
|
+
# operations per second (IOPS) to provision for the volume, with a
|
717
|
+
# maximum ratio of 50 IOPS/GiB.
|
718
|
+
#
|
719
|
+
# Constraint: Range is 100 to 20000 for Provisioned IOPS SSD volumes
|
742
720
|
# @option options [String] :kms_key_id
|
743
721
|
# The full ARN of the AWS Key Management Service (AWS KMS) customer
|
744
722
|
# master key (CMK) to use when creating the encrypted volume. This
|
@@ -749,6 +727,29 @@ module Aws::EC2
|
|
749
727
|
# then the CMK ID. For example,
|
750
728
|
# arn:aws:kms:*us-east-1*\:*012345678910*\:key/*abcd1234-a123-456a-a12b-a123b4cd56ef*.
|
751
729
|
# If a `KmsKeyId` is specified, the `Encrypted` flag must also be set.
|
730
|
+
# @option options [Integer] :size
|
731
|
+
# The size of the volume, in GiBs.
|
732
|
+
#
|
733
|
+
# Constraints: 1-16384 for `gp2`, 4-16384 for `io1`, 500-16384 for
|
734
|
+
# `st1`, 500-16384 for `sc1`, and 1-1024 for `standard`. If you specify
|
735
|
+
# a snapshot, the volume size must be equal to or larger than the
|
736
|
+
# snapshot size.
|
737
|
+
#
|
738
|
+
# Default: If you're creating the volume from a snapshot and don't
|
739
|
+
# specify a volume size, the default is the snapshot size.
|
740
|
+
# @option options [String] :snapshot_id
|
741
|
+
# The snapshot from which to create the volume.
|
742
|
+
# @option options [String] :volume_type
|
743
|
+
# The volume type. This can be `gp2` for General Purpose SSD, `io1` for
|
744
|
+
# Provisioned IOPS SSD, `st1` for Throughput Optimized HDD, `sc1` for
|
745
|
+
# Cold HDD, or `standard` for Magnetic volumes.
|
746
|
+
#
|
747
|
+
# Default: `standard`
|
748
|
+
# @option options [Boolean] :dry_run
|
749
|
+
# Checks whether you have the required permissions for the action,
|
750
|
+
# without actually making the request, and provides an error response.
|
751
|
+
# If you have the required permissions, the error response is
|
752
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
752
753
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
753
754
|
# The tags to apply to the volume during creation.
|
754
755
|
# @return [Volume]
|
@@ -764,20 +765,24 @@ module Aws::EC2
|
|
764
765
|
# @example Request syntax with placeholder values
|
765
766
|
#
|
766
767
|
# vpc = ec2.create_vpc({
|
767
|
-
# dry_run: false,
|
768
768
|
# cidr_block: "String", # required
|
769
|
-
# instance_tenancy: "default", # accepts default, dedicated, host
|
770
769
|
# amazon_provided_ipv_6_cidr_block: false,
|
770
|
+
# dry_run: false,
|
771
|
+
# instance_tenancy: "default", # accepts default, dedicated, host
|
771
772
|
# })
|
772
773
|
# @param [Hash] options ({})
|
773
|
-
# @option options [Boolean] :dry_run
|
774
|
-
# Checks whether you have the required permissions for the action,
|
775
|
-
# without actually making the request, and provides an error response.
|
776
|
-
# If you have the required permissions, the error response is
|
777
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
778
774
|
# @option options [required, String] :cidr_block
|
779
775
|
# The IPv4 network range for the VPC, in CIDR notation. For example,
|
780
776
|
# `10.0.0.0/16`.
|
777
|
+
# @option options [Boolean] :amazon_provided_ipv_6_cidr_block
|
778
|
+
# Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
|
779
|
+
# for the VPC. You cannot specify the range of IP addresses, or the size
|
780
|
+
# of the CIDR block.
|
781
|
+
# @option options [Boolean] :dry_run
|
782
|
+
# Checks whether you have the required permissions for the action,
|
783
|
+
# without actually making the request, and provides an error response.
|
784
|
+
# If you have the required permissions, the error response is
|
785
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
781
786
|
# @option options [String] :instance_tenancy
|
782
787
|
# The tenancy options for instances launched into the VPC. For
|
783
788
|
# `default`, instances are launched with shared tenancy by default. You
|
@@ -790,10 +795,6 @@ module Aws::EC2
|
|
790
795
|
# Use the `default` or `dedicated` values only.
|
791
796
|
#
|
792
797
|
# Default: `default`
|
793
|
-
# @option options [Boolean] :amazon_provided_ipv_6_cidr_block
|
794
|
-
# Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
|
795
|
-
# for the VPC. You cannot specify the range of IP addresses, or the size
|
796
|
-
# of the CIDR block.
|
797
798
|
# @return [Vpc]
|
798
799
|
def create_vpc(options = {})
|
799
800
|
resp = @client.create_vpc(options)
|
@@ -808,9 +809,9 @@ module Aws::EC2
|
|
808
809
|
#
|
809
810
|
# vpcpeeringconnection = ec2.create_vpc_peering_connection({
|
810
811
|
# dry_run: false,
|
811
|
-
# vpc_id: "String",
|
812
|
-
# peer_vpc_id: "String",
|
813
812
|
# peer_owner_id: "String",
|
813
|
+
# peer_vpc_id: "String",
|
814
|
+
# vpc_id: "String",
|
814
815
|
# })
|
815
816
|
# @param [Hash] options ({})
|
816
817
|
# @option options [Boolean] :dry_run
|
@@ -818,15 +819,15 @@ module Aws::EC2
|
|
818
819
|
# without actually making the request, and provides an error response.
|
819
820
|
# If you have the required permissions, the error response is
|
820
821
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
821
|
-
# @option options [String] :vpc_id
|
822
|
-
# The ID of the requester VPC.
|
823
|
-
# @option options [String] :peer_vpc_id
|
824
|
-
# The ID of the VPC with which you are creating the VPC peering
|
825
|
-
# connection.
|
826
822
|
# @option options [String] :peer_owner_id
|
827
823
|
# The AWS account ID of the owner of the peer VPC.
|
828
824
|
#
|
829
825
|
# Default: Your AWS account ID
|
826
|
+
# @option options [String] :peer_vpc_id
|
827
|
+
# The ID of the VPC with which you are creating the VPC peering
|
828
|
+
# connection.
|
829
|
+
# @option options [String] :vpc_id
|
830
|
+
# The ID of the requester VPC.
|
830
831
|
# @return [VpcPeeringConnection]
|
831
832
|
def create_vpc_peering_connection(options = {})
|
832
833
|
resp = @client.create_vpc_peering_connection(options)
|
@@ -840,18 +841,18 @@ module Aws::EC2
|
|
840
841
|
# @example Request syntax with placeholder values
|
841
842
|
#
|
842
843
|
# ec2.disassociate_route_table({
|
843
|
-
# dry_run: false,
|
844
844
|
# association_id: "String", # required
|
845
|
+
# dry_run: false,
|
845
846
|
# })
|
846
847
|
# @param [Hash] options ({})
|
848
|
+
# @option options [required, String] :association_id
|
849
|
+
# The association ID representing the current association between the
|
850
|
+
# route table and subnet.
|
847
851
|
# @option options [Boolean] :dry_run
|
848
852
|
# Checks whether you have the required permissions for the action,
|
849
853
|
# without actually making the request, and provides an error response.
|
850
854
|
# If you have the required permissions, the error response is
|
851
855
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
852
|
-
# @option options [required, String] :association_id
|
853
|
-
# The association ID representing the current association between the
|
854
|
-
# route table and subnet.
|
855
856
|
# @return [EmptyStructure]
|
856
857
|
def disassociate_route_table(options = {})
|
857
858
|
resp = @client.disassociate_route_table(options)
|
@@ -888,72 +889,74 @@ module Aws::EC2
|
|
888
889
|
# @example Request syntax with placeholder values
|
889
890
|
#
|
890
891
|
# image = ec2.register_image({
|
891
|
-
# dry_run: false,
|
892
892
|
# image_location: "String",
|
893
|
-
# name: "String", # required
|
894
|
-
# description: "String",
|
895
893
|
# architecture: "i386", # accepts i386, x86_64
|
896
|
-
# kernel_id: "String",
|
897
|
-
# ramdisk_id: "String",
|
898
|
-
# billing_products: ["String"],
|
899
|
-
# root_device_name: "String",
|
900
894
|
# block_device_mappings: [
|
901
895
|
# {
|
902
|
-
# virtual_name: "String",
|
903
896
|
# device_name: "String",
|
897
|
+
# virtual_name: "String",
|
904
898
|
# ebs: {
|
899
|
+
# encrypted: false,
|
900
|
+
# delete_on_termination: false,
|
901
|
+
# iops: 1,
|
905
902
|
# snapshot_id: "String",
|
906
903
|
# volume_size: 1,
|
907
|
-
# delete_on_termination: false,
|
908
904
|
# volume_type: "standard", # accepts standard, io1, gp2, sc1, st1
|
909
|
-
# iops: 1,
|
910
|
-
# encrypted: false,
|
911
905
|
# },
|
912
906
|
# no_device: "String",
|
913
907
|
# },
|
914
908
|
# ],
|
915
|
-
#
|
916
|
-
#
|
909
|
+
# description: "String",
|
910
|
+
# dry_run: false,
|
917
911
|
# ena_support: false,
|
912
|
+
# kernel_id: "String",
|
913
|
+
# name: "String", # required
|
914
|
+
# billing_products: ["String"],
|
915
|
+
# ramdisk_id: "String",
|
916
|
+
# root_device_name: "String",
|
917
|
+
# sriov_net_support: "String",
|
918
|
+
# virtualization_type: "String",
|
918
919
|
# })
|
919
920
|
# @param [Hash] options ({})
|
921
|
+
# @option options [String] :image_location
|
922
|
+
# The full path to your AMI manifest in Amazon S3 storage.
|
923
|
+
# @option options [String] :architecture
|
924
|
+
# The architecture of the AMI.
|
925
|
+
#
|
926
|
+
# Default: For Amazon EBS-backed AMIs, `i386`. For instance store-backed
|
927
|
+
# AMIs, the architecture specified in the manifest file.
|
928
|
+
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
929
|
+
# One or more block device mapping entries.
|
930
|
+
# @option options [String] :description
|
931
|
+
# A description for your AMI.
|
920
932
|
# @option options [Boolean] :dry_run
|
921
933
|
# Checks whether you have the required permissions for the action,
|
922
934
|
# without actually making the request, and provides an error response.
|
923
935
|
# If you have the required permissions, the error response is
|
924
936
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
925
|
-
# @option options [
|
926
|
-
#
|
937
|
+
# @option options [Boolean] :ena_support
|
938
|
+
# Set to `true` to enable enhanced networking with ENA for the AMI and
|
939
|
+
# any instances that you launch from the AMI.
|
940
|
+
#
|
941
|
+
# This option is supported only for HVM AMIs. Specifying this option
|
942
|
+
# with a PV AMI can make instances launched from the AMI unreachable.
|
943
|
+
# @option options [String] :kernel_id
|
944
|
+
# The ID of the kernel.
|
927
945
|
# @option options [required, String] :name
|
928
946
|
# A name for your AMI.
|
929
947
|
#
|
930
948
|
# Constraints: 3-128 alphanumeric characters, parentheses (()), square
|
931
949
|
# brackets (\[\]), spaces ( ), periods (.), slashes (/), dashes (-),
|
932
950
|
# single quotes ('), at-signs (@), or underscores(\_)
|
933
|
-
# @option options [String] :description
|
934
|
-
# A description for your AMI.
|
935
|
-
# @option options [String] :architecture
|
936
|
-
# The architecture of the AMI.
|
937
|
-
#
|
938
|
-
# Default: For Amazon EBS-backed AMIs, `i386`. For instance store-backed
|
939
|
-
# AMIs, the architecture specified in the manifest file.
|
940
|
-
# @option options [String] :kernel_id
|
941
|
-
# The ID of the kernel.
|
942
|
-
# @option options [String] :ramdisk_id
|
943
|
-
# The ID of the RAM disk.
|
944
951
|
# @option options [Array<String>] :billing_products
|
945
952
|
# The billing product codes. Your account must be authorized to specify
|
946
953
|
# billing product codes. Otherwise, you can use the AWS Marketplace to
|
947
954
|
# bill for the use of an AMI.
|
955
|
+
# @option options [String] :ramdisk_id
|
956
|
+
# The ID of the RAM disk.
|
948
957
|
# @option options [String] :root_device_name
|
949
958
|
# The name of the root device (for example, `/dev/sda1`, or
|
950
959
|
# `/dev/xvda`).
|
951
|
-
# @option options [Array<Types::BlockDeviceMapping>] :block_device_mappings
|
952
|
-
# One or more block device mapping entries.
|
953
|
-
# @option options [String] :virtualization_type
|
954
|
-
# The type of virtualization.
|
955
|
-
#
|
956
|
-
# Default: `paravirtual`
|
957
960
|
# @option options [String] :sriov_net_support
|
958
961
|
# Set to `simple` to enable enhanced networking with the Intel 82599
|
959
962
|
# Virtual Function interface for the AMI and any instances that you
|
@@ -963,12 +966,10 @@ module Aws::EC2
|
|
963
966
|
#
|
964
967
|
# This option is supported only for HVM AMIs. Specifying this option
|
965
968
|
# with a PV AMI can make instances launched from the AMI unreachable.
|
966
|
-
# @option options [
|
967
|
-
#
|
968
|
-
# any instances that you launch from the AMI.
|
969
|
+
# @option options [String] :virtualization_type
|
970
|
+
# The type of virtualization.
|
969
971
|
#
|
970
|
-
#
|
971
|
-
# with a PV AMI can make instances launched from the AMI unreachable.
|
972
|
+
# Default: `paravirtual`
|
972
973
|
# @return [Image]
|
973
974
|
def register_image(options = {})
|
974
975
|
resp = @client.register_image(options)
|
@@ -983,26 +984,17 @@ module Aws::EC2
|
|
983
984
|
# @example Request syntax with placeholder values
|
984
985
|
#
|
985
986
|
# classic_addresses = ec2.classic_addresses({
|
986
|
-
# dry_run: false,
|
987
|
-
# public_ips: ["String"],
|
988
987
|
# filters: [
|
989
988
|
# {
|
990
989
|
# name: "String",
|
991
990
|
# values: ["String"],
|
992
991
|
# },
|
993
992
|
# ],
|
993
|
+
# public_ips: ["String"],
|
994
994
|
# allocation_ids: ["String"],
|
995
|
+
# dry_run: false,
|
995
996
|
# })
|
996
997
|
# @param [Hash] options ({})
|
997
|
-
# @option options [Boolean] :dry_run
|
998
|
-
# Checks whether you have the required permissions for the action,
|
999
|
-
# without actually making the request, and provides an error response.
|
1000
|
-
# If you have the required permissions, the error response is
|
1001
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1002
|
-
# @option options [Array<String>] :public_ips
|
1003
|
-
# \[EC2-Classic\] One or more Elastic IP addresses.
|
1004
|
-
#
|
1005
|
-
# Default: Describes all your Elastic IP addresses.
|
1006
998
|
# @option options [Array<Types::Filter>] :filters
|
1007
999
|
# One or more filters. Filter names and values are case-sensitive.
|
1008
1000
|
#
|
@@ -1025,10 +1017,19 @@ module Aws::EC2
|
|
1025
1017
|
# with the Elastic IP address.
|
1026
1018
|
#
|
1027
1019
|
# * `public-ip` - The Elastic IP address.
|
1020
|
+
# @option options [Array<String>] :public_ips
|
1021
|
+
# \[EC2-Classic\] One or more Elastic IP addresses.
|
1022
|
+
#
|
1023
|
+
# Default: Describes all your Elastic IP addresses.
|
1028
1024
|
# @option options [Array<String>] :allocation_ids
|
1029
1025
|
# \[EC2-VPC\] One or more allocation IDs.
|
1030
1026
|
#
|
1031
1027
|
# Default: Describes all your Elastic IP addresses.
|
1028
|
+
# @option options [Boolean] :dry_run
|
1029
|
+
# Checks whether you have the required permissions for the action,
|
1030
|
+
# without actually making the request, and provides an error response.
|
1031
|
+
# If you have the required permissions, the error response is
|
1032
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1032
1033
|
# @return [ClassicAddress::Collection]
|
1033
1034
|
def classic_addresses(options = {})
|
1034
1035
|
batches = Enumerator.new do |y|
|
@@ -1062,7 +1063,6 @@ module Aws::EC2
|
|
1062
1063
|
# @example Request syntax with placeholder values
|
1063
1064
|
#
|
1064
1065
|
# dhcp_options_sets = ec2.dhcp_options_sets({
|
1065
|
-
# dry_run: false,
|
1066
1066
|
# dhcp_options_ids: ["String"],
|
1067
1067
|
# filters: [
|
1068
1068
|
# {
|
@@ -1070,13 +1070,9 @@ module Aws::EC2
|
|
1070
1070
|
# values: ["String"],
|
1071
1071
|
# },
|
1072
1072
|
# ],
|
1073
|
+
# dry_run: false,
|
1073
1074
|
# })
|
1074
1075
|
# @param [Hash] options ({})
|
1075
|
-
# @option options [Boolean] :dry_run
|
1076
|
-
# Checks whether you have the required permissions for the action,
|
1077
|
-
# without actually making the request, and provides an error response.
|
1078
|
-
# If you have the required permissions, the error response is
|
1079
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1080
1076
|
# @option options [Array<String>] :dhcp_options_ids
|
1081
1077
|
# The IDs of one or more DHCP options sets.
|
1082
1078
|
#
|
@@ -1106,6 +1102,11 @@ module Aws::EC2
|
|
1106
1102
|
#
|
1107
1103
|
# * `tag-value` - The value of a tag assigned to the resource. This
|
1108
1104
|
# filter is independent of the `tag-key` filter.
|
1105
|
+
# @option options [Boolean] :dry_run
|
1106
|
+
# Checks whether you have the required permissions for the action,
|
1107
|
+
# without actually making the request, and provides an error response.
|
1108
|
+
# If you have the required permissions, the error response is
|
1109
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1109
1110
|
# @return [DhcpOptions::Collection]
|
1110
1111
|
def dhcp_options_sets(options = {})
|
1111
1112
|
batches = Enumerator.new do |y|
|
@@ -1135,9 +1136,6 @@ module Aws::EC2
|
|
1135
1136
|
# @example Request syntax with placeholder values
|
1136
1137
|
#
|
1137
1138
|
# images = ec2.images({
|
1138
|
-
# dry_run: false,
|
1139
|
-
# image_ids: ["String"],
|
1140
|
-
# owners: ["String"],
|
1141
1139
|
# executable_users: ["String"],
|
1142
1140
|
# filters: [
|
1143
1141
|
# {
|
@@ -1145,23 +1143,11 @@ module Aws::EC2
|
|
1145
1143
|
# values: ["String"],
|
1146
1144
|
# },
|
1147
1145
|
# ],
|
1146
|
+
# image_ids: ["String"],
|
1147
|
+
# owners: ["String"],
|
1148
|
+
# dry_run: false,
|
1148
1149
|
# })
|
1149
1150
|
# @param [Hash] options ({})
|
1150
|
-
# @option options [Boolean] :dry_run
|
1151
|
-
# Checks whether you have the required permissions for the action,
|
1152
|
-
# without actually making the request, and provides an error response.
|
1153
|
-
# If you have the required permissions, the error response is
|
1154
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1155
|
-
# @option options [Array<String>] :image_ids
|
1156
|
-
# One or more image IDs.
|
1157
|
-
#
|
1158
|
-
# Default: Describes all images available to you.
|
1159
|
-
# @option options [Array<String>] :owners
|
1160
|
-
# Filters the images by the owner. Specify an AWS account ID, `self`
|
1161
|
-
# (owner is the sender of the request), or an AWS owner alias (valid
|
1162
|
-
# values are `amazon` \| `aws-marketplace` \| `microsoft`). Omitting
|
1163
|
-
# this option returns all images for which you have launch permissions,
|
1164
|
-
# regardless of ownership.
|
1165
1151
|
# @option options [Array<String>] :executable_users
|
1166
1152
|
# Scopes the images by users with explicit launch permissions. Specify
|
1167
1153
|
# an AWS account ID, `self` (the sender of the request), or `all`
|
@@ -1256,6 +1242,21 @@ module Aws::EC2
|
|
1256
1242
|
#
|
1257
1243
|
# * `virtualization-type` - The virtualization type (`paravirtual` \|
|
1258
1244
|
# `hvm`).
|
1245
|
+
# @option options [Array<String>] :image_ids
|
1246
|
+
# One or more image IDs.
|
1247
|
+
#
|
1248
|
+
# Default: Describes all images available to you.
|
1249
|
+
# @option options [Array<String>] :owners
|
1250
|
+
# Filters the images by the owner. Specify an AWS account ID, `self`
|
1251
|
+
# (owner is the sender of the request), or an AWS owner alias (valid
|
1252
|
+
# values are `amazon` \| `aws-marketplace` \| `microsoft`). Omitting
|
1253
|
+
# this option returns all images for which you have launch permissions,
|
1254
|
+
# regardless of ownership.
|
1255
|
+
# @option options [Boolean] :dry_run
|
1256
|
+
# Checks whether you have the required permissions for the action,
|
1257
|
+
# without actually making the request, and provides an error response.
|
1258
|
+
# If you have the required permissions, the error response is
|
1259
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1259
1260
|
# @return [Image::Collection]
|
1260
1261
|
def images(options = {})
|
1261
1262
|
batches = Enumerator.new do |y|
|
@@ -1285,25 +1286,16 @@ module Aws::EC2
|
|
1285
1286
|
# @example Request syntax with placeholder values
|
1286
1287
|
#
|
1287
1288
|
# instances = ec2.instances({
|
1288
|
-
# dry_run: false,
|
1289
|
-
# instance_ids: ["String"],
|
1290
1289
|
# filters: [
|
1291
1290
|
# {
|
1292
1291
|
# name: "String",
|
1293
1292
|
# values: ["String"],
|
1294
1293
|
# },
|
1295
1294
|
# ],
|
1295
|
+
# instance_ids: ["String"],
|
1296
|
+
# dry_run: false,
|
1296
1297
|
# })
|
1297
1298
|
# @param [Hash] options ({})
|
1298
|
-
# @option options [Boolean] :dry_run
|
1299
|
-
# Checks whether you have the required permissions for the action,
|
1300
|
-
# without actually making the request, and provides an error response.
|
1301
|
-
# If you have the required permissions, the error response is
|
1302
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1303
|
-
# @option options [Array<String>] :instance_ids
|
1304
|
-
# One or more instance IDs.
|
1305
|
-
#
|
1306
|
-
# Default: Describes all your instances.
|
1307
1299
|
# @option options [Array<Types::Filter>] :filters
|
1308
1300
|
# One or more filters.
|
1309
1301
|
#
|
@@ -1566,6 +1558,15 @@ module Aws::EC2
|
|
1566
1558
|
# (`paravirtual` \| `hvm`).
|
1567
1559
|
#
|
1568
1560
|
# * `vpc-id` - The ID of the VPC that the instance is running in.
|
1561
|
+
# @option options [Array<String>] :instance_ids
|
1562
|
+
# One or more instance IDs.
|
1563
|
+
#
|
1564
|
+
# Default: Describes all your instances.
|
1565
|
+
# @option options [Boolean] :dry_run
|
1566
|
+
# Checks whether you have the required permissions for the action,
|
1567
|
+
# without actually making the request, and provides an error response.
|
1568
|
+
# If you have the required permissions, the error response is
|
1569
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1569
1570
|
# @return [Instance::Collection]
|
1570
1571
|
def instances(options = {})
|
1571
1572
|
batches = Enumerator.new do |y|
|
@@ -1599,25 +1600,16 @@ module Aws::EC2
|
|
1599
1600
|
# @example Request syntax with placeholder values
|
1600
1601
|
#
|
1601
1602
|
# internet_gateways = ec2.internet_gateways({
|
1602
|
-
# dry_run: false,
|
1603
|
-
# internet_gateway_ids: ["String"],
|
1604
1603
|
# filters: [
|
1605
1604
|
# {
|
1606
1605
|
# name: "String",
|
1607
1606
|
# values: ["String"],
|
1608
1607
|
# },
|
1609
1608
|
# ],
|
1609
|
+
# dry_run: false,
|
1610
|
+
# internet_gateway_ids: ["String"],
|
1610
1611
|
# })
|
1611
1612
|
# @param [Hash] options ({})
|
1612
|
-
# @option options [Boolean] :dry_run
|
1613
|
-
# Checks whether you have the required permissions for the action,
|
1614
|
-
# without actually making the request, and provides an error response.
|
1615
|
-
# If you have the required permissions, the error response is
|
1616
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1617
|
-
# @option options [Array<String>] :internet_gateway_ids
|
1618
|
-
# One or more Internet gateway IDs.
|
1619
|
-
#
|
1620
|
-
# Default: Describes all your Internet gateways.
|
1621
1613
|
# @option options [Array<Types::Filter>] :filters
|
1622
1614
|
# One or more filters.
|
1623
1615
|
#
|
@@ -1645,6 +1637,15 @@ module Aws::EC2
|
|
1645
1637
|
#
|
1646
1638
|
# * `tag-value` - The value of a tag assigned to the resource. This
|
1647
1639
|
# filter is independent of the `tag-key` filter.
|
1640
|
+
# @option options [Boolean] :dry_run
|
1641
|
+
# Checks whether you have the required permissions for the action,
|
1642
|
+
# without actually making the request, and provides an error response.
|
1643
|
+
# If you have the required permissions, the error response is
|
1644
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1645
|
+
# @option options [Array<String>] :internet_gateway_ids
|
1646
|
+
# One or more Internet gateway IDs.
|
1647
|
+
#
|
1648
|
+
# Default: Describes all your Internet gateways.
|
1648
1649
|
# @return [InternetGateway::Collection]
|
1649
1650
|
def internet_gateways(options = {})
|
1650
1651
|
batches = Enumerator.new do |y|
|
@@ -1674,31 +1675,31 @@ module Aws::EC2
|
|
1674
1675
|
# @example Request syntax with placeholder values
|
1675
1676
|
#
|
1676
1677
|
# key_pairs = ec2.key_pairs({
|
1677
|
-
# dry_run: false,
|
1678
|
-
# key_names: ["String"],
|
1679
1678
|
# filters: [
|
1680
1679
|
# {
|
1681
1680
|
# name: "String",
|
1682
1681
|
# values: ["String"],
|
1683
1682
|
# },
|
1684
1683
|
# ],
|
1684
|
+
# key_names: ["String"],
|
1685
|
+
# dry_run: false,
|
1685
1686
|
# })
|
1686
1687
|
# @param [Hash] options ({})
|
1687
|
-
# @option options [Boolean] :dry_run
|
1688
|
-
# Checks whether you have the required permissions for the action,
|
1689
|
-
# without actually making the request, and provides an error response.
|
1690
|
-
# If you have the required permissions, the error response is
|
1691
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1692
|
-
# @option options [Array<String>] :key_names
|
1693
|
-
# One or more key pair names.
|
1694
|
-
#
|
1695
|
-
# Default: Describes all your key pairs.
|
1696
1688
|
# @option options [Array<Types::Filter>] :filters
|
1697
1689
|
# One or more filters.
|
1698
1690
|
#
|
1699
1691
|
# * `fingerprint` - The fingerprint of the key pair.
|
1700
1692
|
#
|
1701
1693
|
# * `key-name` - The name of the key pair.
|
1694
|
+
# @option options [Array<String>] :key_names
|
1695
|
+
# One or more key pair names.
|
1696
|
+
#
|
1697
|
+
# Default: Describes all your key pairs.
|
1698
|
+
# @option options [Boolean] :dry_run
|
1699
|
+
# Checks whether you have the required permissions for the action,
|
1700
|
+
# without actually making the request, and provides an error response.
|
1701
|
+
# If you have the required permissions, the error response is
|
1702
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1702
1703
|
# @return [KeyPairInfo::Collection]
|
1703
1704
|
def key_pairs(options = {})
|
1704
1705
|
batches = Enumerator.new do |y|
|
@@ -1728,25 +1729,16 @@ module Aws::EC2
|
|
1728
1729
|
# @example Request syntax with placeholder values
|
1729
1730
|
#
|
1730
1731
|
# network_acls = ec2.network_acls({
|
1731
|
-
# dry_run: false,
|
1732
|
-
# network_acl_ids: ["String"],
|
1733
1732
|
# filters: [
|
1734
1733
|
# {
|
1735
1734
|
# name: "String",
|
1736
1735
|
# values: ["String"],
|
1737
1736
|
# },
|
1738
1737
|
# ],
|
1738
|
+
# dry_run: false,
|
1739
|
+
# network_acl_ids: ["String"],
|
1739
1740
|
# })
|
1740
1741
|
# @param [Hash] options ({})
|
1741
|
-
# @option options [Boolean] :dry_run
|
1742
|
-
# Checks whether you have the required permissions for the action,
|
1743
|
-
# without actually making the request, and provides an error response.
|
1744
|
-
# If you have the required permissions, the error response is
|
1745
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1746
|
-
# @option options [Array<String>] :network_acl_ids
|
1747
|
-
# One or more network ACL IDs.
|
1748
|
-
#
|
1749
|
-
# Default: Describes all your network ACLs.
|
1750
1742
|
# @option options [Array<Types::Filter>] :filters
|
1751
1743
|
# One or more filters.
|
1752
1744
|
#
|
@@ -1807,7 +1799,16 @@ module Aws::EC2
|
|
1807
1799
|
# * `tag-value` - The value of a tag assigned to the resource. This
|
1808
1800
|
# filter is independent of the `tag-key` filter.
|
1809
1801
|
#
|
1810
|
-
# * `vpc-id` - The ID of the VPC for the network ACL.
|
1802
|
+
# * `vpc-id` - The ID of the VPC for the network ACL.
|
1803
|
+
# @option options [Boolean] :dry_run
|
1804
|
+
# Checks whether you have the required permissions for the action,
|
1805
|
+
# without actually making the request, and provides an error response.
|
1806
|
+
# If you have the required permissions, the error response is
|
1807
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1808
|
+
# @option options [Array<String>] :network_acl_ids
|
1809
|
+
# One or more network ACL IDs.
|
1810
|
+
#
|
1811
|
+
# Default: Describes all your network ACLs.
|
1811
1812
|
# @return [NetworkAcl::Collection]
|
1812
1813
|
def network_acls(options = {})
|
1813
1814
|
batches = Enumerator.new do |y|
|
@@ -1837,25 +1838,16 @@ module Aws::EC2
|
|
1837
1838
|
# @example Request syntax with placeholder values
|
1838
1839
|
#
|
1839
1840
|
# network_interfaces = ec2.network_interfaces({
|
1840
|
-
# dry_run: false,
|
1841
|
-
# network_interface_ids: ["String"],
|
1842
1841
|
# filters: [
|
1843
1842
|
# {
|
1844
1843
|
# name: "String",
|
1845
1844
|
# values: ["String"],
|
1846
1845
|
# },
|
1847
1846
|
# ],
|
1847
|
+
# dry_run: false,
|
1848
|
+
# network_interface_ids: ["String"],
|
1848
1849
|
# })
|
1849
1850
|
# @param [Hash] options ({})
|
1850
|
-
# @option options [Boolean] :dry_run
|
1851
|
-
# Checks whether you have the required permissions for the action,
|
1852
|
-
# without actually making the request, and provides an error response.
|
1853
|
-
# If you have the required permissions, the error response is
|
1854
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1855
|
-
# @option options [Array<String>] :network_interface_ids
|
1856
|
-
# One or more network interface IDs.
|
1857
|
-
#
|
1858
|
-
# Default: Describes all your network interfaces.
|
1859
1851
|
# @option options [Array<Types::Filter>] :filters
|
1860
1852
|
# One or more filters.
|
1861
1853
|
#
|
@@ -1975,6 +1967,15 @@ module Aws::EC2
|
|
1975
1967
|
# filter is independent of the `tag-key` filter.
|
1976
1968
|
#
|
1977
1969
|
# * `vpc-id` - The ID of the VPC for the network interface.
|
1970
|
+
# @option options [Boolean] :dry_run
|
1971
|
+
# Checks whether you have the required permissions for the action,
|
1972
|
+
# without actually making the request, and provides an error response.
|
1973
|
+
# If you have the required permissions, the error response is
|
1974
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1975
|
+
# @option options [Array<String>] :network_interface_ids
|
1976
|
+
# One or more network interface IDs.
|
1977
|
+
#
|
1978
|
+
# Default: Describes all your network interfaces.
|
1978
1979
|
# @return [NetworkInterface::Collection]
|
1979
1980
|
def network_interfaces(options = {})
|
1980
1981
|
batches = Enumerator.new do |y|
|
@@ -2004,16 +2005,25 @@ module Aws::EC2
|
|
2004
2005
|
# @example Request syntax with placeholder values
|
2005
2006
|
#
|
2006
2007
|
# placement_groups = ec2.placement_groups({
|
2007
|
-
# dry_run: false,
|
2008
|
-
# group_names: ["String"],
|
2009
2008
|
# filters: [
|
2010
2009
|
# {
|
2011
2010
|
# name: "String",
|
2012
2011
|
# values: ["String"],
|
2013
2012
|
# },
|
2014
2013
|
# ],
|
2014
|
+
# dry_run: false,
|
2015
|
+
# group_names: ["String"],
|
2015
2016
|
# })
|
2016
2017
|
# @param [Hash] options ({})
|
2018
|
+
# @option options [Array<Types::Filter>] :filters
|
2019
|
+
# One or more filters.
|
2020
|
+
#
|
2021
|
+
# * `group-name` - The name of the placement group.
|
2022
|
+
#
|
2023
|
+
# * `state` - The state of the placement group (`pending` \| `available`
|
2024
|
+
# \| `deleting` \| `deleted`).
|
2025
|
+
#
|
2026
|
+
# * `strategy` - The strategy of the placement group (`cluster`).
|
2017
2027
|
# @option options [Boolean] :dry_run
|
2018
2028
|
# Checks whether you have the required permissions for the action,
|
2019
2029
|
# without actually making the request, and provides an error response.
|
@@ -2024,15 +2034,6 @@ module Aws::EC2
|
|
2024
2034
|
#
|
2025
2035
|
# Default: Describes all your placement groups, or only those otherwise
|
2026
2036
|
# specified.
|
2027
|
-
# @option options [Array<Types::Filter>] :filters
|
2028
|
-
# One or more filters.
|
2029
|
-
#
|
2030
|
-
# * `group-name` - The name of the placement group.
|
2031
|
-
#
|
2032
|
-
# * `state` - The state of the placement group (`pending` \| `available`
|
2033
|
-
# \| `deleting` \| `deleted`).
|
2034
|
-
#
|
2035
|
-
# * `strategy` - The strategy of the placement group (`cluster`).
|
2036
2037
|
# @return [PlacementGroup::Collection]
|
2037
2038
|
def placement_groups(options = {})
|
2038
2039
|
batches = Enumerator.new do |y|
|
@@ -2071,25 +2072,16 @@ module Aws::EC2
|
|
2071
2072
|
# @example Request syntax with placeholder values
|
2072
2073
|
#
|
2073
2074
|
# route_tables = ec2.route_tables({
|
2074
|
-
# dry_run: false,
|
2075
|
-
# route_table_ids: ["String"],
|
2076
2075
|
# filters: [
|
2077
2076
|
# {
|
2078
2077
|
# name: "String",
|
2079
2078
|
# values: ["String"],
|
2080
2079
|
# },
|
2081
2080
|
# ],
|
2081
|
+
# dry_run: false,
|
2082
|
+
# route_table_ids: ["String"],
|
2082
2083
|
# })
|
2083
2084
|
# @param [Hash] options ({})
|
2084
|
-
# @option options [Boolean] :dry_run
|
2085
|
-
# Checks whether you have the required permissions for the action,
|
2086
|
-
# without actually making the request, and provides an error response.
|
2087
|
-
# If you have the required permissions, the error response is
|
2088
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2089
|
-
# @option options [Array<String>] :route_table_ids
|
2090
|
-
# One or more route table IDs.
|
2091
|
-
#
|
2092
|
-
# Default: Describes all your route tables.
|
2093
2085
|
# @option options [Array<Types::Filter>] :filters
|
2094
2086
|
# One or more filters.
|
2095
2087
|
#
|
@@ -2162,6 +2154,15 @@ module Aws::EC2
|
|
2162
2154
|
# filter is independent of the `tag-key` filter.
|
2163
2155
|
#
|
2164
2156
|
# * `vpc-id` - The ID of the VPC for the route table.
|
2157
|
+
# @option options [Boolean] :dry_run
|
2158
|
+
# Checks whether you have the required permissions for the action,
|
2159
|
+
# without actually making the request, and provides an error response.
|
2160
|
+
# If you have the required permissions, the error response is
|
2161
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2162
|
+
# @option options [Array<String>] :route_table_ids
|
2163
|
+
# One or more route table IDs.
|
2164
|
+
#
|
2165
|
+
# Default: Describes all your route tables.
|
2165
2166
|
# @return [RouteTable::Collection]
|
2166
2167
|
def route_tables(options = {})
|
2167
2168
|
batches = Enumerator.new do |y|
|
@@ -2191,34 +2192,17 @@ module Aws::EC2
|
|
2191
2192
|
# @example Request syntax with placeholder values
|
2192
2193
|
#
|
2193
2194
|
# security_groups = ec2.security_groups({
|
2194
|
-
# dry_run: false,
|
2195
|
-
# group_names: ["String"],
|
2196
|
-
# group_ids: ["String"],
|
2197
2195
|
# filters: [
|
2198
2196
|
# {
|
2199
2197
|
# name: "String",
|
2200
2198
|
# values: ["String"],
|
2201
2199
|
# },
|
2202
2200
|
# ],
|
2201
|
+
# group_ids: ["String"],
|
2202
|
+
# group_names: ["String"],
|
2203
|
+
# dry_run: false,
|
2203
2204
|
# })
|
2204
2205
|
# @param [Hash] options ({})
|
2205
|
-
# @option options [Boolean] :dry_run
|
2206
|
-
# Checks whether you have the required permissions for the action,
|
2207
|
-
# without actually making the request, and provides an error response.
|
2208
|
-
# If you have the required permissions, the error response is
|
2209
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2210
|
-
# @option options [Array<String>] :group_names
|
2211
|
-
# \[EC2-Classic and default VPC only\] One or more security group names.
|
2212
|
-
# You can specify either the security group name or the security group
|
2213
|
-
# ID. For security groups in a nondefault VPC, use the `group-name`
|
2214
|
-
# filter to describe security groups by name.
|
2215
|
-
#
|
2216
|
-
# Default: Describes all your security groups.
|
2217
|
-
# @option options [Array<String>] :group_ids
|
2218
|
-
# One or more security group IDs. Required for security groups in a
|
2219
|
-
# nondefault VPC.
|
2220
|
-
#
|
2221
|
-
# Default: Describes all your security groups.
|
2222
2206
|
# @option options [Array<Types::Filter>] :filters
|
2223
2207
|
# One or more filters. If using multiple filters for rules, the results
|
2224
2208
|
# include security groups for which any combination of rules - not
|
@@ -2265,6 +2249,23 @@ module Aws::EC2
|
|
2265
2249
|
#
|
2266
2250
|
# * `vpc-id` - The ID of the VPC specified when the security group was
|
2267
2251
|
# created.
|
2252
|
+
# @option options [Array<String>] :group_ids
|
2253
|
+
# One or more security group IDs. Required for security groups in a
|
2254
|
+
# nondefault VPC.
|
2255
|
+
#
|
2256
|
+
# Default: Describes all your security groups.
|
2257
|
+
# @option options [Array<String>] :group_names
|
2258
|
+
# \[EC2-Classic and default VPC only\] One or more security group names.
|
2259
|
+
# You can specify either the security group name or the security group
|
2260
|
+
# ID. For security groups in a nondefault VPC, use the `group-name`
|
2261
|
+
# filter to describe security groups by name.
|
2262
|
+
#
|
2263
|
+
# Default: Describes all your security groups.
|
2264
|
+
# @option options [Boolean] :dry_run
|
2265
|
+
# Checks whether you have the required permissions for the action,
|
2266
|
+
# without actually making the request, and provides an error response.
|
2267
|
+
# If you have the required permissions, the error response is
|
2268
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2268
2269
|
# @return [SecurityGroup::Collection]
|
2269
2270
|
def security_groups(options = {})
|
2270
2271
|
batches = Enumerator.new do |y|
|
@@ -2294,33 +2295,18 @@ module Aws::EC2
|
|
2294
2295
|
# @example Request syntax with placeholder values
|
2295
2296
|
#
|
2296
2297
|
# snapshots = ec2.snapshots({
|
2297
|
-
# dry_run: false,
|
2298
|
-
# snapshot_ids: ["String"],
|
2299
|
-
# owner_ids: ["String"],
|
2300
|
-
# restorable_by_user_ids: ["String"],
|
2301
2298
|
# filters: [
|
2302
2299
|
# {
|
2303
2300
|
# name: "String",
|
2304
2301
|
# values: ["String"],
|
2305
2302
|
# },
|
2306
2303
|
# ],
|
2304
|
+
# owner_ids: ["String"],
|
2305
|
+
# restorable_by_user_ids: ["String"],
|
2306
|
+
# snapshot_ids: ["String"],
|
2307
|
+
# dry_run: false,
|
2307
2308
|
# })
|
2308
2309
|
# @param [Hash] options ({})
|
2309
|
-
# @option options [Boolean] :dry_run
|
2310
|
-
# Checks whether you have the required permissions for the action,
|
2311
|
-
# without actually making the request, and provides an error response.
|
2312
|
-
# If you have the required permissions, the error response is
|
2313
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2314
|
-
# @option options [Array<String>] :snapshot_ids
|
2315
|
-
# One or more snapshot IDs.
|
2316
|
-
#
|
2317
|
-
# Default: Describes snapshots for which you have launch permissions.
|
2318
|
-
# @option options [Array<String>] :owner_ids
|
2319
|
-
# Returns the snapshots owned by the specified owner. Multiple owners
|
2320
|
-
# can be specified.
|
2321
|
-
# @option options [Array<String>] :restorable_by_user_ids
|
2322
|
-
# One or more AWS accounts IDs that can create volumes from the
|
2323
|
-
# snapshot.
|
2324
2310
|
# @option options [Array<Types::Filter>] :filters
|
2325
2311
|
# One or more filters.
|
2326
2312
|
#
|
@@ -2363,6 +2349,21 @@ module Aws::EC2
|
|
2363
2349
|
# * `volume-id` - The ID of the volume the snapshot is for.
|
2364
2350
|
#
|
2365
2351
|
# * `volume-size` - The size of the volume, in GiB.
|
2352
|
+
# @option options [Array<String>] :owner_ids
|
2353
|
+
# Returns the snapshots owned by the specified owner. Multiple owners
|
2354
|
+
# can be specified.
|
2355
|
+
# @option options [Array<String>] :restorable_by_user_ids
|
2356
|
+
# One or more AWS accounts IDs that can create volumes from the
|
2357
|
+
# snapshot.
|
2358
|
+
# @option options [Array<String>] :snapshot_ids
|
2359
|
+
# One or more snapshot IDs.
|
2360
|
+
#
|
2361
|
+
# Default: Describes snapshots for which you have launch permissions.
|
2362
|
+
# @option options [Boolean] :dry_run
|
2363
|
+
# Checks whether you have the required permissions for the action,
|
2364
|
+
# without actually making the request, and provides an error response.
|
2365
|
+
# If you have the required permissions, the error response is
|
2366
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2366
2367
|
# @return [Snapshot::Collection]
|
2367
2368
|
def snapshots(options = {})
|
2368
2369
|
batches = Enumerator.new do |y|
|
@@ -2394,25 +2395,16 @@ module Aws::EC2
|
|
2394
2395
|
# @example Request syntax with placeholder values
|
2395
2396
|
#
|
2396
2397
|
# subnets = ec2.subnets({
|
2397
|
-
# dry_run: false,
|
2398
|
-
# subnet_ids: ["String"],
|
2399
2398
|
# filters: [
|
2400
2399
|
# {
|
2401
2400
|
# name: "String",
|
2402
2401
|
# values: ["String"],
|
2403
2402
|
# },
|
2404
2403
|
# ],
|
2404
|
+
# subnet_ids: ["String"],
|
2405
|
+
# dry_run: false,
|
2405
2406
|
# })
|
2406
2407
|
# @param [Hash] options ({})
|
2407
|
-
# @option options [Boolean] :dry_run
|
2408
|
-
# Checks whether you have the required permissions for the action,
|
2409
|
-
# without actually making the request, and provides an error response.
|
2410
|
-
# If you have the required permissions, the error response is
|
2411
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2412
|
-
# @option options [Array<String>] :subnet_ids
|
2413
|
-
# One or more subnet IDs.
|
2414
|
-
#
|
2415
|
-
# Default: Describes all your subnets.
|
2416
2408
|
# @option options [Array<Types::Filter>] :filters
|
2417
2409
|
# One or more filters.
|
2418
2410
|
#
|
@@ -2462,6 +2454,15 @@ module Aws::EC2
|
|
2462
2454
|
# filter is independent of the `tag-key` filter.
|
2463
2455
|
#
|
2464
2456
|
# * `vpc-id` - The ID of the VPC for the subnet.
|
2457
|
+
# @option options [Array<String>] :subnet_ids
|
2458
|
+
# One or more subnet IDs.
|
2459
|
+
#
|
2460
|
+
# Default: Describes all your subnets.
|
2461
|
+
# @option options [Boolean] :dry_run
|
2462
|
+
# Checks whether you have the required permissions for the action,
|
2463
|
+
# without actually making the request, and provides an error response.
|
2464
|
+
# If you have the required permissions, the error response is
|
2465
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2465
2466
|
# @return [Subnet::Collection]
|
2466
2467
|
def subnets(options = {})
|
2467
2468
|
batches = Enumerator.new do |y|
|
@@ -2491,23 +2492,16 @@ module Aws::EC2
|
|
2491
2492
|
# @example Request syntax with placeholder values
|
2492
2493
|
#
|
2493
2494
|
# volumes = ec2.volumes({
|
2494
|
-
# dry_run: false,
|
2495
|
-
# volume_ids: ["String"],
|
2496
2495
|
# filters: [
|
2497
2496
|
# {
|
2498
2497
|
# name: "String",
|
2499
2498
|
# values: ["String"],
|
2500
2499
|
# },
|
2501
2500
|
# ],
|
2501
|
+
# volume_ids: ["String"],
|
2502
|
+
# dry_run: false,
|
2502
2503
|
# })
|
2503
2504
|
# @param [Hash] options ({})
|
2504
|
-
# @option options [Boolean] :dry_run
|
2505
|
-
# Checks whether you have the required permissions for the action,
|
2506
|
-
# without actually making the request, and provides an error response.
|
2507
|
-
# If you have the required permissions, the error response is
|
2508
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2509
|
-
# @option options [Array<String>] :volume_ids
|
2510
|
-
# One or more volume IDs.
|
2511
2505
|
# @option options [Array<Types::Filter>] :filters
|
2512
2506
|
# One or more filters.
|
2513
2507
|
#
|
@@ -2563,6 +2557,13 @@ module Aws::EC2
|
|
2563
2557
|
# General Purpose SSD, `io1` for Provisioned IOPS SSD, `st1` for
|
2564
2558
|
# Throughput Optimized HDD, `sc1` for Cold HDD, or `standard` for
|
2565
2559
|
# Magnetic volumes.
|
2560
|
+
# @option options [Array<String>] :volume_ids
|
2561
|
+
# One or more volume IDs.
|
2562
|
+
# @option options [Boolean] :dry_run
|
2563
|
+
# Checks whether you have the required permissions for the action,
|
2564
|
+
# without actually making the request, and provides an error response.
|
2565
|
+
# If you have the required permissions, the error response is
|
2566
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2566
2567
|
# @return [Volume::Collection]
|
2567
2568
|
def volumes(options = {})
|
2568
2569
|
batches = Enumerator.new do |y|
|
@@ -2594,26 +2595,17 @@ module Aws::EC2
|
|
2594
2595
|
# @example Request syntax with placeholder values
|
2595
2596
|
#
|
2596
2597
|
# vpc_addresses = ec2.vpc_addresses({
|
2597
|
-
# dry_run: false,
|
2598
|
-
# public_ips: ["String"],
|
2599
2598
|
# filters: [
|
2600
2599
|
# {
|
2601
2600
|
# name: "String",
|
2602
2601
|
# values: ["String"],
|
2603
2602
|
# },
|
2604
2603
|
# ],
|
2604
|
+
# public_ips: ["String"],
|
2605
2605
|
# allocation_ids: ["String"],
|
2606
|
+
# dry_run: false,
|
2606
2607
|
# })
|
2607
2608
|
# @param [Hash] options ({})
|
2608
|
-
# @option options [Boolean] :dry_run
|
2609
|
-
# Checks whether you have the required permissions for the action,
|
2610
|
-
# without actually making the request, and provides an error response.
|
2611
|
-
# If you have the required permissions, the error response is
|
2612
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2613
|
-
# @option options [Array<String>] :public_ips
|
2614
|
-
# \[EC2-Classic\] One or more Elastic IP addresses.
|
2615
|
-
#
|
2616
|
-
# Default: Describes all your Elastic IP addresses.
|
2617
2609
|
# @option options [Array<Types::Filter>] :filters
|
2618
2610
|
# One or more filters. Filter names and values are case-sensitive.
|
2619
2611
|
#
|
@@ -2636,10 +2628,19 @@ module Aws::EC2
|
|
2636
2628
|
# with the Elastic IP address.
|
2637
2629
|
#
|
2638
2630
|
# * `public-ip` - The Elastic IP address.
|
2631
|
+
# @option options [Array<String>] :public_ips
|
2632
|
+
# \[EC2-Classic\] One or more Elastic IP addresses.
|
2633
|
+
#
|
2634
|
+
# Default: Describes all your Elastic IP addresses.
|
2639
2635
|
# @option options [Array<String>] :allocation_ids
|
2640
2636
|
# \[EC2-VPC\] One or more allocation IDs.
|
2641
2637
|
#
|
2642
2638
|
# Default: Describes all your Elastic IP addresses.
|
2639
|
+
# @option options [Boolean] :dry_run
|
2640
|
+
# Checks whether you have the required permissions for the action,
|
2641
|
+
# without actually making the request, and provides an error response.
|
2642
|
+
# If you have the required permissions, the error response is
|
2643
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2643
2644
|
# @return [VpcAddress::Collection]
|
2644
2645
|
def vpc_addresses(options = {})
|
2645
2646
|
batches = Enumerator.new do |y|
|
@@ -2673,25 +2674,16 @@ module Aws::EC2
|
|
2673
2674
|
# @example Request syntax with placeholder values
|
2674
2675
|
#
|
2675
2676
|
# vpc_peering_connections = ec2.vpc_peering_connections({
|
2676
|
-
# dry_run: false,
|
2677
|
-
# vpc_peering_connection_ids: ["String"],
|
2678
2677
|
# filters: [
|
2679
2678
|
# {
|
2680
2679
|
# name: "String",
|
2681
2680
|
# values: ["String"],
|
2682
2681
|
# },
|
2683
2682
|
# ],
|
2683
|
+
# dry_run: false,
|
2684
|
+
# vpc_peering_connection_ids: ["String"],
|
2684
2685
|
# })
|
2685
2686
|
# @param [Hash] options ({})
|
2686
|
-
# @option options [Boolean] :dry_run
|
2687
|
-
# Checks whether you have the required permissions for the action,
|
2688
|
-
# without actually making the request, and provides an error response.
|
2689
|
-
# If you have the required permissions, the error response is
|
2690
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2691
|
-
# @option options [Array<String>] :vpc_peering_connection_ids
|
2692
|
-
# One or more VPC peering connection IDs.
|
2693
|
-
#
|
2694
|
-
# Default: Describes all your VPC peering connections.
|
2695
2687
|
# @option options [Array<Types::Filter>] :filters
|
2696
2688
|
# One or more filters.
|
2697
2689
|
#
|
@@ -2739,6 +2731,15 @@ module Aws::EC2
|
|
2739
2731
|
# filter is independent of the `tag-key` filter.
|
2740
2732
|
#
|
2741
2733
|
# * `vpc-peering-connection-id` - The ID of the VPC peering connection.
|
2734
|
+
# @option options [Boolean] :dry_run
|
2735
|
+
# Checks whether you have the required permissions for the action,
|
2736
|
+
# without actually making the request, and provides an error response.
|
2737
|
+
# If you have the required permissions, the error response is
|
2738
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2739
|
+
# @option options [Array<String>] :vpc_peering_connection_ids
|
2740
|
+
# One or more VPC peering connection IDs.
|
2741
|
+
#
|
2742
|
+
# Default: Describes all your VPC peering connections.
|
2742
2743
|
# @return [VpcPeeringConnection::Collection]
|
2743
2744
|
def vpc_peering_connections(options = {})
|
2744
2745
|
batches = Enumerator.new do |y|
|
@@ -2759,25 +2760,16 @@ module Aws::EC2
|
|
2759
2760
|
# @example Request syntax with placeholder values
|
2760
2761
|
#
|
2761
2762
|
# vpcs = ec2.vpcs({
|
2762
|
-
# dry_run: false,
|
2763
|
-
# vpc_ids: ["String"],
|
2764
2763
|
# filters: [
|
2765
2764
|
# {
|
2766
2765
|
# name: "String",
|
2767
2766
|
# values: ["String"],
|
2768
2767
|
# },
|
2769
2768
|
# ],
|
2769
|
+
# vpc_ids: ["String"],
|
2770
|
+
# dry_run: false,
|
2770
2771
|
# })
|
2771
2772
|
# @param [Hash] options ({})
|
2772
|
-
# @option options [Boolean] :dry_run
|
2773
|
-
# Checks whether you have the required permissions for the action,
|
2774
|
-
# without actually making the request, and provides an error response.
|
2775
|
-
# If you have the required permissions, the error response is
|
2776
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2777
|
-
# @option options [Array<String>] :vpc_ids
|
2778
|
-
# One or more VPC IDs.
|
2779
|
-
#
|
2780
|
-
# Default: Describes all your VPCs.
|
2781
2773
|
# @option options [Array<Types::Filter>] :filters
|
2782
2774
|
# One or more filters.
|
2783
2775
|
#
|
@@ -2819,6 +2811,15 @@ module Aws::EC2
|
|
2819
2811
|
# filter is independent of the `tag-key` filter.
|
2820
2812
|
#
|
2821
2813
|
# * `vpc-id` - The ID of the VPC.
|
2814
|
+
# @option options [Array<String>] :vpc_ids
|
2815
|
+
# One or more VPC IDs.
|
2816
|
+
#
|
2817
|
+
# Default: Describes all your VPCs.
|
2818
|
+
# @option options [Boolean] :dry_run
|
2819
|
+
# Checks whether you have the required permissions for the action,
|
2820
|
+
# without actually making the request, and provides an error response.
|
2821
|
+
# If you have the required permissions, the error response is
|
2822
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2822
2823
|
# @return [Vpc::Collection]
|
2823
2824
|
def vpcs(options = {})
|
2824
2825
|
batches = Enumerator.new do |y|
|