aws-sdk-ec2 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,177 +1,175 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module EC2
10
- class RouteTableAssociation
11
-
12
- extend Aws::Deprecations
13
-
14
- # @overload def initialize(id, options = {})
15
- # @param [String] id
16
- # @option options [Client] :client
17
- # @overload def initialize(options = {})
18
- # @option options [required, String] :id
19
- # @option options [Client] :client
20
- def initialize(*args)
21
- options = Hash === args.last ? args.pop.dup : {}
22
- @id = extract_id(args, options)
23
- @data = options.delete(:data)
24
- @client = options.delete(:client) || Client.new(options)
25
- end
8
+ module Aws::EC2
9
+ class RouteTableAssociation
10
+
11
+ extend Aws::Deprecations
12
+
13
+ # @overload def initialize(id, options = {})
14
+ # @param [String] id
15
+ # @option options [Client] :client
16
+ # @overload def initialize(options = {})
17
+ # @option options [required, String] :id
18
+ # @option options [Client] :client
19
+ def initialize(*args)
20
+ options = Hash === args.last ? args.pop.dup : {}
21
+ @id = extract_id(args, options)
22
+ @data = options.delete(:data)
23
+ @client = options.delete(:client) || Client.new(options)
24
+ end
26
25
 
27
- # @!group Read-Only Attributes
26
+ # @!group Read-Only Attributes
28
27
 
29
- # @return [String]
30
- def id
31
- @id
32
- end
33
- alias :route_table_association_id :id
28
+ # @return [String]
29
+ def id
30
+ @id
31
+ end
32
+ alias :route_table_association_id :id
34
33
 
35
- # The ID of the route table.
36
- # @return [String]
37
- def route_table_id
38
- data.route_table_id
39
- end
34
+ # The ID of the route table.
35
+ # @return [String]
36
+ def route_table_id
37
+ data.route_table_id
38
+ end
40
39
 
41
- # The ID of the subnet. A subnet ID is not returned for an implicit
42
- # association.
43
- # @return [String]
44
- def subnet_id
45
- data.subnet_id
46
- end
40
+ # The ID of the subnet. A subnet ID is not returned for an implicit
41
+ # association.
42
+ # @return [String]
43
+ def subnet_id
44
+ data.subnet_id
45
+ end
47
46
 
48
- # Indicates whether this is the main route table.
49
- # @return [Boolean]
50
- def main
51
- data.main
52
- end
47
+ # Indicates whether this is the main route table.
48
+ # @return [Boolean]
49
+ def main
50
+ data.main
51
+ end
53
52
 
54
- # @!endgroup
53
+ # @!endgroup
55
54
 
56
- # @return [Client]
57
- def client
58
- @client
59
- end
55
+ # @return [Client]
56
+ def client
57
+ @client
58
+ end
60
59
 
61
- # @raise [Errors::ResourceNotLoadable]
62
- # @api private
63
- def load
64
- msg = "#load is not implemented, data only available via enumeration"
65
- raise Errors::ResourceNotLoadable, msg
66
- end
67
- alias :reload :load
68
-
69
- # @raise [Errors::ResourceNotLoadableError] Raises when {#data_loaded?} is `false`.
70
- # @return [Types::RouteTableAssociation]
71
- # Returns the data for this {RouteTableAssociation}.
72
- def data
73
- load unless @data
74
- @data
75
- end
60
+ # @raise [NotImplementedError]
61
+ # @api private
62
+ def load
63
+ msg = "#load is not implemented, data only available via enumeration"
64
+ raise NotImplementedError, msg
65
+ end
66
+ alias :reload :load
67
+
68
+ # @raise [NotImplementedError] Raises when {#data_loaded?} is `false`.
69
+ # @return [Types::RouteTableAssociation]
70
+ # Returns the data for this {RouteTableAssociation}.
71
+ def data
72
+ load unless @data
73
+ @data
74
+ end
76
75
 
77
- # @return [Boolean]
78
- # Returns `true` if this resource is loaded. Accessing attributes or
79
- # {#data} on an unloaded resource will trigger a call to {#load}.
80
- def data_loaded?
81
- !!@data
82
- end
76
+ # @return [Boolean]
77
+ # Returns `true` if this resource is loaded. Accessing attributes or
78
+ # {#data} on an unloaded resource will trigger a call to {#load}.
79
+ def data_loaded?
80
+ !!@data
81
+ end
83
82
 
84
- # @!group Actions
85
-
86
- # @example Request syntax with placeholder values
87
- #
88
- # route_table_association.delete({
89
- # dry_run: false,
90
- # })
91
- # @param [Hash] options ({})
92
- # @option options [Boolean] :dry_run
93
- # Checks whether you have the required permissions for the action,
94
- # without actually making the request, and provides an error response.
95
- # If you have the required permissions, the error response is
96
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
97
- # @return [EmptyStructure]
98
- def delete(options = {})
99
- options = options.merge(association_id: @id)
100
- resp = @client.disassociate_route_table(options)
101
- resp.data
102
- end
83
+ # @!group Actions
84
+
85
+ # @example Request syntax with placeholder values
86
+ #
87
+ # route_table_association.delete({
88
+ # dry_run: false,
89
+ # })
90
+ # @param [Hash] options ({})
91
+ # @option options [Boolean] :dry_run
92
+ # Checks whether you have the required permissions for the action,
93
+ # without actually making the request, and provides an error response.
94
+ # If you have the required permissions, the error response is
95
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
96
+ # @return [EmptyStructure]
97
+ def delete(options = {})
98
+ options = options.merge(association_id: @id)
99
+ resp = @client.disassociate_route_table(options)
100
+ resp.data
101
+ end
102
+
103
+ # @example Request syntax with placeholder values
104
+ #
105
+ # routetableassociation = route_table_association.replace_subnet({
106
+ # dry_run: false,
107
+ # route_table_id: "String", # required
108
+ # })
109
+ # @param [Hash] options ({})
110
+ # @option options [Boolean] :dry_run
111
+ # Checks whether you have the required permissions for the action,
112
+ # without actually making the request, and provides an error response.
113
+ # If you have the required permissions, the error response is
114
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
115
+ # @option options [required, String] :route_table_id
116
+ # The ID of the new route table to associate with the subnet.
117
+ # @return [RouteTableAssociation]
118
+ def replace_subnet(options = {})
119
+ options = options.merge(association_id: @id)
120
+ resp = @client.replace_route_table_association(options)
121
+ RouteTableAssociation.new(
122
+ id: resp.data.new_association_id,
123
+ client: @client
124
+ )
125
+ end
126
+
127
+ # @!group Associations
103
128
 
104
- # @example Request syntax with placeholder values
105
- #
106
- # routetableassociation = route_table_association.replace_subnet({
107
- # dry_run: false,
108
- # route_table_id: "String", # required
109
- # })
110
- # @param [Hash] options ({})
111
- # @option options [Boolean] :dry_run
112
- # Checks whether you have the required permissions for the action,
113
- # without actually making the request, and provides an error response.
114
- # If you have the required permissions, the error response is
115
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
116
- # @option options [required, String] :route_table_id
117
- # The ID of the new route table to associate with the subnet.
118
- # @return [RouteTableAssociation]
119
- def replace_subnet(options = {})
120
- options = options.merge(association_id: @id)
121
- resp = @client.replace_route_table_association(options)
122
- RouteTableAssociation.new(
123
- id: resp.data.new_association_id,
129
+ # @return [RouteTable, nil]
130
+ def route_table
131
+ if data.route_table_id
132
+ RouteTable.new(
133
+ id: data.route_table_id,
124
134
  client: @client
125
135
  )
136
+ else
137
+ nil
126
138
  end
139
+ end
127
140
 
128
- # @!group Associations
129
-
130
- # @return [RouteTable, nil]
131
- def route_table
132
- if data.route_table_id
133
- RouteTable.new(
134
- id: data.route_table_id,
135
- client: @client
136
- )
137
- else
138
- nil
139
- end
140
- end
141
-
142
- # @return [Subnet, nil]
143
- def subnet
144
- if data.subnet_id
145
- Subnet.new(
146
- id: data.subnet_id,
147
- client: @client
148
- )
149
- else
150
- nil
151
- end
141
+ # @return [Subnet, nil]
142
+ def subnet
143
+ if data.subnet_id
144
+ Subnet.new(
145
+ id: data.subnet_id,
146
+ client: @client
147
+ )
148
+ else
149
+ nil
152
150
  end
151
+ end
153
152
 
154
- # @deprecated
155
- # @api private
156
- def identifiers
157
- { id: @id }
158
- end
159
- deprecated(:identifiers)
160
-
161
- private
162
-
163
- def extract_id(args, options)
164
- value = args[0] || options.delete(:id)
165
- case value
166
- when String then value
167
- when nil then raise ArgumentError, "missing required option :id"
168
- else
169
- msg = "expected :id to be a String, got #{value.class}"
170
- raise ArgumentError, msg
171
- end
153
+ # @deprecated
154
+ # @api private
155
+ def identifiers
156
+ { id: @id }
157
+ end
158
+ deprecated(:identifiers)
159
+
160
+ private
161
+
162
+ def extract_id(args, options)
163
+ value = args[0] || options.delete(:id)
164
+ case value
165
+ when String then value
166
+ when nil then raise ArgumentError, "missing required option :id"
167
+ else
168
+ msg = "expected :id to be a String, got #{value.class}"
169
+ raise ArgumentError, msg
172
170
  end
173
-
174
- class Collection < Aws::Resources::Collection; end
175
171
  end
172
+
173
+ class Collection < Aws::Resources::Collection; end
176
174
  end
177
175
  end
@@ -1,554 +1,552 @@
1
1
  # WARNING ABOUT GENERATED CODE
2
2
  #
3
- # This file is generated. See the contributing for info on making contributions:
3
+ # This file is generated. See the contributing guide for more information:
4
4
  # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
5
  #
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
- module Aws
9
- module EC2
10
- class SecurityGroup
8
+ module Aws::EC2
9
+ class SecurityGroup
11
10
 
12
- extend Aws::Deprecations
11
+ extend Aws::Deprecations
13
12
 
14
- # @overload def initialize(id, options = {})
15
- # @param [String] id
16
- # @option options [Client] :client
17
- # @overload def initialize(options = {})
18
- # @option options [required, String] :id
19
- # @option options [Client] :client
20
- def initialize(*args)
21
- options = Hash === args.last ? args.pop.dup : {}
22
- @id = extract_id(args, options)
23
- @data = options.delete(:data)
24
- @client = options.delete(:client) || Client.new(options)
25
- end
13
+ # @overload def initialize(id, options = {})
14
+ # @param [String] id
15
+ # @option options [Client] :client
16
+ # @overload def initialize(options = {})
17
+ # @option options [required, String] :id
18
+ # @option options [Client] :client
19
+ def initialize(*args)
20
+ options = Hash === args.last ? args.pop.dup : {}
21
+ @id = extract_id(args, options)
22
+ @data = options.delete(:data)
23
+ @client = options.delete(:client) || Client.new(options)
24
+ end
26
25
 
27
- # @!group Read-Only Attributes
26
+ # @!group Read-Only Attributes
28
27
 
29
- # @return [String]
30
- def id
31
- @id
32
- end
33
- alias :group_id :id
28
+ # @return [String]
29
+ def id
30
+ @id
31
+ end
32
+ alias :group_id :id
34
33
 
35
- # The AWS account ID of the owner of the security group.
36
- # @return [String]
37
- def owner_id
38
- data.owner_id
39
- end
34
+ # The AWS account ID of the owner of the security group.
35
+ # @return [String]
36
+ def owner_id
37
+ data.owner_id
38
+ end
40
39
 
41
- # The name of the security group.
42
- # @return [String]
43
- def group_name
44
- data.group_name
45
- end
40
+ # The name of the security group.
41
+ # @return [String]
42
+ def group_name
43
+ data.group_name
44
+ end
46
45
 
47
- # A description of the security group.
48
- # @return [String]
49
- def description
50
- data.description
51
- end
46
+ # A description of the security group.
47
+ # @return [String]
48
+ def description
49
+ data.description
50
+ end
52
51
 
53
- # One or more inbound rules associated with the security group.
54
- # @return [Array<Types::IpPermission>]
55
- def ip_permissions
56
- data.ip_permissions
57
- end
52
+ # One or more inbound rules associated with the security group.
53
+ # @return [Array<Types::IpPermission>]
54
+ def ip_permissions
55
+ data.ip_permissions
56
+ end
58
57
 
59
- # \[EC2-VPC\] One or more outbound rules associated with the security
60
- # group.
61
- # @return [Array<Types::IpPermission>]
62
- def ip_permissions_egress
63
- data.ip_permissions_egress
64
- end
58
+ # \[EC2-VPC\] One or more outbound rules associated with the security
59
+ # group.
60
+ # @return [Array<Types::IpPermission>]
61
+ def ip_permissions_egress
62
+ data.ip_permissions_egress
63
+ end
65
64
 
66
- # \[EC2-VPC\] The ID of the VPC for the security group.
67
- # @return [String]
68
- def vpc_id
69
- data.vpc_id
70
- end
65
+ # \[EC2-VPC\] The ID of the VPC for the security group.
66
+ # @return [String]
67
+ def vpc_id
68
+ data.vpc_id
69
+ end
71
70
 
72
- # Any tags assigned to the security group.
73
- # @return [Array<Types::Tag>]
74
- def tags
75
- data.tags
76
- end
71
+ # Any tags assigned to the security group.
72
+ # @return [Array<Types::Tag>]
73
+ def tags
74
+ data.tags
75
+ end
77
76
 
78
- # @!endgroup
77
+ # @!endgroup
79
78
 
80
- # @return [Client]
81
- def client
82
- @client
83
- end
79
+ # @return [Client]
80
+ def client
81
+ @client
82
+ end
84
83
 
85
- # Loads, or reloads {#data} for the current {SecurityGroup}.
86
- # Returns `self` making it possible to chain methods.
87
- #
88
- # security_group.reload.data
89
- #
90
- # @return [self]
91
- def load
92
- resp = @client.describe_security_groups(group_ids: [@id])
93
- @data = resp.securitygroups[0]
94
- self
95
- end
96
- alias :reload :load
84
+ # Loads, or reloads {#data} for the current {SecurityGroup}.
85
+ # Returns `self` making it possible to chain methods.
86
+ #
87
+ # security_group.reload.data
88
+ #
89
+ # @return [self]
90
+ def load
91
+ resp = @client.describe_security_groups(group_ids: [@id])
92
+ @data = resp.securitygroups[0]
93
+ self
94
+ end
95
+ alias :reload :load
97
96
 
98
- # @return [Types::SecurityGroup]
99
- # Returns the data for this {SecurityGroup}. Calls
100
- # {Client#describe_security_groups} if {#data_loaded?} is `false`.
101
- def data
102
- load unless @data
103
- @data
104
- end
97
+ # @return [Types::SecurityGroup]
98
+ # Returns the data for this {SecurityGroup}. Calls
99
+ # {Client#describe_security_groups} if {#data_loaded?} is `false`.
100
+ def data
101
+ load unless @data
102
+ @data
103
+ end
105
104
 
106
- # @return [Boolean]
107
- # Returns `true` if this resource is loaded. Accessing attributes or
108
- # {#data} on an unloaded resource will trigger a call to {#load}.
109
- def data_loaded?
110
- !!@data
111
- end
105
+ # @return [Boolean]
106
+ # Returns `true` if this resource is loaded. Accessing attributes or
107
+ # {#data} on an unloaded resource will trigger a call to {#load}.
108
+ def data_loaded?
109
+ !!@data
110
+ end
112
111
 
113
- # @!group Actions
112
+ # @!group Actions
114
113
 
115
- # @example Request syntax with placeholder values
116
- #
117
- # security_group.authorize_egress({
118
- # dry_run: false,
119
- # source_security_group_name: "String",
120
- # source_security_group_owner_id: "String",
121
- # ip_protocol: "String",
122
- # from_port: 1,
123
- # to_port: 1,
124
- # cidr_ip: "String",
125
- # ip_permissions: [
126
- # {
127
- # ip_protocol: "String",
128
- # from_port: 1,
129
- # to_port: 1,
130
- # user_id_group_pairs: [
131
- # {
132
- # user_id: "String",
133
- # group_name: "String",
134
- # group_id: "String",
135
- # vpc_id: "String",
136
- # vpc_peering_connection_id: "String",
137
- # peering_status: "String",
138
- # },
139
- # ],
140
- # ip_ranges: [
141
- # {
142
- # cidr_ip: "String",
143
- # },
144
- # ],
145
- # ipv_6_ranges: [
146
- # {
147
- # cidr_ipv_6: "String",
148
- # },
149
- # ],
150
- # prefix_list_ids: [
151
- # {
152
- # prefix_list_id: "String",
153
- # },
154
- # ],
155
- # },
156
- # ],
157
- # })
158
- # @param [Hash] options ({})
159
- # @option options [Boolean] :dry_run
160
- # Checks whether you have the required permissions for the action,
161
- # without actually making the request, and provides an error response.
162
- # If you have the required permissions, the error response is
163
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
164
- # @option options [String] :source_security_group_name
165
- # The name of a destination security group. To authorize outbound access
166
- # to a destination security group, we recommend that you use a set of IP
167
- # permissions instead.
168
- # @option options [String] :source_security_group_owner_id
169
- # The AWS account number for a destination security group. To authorize
170
- # outbound access to a destination security group, we recommend that you
171
- # use a set of IP permissions instead.
172
- # @option options [String] :ip_protocol
173
- # The IP protocol name or number. We recommend that you specify the
174
- # protocol in a set of IP permissions instead.
175
- # @option options [Integer] :from_port
176
- # The start of port range for the TCP and UDP protocols, or an ICMP type
177
- # number. We recommend that you specify the port range in a set of IP
178
- # permissions instead.
179
- # @option options [Integer] :to_port
180
- # The end of port range for the TCP and UDP protocols, or an ICMP type
181
- # number. We recommend that you specify the port range in a set of IP
182
- # permissions instead.
183
- # @option options [String] :cidr_ip
184
- # The CIDR IPv4 address range. We recommend that you specify the CIDR
185
- # range in a set of IP permissions instead.
186
- # @option options [Array<Types::IpPermission>] :ip_permissions
187
- # A set of IP permissions. You can't specify a destination security
188
- # group and a CIDR IP address range.
189
- # @return [EmptyStructure]
190
- def authorize_egress(options = {})
191
- options = options.merge(group_id: @id)
192
- resp = @client.authorize_security_group_egress(options)
193
- resp.data
194
- end
114
+ # @example Request syntax with placeholder values
115
+ #
116
+ # security_group.authorize_egress({
117
+ # dry_run: false,
118
+ # source_security_group_name: "String",
119
+ # source_security_group_owner_id: "String",
120
+ # ip_protocol: "String",
121
+ # from_port: 1,
122
+ # to_port: 1,
123
+ # cidr_ip: "String",
124
+ # ip_permissions: [
125
+ # {
126
+ # ip_protocol: "String",
127
+ # from_port: 1,
128
+ # to_port: 1,
129
+ # user_id_group_pairs: [
130
+ # {
131
+ # user_id: "String",
132
+ # group_name: "String",
133
+ # group_id: "String",
134
+ # vpc_id: "String",
135
+ # vpc_peering_connection_id: "String",
136
+ # peering_status: "String",
137
+ # },
138
+ # ],
139
+ # ip_ranges: [
140
+ # {
141
+ # cidr_ip: "String",
142
+ # },
143
+ # ],
144
+ # ipv_6_ranges: [
145
+ # {
146
+ # cidr_ipv_6: "String",
147
+ # },
148
+ # ],
149
+ # prefix_list_ids: [
150
+ # {
151
+ # prefix_list_id: "String",
152
+ # },
153
+ # ],
154
+ # },
155
+ # ],
156
+ # })
157
+ # @param [Hash] options ({})
158
+ # @option options [Boolean] :dry_run
159
+ # Checks whether you have the required permissions for the action,
160
+ # without actually making the request, and provides an error response.
161
+ # If you have the required permissions, the error response is
162
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
163
+ # @option options [String] :source_security_group_name
164
+ # The name of a destination security group. To authorize outbound access
165
+ # to a destination security group, we recommend that you use a set of IP
166
+ # permissions instead.
167
+ # @option options [String] :source_security_group_owner_id
168
+ # The AWS account number for a destination security group. To authorize
169
+ # outbound access to a destination security group, we recommend that you
170
+ # use a set of IP permissions instead.
171
+ # @option options [String] :ip_protocol
172
+ # The IP protocol name or number. We recommend that you specify the
173
+ # protocol in a set of IP permissions instead.
174
+ # @option options [Integer] :from_port
175
+ # The start of port range for the TCP and UDP protocols, or an ICMP type
176
+ # number. We recommend that you specify the port range in a set of IP
177
+ # permissions instead.
178
+ # @option options [Integer] :to_port
179
+ # The end of port range for the TCP and UDP protocols, or an ICMP type
180
+ # number. We recommend that you specify the port range in a set of IP
181
+ # permissions instead.
182
+ # @option options [String] :cidr_ip
183
+ # The CIDR IPv4 address range. We recommend that you specify the CIDR
184
+ # range in a set of IP permissions instead.
185
+ # @option options [Array<Types::IpPermission>] :ip_permissions
186
+ # A set of IP permissions. You can't specify a destination security
187
+ # group and a CIDR IP address range.
188
+ # @return [EmptyStructure]
189
+ def authorize_egress(options = {})
190
+ options = options.merge(group_id: @id)
191
+ resp = @client.authorize_security_group_egress(options)
192
+ resp.data
193
+ end
195
194
 
196
- # @example Request syntax with placeholder values
197
- #
198
- # security_group.authorize_ingress({
199
- # dry_run: false,
200
- # group_name: "String",
201
- # source_security_group_name: "String",
202
- # source_security_group_owner_id: "String",
203
- # ip_protocol: "String",
204
- # from_port: 1,
205
- # to_port: 1,
206
- # cidr_ip: "String",
207
- # ip_permissions: [
208
- # {
209
- # ip_protocol: "String",
210
- # from_port: 1,
211
- # to_port: 1,
212
- # user_id_group_pairs: [
213
- # {
214
- # user_id: "String",
215
- # group_name: "String",
216
- # group_id: "String",
217
- # vpc_id: "String",
218
- # vpc_peering_connection_id: "String",
219
- # peering_status: "String",
220
- # },
221
- # ],
222
- # ip_ranges: [
223
- # {
224
- # cidr_ip: "String",
225
- # },
226
- # ],
227
- # ipv_6_ranges: [
228
- # {
229
- # cidr_ipv_6: "String",
230
- # },
231
- # ],
232
- # prefix_list_ids: [
233
- # {
234
- # prefix_list_id: "String",
235
- # },
236
- # ],
237
- # },
238
- # ],
239
- # })
240
- # @param [Hash] options ({})
241
- # @option options [Boolean] :dry_run
242
- # Checks whether you have the required permissions for the action,
243
- # without actually making the request, and provides an error response.
244
- # If you have the required permissions, the error response is
245
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
246
- # @option options [String] :group_name
247
- # \[EC2-Classic, default VPC\] The name of the security group.
248
- # @option options [String] :source_security_group_name
249
- # \[EC2-Classic, default VPC\] The name of the source security group.
250
- # You can't specify this parameter in combination with the following
251
- # parameters: the CIDR IP address range, the start of the port range,
252
- # the IP protocol, and the end of the port range. Creates rules that
253
- # grant full ICMP, UDP, and TCP access. To create a rule with a specific
254
- # IP protocol and port range, use a set of IP permissions instead. For
255
- # EC2-VPC, the source security group must be in the same VPC.
256
- # @option options [String] :source_security_group_owner_id
257
- # \[EC2-Classic\] The AWS account number for the source security group,
258
- # if the source security group is in a different account. You can't
259
- # specify this parameter in combination with the following parameters:
260
- # the CIDR IP address range, the IP protocol, the start of the port
261
- # range, and the end of the port range. Creates rules that grant full
262
- # ICMP, UDP, and TCP access. To create a rule with a specific IP
263
- # protocol and port range, use a set of IP permissions instead.
264
- # @option options [String] :ip_protocol
265
- # The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol
266
- # Numbers][1]). (VPC only) Use `-1` to specify all protocols. If you
267
- # specify `-1`, or a protocol number other than `tcp`, `udp`, `icmp`, or
268
- # `58` (ICMPv6), traffic on all ports is allowed, regardless of any
269
- # ports you specify. For `tcp`, `udp`, and `icmp`, you must specify a
270
- # port range. For protocol `58` (ICMPv6), you can optionally specify a
271
- # port range; if you don't, traffic for all types and codes is allowed.
272
- #
273
- #
274
- #
275
- # [1]: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
276
- # @option options [Integer] :from_port
277
- # The start of port range for the TCP and UDP protocols, or an
278
- # ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type number, use `-1` to
279
- # specify all types.
280
- # @option options [Integer] :to_port
281
- # The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
282
- # code number. For the ICMP/ICMPv6 code number, use `-1` to specify all
283
- # codes.
284
- # @option options [String] :cidr_ip
285
- # The CIDR IPv4 address range. You can't specify this parameter when
286
- # specifying a source security group.
287
- # @option options [Array<Types::IpPermission>] :ip_permissions
288
- # A set of IP permissions. Can be used to specify multiple rules in a
289
- # single command.
290
- # @return [EmptyStructure]
291
- def authorize_ingress(options = {})
292
- options = options.merge(group_id: @id)
293
- resp = @client.authorize_security_group_ingress(options)
294
- resp.data
295
- end
195
+ # @example Request syntax with placeholder values
196
+ #
197
+ # security_group.authorize_ingress({
198
+ # dry_run: false,
199
+ # group_name: "String",
200
+ # source_security_group_name: "String",
201
+ # source_security_group_owner_id: "String",
202
+ # ip_protocol: "String",
203
+ # from_port: 1,
204
+ # to_port: 1,
205
+ # cidr_ip: "String",
206
+ # ip_permissions: [
207
+ # {
208
+ # ip_protocol: "String",
209
+ # from_port: 1,
210
+ # to_port: 1,
211
+ # user_id_group_pairs: [
212
+ # {
213
+ # user_id: "String",
214
+ # group_name: "String",
215
+ # group_id: "String",
216
+ # vpc_id: "String",
217
+ # vpc_peering_connection_id: "String",
218
+ # peering_status: "String",
219
+ # },
220
+ # ],
221
+ # ip_ranges: [
222
+ # {
223
+ # cidr_ip: "String",
224
+ # },
225
+ # ],
226
+ # ipv_6_ranges: [
227
+ # {
228
+ # cidr_ipv_6: "String",
229
+ # },
230
+ # ],
231
+ # prefix_list_ids: [
232
+ # {
233
+ # prefix_list_id: "String",
234
+ # },
235
+ # ],
236
+ # },
237
+ # ],
238
+ # })
239
+ # @param [Hash] options ({})
240
+ # @option options [Boolean] :dry_run
241
+ # Checks whether you have the required permissions for the action,
242
+ # without actually making the request, and provides an error response.
243
+ # If you have the required permissions, the error response is
244
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
245
+ # @option options [String] :group_name
246
+ # \[EC2-Classic, default VPC\] The name of the security group.
247
+ # @option options [String] :source_security_group_name
248
+ # \[EC2-Classic, default VPC\] The name of the source security group.
249
+ # You can't specify this parameter in combination with the following
250
+ # parameters: the CIDR IP address range, the start of the port range,
251
+ # the IP protocol, and the end of the port range. Creates rules that
252
+ # grant full ICMP, UDP, and TCP access. To create a rule with a specific
253
+ # IP protocol and port range, use a set of IP permissions instead. For
254
+ # EC2-VPC, the source security group must be in the same VPC.
255
+ # @option options [String] :source_security_group_owner_id
256
+ # \[EC2-Classic\] The AWS account number for the source security group,
257
+ # if the source security group is in a different account. You can't
258
+ # specify this parameter in combination with the following parameters:
259
+ # the CIDR IP address range, the IP protocol, the start of the port
260
+ # range, and the end of the port range. Creates rules that grant full
261
+ # ICMP, UDP, and TCP access. To create a rule with a specific IP
262
+ # protocol and port range, use a set of IP permissions instead.
263
+ # @option options [String] :ip_protocol
264
+ # The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol
265
+ # Numbers][1]). (VPC only) Use `-1` to specify all protocols. If you
266
+ # specify `-1`, or a protocol number other than `tcp`, `udp`, `icmp`, or
267
+ # `58` (ICMPv6), traffic on all ports is allowed, regardless of any
268
+ # ports you specify. For `tcp`, `udp`, and `icmp`, you must specify a
269
+ # port range. For protocol `58` (ICMPv6), you can optionally specify a
270
+ # port range; if you don't, traffic for all types and codes is allowed.
271
+ #
272
+ #
273
+ #
274
+ # [1]: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
275
+ # @option options [Integer] :from_port
276
+ # The start of port range for the TCP and UDP protocols, or an
277
+ # ICMP/ICMPv6 type number. For the ICMP/ICMPv6 type number, use `-1` to
278
+ # specify all types.
279
+ # @option options [Integer] :to_port
280
+ # The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
281
+ # code number. For the ICMP/ICMPv6 code number, use `-1` to specify all
282
+ # codes.
283
+ # @option options [String] :cidr_ip
284
+ # The CIDR IPv4 address range. You can't specify this parameter when
285
+ # specifying a source security group.
286
+ # @option options [Array<Types::IpPermission>] :ip_permissions
287
+ # A set of IP permissions. Can be used to specify multiple rules in a
288
+ # single command.
289
+ # @return [EmptyStructure]
290
+ def authorize_ingress(options = {})
291
+ options = options.merge(group_id: @id)
292
+ resp = @client.authorize_security_group_ingress(options)
293
+ resp.data
294
+ end
296
295
 
297
- # @example Request syntax with placeholder values
298
- #
299
- # tag = security_group.create_tags({
300
- # dry_run: false,
301
- # tags: [ # required
302
- # {
303
- # key: "String",
304
- # value: "String",
305
- # },
306
- # ],
307
- # })
308
- # @param [Hash] options ({})
309
- # @option options [Boolean] :dry_run
310
- # Checks whether you have the required permissions for the action,
311
- # without actually making the request, and provides an error response.
312
- # If you have the required permissions, the error response is
313
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
314
- # @option options [required, Array<Types::Tag>] :tags
315
- # One or more tags. The `value` parameter is required, but if you don't
316
- # want the tag to have a value, specify the parameter with no value, and
317
- # we set the value to an empty string.
318
- # @return [Tag::Collection]
319
- def create_tags(options = {})
320
- batch = []
321
- options = Aws::Util.deep_merge(options, resources: [@id])
322
- resp = @client.create_tags(options)
323
- options[:tags].each do |t|
324
- batch << Tag.new(
325
- resource_id: @id,
326
- key: t[:key],
327
- value: t[:value],
328
- client: @client
329
- )
330
- end
331
- Tag::Collection.new([batch], size: batch.size)
296
+ # @example Request syntax with placeholder values
297
+ #
298
+ # tag = security_group.create_tags({
299
+ # dry_run: false,
300
+ # tags: [ # required
301
+ # {
302
+ # key: "String",
303
+ # value: "String",
304
+ # },
305
+ # ],
306
+ # })
307
+ # @param [Hash] options ({})
308
+ # @option options [Boolean] :dry_run
309
+ # Checks whether you have the required permissions for the action,
310
+ # without actually making the request, and provides an error response.
311
+ # If you have the required permissions, the error response is
312
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
313
+ # @option options [required, Array<Types::Tag>] :tags
314
+ # One or more tags. The `value` parameter is required, but if you don't
315
+ # want the tag to have a value, specify the parameter with no value, and
316
+ # we set the value to an empty string.
317
+ # @return [Tag::Collection]
318
+ def create_tags(options = {})
319
+ batch = []
320
+ options = Aws::Util.deep_merge(options, resources: [@id])
321
+ resp = @client.create_tags(options)
322
+ options[:tags].each do |t|
323
+ batch << Tag.new(
324
+ resource_id: @id,
325
+ key: t[:key],
326
+ value: t[:value],
327
+ client: @client
328
+ )
332
329
  end
330
+ Tag::Collection.new([batch], size: batch.size)
331
+ end
333
332
 
334
- # @example Request syntax with placeholder values
335
- #
336
- # security_group.delete({
337
- # dry_run: false,
338
- # group_name: "String",
339
- # })
340
- # @param [Hash] options ({})
341
- # @option options [Boolean] :dry_run
342
- # Checks whether you have the required permissions for the action,
343
- # without actually making the request, and provides an error response.
344
- # If you have the required permissions, the error response is
345
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
346
- # @option options [String] :group_name
347
- # \[EC2-Classic, default VPC\] The name of the security group. You can
348
- # specify either the security group name or the security group ID.
349
- # @return [EmptyStructure]
350
- def delete(options = {})
351
- options = options.merge(group_id: @id)
352
- resp = @client.delete_security_group(options)
353
- resp.data
354
- end
333
+ # @example Request syntax with placeholder values
334
+ #
335
+ # security_group.delete({
336
+ # dry_run: false,
337
+ # group_name: "String",
338
+ # })
339
+ # @param [Hash] options ({})
340
+ # @option options [Boolean] :dry_run
341
+ # Checks whether you have the required permissions for the action,
342
+ # without actually making the request, and provides an error response.
343
+ # If you have the required permissions, the error response is
344
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
345
+ # @option options [String] :group_name
346
+ # \[EC2-Classic, default VPC\] The name of the security group. You can
347
+ # specify either the security group name or the security group ID.
348
+ # @return [EmptyStructure]
349
+ def delete(options = {})
350
+ options = options.merge(group_id: @id)
351
+ resp = @client.delete_security_group(options)
352
+ resp.data
353
+ end
355
354
 
356
- # @example Request syntax with placeholder values
357
- #
358
- # security_group.revoke_egress({
359
- # dry_run: false,
360
- # source_security_group_name: "String",
361
- # source_security_group_owner_id: "String",
362
- # ip_protocol: "String",
363
- # from_port: 1,
364
- # to_port: 1,
365
- # cidr_ip: "String",
366
- # ip_permissions: [
367
- # {
368
- # ip_protocol: "String",
369
- # from_port: 1,
370
- # to_port: 1,
371
- # user_id_group_pairs: [
372
- # {
373
- # user_id: "String",
374
- # group_name: "String",
375
- # group_id: "String",
376
- # vpc_id: "String",
377
- # vpc_peering_connection_id: "String",
378
- # peering_status: "String",
379
- # },
380
- # ],
381
- # ip_ranges: [
382
- # {
383
- # cidr_ip: "String",
384
- # },
385
- # ],
386
- # ipv_6_ranges: [
387
- # {
388
- # cidr_ipv_6: "String",
389
- # },
390
- # ],
391
- # prefix_list_ids: [
392
- # {
393
- # prefix_list_id: "String",
394
- # },
395
- # ],
396
- # },
397
- # ],
398
- # })
399
- # @param [Hash] options ({})
400
- # @option options [Boolean] :dry_run
401
- # Checks whether you have the required permissions for the action,
402
- # without actually making the request, and provides an error response.
403
- # If you have the required permissions, the error response is
404
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
405
- # @option options [String] :source_security_group_name
406
- # The name of a destination security group. To revoke outbound access to
407
- # a destination security group, we recommend that you use a set of IP
408
- # permissions instead.
409
- # @option options [String] :source_security_group_owner_id
410
- # The AWS account number for a destination security group. To revoke
411
- # outbound access to a destination security group, we recommend that you
412
- # use a set of IP permissions instead.
413
- # @option options [String] :ip_protocol
414
- # The IP protocol name or number. We recommend that you specify the
415
- # protocol in a set of IP permissions instead.
416
- # @option options [Integer] :from_port
417
- # The start of port range for the TCP and UDP protocols, or an ICMP type
418
- # number. We recommend that you specify the port range in a set of IP
419
- # permissions instead.
420
- # @option options [Integer] :to_port
421
- # The end of port range for the TCP and UDP protocols, or an ICMP type
422
- # number. We recommend that you specify the port range in a set of IP
423
- # permissions instead.
424
- # @option options [String] :cidr_ip
425
- # The CIDR IP address range. We recommend that you specify the CIDR
426
- # range in a set of IP permissions instead.
427
- # @option options [Array<Types::IpPermission>] :ip_permissions
428
- # A set of IP permissions. You can't specify a destination security
429
- # group and a CIDR IP address range.
430
- # @return [EmptyStructure]
431
- def revoke_egress(options = {})
432
- options = options.merge(group_id: @id)
433
- resp = @client.revoke_security_group_egress(options)
434
- resp.data
435
- end
355
+ # @example Request syntax with placeholder values
356
+ #
357
+ # security_group.revoke_egress({
358
+ # dry_run: false,
359
+ # source_security_group_name: "String",
360
+ # source_security_group_owner_id: "String",
361
+ # ip_protocol: "String",
362
+ # from_port: 1,
363
+ # to_port: 1,
364
+ # cidr_ip: "String",
365
+ # ip_permissions: [
366
+ # {
367
+ # ip_protocol: "String",
368
+ # from_port: 1,
369
+ # to_port: 1,
370
+ # user_id_group_pairs: [
371
+ # {
372
+ # user_id: "String",
373
+ # group_name: "String",
374
+ # group_id: "String",
375
+ # vpc_id: "String",
376
+ # vpc_peering_connection_id: "String",
377
+ # peering_status: "String",
378
+ # },
379
+ # ],
380
+ # ip_ranges: [
381
+ # {
382
+ # cidr_ip: "String",
383
+ # },
384
+ # ],
385
+ # ipv_6_ranges: [
386
+ # {
387
+ # cidr_ipv_6: "String",
388
+ # },
389
+ # ],
390
+ # prefix_list_ids: [
391
+ # {
392
+ # prefix_list_id: "String",
393
+ # },
394
+ # ],
395
+ # },
396
+ # ],
397
+ # })
398
+ # @param [Hash] options ({})
399
+ # @option options [Boolean] :dry_run
400
+ # Checks whether you have the required permissions for the action,
401
+ # without actually making the request, and provides an error response.
402
+ # If you have the required permissions, the error response is
403
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
404
+ # @option options [String] :source_security_group_name
405
+ # The name of a destination security group. To revoke outbound access to
406
+ # a destination security group, we recommend that you use a set of IP
407
+ # permissions instead.
408
+ # @option options [String] :source_security_group_owner_id
409
+ # The AWS account number for a destination security group. To revoke
410
+ # outbound access to a destination security group, we recommend that you
411
+ # use a set of IP permissions instead.
412
+ # @option options [String] :ip_protocol
413
+ # The IP protocol name or number. We recommend that you specify the
414
+ # protocol in a set of IP permissions instead.
415
+ # @option options [Integer] :from_port
416
+ # The start of port range for the TCP and UDP protocols, or an ICMP type
417
+ # number. We recommend that you specify the port range in a set of IP
418
+ # permissions instead.
419
+ # @option options [Integer] :to_port
420
+ # The end of port range for the TCP and UDP protocols, or an ICMP type
421
+ # number. We recommend that you specify the port range in a set of IP
422
+ # permissions instead.
423
+ # @option options [String] :cidr_ip
424
+ # The CIDR IP address range. We recommend that you specify the CIDR
425
+ # range in a set of IP permissions instead.
426
+ # @option options [Array<Types::IpPermission>] :ip_permissions
427
+ # A set of IP permissions. You can't specify a destination security
428
+ # group and a CIDR IP address range.
429
+ # @return [EmptyStructure]
430
+ def revoke_egress(options = {})
431
+ options = options.merge(group_id: @id)
432
+ resp = @client.revoke_security_group_egress(options)
433
+ resp.data
434
+ end
436
435
 
437
- # @example Request syntax with placeholder values
438
- #
439
- # security_group.revoke_ingress({
440
- # dry_run: false,
441
- # group_name: "String",
442
- # source_security_group_name: "String",
443
- # source_security_group_owner_id: "String",
444
- # ip_protocol: "String",
445
- # from_port: 1,
446
- # to_port: 1,
447
- # cidr_ip: "String",
448
- # ip_permissions: [
449
- # {
450
- # ip_protocol: "String",
451
- # from_port: 1,
452
- # to_port: 1,
453
- # user_id_group_pairs: [
454
- # {
455
- # user_id: "String",
456
- # group_name: "String",
457
- # group_id: "String",
458
- # vpc_id: "String",
459
- # vpc_peering_connection_id: "String",
460
- # peering_status: "String",
461
- # },
462
- # ],
463
- # ip_ranges: [
464
- # {
465
- # cidr_ip: "String",
466
- # },
467
- # ],
468
- # ipv_6_ranges: [
469
- # {
470
- # cidr_ipv_6: "String",
471
- # },
472
- # ],
473
- # prefix_list_ids: [
474
- # {
475
- # prefix_list_id: "String",
476
- # },
477
- # ],
478
- # },
479
- # ],
480
- # })
481
- # @param [Hash] options ({})
482
- # @option options [Boolean] :dry_run
483
- # Checks whether you have the required permissions for the action,
484
- # without actually making the request, and provides an error response.
485
- # If you have the required permissions, the error response is
486
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
487
- # @option options [String] :group_name
488
- # \[EC2-Classic, default VPC\] The name of the security group.
489
- # @option options [String] :source_security_group_name
490
- # \[EC2-Classic, default VPC\] The name of the source security group.
491
- # You can't specify this parameter in combination with the following
492
- # parameters: the CIDR IP address range, the start of the port range,
493
- # the IP protocol, and the end of the port range. For EC2-VPC, the
494
- # source security group must be in the same VPC. To revoke a specific
495
- # rule for an IP protocol and port range, use a set of IP permissions
496
- # instead.
497
- # @option options [String] :source_security_group_owner_id
498
- # \[EC2-Classic\] The AWS account ID of the source security group, if
499
- # the source security group is in a different account. You can't
500
- # specify this parameter in combination with the following parameters:
501
- # the CIDR IP address range, the IP protocol, the start of the port
502
- # range, and the end of the port range. To revoke a specific rule for an
503
- # IP protocol and port range, use a set of IP permissions instead.
504
- # @option options [String] :ip_protocol
505
- # The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol
506
- # Numbers][1]). Use `-1` to specify all.
507
- #
508
- #
509
- #
510
- # [1]: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
511
- # @option options [Integer] :from_port
512
- # The start of port range for the TCP and UDP protocols, or an ICMP type
513
- # number. For the ICMP type number, use `-1` to specify all ICMP types.
514
- # @option options [Integer] :to_port
515
- # The end of port range for the TCP and UDP protocols, or an ICMP code
516
- # number. For the ICMP code number, use `-1` to specify all ICMP codes
517
- # for the ICMP type.
518
- # @option options [String] :cidr_ip
519
- # The CIDR IP address range. You can't specify this parameter when
520
- # specifying a source security group.
521
- # @option options [Array<Types::IpPermission>] :ip_permissions
522
- # A set of IP permissions. You can't specify a source security group
523
- # and a CIDR IP address range.
524
- # @return [EmptyStructure]
525
- def revoke_ingress(options = {})
526
- options = options.merge(group_id: @id)
527
- resp = @client.revoke_security_group_ingress(options)
528
- resp.data
529
- end
436
+ # @example Request syntax with placeholder values
437
+ #
438
+ # security_group.revoke_ingress({
439
+ # dry_run: false,
440
+ # group_name: "String",
441
+ # source_security_group_name: "String",
442
+ # source_security_group_owner_id: "String",
443
+ # ip_protocol: "String",
444
+ # from_port: 1,
445
+ # to_port: 1,
446
+ # cidr_ip: "String",
447
+ # ip_permissions: [
448
+ # {
449
+ # ip_protocol: "String",
450
+ # from_port: 1,
451
+ # to_port: 1,
452
+ # user_id_group_pairs: [
453
+ # {
454
+ # user_id: "String",
455
+ # group_name: "String",
456
+ # group_id: "String",
457
+ # vpc_id: "String",
458
+ # vpc_peering_connection_id: "String",
459
+ # peering_status: "String",
460
+ # },
461
+ # ],
462
+ # ip_ranges: [
463
+ # {
464
+ # cidr_ip: "String",
465
+ # },
466
+ # ],
467
+ # ipv_6_ranges: [
468
+ # {
469
+ # cidr_ipv_6: "String",
470
+ # },
471
+ # ],
472
+ # prefix_list_ids: [
473
+ # {
474
+ # prefix_list_id: "String",
475
+ # },
476
+ # ],
477
+ # },
478
+ # ],
479
+ # })
480
+ # @param [Hash] options ({})
481
+ # @option options [Boolean] :dry_run
482
+ # Checks whether you have the required permissions for the action,
483
+ # without actually making the request, and provides an error response.
484
+ # If you have the required permissions, the error response is
485
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
486
+ # @option options [String] :group_name
487
+ # \[EC2-Classic, default VPC\] The name of the security group.
488
+ # @option options [String] :source_security_group_name
489
+ # \[EC2-Classic, default VPC\] The name of the source security group.
490
+ # You can't specify this parameter in combination with the following
491
+ # parameters: the CIDR IP address range, the start of the port range,
492
+ # the IP protocol, and the end of the port range. For EC2-VPC, the
493
+ # source security group must be in the same VPC. To revoke a specific
494
+ # rule for an IP protocol and port range, use a set of IP permissions
495
+ # instead.
496
+ # @option options [String] :source_security_group_owner_id
497
+ # \[EC2-Classic\] The AWS account ID of the source security group, if
498
+ # the source security group is in a different account. You can't
499
+ # specify this parameter in combination with the following parameters:
500
+ # the CIDR IP address range, the IP protocol, the start of the port
501
+ # range, and the end of the port range. To revoke a specific rule for an
502
+ # IP protocol and port range, use a set of IP permissions instead.
503
+ # @option options [String] :ip_protocol
504
+ # The IP protocol name (`tcp`, `udp`, `icmp`) or number (see [Protocol
505
+ # Numbers][1]). Use `-1` to specify all.
506
+ #
507
+ #
508
+ #
509
+ # [1]: http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
510
+ # @option options [Integer] :from_port
511
+ # The start of port range for the TCP and UDP protocols, or an ICMP type
512
+ # number. For the ICMP type number, use `-1` to specify all ICMP types.
513
+ # @option options [Integer] :to_port
514
+ # The end of port range for the TCP and UDP protocols, or an ICMP code
515
+ # number. For the ICMP code number, use `-1` to specify all ICMP codes
516
+ # for the ICMP type.
517
+ # @option options [String] :cidr_ip
518
+ # The CIDR IP address range. You can't specify this parameter when
519
+ # specifying a source security group.
520
+ # @option options [Array<Types::IpPermission>] :ip_permissions
521
+ # A set of IP permissions. You can't specify a source security group
522
+ # and a CIDR IP address range.
523
+ # @return [EmptyStructure]
524
+ def revoke_ingress(options = {})
525
+ options = options.merge(group_id: @id)
526
+ resp = @client.revoke_security_group_ingress(options)
527
+ resp.data
528
+ end
530
529
 
531
- # @deprecated
532
- # @api private
533
- def identifiers
534
- { id: @id }
535
- end
536
- deprecated(:identifiers)
530
+ # @deprecated
531
+ # @api private
532
+ def identifiers
533
+ { id: @id }
534
+ end
535
+ deprecated(:identifiers)
537
536
 
538
- private
537
+ private
539
538
 
540
- def extract_id(args, options)
541
- value = args[0] || options.delete(:id)
542
- case value
543
- when String then value
544
- when nil then raise ArgumentError, "missing required option :id"
545
- else
546
- msg = "expected :id to be a String, got #{value.class}"
547
- raise ArgumentError, msg
548
- end
539
+ def extract_id(args, options)
540
+ value = args[0] || options.delete(:id)
541
+ case value
542
+ when String then value
543
+ when nil then raise ArgumentError, "missing required option :id"
544
+ else
545
+ msg = "expected :id to be a String, got #{value.class}"
546
+ raise ArgumentError, msg
549
547
  end
550
-
551
- class Collection < Aws::Resources::Collection; end
552
548
  end
549
+
550
+ class Collection < Aws::Resources::Collection; end
553
551
  end
554
552
  end