aws-sdk-kinesis 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-kinesis.rb +2 -2
- data/lib/aws-sdk-kinesis/client.rb +1518 -1353
- data/lib/aws-sdk-kinesis/client_api.rb +518 -520
- data/lib/aws-sdk-kinesis/errors.rb +4 -13
- data/lib/aws-sdk-kinesis/resource.rb +12 -14
- data/lib/aws-sdk-kinesis/types.rb +1156 -991
- data/lib/aws-sdk-kinesis/waiters.rb +71 -37
- metadata +2 -2
@@ -1,50 +1,84 @@
|
|
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
8
|
require 'aws-sdk-core/waiters'
|
9
9
|
|
10
|
-
module Aws
|
11
|
-
module
|
12
|
-
module Waiters
|
13
|
-
class StreamExists
|
14
|
-
|
15
|
-
# @param [Hash] options
|
16
|
-
# @option options [required, Client] :client
|
17
|
-
# @option options [Integer] :max_attempts (18)
|
18
|
-
# @option options [Integer] :delay (10)
|
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: 18,
|
25
|
-
delay: 10,
|
26
|
-
poller: Aws::Waiters::Poller.new(
|
27
|
-
operation_name: :describe_stream,
|
28
|
-
acceptors: [{
|
29
|
-
"expected" => "ACTIVE",
|
30
|
-
"matcher" => "path",
|
31
|
-
"state" => "success",
|
32
|
-
"argument" => "stream_description.stream_status"
|
33
|
-
}]
|
34
|
-
)
|
35
|
-
}.merge(options))
|
36
|
-
end
|
37
|
-
|
38
|
-
# @option (see Client#describe_stream)
|
39
|
-
# @return (see Client#describe_stream)
|
40
|
-
def wait(params = {})
|
41
|
-
@waiter.wait(client: @client, params: params)
|
42
|
-
end
|
43
|
-
|
44
|
-
# @api private
|
45
|
-
attr_reader :waiter
|
10
|
+
module Aws::Kinesis
|
11
|
+
module Waiters
|
46
12
|
|
13
|
+
class StreamExists
|
14
|
+
|
15
|
+
# @param [Hash] options
|
16
|
+
# @option options [required, Client] :client
|
17
|
+
# @option options [Integer] :max_attempts (18)
|
18
|
+
# @option options [Integer] :delay (10)
|
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: 18,
|
25
|
+
delay: 10,
|
26
|
+
poller: Aws::Waiters::Poller.new(
|
27
|
+
operation_name: :describe_stream,
|
28
|
+
acceptors: [{
|
29
|
+
"expected" => "ACTIVE",
|
30
|
+
"matcher" => "path",
|
31
|
+
"state" => "success",
|
32
|
+
"argument" => "stream_description.stream_status"
|
33
|
+
}]
|
34
|
+
)
|
35
|
+
}.merge(options))
|
36
|
+
end
|
37
|
+
|
38
|
+
# @option (see Client#describe_stream)
|
39
|
+
# @return (see Client#describe_stream)
|
40
|
+
def wait(params = {})
|
41
|
+
@waiter.wait(client: @client, params: params)
|
47
42
|
end
|
43
|
+
|
44
|
+
# @api private
|
45
|
+
attr_reader :waiter
|
46
|
+
|
47
|
+
end
|
48
|
+
|
49
|
+
class StreamNotExists
|
50
|
+
|
51
|
+
# @param [Hash] options
|
52
|
+
# @option options [required, Client] :client
|
53
|
+
# @option options [Integer] :max_attempts (18)
|
54
|
+
# @option options [Integer] :delay (10)
|
55
|
+
# @option options [Proc] :before_attempt
|
56
|
+
# @option options [Proc] :before_wait
|
57
|
+
def initialize(options)
|
58
|
+
@client = options.fetch(:client)
|
59
|
+
@waiter = Aws::Waiters::Waiter.new({
|
60
|
+
max_attempts: 18,
|
61
|
+
delay: 10,
|
62
|
+
poller: Aws::Waiters::Poller.new(
|
63
|
+
operation_name: :describe_stream,
|
64
|
+
acceptors: [{
|
65
|
+
"expected" => "ResourceNotFoundException",
|
66
|
+
"matcher" => "error",
|
67
|
+
"state" => "success"
|
68
|
+
}]
|
69
|
+
)
|
70
|
+
}.merge(options))
|
71
|
+
end
|
72
|
+
|
73
|
+
# @option (see Client#describe_stream)
|
74
|
+
# @return (see Client#describe_stream)
|
75
|
+
def wait(params = {})
|
76
|
+
@waiter.wait(client: @client, params: params)
|
77
|
+
end
|
78
|
+
|
79
|
+
# @api private
|
80
|
+
attr_reader :waiter
|
81
|
+
|
48
82
|
end
|
49
83
|
end
|
50
84
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kinesis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|