aws-sdk-iotsitewise 1.77.0 → 1.78.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iotsitewise/client.rb +624 -21
- data/lib/aws-sdk-iotsitewise/client_api.rb +307 -12
- data/lib/aws-sdk-iotsitewise/event_streams.rb +89 -0
- data/lib/aws-sdk-iotsitewise/types.rb +732 -23
- data/lib/aws-sdk-iotsitewise.rb +2 -1
- data/sig/client.rbs +123 -3
- data/sig/resource.rbs +3 -0
- data/sig/types.rbs +197 -4
- metadata +3 -2
@@ -0,0 +1,89 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::IoTSiteWise
|
11
|
+
module EventStreams
|
12
|
+
class ResponseStream
|
13
|
+
|
14
|
+
def initialize
|
15
|
+
@event_emitter = Aws::EventEmitter.new
|
16
|
+
end
|
17
|
+
|
18
|
+
def on_trace_event(&block)
|
19
|
+
@event_emitter.on(:trace, block) if block_given?
|
20
|
+
end
|
21
|
+
|
22
|
+
def on_output_event(&block)
|
23
|
+
@event_emitter.on(:output, block) if block_given?
|
24
|
+
end
|
25
|
+
|
26
|
+
def on_access_denied_exception_event(&block)
|
27
|
+
@event_emitter.on(:access_denied_exception, block) if block_given?
|
28
|
+
end
|
29
|
+
|
30
|
+
def on_conflicting_operation_exception_event(&block)
|
31
|
+
@event_emitter.on(:conflicting_operation_exception, block) if block_given?
|
32
|
+
end
|
33
|
+
|
34
|
+
def on_internal_failure_exception_event(&block)
|
35
|
+
@event_emitter.on(:internal_failure_exception, block) if block_given?
|
36
|
+
end
|
37
|
+
|
38
|
+
def on_invalid_request_exception_event(&block)
|
39
|
+
@event_emitter.on(:invalid_request_exception, block) if block_given?
|
40
|
+
end
|
41
|
+
|
42
|
+
def on_limit_exceeded_exception_event(&block)
|
43
|
+
@event_emitter.on(:limit_exceeded_exception, block) if block_given?
|
44
|
+
end
|
45
|
+
|
46
|
+
def on_resource_not_found_exception_event(&block)
|
47
|
+
@event_emitter.on(:resource_not_found_exception, block) if block_given?
|
48
|
+
end
|
49
|
+
|
50
|
+
def on_throttling_exception_event(&block)
|
51
|
+
@event_emitter.on(:throttling_exception, block) if block_given?
|
52
|
+
end
|
53
|
+
|
54
|
+
def on_error_event(&block)
|
55
|
+
@event_emitter.on(:error, block) if block_given?
|
56
|
+
end
|
57
|
+
|
58
|
+
def on_initial_response_event(&block)
|
59
|
+
@event_emitter.on(:initial_response, block) if block_given?
|
60
|
+
end
|
61
|
+
|
62
|
+
def on_unknown_event(&block)
|
63
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
64
|
+
end
|
65
|
+
|
66
|
+
def on_event(&block)
|
67
|
+
on_trace_event(&block)
|
68
|
+
on_output_event(&block)
|
69
|
+
on_access_denied_exception_event(&block)
|
70
|
+
on_conflicting_operation_exception_event(&block)
|
71
|
+
on_internal_failure_exception_event(&block)
|
72
|
+
on_invalid_request_exception_event(&block)
|
73
|
+
on_limit_exceeded_exception_event(&block)
|
74
|
+
on_resource_not_found_exception_event(&block)
|
75
|
+
on_throttling_exception_event(&block)
|
76
|
+
on_error_event(&block)
|
77
|
+
on_initial_response_event(&block)
|
78
|
+
on_unknown_event(&block)
|
79
|
+
end
|
80
|
+
|
81
|
+
# @api private
|
82
|
+
# @return Aws::EventEmitter
|
83
|
+
attr_reader :event_emitter
|
84
|
+
|
85
|
+
end
|
86
|
+
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|