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,191 +1,189 @@
|
|
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 ReservedDBInstance
|
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
|
-
|
26
|
+
# @!group Read-Only Attributes
|
28
27
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
# @return [String]
|
29
|
+
def id
|
30
|
+
@id
|
31
|
+
end
|
32
|
+
alias :reserved_db_instance_id :id
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
# The offering identifier.
|
35
|
+
# @return [String]
|
36
|
+
def reserved_db_instances_offering_id
|
37
|
+
data.reserved_db_instances_offering_id
|
38
|
+
end
|
40
39
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
# The DB instance class for the reserved DB instance.
|
41
|
+
# @return [String]
|
42
|
+
def db_instance_class
|
43
|
+
data.db_instance_class
|
44
|
+
end
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
# The time the reservation started.
|
47
|
+
# @return [Time]
|
48
|
+
def start_time
|
49
|
+
data.start_time
|
50
|
+
end
|
52
51
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
# The duration of the reservation in seconds.
|
53
|
+
# @return [Integer]
|
54
|
+
def duration
|
55
|
+
data.duration
|
56
|
+
end
|
58
57
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
58
|
+
# The fixed price charged for this reserved DB instance.
|
59
|
+
# @return [Float]
|
60
|
+
def fixed_price
|
61
|
+
data.fixed_price
|
62
|
+
end
|
64
63
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
# The hourly price charged for this reserved DB instance.
|
65
|
+
# @return [Float]
|
66
|
+
def usage_price
|
67
|
+
data.usage_price
|
68
|
+
end
|
70
69
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
70
|
+
# The currency code for the reserved DB instance.
|
71
|
+
# @return [String]
|
72
|
+
def currency_code
|
73
|
+
data.currency_code
|
74
|
+
end
|
76
75
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
# The number of reserved DB instances.
|
77
|
+
# @return [Integer]
|
78
|
+
def db_instance_count
|
79
|
+
data.db_instance_count
|
80
|
+
end
|
82
81
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
82
|
+
# The description of the reserved DB instance.
|
83
|
+
# @return [String]
|
84
|
+
def product_description
|
85
|
+
data.product_description
|
86
|
+
end
|
88
87
|
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
88
|
+
# The offering type of this reserved DB instance.
|
89
|
+
# @return [String]
|
90
|
+
def offering_type
|
91
|
+
data.offering_type
|
92
|
+
end
|
94
93
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
94
|
+
# Indicates if the reservation applies to Multi-AZ deployments.
|
95
|
+
# @return [Boolean]
|
96
|
+
def multi_az
|
97
|
+
data.multi_az
|
98
|
+
end
|
100
99
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
100
|
+
# The state of the reserved DB instance.
|
101
|
+
# @return [String]
|
102
|
+
def state
|
103
|
+
data.state
|
104
|
+
end
|
106
105
|
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
106
|
+
# The recurring price charged to run this reserved DB instance.
|
107
|
+
# @return [Array<Types::RecurringCharge>]
|
108
|
+
def recurring_charges
|
109
|
+
data.recurring_charges
|
110
|
+
end
|
112
111
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
112
|
+
# The Amazon Resource Name (ARN) for the reserved DB instance.
|
113
|
+
# @return [String]
|
114
|
+
def reserved_db_instance_arn
|
115
|
+
data.reserved_db_instance_arn
|
116
|
+
end
|
118
117
|
|
119
|
-
|
118
|
+
# @!endgroup
|
120
119
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
120
|
+
# @return [Client]
|
121
|
+
def client
|
122
|
+
@client
|
123
|
+
end
|
125
124
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
125
|
+
# Loads, or reloads {#data} for the current {ReservedDBInstance}.
|
126
|
+
# Returns `self` making it possible to chain methods.
|
127
|
+
#
|
128
|
+
# reserved_db_instance.reload.data
|
129
|
+
#
|
130
|
+
# @return [self]
|
131
|
+
def load
|
132
|
+
resp = @client.describe_reserved_db_instances(reserved_db_instance_id: @id)
|
133
|
+
@data = resp.reserveddbinstances[0]
|
134
|
+
self
|
135
|
+
end
|
136
|
+
alias :reload :load
|
137
|
+
|
138
|
+
# @return [Types::ReservedDBInstance]
|
139
|
+
# Returns the data for this {ReservedDBInstance}. Calls
|
140
|
+
# {Client#describe_reserved_db_instances} if {#data_loaded?} is `false`.
|
141
|
+
def data
|
142
|
+
load unless @data
|
143
|
+
@data
|
144
|
+
end
|
146
145
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
146
|
+
# @return [Boolean]
|
147
|
+
# Returns `true` if this resource is loaded. Accessing attributes or
|
148
|
+
# {#data} on an unloaded resource will trigger a call to {#load}.
|
149
|
+
def data_loaded?
|
150
|
+
!!@data
|
151
|
+
end
|
153
152
|
|
154
|
-
|
155
|
-
|
156
|
-
# @return [ReservedDBInstancesOffering, nil]
|
157
|
-
def offering
|
158
|
-
if data.reserved_db_instances_offering_id
|
159
|
-
ReservedDBInstancesOffering.new(
|
160
|
-
id: data.reserved_db_instances_offering_id,
|
161
|
-
client: @client
|
162
|
-
)
|
163
|
-
else
|
164
|
-
nil
|
165
|
-
end
|
166
|
-
end
|
153
|
+
# @!group Associations
|
167
154
|
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
def extract_id(args, options)
|
178
|
-
value = args[0] || options.delete(:id)
|
179
|
-
case value
|
180
|
-
when String then value
|
181
|
-
when nil then raise ArgumentError, "missing required option :id"
|
182
|
-
else
|
183
|
-
msg = "expected :id to be a String, got #{value.class}"
|
184
|
-
raise ArgumentError, msg
|
185
|
-
end
|
155
|
+
# @return [ReservedDBInstancesOffering, nil]
|
156
|
+
def offering
|
157
|
+
if data.reserved_db_instances_offering_id
|
158
|
+
ReservedDBInstancesOffering.new(
|
159
|
+
id: data.reserved_db_instances_offering_id,
|
160
|
+
client: @client
|
161
|
+
)
|
162
|
+
else
|
163
|
+
nil
|
186
164
|
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# @deprecated
|
168
|
+
# @api private
|
169
|
+
def identifiers
|
170
|
+
{ id: @id }
|
171
|
+
end
|
172
|
+
deprecated(:identifiers)
|
187
173
|
|
188
|
-
|
174
|
+
private
|
175
|
+
|
176
|
+
def extract_id(args, options)
|
177
|
+
value = args[0] || options.delete(:id)
|
178
|
+
case value
|
179
|
+
when String then value
|
180
|
+
when nil then raise ArgumentError, "missing required option :id"
|
181
|
+
else
|
182
|
+
msg = "expected :id to be a String, got #{value.class}"
|
183
|
+
raise ArgumentError, msg
|
184
|
+
end
|
189
185
|
end
|
186
|
+
|
187
|
+
class Collection < Aws::Resources::Collection; end
|
190
188
|
end
|
191
189
|
end
|
@@ -1,183 +1,181 @@
|
|
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 ReservedDBInstancesOffering
|
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
|
-
|
26
|
+
# @!group Read-Only Attributes
|
28
27
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
# @return [String]
|
29
|
+
def id
|
30
|
+
@id
|
31
|
+
end
|
32
|
+
alias :reserved_db_instances_offering_id :id
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
# The DB instance class for the reserved DB instance.
|
35
|
+
# @return [String]
|
36
|
+
def db_instance_class
|
37
|
+
data.db_instance_class
|
38
|
+
end
|
40
39
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
# The duration of the offering in seconds.
|
41
|
+
# @return [Integer]
|
42
|
+
def duration
|
43
|
+
data.duration
|
44
|
+
end
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
# The fixed price charged for this offering.
|
47
|
+
# @return [Float]
|
48
|
+
def fixed_price
|
49
|
+
data.fixed_price
|
50
|
+
end
|
52
51
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
# The hourly price charged for this offering.
|
53
|
+
# @return [Float]
|
54
|
+
def usage_price
|
55
|
+
data.usage_price
|
56
|
+
end
|
58
57
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
58
|
+
# The currency code for the reserved DB instance offering.
|
59
|
+
# @return [String]
|
60
|
+
def currency_code
|
61
|
+
data.currency_code
|
62
|
+
end
|
64
63
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
# The database engine used by the offering.
|
65
|
+
# @return [String]
|
66
|
+
def product_description
|
67
|
+
data.product_description
|
68
|
+
end
|
70
69
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
70
|
+
# The offering type.
|
71
|
+
# @return [String]
|
72
|
+
def offering_type
|
73
|
+
data.offering_type
|
74
|
+
end
|
76
75
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
76
|
+
# Indicates if the offering applies to Multi-AZ deployments.
|
77
|
+
# @return [Boolean]
|
78
|
+
def multi_az
|
79
|
+
data.multi_az
|
80
|
+
end
|
82
81
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
82
|
+
# The recurring price charged to run this reserved DB instance.
|
83
|
+
# @return [Array<Types::RecurringCharge>]
|
84
|
+
def recurring_charges
|
85
|
+
data.recurring_charges
|
86
|
+
end
|
88
87
|
|
89
|
-
|
88
|
+
# @!endgroup
|
90
89
|
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
90
|
+
# @return [Client]
|
91
|
+
def client
|
92
|
+
@client
|
93
|
+
end
|
95
94
|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
95
|
+
# Loads, or reloads {#data} for the current {ReservedDBInstancesOffering}.
|
96
|
+
# Returns `self` making it possible to chain methods.
|
97
|
+
#
|
98
|
+
# reserved_db_instances_offering.reload.data
|
99
|
+
#
|
100
|
+
# @return [self]
|
101
|
+
def load
|
102
|
+
resp = @client.describe_reserved_db_instances_offerings(reserved_db_instances_offering_id: @id)
|
103
|
+
@data = resp.reserveddbinstancesofferings[0]
|
104
|
+
self
|
105
|
+
end
|
106
|
+
alias :reload :load
|
107
|
+
|
108
|
+
# @return [Types::ReservedDBInstancesOffering]
|
109
|
+
# Returns the data for this {ReservedDBInstancesOffering}. Calls
|
110
|
+
# {Client#describe_reserved_db_instances_offerings} if {#data_loaded?} is `false`.
|
111
|
+
def data
|
112
|
+
load unless @data
|
113
|
+
@data
|
114
|
+
end
|
116
115
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
116
|
+
# @return [Boolean]
|
117
|
+
# Returns `true` if this resource is loaded. Accessing attributes or
|
118
|
+
# {#data} on an unloaded resource will trigger a call to {#load}.
|
119
|
+
def data_loaded?
|
120
|
+
!!@data
|
121
|
+
end
|
123
122
|
|
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
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
123
|
+
# @!group Actions
|
124
|
+
|
125
|
+
# @example Request syntax with placeholder values
|
126
|
+
#
|
127
|
+
# reserveddbinstance = reserved_db_instances_offering.purchase({
|
128
|
+
# reserved_db_instance_id: "String",
|
129
|
+
# db_instance_count: 1,
|
130
|
+
# tags: [
|
131
|
+
# {
|
132
|
+
# key: "String",
|
133
|
+
# value: "String",
|
134
|
+
# },
|
135
|
+
# ],
|
136
|
+
# })
|
137
|
+
# @param [Hash] options ({})
|
138
|
+
# @option options [String] :reserved_db_instance_id
|
139
|
+
# Customer-specified identifier to track this reservation.
|
140
|
+
#
|
141
|
+
# Example: myreservationID
|
142
|
+
# @option options [Integer] :db_instance_count
|
143
|
+
# The number of instances to reserve.
|
144
|
+
#
|
145
|
+
# Default: `1`
|
146
|
+
# @option options [Array<Types::Tag>] :tags
|
147
|
+
# A list of tags.
|
148
|
+
# @return [ReservedDBInstance]
|
149
|
+
def purchase(options = {})
|
150
|
+
options = options.merge(reserved_db_instances_offering_id: @id)
|
151
|
+
resp = @client.purchase_reserved_db_instances_offering(options)
|
152
|
+
ReservedDBInstance.new(
|
153
|
+
id: resp.data.reserved_db_instance.reserved_db_instance_id,
|
154
|
+
data: resp.data.reserved_db_instance,
|
155
|
+
client: @client
|
156
|
+
)
|
157
|
+
end
|
159
158
|
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
def extract_id(args, options)
|
170
|
-
value = args[0] || options.delete(:id)
|
171
|
-
case value
|
172
|
-
when String then value
|
173
|
-
when nil then raise ArgumentError, "missing required option :id"
|
174
|
-
else
|
175
|
-
msg = "expected :id to be a String, got #{value.class}"
|
176
|
-
raise ArgumentError, msg
|
177
|
-
end
|
178
|
-
end
|
159
|
+
# @deprecated
|
160
|
+
# @api private
|
161
|
+
def identifiers
|
162
|
+
{ id: @id }
|
163
|
+
end
|
164
|
+
deprecated(:identifiers)
|
165
|
+
|
166
|
+
private
|
179
167
|
|
180
|
-
|
168
|
+
def extract_id(args, options)
|
169
|
+
value = args[0] || options.delete(:id)
|
170
|
+
case value
|
171
|
+
when String then value
|
172
|
+
when nil then raise ArgumentError, "missing required option :id"
|
173
|
+
else
|
174
|
+
msg = "expected :id to be a String, got #{value.class}"
|
175
|
+
raise ArgumentError, msg
|
176
|
+
end
|
181
177
|
end
|
178
|
+
|
179
|
+
class Collection < Aws::Resources::Collection; end
|
182
180
|
end
|
183
181
|
end
|