aws-sdk-rds 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/lib/aws-sdk-rds.rb +73 -0
  3. data/lib/aws-sdk-rds/account_quota.rb +100 -0
  4. data/lib/aws-sdk-rds/certificate.rb +123 -0
  5. data/lib/aws-sdk-rds/client.rb +9214 -0
  6. data/lib/aws-sdk-rds/client_api.rb +3027 -0
  7. data/lib/aws-sdk-rds/customizations.rb +7 -0
  8. data/lib/aws-sdk-rds/db_cluster.rb +1074 -0
  9. data/lib/aws-sdk-rds/db_cluster_parameter_group.rb +230 -0
  10. data/lib/aws-sdk-rds/db_cluster_snapshot.rb +478 -0
  11. data/lib/aws-sdk-rds/db_engine.rb +241 -0
  12. data/lib/aws-sdk-rds/db_engine_version.rb +263 -0
  13. data/lib/aws-sdk-rds/db_instance.rb +2680 -0
  14. data/lib/aws-sdk-rds/db_log_file.rb +170 -0
  15. data/lib/aws-sdk-rds/db_parameter_group.rb +455 -0
  16. data/lib/aws-sdk-rds/db_parameter_group_family.rb +167 -0
  17. data/lib/aws-sdk-rds/db_security_group.rb +358 -0
  18. data/lib/aws-sdk-rds/db_snapshot.rb +714 -0
  19. data/lib/aws-sdk-rds/db_snapshot_attribute.rb +160 -0
  20. data/lib/aws-sdk-rds/db_subnet_group.rb +188 -0
  21. data/lib/aws-sdk-rds/errors.rb +23 -0
  22. data/lib/aws-sdk-rds/event.rb +134 -0
  23. data/lib/aws-sdk-rds/event_category_map.rb +98 -0
  24. data/lib/aws-sdk-rds/event_subscription.rb +352 -0
  25. data/lib/aws-sdk-rds/option_group.rb +283 -0
  26. data/lib/aws-sdk-rds/option_group_option.rb +166 -0
  27. data/lib/aws-sdk-rds/parameter.rb +144 -0
  28. data/lib/aws-sdk-rds/pending_maintenance_action.rb +211 -0
  29. data/lib/aws-sdk-rds/reserved_db_instance.rb +191 -0
  30. data/lib/aws-sdk-rds/reserved_db_instances_offering.rb +183 -0
  31. data/lib/aws-sdk-rds/resource.rb +2384 -0
  32. data/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb +111 -0
  33. data/lib/aws-sdk-rds/types.rb +10965 -0
  34. data/lib/aws-sdk-rds/waiters.rb +149 -0
  35. metadata +106 -0
@@ -0,0 +1,166 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module RDS
10
+ class OptionGroupOption
11
+
12
+ extend Aws::Deprecations
13
+
14
+ # @overload def initialize(name, options = {})
15
+ # @param [String] name
16
+ # @option options [Client] :client
17
+ # @overload def initialize(options = {})
18
+ # @option options [required, String] :name
19
+ # @option options [Client] :client
20
+ def initialize(*args)
21
+ options = Hash === args.last ? args.pop.dup : {}
22
+ @name = extract_name(args, options)
23
+ @data = options.delete(:data)
24
+ @client = options.delete(:client) || Client.new(options)
25
+ end
26
+
27
+ # @!group Read-Only Attributes
28
+
29
+ # @return [String]
30
+ def name
31
+ @name
32
+ end
33
+
34
+ # The description of the option.
35
+ # @return [String]
36
+ def description
37
+ data.description
38
+ end
39
+
40
+ # The name of the engine that this option can be applied to.
41
+ # @return [String]
42
+ def engine_name
43
+ data.engine_name
44
+ end
45
+
46
+ # Indicates the major engine version that the option is available for.
47
+ # @return [String]
48
+ def major_engine_version
49
+ data.major_engine_version
50
+ end
51
+
52
+ # The minimum required engine version for the option to be applied.
53
+ # @return [String]
54
+ def minimum_required_minor_engine_version
55
+ data.minimum_required_minor_engine_version
56
+ end
57
+
58
+ # Specifies whether the option requires a port.
59
+ # @return [Boolean]
60
+ def port_required
61
+ data.port_required
62
+ end
63
+
64
+ # If the option requires a port, specifies the default port for the
65
+ # option.
66
+ # @return [Integer]
67
+ def default_port
68
+ data.default_port
69
+ end
70
+
71
+ # The options that are prerequisites for this option.
72
+ # @return [Array<String>]
73
+ def options_depended_on
74
+ data.options_depended_on
75
+ end
76
+
77
+ # The options that conflict with this option.
78
+ # @return [Array<String>]
79
+ def options_conflicts_with
80
+ data.options_conflicts_with
81
+ end
82
+
83
+ # Persistent options can't be removed from an option group while DB
84
+ # instances are associated with the option group. If you disassociate
85
+ # all DB instances from the option group, your can remove the persistent
86
+ # option from the option group.
87
+ # @return [Boolean]
88
+ def persistent
89
+ data.persistent
90
+ end
91
+
92
+ # Permanent options can never be removed from an option group. An option
93
+ # group containing a permanent option can't be removed from a DB
94
+ # instance.
95
+ # @return [Boolean]
96
+ def permanent
97
+ data.permanent
98
+ end
99
+
100
+ # The option settings that are available (and the default value) for
101
+ # each option in an option group.
102
+ # @return [Array<Types::OptionGroupOptionSetting>]
103
+ def option_group_option_settings
104
+ data.option_group_option_settings
105
+ end
106
+
107
+ # The versions that are available for the option.
108
+ # @return [Array<Types::OptionVersion>]
109
+ def option_group_option_versions
110
+ data.option_group_option_versions
111
+ end
112
+
113
+ # @!endgroup
114
+
115
+ # @return [Client]
116
+ def client
117
+ @client
118
+ end
119
+
120
+ # @raise [Errors::ResourceNotLoadable]
121
+ # @api private
122
+ def load
123
+ msg = "#load is not implemented, data only available via enumeration"
124
+ raise Errors::ResourceNotLoadable, msg
125
+ end
126
+ alias :reload :load
127
+
128
+ # @raise [Errors::ResourceNotLoadableError] Raises when {#data_loaded?} is `false`.
129
+ # @return [Types::OptionGroupOption]
130
+ # Returns the data for this {OptionGroupOption}.
131
+ def data
132
+ load unless @data
133
+ @data
134
+ end
135
+
136
+ # @return [Boolean]
137
+ # Returns `true` if this resource is loaded. Accessing attributes or
138
+ # {#data} on an unloaded resource will trigger a call to {#load}.
139
+ def data_loaded?
140
+ !!@data
141
+ end
142
+
143
+ # @deprecated
144
+ # @api private
145
+ def identifiers
146
+ { name: @name }
147
+ end
148
+ deprecated(:identifiers)
149
+
150
+ private
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
162
+
163
+ class Collection < Aws::Resources::Collection; end
164
+ end
165
+ end
166
+ end
@@ -0,0 +1,144 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module RDS
10
+ class Parameter
11
+
12
+ extend Aws::Deprecations
13
+
14
+ # @overload def initialize(name, options = {})
15
+ # @param [String] name
16
+ # @option options [Client] :client
17
+ # @overload def initialize(options = {})
18
+ # @option options [required, String] :name
19
+ # @option options [Client] :client
20
+ def initialize(*args)
21
+ options = Hash === args.last ? args.pop.dup : {}
22
+ @name = extract_name(args, options)
23
+ @data = options.delete(:data)
24
+ @client = options.delete(:client) || Client.new(options)
25
+ end
26
+
27
+ # @!group Read-Only Attributes
28
+
29
+ # @return [String]
30
+ def name
31
+ @name
32
+ end
33
+ alias :parameter_name :name
34
+
35
+ # Specifies the value of the parameter.
36
+ # @return [String]
37
+ def parameter_value
38
+ data.parameter_value
39
+ end
40
+
41
+ # Provides a description of the parameter.
42
+ # @return [String]
43
+ def description
44
+ data.description
45
+ end
46
+
47
+ # Indicates the source of the parameter value.
48
+ # @return [String]
49
+ def source
50
+ data.source
51
+ end
52
+
53
+ # Specifies the engine specific parameters type.
54
+ # @return [String]
55
+ def apply_type
56
+ data.apply_type
57
+ end
58
+
59
+ # Specifies the valid data type for the parameter.
60
+ # @return [String]
61
+ def data_type
62
+ data.data_type
63
+ end
64
+
65
+ # Specifies the valid range of values for the parameter.
66
+ # @return [String]
67
+ def allowed_values
68
+ data.allowed_values
69
+ end
70
+
71
+ # Indicates whether (`true`) or not (`false`) the parameter can be
72
+ # modified. Some parameters have security or operational implications
73
+ # that prevent them from being changed.
74
+ # @return [Boolean]
75
+ def is_modifiable
76
+ data.is_modifiable
77
+ end
78
+
79
+ # The earliest engine version to which the parameter can apply.
80
+ # @return [String]
81
+ def minimum_engine_version
82
+ data.minimum_engine_version
83
+ end
84
+
85
+ # Indicates when to apply parameter updates.
86
+ # @return [String]
87
+ def apply_method
88
+ data.apply_method
89
+ end
90
+
91
+ # @!endgroup
92
+
93
+ # @return [Client]
94
+ def client
95
+ @client
96
+ end
97
+
98
+ # @raise [Errors::ResourceNotLoadable]
99
+ # @api private
100
+ def load
101
+ msg = "#load is not implemented, data only available via enumeration"
102
+ raise Errors::ResourceNotLoadable, msg
103
+ end
104
+ alias :reload :load
105
+
106
+ # @raise [Errors::ResourceNotLoadableError] Raises when {#data_loaded?} is `false`.
107
+ # @return [Types::Parameter]
108
+ # Returns the data for this {Parameter}.
109
+ def data
110
+ load unless @data
111
+ @data
112
+ end
113
+
114
+ # @return [Boolean]
115
+ # Returns `true` if this resource is loaded. Accessing attributes or
116
+ # {#data} on an unloaded resource will trigger a call to {#load}.
117
+ def data_loaded?
118
+ !!@data
119
+ end
120
+
121
+ # @deprecated
122
+ # @api private
123
+ def identifiers
124
+ { name: @name }
125
+ end
126
+ deprecated(:identifiers)
127
+
128
+ private
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
140
+
141
+ class Collection < Aws::Resources::Collection; end
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,211 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module RDS
10
+ class PendingMaintenanceAction
11
+
12
+ extend Aws::Deprecations
13
+
14
+ # @overload def initialize(target_arn, name, options = {})
15
+ # @param [String] target_arn
16
+ # @param [String] name
17
+ # @option options [Client] :client
18
+ # @overload def initialize(options = {})
19
+ # @option options [required, String] :target_arn
20
+ # @option options [required, String] :name
21
+ # @option options [Client] :client
22
+ def initialize(*args)
23
+ options = Hash === args.last ? args.pop.dup : {}
24
+ @target_arn = extract_target_arn(args, options)
25
+ @name = extract_name(args, options)
26
+ @data = options.delete(:data)
27
+ @client = options.delete(:client) || Client.new(options)
28
+ end
29
+
30
+ # @!group Read-Only Attributes
31
+
32
+ # @return [String]
33
+ def target_arn
34
+ @target_arn
35
+ end
36
+
37
+ # @return [String]
38
+ def name
39
+ @name
40
+ end
41
+ alias :action :name
42
+
43
+ # The date of the maintenance window when the action will be applied.
44
+ # The maintenance action will be applied to the resource during its
45
+ # first maintenance window after this date. If this date is specified,
46
+ # any `next-maintenance` opt-in requests are ignored.
47
+ # @return [Time]
48
+ def auto_applied_after_date
49
+ data.auto_applied_after_date
50
+ end
51
+
52
+ # The date when the maintenance action will be automatically applied.
53
+ # The maintenance action will be applied to the resource on this date
54
+ # regardless of the maintenance window for the resource. If this date is
55
+ # specified, any `immediate` opt-in requests are ignored.
56
+ # @return [Time]
57
+ def forced_apply_date
58
+ data.forced_apply_date
59
+ end
60
+
61
+ # Indicates the type of opt-in request that has been received for the
62
+ # resource.
63
+ # @return [String]
64
+ def opt_in_status
65
+ data.opt_in_status
66
+ end
67
+
68
+ # The effective date when the pending maintenance action will be applied
69
+ # to the resource. This date takes into account opt-in requests received
70
+ # from the ApplyPendingMaintenanceAction API, the
71
+ # `AutoAppliedAfterDate`, and the `ForcedApplyDate`. This value is blank
72
+ # if an opt-in request has not been received and nothing has been
73
+ # specified as `AutoAppliedAfterDate` or `ForcedApplyDate`.
74
+ # @return [Time]
75
+ def current_apply_date
76
+ data.current_apply_date
77
+ end
78
+
79
+ # A description providing more detail about the maintenance action.
80
+ # @return [String]
81
+ def description
82
+ data.description
83
+ end
84
+
85
+ # @!endgroup
86
+
87
+ # @return [Client]
88
+ def client
89
+ @client
90
+ end
91
+
92
+ # @raise [Errors::ResourceNotLoadable]
93
+ # @api private
94
+ def load
95
+ msg = "#load is not implemented, data only available via enumeration"
96
+ raise Errors::ResourceNotLoadable, msg
97
+ end
98
+ alias :reload :load
99
+
100
+ # @raise [Errors::ResourceNotLoadableError] Raises when {#data_loaded?} is `false`.
101
+ # @return [Types::PendingMaintenanceAction]
102
+ # Returns the data for this {PendingMaintenanceAction}.
103
+ def data
104
+ load unless @data
105
+ @data
106
+ end
107
+
108
+ # @return [Boolean]
109
+ # Returns `true` if this resource is loaded. Accessing attributes or
110
+ # {#data} on an unloaded resource will trigger a call to {#load}.
111
+ def data_loaded?
112
+ !!@data
113
+ end
114
+
115
+ # @!group Actions
116
+
117
+ # @example Request syntax with placeholder values
118
+ #
119
+ # resourcependingmaintenanceactionlist = pending_maintenance_action.apply_immediately()
120
+ # @param [Hash] options ({})
121
+ # @return [ResourcePendingMaintenanceActionList]
122
+ def apply_immediately(options = {})
123
+ options = options.merge(
124
+ apply_action: @name,
125
+ resource_identifier: @target_arn,
126
+ opt_in_type: "immediate"
127
+ )
128
+ resp = @client.apply_pending_maintenance_action(options)
129
+ ResourcePendingMaintenanceActionList.new(
130
+ arn: resp.data.resource_pending_maintenance_actions.resource_identifier,
131
+ data: resp.data.resource_pending_maintenance_actions,
132
+ client: @client
133
+ )
134
+ end
135
+
136
+ # @example Request syntax with placeholder values
137
+ #
138
+ # resourcependingmaintenanceactionlist = pending_maintenance_action.undo_opt_in()
139
+ # @param [Hash] options ({})
140
+ # @return [ResourcePendingMaintenanceActionList]
141
+ def undo_opt_in(options = {})
142
+ options = options.merge(
143
+ apply_action: @name,
144
+ resource_identifier: @target_arn,
145
+ opt_in_type: "undo-opt-in"
146
+ )
147
+ resp = @client.apply_pending_maintenance_action(options)
148
+ ResourcePendingMaintenanceActionList.new(
149
+ arn: resp.data.resource_pending_maintenance_actions.resource_identifier,
150
+ data: resp.data.resource_pending_maintenance_actions,
151
+ client: @client
152
+ )
153
+ end
154
+
155
+ # @example Request syntax with placeholder values
156
+ #
157
+ # resourcependingmaintenanceactionlist = pending_maintenance_action.apply_on_next_maintenance()
158
+ # @param [Hash] options ({})
159
+ # @return [ResourcePendingMaintenanceActionList]
160
+ def apply_on_next_maintenance(options = {})
161
+ options = options.merge(
162
+ apply_action: @name,
163
+ resource_identifier: @target_arn,
164
+ opt_in_type: "next-maintenance"
165
+ )
166
+ resp = @client.apply_pending_maintenance_action(options)
167
+ ResourcePendingMaintenanceActionList.new(
168
+ arn: resp.data.resource_pending_maintenance_actions.resource_identifier,
169
+ data: resp.data.resource_pending_maintenance_actions,
170
+ client: @client
171
+ )
172
+ end
173
+
174
+ # @deprecated
175
+ # @api private
176
+ def identifiers
177
+ {
178
+ target_arn: @target_arn,
179
+ name: @name
180
+ }
181
+ end
182
+ deprecated(:identifiers)
183
+
184
+ private
185
+
186
+ def extract_target_arn(args, options)
187
+ value = args[0] || options.delete(:target_arn)
188
+ case value
189
+ when String then value
190
+ when nil then raise ArgumentError, "missing required option :target_arn"
191
+ else
192
+ msg = "expected :target_arn to be a String, got #{value.class}"
193
+ raise ArgumentError, msg
194
+ end
195
+ end
196
+
197
+ def extract_name(args, options)
198
+ value = args[1] || options.delete(:name)
199
+ case value
200
+ when String then value
201
+ when nil then raise ArgumentError, "missing required option :name"
202
+ else
203
+ msg = "expected :name to be a String, got #{value.class}"
204
+ raise ArgumentError, msg
205
+ end
206
+ end
207
+
208
+ class Collection < Aws::Resources::Collection; end
209
+ end
210
+ end
211
+ end