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