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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aws-sdk-rds.rb +2 -2
  3. data/lib/aws-sdk-rds/account_quota.rb +79 -81
  4. data/lib/aws-sdk-rds/certificate.rb +99 -101
  5. data/lib/aws-sdk-rds/client.rb +10575 -9119
  6. data/lib/aws-sdk-rds/client_api.rb +3049 -3023
  7. data/lib/aws-sdk-rds/db_cluster.rb +1005 -1007
  8. data/lib/aws-sdk-rds/db_cluster_parameter_group.rb +204 -206
  9. data/lib/aws-sdk-rds/db_cluster_snapshot.rb +430 -432
  10. data/lib/aws-sdk-rds/db_engine.rb +208 -210
  11. data/lib/aws-sdk-rds/db_engine_version.rb +218 -219
  12. data/lib/aws-sdk-rds/db_instance.rb +2747 -2567
  13. data/lib/aws-sdk-rds/db_log_file.rb +145 -147
  14. data/lib/aws-sdk-rds/db_parameter_group.rb +411 -413
  15. data/lib/aws-sdk-rds/db_parameter_group_family.rb +135 -137
  16. data/lib/aws-sdk-rds/db_security_group.rb +316 -318
  17. data/lib/aws-sdk-rds/db_snapshot.rb +705 -650
  18. data/lib/aws-sdk-rds/db_snapshot_attribute.rb +137 -139
  19. data/lib/aws-sdk-rds/db_subnet_group.rb +161 -163
  20. data/lib/aws-sdk-rds/errors.rb +4 -13
  21. data/lib/aws-sdk-rds/event.rb +108 -110
  22. data/lib/aws-sdk-rds/event_category_map.rb +73 -75
  23. data/lib/aws-sdk-rds/event_subscription.rb +313 -315
  24. data/lib/aws-sdk-rds/option_group.rb +247 -249
  25. data/lib/aws-sdk-rds/option_group_option.rb +135 -137
  26. data/lib/aws-sdk-rds/parameter.rb +116 -118
  27. data/lib/aws-sdk-rds/pending_maintenance_action.rb +182 -184
  28. data/lib/aws-sdk-rds/plugins/cross_region_copying.rb +64 -0
  29. data/lib/aws-sdk-rds/reserved_db_instance.rb +156 -158
  30. data/lib/aws-sdk-rds/reserved_db_instances_offering.rb +154 -156
  31. data/lib/aws-sdk-rds/resource.rb +2395 -2288
  32. data/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb +89 -91
  33. data/lib/aws-sdk-rds/types.rb +12091 -10977
  34. data/lib/aws-sdk-rds/waiters.rb +127 -128
  35. metadata +3 -2
@@ -1,283 +1,281 @@
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 RDS
10
- class OptionGroup
8
+ module Aws::RDS
9
+ class OptionGroup
11
10
 
12
- extend Aws::Deprecations
11
+ extend Aws::Deprecations
13
12
 
14
- # @overload def initialize(name, options = {})
15
- # @param [String] name
16
- # @option options [Client] :client
17
- # @overload def initialize(options = {})
18
- # @option options [required, String] :name
19
- # @option options [Client] :client
20
- def initialize(*args)
21
- options = Hash === args.last ? args.pop.dup : {}
22
- @name = extract_name(args, options)
23
- @data = options.delete(:data)
24
- @client = options.delete(:client) || Client.new(options)
25
- end
13
+ # @overload def initialize(name, options = {})
14
+ # @param [String] name
15
+ # @option options [Client] :client
16
+ # @overload def initialize(options = {})
17
+ # @option options [required, String] :name
18
+ # @option options [Client] :client
19
+ def initialize(*args)
20
+ options = Hash === args.last ? args.pop.dup : {}
21
+ @name = extract_name(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 name
31
- @name
32
- end
33
- alias :option_group_name :name
28
+ # @return [String]
29
+ def name
30
+ @name
31
+ end
32
+ alias :option_group_name :name
34
33
 
35
- # Provides a description of the option group.
36
- # @return [String]
37
- def option_group_description
38
- data.option_group_description
39
- end
34
+ # Provides a description of the option group.
35
+ # @return [String]
36
+ def option_group_description
37
+ data.option_group_description
38
+ end
40
39
 
41
- # Indicates the name of the engine that this option group can be applied
42
- # to.
43
- # @return [String]
44
- def engine_name
45
- data.engine_name
46
- end
40
+ # Indicates the name of the engine that this option group can be applied
41
+ # to.
42
+ # @return [String]
43
+ def engine_name
44
+ data.engine_name
45
+ end
47
46
 
48
- # Indicates the major engine version associated with this option group.
49
- # @return [String]
50
- def major_engine_version
51
- data.major_engine_version
52
- end
47
+ # Indicates the major engine version associated with this option group.
48
+ # @return [String]
49
+ def major_engine_version
50
+ data.major_engine_version
51
+ end
53
52
 
54
- # Indicates what options are available in the option group.
55
- # @return [Array<Types::Option>]
56
- def options
57
- data.options
58
- end
53
+ # Indicates what options are available in the option group.
54
+ # @return [Array<Types::Option>]
55
+ def options
56
+ data.options
57
+ end
59
58
 
60
- # Indicates whether this option group can be applied to both VPC and
61
- # non-VPC instances. The value `true` indicates the option group can be
62
- # applied to both VPC and non-VPC instances.
63
- # @return [Boolean]
64
- def allows_vpc_and_non_vpc_instance_memberships
65
- data.allows_vpc_and_non_vpc_instance_memberships
66
- end
59
+ # Indicates whether this option group can be applied to both VPC and
60
+ # non-VPC instances. The value `true` indicates the option group can be
61
+ # applied to both VPC and non-VPC instances.
62
+ # @return [Boolean]
63
+ def allows_vpc_and_non_vpc_instance_memberships
64
+ data.allows_vpc_and_non_vpc_instance_memberships
65
+ end
67
66
 
68
- # If **AllowsVpcAndNonVpcInstanceMemberships** is `false`, this field is
69
- # blank. If **AllowsVpcAndNonVpcInstanceMemberships** is `true` and this
70
- # field is blank, then this option group can be applied to both VPC and
71
- # non-VPC instances. If this field contains a value, then this option
72
- # group can only be applied to instances that are in the VPC indicated
73
- # by this field.
74
- # @return [String]
75
- def vpc_id
76
- data.vpc_id
77
- end
67
+ # If **AllowsVpcAndNonVpcInstanceMemberships** is `false`, this field is
68
+ # blank. If **AllowsVpcAndNonVpcInstanceMemberships** is `true` and this
69
+ # field is blank, then this option group can be applied to both VPC and
70
+ # non-VPC instances. If this field contains a value, then this option
71
+ # group can only be applied to instances that are in the VPC indicated
72
+ # by this field.
73
+ # @return [String]
74
+ def vpc_id
75
+ data.vpc_id
76
+ end
78
77
 
79
- # The Amazon Resource Name (ARN) for the option group.
80
- # @return [String]
81
- def option_group_arn
82
- data.option_group_arn
83
- end
78
+ # The Amazon Resource Name (ARN) for the option group.
79
+ # @return [String]
80
+ def option_group_arn
81
+ data.option_group_arn
82
+ end
84
83
 
85
- # @!endgroup
84
+ # @!endgroup
86
85
 
87
- # @return [Client]
88
- def client
89
- @client
90
- end
86
+ # @return [Client]
87
+ def client
88
+ @client
89
+ end
91
90
 
92
- # Loads, or reloads {#data} for the current {OptionGroup}.
93
- # Returns `self` making it possible to chain methods.
94
- #
95
- # option_group.reload.data
96
- #
97
- # @return [self]
98
- def load
99
- resp = @client.describe_option_groups(option_group_name: @name)
100
- @data = resp.optiongroupslist[0]
101
- self
102
- end
103
- alias :reload :load
91
+ # Loads, or reloads {#data} for the current {OptionGroup}.
92
+ # Returns `self` making it possible to chain methods.
93
+ #
94
+ # option_group.reload.data
95
+ #
96
+ # @return [self]
97
+ def load
98
+ resp = @client.describe_option_groups(option_group_name: @name)
99
+ @data = resp.optiongroupslist[0]
100
+ self
101
+ end
102
+ alias :reload :load
104
103
 
105
- # @return [Types::OptionGroup]
106
- # Returns the data for this {OptionGroup}. Calls
107
- # {Client#describe_option_groups} if {#data_loaded?} is `false`.
108
- def data
109
- load unless @data
110
- @data
111
- end
104
+ # @return [Types::OptionGroup]
105
+ # Returns the data for this {OptionGroup}. Calls
106
+ # {Client#describe_option_groups} if {#data_loaded?} is `false`.
107
+ def data
108
+ load unless @data
109
+ @data
110
+ end
112
111
 
113
- # @return [Boolean]
114
- # Returns `true` if this resource is loaded. Accessing attributes or
115
- # {#data} on an unloaded resource will trigger a call to {#load}.
116
- def data_loaded?
117
- !!@data
118
- end
112
+ # @return [Boolean]
113
+ # Returns `true` if this resource is loaded. Accessing attributes or
114
+ # {#data} on an unloaded resource will trigger a call to {#load}.
115
+ def data_loaded?
116
+ !!@data
117
+ end
119
118
 
120
- # @!group Actions
119
+ # @!group Actions
121
120
 
122
- # @example Request syntax with placeholder values
123
- #
124
- # optiongroup = option_group.create({
125
- # engine_name: "String", # required
126
- # major_engine_version: "String", # required
127
- # option_group_description: "String", # required
128
- # tags: [
129
- # {
130
- # key: "String",
131
- # value: "String",
132
- # },
133
- # ],
134
- # })
135
- # @param [Hash] options ({})
136
- # @option options [required, String] :engine_name
137
- # Specifies the name of the engine that this option group should be
138
- # associated with.
139
- # @option options [required, String] :major_engine_version
140
- # Specifies the major version of the engine that this option group
141
- # should be associated with.
142
- # @option options [required, String] :option_group_description
143
- # The description of the option group.
144
- # @option options [Array<Types::Tag>] :tags
145
- # A list of tags.
146
- # @return [OptionGroup]
147
- def create(options = {})
148
- options = options.merge(option_group_name: @name)
149
- resp = @client.create_option_group(options)
150
- OptionGroup.new(
151
- name: resp.data.option_group.option_group_name,
152
- data: resp.data.option_group,
153
- client: @client
154
- )
155
- end
121
+ # @example Request syntax with placeholder values
122
+ #
123
+ # optiongroup = option_group.create({
124
+ # engine_name: "String", # required
125
+ # major_engine_version: "String", # required
126
+ # option_group_description: "String", # required
127
+ # tags: [
128
+ # {
129
+ # key: "String",
130
+ # value: "String",
131
+ # },
132
+ # ],
133
+ # })
134
+ # @param [Hash] options ({})
135
+ # @option options [required, String] :engine_name
136
+ # Specifies the name of the engine that this option group should be
137
+ # associated with.
138
+ # @option options [required, String] :major_engine_version
139
+ # Specifies the major version of the engine that this option group
140
+ # should be associated with.
141
+ # @option options [required, String] :option_group_description
142
+ # The description of the option group.
143
+ # @option options [Array<Types::Tag>] :tags
144
+ # A list of tags.
145
+ # @return [OptionGroup]
146
+ def create(options = {})
147
+ options = options.merge(option_group_name: @name)
148
+ resp = @client.create_option_group(options)
149
+ OptionGroup.new(
150
+ name: resp.data.option_group.option_group_name,
151
+ data: resp.data.option_group,
152
+ client: @client
153
+ )
154
+ end
156
155
 
157
- # @example Request syntax with placeholder values
158
- #
159
- # optiongroup = option_group.copy({
160
- # target_option_group_identifier: "String", # required
161
- # target_option_group_description: "String", # required
162
- # tags: [
163
- # {
164
- # key: "String",
165
- # value: "String",
166
- # },
167
- # ],
168
- # })
169
- # @param [Hash] options ({})
170
- # @option options [required, String] :target_option_group_identifier
171
- # The identifier for the copied option group.
172
- #
173
- # Constraints:
174
- #
175
- # * Cannot be null, empty, or blank
176
- #
177
- # * Must contain from 1 to 255 alphanumeric characters or hyphens
178
- #
179
- # * First character must be a letter
180
- #
181
- # * Cannot end with a hyphen or contain two consecutive hyphens
182
- #
183
- # Example: `my-option-group`
184
- # @option options [required, String] :target_option_group_description
185
- # The description for the copied option group.
186
- # @option options [Array<Types::Tag>] :tags
187
- # A list of tags.
188
- # @return [OptionGroup]
189
- def copy(options = {})
190
- options = options.merge(source_option_group_identifier: @name)
191
- resp = @client.copy_option_group(options)
192
- OptionGroup.new(
193
- name: resp.data.option_group.option_group_name,
194
- data: resp.data.option_group,
195
- client: @client
196
- )
197
- end
156
+ # @example Request syntax with placeholder values
157
+ #
158
+ # optiongroup = option_group.copy({
159
+ # target_option_group_identifier: "String", # required
160
+ # target_option_group_description: "String", # required
161
+ # tags: [
162
+ # {
163
+ # key: "String",
164
+ # value: "String",
165
+ # },
166
+ # ],
167
+ # })
168
+ # @param [Hash] options ({})
169
+ # @option options [required, String] :target_option_group_identifier
170
+ # The identifier for the copied option group.
171
+ #
172
+ # Constraints:
173
+ #
174
+ # * Cannot be null, empty, or blank
175
+ #
176
+ # * Must contain from 1 to 255 alphanumeric characters or hyphens
177
+ #
178
+ # * First character must be a letter
179
+ #
180
+ # * Cannot end with a hyphen or contain two consecutive hyphens
181
+ #
182
+ # Example: `my-option-group`
183
+ # @option options [required, String] :target_option_group_description
184
+ # The description for the copied option group.
185
+ # @option options [Array<Types::Tag>] :tags
186
+ # A list of tags.
187
+ # @return [OptionGroup]
188
+ def copy(options = {})
189
+ options = options.merge(source_option_group_identifier: @name)
190
+ resp = @client.copy_option_group(options)
191
+ OptionGroup.new(
192
+ name: resp.data.option_group.option_group_name,
193
+ data: resp.data.option_group,
194
+ client: @client
195
+ )
196
+ end
198
197
 
199
- # @example Request syntax with placeholder values
200
- #
201
- # option_group.delete()
202
- # @param [Hash] options ({})
203
- # @return [EmptyStructure]
204
- def delete(options = {})
205
- options = options.merge(option_group_name: @name)
206
- resp = @client.delete_option_group(options)
207
- resp.data
208
- end
198
+ # @example Request syntax with placeholder values
199
+ #
200
+ # option_group.delete()
201
+ # @param [Hash] options ({})
202
+ # @return [EmptyStructure]
203
+ def delete(options = {})
204
+ options = options.merge(option_group_name: @name)
205
+ resp = @client.delete_option_group(options)
206
+ resp.data
207
+ end
209
208
 
210
- # @example Request syntax with placeholder values
211
- #
212
- # optiongroup = option_group.modify({
213
- # options_to_include: [
214
- # {
215
- # option_name: "String", # required
216
- # port: 1,
217
- # option_version: "String",
218
- # db_security_group_memberships: ["String"],
219
- # vpc_security_group_memberships: ["String"],
220
- # option_settings: [
221
- # {
222
- # name: "String",
223
- # value: "String",
224
- # default_value: "String",
225
- # description: "String",
226
- # apply_type: "String",
227
- # data_type: "String",
228
- # allowed_values: "String",
229
- # is_modifiable: false,
230
- # is_collection: false,
231
- # },
232
- # ],
233
- # },
234
- # ],
235
- # options_to_remove: ["String"],
236
- # apply_immediately: false,
237
- # })
238
- # @param [Hash] options ({})
239
- # @option options [Array<Types::OptionConfiguration>] :options_to_include
240
- # Options in this list are added to the option group or, if already
241
- # present, the specified configuration is used to update the existing
242
- # configuration.
243
- # @option options [Array<String>] :options_to_remove
244
- # Options in this list are removed from the option group.
245
- # @option options [Boolean] :apply_immediately
246
- # Indicates whether the changes should be applied immediately, or during
247
- # the next maintenance window for each instance associated with the
248
- # option group.
249
- # @return [OptionGroup]
250
- def modify(options = {})
251
- options = options.merge(option_group_name: @name)
252
- resp = @client.modify_option_group(options)
253
- OptionGroup.new(
254
- name: resp.data.option_group.option_group_name,
255
- data: resp.data.option_group,
256
- client: @client
257
- )
258
- end
209
+ # @example Request syntax with placeholder values
210
+ #
211
+ # optiongroup = option_group.modify({
212
+ # options_to_include: [
213
+ # {
214
+ # option_name: "String", # required
215
+ # port: 1,
216
+ # option_version: "String",
217
+ # db_security_group_memberships: ["String"],
218
+ # vpc_security_group_memberships: ["String"],
219
+ # option_settings: [
220
+ # {
221
+ # name: "String",
222
+ # value: "String",
223
+ # default_value: "String",
224
+ # description: "String",
225
+ # apply_type: "String",
226
+ # data_type: "String",
227
+ # allowed_values: "String",
228
+ # is_modifiable: false,
229
+ # is_collection: false,
230
+ # },
231
+ # ],
232
+ # },
233
+ # ],
234
+ # options_to_remove: ["String"],
235
+ # apply_immediately: false,
236
+ # })
237
+ # @param [Hash] options ({})
238
+ # @option options [Array<Types::OptionConfiguration>] :options_to_include
239
+ # Options in this list are added to the option group or, if already
240
+ # present, the specified configuration is used to update the existing
241
+ # configuration.
242
+ # @option options [Array<String>] :options_to_remove
243
+ # Options in this list are removed from the option group.
244
+ # @option options [Boolean] :apply_immediately
245
+ # Indicates whether the changes should be applied immediately, or during
246
+ # the next maintenance window for each instance associated with the
247
+ # option group.
248
+ # @return [OptionGroup]
249
+ def modify(options = {})
250
+ options = options.merge(option_group_name: @name)
251
+ resp = @client.modify_option_group(options)
252
+ OptionGroup.new(
253
+ name: resp.data.option_group.option_group_name,
254
+ data: resp.data.option_group,
255
+ client: @client
256
+ )
257
+ end
259
258
 
260
- # @deprecated
261
- # @api private
262
- def identifiers
263
- { name: @name }
264
- end
265
- deprecated(:identifiers)
259
+ # @deprecated
260
+ # @api private
261
+ def identifiers
262
+ { name: @name }
263
+ end
264
+ deprecated(:identifiers)
266
265
 
267
- private
266
+ private
268
267
 
269
- def extract_name(args, options)
270
- value = args[0] || options.delete(:name)
271
- case value
272
- when String then value
273
- when nil then raise ArgumentError, "missing required option :name"
274
- else
275
- msg = "expected :name to be a String, got #{value.class}"
276
- raise ArgumentError, msg
277
- end
268
+ def extract_name(args, options)
269
+ value = args[0] || options.delete(:name)
270
+ case value
271
+ when String then value
272
+ when nil then raise ArgumentError, "missing required option :name"
273
+ else
274
+ msg = "expected :name to be a String, got #{value.class}"
275
+ raise ArgumentError, msg
278
276
  end
279
-
280
- class Collection < Aws::Resources::Collection; end
281
277
  end
278
+
279
+ class Collection < Aws::Resources::Collection; end
282
280
  end
283
281
  end