aws-sdk-neptune 1.0.0
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-neptune.rb +48 -0
- data/lib/aws-sdk-neptune/client.rb +6378 -0
- data/lib/aws-sdk-neptune/client_api.rb +2041 -0
- data/lib/aws-sdk-neptune/customizations.rb +0 -0
- data/lib/aws-sdk-neptune/errors.rb +14 -0
- data/lib/aws-sdk-neptune/resource.rb +23 -0
- data/lib/aws-sdk-neptune/types.rb +7309 -0
- data/lib/aws-sdk-neptune/waiters.rb +148 -0
- metadata +83 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
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::Neptune
|
11
|
+
module Waiters
|
12
|
+
|
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
|
metadata
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aws-sdk-neptune
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Amazon Web Services
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-31 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'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3'
|
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 Neptune. This gem is part of the AWS
|
42
|
+
SDK for Ruby.
|
43
|
+
email:
|
44
|
+
- trevrowe@amazon.com
|
45
|
+
executables: []
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- lib/aws-sdk-neptune.rb
|
50
|
+
- lib/aws-sdk-neptune/client.rb
|
51
|
+
- lib/aws-sdk-neptune/client_api.rb
|
52
|
+
- lib/aws-sdk-neptune/customizations.rb
|
53
|
+
- lib/aws-sdk-neptune/errors.rb
|
54
|
+
- lib/aws-sdk-neptune/resource.rb
|
55
|
+
- lib/aws-sdk-neptune/types.rb
|
56
|
+
- lib/aws-sdk-neptune/waiters.rb
|
57
|
+
homepage: http://github.com/aws/aws-sdk-ruby
|
58
|
+
licenses:
|
59
|
+
- Apache-2.0
|
60
|
+
metadata:
|
61
|
+
source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-neptune
|
62
|
+
changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/master/gems/aws-sdk-neptune/CHANGELOG.md
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
requirements: []
|
78
|
+
rubyforge_project:
|
79
|
+
rubygems_version: 2.5.2.3
|
80
|
+
signing_key:
|
81
|
+
specification_version: 4
|
82
|
+
summary: AWS SDK for Ruby - Amazon Neptune
|
83
|
+
test_files: []
|