aws-sdk-ioteventsdata 1.0.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 +7 -0
- data/lib/aws-sdk-ioteventsdata.rb +47 -0
- data/lib/aws-sdk-ioteventsdata/client.rb +471 -0
- data/lib/aws-sdk-ioteventsdata/client_api.rb +264 -0
- data/lib/aws-sdk-ioteventsdata/customizations.rb +0 -0
- data/lib/aws-sdk-ioteventsdata/errors.rb +94 -0
- data/lib/aws-sdk-ioteventsdata/resource.rb +23 -0
- data/lib/aws-sdk-ioteventsdata/types.rb +598 -0
- metadata +88 -0
@@ -0,0 +1,264 @@
|
|
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
|
+
module Aws::IoTEventsData
|
9
|
+
# @api private
|
10
|
+
module ClientApi
|
11
|
+
|
12
|
+
include Seahorse::Model
|
13
|
+
|
14
|
+
BatchPutMessageErrorEntries = Shapes::ListShape.new(name: 'BatchPutMessageErrorEntries')
|
15
|
+
BatchPutMessageErrorEntry = Shapes::StructureShape.new(name: 'BatchPutMessageErrorEntry')
|
16
|
+
BatchPutMessageRequest = Shapes::StructureShape.new(name: 'BatchPutMessageRequest')
|
17
|
+
BatchPutMessageResponse = Shapes::StructureShape.new(name: 'BatchPutMessageResponse')
|
18
|
+
BatchUpdateDetectorErrorEntries = Shapes::ListShape.new(name: 'BatchUpdateDetectorErrorEntries')
|
19
|
+
BatchUpdateDetectorErrorEntry = Shapes::StructureShape.new(name: 'BatchUpdateDetectorErrorEntry')
|
20
|
+
BatchUpdateDetectorRequest = Shapes::StructureShape.new(name: 'BatchUpdateDetectorRequest')
|
21
|
+
BatchUpdateDetectorResponse = Shapes::StructureShape.new(name: 'BatchUpdateDetectorResponse')
|
22
|
+
DescribeDetectorRequest = Shapes::StructureShape.new(name: 'DescribeDetectorRequest')
|
23
|
+
DescribeDetectorResponse = Shapes::StructureShape.new(name: 'DescribeDetectorResponse')
|
24
|
+
Detector = Shapes::StructureShape.new(name: 'Detector')
|
25
|
+
DetectorModelName = Shapes::StringShape.new(name: 'DetectorModelName')
|
26
|
+
DetectorModelVersion = Shapes::StringShape.new(name: 'DetectorModelVersion')
|
27
|
+
DetectorState = Shapes::StructureShape.new(name: 'DetectorState')
|
28
|
+
DetectorStateDefinition = Shapes::StructureShape.new(name: 'DetectorStateDefinition')
|
29
|
+
DetectorStateSummary = Shapes::StructureShape.new(name: 'DetectorStateSummary')
|
30
|
+
DetectorSummaries = Shapes::ListShape.new(name: 'DetectorSummaries')
|
31
|
+
DetectorSummary = Shapes::StructureShape.new(name: 'DetectorSummary')
|
32
|
+
ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
|
33
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
34
|
+
InputName = Shapes::StringShape.new(name: 'InputName')
|
35
|
+
InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
|
36
|
+
InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
|
37
|
+
KeyValue = Shapes::StringShape.new(name: 'KeyValue')
|
38
|
+
ListDetectorsRequest = Shapes::StructureShape.new(name: 'ListDetectorsRequest')
|
39
|
+
ListDetectorsResponse = Shapes::StructureShape.new(name: 'ListDetectorsResponse')
|
40
|
+
MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
|
41
|
+
Message = Shapes::StructureShape.new(name: 'Message')
|
42
|
+
MessageId = Shapes::StringShape.new(name: 'MessageId')
|
43
|
+
Messages = Shapes::ListShape.new(name: 'Messages')
|
44
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
45
|
+
Payload = Shapes::BlobShape.new(name: 'Payload')
|
46
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
47
|
+
Seconds = Shapes::IntegerShape.new(name: 'Seconds')
|
48
|
+
ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
|
49
|
+
StateName = Shapes::StringShape.new(name: 'StateName')
|
50
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
51
|
+
Timer = Shapes::StructureShape.new(name: 'Timer')
|
52
|
+
TimerDefinition = Shapes::StructureShape.new(name: 'TimerDefinition')
|
53
|
+
TimerDefinitions = Shapes::ListShape.new(name: 'TimerDefinitions')
|
54
|
+
TimerName = Shapes::StringShape.new(name: 'TimerName')
|
55
|
+
Timers = Shapes::ListShape.new(name: 'Timers')
|
56
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
57
|
+
UpdateDetectorRequest = Shapes::StructureShape.new(name: 'UpdateDetectorRequest')
|
58
|
+
UpdateDetectorRequests = Shapes::ListShape.new(name: 'UpdateDetectorRequests')
|
59
|
+
Variable = Shapes::StructureShape.new(name: 'Variable')
|
60
|
+
VariableDefinition = Shapes::StructureShape.new(name: 'VariableDefinition')
|
61
|
+
VariableDefinitions = Shapes::ListShape.new(name: 'VariableDefinitions')
|
62
|
+
VariableName = Shapes::StringShape.new(name: 'VariableName')
|
63
|
+
VariableValue = Shapes::StringShape.new(name: 'VariableValue')
|
64
|
+
Variables = Shapes::ListShape.new(name: 'Variables')
|
65
|
+
errorMessage = Shapes::StringShape.new(name: 'errorMessage')
|
66
|
+
|
67
|
+
BatchPutMessageErrorEntries.member = Shapes::ShapeRef.new(shape: BatchPutMessageErrorEntry)
|
68
|
+
|
69
|
+
BatchPutMessageErrorEntry.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, location_name: "messageId"))
|
70
|
+
BatchPutMessageErrorEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
|
71
|
+
BatchPutMessageErrorEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
|
72
|
+
BatchPutMessageErrorEntry.struct_class = Types::BatchPutMessageErrorEntry
|
73
|
+
|
74
|
+
BatchPutMessageRequest.add_member(:messages, Shapes::ShapeRef.new(shape: Messages, required: true, location_name: "messages"))
|
75
|
+
BatchPutMessageRequest.struct_class = Types::BatchPutMessageRequest
|
76
|
+
|
77
|
+
BatchPutMessageResponse.add_member(:batch_put_message_error_entries, Shapes::ShapeRef.new(shape: BatchPutMessageErrorEntries, location_name: "BatchPutMessageErrorEntries"))
|
78
|
+
BatchPutMessageResponse.struct_class = Types::BatchPutMessageResponse
|
79
|
+
|
80
|
+
BatchUpdateDetectorErrorEntries.member = Shapes::ShapeRef.new(shape: BatchUpdateDetectorErrorEntry)
|
81
|
+
|
82
|
+
BatchUpdateDetectorErrorEntry.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, location_name: "messageId"))
|
83
|
+
BatchUpdateDetectorErrorEntry.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "errorCode"))
|
84
|
+
BatchUpdateDetectorErrorEntry.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
|
85
|
+
BatchUpdateDetectorErrorEntry.struct_class = Types::BatchUpdateDetectorErrorEntry
|
86
|
+
|
87
|
+
BatchUpdateDetectorRequest.add_member(:detectors, Shapes::ShapeRef.new(shape: UpdateDetectorRequests, required: true, location_name: "detectors"))
|
88
|
+
BatchUpdateDetectorRequest.struct_class = Types::BatchUpdateDetectorRequest
|
89
|
+
|
90
|
+
BatchUpdateDetectorResponse.add_member(:batch_update_detector_error_entries, Shapes::ShapeRef.new(shape: BatchUpdateDetectorErrorEntries, location_name: "batchUpdateDetectorErrorEntries"))
|
91
|
+
BatchUpdateDetectorResponse.struct_class = Types::BatchUpdateDetectorResponse
|
92
|
+
|
93
|
+
DescribeDetectorRequest.add_member(:detector_model_name, Shapes::ShapeRef.new(shape: DetectorModelName, required: true, location: "uri", location_name: "detectorModelName"))
|
94
|
+
DescribeDetectorRequest.add_member(:key_value, Shapes::ShapeRef.new(shape: KeyValue, location: "querystring", location_name: "keyValue"))
|
95
|
+
DescribeDetectorRequest.struct_class = Types::DescribeDetectorRequest
|
96
|
+
|
97
|
+
DescribeDetectorResponse.add_member(:detector, Shapes::ShapeRef.new(shape: Detector, location_name: "detector"))
|
98
|
+
DescribeDetectorResponse.struct_class = Types::DescribeDetectorResponse
|
99
|
+
|
100
|
+
Detector.add_member(:detector_model_name, Shapes::ShapeRef.new(shape: DetectorModelName, location_name: "detectorModelName"))
|
101
|
+
Detector.add_member(:key_value, Shapes::ShapeRef.new(shape: KeyValue, location_name: "keyValue"))
|
102
|
+
Detector.add_member(:detector_model_version, Shapes::ShapeRef.new(shape: DetectorModelVersion, location_name: "detectorModelVersion"))
|
103
|
+
Detector.add_member(:state, Shapes::ShapeRef.new(shape: DetectorState, location_name: "state"))
|
104
|
+
Detector.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationTime"))
|
105
|
+
Detector.add_member(:last_update_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdateTime"))
|
106
|
+
Detector.struct_class = Types::Detector
|
107
|
+
|
108
|
+
DetectorState.add_member(:state_name, Shapes::ShapeRef.new(shape: StateName, required: true, location_name: "stateName"))
|
109
|
+
DetectorState.add_member(:variables, Shapes::ShapeRef.new(shape: Variables, required: true, location_name: "variables"))
|
110
|
+
DetectorState.add_member(:timers, Shapes::ShapeRef.new(shape: Timers, required: true, location_name: "timers"))
|
111
|
+
DetectorState.struct_class = Types::DetectorState
|
112
|
+
|
113
|
+
DetectorStateDefinition.add_member(:state_name, Shapes::ShapeRef.new(shape: StateName, required: true, location_name: "stateName"))
|
114
|
+
DetectorStateDefinition.add_member(:variables, Shapes::ShapeRef.new(shape: VariableDefinitions, required: true, location_name: "variables"))
|
115
|
+
DetectorStateDefinition.add_member(:timers, Shapes::ShapeRef.new(shape: TimerDefinitions, required: true, location_name: "timers"))
|
116
|
+
DetectorStateDefinition.struct_class = Types::DetectorStateDefinition
|
117
|
+
|
118
|
+
DetectorStateSummary.add_member(:state_name, Shapes::ShapeRef.new(shape: StateName, location_name: "stateName"))
|
119
|
+
DetectorStateSummary.struct_class = Types::DetectorStateSummary
|
120
|
+
|
121
|
+
DetectorSummaries.member = Shapes::ShapeRef.new(shape: DetectorSummary)
|
122
|
+
|
123
|
+
DetectorSummary.add_member(:detector_model_name, Shapes::ShapeRef.new(shape: DetectorModelName, location_name: "detectorModelName"))
|
124
|
+
DetectorSummary.add_member(:key_value, Shapes::ShapeRef.new(shape: KeyValue, location_name: "keyValue"))
|
125
|
+
DetectorSummary.add_member(:detector_model_version, Shapes::ShapeRef.new(shape: DetectorModelVersion, location_name: "detectorModelVersion"))
|
126
|
+
DetectorSummary.add_member(:state, Shapes::ShapeRef.new(shape: DetectorStateSummary, location_name: "state"))
|
127
|
+
DetectorSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationTime"))
|
128
|
+
DetectorSummary.add_member(:last_update_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdateTime"))
|
129
|
+
DetectorSummary.struct_class = Types::DetectorSummary
|
130
|
+
|
131
|
+
InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
132
|
+
InternalFailureException.struct_class = Types::InternalFailureException
|
133
|
+
|
134
|
+
InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
135
|
+
InvalidRequestException.struct_class = Types::InvalidRequestException
|
136
|
+
|
137
|
+
ListDetectorsRequest.add_member(:detector_model_name, Shapes::ShapeRef.new(shape: DetectorModelName, required: true, location: "uri", location_name: "detectorModelName"))
|
138
|
+
ListDetectorsRequest.add_member(:state_name, Shapes::ShapeRef.new(shape: StateName, location: "querystring", location_name: "stateName"))
|
139
|
+
ListDetectorsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
140
|
+
ListDetectorsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
141
|
+
ListDetectorsRequest.struct_class = Types::ListDetectorsRequest
|
142
|
+
|
143
|
+
ListDetectorsResponse.add_member(:detector_summaries, Shapes::ShapeRef.new(shape: DetectorSummaries, location_name: "detectorSummaries"))
|
144
|
+
ListDetectorsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
145
|
+
ListDetectorsResponse.struct_class = Types::ListDetectorsResponse
|
146
|
+
|
147
|
+
Message.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, required: true, location_name: "messageId"))
|
148
|
+
Message.add_member(:input_name, Shapes::ShapeRef.new(shape: InputName, required: true, location_name: "inputName"))
|
149
|
+
Message.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, required: true, location_name: "payload"))
|
150
|
+
Message.struct_class = Types::Message
|
151
|
+
|
152
|
+
Messages.member = Shapes::ShapeRef.new(shape: Message)
|
153
|
+
|
154
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
155
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
156
|
+
|
157
|
+
ServiceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
158
|
+
ServiceUnavailableException.struct_class = Types::ServiceUnavailableException
|
159
|
+
|
160
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
|
161
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
162
|
+
|
163
|
+
Timer.add_member(:name, Shapes::ShapeRef.new(shape: TimerName, required: true, location_name: "name"))
|
164
|
+
Timer.add_member(:timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "timestamp"))
|
165
|
+
Timer.struct_class = Types::Timer
|
166
|
+
|
167
|
+
TimerDefinition.add_member(:name, Shapes::ShapeRef.new(shape: TimerName, required: true, location_name: "name"))
|
168
|
+
TimerDefinition.add_member(:seconds, Shapes::ShapeRef.new(shape: Seconds, required: true, location_name: "seconds"))
|
169
|
+
TimerDefinition.struct_class = Types::TimerDefinition
|
170
|
+
|
171
|
+
TimerDefinitions.member = Shapes::ShapeRef.new(shape: TimerDefinition)
|
172
|
+
|
173
|
+
Timers.member = Shapes::ShapeRef.new(shape: Timer)
|
174
|
+
|
175
|
+
UpdateDetectorRequest.add_member(:message_id, Shapes::ShapeRef.new(shape: MessageId, required: true, location_name: "messageId"))
|
176
|
+
UpdateDetectorRequest.add_member(:detector_model_name, Shapes::ShapeRef.new(shape: DetectorModelName, required: true, location_name: "detectorModelName"))
|
177
|
+
UpdateDetectorRequest.add_member(:key_value, Shapes::ShapeRef.new(shape: KeyValue, location_name: "keyValue"))
|
178
|
+
UpdateDetectorRequest.add_member(:state, Shapes::ShapeRef.new(shape: DetectorStateDefinition, required: true, location_name: "state"))
|
179
|
+
UpdateDetectorRequest.struct_class = Types::UpdateDetectorRequest
|
180
|
+
|
181
|
+
UpdateDetectorRequests.member = Shapes::ShapeRef.new(shape: UpdateDetectorRequest)
|
182
|
+
|
183
|
+
Variable.add_member(:name, Shapes::ShapeRef.new(shape: VariableName, required: true, location_name: "name"))
|
184
|
+
Variable.add_member(:value, Shapes::ShapeRef.new(shape: VariableValue, required: true, location_name: "value"))
|
185
|
+
Variable.struct_class = Types::Variable
|
186
|
+
|
187
|
+
VariableDefinition.add_member(:name, Shapes::ShapeRef.new(shape: VariableName, required: true, location_name: "name"))
|
188
|
+
VariableDefinition.add_member(:value, Shapes::ShapeRef.new(shape: VariableValue, required: true, location_name: "value"))
|
189
|
+
VariableDefinition.struct_class = Types::VariableDefinition
|
190
|
+
|
191
|
+
VariableDefinitions.member = Shapes::ShapeRef.new(shape: VariableDefinition)
|
192
|
+
|
193
|
+
Variables.member = Shapes::ShapeRef.new(shape: Variable)
|
194
|
+
|
195
|
+
|
196
|
+
# @api private
|
197
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
198
|
+
|
199
|
+
api.version = "2018-10-23"
|
200
|
+
|
201
|
+
api.metadata = {
|
202
|
+
"apiVersion" => "2018-10-23",
|
203
|
+
"endpointPrefix" => "data.iotevents",
|
204
|
+
"protocol" => "rest-json",
|
205
|
+
"serviceFullName" => "AWS IoT Events Data",
|
206
|
+
"serviceId" => "IoT Events Data",
|
207
|
+
"signatureVersion" => "v4",
|
208
|
+
"signingName" => "ioteventsdata",
|
209
|
+
"uid" => "iotevents-data-2018-10-23",
|
210
|
+
}
|
211
|
+
|
212
|
+
api.add_operation(:batch_put_message, Seahorse::Model::Operation.new.tap do |o|
|
213
|
+
o.name = "BatchPutMessage"
|
214
|
+
o.http_method = "POST"
|
215
|
+
o.http_request_uri = "/inputs/messages"
|
216
|
+
o.input = Shapes::ShapeRef.new(shape: BatchPutMessageRequest)
|
217
|
+
o.output = Shapes::ShapeRef.new(shape: BatchPutMessageResponse)
|
218
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
219
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
220
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
221
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
222
|
+
end)
|
223
|
+
|
224
|
+
api.add_operation(:batch_update_detector, Seahorse::Model::Operation.new.tap do |o|
|
225
|
+
o.name = "BatchUpdateDetector"
|
226
|
+
o.http_method = "POST"
|
227
|
+
o.http_request_uri = "/detectors"
|
228
|
+
o.input = Shapes::ShapeRef.new(shape: BatchUpdateDetectorRequest)
|
229
|
+
o.output = Shapes::ShapeRef.new(shape: BatchUpdateDetectorResponse)
|
230
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
231
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
232
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
233
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
234
|
+
end)
|
235
|
+
|
236
|
+
api.add_operation(:describe_detector, Seahorse::Model::Operation.new.tap do |o|
|
237
|
+
o.name = "DescribeDetector"
|
238
|
+
o.http_method = "GET"
|
239
|
+
o.http_request_uri = "/detectors/{detectorModelName}/keyValues/"
|
240
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeDetectorRequest)
|
241
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeDetectorResponse)
|
242
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
246
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
247
|
+
end)
|
248
|
+
|
249
|
+
api.add_operation(:list_detectors, Seahorse::Model::Operation.new.tap do |o|
|
250
|
+
o.name = "ListDetectors"
|
251
|
+
o.http_method = "GET"
|
252
|
+
o.http_request_uri = "/detectors/{detectorModelName}"
|
253
|
+
o.input = Shapes::ShapeRef.new(shape: ListDetectorsRequest)
|
254
|
+
o.output = Shapes::ShapeRef.new(shape: ListDetectorsResponse)
|
255
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
|
256
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
257
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
258
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
259
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
|
260
|
+
end)
|
261
|
+
end
|
262
|
+
|
263
|
+
end
|
264
|
+
end
|
File without changes
|
@@ -0,0 +1,94 @@
|
|
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
|
+
module Aws::IoTEventsData
|
9
|
+
module Errors
|
10
|
+
|
11
|
+
extend Aws::Errors::DynamicErrors
|
12
|
+
|
13
|
+
class InternalFailureException < ServiceError
|
14
|
+
|
15
|
+
# @param [Seahorse::Client::RequestContext] context
|
16
|
+
# @param [String] message
|
17
|
+
# @param [Aws::IoTEventsData::Types::InternalFailureException] data
|
18
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
19
|
+
super(context, message, data)
|
20
|
+
end
|
21
|
+
|
22
|
+
# @return [String]
|
23
|
+
def message
|
24
|
+
@message || @data[:message]
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
class InvalidRequestException < ServiceError
|
30
|
+
|
31
|
+
# @param [Seahorse::Client::RequestContext] context
|
32
|
+
# @param [String] message
|
33
|
+
# @param [Aws::IoTEventsData::Types::InvalidRequestException] data
|
34
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
35
|
+
super(context, message, data)
|
36
|
+
end
|
37
|
+
|
38
|
+
# @return [String]
|
39
|
+
def message
|
40
|
+
@message || @data[:message]
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
class ResourceNotFoundException < ServiceError
|
46
|
+
|
47
|
+
# @param [Seahorse::Client::RequestContext] context
|
48
|
+
# @param [String] message
|
49
|
+
# @param [Aws::IoTEventsData::Types::ResourceNotFoundException] data
|
50
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
51
|
+
super(context, message, data)
|
52
|
+
end
|
53
|
+
|
54
|
+
# @return [String]
|
55
|
+
def message
|
56
|
+
@message || @data[:message]
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
60
|
+
|
61
|
+
class ServiceUnavailableException < ServiceError
|
62
|
+
|
63
|
+
# @param [Seahorse::Client::RequestContext] context
|
64
|
+
# @param [String] message
|
65
|
+
# @param [Aws::IoTEventsData::Types::ServiceUnavailableException] data
|
66
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
67
|
+
super(context, message, data)
|
68
|
+
end
|
69
|
+
|
70
|
+
# @return [String]
|
71
|
+
def message
|
72
|
+
@message || @data[:message]
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
class ThrottlingException < ServiceError
|
78
|
+
|
79
|
+
# @param [Seahorse::Client::RequestContext] context
|
80
|
+
# @param [String] message
|
81
|
+
# @param [Aws::IoTEventsData::Types::ThrottlingException] data
|
82
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
83
|
+
super(context, message, data)
|
84
|
+
end
|
85
|
+
|
86
|
+
# @return [String]
|
87
|
+
def message
|
88
|
+
@message || @data[:message]
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,23 @@
|
|
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
|
+
module Aws::IoTEventsData
|
9
|
+
class Resource
|
10
|
+
|
11
|
+
# @param options ({})
|
12
|
+
# @option options [Client] :client
|
13
|
+
def initialize(options = {})
|
14
|
+
@client = options[:client] || Client.new(options)
|
15
|
+
end
|
16
|
+
|
17
|
+
# @return [Client]
|
18
|
+
def client
|
19
|
+
@client
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,598 @@
|
|
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
|
+
module Aws::IoTEventsData
|
9
|
+
module Types
|
10
|
+
|
11
|
+
# Contains informations about the errors encountered.
|
12
|
+
#
|
13
|
+
# @!attribute [rw] message_id
|
14
|
+
# The ID of the message that caused the error. (See the value
|
15
|
+
# corresponding to the `messageId` key in the `message` object.)
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute [rw] error_code
|
19
|
+
# The code associated with the error.
|
20
|
+
# @return [String]
|
21
|
+
#
|
22
|
+
# @!attribute [rw] error_message
|
23
|
+
# More information about the error.
|
24
|
+
# @return [String]
|
25
|
+
#
|
26
|
+
class BatchPutMessageErrorEntry < Struct.new(
|
27
|
+
:message_id,
|
28
|
+
:error_code,
|
29
|
+
:error_message)
|
30
|
+
include Aws::Structure
|
31
|
+
end
|
32
|
+
|
33
|
+
# @note When making an API call, you may pass BatchPutMessageRequest
|
34
|
+
# data as a hash:
|
35
|
+
#
|
36
|
+
# {
|
37
|
+
# messages: [ # required
|
38
|
+
# {
|
39
|
+
# message_id: "MessageId", # required
|
40
|
+
# input_name: "InputName", # required
|
41
|
+
# payload: "data", # required
|
42
|
+
# },
|
43
|
+
# ],
|
44
|
+
# }
|
45
|
+
#
|
46
|
+
# @!attribute [rw] messages
|
47
|
+
# The list of messages to send. Each message has format: `'\{
|
48
|
+
# "messageId": "string", "inputName": "string", "payload":
|
49
|
+
# "string"\}'`.
|
50
|
+
# @return [Array<Types::Message>]
|
51
|
+
#
|
52
|
+
class BatchPutMessageRequest < Struct.new(
|
53
|
+
:messages)
|
54
|
+
include Aws::Structure
|
55
|
+
end
|
56
|
+
|
57
|
+
# @!attribute [rw] batch_put_message_error_entries
|
58
|
+
# A list of any errors encountered when sending the messages.
|
59
|
+
# @return [Array<Types::BatchPutMessageErrorEntry>]
|
60
|
+
#
|
61
|
+
class BatchPutMessageResponse < Struct.new(
|
62
|
+
:batch_put_message_error_entries)
|
63
|
+
include Aws::Structure
|
64
|
+
end
|
65
|
+
|
66
|
+
# Information about the error which occured when attempting to update a
|
67
|
+
# detector.
|
68
|
+
#
|
69
|
+
# @!attribute [rw] message_id
|
70
|
+
# The "messageId" of the update request that caused the error. (The
|
71
|
+
# value of the `messageId` in the update request `Detector` object.)
|
72
|
+
# @return [String]
|
73
|
+
#
|
74
|
+
# @!attribute [rw] error_code
|
75
|
+
# The code of the error.
|
76
|
+
# @return [String]
|
77
|
+
#
|
78
|
+
# @!attribute [rw] error_message
|
79
|
+
# A message describing the error.
|
80
|
+
# @return [String]
|
81
|
+
#
|
82
|
+
class BatchUpdateDetectorErrorEntry < Struct.new(
|
83
|
+
:message_id,
|
84
|
+
:error_code,
|
85
|
+
:error_message)
|
86
|
+
include Aws::Structure
|
87
|
+
end
|
88
|
+
|
89
|
+
# @note When making an API call, you may pass BatchUpdateDetectorRequest
|
90
|
+
# data as a hash:
|
91
|
+
#
|
92
|
+
# {
|
93
|
+
# detectors: [ # required
|
94
|
+
# {
|
95
|
+
# message_id: "MessageId", # required
|
96
|
+
# detector_model_name: "DetectorModelName", # required
|
97
|
+
# key_value: "KeyValue",
|
98
|
+
# state: { # required
|
99
|
+
# state_name: "StateName", # required
|
100
|
+
# variables: [ # required
|
101
|
+
# {
|
102
|
+
# name: "VariableName", # required
|
103
|
+
# value: "VariableValue", # required
|
104
|
+
# },
|
105
|
+
# ],
|
106
|
+
# timers: [ # required
|
107
|
+
# {
|
108
|
+
# name: "TimerName", # required
|
109
|
+
# seconds: 1, # required
|
110
|
+
# },
|
111
|
+
# ],
|
112
|
+
# },
|
113
|
+
# },
|
114
|
+
# ],
|
115
|
+
# }
|
116
|
+
#
|
117
|
+
# @!attribute [rw] detectors
|
118
|
+
# The list of detectors (instances) to be updated, along with the
|
119
|
+
# values to be updated.
|
120
|
+
# @return [Array<Types::UpdateDetectorRequest>]
|
121
|
+
#
|
122
|
+
class BatchUpdateDetectorRequest < Struct.new(
|
123
|
+
:detectors)
|
124
|
+
include Aws::Structure
|
125
|
+
end
|
126
|
+
|
127
|
+
# @!attribute [rw] batch_update_detector_error_entries
|
128
|
+
# A list of those detector updates which resulted in errors. (The
|
129
|
+
# specific update did not occur if an error is listed here.)
|
130
|
+
# @return [Array<Types::BatchUpdateDetectorErrorEntry>]
|
131
|
+
#
|
132
|
+
class BatchUpdateDetectorResponse < Struct.new(
|
133
|
+
:batch_update_detector_error_entries)
|
134
|
+
include Aws::Structure
|
135
|
+
end
|
136
|
+
|
137
|
+
# @note When making an API call, you may pass DescribeDetectorRequest
|
138
|
+
# data as a hash:
|
139
|
+
#
|
140
|
+
# {
|
141
|
+
# detector_model_name: "DetectorModelName", # required
|
142
|
+
# key_value: "KeyValue",
|
143
|
+
# }
|
144
|
+
#
|
145
|
+
# @!attribute [rw] detector_model_name
|
146
|
+
# The name of the detector model whose detectors (instances) you want
|
147
|
+
# information about.
|
148
|
+
# @return [String]
|
149
|
+
#
|
150
|
+
# @!attribute [rw] key_value
|
151
|
+
# A filter used to limit results to detectors (instances) created
|
152
|
+
# because of the given key ID.
|
153
|
+
# @return [String]
|
154
|
+
#
|
155
|
+
class DescribeDetectorRequest < Struct.new(
|
156
|
+
:detector_model_name,
|
157
|
+
:key_value)
|
158
|
+
include Aws::Structure
|
159
|
+
end
|
160
|
+
|
161
|
+
# @!attribute [rw] detector
|
162
|
+
# Information about the detector (instance).
|
163
|
+
# @return [Types::Detector]
|
164
|
+
#
|
165
|
+
class DescribeDetectorResponse < Struct.new(
|
166
|
+
:detector)
|
167
|
+
include Aws::Structure
|
168
|
+
end
|
169
|
+
|
170
|
+
# Information about the detector (instance).
|
171
|
+
#
|
172
|
+
# @!attribute [rw] detector_model_name
|
173
|
+
# The name of the detector model that created this detector
|
174
|
+
# (instance).
|
175
|
+
# @return [String]
|
176
|
+
#
|
177
|
+
# @!attribute [rw] key_value
|
178
|
+
# The value of the key (identifying the device or system) that caused
|
179
|
+
# the creation of this detector (instance).
|
180
|
+
# @return [String]
|
181
|
+
#
|
182
|
+
# @!attribute [rw] detector_model_version
|
183
|
+
# The version of the detector model that created this detector
|
184
|
+
# (instance).
|
185
|
+
# @return [String]
|
186
|
+
#
|
187
|
+
# @!attribute [rw] state
|
188
|
+
# The current state of the detector (instance).
|
189
|
+
# @return [Types::DetectorState]
|
190
|
+
#
|
191
|
+
# @!attribute [rw] creation_time
|
192
|
+
# The time the detector (instance) was created.
|
193
|
+
# @return [Time]
|
194
|
+
#
|
195
|
+
# @!attribute [rw] last_update_time
|
196
|
+
# The time the detector (instance) was last updated.
|
197
|
+
# @return [Time]
|
198
|
+
#
|
199
|
+
class Detector < Struct.new(
|
200
|
+
:detector_model_name,
|
201
|
+
:key_value,
|
202
|
+
:detector_model_version,
|
203
|
+
:state,
|
204
|
+
:creation_time,
|
205
|
+
:last_update_time)
|
206
|
+
include Aws::Structure
|
207
|
+
end
|
208
|
+
|
209
|
+
# Information about the current state of the detector instance.
|
210
|
+
#
|
211
|
+
# @!attribute [rw] state_name
|
212
|
+
# The name of the state.
|
213
|
+
# @return [String]
|
214
|
+
#
|
215
|
+
# @!attribute [rw] variables
|
216
|
+
# The current state of the detector's variables.
|
217
|
+
# @return [Array<Types::Variable>]
|
218
|
+
#
|
219
|
+
# @!attribute [rw] timers
|
220
|
+
# The current state of the detector's timers.
|
221
|
+
# @return [Array<Types::Timer>]
|
222
|
+
#
|
223
|
+
class DetectorState < Struct.new(
|
224
|
+
:state_name,
|
225
|
+
:variables,
|
226
|
+
:timers)
|
227
|
+
include Aws::Structure
|
228
|
+
end
|
229
|
+
|
230
|
+
# The new state, variable values and timer settings of the detector
|
231
|
+
# (instance).
|
232
|
+
#
|
233
|
+
# @note When making an API call, you may pass DetectorStateDefinition
|
234
|
+
# data as a hash:
|
235
|
+
#
|
236
|
+
# {
|
237
|
+
# state_name: "StateName", # required
|
238
|
+
# variables: [ # required
|
239
|
+
# {
|
240
|
+
# name: "VariableName", # required
|
241
|
+
# value: "VariableValue", # required
|
242
|
+
# },
|
243
|
+
# ],
|
244
|
+
# timers: [ # required
|
245
|
+
# {
|
246
|
+
# name: "TimerName", # required
|
247
|
+
# seconds: 1, # required
|
248
|
+
# },
|
249
|
+
# ],
|
250
|
+
# }
|
251
|
+
#
|
252
|
+
# @!attribute [rw] state_name
|
253
|
+
# The name of the new state of the detector (instance).
|
254
|
+
# @return [String]
|
255
|
+
#
|
256
|
+
# @!attribute [rw] variables
|
257
|
+
# The new values of the detector's variables. Any variable whose
|
258
|
+
# value is not specified will be cleared.
|
259
|
+
# @return [Array<Types::VariableDefinition>]
|
260
|
+
#
|
261
|
+
# @!attribute [rw] timers
|
262
|
+
# The new values of the detector's timers. Any timer whose value is
|
263
|
+
# not specified will be cleared and its timeout event will not occur.
|
264
|
+
# @return [Array<Types::TimerDefinition>]
|
265
|
+
#
|
266
|
+
class DetectorStateDefinition < Struct.new(
|
267
|
+
:state_name,
|
268
|
+
:variables,
|
269
|
+
:timers)
|
270
|
+
include Aws::Structure
|
271
|
+
end
|
272
|
+
|
273
|
+
# Information about the detector state.
|
274
|
+
#
|
275
|
+
# @!attribute [rw] state_name
|
276
|
+
# The name of the state.
|
277
|
+
# @return [String]
|
278
|
+
#
|
279
|
+
class DetectorStateSummary < Struct.new(
|
280
|
+
:state_name)
|
281
|
+
include Aws::Structure
|
282
|
+
end
|
283
|
+
|
284
|
+
# Information about the detector (instance).
|
285
|
+
#
|
286
|
+
# @!attribute [rw] detector_model_name
|
287
|
+
# The name of the detector model that created this detector
|
288
|
+
# (instance).
|
289
|
+
# @return [String]
|
290
|
+
#
|
291
|
+
# @!attribute [rw] key_value
|
292
|
+
# The value of the key (identifying the device or system) that caused
|
293
|
+
# the creation of this detector (instance).
|
294
|
+
# @return [String]
|
295
|
+
#
|
296
|
+
# @!attribute [rw] detector_model_version
|
297
|
+
# The version of the detector model that created this detector
|
298
|
+
# (instance).
|
299
|
+
# @return [String]
|
300
|
+
#
|
301
|
+
# @!attribute [rw] state
|
302
|
+
# The current state of the detector (instance).
|
303
|
+
# @return [Types::DetectorStateSummary]
|
304
|
+
#
|
305
|
+
# @!attribute [rw] creation_time
|
306
|
+
# The time the detector (instance) was created.
|
307
|
+
# @return [Time]
|
308
|
+
#
|
309
|
+
# @!attribute [rw] last_update_time
|
310
|
+
# The time the detector (instance) was last updated.
|
311
|
+
# @return [Time]
|
312
|
+
#
|
313
|
+
class DetectorSummary < Struct.new(
|
314
|
+
:detector_model_name,
|
315
|
+
:key_value,
|
316
|
+
:detector_model_version,
|
317
|
+
:state,
|
318
|
+
:creation_time,
|
319
|
+
:last_update_time)
|
320
|
+
include Aws::Structure
|
321
|
+
end
|
322
|
+
|
323
|
+
# An internal failure occured.
|
324
|
+
#
|
325
|
+
# @!attribute [rw] message
|
326
|
+
# The message for the exception.
|
327
|
+
# @return [String]
|
328
|
+
#
|
329
|
+
class InternalFailureException < Struct.new(
|
330
|
+
:message)
|
331
|
+
include Aws::Structure
|
332
|
+
end
|
333
|
+
|
334
|
+
# The request was invalid.
|
335
|
+
#
|
336
|
+
# @!attribute [rw] message
|
337
|
+
# The message for the exception.
|
338
|
+
# @return [String]
|
339
|
+
#
|
340
|
+
class InvalidRequestException < Struct.new(
|
341
|
+
:message)
|
342
|
+
include Aws::Structure
|
343
|
+
end
|
344
|
+
|
345
|
+
# @note When making an API call, you may pass ListDetectorsRequest
|
346
|
+
# data as a hash:
|
347
|
+
#
|
348
|
+
# {
|
349
|
+
# detector_model_name: "DetectorModelName", # required
|
350
|
+
# state_name: "StateName",
|
351
|
+
# next_token: "NextToken",
|
352
|
+
# max_results: 1,
|
353
|
+
# }
|
354
|
+
#
|
355
|
+
# @!attribute [rw] detector_model_name
|
356
|
+
# The name of the detector model whose instances you want to list.
|
357
|
+
# @return [String]
|
358
|
+
#
|
359
|
+
# @!attribute [rw] state_name
|
360
|
+
# A filter that limits results to those detectors (instances) in the
|
361
|
+
# given state.
|
362
|
+
# @return [String]
|
363
|
+
#
|
364
|
+
# @!attribute [rw] next_token
|
365
|
+
# The token for the next set of results.
|
366
|
+
# @return [String]
|
367
|
+
#
|
368
|
+
# @!attribute [rw] max_results
|
369
|
+
# The maximum number of results to return at one time.
|
370
|
+
# @return [Integer]
|
371
|
+
#
|
372
|
+
class ListDetectorsRequest < Struct.new(
|
373
|
+
:detector_model_name,
|
374
|
+
:state_name,
|
375
|
+
:next_token,
|
376
|
+
:max_results)
|
377
|
+
include Aws::Structure
|
378
|
+
end
|
379
|
+
|
380
|
+
# @!attribute [rw] detector_summaries
|
381
|
+
# A list of summary information about the detectors (instances).
|
382
|
+
# @return [Array<Types::DetectorSummary>]
|
383
|
+
#
|
384
|
+
# @!attribute [rw] next_token
|
385
|
+
# A token to retrieve the next set of results, or `null` if there are
|
386
|
+
# no additional results.
|
387
|
+
# @return [String]
|
388
|
+
#
|
389
|
+
class ListDetectorsResponse < Struct.new(
|
390
|
+
:detector_summaries,
|
391
|
+
:next_token)
|
392
|
+
include Aws::Structure
|
393
|
+
end
|
394
|
+
|
395
|
+
# Information about a message.
|
396
|
+
#
|
397
|
+
# @note When making an API call, you may pass Message
|
398
|
+
# data as a hash:
|
399
|
+
#
|
400
|
+
# {
|
401
|
+
# message_id: "MessageId", # required
|
402
|
+
# input_name: "InputName", # required
|
403
|
+
# payload: "data", # required
|
404
|
+
# }
|
405
|
+
#
|
406
|
+
# @!attribute [rw] message_id
|
407
|
+
# The ID you wish to assign to the message. Each "messageId" must be
|
408
|
+
# unique within each batch sent.
|
409
|
+
# @return [String]
|
410
|
+
#
|
411
|
+
# @!attribute [rw] input_name
|
412
|
+
# The name of the input into which the message payload will be
|
413
|
+
# transformed.
|
414
|
+
# @return [String]
|
415
|
+
#
|
416
|
+
# @!attribute [rw] payload
|
417
|
+
# The payload of the message. This can be a JSON string or a
|
418
|
+
# Base-64-encoded string representing binary data (in which case you
|
419
|
+
# must decode it).
|
420
|
+
# @return [String]
|
421
|
+
#
|
422
|
+
class Message < Struct.new(
|
423
|
+
:message_id,
|
424
|
+
:input_name,
|
425
|
+
:payload)
|
426
|
+
include Aws::Structure
|
427
|
+
end
|
428
|
+
|
429
|
+
# The resource was not found.
|
430
|
+
#
|
431
|
+
# @!attribute [rw] message
|
432
|
+
# The message for the exception.
|
433
|
+
# @return [String]
|
434
|
+
#
|
435
|
+
class ResourceNotFoundException < Struct.new(
|
436
|
+
:message)
|
437
|
+
include Aws::Structure
|
438
|
+
end
|
439
|
+
|
440
|
+
# The service is currently unavailable.
|
441
|
+
#
|
442
|
+
# @!attribute [rw] message
|
443
|
+
# The message for the exception.
|
444
|
+
# @return [String]
|
445
|
+
#
|
446
|
+
class ServiceUnavailableException < Struct.new(
|
447
|
+
:message)
|
448
|
+
include Aws::Structure
|
449
|
+
end
|
450
|
+
|
451
|
+
# The request could not be completed due to throttling.
|
452
|
+
#
|
453
|
+
# @!attribute [rw] message
|
454
|
+
# The message for the exception.
|
455
|
+
# @return [String]
|
456
|
+
#
|
457
|
+
class ThrottlingException < Struct.new(
|
458
|
+
:message)
|
459
|
+
include Aws::Structure
|
460
|
+
end
|
461
|
+
|
462
|
+
# The current state of a timer.
|
463
|
+
#
|
464
|
+
# @!attribute [rw] name
|
465
|
+
# The name of the timer.
|
466
|
+
# @return [String]
|
467
|
+
#
|
468
|
+
# @!attribute [rw] timestamp
|
469
|
+
# The number of seconds which have elapsed on the timer.
|
470
|
+
# @return [Time]
|
471
|
+
#
|
472
|
+
class Timer < Struct.new(
|
473
|
+
:name,
|
474
|
+
:timestamp)
|
475
|
+
include Aws::Structure
|
476
|
+
end
|
477
|
+
|
478
|
+
# The new setting of a timer.
|
479
|
+
#
|
480
|
+
# @note When making an API call, you may pass TimerDefinition
|
481
|
+
# data as a hash:
|
482
|
+
#
|
483
|
+
# {
|
484
|
+
# name: "TimerName", # required
|
485
|
+
# seconds: 1, # required
|
486
|
+
# }
|
487
|
+
#
|
488
|
+
# @!attribute [rw] name
|
489
|
+
# The name of the timer.
|
490
|
+
# @return [String]
|
491
|
+
#
|
492
|
+
# @!attribute [rw] seconds
|
493
|
+
# The new setting of the timer (the number of seconds before the timer
|
494
|
+
# elapses).
|
495
|
+
# @return [Integer]
|
496
|
+
#
|
497
|
+
class TimerDefinition < Struct.new(
|
498
|
+
:name,
|
499
|
+
:seconds)
|
500
|
+
include Aws::Structure
|
501
|
+
end
|
502
|
+
|
503
|
+
# Information used to update the detector (instance).
|
504
|
+
#
|
505
|
+
# @note When making an API call, you may pass UpdateDetectorRequest
|
506
|
+
# data as a hash:
|
507
|
+
#
|
508
|
+
# {
|
509
|
+
# message_id: "MessageId", # required
|
510
|
+
# detector_model_name: "DetectorModelName", # required
|
511
|
+
# key_value: "KeyValue",
|
512
|
+
# state: { # required
|
513
|
+
# state_name: "StateName", # required
|
514
|
+
# variables: [ # required
|
515
|
+
# {
|
516
|
+
# name: "VariableName", # required
|
517
|
+
# value: "VariableValue", # required
|
518
|
+
# },
|
519
|
+
# ],
|
520
|
+
# timers: [ # required
|
521
|
+
# {
|
522
|
+
# name: "TimerName", # required
|
523
|
+
# seconds: 1, # required
|
524
|
+
# },
|
525
|
+
# ],
|
526
|
+
# },
|
527
|
+
# }
|
528
|
+
#
|
529
|
+
# @!attribute [rw] message_id
|
530
|
+
# The ID you wish to assign to the detector update "message". Each
|
531
|
+
# "messageId" must be unique within each batch sent.
|
532
|
+
# @return [String]
|
533
|
+
#
|
534
|
+
# @!attribute [rw] detector_model_name
|
535
|
+
# The name of the detector model that created the detectors
|
536
|
+
# (instances).
|
537
|
+
# @return [String]
|
538
|
+
#
|
539
|
+
# @!attribute [rw] key_value
|
540
|
+
# The value of the input key attribute (identifying the device or
|
541
|
+
# system) that caused the creation of this detector (instance).
|
542
|
+
# @return [String]
|
543
|
+
#
|
544
|
+
# @!attribute [rw] state
|
545
|
+
# The new state, variable values, and timer settings of the detector
|
546
|
+
# (instance).
|
547
|
+
# @return [Types::DetectorStateDefinition]
|
548
|
+
#
|
549
|
+
class UpdateDetectorRequest < Struct.new(
|
550
|
+
:message_id,
|
551
|
+
:detector_model_name,
|
552
|
+
:key_value,
|
553
|
+
:state)
|
554
|
+
include Aws::Structure
|
555
|
+
end
|
556
|
+
|
557
|
+
# The current state of the variable.
|
558
|
+
#
|
559
|
+
# @!attribute [rw] name
|
560
|
+
# The name of the variable.
|
561
|
+
# @return [String]
|
562
|
+
#
|
563
|
+
# @!attribute [rw] value
|
564
|
+
# The current value of the variable.
|
565
|
+
# @return [String]
|
566
|
+
#
|
567
|
+
class Variable < Struct.new(
|
568
|
+
:name,
|
569
|
+
:value)
|
570
|
+
include Aws::Structure
|
571
|
+
end
|
572
|
+
|
573
|
+
# The new value of the variable.
|
574
|
+
#
|
575
|
+
# @note When making an API call, you may pass VariableDefinition
|
576
|
+
# data as a hash:
|
577
|
+
#
|
578
|
+
# {
|
579
|
+
# name: "VariableName", # required
|
580
|
+
# value: "VariableValue", # required
|
581
|
+
# }
|
582
|
+
#
|
583
|
+
# @!attribute [rw] name
|
584
|
+
# The name of the variable.
|
585
|
+
# @return [String]
|
586
|
+
#
|
587
|
+
# @!attribute [rw] value
|
588
|
+
# The new value of the variable.
|
589
|
+
# @return [String]
|
590
|
+
#
|
591
|
+
class VariableDefinition < Struct.new(
|
592
|
+
:name,
|
593
|
+
:value)
|
594
|
+
include Aws::Structure
|
595
|
+
end
|
596
|
+
|
597
|
+
end
|
598
|
+
end
|