aws-sdk-rds 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.
- checksums.yaml +4 -4
- data/lib/aws-sdk-rds.rb +2 -2
- data/lib/aws-sdk-rds/account_quota.rb +79 -81
- data/lib/aws-sdk-rds/certificate.rb +99 -101
- data/lib/aws-sdk-rds/client.rb +10575 -9119
- data/lib/aws-sdk-rds/client_api.rb +3049 -3023
- data/lib/aws-sdk-rds/db_cluster.rb +1005 -1007
- data/lib/aws-sdk-rds/db_cluster_parameter_group.rb +204 -206
- data/lib/aws-sdk-rds/db_cluster_snapshot.rb +430 -432
- data/lib/aws-sdk-rds/db_engine.rb +208 -210
- data/lib/aws-sdk-rds/db_engine_version.rb +218 -219
- data/lib/aws-sdk-rds/db_instance.rb +2747 -2567
- data/lib/aws-sdk-rds/db_log_file.rb +145 -147
- data/lib/aws-sdk-rds/db_parameter_group.rb +411 -413
- data/lib/aws-sdk-rds/db_parameter_group_family.rb +135 -137
- data/lib/aws-sdk-rds/db_security_group.rb +316 -318
- data/lib/aws-sdk-rds/db_snapshot.rb +705 -650
- data/lib/aws-sdk-rds/db_snapshot_attribute.rb +137 -139
- data/lib/aws-sdk-rds/db_subnet_group.rb +161 -163
- data/lib/aws-sdk-rds/errors.rb +4 -13
- data/lib/aws-sdk-rds/event.rb +108 -110
- data/lib/aws-sdk-rds/event_category_map.rb +73 -75
- data/lib/aws-sdk-rds/event_subscription.rb +313 -315
- data/lib/aws-sdk-rds/option_group.rb +247 -249
- data/lib/aws-sdk-rds/option_group_option.rb +135 -137
- data/lib/aws-sdk-rds/parameter.rb +116 -118
- data/lib/aws-sdk-rds/pending_maintenance_action.rb +182 -184
- data/lib/aws-sdk-rds/plugins/cross_region_copying.rb +64 -0
- data/lib/aws-sdk-rds/reserved_db_instance.rb +156 -158
- data/lib/aws-sdk-rds/reserved_db_instances_offering.rb +154 -156
- data/lib/aws-sdk-rds/resource.rb +2395 -2288
- data/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb +89 -91
- data/lib/aws-sdk-rds/types.rb +12091 -10977
- data/lib/aws-sdk-rds/waiters.rb +127 -128
- metadata +3 -2
@@ -1,241 +1,239 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
8
|
+
module Aws::RDS
|
9
|
+
class DBEngine
|
10
|
+
|
11
|
+
extend Aws::Deprecations
|
12
|
+
|
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 = Aws::EmptyStructure.new
|
23
|
+
@client = options.delete(:client) || Client.new(options)
|
24
|
+
end
|
26
25
|
|
27
|
-
|
26
|
+
# @!group Read-Only Attributes
|
28
27
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
28
|
+
# @return [String]
|
29
|
+
def name
|
30
|
+
@name
|
31
|
+
end
|
33
32
|
|
34
|
-
|
33
|
+
# @!endgroup
|
35
34
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
# @return [Client]
|
36
|
+
def client
|
37
|
+
@client
|
38
|
+
end
|
40
39
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
40
|
+
# @raise [NotImplementedError]
|
41
|
+
# @api private
|
42
|
+
def load
|
43
|
+
msg = "#load is not implemented, data only available via enumeration"
|
44
|
+
raise NotImplementedError, msg
|
45
|
+
end
|
46
|
+
alias :reload :load
|
48
47
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
48
|
+
# @api private
|
49
|
+
# @return [EmptyStructure]
|
50
|
+
def data
|
51
|
+
@data
|
52
|
+
end
|
54
53
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
54
|
+
# @return [Boolean]
|
55
|
+
# Returns `true` if this resource is loaded. Accessing attributes or
|
56
|
+
# {#data} on an unloaded resource will trigger a call to {#load}.
|
57
|
+
def data_loaded?
|
58
|
+
!!@data
|
59
|
+
end
|
61
60
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
end
|
95
|
-
y.yield(batch)
|
61
|
+
# @!group Associations
|
62
|
+
|
63
|
+
# @example Request syntax with placeholder values
|
64
|
+
#
|
65
|
+
# option_group_options = db_engine.option_group_options({
|
66
|
+
# major_engine_version: "String",
|
67
|
+
# filters: [
|
68
|
+
# {
|
69
|
+
# name: "String", # required
|
70
|
+
# values: ["String"], # required
|
71
|
+
# },
|
72
|
+
# ],
|
73
|
+
# })
|
74
|
+
# @param [Hash] options ({})
|
75
|
+
# @option options [String] :major_engine_version
|
76
|
+
# If specified, filters the results to include only options for the
|
77
|
+
# specified major engine version.
|
78
|
+
# @option options [Array<Types::Filter>] :filters
|
79
|
+
# This parameter is not currently supported.
|
80
|
+
# @return [OptionGroupOption::Collection]
|
81
|
+
def option_group_options(options = {})
|
82
|
+
batches = Enumerator.new do |y|
|
83
|
+
options = options.merge(engine_name: @name)
|
84
|
+
resp = @client.describe_option_group_options(options)
|
85
|
+
resp.each_page do |page|
|
86
|
+
batch = []
|
87
|
+
page.data.option_group_options.each do |o|
|
88
|
+
batch << OptionGroupOption.new(
|
89
|
+
name: o.name,
|
90
|
+
data: o,
|
91
|
+
client: @client
|
92
|
+
)
|
96
93
|
end
|
94
|
+
y.yield(batch)
|
97
95
|
end
|
98
|
-
OptionGroupOption::Collection.new(batches)
|
99
96
|
end
|
97
|
+
OptionGroupOption::Collection.new(batches)
|
98
|
+
end
|
100
99
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
end
|
137
|
-
y.yield(batch)
|
100
|
+
# @example Request syntax with placeholder values
|
101
|
+
#
|
102
|
+
# option_groups = db_engine.option_groups({
|
103
|
+
# option_group_name: "String",
|
104
|
+
# filters: [
|
105
|
+
# {
|
106
|
+
# name: "String", # required
|
107
|
+
# values: ["String"], # required
|
108
|
+
# },
|
109
|
+
# ],
|
110
|
+
# major_engine_version: "String",
|
111
|
+
# })
|
112
|
+
# @param [Hash] options ({})
|
113
|
+
# @option options [String] :option_group_name
|
114
|
+
# The name of the option group to describe. Cannot be supplied together
|
115
|
+
# with EngineName or MajorEngineVersion.
|
116
|
+
# @option options [Array<Types::Filter>] :filters
|
117
|
+
# This parameter is not currently supported.
|
118
|
+
# @option options [String] :major_engine_version
|
119
|
+
# Filters the list of option groups to only include groups associated
|
120
|
+
# with a specific database engine version. If specified, then EngineName
|
121
|
+
# must also be specified.
|
122
|
+
# @return [OptionGroup::Collection]
|
123
|
+
def option_groups(options = {})
|
124
|
+
batches = Enumerator.new do |y|
|
125
|
+
options = options.merge(engine_name: @name)
|
126
|
+
resp = @client.describe_option_groups(options)
|
127
|
+
resp.each_page do |page|
|
128
|
+
batch = []
|
129
|
+
page.data.option_groups_list.each do |o|
|
130
|
+
batch << OptionGroup.new(
|
131
|
+
name: o.option_group_name,
|
132
|
+
data: o,
|
133
|
+
client: @client
|
134
|
+
)
|
138
135
|
end
|
136
|
+
y.yield(batch)
|
139
137
|
end
|
140
|
-
OptionGroup::Collection.new(batches)
|
141
138
|
end
|
139
|
+
OptionGroup::Collection.new(batches)
|
140
|
+
end
|
142
141
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
142
|
+
# @param [String] version
|
143
|
+
# @return [DBEngineVersion]
|
144
|
+
def version(version)
|
145
|
+
DBEngineVersion.new(
|
146
|
+
engine_name: @name,
|
147
|
+
version: version,
|
148
|
+
client: @client
|
149
|
+
)
|
150
|
+
end
|
152
151
|
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
end
|
212
|
-
y.yield(batch)
|
152
|
+
# @example Request syntax with placeholder values
|
153
|
+
#
|
154
|
+
# versions = db_engine.versions({
|
155
|
+
# engine_version: "String",
|
156
|
+
# db_parameter_group_family: "String",
|
157
|
+
# filters: [
|
158
|
+
# {
|
159
|
+
# name: "String", # required
|
160
|
+
# values: ["String"], # required
|
161
|
+
# },
|
162
|
+
# ],
|
163
|
+
# default_only: false,
|
164
|
+
# list_supported_character_sets: false,
|
165
|
+
# list_supported_timezones: false,
|
166
|
+
# })
|
167
|
+
# @param [Hash] options ({})
|
168
|
+
# @option options [String] :engine_version
|
169
|
+
# The database engine version to return.
|
170
|
+
#
|
171
|
+
# Example: `5.1.49`
|
172
|
+
# @option options [String] :db_parameter_group_family
|
173
|
+
# The name of a specific DB parameter group family to return details
|
174
|
+
# for.
|
175
|
+
#
|
176
|
+
# Constraints:
|
177
|
+
#
|
178
|
+
# * Must be 1 to 255 alphanumeric characters
|
179
|
+
#
|
180
|
+
# * First character must be a letter
|
181
|
+
#
|
182
|
+
# * Cannot end with a hyphen or contain two consecutive hyphens
|
183
|
+
# @option options [Array<Types::Filter>] :filters
|
184
|
+
# Not currently supported.
|
185
|
+
# @option options [Boolean] :default_only
|
186
|
+
# Indicates that only the default version of the specified engine or
|
187
|
+
# engine and major version combination is returned.
|
188
|
+
# @option options [Boolean] :list_supported_character_sets
|
189
|
+
# If this parameter is specified and the requested engine supports the
|
190
|
+
# `CharacterSetName` parameter for `CreateDBInstance`, the response
|
191
|
+
# includes a list of supported character sets for each engine version.
|
192
|
+
# @option options [Boolean] :list_supported_timezones
|
193
|
+
# If this parameter is specified and the requested engine supports the
|
194
|
+
# `TimeZone` parameter for `CreateDBInstance`, the response includes a
|
195
|
+
# list of supported time zones for each engine version.
|
196
|
+
# @return [DBEngineVersion::Collection]
|
197
|
+
def versions(options = {})
|
198
|
+
batches = Enumerator.new do |y|
|
199
|
+
options = options.merge(engine: @name)
|
200
|
+
resp = @client.describe_db_engine_versions(options)
|
201
|
+
resp.each_page do |page|
|
202
|
+
batch = []
|
203
|
+
page.data.db_engine_versions.each do |d|
|
204
|
+
batch << DBEngineVersion.new(
|
205
|
+
engine_name: @name,
|
206
|
+
version: d.engine_version,
|
207
|
+
data: d,
|
208
|
+
client: @client
|
209
|
+
)
|
213
210
|
end
|
211
|
+
y.yield(batch)
|
214
212
|
end
|
215
|
-
DBEngineVersion::Collection.new(batches)
|
216
213
|
end
|
214
|
+
DBEngineVersion::Collection.new(batches)
|
215
|
+
end
|
217
216
|
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
end
|
217
|
+
# @deprecated
|
218
|
+
# @api private
|
219
|
+
def identifiers
|
220
|
+
{ name: @name }
|
221
|
+
end
|
222
|
+
deprecated(:identifiers)
|
223
|
+
|
224
|
+
private
|
225
|
+
|
226
|
+
def extract_name(args, options)
|
227
|
+
value = args[0] || options.delete(:name)
|
228
|
+
case value
|
229
|
+
when String then value
|
230
|
+
when nil then raise ArgumentError, "missing required option :name"
|
231
|
+
else
|
232
|
+
msg = "expected :name to be a String, got #{value.class}"
|
233
|
+
raise ArgumentError, msg
|
236
234
|
end
|
237
|
-
|
238
|
-
class Collection < Aws::Resources::Collection; end
|
239
235
|
end
|
236
|
+
|
237
|
+
class Collection < Aws::Resources::Collection; end
|
240
238
|
end
|
241
239
|
end
|
@@ -1,263 +1,262 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
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
|
-
|
10
|
-
class DBEngineVersion
|
8
|
+
module Aws::RDS
|
9
|
+
class DBEngineVersion
|
11
10
|
|
12
|
-
|
11
|
+
extend Aws::Deprecations
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
13
|
+
# @overload def initialize(engine_name, version, options = {})
|
14
|
+
# @param [String] engine_name
|
15
|
+
# @param [String] version
|
16
|
+
# @option options [Client] :client
|
17
|
+
# @overload def initialize(options = {})
|
18
|
+
# @option options [required, String] :engine_name
|
19
|
+
# @option options [required, String] :version
|
20
|
+
# @option options [Client] :client
|
21
|
+
def initialize(*args)
|
22
|
+
options = Hash === args.last ? args.pop.dup : {}
|
23
|
+
@engine_name = extract_engine_name(args, options)
|
24
|
+
@version = extract_version(args, options)
|
25
|
+
@data = options.delete(:data)
|
26
|
+
@client = options.delete(:client) || Client.new(options)
|
27
|
+
end
|
29
28
|
|
30
|
-
|
29
|
+
# @!group Read-Only Attributes
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
# @return [String]
|
32
|
+
def engine_name
|
33
|
+
@engine_name
|
34
|
+
end
|
35
|
+
alias :engine :engine_name
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
37
|
+
# @return [String]
|
38
|
+
def version
|
39
|
+
@version
|
40
|
+
end
|
41
|
+
alias :engine_version :version
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
# The name of the DB parameter group family for the database engine.
|
44
|
+
# @return [String]
|
45
|
+
def db_parameter_group_family
|
46
|
+
data.db_parameter_group_family
|
47
|
+
end
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
49
|
+
# The description of the database engine.
|
50
|
+
# @return [String]
|
51
|
+
def db_engine_description
|
52
|
+
data.db_engine_description
|
53
|
+
end
|
54
54
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
55
|
+
# The description of the database engine version.
|
56
|
+
# @return [String]
|
57
|
+
def db_engine_version_description
|
58
|
+
data.db_engine_version_description
|
59
|
+
end
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
61
|
+
# The default character set for new instances of this engine version, if
|
62
|
+
# the `CharacterSetName` parameter of the CreateDBInstance API is not
|
63
|
+
# specified.
|
64
|
+
# @return [Types::CharacterSet]
|
65
|
+
def default_character_set
|
66
|
+
data.default_character_set
|
67
|
+
end
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
69
|
+
# A list of the character sets supported by this engine for the
|
70
|
+
# `CharacterSetName` parameter of the `CreateDBInstance` action.
|
71
|
+
# @return [Array<Types::CharacterSet>]
|
72
|
+
def supported_character_sets
|
73
|
+
data.supported_character_sets
|
74
|
+
end
|
75
75
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
# A list of engine versions that this database engine version can be
|
77
|
+
# upgraded to.
|
78
|
+
# @return [Array<Types::UpgradeTarget>]
|
79
|
+
def valid_upgrade_target
|
80
|
+
data.valid_upgrade_target
|
81
|
+
end
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
83
|
+
# A list of the time zones supported by this engine for the `Timezone`
|
84
|
+
# parameter of the `CreateDBInstance` action.
|
85
|
+
# @return [Array<Types::Timezone>]
|
86
|
+
def supported_timezones
|
87
|
+
data.supported_timezones
|
88
|
+
end
|
89
89
|
|
90
|
-
|
90
|
+
# @!endgroup
|
91
91
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
92
|
+
# @return [Client]
|
93
|
+
def client
|
94
|
+
@client
|
95
|
+
end
|
96
96
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
97
|
+
# Loads, or reloads {#data} for the current {DBEngineVersion}.
|
98
|
+
# Returns `self` making it possible to chain methods.
|
99
|
+
#
|
100
|
+
# db_engine_version.reload.data
|
101
|
+
#
|
102
|
+
# @return [self]
|
103
|
+
def load
|
104
|
+
resp = @client.describe_db_engine_versions(
|
105
|
+
engine: @engine_name,
|
106
|
+
engine_version: @version
|
107
|
+
)
|
108
|
+
@data = resp.dbengineversions[0]
|
109
|
+
self
|
110
|
+
end
|
111
|
+
alias :reload :load
|
112
112
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
113
|
+
# @return [Types::DBEngineVersion]
|
114
|
+
# Returns the data for this {DBEngineVersion}. Calls
|
115
|
+
# {Client#describe_db_engine_versions} if {#data_loaded?} is `false`.
|
116
|
+
def data
|
117
|
+
load unless @data
|
118
|
+
@data
|
119
|
+
end
|
120
120
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
121
|
+
# @return [Boolean]
|
122
|
+
# Returns `true` if this resource is loaded. Accessing attributes or
|
123
|
+
# {#data} on an unloaded resource will trigger a call to {#load}.
|
124
|
+
def data_loaded?
|
125
|
+
!!@data
|
126
|
+
end
|
127
127
|
|
128
|
-
|
128
|
+
# @!group Associations
|
129
129
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
130
|
+
# @return [DBEngine]
|
131
|
+
def engine
|
132
|
+
DBEngine.new(
|
133
|
+
name: @engine,
|
134
|
+
client: @client
|
135
|
+
)
|
136
|
+
end
|
137
137
|
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
end
|
168
|
-
y.yield(batch)
|
138
|
+
# @example Request syntax with placeholder values
|
139
|
+
#
|
140
|
+
# option_group_options = db_engine_version.option_group_options({
|
141
|
+
# filters: [
|
142
|
+
# {
|
143
|
+
# name: "String", # required
|
144
|
+
# values: ["String"], # required
|
145
|
+
# },
|
146
|
+
# ],
|
147
|
+
# })
|
148
|
+
# @param [Hash] options ({})
|
149
|
+
# @option options [Array<Types::Filter>] :filters
|
150
|
+
# This parameter is not currently supported.
|
151
|
+
# @return [OptionGroupOption::Collection]
|
152
|
+
def option_group_options(options = {})
|
153
|
+
batches = Enumerator.new do |y|
|
154
|
+
options = options.merge(
|
155
|
+
engine_name: @engine,
|
156
|
+
major_engine_version: @version
|
157
|
+
)
|
158
|
+
resp = @client.describe_option_group_options(options)
|
159
|
+
resp.each_page do |page|
|
160
|
+
batch = []
|
161
|
+
page.data.option_group_options.each do |o|
|
162
|
+
batch << OptionGroupOption.new(
|
163
|
+
name: o.name,
|
164
|
+
data: o,
|
165
|
+
client: @client
|
166
|
+
)
|
169
167
|
end
|
168
|
+
y.yield(batch)
|
170
169
|
end
|
171
|
-
OptionGroupOption::Collection.new(batches)
|
172
170
|
end
|
171
|
+
OptionGroupOption::Collection.new(batches)
|
172
|
+
end
|
173
173
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
end
|
208
|
-
y.yield(batch)
|
174
|
+
# @example Request syntax with placeholder values
|
175
|
+
#
|
176
|
+
# option_groups = db_engine_version.option_groups({
|
177
|
+
# option_group_name: "String",
|
178
|
+
# filters: [
|
179
|
+
# {
|
180
|
+
# name: "String", # required
|
181
|
+
# values: ["String"], # required
|
182
|
+
# },
|
183
|
+
# ],
|
184
|
+
# })
|
185
|
+
# @param [Hash] options ({})
|
186
|
+
# @option options [String] :option_group_name
|
187
|
+
# The name of the option group to describe. Cannot be supplied together
|
188
|
+
# with EngineName or MajorEngineVersion.
|
189
|
+
# @option options [Array<Types::Filter>] :filters
|
190
|
+
# This parameter is not currently supported.
|
191
|
+
# @return [OptionGroup::Collection]
|
192
|
+
def option_groups(options = {})
|
193
|
+
batches = Enumerator.new do |y|
|
194
|
+
options = options.merge(
|
195
|
+
engine_name: @engine,
|
196
|
+
major_engine_version: @version
|
197
|
+
)
|
198
|
+
resp = @client.describe_option_groups(options)
|
199
|
+
resp.each_page do |page|
|
200
|
+
batch = []
|
201
|
+
page.data.option_groups_list.each do |o|
|
202
|
+
batch << OptionGroup.new(
|
203
|
+
name: o.option_group_name,
|
204
|
+
data: o,
|
205
|
+
client: @client
|
206
|
+
)
|
209
207
|
end
|
208
|
+
y.yield(batch)
|
210
209
|
end
|
211
|
-
OptionGroup::Collection.new(batches)
|
212
210
|
end
|
211
|
+
OptionGroup::Collection.new(batches)
|
212
|
+
end
|
213
213
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
end
|
214
|
+
# @return [DBParameterGroupFamily, nil]
|
215
|
+
def parameter_group_family
|
216
|
+
if data.db_parameter_group_family
|
217
|
+
DBParameterGroupFamily.new(
|
218
|
+
name: data.db_parameter_group_family,
|
219
|
+
client: @client
|
220
|
+
)
|
221
|
+
else
|
222
|
+
nil
|
224
223
|
end
|
224
|
+
end
|
225
225
|
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
226
|
+
# @deprecated
|
227
|
+
# @api private
|
228
|
+
def identifiers
|
229
|
+
{
|
230
|
+
engine_name: @engine_name,
|
231
|
+
version: @version
|
232
|
+
}
|
233
|
+
end
|
234
|
+
deprecated(:identifiers)
|
235
235
|
|
236
|
-
|
236
|
+
private
|
237
237
|
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
end
|
238
|
+
def extract_engine_name(args, options)
|
239
|
+
value = args[0] || options.delete(:engine_name)
|
240
|
+
case value
|
241
|
+
when String then value
|
242
|
+
when nil then raise ArgumentError, "missing required option :engine_name"
|
243
|
+
else
|
244
|
+
msg = "expected :engine_name to be a String, got #{value.class}"
|
245
|
+
raise ArgumentError, msg
|
247
246
|
end
|
247
|
+
end
|
248
248
|
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
end
|
249
|
+
def extract_version(args, options)
|
250
|
+
value = args[1] || options.delete(:version)
|
251
|
+
case value
|
252
|
+
when String then value
|
253
|
+
when nil then raise ArgumentError, "missing required option :version"
|
254
|
+
else
|
255
|
+
msg = "expected :version to be a String, got #{value.class}"
|
256
|
+
raise ArgumentError, msg
|
258
257
|
end
|
259
|
-
|
260
|
-
class Collection < Aws::Resources::Collection; end
|
261
258
|
end
|
259
|
+
|
260
|
+
class Collection < Aws::Resources::Collection; end
|
262
261
|
end
|
263
262
|
end
|