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.
- 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,283 +1,281 @@
|
|
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 OptionGroup
|
8
|
+
module Aws::RDS
|
9
|
+
class OptionGroup
|
11
10
|
|
12
|
-
|
11
|
+
extend Aws::Deprecations
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
-
|
26
|
+
# @!group Read-Only Attributes
|
28
27
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
# @return [String]
|
29
|
+
def name
|
30
|
+
@name
|
31
|
+
end
|
32
|
+
alias :option_group_name :name
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
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
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
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
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
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
|
-
|
84
|
+
# @!endgroup
|
86
85
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
86
|
+
# @return [Client]
|
87
|
+
def client
|
88
|
+
@client
|
89
|
+
end
|
91
90
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
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
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
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
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
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
|
-
|
119
|
+
# @!group Actions
|
121
120
|
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
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
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
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
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
259
|
+
# @deprecated
|
260
|
+
# @api private
|
261
|
+
def identifiers
|
262
|
+
{ name: @name }
|
263
|
+
end
|
264
|
+
deprecated(:identifiers)
|
266
265
|
|
267
|
-
|
266
|
+
private
|
268
267
|
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
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
|