aws-sdk-rds 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/aws-sdk-rds.rb +73 -0
- data/lib/aws-sdk-rds/account_quota.rb +100 -0
- data/lib/aws-sdk-rds/certificate.rb +123 -0
- data/lib/aws-sdk-rds/client.rb +9214 -0
- data/lib/aws-sdk-rds/client_api.rb +3027 -0
- data/lib/aws-sdk-rds/customizations.rb +7 -0
- data/lib/aws-sdk-rds/db_cluster.rb +1074 -0
- data/lib/aws-sdk-rds/db_cluster_parameter_group.rb +230 -0
- data/lib/aws-sdk-rds/db_cluster_snapshot.rb +478 -0
- data/lib/aws-sdk-rds/db_engine.rb +241 -0
- data/lib/aws-sdk-rds/db_engine_version.rb +263 -0
- data/lib/aws-sdk-rds/db_instance.rb +2680 -0
- data/lib/aws-sdk-rds/db_log_file.rb +170 -0
- data/lib/aws-sdk-rds/db_parameter_group.rb +455 -0
- data/lib/aws-sdk-rds/db_parameter_group_family.rb +167 -0
- data/lib/aws-sdk-rds/db_security_group.rb +358 -0
- data/lib/aws-sdk-rds/db_snapshot.rb +714 -0
- data/lib/aws-sdk-rds/db_snapshot_attribute.rb +160 -0
- data/lib/aws-sdk-rds/db_subnet_group.rb +188 -0
- data/lib/aws-sdk-rds/errors.rb +23 -0
- data/lib/aws-sdk-rds/event.rb +134 -0
- data/lib/aws-sdk-rds/event_category_map.rb +98 -0
- data/lib/aws-sdk-rds/event_subscription.rb +352 -0
- data/lib/aws-sdk-rds/option_group.rb +283 -0
- data/lib/aws-sdk-rds/option_group_option.rb +166 -0
- data/lib/aws-sdk-rds/parameter.rb +144 -0
- data/lib/aws-sdk-rds/pending_maintenance_action.rb +211 -0
- data/lib/aws-sdk-rds/reserved_db_instance.rb +191 -0
- data/lib/aws-sdk-rds/reserved_db_instances_offering.rb +183 -0
- data/lib/aws-sdk-rds/resource.rb +2384 -0
- data/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb +111 -0
- data/lib/aws-sdk-rds/types.rb +10965 -0
- data/lib/aws-sdk-rds/waiters.rb +149 -0
- metadata +106 -0
@@ -0,0 +1,149 @@
|
|
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
|
+
require 'aws-sdk-core/waiters'
|
9
|
+
|
10
|
+
module Aws
|
11
|
+
module RDS
|
12
|
+
module Waiters
|
13
|
+
class DBInstanceAvailable
|
14
|
+
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (60)
|
18
|
+
# @option options [Integer] :delay (30)
|
19
|
+
# @option options [Proc] :before_attempt
|
20
|
+
# @option options [Proc] :before_wait
|
21
|
+
def initialize(options)
|
22
|
+
@client = options.fetch(:client)
|
23
|
+
@waiter = Aws::Waiters::Waiter.new({
|
24
|
+
max_attempts: 60,
|
25
|
+
delay: 30,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :describe_db_instances,
|
28
|
+
acceptors: [
|
29
|
+
{
|
30
|
+
"expected" => "available",
|
31
|
+
"matcher" => "pathAll",
|
32
|
+
"state" => "success",
|
33
|
+
"argument" => "db_instances[].db_instance_status"
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"expected" => "deleted",
|
37
|
+
"matcher" => "pathAny",
|
38
|
+
"state" => "failure",
|
39
|
+
"argument" => "db_instances[].db_instance_status"
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"expected" => "deleting",
|
43
|
+
"matcher" => "pathAny",
|
44
|
+
"state" => "failure",
|
45
|
+
"argument" => "db_instances[].db_instance_status"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"expected" => "failed",
|
49
|
+
"matcher" => "pathAny",
|
50
|
+
"state" => "failure",
|
51
|
+
"argument" => "db_instances[].db_instance_status"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"expected" => "incompatible-restore",
|
55
|
+
"matcher" => "pathAny",
|
56
|
+
"state" => "failure",
|
57
|
+
"argument" => "db_instances[].db_instance_status"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"expected" => "incompatible-parameters",
|
61
|
+
"matcher" => "pathAny",
|
62
|
+
"state" => "failure",
|
63
|
+
"argument" => "db_instances[].db_instance_status"
|
64
|
+
}
|
65
|
+
]
|
66
|
+
)
|
67
|
+
}.merge(options))
|
68
|
+
end
|
69
|
+
|
70
|
+
# @option (see Client#describe_db_instances)
|
71
|
+
# @return (see Client#describe_db_instances)
|
72
|
+
def wait(params = {})
|
73
|
+
@waiter.wait(client: @client, params: params)
|
74
|
+
end
|
75
|
+
|
76
|
+
# @api private
|
77
|
+
attr_reader :waiter
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
class DBInstanceDeleted
|
82
|
+
|
83
|
+
# @param [Hash] options
|
84
|
+
# @option options [required, Client] :client
|
85
|
+
# @option options [Integer] :max_attempts (60)
|
86
|
+
# @option options [Integer] :delay (30)
|
87
|
+
# @option options [Proc] :before_attempt
|
88
|
+
# @option options [Proc] :before_wait
|
89
|
+
def initialize(options)
|
90
|
+
@client = options.fetch(:client)
|
91
|
+
@waiter = Aws::Waiters::Waiter.new({
|
92
|
+
max_attempts: 60,
|
93
|
+
delay: 30,
|
94
|
+
poller: Aws::Waiters::Poller.new(
|
95
|
+
operation_name: :describe_db_instances,
|
96
|
+
acceptors: [
|
97
|
+
{
|
98
|
+
"expected" => "deleted",
|
99
|
+
"matcher" => "pathAll",
|
100
|
+
"state" => "success",
|
101
|
+
"argument" => "db_instances[].db_instance_status"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"expected" => "DBInstanceNotFound",
|
105
|
+
"matcher" => "error",
|
106
|
+
"state" => "success"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"expected" => "creating",
|
110
|
+
"matcher" => "pathAny",
|
111
|
+
"state" => "failure",
|
112
|
+
"argument" => "db_instances[].db_instance_status"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"expected" => "modifying",
|
116
|
+
"matcher" => "pathAny",
|
117
|
+
"state" => "failure",
|
118
|
+
"argument" => "db_instances[].db_instance_status"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"expected" => "rebooting",
|
122
|
+
"matcher" => "pathAny",
|
123
|
+
"state" => "failure",
|
124
|
+
"argument" => "db_instances[].db_instance_status"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"expected" => "resetting-master-credentials",
|
128
|
+
"matcher" => "pathAny",
|
129
|
+
"state" => "failure",
|
130
|
+
"argument" => "db_instances[].db_instance_status"
|
131
|
+
}
|
132
|
+
]
|
133
|
+
)
|
134
|
+
}.merge(options))
|
135
|
+
end
|
136
|
+
|
137
|
+
# @option (see Client#describe_db_instances)
|
138
|
+
# @return (see Client#describe_db_instances)
|
139
|
+
def wait(params = {})
|
140
|
+
@waiter.wait(client: @client, params: params)
|
141
|
+
end
|
142
|
+
|
143
|
+
# @api private
|
144
|
+
attr_reader :waiter
|
145
|
+
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-rds
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0.rc1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: aws-sdk-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.0.0.rc1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.0.0.rc1
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sigv4
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
description: Official AWS Ruby gem for Amazon Relational Database Service (Amazon
|
42
|
+
RDS). This gem is part of the AWS SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-rds.rb
|
50
|
+
- lib/aws-sdk-rds/account_quota.rb
|
51
|
+
- lib/aws-sdk-rds/certificate.rb
|
52
|
+
- lib/aws-sdk-rds/client.rb
|
53
|
+
- lib/aws-sdk-rds/client_api.rb
|
54
|
+
- lib/aws-sdk-rds/customizations.rb
|
55
|
+
- lib/aws-sdk-rds/db_cluster.rb
|
56
|
+
- lib/aws-sdk-rds/db_cluster_parameter_group.rb
|
57
|
+
- lib/aws-sdk-rds/db_cluster_snapshot.rb
|
58
|
+
- lib/aws-sdk-rds/db_engine.rb
|
59
|
+
- lib/aws-sdk-rds/db_engine_version.rb
|
60
|
+
- lib/aws-sdk-rds/db_instance.rb
|
61
|
+
- lib/aws-sdk-rds/db_log_file.rb
|
62
|
+
- lib/aws-sdk-rds/db_parameter_group.rb
|
63
|
+
- lib/aws-sdk-rds/db_parameter_group_family.rb
|
64
|
+
- lib/aws-sdk-rds/db_security_group.rb
|
65
|
+
- lib/aws-sdk-rds/db_snapshot.rb
|
66
|
+
- lib/aws-sdk-rds/db_snapshot_attribute.rb
|
67
|
+
- lib/aws-sdk-rds/db_subnet_group.rb
|
68
|
+
- lib/aws-sdk-rds/errors.rb
|
69
|
+
- lib/aws-sdk-rds/event.rb
|
70
|
+
- lib/aws-sdk-rds/event_category_map.rb
|
71
|
+
- lib/aws-sdk-rds/event_subscription.rb
|
72
|
+
- lib/aws-sdk-rds/option_group.rb
|
73
|
+
- lib/aws-sdk-rds/option_group_option.rb
|
74
|
+
- lib/aws-sdk-rds/parameter.rb
|
75
|
+
- lib/aws-sdk-rds/pending_maintenance_action.rb
|
76
|
+
- lib/aws-sdk-rds/reserved_db_instance.rb
|
77
|
+
- lib/aws-sdk-rds/reserved_db_instances_offering.rb
|
78
|
+
- lib/aws-sdk-rds/resource.rb
|
79
|
+
- lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb
|
80
|
+
- lib/aws-sdk-rds/types.rb
|
81
|
+
- lib/aws-sdk-rds/waiters.rb
|
82
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
83
|
+
licenses:
|
84
|
+
- Apache-2.0
|
85
|
+
metadata: {}
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 1.3.1
|
100
|
+
requirements: []
|
101
|
+
rubyforge_project:
|
102
|
+
rubygems_version: 2.5.1
|
103
|
+
signing_key:
|
104
|
+
specification_version: 4
|
105
|
+
summary: AWS SDK for Ruby - Amazon RDS
|
106
|
+
test_files: []
|