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,160 +1,158 @@
|
|
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
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
8
|
+
module Aws::RDS
|
9
|
+
class DBSnapshotAttribute
|
10
|
+
|
11
|
+
extend Aws::Deprecations
|
12
|
+
|
13
|
+
# @overload def initialize(snapshot_id, name, options = {})
|
14
|
+
# @param [String] snapshot_id
|
15
|
+
# @param [String] name
|
16
|
+
# @option options [Client] :client
|
17
|
+
# @overload def initialize(options = {})
|
18
|
+
# @option options [required, String] :snapshot_id
|
19
|
+
# @option options [required, String] :name
|
20
|
+
# @option options [Client] :client
|
21
|
+
def initialize(*args)
|
22
|
+
options = Hash === args.last ? args.pop.dup : {}
|
23
|
+
@snapshot_id = extract_snapshot_id(args, options)
|
24
|
+
@name = extract_name(args, options)
|
25
|
+
@data = options.delete(:data)
|
26
|
+
@client = options.delete(:client) || Client.new(options)
|
27
|
+
end
|
29
28
|
|
30
|
-
|
29
|
+
# @!group Read-Only Attributes
|
31
30
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
31
|
+
# @return [String]
|
32
|
+
def snapshot_id
|
33
|
+
@snapshot_id
|
34
|
+
end
|
36
35
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
36
|
+
# @return [String]
|
37
|
+
def name
|
38
|
+
@name
|
39
|
+
end
|
40
|
+
alias :attribute_name :name
|
41
|
+
|
42
|
+
# The value or values for the manual DB snapshot attribute.
|
43
|
+
#
|
44
|
+
# If the `AttributeName` field is set to `restore`, then this element
|
45
|
+
# returns a list of IDs of the AWS accounts that are authorized to copy
|
46
|
+
# or restore the manual DB snapshot. If a value of `all` is in the list,
|
47
|
+
# then the manual DB snapshot is public and available for any AWS
|
48
|
+
# account to copy or restore.
|
49
|
+
# @return [Array<String>]
|
50
|
+
def attribute_values
|
51
|
+
data.attribute_values
|
52
|
+
end
|
54
53
|
|
55
|
-
|
54
|
+
# @!endgroup
|
56
55
|
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
56
|
+
# @return [Client]
|
57
|
+
def client
|
58
|
+
@client
|
59
|
+
end
|
61
60
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
61
|
+
# @raise [NotImplementedError]
|
62
|
+
# @api private
|
63
|
+
def load
|
64
|
+
msg = "#load is not implemented, data only available via enumeration"
|
65
|
+
raise NotImplementedError, msg
|
66
|
+
end
|
67
|
+
alias :reload :load
|
68
|
+
|
69
|
+
# @raise [NotImplementedError] Raises when {#data_loaded?} is `false`.
|
70
|
+
# @return [Types::DBSnapshotAttribute]
|
71
|
+
# Returns the data for this {DBSnapshotAttribute}.
|
72
|
+
def data
|
73
|
+
load unless @data
|
74
|
+
@data
|
75
|
+
end
|
77
76
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
77
|
+
# @return [Boolean]
|
78
|
+
# Returns `true` if this resource is loaded. Accessing attributes or
|
79
|
+
# {#data} on an unloaded resource will trigger a call to {#load}.
|
80
|
+
def data_loaded?
|
81
|
+
!!@data
|
82
|
+
end
|
84
83
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
84
|
+
# @!group Actions
|
85
|
+
|
86
|
+
# @example Request syntax with placeholder values
|
87
|
+
#
|
88
|
+
# db_snapshot_attribute.modify({
|
89
|
+
# values_to_add: ["String"],
|
90
|
+
# values_to_remove: ["String"],
|
91
|
+
# })
|
92
|
+
# @param [Hash] options ({})
|
93
|
+
# @option options [Array<String>] :values_to_add
|
94
|
+
# A list of DB snapshot attributes to add to the attribute specified by
|
95
|
+
# `AttributeName`.
|
96
|
+
#
|
97
|
+
# To authorize other AWS accounts to copy or restore a manual snapshot,
|
98
|
+
# set this list to include one or more AWS account IDs, or `all` to make
|
99
|
+
# the manual DB snapshot restorable by any AWS account. Do not add the
|
100
|
+
# `all` value for any manual DB snapshots that contain private
|
101
|
+
# information that you don't want available to all AWS accounts.
|
102
|
+
# @option options [Array<String>] :values_to_remove
|
103
|
+
# A list of DB snapshot attributes to remove from the attribute
|
104
|
+
# specified by `AttributeName`.
|
105
|
+
#
|
106
|
+
# To remove authorization for other AWS accounts to copy or restore a
|
107
|
+
# manual snapshot, set this list to include one or more AWS account
|
108
|
+
# identifiers, or `all` to remove authorization for any AWS account to
|
109
|
+
# copy or restore the DB snapshot. If you specify `all`, an AWS account
|
110
|
+
# whose account ID is explicitly added to the `restore` attribute can
|
111
|
+
# still copy or restore the manual DB snapshot.
|
112
|
+
# @return [Types::ModifyDBSnapshotAttributeResult]
|
113
|
+
def modify(options = {})
|
114
|
+
options = options.merge(
|
115
|
+
attribute_name: @name,
|
116
|
+
db_snapshot_identifier: @snapshot_id
|
117
|
+
)
|
118
|
+
resp = @client.modify_db_snapshot_attribute(options)
|
119
|
+
resp.data
|
120
|
+
end
|
122
121
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
end
|
122
|
+
# @deprecated
|
123
|
+
# @api private
|
124
|
+
def identifiers
|
125
|
+
{
|
126
|
+
snapshot_id: @snapshot_id,
|
127
|
+
name: @name
|
128
|
+
}
|
129
|
+
end
|
130
|
+
deprecated(:identifiers)
|
131
|
+
|
132
|
+
private
|
133
|
+
|
134
|
+
def extract_snapshot_id(args, options)
|
135
|
+
value = args[0] || options.delete(:snapshot_id)
|
136
|
+
case value
|
137
|
+
when String then value
|
138
|
+
when nil then raise ArgumentError, "missing required option :snapshot_id"
|
139
|
+
else
|
140
|
+
msg = "expected :snapshot_id to be a String, got #{value.class}"
|
141
|
+
raise ArgumentError, msg
|
144
142
|
end
|
143
|
+
end
|
145
144
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
end
|
145
|
+
def extract_name(args, options)
|
146
|
+
value = args[1] || options.delete(:name)
|
147
|
+
case value
|
148
|
+
when String then value
|
149
|
+
when nil then raise ArgumentError, "missing required option :name"
|
150
|
+
else
|
151
|
+
msg = "expected :name to be a String, got #{value.class}"
|
152
|
+
raise ArgumentError, msg
|
155
153
|
end
|
156
|
-
|
157
|
-
class Collection < Aws::Resources::Collection; end
|
158
154
|
end
|
155
|
+
|
156
|
+
class Collection < Aws::Resources::Collection; end
|
159
157
|
end
|
160
158
|
end
|
@@ -1,188 +1,186 @@
|
|
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 DBSubnetGroup
|
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 :db_subnet_group_name :name
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
34
|
+
# Provides the description of the DB subnet group.
|
35
|
+
# @return [String]
|
36
|
+
def db_subnet_group_description
|
37
|
+
data.db_subnet_group_description
|
38
|
+
end
|
40
39
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
40
|
+
# Provides the VpcId of the DB subnet group.
|
41
|
+
# @return [String]
|
42
|
+
def vpc_id
|
43
|
+
data.vpc_id
|
44
|
+
end
|
46
45
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
46
|
+
# Provides the status of the DB subnet group.
|
47
|
+
# @return [String]
|
48
|
+
def subnet_group_status
|
49
|
+
data.subnet_group_status
|
50
|
+
end
|
52
51
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
# Contains a list of Subnet elements.
|
53
|
+
# @return [Array<Types::Subnet>]
|
54
|
+
def subnets
|
55
|
+
data.subnets
|
56
|
+
end
|
58
57
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
58
|
+
# The Amazon Resource Name (ARN) for the DB subnet group.
|
59
|
+
# @return [String]
|
60
|
+
def db_subnet_group_arn
|
61
|
+
data.db_subnet_group_arn
|
62
|
+
end
|
64
63
|
|
65
|
-
|
64
|
+
# @!endgroup
|
66
65
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
66
|
+
# @return [Client]
|
67
|
+
def client
|
68
|
+
@client
|
69
|
+
end
|
71
70
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
71
|
+
# Loads, or reloads {#data} for the current {DBSubnetGroup}.
|
72
|
+
# Returns `self` making it possible to chain methods.
|
73
|
+
#
|
74
|
+
# db_subnet_group.reload.data
|
75
|
+
#
|
76
|
+
# @return [self]
|
77
|
+
def load
|
78
|
+
resp = @client.describe_db_subnet_groups(db_subnet_group_name: @name)
|
79
|
+
@data = resp.dbsubnetgroups[0]
|
80
|
+
self
|
81
|
+
end
|
82
|
+
alias :reload :load
|
83
|
+
|
84
|
+
# @return [Types::DBSubnetGroup]
|
85
|
+
# Returns the data for this {DBSubnetGroup}. Calls
|
86
|
+
# {Client#describe_db_subnet_groups} if {#data_loaded?} is `false`.
|
87
|
+
def data
|
88
|
+
load unless @data
|
89
|
+
@data
|
90
|
+
end
|
92
91
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
92
|
+
# @return [Boolean]
|
93
|
+
# Returns `true` if this resource is loaded. Accessing attributes or
|
94
|
+
# {#data} on an unloaded resource will trigger a call to {#load}.
|
95
|
+
def data_loaded?
|
96
|
+
!!@data
|
97
|
+
end
|
99
98
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
99
|
+
# @!group Actions
|
100
|
+
|
101
|
+
# @example Request syntax with placeholder values
|
102
|
+
#
|
103
|
+
# dbsubnetgroup = db_subnet_group.create({
|
104
|
+
# db_subnet_group_description: "String", # required
|
105
|
+
# subnet_ids: ["String"], # required
|
106
|
+
# tags: [
|
107
|
+
# {
|
108
|
+
# key: "String",
|
109
|
+
# value: "String",
|
110
|
+
# },
|
111
|
+
# ],
|
112
|
+
# })
|
113
|
+
# @param [Hash] options ({})
|
114
|
+
# @option options [required, String] :db_subnet_group_description
|
115
|
+
# The description for the DB subnet group.
|
116
|
+
# @option options [required, Array<String>] :subnet_ids
|
117
|
+
# The EC2 Subnet IDs for the DB subnet group.
|
118
|
+
# @option options [Array<Types::Tag>] :tags
|
119
|
+
# A list of tags.
|
120
|
+
# @return [DBSubnetGroup]
|
121
|
+
def create(options = {})
|
122
|
+
options = options.merge(db_subnet_group_name: @name)
|
123
|
+
resp = @client.create_db_subnet_group(options)
|
124
|
+
DBSubnetGroup.new(
|
125
|
+
name: resp.data.db_subnet_group.db_subnet_group_name,
|
126
|
+
data: resp.data.db_subnet_group,
|
127
|
+
client: @client
|
128
|
+
)
|
129
|
+
end
|
131
130
|
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
131
|
+
# @example Request syntax with placeholder values
|
132
|
+
#
|
133
|
+
# db_subnet_group.delete()
|
134
|
+
# @param [Hash] options ({})
|
135
|
+
# @return [EmptyStructure]
|
136
|
+
def delete(options = {})
|
137
|
+
options = options.merge(db_subnet_group_name: @name)
|
138
|
+
resp = @client.delete_db_subnet_group(options)
|
139
|
+
resp.data
|
140
|
+
end
|
142
141
|
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
142
|
+
# @example Request syntax with placeholder values
|
143
|
+
#
|
144
|
+
# dbsubnetgroup = db_subnet_group.modify({
|
145
|
+
# db_subnet_group_description: "String",
|
146
|
+
# subnet_ids: ["String"], # required
|
147
|
+
# })
|
148
|
+
# @param [Hash] options ({})
|
149
|
+
# @option options [String] :db_subnet_group_description
|
150
|
+
# The description for the DB subnet group.
|
151
|
+
# @option options [required, Array<String>] :subnet_ids
|
152
|
+
# The EC2 subnet IDs for the DB subnet group.
|
153
|
+
# @return [DBSubnetGroup]
|
154
|
+
def modify(options = {})
|
155
|
+
options = options.merge(db_subnet_group_name: @name)
|
156
|
+
resp = @client.modify_db_subnet_group(options)
|
157
|
+
DBSubnetGroup.new(
|
158
|
+
name: resp.data.db_subnet_group.db_subnet_group_name,
|
159
|
+
data: resp.data.db_subnet_group,
|
160
|
+
client: @client
|
161
|
+
)
|
162
|
+
end
|
164
163
|
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
def extract_name(args, options)
|
175
|
-
value = args[0] || options.delete(:name)
|
176
|
-
case value
|
177
|
-
when String then value
|
178
|
-
when nil then raise ArgumentError, "missing required option :name"
|
179
|
-
else
|
180
|
-
msg = "expected :name to be a String, got #{value.class}"
|
181
|
-
raise ArgumentError, msg
|
182
|
-
end
|
183
|
-
end
|
164
|
+
# @deprecated
|
165
|
+
# @api private
|
166
|
+
def identifiers
|
167
|
+
{ name: @name }
|
168
|
+
end
|
169
|
+
deprecated(:identifiers)
|
170
|
+
|
171
|
+
private
|
184
172
|
|
185
|
-
|
173
|
+
def extract_name(args, options)
|
174
|
+
value = args[0] || options.delete(:name)
|
175
|
+
case value
|
176
|
+
when String then value
|
177
|
+
when nil then raise ArgumentError, "missing required option :name"
|
178
|
+
else
|
179
|
+
msg = "expected :name to be a String, got #{value.class}"
|
180
|
+
raise ArgumentError, msg
|
181
|
+
end
|
186
182
|
end
|
183
|
+
|
184
|
+
class Collection < Aws::Resources::Collection; end
|
187
185
|
end
|
188
186
|
end
|