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
@@ -31,16 +31,10 @@ module Aws::EC2
|
|
31
31
|
end
|
32
32
|
alias :network_acl_id :id
|
33
33
|
|
34
|
-
#
|
35
|
-
# @return [
|
36
|
-
def
|
37
|
-
data.
|
38
|
-
end
|
39
|
-
|
40
|
-
# Indicates whether this is the default network ACL for the VPC.
|
41
|
-
# @return [Boolean]
|
42
|
-
def is_default
|
43
|
-
data.is_default
|
34
|
+
# Any associations between the network ACL and one or more subnets
|
35
|
+
# @return [Array<Types::NetworkAclAssociation>]
|
36
|
+
def associations
|
37
|
+
data.associations
|
44
38
|
end
|
45
39
|
|
46
40
|
# One or more entries (rules) in the network ACL.
|
@@ -49,10 +43,10 @@ module Aws::EC2
|
|
49
43
|
data.entries
|
50
44
|
end
|
51
45
|
|
52
|
-
#
|
53
|
-
# @return [
|
54
|
-
def
|
55
|
-
data.
|
46
|
+
# Indicates whether this is the default network ACL for the VPC.
|
47
|
+
# @return [Boolean]
|
48
|
+
def is_default
|
49
|
+
data.is_default
|
56
50
|
end
|
57
51
|
|
58
52
|
# Any tags assigned to the network ACL.
|
@@ -61,6 +55,12 @@ module Aws::EC2
|
|
61
55
|
data.tags
|
62
56
|
end
|
63
57
|
|
58
|
+
# The ID of the VPC for the network ACL.
|
59
|
+
# @return [String]
|
60
|
+
def vpc_id
|
61
|
+
data.vpc_id
|
62
|
+
end
|
63
|
+
|
64
64
|
# @!endgroup
|
65
65
|
|
66
66
|
# @return [Client]
|
@@ -101,34 +101,43 @@ module Aws::EC2
|
|
101
101
|
# @example Request syntax with placeholder values
|
102
102
|
#
|
103
103
|
# network_acl.create_entry({
|
104
|
+
# cidr_block: "String",
|
104
105
|
# dry_run: false,
|
105
|
-
# rule_number: 1, # required
|
106
|
-
# protocol: "String", # required
|
107
|
-
# rule_action: "allow", # required, accepts allow, deny
|
108
106
|
# egress: false, # required
|
109
|
-
# cidr_block: "String",
|
110
|
-
# ipv_6_cidr_block: "String",
|
111
107
|
# icmp_type_code: {
|
112
|
-
# type: 1,
|
113
108
|
# code: 1,
|
109
|
+
# type: 1,
|
114
110
|
# },
|
111
|
+
# ipv_6_cidr_block: "String",
|
115
112
|
# port_range: {
|
116
113
|
# from: 1,
|
117
114
|
# to: 1,
|
118
115
|
# },
|
116
|
+
# protocol: "String", # required
|
117
|
+
# rule_action: "allow", # required, accepts allow, deny
|
118
|
+
# rule_number: 1, # required
|
119
119
|
# })
|
120
120
|
# @param [Hash] options ({})
|
121
|
+
# @option options [String] :cidr_block
|
122
|
+
# The IPv4 network range to allow or deny, in CIDR notation (for example
|
123
|
+
# `172.16.0.0/24`).
|
121
124
|
# @option options [Boolean] :dry_run
|
122
125
|
# Checks whether you have the required permissions for the action,
|
123
126
|
# without actually making the request, and provides an error response.
|
124
127
|
# If you have the required permissions, the error response is
|
125
128
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
126
|
-
# @option options [required,
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
129
|
+
# @option options [required, Boolean] :egress
|
130
|
+
# Indicates whether this is an egress rule (rule is applied to traffic
|
131
|
+
# leaving the subnet).
|
132
|
+
# @option options [Types::IcmpTypeCode] :icmp_type_code
|
133
|
+
# ICMP protocol: The ICMP or ICMPv6 type and code. Required if
|
134
|
+
# specifying the ICMP protocol, or protocol 58 (ICMPv6) with an IPv6
|
135
|
+
# CIDR block.
|
136
|
+
# @option options [String] :ipv_6_cidr_block
|
137
|
+
# The IPv6 network range to allow or deny, in CIDR notation (for example
|
138
|
+
# `2001:db8:1234:1a00::/64`).
|
139
|
+
# @option options [Types::PortRange] :port_range
|
140
|
+
# TCP or UDP protocols: The range of ports the rule applies to.
|
132
141
|
# @option options [required, String] :protocol
|
133
142
|
# The protocol. A value of `-1` or `all` means all protocols. If you
|
134
143
|
# specify `all`, `-1`, or a protocol number other than `tcp`, `udp`, or
|
@@ -140,21 +149,12 @@ module Aws::EC2
|
|
140
149
|
# type and code.
|
141
150
|
# @option options [required, String] :rule_action
|
142
151
|
# Indicates whether to allow or deny the traffic that matches the rule.
|
143
|
-
# @option options [required,
|
144
|
-
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
# @option options [String] :ipv_6_cidr_block
|
150
|
-
# The IPv6 network range to allow or deny, in CIDR notation (for example
|
151
|
-
# `2001:db8:1234:1a00::/64`).
|
152
|
-
# @option options [Types::IcmpTypeCode] :icmp_type_code
|
153
|
-
# ICMP protocol: The ICMP or ICMPv6 type and code. Required if
|
154
|
-
# specifying the ICMP protocol, or protocol 58 (ICMPv6) with an IPv6
|
155
|
-
# CIDR block.
|
156
|
-
# @option options [Types::PortRange] :port_range
|
157
|
-
# TCP or UDP protocols: The range of ports the rule applies to.
|
152
|
+
# @option options [required, Integer] :rule_number
|
153
|
+
# The rule number for the entry (for example, 100). ACL entries are
|
154
|
+
# processed in ascending order by rule number.
|
155
|
+
#
|
156
|
+
# Constraints: Positive integer from 1 to 32766. The range 32767 to
|
157
|
+
# 65535 is reserved for internal use.
|
158
158
|
# @return [EmptyStructure]
|
159
159
|
def create_entry(options = {})
|
160
160
|
options = options.merge(network_acl_id: @id)
|
@@ -221,8 +221,8 @@ module Aws::EC2
|
|
221
221
|
#
|
222
222
|
# network_acl.delete_entry({
|
223
223
|
# dry_run: false,
|
224
|
-
# rule_number: 1, # required
|
225
224
|
# egress: false, # required
|
225
|
+
# rule_number: 1, # required
|
226
226
|
# })
|
227
227
|
# @param [Hash] options ({})
|
228
228
|
# @option options [Boolean] :dry_run
|
@@ -230,10 +230,10 @@ module Aws::EC2
|
|
230
230
|
# without actually making the request, and provides an error response.
|
231
231
|
# If you have the required permissions, the error response is
|
232
232
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
233
|
-
# @option options [required, Integer] :rule_number
|
234
|
-
# The rule number of the entry to delete.
|
235
233
|
# @option options [required, Boolean] :egress
|
236
234
|
# Indicates whether the rule is an egress rule.
|
235
|
+
# @option options [required, Integer] :rule_number
|
236
|
+
# The rule number of the entry to delete.
|
237
237
|
# @return [EmptyStructure]
|
238
238
|
def delete_entry(options = {})
|
239
239
|
options = options.merge(network_acl_id: @id)
|
@@ -244,18 +244,18 @@ module Aws::EC2
|
|
244
244
|
# @example Request syntax with placeholder values
|
245
245
|
#
|
246
246
|
# network_acl.replace_association({
|
247
|
-
# dry_run: false,
|
248
247
|
# association_id: "String", # required
|
248
|
+
# dry_run: false,
|
249
249
|
# })
|
250
250
|
# @param [Hash] options ({})
|
251
|
+
# @option options [required, String] :association_id
|
252
|
+
# The ID of the current association between the original network ACL and
|
253
|
+
# the subnet.
|
251
254
|
# @option options [Boolean] :dry_run
|
252
255
|
# Checks whether you have the required permissions for the action,
|
253
256
|
# without actually making the request, and provides an error response.
|
254
257
|
# If you have the required permissions, the error response is
|
255
258
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
256
|
-
# @option options [required, String] :association_id
|
257
|
-
# The ID of the current association between the original network ACL and
|
258
|
-
# the subnet.
|
259
259
|
# @return [Types::ReplaceNetworkAclAssociationResult]
|
260
260
|
def replace_association(options = {})
|
261
261
|
options = options.merge(network_acl_id: @id)
|
@@ -266,58 +266,58 @@ module Aws::EC2
|
|
266
266
|
# @example Request syntax with placeholder values
|
267
267
|
#
|
268
268
|
# network_acl.replace_entry({
|
269
|
+
# cidr_block: "String",
|
269
270
|
# dry_run: false,
|
270
|
-
# rule_number: 1, # required
|
271
|
-
# protocol: "String", # required
|
272
|
-
# rule_action: "allow", # required, accepts allow, deny
|
273
271
|
# egress: false, # required
|
274
|
-
# cidr_block: "String",
|
275
|
-
# ipv_6_cidr_block: "String",
|
276
272
|
# icmp_type_code: {
|
277
|
-
# type: 1,
|
278
273
|
# code: 1,
|
274
|
+
# type: 1,
|
279
275
|
# },
|
276
|
+
# ipv_6_cidr_block: "String",
|
280
277
|
# port_range: {
|
281
278
|
# from: 1,
|
282
279
|
# to: 1,
|
283
280
|
# },
|
281
|
+
# protocol: "String", # required
|
282
|
+
# rule_action: "allow", # required, accepts allow, deny
|
283
|
+
# rule_number: 1, # required
|
284
284
|
# })
|
285
285
|
# @param [Hash] options ({})
|
286
|
+
# @option options [String] :cidr_block
|
287
|
+
# The IPv4 network range to allow or deny, in CIDR notation (for example
|
288
|
+
# `172.16.0.0/24`).
|
286
289
|
# @option options [Boolean] :dry_run
|
287
290
|
# Checks whether you have the required permissions for the action,
|
288
291
|
# without actually making the request, and provides an error response.
|
289
292
|
# If you have the required permissions, the error response is
|
290
293
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
291
|
-
# @option options [required, Integer] :rule_number
|
292
|
-
# The rule number of the entry to replace.
|
293
|
-
# @option options [required, String] :protocol
|
294
|
-
# The IP protocol. You can specify `all` or `-1` to mean all protocols.
|
295
|
-
# If you specify `all`, `-1`, or a protocol number other than `tcp`,
|
296
|
-
# `udp`, or `icmp`, traffic on all ports is allowed, regardless of any
|
297
|
-
# ports or ICMP types or codes you specify. If you specify protocol `58`
|
298
|
-
# (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types
|
299
|
-
# and codes allowed, regardless of any that you specify. If you specify
|
300
|
-
# protocol `58` (ICMPv6) and specify an IPv6 CIDR block, you must
|
301
|
-
# specify an ICMP type and code.
|
302
|
-
# @option options [required, String] :rule_action
|
303
|
-
# Indicates whether to allow or deny the traffic that matches the rule.
|
304
294
|
# @option options [required, Boolean] :egress
|
305
295
|
# Indicates whether to replace the egress rule.
|
306
296
|
#
|
307
297
|
# Default: If no value is specified, we replace the ingress rule.
|
308
|
-
# @option options [String] :cidr_block
|
309
|
-
# The IPv4 network range to allow or deny, in CIDR notation (for example
|
310
|
-
# `172.16.0.0/24`).
|
311
|
-
# @option options [String] :ipv_6_cidr_block
|
312
|
-
# The IPv6 network range to allow or deny, in CIDR notation (for example
|
313
|
-
# `2001:bd8:1234:1a00::/64`).
|
314
298
|
# @option options [Types::IcmpTypeCode] :icmp_type_code
|
315
299
|
# ICMP protocol: The ICMP or ICMPv6 type and code. Required if
|
316
300
|
# specifying the ICMP (1) protocol, or protocol 58 (ICMPv6) with an IPv6
|
317
301
|
# CIDR block.
|
302
|
+
# @option options [String] :ipv_6_cidr_block
|
303
|
+
# The IPv6 network range to allow or deny, in CIDR notation (for example
|
304
|
+
# `2001:bd8:1234:1a00::/64`).
|
318
305
|
# @option options [Types::PortRange] :port_range
|
319
306
|
# TCP or UDP protocols: The range of ports the rule applies to. Required
|
320
307
|
# if specifying TCP (6) or UDP (17) for the protocol.
|
308
|
+
# @option options [required, String] :protocol
|
309
|
+
# The IP protocol. You can specify `all` or `-1` to mean all protocols.
|
310
|
+
# If you specify `all`, `-1`, or a protocol number other than `tcp`,
|
311
|
+
# `udp`, or `icmp`, traffic on all ports is allowed, regardless of any
|
312
|
+
# ports or ICMP types or codes you specify. If you specify protocol `58`
|
313
|
+
# (ICMPv6) and specify an IPv4 CIDR block, traffic for all ICMP types
|
314
|
+
# and codes allowed, regardless of any that you specify. If you specify
|
315
|
+
# protocol `58` (ICMPv6) and specify an IPv6 CIDR block, you must
|
316
|
+
# specify an ICMP type and code.
|
317
|
+
# @option options [required, String] :rule_action
|
318
|
+
# Indicates whether to allow or deny the traffic that matches the rule.
|
319
|
+
# @option options [required, Integer] :rule_number
|
320
|
+
# The rule number of the entry to replace.
|
321
321
|
# @return [EmptyStructure]
|
322
322
|
def replace_entry(options = {})
|
323
323
|
options = options.merge(network_acl_id: @id)
|
@@ -31,16 +31,10 @@ module Aws::EC2
|
|
31
31
|
end
|
32
32
|
alias :network_interface_id :id
|
33
33
|
|
34
|
-
# The
|
35
|
-
# @return [
|
36
|
-
def
|
37
|
-
data.
|
38
|
-
end
|
39
|
-
|
40
|
-
# The ID of the VPC.
|
41
|
-
# @return [String]
|
42
|
-
def vpc_id
|
43
|
-
data.vpc_id
|
34
|
+
# The network interface attachment.
|
35
|
+
# @return [Types::NetworkInterfaceAttachment]
|
36
|
+
def attachment
|
37
|
+
data.attachment
|
44
38
|
end
|
45
39
|
|
46
40
|
# The Availability Zone.
|
@@ -55,29 +49,22 @@ module Aws::EC2
|
|
55
49
|
data.description
|
56
50
|
end
|
57
51
|
|
58
|
-
#
|
59
|
-
# @return [
|
60
|
-
def
|
61
|
-
data.
|
52
|
+
# Any security groups for the network interface.
|
53
|
+
# @return [Array<Types::GroupIdentifier>]
|
54
|
+
def groups
|
55
|
+
data.groups
|
62
56
|
end
|
63
57
|
|
64
|
-
# The
|
65
|
-
# example, AWS Management Console or Auto Scaling).
|
58
|
+
# The type of interface.
|
66
59
|
# @return [String]
|
67
|
-
def
|
68
|
-
data.
|
69
|
-
end
|
70
|
-
|
71
|
-
# Indicates whether the network interface is being managed by AWS.
|
72
|
-
# @return [Boolean]
|
73
|
-
def requester_managed
|
74
|
-
data.requester_managed
|
60
|
+
def interface_type
|
61
|
+
data.interface_type
|
75
62
|
end
|
76
63
|
|
77
|
-
# The
|
78
|
-
# @return [
|
79
|
-
def
|
80
|
-
data.
|
64
|
+
# The IPv6 addresses associated with the network interface.
|
65
|
+
# @return [Array<Types::NetworkInterfaceIpv6Address>]
|
66
|
+
def ipv_6_addresses
|
67
|
+
data.ipv_6_addresses
|
81
68
|
end
|
82
69
|
|
83
70
|
# The MAC address.
|
@@ -86,10 +73,10 @@ module Aws::EC2
|
|
86
73
|
data.mac_address
|
87
74
|
end
|
88
75
|
|
89
|
-
# The
|
76
|
+
# The AWS account ID of the owner of the network interface.
|
90
77
|
# @return [String]
|
91
|
-
def
|
92
|
-
data.
|
78
|
+
def owner_id
|
79
|
+
data.owner_id
|
93
80
|
end
|
94
81
|
|
95
82
|
# The private DNS name.
|
@@ -98,22 +85,47 @@ module Aws::EC2
|
|
98
85
|
data.private_dns_name
|
99
86
|
end
|
100
87
|
|
88
|
+
# The IPv4 address of the network interface within the subnet.
|
89
|
+
# @return [String]
|
90
|
+
def private_ip_address
|
91
|
+
data.private_ip_address
|
92
|
+
end
|
93
|
+
|
94
|
+
# The private IPv4 addresses associated with the network interface.
|
95
|
+
# @return [Array<Types::NetworkInterfacePrivateIpAddress>]
|
96
|
+
def private_ip_addresses
|
97
|
+
data.private_ip_addresses
|
98
|
+
end
|
99
|
+
|
100
|
+
# The ID of the entity that launched the instance on your behalf (for
|
101
|
+
# example, AWS Management Console or Auto Scaling).
|
102
|
+
# @return [String]
|
103
|
+
def requester_id
|
104
|
+
data.requester_id
|
105
|
+
end
|
106
|
+
|
107
|
+
# Indicates whether the network interface is being managed by AWS.
|
108
|
+
# @return [Boolean]
|
109
|
+
def requester_managed
|
110
|
+
data.requester_managed
|
111
|
+
end
|
112
|
+
|
101
113
|
# Indicates whether traffic to or from the instance is validated.
|
102
114
|
# @return [Boolean]
|
103
115
|
def source_dest_check
|
104
116
|
data.source_dest_check
|
105
117
|
end
|
106
118
|
|
107
|
-
#
|
108
|
-
# @return [
|
109
|
-
def
|
110
|
-
data.
|
119
|
+
# The status of the network interface.
|
120
|
+
# @return [String]
|
121
|
+
def status
|
122
|
+
data.status
|
111
123
|
end
|
112
124
|
|
113
|
-
# The
|
114
|
-
# @return [
|
115
|
-
def
|
116
|
-
data.
|
125
|
+
# The ID of the subnet.
|
126
|
+
# @return [String]
|
127
|
+
def subnet_id
|
128
|
+
data.subnet_id
|
117
129
|
end
|
118
130
|
|
119
131
|
# Any tags assigned to the network interface.
|
@@ -122,22 +134,10 @@ module Aws::EC2
|
|
122
134
|
data.tag_set
|
123
135
|
end
|
124
136
|
|
125
|
-
# The
|
126
|
-
# @return [Array<Types::NetworkInterfacePrivateIpAddress>]
|
127
|
-
def private_ip_addresses
|
128
|
-
data.private_ip_addresses
|
129
|
-
end
|
130
|
-
|
131
|
-
# The IPv6 addresses associated with the network interface.
|
132
|
-
# @return [Array<Types::NetworkInterfaceIpv6Address>]
|
133
|
-
def ipv_6_addresses
|
134
|
-
data.ipv_6_addresses
|
135
|
-
end
|
136
|
-
|
137
|
-
# The type of interface.
|
137
|
+
# The ID of the VPC.
|
138
138
|
# @return [String]
|
139
|
-
def
|
140
|
-
data.
|
139
|
+
def vpc_id
|
140
|
+
data.vpc_id
|
141
141
|
end
|
142
142
|
|
143
143
|
# @!endgroup
|
@@ -180,11 +180,15 @@ module Aws::EC2
|
|
180
180
|
# @example Request syntax with placeholder values
|
181
181
|
#
|
182
182
|
# network_interface.assign_private_ip_addresses({
|
183
|
+
# allow_reassignment: false,
|
183
184
|
# private_ip_addresses: ["String"],
|
184
185
|
# secondary_private_ip_address_count: 1,
|
185
|
-
# allow_reassignment: false,
|
186
186
|
# })
|
187
187
|
# @param [Hash] options ({})
|
188
|
+
# @option options [Boolean] :allow_reassignment
|
189
|
+
# Indicates whether to allow an IP address that is already assigned to
|
190
|
+
# another network interface or instance to be reassigned to the
|
191
|
+
# specified network interface.
|
188
192
|
# @option options [Array<String>] :private_ip_addresses
|
189
193
|
# One or more IP addresses to be assigned as a secondary private IP
|
190
194
|
# address to the network interface. You can't specify this parameter
|
@@ -196,10 +200,6 @@ module Aws::EC2
|
|
196
200
|
# The number of secondary IP addresses to assign to the network
|
197
201
|
# interface. You can't specify this parameter when also specifying
|
198
202
|
# private IP addresses.
|
199
|
-
# @option options [Boolean] :allow_reassignment
|
200
|
-
# Indicates whether to allow an IP address that is already assigned to
|
201
|
-
# another network interface or instance to be reassigned to the
|
202
|
-
# specified network interface.
|
203
203
|
# @return [EmptyStructure]
|
204
204
|
def assign_private_ip_addresses(options = {})
|
205
205
|
options = options.merge(network_interface_id: @id)
|
@@ -210,11 +210,13 @@ module Aws::EC2
|
|
210
210
|
# @example Request syntax with placeholder values
|
211
211
|
#
|
212
212
|
# network_interface.attach({
|
213
|
+
# device_index: 1, # required
|
213
214
|
# dry_run: false,
|
214
215
|
# instance_id: "String", # required
|
215
|
-
# device_index: 1, # required
|
216
216
|
# })
|
217
217
|
# @param [Hash] options ({})
|
218
|
+
# @option options [required, Integer] :device_index
|
219
|
+
# The index of the device for the network interface attachment.
|
218
220
|
# @option options [Boolean] :dry_run
|
219
221
|
# Checks whether you have the required permissions for the action,
|
220
222
|
# without actually making the request, and provides an error response.
|
@@ -222,8 +224,6 @@ module Aws::EC2
|
|
222
224
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
223
225
|
# @option options [required, String] :instance_id
|
224
226
|
# The ID of the instance.
|
225
|
-
# @option options [required, Integer] :device_index
|
226
|
-
# The index of the device for the network interface attachment.
|
227
227
|
# @return [Types::AttachNetworkInterfaceResult]
|
228
228
|
def attach(options = {})
|
229
229
|
options = options.merge(network_interface_id: @id)
|
@@ -289,17 +289,17 @@ module Aws::EC2
|
|
289
289
|
# @example Request syntax with placeholder values
|
290
290
|
#
|
291
291
|
# network_interface.describe_attribute({
|
292
|
-
# dry_run: false,
|
293
292
|
# attribute: "description", # accepts description, groupSet, sourceDestCheck, attachment
|
293
|
+
# dry_run: false,
|
294
294
|
# })
|
295
295
|
# @param [Hash] options ({})
|
296
|
+
# @option options [String] :attribute
|
297
|
+
# The attribute of the network interface. This parameter is required.
|
296
298
|
# @option options [Boolean] :dry_run
|
297
299
|
# Checks whether you have the required permissions for the action,
|
298
300
|
# without actually making the request, and provides an error response.
|
299
301
|
# If you have the required permissions, the error response is
|
300
302
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
301
|
-
# @option options [String] :attribute
|
302
|
-
# The attribute of the network interface. This parameter is required.
|
303
303
|
# @return [Types::DescribeNetworkInterfaceAttributeResult]
|
304
304
|
def describe_attribute(options = {})
|
305
305
|
options = options.merge(network_interface_id: @id)
|
@@ -331,25 +331,34 @@ module Aws::EC2
|
|
331
331
|
# @example Request syntax with placeholder values
|
332
332
|
#
|
333
333
|
# network_interface.modify_attribute({
|
334
|
-
# dry_run: false,
|
335
|
-
# description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
336
|
-
# source_dest_check: {
|
337
|
-
# value: false,
|
338
|
-
# },
|
339
|
-
# groups: ["String"],
|
340
334
|
# attachment: {
|
341
335
|
# attachment_id: "String",
|
342
336
|
# delete_on_termination: false,
|
343
337
|
# },
|
338
|
+
# description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
339
|
+
# dry_run: false,
|
340
|
+
# groups: ["String"],
|
341
|
+
# source_dest_check: {
|
342
|
+
# value: false,
|
343
|
+
# },
|
344
344
|
# })
|
345
345
|
# @param [Hash] options ({})
|
346
|
+
# @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
|
347
|
+
# Information about the interface attachment. If modifying the 'delete
|
348
|
+
# on termination' attribute, you must specify the ID of the interface
|
349
|
+
# attachment.
|
350
|
+
# @option options [Types::AttributeValue] :description
|
351
|
+
# A description for the network interface.
|
346
352
|
# @option options [Boolean] :dry_run
|
347
353
|
# Checks whether you have the required permissions for the action,
|
348
354
|
# without actually making the request, and provides an error response.
|
349
355
|
# If you have the required permissions, the error response is
|
350
356
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
351
|
-
# @option options [
|
352
|
-
#
|
357
|
+
# @option options [Array<String>] :groups
|
358
|
+
# Changes the security groups for the network interface. The new set of
|
359
|
+
# groups you specify replaces the current set. You must specify at least
|
360
|
+
# one group, even if it's just the default security group in the VPC.
|
361
|
+
# You must specify the ID of the security group, not the name.
|
353
362
|
# @option options [Types::AttributeBooleanValue] :source_dest_check
|
354
363
|
# Indicates whether source/destination checking is enabled. A value of
|
355
364
|
# `true` means checking is enabled, and `false` means checking is
|
@@ -360,15 +369,6 @@ module Aws::EC2
|
|
360
369
|
#
|
361
370
|
#
|
362
371
|
# [1]: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html
|
363
|
-
# @option options [Array<String>] :groups
|
364
|
-
# Changes the security groups for the network interface. The new set of
|
365
|
-
# groups you specify replaces the current set. You must specify at least
|
366
|
-
# one group, even if it's just the default security group in the VPC.
|
367
|
-
# You must specify the ID of the security group, not the name.
|
368
|
-
# @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
|
369
|
-
# Information about the interface attachment. If modifying the 'delete
|
370
|
-
# on termination' attribute, you must specify the ID of the interface
|
371
|
-
# attachment.
|
372
372
|
# @return [EmptyStructure]
|
373
373
|
def modify_attribute(options = {})
|
374
374
|
options = options.merge(network_interface_id: @id)
|