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,166 +1,164 @@
|
|
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 OptionGroupOption
|
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 = 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
|
-
|
28
|
+
# @return [String]
|
29
|
+
def name
|
30
|
+
@name
|
31
|
+
end
|
33
32
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
33
|
+
# The description of the option.
|
34
|
+
# @return [String]
|
35
|
+
def description
|
36
|
+
data.description
|
37
|
+
end
|
39
38
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
39
|
+
# The name of the engine that this option can be applied to.
|
40
|
+
# @return [String]
|
41
|
+
def engine_name
|
42
|
+
data.engine_name
|
43
|
+
end
|
45
44
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
45
|
+
# Indicates the major engine version that the option is available for.
|
46
|
+
# @return [String]
|
47
|
+
def major_engine_version
|
48
|
+
data.major_engine_version
|
49
|
+
end
|
51
50
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
# The minimum required engine version for the option to be applied.
|
52
|
+
# @return [String]
|
53
|
+
def minimum_required_minor_engine_version
|
54
|
+
data.minimum_required_minor_engine_version
|
55
|
+
end
|
57
56
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
57
|
+
# Specifies whether the option requires a port.
|
58
|
+
# @return [Boolean]
|
59
|
+
def port_required
|
60
|
+
data.port_required
|
61
|
+
end
|
63
62
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
63
|
+
# If the option requires a port, specifies the default port for the
|
64
|
+
# option.
|
65
|
+
# @return [Integer]
|
66
|
+
def default_port
|
67
|
+
data.default_port
|
68
|
+
end
|
70
69
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
70
|
+
# The options that are prerequisites for this option.
|
71
|
+
# @return [Array<String>]
|
72
|
+
def options_depended_on
|
73
|
+
data.options_depended_on
|
74
|
+
end
|
76
75
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
# The options that conflict with this option.
|
77
|
+
# @return [Array<String>]
|
78
|
+
def options_conflicts_with
|
79
|
+
data.options_conflicts_with
|
80
|
+
end
|
82
81
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
82
|
+
# Persistent options can't be removed from an option group while DB
|
83
|
+
# instances are associated with the option group. If you disassociate
|
84
|
+
# all DB instances from the option group, your can remove the persistent
|
85
|
+
# option from the option group.
|
86
|
+
# @return [Boolean]
|
87
|
+
def persistent
|
88
|
+
data.persistent
|
89
|
+
end
|
91
90
|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
91
|
+
# Permanent options can never be removed from an option group. An option
|
92
|
+
# group containing a permanent option can't be removed from a DB
|
93
|
+
# instance.
|
94
|
+
# @return [Boolean]
|
95
|
+
def permanent
|
96
|
+
data.permanent
|
97
|
+
end
|
99
98
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
99
|
+
# The option settings that are available (and the default value) for
|
100
|
+
# each option in an option group.
|
101
|
+
# @return [Array<Types::OptionGroupOptionSetting>]
|
102
|
+
def option_group_option_settings
|
103
|
+
data.option_group_option_settings
|
104
|
+
end
|
106
105
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
106
|
+
# The versions that are available for the option.
|
107
|
+
# @return [Array<Types::OptionVersion>]
|
108
|
+
def option_group_option_versions
|
109
|
+
data.option_group_option_versions
|
110
|
+
end
|
112
111
|
|
113
|
-
|
112
|
+
# @!endgroup
|
114
113
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
114
|
+
# @return [Client]
|
115
|
+
def client
|
116
|
+
@client
|
117
|
+
end
|
119
118
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
119
|
+
# @raise [NotImplementedError]
|
120
|
+
# @api private
|
121
|
+
def load
|
122
|
+
msg = "#load is not implemented, data only available via enumeration"
|
123
|
+
raise NotImplementedError, msg
|
124
|
+
end
|
125
|
+
alias :reload :load
|
126
|
+
|
127
|
+
# @raise [NotImplementedError] Raises when {#data_loaded?} is `false`.
|
128
|
+
# @return [Types::OptionGroupOption]
|
129
|
+
# Returns the data for this {OptionGroupOption}.
|
130
|
+
def data
|
131
|
+
load unless @data
|
132
|
+
@data
|
133
|
+
end
|
135
134
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
135
|
+
# @return [Boolean]
|
136
|
+
# Returns `true` if this resource is loaded. Accessing attributes or
|
137
|
+
# {#data} on an unloaded resource will trigger a call to {#load}.
|
138
|
+
def data_loaded?
|
139
|
+
!!@data
|
140
|
+
end
|
142
141
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
def extract_name(args, options)
|
153
|
-
value = args[0] || options.delete(:name)
|
154
|
-
case value
|
155
|
-
when String then value
|
156
|
-
when nil then raise ArgumentError, "missing required option :name"
|
157
|
-
else
|
158
|
-
msg = "expected :name to be a String, got #{value.class}"
|
159
|
-
raise ArgumentError, msg
|
160
|
-
end
|
161
|
-
end
|
142
|
+
# @deprecated
|
143
|
+
# @api private
|
144
|
+
def identifiers
|
145
|
+
{ name: @name }
|
146
|
+
end
|
147
|
+
deprecated(:identifiers)
|
148
|
+
|
149
|
+
private
|
162
150
|
|
163
|
-
|
151
|
+
def extract_name(args, options)
|
152
|
+
value = args[0] || options.delete(:name)
|
153
|
+
case value
|
154
|
+
when String then value
|
155
|
+
when nil then raise ArgumentError, "missing required option :name"
|
156
|
+
else
|
157
|
+
msg = "expected :name to be a String, got #{value.class}"
|
158
|
+
raise ArgumentError, msg
|
159
|
+
end
|
164
160
|
end
|
161
|
+
|
162
|
+
class Collection < Aws::Resources::Collection; end
|
165
163
|
end
|
166
164
|
end
|
@@ -1,144 +1,142 @@
|
|
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 Parameter
|
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 = 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 :parameter_name :name
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
# Specifies the value of the parameter.
|
35
|
+
# @return [String]
|
36
|
+
def parameter_value
|
37
|
+
data.parameter_value
|
38
|
+
end
|
40
39
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
# Provides a description of the parameter.
|
41
|
+
# @return [String]
|
42
|
+
def description
|
43
|
+
data.description
|
44
|
+
end
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
# Indicates the source of the parameter value.
|
47
|
+
# @return [String]
|
48
|
+
def source
|
49
|
+
data.source
|
50
|
+
end
|
52
51
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
# Specifies the engine specific parameters type.
|
53
|
+
# @return [String]
|
54
|
+
def apply_type
|
55
|
+
data.apply_type
|
56
|
+
end
|
58
57
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
58
|
+
# Specifies the valid data type for the parameter.
|
59
|
+
# @return [String]
|
60
|
+
def data_type
|
61
|
+
data.data_type
|
62
|
+
end
|
64
63
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
# Specifies the valid range of values for the parameter.
|
65
|
+
# @return [String]
|
66
|
+
def allowed_values
|
67
|
+
data.allowed_values
|
68
|
+
end
|
70
69
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
70
|
+
# Indicates whether (`true`) or not (`false`) the parameter can be
|
71
|
+
# modified. Some parameters have security or operational implications
|
72
|
+
# that prevent them from being changed.
|
73
|
+
# @return [Boolean]
|
74
|
+
def is_modifiable
|
75
|
+
data.is_modifiable
|
76
|
+
end
|
78
77
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
78
|
+
# The earliest engine version to which the parameter can apply.
|
79
|
+
# @return [String]
|
80
|
+
def minimum_engine_version
|
81
|
+
data.minimum_engine_version
|
82
|
+
end
|
84
83
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
84
|
+
# Indicates when to apply parameter updates.
|
85
|
+
# @return [String]
|
86
|
+
def apply_method
|
87
|
+
data.apply_method
|
88
|
+
end
|
90
89
|
|
91
|
-
|
90
|
+
# @!endgroup
|
92
91
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
92
|
+
# @return [Client]
|
93
|
+
def client
|
94
|
+
@client
|
95
|
+
end
|
97
96
|
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
97
|
+
# @raise [NotImplementedError]
|
98
|
+
# @api private
|
99
|
+
def load
|
100
|
+
msg = "#load is not implemented, data only available via enumeration"
|
101
|
+
raise NotImplementedError, msg
|
102
|
+
end
|
103
|
+
alias :reload :load
|
104
|
+
|
105
|
+
# @raise [NotImplementedError] Raises when {#data_loaded?} is `false`.
|
106
|
+
# @return [Types::Parameter]
|
107
|
+
# Returns the data for this {Parameter}.
|
108
|
+
def data
|
109
|
+
load unless @data
|
110
|
+
@data
|
111
|
+
end
|
113
112
|
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
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
|
120
119
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
def extract_name(args, options)
|
131
|
-
value = args[0] || options.delete(:name)
|
132
|
-
case value
|
133
|
-
when String then value
|
134
|
-
when nil then raise ArgumentError, "missing required option :name"
|
135
|
-
else
|
136
|
-
msg = "expected :name to be a String, got #{value.class}"
|
137
|
-
raise ArgumentError, msg
|
138
|
-
end
|
139
|
-
end
|
120
|
+
# @deprecated
|
121
|
+
# @api private
|
122
|
+
def identifiers
|
123
|
+
{ name: @name }
|
124
|
+
end
|
125
|
+
deprecated(:identifiers)
|
126
|
+
|
127
|
+
private
|
140
128
|
|
141
|
-
|
129
|
+
def extract_name(args, options)
|
130
|
+
value = args[0] || options.delete(:name)
|
131
|
+
case value
|
132
|
+
when String then value
|
133
|
+
when nil then raise ArgumentError, "missing required option :name"
|
134
|
+
else
|
135
|
+
msg = "expected :name to be a String, got #{value.class}"
|
136
|
+
raise ArgumentError, msg
|
137
|
+
end
|
142
138
|
end
|
139
|
+
|
140
|
+
class Collection < Aws::Resources::Collection; end
|
143
141
|
end
|
144
142
|
end
|