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