aws-sdk-iotsitewise 1.83.0 → 1.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iotsitewise/client.rb +164 -158
- data/lib/aws-sdk-iotsitewise.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a633f9b10be403a5623ad237589a226591ed7606960955eeca48fa95f052f459
|
4
|
+
data.tar.gz: 3eaa40cdd756a8af4a1425e145daa399ef080cfbe1cddb9565d813c93ffce6ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37e478e906299bf617bedf9ed541d7e410e23297047b679b1c7dc0ab622a860d05e1a7f4fe9ad814dc3955908d40680d7f9c30e52f37ee4980d4525805a24f38
|
7
|
+
data.tar.gz: a3498d3f5298379401202857e9e03f1716415c741971c31742f05f34021db3e09edbd37ee93a4b47df4c411b4cb4245fe0f813946b47e5dadddf7e6280ffa72c
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.84.0
|
@@ -4675,158 +4675,164 @@ module Aws::IoTSiteWise
|
|
4675
4675
|
#
|
4676
4676
|
# @example EventStream Operation Example
|
4677
4677
|
#
|
4678
|
-
# You can process the event once it arrives immediately, or wait until the
|
4679
|
-
# full response is complete and iterate through the eventstream enumerator.
|
4680
|
-
#
|
4681
|
-
# To interact with event immediately, you need to register
|
4682
|
-
# with callbacks. Callbacks can be registered for specific events or for all
|
4683
|
-
# events, including error events.
|
4684
|
-
#
|
4685
|
-
# Callbacks can be passed into the `:event_stream_handler` option or within a
|
4686
|
-
# block statement attached to the #invoke_assistant call directly. Hybrid
|
4687
|
-
# pattern of both is also supported.
|
4688
|
-
#
|
4689
|
-
# `:event_stream_handler` option takes in either a Proc object or
|
4690
|
-
# Aws::IoTSiteWise::EventStreams::ResponseStream object.
|
4691
|
-
#
|
4692
|
-
# Usage pattern a): Callbacks with a block attached to #invoke_assistant
|
4693
|
-
#
|
4694
|
-
#
|
4695
|
-
#
|
4696
|
-
#
|
4697
|
-
#
|
4698
|
-
#
|
4699
|
-
#
|
4700
|
-
#
|
4701
|
-
#
|
4702
|
-
#
|
4703
|
-
#
|
4704
|
-
#
|
4705
|
-
# stream.on_event do |event|
|
4706
|
-
# # process all events arrive
|
4707
|
-
# puts event.event_type
|
4708
|
-
# ...
|
4709
|
-
# end
|
4710
|
-
#
|
4678
|
+
# # You can process the event once it arrives immediately, or wait until the
|
4679
|
+
# # full response is complete and iterate through the eventstream enumerator.
|
4680
|
+
#
|
4681
|
+
# # To interact with event immediately, you need to register invoke_assistant
|
4682
|
+
# # with callbacks. Callbacks can be registered for specific events or for all
|
4683
|
+
# # events, including error events.
|
4684
|
+
#
|
4685
|
+
# # Callbacks can be passed into the `:event_stream_handler` option or within a
|
4686
|
+
# # block statement attached to the #invoke_assistant call directly. Hybrid
|
4687
|
+
# # pattern of both is also supported.
|
4688
|
+
#
|
4689
|
+
# # `:event_stream_handler` option takes in either a Proc object or
|
4690
|
+
# # Aws::IoTSiteWise::EventStreams::ResponseStream object.
|
4691
|
+
#
|
4692
|
+
# # Usage pattern a): Callbacks with a block attached to #invoke_assistant
|
4693
|
+
# # Example for registering callbacks for all event types and an error event
|
4694
|
+
# client.invoke_assistant(
|
4695
|
+
# # params input
|
4696
|
+
# ) do |stream|
|
4697
|
+
# stream.on_error_event do |event|
|
4698
|
+
# # catch unmodeled error event in the stream
|
4699
|
+
# raise event
|
4700
|
+
# # => Aws::Errors::EventError
|
4701
|
+
# # event.event_type => :error
|
4702
|
+
# # event.error_code => String
|
4703
|
+
# # event.error_message => String
|
4711
4704
|
# end
|
4712
4705
|
#
|
4713
|
-
#
|
4714
|
-
#
|
4715
|
-
#
|
4716
|
-
#
|
4717
|
-
#
|
4718
|
-
# handler = Aws::IoTSiteWise::EventStreams::ResponseStream.new
|
4719
|
-
# handler.on_trace_event do |event|
|
4720
|
-
# event # => Aws::IoTSiteWise::Types::trace
|
4721
|
-
# end
|
4722
|
-
# handler.on_output_event do |event|
|
4723
|
-
# event # => Aws::IoTSiteWise::Types::output
|
4724
|
-
# end
|
4725
|
-
# handler.on_access_denied_exception_event do |event|
|
4726
|
-
# event # => Aws::IoTSiteWise::Types::accessDeniedException
|
4727
|
-
# end
|
4728
|
-
# handler.on_conflicting_operation_exception_event do |event|
|
4729
|
-
# event # => Aws::IoTSiteWise::Types::conflictingOperationException
|
4730
|
-
# end
|
4731
|
-
# handler.on_internal_failure_exception_event do |event|
|
4732
|
-
# event # => Aws::IoTSiteWise::Types::internalFailureException
|
4733
|
-
# end
|
4734
|
-
# handler.on_invalid_request_exception_event do |event|
|
4735
|
-
# event # => Aws::IoTSiteWise::Types::invalidRequestException
|
4736
|
-
# end
|
4737
|
-
# handler.on_limit_exceeded_exception_event do |event|
|
4738
|
-
# event # => Aws::IoTSiteWise::Types::limitExceededException
|
4739
|
-
# end
|
4740
|
-
# handler.on_resource_not_found_exception_event do |event|
|
4741
|
-
# event # => Aws::IoTSiteWise::Types::resourceNotFoundException
|
4742
|
-
# end
|
4743
|
-
# handler.on_throttling_exception_event do |event|
|
4744
|
-
# event # => Aws::IoTSiteWise::Types::throttlingException
|
4745
|
-
# end
|
4746
|
-
#
|
4747
|
-
# client.invoke_assistant( # params input #, event_stream_handler: handler)
|
4748
|
-
#
|
4749
|
-
# 2) Use a Ruby Proc object
|
4750
|
-
# Example for registering callbacks with specific events
|
4751
|
-
#
|
4752
|
-
# handler = Proc.new do |stream|
|
4753
|
-
# stream.on_trace_event do |event|
|
4754
|
-
# event # => Aws::IoTSiteWise::Types::trace
|
4755
|
-
# end
|
4756
|
-
# stream.on_output_event do |event|
|
4757
|
-
# event # => Aws::IoTSiteWise::Types::output
|
4758
|
-
# end
|
4759
|
-
# stream.on_access_denied_exception_event do |event|
|
4760
|
-
# event # => Aws::IoTSiteWise::Types::accessDeniedException
|
4761
|
-
# end
|
4762
|
-
# stream.on_conflicting_operation_exception_event do |event|
|
4763
|
-
# event # => Aws::IoTSiteWise::Types::conflictingOperationException
|
4764
|
-
# end
|
4765
|
-
# stream.on_internal_failure_exception_event do |event|
|
4766
|
-
# event # => Aws::IoTSiteWise::Types::internalFailureException
|
4767
|
-
# end
|
4768
|
-
# stream.on_invalid_request_exception_event do |event|
|
4769
|
-
# event # => Aws::IoTSiteWise::Types::invalidRequestException
|
4770
|
-
# end
|
4771
|
-
# stream.on_limit_exceeded_exception_event do |event|
|
4772
|
-
# event # => Aws::IoTSiteWise::Types::limitExceededException
|
4773
|
-
# end
|
4774
|
-
# stream.on_resource_not_found_exception_event do |event|
|
4775
|
-
# event # => Aws::IoTSiteWise::Types::resourceNotFoundException
|
4776
|
-
# end
|
4777
|
-
# stream.on_throttling_exception_event do |event|
|
4778
|
-
# event # => Aws::IoTSiteWise::Types::throttlingException
|
4779
|
-
# end
|
4706
|
+
# stream.on_event do |event|
|
4707
|
+
# # process all events arrive
|
4708
|
+
# puts event.event_type
|
4709
|
+
# # ...
|
4780
4710
|
# end
|
4781
|
-
#
|
4782
|
-
#
|
4783
|
-
#
|
4784
|
-
#
|
4785
|
-
#
|
4786
|
-
#
|
4787
|
-
#
|
4788
|
-
#
|
4789
|
-
#
|
4790
|
-
#
|
4791
|
-
#
|
4792
|
-
#
|
4793
|
-
#
|
4794
|
-
#
|
4795
|
-
#
|
4796
|
-
#
|
4797
|
-
#
|
4798
|
-
#
|
4799
|
-
#
|
4800
|
-
#
|
4801
|
-
#
|
4802
|
-
#
|
4803
|
-
#
|
4804
|
-
#
|
4805
|
-
#
|
4806
|
-
#
|
4807
|
-
#
|
4808
|
-
#
|
4809
|
-
#
|
4810
|
-
#
|
4811
|
-
#
|
4812
|
-
#
|
4813
|
-
#
|
4814
|
-
#
|
4815
|
-
#
|
4816
|
-
#
|
4817
|
-
#
|
4818
|
-
#
|
4819
|
-
#
|
4820
|
-
#
|
4821
|
-
#
|
4822
|
-
#
|
4823
|
-
#
|
4711
|
+
# end
|
4712
|
+
#
|
4713
|
+
# # Usage pattern b): Pass in `:event_stream_handler` for #invoke_assistant
|
4714
|
+
# # 1) Create a Aws::IoTSiteWise::EventStreams::ResponseStream object
|
4715
|
+
# # Example for registering callbacks with specific events
|
4716
|
+
#
|
4717
|
+
# handler = Aws::IoTSiteWise::EventStreams::ResponseStream.new
|
4718
|
+
# handler.on_trace_event do |event|
|
4719
|
+
# event # => Aws::IoTSiteWise::Types::trace
|
4720
|
+
# end
|
4721
|
+
# handler.on_output_event do |event|
|
4722
|
+
# event # => Aws::IoTSiteWise::Types::output
|
4723
|
+
# end
|
4724
|
+
# handler.on_access_denied_exception_event do |event|
|
4725
|
+
# event # => Aws::IoTSiteWise::Types::accessDeniedException
|
4726
|
+
# end
|
4727
|
+
# handler.on_conflicting_operation_exception_event do |event|
|
4728
|
+
# event # => Aws::IoTSiteWise::Types::conflictingOperationException
|
4729
|
+
# end
|
4730
|
+
# handler.on_internal_failure_exception_event do |event|
|
4731
|
+
# event # => Aws::IoTSiteWise::Types::internalFailureException
|
4732
|
+
# end
|
4733
|
+
# handler.on_invalid_request_exception_event do |event|
|
4734
|
+
# event # => Aws::IoTSiteWise::Types::invalidRequestException
|
4735
|
+
# end
|
4736
|
+
# handler.on_limit_exceeded_exception_event do |event|
|
4737
|
+
# event # => Aws::IoTSiteWise::Types::limitExceededException
|
4738
|
+
# end
|
4739
|
+
# handler.on_resource_not_found_exception_event do |event|
|
4740
|
+
# event # => Aws::IoTSiteWise::Types::resourceNotFoundException
|
4741
|
+
# end
|
4742
|
+
# handler.on_throttling_exception_event do |event|
|
4743
|
+
# event # => Aws::IoTSiteWise::Types::throttlingException
|
4744
|
+
# end
|
4745
|
+
#
|
4746
|
+
# client.invoke_assistant(
|
4747
|
+
# # params inputs
|
4748
|
+
# event_stream_handler: handler
|
4749
|
+
# )
|
4750
|
+
#
|
4751
|
+
# # 2) Use a Ruby Proc object
|
4752
|
+
# # Example for registering callbacks with specific events
|
4753
|
+
# handler = Proc.new do |stream|
|
4754
|
+
# stream.on_trace_event do |event|
|
4755
|
+
# event # => Aws::IoTSiteWise::Types::trace
|
4824
4756
|
# end
|
4757
|
+
# stream.on_output_event do |event|
|
4758
|
+
# event # => Aws::IoTSiteWise::Types::output
|
4759
|
+
# end
|
4760
|
+
# stream.on_access_denied_exception_event do |event|
|
4761
|
+
# event # => Aws::IoTSiteWise::Types::accessDeniedException
|
4762
|
+
# end
|
4763
|
+
# stream.on_conflicting_operation_exception_event do |event|
|
4764
|
+
# event # => Aws::IoTSiteWise::Types::conflictingOperationException
|
4765
|
+
# end
|
4766
|
+
# stream.on_internal_failure_exception_event do |event|
|
4767
|
+
# event # => Aws::IoTSiteWise::Types::internalFailureException
|
4768
|
+
# end
|
4769
|
+
# stream.on_invalid_request_exception_event do |event|
|
4770
|
+
# event # => Aws::IoTSiteWise::Types::invalidRequestException
|
4771
|
+
# end
|
4772
|
+
# stream.on_limit_exceeded_exception_event do |event|
|
4773
|
+
# event # => Aws::IoTSiteWise::Types::limitExceededException
|
4774
|
+
# end
|
4775
|
+
# stream.on_resource_not_found_exception_event do |event|
|
4776
|
+
# event # => Aws::IoTSiteWise::Types::resourceNotFoundException
|
4777
|
+
# end
|
4778
|
+
# stream.on_throttling_exception_event do |event|
|
4779
|
+
# event # => Aws::IoTSiteWise::Types::throttlingException
|
4780
|
+
# end
|
4781
|
+
# end
|
4782
|
+
#
|
4783
|
+
# client.invoke_assistant(
|
4784
|
+
# # params inputs
|
4785
|
+
# event_stream_handler: handler
|
4786
|
+
# )
|
4787
|
+
#
|
4788
|
+
# # Usage pattern c): Hybrid pattern of a) and b)
|
4789
|
+
# handler = Aws::IoTSiteWise::EventStreams::ResponseStream.new
|
4790
|
+
# handler.on_trace_event do |event|
|
4791
|
+
# event # => Aws::IoTSiteWise::Types::trace
|
4792
|
+
# end
|
4793
|
+
# handler.on_output_event do |event|
|
4794
|
+
# event # => Aws::IoTSiteWise::Types::output
|
4795
|
+
# end
|
4796
|
+
# handler.on_access_denied_exception_event do |event|
|
4797
|
+
# event # => Aws::IoTSiteWise::Types::accessDeniedException
|
4798
|
+
# end
|
4799
|
+
# handler.on_conflicting_operation_exception_event do |event|
|
4800
|
+
# event # => Aws::IoTSiteWise::Types::conflictingOperationException
|
4801
|
+
# end
|
4802
|
+
# handler.on_internal_failure_exception_event do |event|
|
4803
|
+
# event # => Aws::IoTSiteWise::Types::internalFailureException
|
4804
|
+
# end
|
4805
|
+
# handler.on_invalid_request_exception_event do |event|
|
4806
|
+
# event # => Aws::IoTSiteWise::Types::invalidRequestException
|
4807
|
+
# end
|
4808
|
+
# handler.on_limit_exceeded_exception_event do |event|
|
4809
|
+
# event # => Aws::IoTSiteWise::Types::limitExceededException
|
4810
|
+
# end
|
4811
|
+
# handler.on_resource_not_found_exception_event do |event|
|
4812
|
+
# event # => Aws::IoTSiteWise::Types::resourceNotFoundException
|
4813
|
+
# end
|
4814
|
+
# handler.on_throttling_exception_event do |event|
|
4815
|
+
# event # => Aws::IoTSiteWise::Types::throttlingException
|
4816
|
+
# end
|
4817
|
+
#
|
4818
|
+
# client.invoke_assistant(
|
4819
|
+
# # params input
|
4820
|
+
# event_stream_handler: handler
|
4821
|
+
# ) do |stream|
|
4822
|
+
# stream.on_error_event do |event|
|
4823
|
+
# # catch unmodeled error event in the stream
|
4824
|
+
# raise event
|
4825
|
+
# # => Aws::Errors::EventError
|
4826
|
+
# # event.event_type => :error
|
4827
|
+
# # event.error_code => String
|
4828
|
+
# # event.error_message => String
|
4829
|
+
# end
|
4830
|
+
# end
|
4825
4831
|
#
|
4826
|
-
# You can also iterate through events after the response complete.
|
4827
|
-
#
|
4828
|
-
#
|
4829
|
-
# For parameter input example, please refer to following request syntax
|
4832
|
+
# # You can also iterate through events after the response complete.
|
4833
|
+
# # Events are available at
|
4834
|
+
# resp.body # => Enumerator
|
4835
|
+
# # For parameter input example, please refer to following request syntax.
|
4830
4836
|
#
|
4831
4837
|
# @example Request syntax with placeholder values
|
4832
4838
|
#
|
@@ -4838,14 +4844,14 @@ module Aws::IoTSiteWise
|
|
4838
4844
|
#
|
4839
4845
|
# @example Response structure
|
4840
4846
|
#
|
4841
|
-
# All events are available at resp.body:
|
4847
|
+
# # All events are available at resp.body:
|
4842
4848
|
# resp.body #=> Enumerator
|
4843
4849
|
# resp.body.event_types #=> [:trace, :output, :access_denied_exception, :conflicting_operation_exception, :internal_failure_exception, :invalid_request_exception, :limit_exceeded_exception, :resource_not_found_exception, :throttling_exception]
|
4844
4850
|
#
|
4845
|
-
# For :trace event available at #on_trace_event callback and response eventstream enumerator:
|
4851
|
+
# # For :trace event available at #on_trace_event callback and response eventstream enumerator:
|
4846
4852
|
# event.text #=> String
|
4847
4853
|
#
|
4848
|
-
# For :output event available at #on_output_event callback and response eventstream enumerator:
|
4854
|
+
# # For :output event available at #on_output_event callback and response eventstream enumerator:
|
4849
4855
|
# event.message #=> String
|
4850
4856
|
# event.citations #=> Array
|
4851
4857
|
# event.citations[0].reference.dataset.dataset_arn #=> String
|
@@ -4853,27 +4859,27 @@ module Aws::IoTSiteWise
|
|
4853
4859
|
# event.citations[0].reference.dataset.source.location.uri #=> String
|
4854
4860
|
# event.citations[0].content.text #=> String
|
4855
4861
|
#
|
4856
|
-
# For :access_denied_exception event available at #on_access_denied_exception_event callback and response eventstream enumerator:
|
4862
|
+
# # For :access_denied_exception event available at #on_access_denied_exception_event callback and response eventstream enumerator:
|
4857
4863
|
# event.message #=> String
|
4858
4864
|
#
|
4859
|
-
# For :conflicting_operation_exception event available at #on_conflicting_operation_exception_event callback and response eventstream enumerator:
|
4865
|
+
# # For :conflicting_operation_exception event available at #on_conflicting_operation_exception_event callback and response eventstream enumerator:
|
4860
4866
|
# event.message #=> String
|
4861
4867
|
# event.resource_id #=> String
|
4862
4868
|
# event.resource_arn #=> String
|
4863
4869
|
#
|
4864
|
-
# For :internal_failure_exception event available at #on_internal_failure_exception_event callback and response eventstream enumerator:
|
4870
|
+
# # For :internal_failure_exception event available at #on_internal_failure_exception_event callback and response eventstream enumerator:
|
4865
4871
|
# event.message #=> String
|
4866
4872
|
#
|
4867
|
-
# For :invalid_request_exception event available at #on_invalid_request_exception_event callback and response eventstream enumerator:
|
4873
|
+
# # For :invalid_request_exception event available at #on_invalid_request_exception_event callback and response eventstream enumerator:
|
4868
4874
|
# event.message #=> String
|
4869
4875
|
#
|
4870
|
-
# For :limit_exceeded_exception event available at #on_limit_exceeded_exception_event callback and response eventstream enumerator:
|
4876
|
+
# # For :limit_exceeded_exception event available at #on_limit_exceeded_exception_event callback and response eventstream enumerator:
|
4871
4877
|
# event.message #=> String
|
4872
4878
|
#
|
4873
|
-
# For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
|
4879
|
+
# # For :resource_not_found_exception event available at #on_resource_not_found_exception_event callback and response eventstream enumerator:
|
4874
4880
|
# event.message #=> String
|
4875
4881
|
#
|
4876
|
-
# For :throttling_exception event available at #on_throttling_exception_event callback and response eventstream enumerator:
|
4882
|
+
# # For :throttling_exception event available at #on_throttling_exception_event callback and response eventstream enumerator:
|
4877
4883
|
# event.message #=> String
|
4878
4884
|
#
|
4879
4885
|
# resp.conversation_id #=> String
|
@@ -7453,7 +7459,7 @@ module Aws::IoTSiteWise
|
|
7453
7459
|
tracer: tracer
|
7454
7460
|
)
|
7455
7461
|
context[:gem_name] = 'aws-sdk-iotsitewise'
|
7456
|
-
context[:gem_version] = '1.
|
7462
|
+
context[:gem_version] = '1.84.0'
|
7457
7463
|
Seahorse::Client::Request.new(handlers, context)
|
7458
7464
|
end
|
7459
7465
|
|
data/lib/aws-sdk-iotsitewise.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-iotsitewise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.84.0
|
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: 2025-
|
11
|
+
date: 2025-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|