iotevents.d.ts 71 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class IoTEvents extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: IoTEvents.Types.ClientConfiguration)
  13. config: Config & IoTEvents.Types.ClientConfiguration;
  14. /**
  15. * Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get notified when the value is outside a specified range. For more information, see Create an alarm model in the AWS IoT Events Developer Guide.
  16. */
  17. createAlarmModel(params: IoTEvents.Types.CreateAlarmModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.CreateAlarmModelResponse) => void): Request<IoTEvents.Types.CreateAlarmModelResponse, AWSError>;
  18. /**
  19. * Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get notified when the value is outside a specified range. For more information, see Create an alarm model in the AWS IoT Events Developer Guide.
  20. */
  21. createAlarmModel(callback?: (err: AWSError, data: IoTEvents.Types.CreateAlarmModelResponse) => void): Request<IoTEvents.Types.CreateAlarmModelResponse, AWSError>;
  22. /**
  23. * Creates a detector model.
  24. */
  25. createDetectorModel(params: IoTEvents.Types.CreateDetectorModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.CreateDetectorModelResponse) => void): Request<IoTEvents.Types.CreateDetectorModelResponse, AWSError>;
  26. /**
  27. * Creates a detector model.
  28. */
  29. createDetectorModel(callback?: (err: AWSError, data: IoTEvents.Types.CreateDetectorModelResponse) => void): Request<IoTEvents.Types.CreateDetectorModelResponse, AWSError>;
  30. /**
  31. * Creates an input.
  32. */
  33. createInput(params: IoTEvents.Types.CreateInputRequest, callback?: (err: AWSError, data: IoTEvents.Types.CreateInputResponse) => void): Request<IoTEvents.Types.CreateInputResponse, AWSError>;
  34. /**
  35. * Creates an input.
  36. */
  37. createInput(callback?: (err: AWSError, data: IoTEvents.Types.CreateInputResponse) => void): Request<IoTEvents.Types.CreateInputResponse, AWSError>;
  38. /**
  39. * Deletes an alarm model. Any alarm instances that were created based on this alarm model are also deleted. This action can't be undone.
  40. */
  41. deleteAlarmModel(params: IoTEvents.Types.DeleteAlarmModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.DeleteAlarmModelResponse) => void): Request<IoTEvents.Types.DeleteAlarmModelResponse, AWSError>;
  42. /**
  43. * Deletes an alarm model. Any alarm instances that were created based on this alarm model are also deleted. This action can't be undone.
  44. */
  45. deleteAlarmModel(callback?: (err: AWSError, data: IoTEvents.Types.DeleteAlarmModelResponse) => void): Request<IoTEvents.Types.DeleteAlarmModelResponse, AWSError>;
  46. /**
  47. * Deletes a detector model. Any active instances of the detector model are also deleted.
  48. */
  49. deleteDetectorModel(params: IoTEvents.Types.DeleteDetectorModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.DeleteDetectorModelResponse) => void): Request<IoTEvents.Types.DeleteDetectorModelResponse, AWSError>;
  50. /**
  51. * Deletes a detector model. Any active instances of the detector model are also deleted.
  52. */
  53. deleteDetectorModel(callback?: (err: AWSError, data: IoTEvents.Types.DeleteDetectorModelResponse) => void): Request<IoTEvents.Types.DeleteDetectorModelResponse, AWSError>;
  54. /**
  55. * Deletes an input.
  56. */
  57. deleteInput(params: IoTEvents.Types.DeleteInputRequest, callback?: (err: AWSError, data: IoTEvents.Types.DeleteInputResponse) => void): Request<IoTEvents.Types.DeleteInputResponse, AWSError>;
  58. /**
  59. * Deletes an input.
  60. */
  61. deleteInput(callback?: (err: AWSError, data: IoTEvents.Types.DeleteInputResponse) => void): Request<IoTEvents.Types.DeleteInputResponse, AWSError>;
  62. /**
  63. * Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion parameter, the latest version is returned.
  64. */
  65. describeAlarmModel(params: IoTEvents.Types.DescribeAlarmModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.DescribeAlarmModelResponse) => void): Request<IoTEvents.Types.DescribeAlarmModelResponse, AWSError>;
  66. /**
  67. * Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion parameter, the latest version is returned.
  68. */
  69. describeAlarmModel(callback?: (err: AWSError, data: IoTEvents.Types.DescribeAlarmModelResponse) => void): Request<IoTEvents.Types.DescribeAlarmModelResponse, AWSError>;
  70. /**
  71. * Describes a detector model. If the version parameter is not specified, information about the latest version is returned.
  72. */
  73. describeDetectorModel(params: IoTEvents.Types.DescribeDetectorModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.DescribeDetectorModelResponse) => void): Request<IoTEvents.Types.DescribeDetectorModelResponse, AWSError>;
  74. /**
  75. * Describes a detector model. If the version parameter is not specified, information about the latest version is returned.
  76. */
  77. describeDetectorModel(callback?: (err: AWSError, data: IoTEvents.Types.DescribeDetectorModelResponse) => void): Request<IoTEvents.Types.DescribeDetectorModelResponse, AWSError>;
  78. /**
  79. * Retrieves runtime information about a detector model analysis. After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
  80. */
  81. describeDetectorModelAnalysis(params: IoTEvents.Types.DescribeDetectorModelAnalysisRequest, callback?: (err: AWSError, data: IoTEvents.Types.DescribeDetectorModelAnalysisResponse) => void): Request<IoTEvents.Types.DescribeDetectorModelAnalysisResponse, AWSError>;
  82. /**
  83. * Retrieves runtime information about a detector model analysis. After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
  84. */
  85. describeDetectorModelAnalysis(callback?: (err: AWSError, data: IoTEvents.Types.DescribeDetectorModelAnalysisResponse) => void): Request<IoTEvents.Types.DescribeDetectorModelAnalysisResponse, AWSError>;
  86. /**
  87. * Describes an input.
  88. */
  89. describeInput(params: IoTEvents.Types.DescribeInputRequest, callback?: (err: AWSError, data: IoTEvents.Types.DescribeInputResponse) => void): Request<IoTEvents.Types.DescribeInputResponse, AWSError>;
  90. /**
  91. * Describes an input.
  92. */
  93. describeInput(callback?: (err: AWSError, data: IoTEvents.Types.DescribeInputResponse) => void): Request<IoTEvents.Types.DescribeInputResponse, AWSError>;
  94. /**
  95. * Retrieves the current settings of the AWS IoT Events logging options.
  96. */
  97. describeLoggingOptions(params: IoTEvents.Types.DescribeLoggingOptionsRequest, callback?: (err: AWSError, data: IoTEvents.Types.DescribeLoggingOptionsResponse) => void): Request<IoTEvents.Types.DescribeLoggingOptionsResponse, AWSError>;
  98. /**
  99. * Retrieves the current settings of the AWS IoT Events logging options.
  100. */
  101. describeLoggingOptions(callback?: (err: AWSError, data: IoTEvents.Types.DescribeLoggingOptionsResponse) => void): Request<IoTEvents.Types.DescribeLoggingOptionsResponse, AWSError>;
  102. /**
  103. * Retrieves one or more analysis results of the detector model. After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
  104. */
  105. getDetectorModelAnalysisResults(params: IoTEvents.Types.GetDetectorModelAnalysisResultsRequest, callback?: (err: AWSError, data: IoTEvents.Types.GetDetectorModelAnalysisResultsResponse) => void): Request<IoTEvents.Types.GetDetectorModelAnalysisResultsResponse, AWSError>;
  106. /**
  107. * Retrieves one or more analysis results of the detector model. After AWS IoT Events starts analyzing your detector model, you have up to 24 hours to retrieve the analysis results.
  108. */
  109. getDetectorModelAnalysisResults(callback?: (err: AWSError, data: IoTEvents.Types.GetDetectorModelAnalysisResultsResponse) => void): Request<IoTEvents.Types.GetDetectorModelAnalysisResultsResponse, AWSError>;
  110. /**
  111. * Lists all the versions of an alarm model. The operation returns only the metadata associated with each alarm model version.
  112. */
  113. listAlarmModelVersions(params: IoTEvents.Types.ListAlarmModelVersionsRequest, callback?: (err: AWSError, data: IoTEvents.Types.ListAlarmModelVersionsResponse) => void): Request<IoTEvents.Types.ListAlarmModelVersionsResponse, AWSError>;
  114. /**
  115. * Lists all the versions of an alarm model. The operation returns only the metadata associated with each alarm model version.
  116. */
  117. listAlarmModelVersions(callback?: (err: AWSError, data: IoTEvents.Types.ListAlarmModelVersionsResponse) => void): Request<IoTEvents.Types.ListAlarmModelVersionsResponse, AWSError>;
  118. /**
  119. * Lists the alarm models that you created. The operation returns only the metadata associated with each alarm model.
  120. */
  121. listAlarmModels(params: IoTEvents.Types.ListAlarmModelsRequest, callback?: (err: AWSError, data: IoTEvents.Types.ListAlarmModelsResponse) => void): Request<IoTEvents.Types.ListAlarmModelsResponse, AWSError>;
  122. /**
  123. * Lists the alarm models that you created. The operation returns only the metadata associated with each alarm model.
  124. */
  125. listAlarmModels(callback?: (err: AWSError, data: IoTEvents.Types.ListAlarmModelsResponse) => void): Request<IoTEvents.Types.ListAlarmModelsResponse, AWSError>;
  126. /**
  127. * Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.
  128. */
  129. listDetectorModelVersions(params: IoTEvents.Types.ListDetectorModelVersionsRequest, callback?: (err: AWSError, data: IoTEvents.Types.ListDetectorModelVersionsResponse) => void): Request<IoTEvents.Types.ListDetectorModelVersionsResponse, AWSError>;
  130. /**
  131. * Lists all the versions of a detector model. Only the metadata associated with each detector model version is returned.
  132. */
  133. listDetectorModelVersions(callback?: (err: AWSError, data: IoTEvents.Types.ListDetectorModelVersionsResponse) => void): Request<IoTEvents.Types.ListDetectorModelVersionsResponse, AWSError>;
  134. /**
  135. * Lists the detector models you have created. Only the metadata associated with each detector model is returned.
  136. */
  137. listDetectorModels(params: IoTEvents.Types.ListDetectorModelsRequest, callback?: (err: AWSError, data: IoTEvents.Types.ListDetectorModelsResponse) => void): Request<IoTEvents.Types.ListDetectorModelsResponse, AWSError>;
  138. /**
  139. * Lists the detector models you have created. Only the metadata associated with each detector model is returned.
  140. */
  141. listDetectorModels(callback?: (err: AWSError, data: IoTEvents.Types.ListDetectorModelsResponse) => void): Request<IoTEvents.Types.ListDetectorModelsResponse, AWSError>;
  142. /**
  143. * Lists one or more input routings.
  144. */
  145. listInputRoutings(params: IoTEvents.Types.ListInputRoutingsRequest, callback?: (err: AWSError, data: IoTEvents.Types.ListInputRoutingsResponse) => void): Request<IoTEvents.Types.ListInputRoutingsResponse, AWSError>;
  146. /**
  147. * Lists one or more input routings.
  148. */
  149. listInputRoutings(callback?: (err: AWSError, data: IoTEvents.Types.ListInputRoutingsResponse) => void): Request<IoTEvents.Types.ListInputRoutingsResponse, AWSError>;
  150. /**
  151. * Lists the inputs you have created.
  152. */
  153. listInputs(params: IoTEvents.Types.ListInputsRequest, callback?: (err: AWSError, data: IoTEvents.Types.ListInputsResponse) => void): Request<IoTEvents.Types.ListInputsResponse, AWSError>;
  154. /**
  155. * Lists the inputs you have created.
  156. */
  157. listInputs(callback?: (err: AWSError, data: IoTEvents.Types.ListInputsResponse) => void): Request<IoTEvents.Types.ListInputsResponse, AWSError>;
  158. /**
  159. * Lists the tags (metadata) you have assigned to the resource.
  160. */
  161. listTagsForResource(params: IoTEvents.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: IoTEvents.Types.ListTagsForResourceResponse) => void): Request<IoTEvents.Types.ListTagsForResourceResponse, AWSError>;
  162. /**
  163. * Lists the tags (metadata) you have assigned to the resource.
  164. */
  165. listTagsForResource(callback?: (err: AWSError, data: IoTEvents.Types.ListTagsForResourceResponse) => void): Request<IoTEvents.Types.ListTagsForResourceResponse, AWSError>;
  166. /**
  167. * Sets or updates the AWS IoT Events logging options. If you update the value of any loggingOptions field, it takes up to one minute for the change to take effect. If you change the policy attached to the role you specified in the roleArn field (for example, to correct an invalid policy), it takes up to five minutes for that change to take effect.
  168. */
  169. putLoggingOptions(params: IoTEvents.Types.PutLoggingOptionsRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  170. /**
  171. * Sets or updates the AWS IoT Events logging options. If you update the value of any loggingOptions field, it takes up to one minute for the change to take effect. If you change the policy attached to the role you specified in the roleArn field (for example, to correct an invalid policy), it takes up to five minutes for that change to take effect.
  172. */
  173. putLoggingOptions(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
  174. /**
  175. * Performs an analysis of your detector model. For more information, see Troubleshooting a detector model in the AWS IoT Events Developer Guide.
  176. */
  177. startDetectorModelAnalysis(params: IoTEvents.Types.StartDetectorModelAnalysisRequest, callback?: (err: AWSError, data: IoTEvents.Types.StartDetectorModelAnalysisResponse) => void): Request<IoTEvents.Types.StartDetectorModelAnalysisResponse, AWSError>;
  178. /**
  179. * Performs an analysis of your detector model. For more information, see Troubleshooting a detector model in the AWS IoT Events Developer Guide.
  180. */
  181. startDetectorModelAnalysis(callback?: (err: AWSError, data: IoTEvents.Types.StartDetectorModelAnalysisResponse) => void): Request<IoTEvents.Types.StartDetectorModelAnalysisResponse, AWSError>;
  182. /**
  183. * Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
  184. */
  185. tagResource(params: IoTEvents.Types.TagResourceRequest, callback?: (err: AWSError, data: IoTEvents.Types.TagResourceResponse) => void): Request<IoTEvents.Types.TagResourceResponse, AWSError>;
  186. /**
  187. * Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
  188. */
  189. tagResource(callback?: (err: AWSError, data: IoTEvents.Types.TagResourceResponse) => void): Request<IoTEvents.Types.TagResourceResponse, AWSError>;
  190. /**
  191. * Removes the given tags (metadata) from the resource.
  192. */
  193. untagResource(params: IoTEvents.Types.UntagResourceRequest, callback?: (err: AWSError, data: IoTEvents.Types.UntagResourceResponse) => void): Request<IoTEvents.Types.UntagResourceResponse, AWSError>;
  194. /**
  195. * Removes the given tags (metadata) from the resource.
  196. */
  197. untagResource(callback?: (err: AWSError, data: IoTEvents.Types.UntagResourceResponse) => void): Request<IoTEvents.Types.UntagResourceResponse, AWSError>;
  198. /**
  199. * Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
  200. */
  201. updateAlarmModel(params: IoTEvents.Types.UpdateAlarmModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.UpdateAlarmModelResponse) => void): Request<IoTEvents.Types.UpdateAlarmModelResponse, AWSError>;
  202. /**
  203. * Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.
  204. */
  205. updateAlarmModel(callback?: (err: AWSError, data: IoTEvents.Types.UpdateAlarmModelResponse) => void): Request<IoTEvents.Types.UpdateAlarmModelResponse, AWSError>;
  206. /**
  207. * Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
  208. */
  209. updateDetectorModel(params: IoTEvents.Types.UpdateDetectorModelRequest, callback?: (err: AWSError, data: IoTEvents.Types.UpdateDetectorModelResponse) => void): Request<IoTEvents.Types.UpdateDetectorModelResponse, AWSError>;
  210. /**
  211. * Updates a detector model. Detectors (instances) spawned by the previous version are deleted and then re-created as new inputs arrive.
  212. */
  213. updateDetectorModel(callback?: (err: AWSError, data: IoTEvents.Types.UpdateDetectorModelResponse) => void): Request<IoTEvents.Types.UpdateDetectorModelResponse, AWSError>;
  214. /**
  215. * Updates an input.
  216. */
  217. updateInput(params: IoTEvents.Types.UpdateInputRequest, callback?: (err: AWSError, data: IoTEvents.Types.UpdateInputResponse) => void): Request<IoTEvents.Types.UpdateInputResponse, AWSError>;
  218. /**
  219. * Updates an input.
  220. */
  221. updateInput(callback?: (err: AWSError, data: IoTEvents.Types.UpdateInputResponse) => void): Request<IoTEvents.Types.UpdateInputResponse, AWSError>;
  222. }
  223. declare namespace IoTEvents {
  224. export interface AcknowledgeFlow {
  225. /**
  226. * The value must be TRUE or FALSE. If TRUE, you receive a notification when the alarm state changes. You must choose to acknowledge the notification before the alarm state can return to NORMAL. If FALSE, you won't receive notifications. The alarm automatically changes to the NORMAL state when the input property value returns to the specified range.
  227. */
  228. enabled: AcknowledgeFlowEnabled;
  229. }
  230. export type AcknowledgeFlowEnabled = boolean;
  231. export interface Action {
  232. /**
  233. * Sets a variable to a specified value.
  234. */
  235. setVariable?: SetVariableAction;
  236. /**
  237. * Sends an Amazon SNS message.
  238. */
  239. sns?: SNSTopicPublishAction;
  240. /**
  241. * Publishes an MQTT message with the given topic to the AWS IoT message broker.
  242. */
  243. iotTopicPublish?: IotTopicPublishAction;
  244. /**
  245. * Information needed to set the timer.
  246. */
  247. setTimer?: SetTimerAction;
  248. /**
  249. * Information needed to clear the timer.
  250. */
  251. clearTimer?: ClearTimerAction;
  252. /**
  253. * Information needed to reset the timer.
  254. */
  255. resetTimer?: ResetTimerAction;
  256. /**
  257. * Calls a Lambda function, passing in information about the detector model instance and the event that triggered the action.
  258. */
  259. lambda?: LambdaAction;
  260. /**
  261. * Sends AWS IoT Events input, which passes information about the detector model instance and the event that triggered the action.
  262. */
  263. iotEvents?: IotEventsAction;
  264. /**
  265. * Sends information about the detector model instance and the event that triggered the action to an Amazon SQS queue.
  266. */
  267. sqs?: SqsAction;
  268. /**
  269. * Sends information about the detector model instance and the event that triggered the action to an Amazon Kinesis Data Firehose delivery stream.
  270. */
  271. firehose?: FirehoseAction;
  272. /**
  273. * Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. One column of the DynamoDB table receives all attribute-value pairs in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.
  274. */
  275. dynamoDB?: DynamoDBAction;
  276. /**
  277. * Writes to the DynamoDB table that you created. The default action payload contains all attribute-value pairs that have the information about the detector model instance and the event that triggered the action. You can customize the payload. A separate column of the DynamoDB table receives one attribute-value pair in the payload that you specify. For more information, see Actions in AWS IoT Events Developer Guide.
  278. */
  279. dynamoDBv2?: DynamoDBv2Action;
  280. /**
  281. * Sends information about the detector model instance and the event that triggered the action to an asset property in AWS IoT SiteWise .
  282. */
  283. iotSiteWise?: IotSiteWiseAction;
  284. }
  285. export type Actions = Action[];
  286. export interface AlarmAction {
  287. sns?: SNSTopicPublishAction;
  288. iotTopicPublish?: IotTopicPublishAction;
  289. lambda?: LambdaAction;
  290. iotEvents?: IotEventsAction;
  291. sqs?: SqsAction;
  292. firehose?: FirehoseAction;
  293. dynamoDB?: DynamoDBAction;
  294. dynamoDBv2?: DynamoDBv2Action;
  295. iotSiteWise?: IotSiteWiseAction;
  296. }
  297. export type AlarmActions = AlarmAction[];
  298. export interface AlarmCapabilities {
  299. /**
  300. * Specifies the default alarm state. The configuration applies to all alarms that were created based on this alarm model.
  301. */
  302. initializationConfiguration?: InitializationConfiguration;
  303. /**
  304. * Specifies whether to get notified for alarm state changes.
  305. */
  306. acknowledgeFlow?: AcknowledgeFlow;
  307. }
  308. export interface AlarmEventActions {
  309. /**
  310. * Specifies one or more supported actions to receive notifications when the alarm state changes.
  311. */
  312. alarmActions?: AlarmActions;
  313. }
  314. export type AlarmModelArn = string;
  315. export type AlarmModelDescription = string;
  316. export type AlarmModelName = string;
  317. export type AlarmModelSummaries = AlarmModelSummary[];
  318. export interface AlarmModelSummary {
  319. /**
  320. * The time the alarm model was created, in the Unix epoch format.
  321. */
  322. creationTime?: Timestamp;
  323. /**
  324. * The description of the alarm model.
  325. */
  326. alarmModelDescription?: AlarmModelDescription;
  327. /**
  328. * The name of the alarm model.
  329. */
  330. alarmModelName?: AlarmModelName;
  331. }
  332. export type AlarmModelVersion = string;
  333. export type AlarmModelVersionStatus = "ACTIVE"|"ACTIVATING"|"INACTIVE"|"FAILED"|string;
  334. export type AlarmModelVersionSummaries = AlarmModelVersionSummary[];
  335. export interface AlarmModelVersionSummary {
  336. /**
  337. * The name of the alarm model.
  338. */
  339. alarmModelName?: AlarmModelName;
  340. /**
  341. * The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  342. */
  343. alarmModelArn?: AlarmModelArn;
  344. /**
  345. * The version of the alarm model.
  346. */
  347. alarmModelVersion?: AlarmModelVersion;
  348. /**
  349. * The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  350. */
  351. roleArn?: AmazonResourceName;
  352. /**
  353. * The time the alarm model was created, in the Unix epoch format.
  354. */
  355. creationTime?: Timestamp;
  356. /**
  357. * The time the alarm model was last updated, in the Unix epoch format.
  358. */
  359. lastUpdateTime?: Timestamp;
  360. /**
  361. * The status of the alarm model. The status can be one of the following values: ACTIVE - The alarm model is active and it's ready to evaluate data. ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes. INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model. FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.
  362. */
  363. status?: AlarmModelVersionStatus;
  364. /**
  365. * Contains information about the status of the alarm model version.
  366. */
  367. statusMessage?: StatusMessage;
  368. }
  369. export interface AlarmNotification {
  370. /**
  371. * Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.
  372. */
  373. notificationActions?: NotificationActions;
  374. }
  375. export interface AlarmRule {
  376. /**
  377. * A rule that compares an input property value to a threshold value with a comparison operator.
  378. */
  379. simpleRule?: SimpleRule;
  380. }
  381. export type AmazonResourceName = string;
  382. export type AnalysisId = string;
  383. export type AnalysisMessage = string;
  384. export interface AnalysisResult {
  385. /**
  386. * The type of the analysis result. Analyses fall into the following types based on the validators used to generate the analysis result: supported-actions - You must specify AWS IoT Events supported actions that work with other AWS services in a supported AWS Region. service-limits - Resources or API operations can't exceed service quotas (also known as limits). Update your detector model or request a quota increase. structure - The detector model must follow a structure that AWS IoT Events supports. expression-syntax - Your expression must follow the required syntax. data-type - Data types referenced in the detector model must be compatible. referenced-data - You must define the data referenced in your detector model before you can use the data. referenced-resource - Resources that the detector model uses must be available. For more information, see Running detector model analyses in the AWS IoT Events Developer Guide.
  387. */
  388. type?: AnalysisType;
  389. /**
  390. * The severity level of the analysis result. Based on the severity level, analysis results fall into three general categories: INFO - An information result tells you about a significant field in your detector model. This type of result usually doesn't require immediate action. WARNING - A warning result draws special attention to fields that might cause issues for your detector model. We recommend that you review warnings and take necessary actions before you use your detector model in production environments. Otherwise, the detector model might not work as expected. ERROR - An error result notifies you about a problem found in your detector model. You must fix all errors before you can publish your detector model.
  391. */
  392. level?: AnalysisResultLevel;
  393. /**
  394. * Contains additional information about the analysis result.
  395. */
  396. message?: AnalysisMessage;
  397. /**
  398. * Contains one or more locations that you can use to locate the fields in your detector model that the analysis result references.
  399. */
  400. locations?: AnalysisResultLocations;
  401. }
  402. export type AnalysisResultLevel = "INFO"|"WARNING"|"ERROR"|string;
  403. export interface AnalysisResultLocation {
  404. /**
  405. * A JsonPath expression that identifies the error field in your detector model.
  406. */
  407. path?: AnalysisResultLocationPath;
  408. }
  409. export type AnalysisResultLocationPath = string;
  410. export type AnalysisResultLocations = AnalysisResultLocation[];
  411. export type AnalysisResults = AnalysisResult[];
  412. export type AnalysisStatus = "RUNNING"|"COMPLETE"|"FAILED"|string;
  413. export type AnalysisType = string;
  414. export type AssetId = string;
  415. export type AssetModelId = string;
  416. export type AssetPropertyAlias = string;
  417. export type AssetPropertyBooleanValue = string;
  418. export type AssetPropertyDoubleValue = string;
  419. export type AssetPropertyEntryId = string;
  420. export type AssetPropertyId = string;
  421. export type AssetPropertyIntegerValue = string;
  422. export type AssetPropertyOffsetInNanos = string;
  423. export type AssetPropertyQuality = string;
  424. export type AssetPropertyStringValue = string;
  425. export type AssetPropertyTimeInSeconds = string;
  426. export interface AssetPropertyTimestamp {
  427. /**
  428. * The timestamp, in seconds, in the Unix epoch format. The valid range is between 1-31556889864403199.
  429. */
  430. timeInSeconds: AssetPropertyTimeInSeconds;
  431. /**
  432. * The nanosecond offset converted from timeInSeconds. The valid range is between 0-999999999.
  433. */
  434. offsetInNanos?: AssetPropertyOffsetInNanos;
  435. }
  436. export interface AssetPropertyValue {
  437. /**
  438. * The value to send to an asset property.
  439. */
  440. value?: AssetPropertyVariant;
  441. /**
  442. * The timestamp associated with the asset property value. The default is the current event time.
  443. */
  444. timestamp?: AssetPropertyTimestamp;
  445. /**
  446. * The quality of the asset property value. The value must be 'GOOD', 'BAD', or 'UNCERTAIN'.
  447. */
  448. quality?: AssetPropertyQuality;
  449. }
  450. export interface AssetPropertyVariant {
  451. /**
  452. * The asset property value is a string. You must use an expression, and the evaluated result should be a string.
  453. */
  454. stringValue?: AssetPropertyStringValue;
  455. /**
  456. * The asset property value is an integer. You must use an expression, and the evaluated result should be an integer.
  457. */
  458. integerValue?: AssetPropertyIntegerValue;
  459. /**
  460. * The asset property value is a double. You must use an expression, and the evaluated result should be a double.
  461. */
  462. doubleValue?: AssetPropertyDoubleValue;
  463. /**
  464. * The asset property value is a Boolean value that must be 'TRUE' or 'FALSE'. You must use an expression, and the evaluated result should be a Boolean value.
  465. */
  466. booleanValue?: AssetPropertyBooleanValue;
  467. }
  468. export interface Attribute {
  469. /**
  470. * An expression that specifies an attribute-value pair in a JSON structure. Use this to specify an attribute from the JSON payload that is made available by the input. Inputs are derived from messages sent to AWS IoT Events (BatchPutMessage). Each such message contains a JSON payload. The attribute (and its paired value) specified here are available for use in the condition expressions used by detectors. Syntax: &lt;field-name&gt;.&lt;field-name&gt;...
  471. */
  472. jsonPath: AttributeJsonPath;
  473. }
  474. export type AttributeJsonPath = string;
  475. export type Attributes = Attribute[];
  476. export interface ClearTimerAction {
  477. /**
  478. * The name of the timer to clear.
  479. */
  480. timerName: TimerName;
  481. }
  482. export type ComparisonOperator = "GREATER"|"GREATER_OR_EQUAL"|"LESS"|"LESS_OR_EQUAL"|"EQUAL"|"NOT_EQUAL"|string;
  483. export type Condition = string;
  484. export type ContentExpression = string;
  485. export interface CreateAlarmModelRequest {
  486. /**
  487. * A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.
  488. */
  489. alarmModelName: AlarmModelName;
  490. /**
  491. * A description that tells you what the alarm model detects.
  492. */
  493. alarmModelDescription?: AlarmModelDescription;
  494. /**
  495. * The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  496. */
  497. roleArn: AmazonResourceName;
  498. /**
  499. * A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide. You can create up to 50 tags for one alarm model.
  500. */
  501. tags?: Tags;
  502. /**
  503. * An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
  504. */
  505. key?: AttributeJsonPath;
  506. /**
  507. * A non-negative integer that reflects the severity level of the alarm.
  508. */
  509. severity?: Severity;
  510. /**
  511. * Defines when your alarm is invoked.
  512. */
  513. alarmRule: AlarmRule;
  514. /**
  515. * Contains information about one or more notification actions.
  516. */
  517. alarmNotification?: AlarmNotification;
  518. /**
  519. * Contains information about one or more alarm actions.
  520. */
  521. alarmEventActions?: AlarmEventActions;
  522. /**
  523. * Contains the configuration information of alarm state changes.
  524. */
  525. alarmCapabilities?: AlarmCapabilities;
  526. }
  527. export interface CreateAlarmModelResponse {
  528. /**
  529. * The time the alarm model was created, in the Unix epoch format.
  530. */
  531. creationTime?: Timestamp;
  532. /**
  533. * The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  534. */
  535. alarmModelArn?: AlarmModelArn;
  536. /**
  537. * The version of the alarm model.
  538. */
  539. alarmModelVersion?: AlarmModelVersion;
  540. /**
  541. * The time the alarm model was last updated, in the Unix epoch format.
  542. */
  543. lastUpdateTime?: Timestamp;
  544. /**
  545. * The status of the alarm model. The status can be one of the following values: ACTIVE - The alarm model is active and it's ready to evaluate data. ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes. INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model. FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.
  546. */
  547. status?: AlarmModelVersionStatus;
  548. }
  549. export interface CreateDetectorModelRequest {
  550. /**
  551. * The name of the detector model.
  552. */
  553. detectorModelName: DetectorModelName;
  554. /**
  555. * Information that defines how the detectors operate.
  556. */
  557. detectorModelDefinition: DetectorModelDefinition;
  558. /**
  559. * A brief description of the detector model.
  560. */
  561. detectorModelDescription?: DetectorModelDescription;
  562. /**
  563. * The input attribute key used to identify a device or system to create a detector (an instance of the detector model) and then to route each input received to the appropriate detector (instance). This parameter uses a JSON-path expression in the message payload of each input to specify the attribute-value pair that is used to identify the device associated with the input.
  564. */
  565. key?: AttributeJsonPath;
  566. /**
  567. * The ARN of the role that grants permission to AWS IoT Events to perform its operations.
  568. */
  569. roleArn: AmazonResourceName;
  570. /**
  571. * Metadata that can be used to manage the detector model.
  572. */
  573. tags?: Tags;
  574. /**
  575. * Information about the order in which events are evaluated and how actions are executed.
  576. */
  577. evaluationMethod?: EvaluationMethod;
  578. }
  579. export interface CreateDetectorModelResponse {
  580. /**
  581. * Information about how the detector model is configured.
  582. */
  583. detectorModelConfiguration?: DetectorModelConfiguration;
  584. }
  585. export interface CreateInputRequest {
  586. /**
  587. * The name you want to give to the input.
  588. */
  589. inputName: InputName;
  590. /**
  591. * A brief description of the input.
  592. */
  593. inputDescription?: InputDescription;
  594. /**
  595. * The definition of the input.
  596. */
  597. inputDefinition: InputDefinition;
  598. /**
  599. * Metadata that can be used to manage the input.
  600. */
  601. tags?: Tags;
  602. }
  603. export interface CreateInputResponse {
  604. /**
  605. * Information about the configuration of the input.
  606. */
  607. inputConfiguration?: InputConfiguration;
  608. }
  609. export interface DeleteAlarmModelRequest {
  610. /**
  611. * The name of the alarm model.
  612. */
  613. alarmModelName: AlarmModelName;
  614. }
  615. export interface DeleteAlarmModelResponse {
  616. }
  617. export interface DeleteDetectorModelRequest {
  618. /**
  619. * The name of the detector model to be deleted.
  620. */
  621. detectorModelName: DetectorModelName;
  622. }
  623. export interface DeleteDetectorModelResponse {
  624. }
  625. export interface DeleteInputRequest {
  626. /**
  627. * The name of the input to delete.
  628. */
  629. inputName: InputName;
  630. }
  631. export interface DeleteInputResponse {
  632. }
  633. export type DeliveryStreamName = string;
  634. export interface DescribeAlarmModelRequest {
  635. /**
  636. * The name of the alarm model.
  637. */
  638. alarmModelName: AlarmModelName;
  639. /**
  640. * The version of the alarm model.
  641. */
  642. alarmModelVersion?: AlarmModelVersion;
  643. }
  644. export interface DescribeAlarmModelResponse {
  645. /**
  646. * The time the alarm model was created, in the Unix epoch format.
  647. */
  648. creationTime?: Timestamp;
  649. /**
  650. * The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  651. */
  652. alarmModelArn?: AlarmModelArn;
  653. /**
  654. * The version of the alarm model.
  655. */
  656. alarmModelVersion?: AlarmModelVersion;
  657. /**
  658. * The time the alarm model was last updated, in the Unix epoch format.
  659. */
  660. lastUpdateTime?: Timestamp;
  661. /**
  662. * The status of the alarm model. The status can be one of the following values: ACTIVE - The alarm model is active and it's ready to evaluate data. ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes. INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model. FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.
  663. */
  664. status?: AlarmModelVersionStatus;
  665. /**
  666. * Contains information about the status of the alarm model.
  667. */
  668. statusMessage?: StatusMessage;
  669. /**
  670. * The name of the alarm model.
  671. */
  672. alarmModelName?: AlarmModelName;
  673. /**
  674. * The description of the alarm model.
  675. */
  676. alarmModelDescription?: AlarmModelDescription;
  677. /**
  678. * The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  679. */
  680. roleArn?: AmazonResourceName;
  681. /**
  682. * An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
  683. */
  684. key?: AttributeJsonPath;
  685. /**
  686. * A non-negative integer that reflects the severity level of the alarm.
  687. */
  688. severity?: Severity;
  689. /**
  690. * Defines when your alarm is invoked.
  691. */
  692. alarmRule?: AlarmRule;
  693. /**
  694. * Contains information about one or more notification actions.
  695. */
  696. alarmNotification?: AlarmNotification;
  697. /**
  698. * Contains information about one or more alarm actions.
  699. */
  700. alarmEventActions?: AlarmEventActions;
  701. /**
  702. * Contains the configuration information of alarm state changes.
  703. */
  704. alarmCapabilities?: AlarmCapabilities;
  705. }
  706. export interface DescribeDetectorModelAnalysisRequest {
  707. /**
  708. * The ID of the analysis result that you want to retrieve.
  709. */
  710. analysisId: AnalysisId;
  711. }
  712. export interface DescribeDetectorModelAnalysisResponse {
  713. /**
  714. * The status of the analysis activity. The status can be one of the following values: RUNNING - AWS IoT Events is analyzing your detector model. This process can take several minutes to complete. COMPLETE - AWS IoT Events finished analyzing your detector model. FAILED - AWS IoT Events couldn't analyze your detector model. Try again later.
  715. */
  716. status?: AnalysisStatus;
  717. }
  718. export interface DescribeDetectorModelRequest {
  719. /**
  720. * The name of the detector model.
  721. */
  722. detectorModelName: DetectorModelName;
  723. /**
  724. * The version of the detector model.
  725. */
  726. detectorModelVersion?: DetectorModelVersion;
  727. }
  728. export interface DescribeDetectorModelResponse {
  729. /**
  730. * Information about the detector model.
  731. */
  732. detectorModel?: DetectorModel;
  733. }
  734. export interface DescribeInputRequest {
  735. /**
  736. * The name of the input.
  737. */
  738. inputName: InputName;
  739. }
  740. export interface DescribeInputResponse {
  741. /**
  742. * Information about the input.
  743. */
  744. input?: Input;
  745. }
  746. export interface DescribeLoggingOptionsRequest {
  747. }
  748. export interface DescribeLoggingOptionsResponse {
  749. /**
  750. * The current settings of the AWS IoT Events logging options.
  751. */
  752. loggingOptions?: LoggingOptions;
  753. }
  754. export interface DetectorDebugOption {
  755. /**
  756. * The name of the detector model.
  757. */
  758. detectorModelName: DetectorModelName;
  759. /**
  760. * The value of the input attribute key used to create the detector (the instance of the detector model).
  761. */
  762. keyValue?: KeyValue;
  763. }
  764. export type DetectorDebugOptions = DetectorDebugOption[];
  765. export interface DetectorModel {
  766. /**
  767. * Information that defines how a detector operates.
  768. */
  769. detectorModelDefinition?: DetectorModelDefinition;
  770. /**
  771. * Information about how the detector is configured.
  772. */
  773. detectorModelConfiguration?: DetectorModelConfiguration;
  774. }
  775. export type DetectorModelArn = string;
  776. export interface DetectorModelConfiguration {
  777. /**
  778. * The name of the detector model.
  779. */
  780. detectorModelName?: DetectorModelName;
  781. /**
  782. * The version of the detector model.
  783. */
  784. detectorModelVersion?: DetectorModelVersion;
  785. /**
  786. * A brief description of the detector model.
  787. */
  788. detectorModelDescription?: DetectorModelDescription;
  789. /**
  790. * The ARN of the detector model.
  791. */
  792. detectorModelArn?: DetectorModelArn;
  793. /**
  794. * The ARN of the role that grants permission to AWS IoT Events to perform its operations.
  795. */
  796. roleArn?: AmazonResourceName;
  797. /**
  798. * The time the detector model was created.
  799. */
  800. creationTime?: Timestamp;
  801. /**
  802. * The time the detector model was last updated.
  803. */
  804. lastUpdateTime?: Timestamp;
  805. /**
  806. * The status of the detector model.
  807. */
  808. status?: DetectorModelVersionStatus;
  809. /**
  810. * The value used to identify a detector instance. When a device or system sends input, a new detector instance with a unique key value is created. AWS IoT Events can continue to route input to its corresponding detector instance based on this identifying information. This parameter uses a JSON-path expression to select the attribute-value pair in the message payload that is used for identification. To route the message to the correct detector instance, the device must send a message payload that contains the same attribute-value.
  811. */
  812. key?: AttributeJsonPath;
  813. /**
  814. * Information about the order in which events are evaluated and how actions are executed.
  815. */
  816. evaluationMethod?: EvaluationMethod;
  817. }
  818. export interface DetectorModelDefinition {
  819. /**
  820. * Information about the states of the detector.
  821. */
  822. states: States;
  823. /**
  824. * The state that is entered at the creation of each detector (instance).
  825. */
  826. initialStateName: StateName;
  827. }
  828. export type DetectorModelDescription = string;
  829. export type DetectorModelName = string;
  830. export type DetectorModelSummaries = DetectorModelSummary[];
  831. export interface DetectorModelSummary {
  832. /**
  833. * The name of the detector model.
  834. */
  835. detectorModelName?: DetectorModelName;
  836. /**
  837. * A brief description of the detector model.
  838. */
  839. detectorModelDescription?: DetectorModelDescription;
  840. /**
  841. * The time the detector model was created.
  842. */
  843. creationTime?: Timestamp;
  844. }
  845. export type DetectorModelVersion = string;
  846. export type DetectorModelVersionStatus = "ACTIVE"|"ACTIVATING"|"INACTIVE"|"DEPRECATED"|"DRAFT"|"PAUSED"|"FAILED"|string;
  847. export type DetectorModelVersionSummaries = DetectorModelVersionSummary[];
  848. export interface DetectorModelVersionSummary {
  849. /**
  850. * The name of the detector model.
  851. */
  852. detectorModelName?: DetectorModelName;
  853. /**
  854. * The ID of the detector model version.
  855. */
  856. detectorModelVersion?: DetectorModelVersion;
  857. /**
  858. * The ARN of the detector model version.
  859. */
  860. detectorModelArn?: DetectorModelArn;
  861. /**
  862. * The ARN of the role that grants the detector model permission to perform its tasks.
  863. */
  864. roleArn?: AmazonResourceName;
  865. /**
  866. * The time the detector model version was created.
  867. */
  868. creationTime?: Timestamp;
  869. /**
  870. * The last time the detector model version was updated.
  871. */
  872. lastUpdateTime?: Timestamp;
  873. /**
  874. * The status of the detector model version.
  875. */
  876. status?: DetectorModelVersionStatus;
  877. /**
  878. * Information about the order in which events are evaluated and how actions are executed.
  879. */
  880. evaluationMethod?: EvaluationMethod;
  881. }
  882. export type DisabledOnInitialization = boolean;
  883. export interface DynamoDBAction {
  884. /**
  885. * The data type for the hash key (also called the partition key). You can specify the following values: 'STRING' - The hash key is a string. 'NUMBER' - The hash key is a number. If you don't specify hashKeyType, the default value is 'STRING'.
  886. */
  887. hashKeyType?: DynamoKeyType;
  888. /**
  889. * The name of the hash key (also called the partition key). The hashKeyField value must match the partition key of the target DynamoDB table.
  890. */
  891. hashKeyField: DynamoKeyField;
  892. /**
  893. * The value of the hash key (also called the partition key).
  894. */
  895. hashKeyValue: DynamoKeyValue;
  896. /**
  897. * The data type for the range key (also called the sort key), You can specify the following values: 'STRING' - The range key is a string. 'NUMBER' - The range key is number. If you don't specify rangeKeyField, the default value is 'STRING'.
  898. */
  899. rangeKeyType?: DynamoKeyType;
  900. /**
  901. * The name of the range key (also called the sort key). The rangeKeyField value must match the sort key of the target DynamoDB table.
  902. */
  903. rangeKeyField?: DynamoKeyField;
  904. /**
  905. * The value of the range key (also called the sort key).
  906. */
  907. rangeKeyValue?: DynamoKeyValue;
  908. /**
  909. * The type of operation to perform. You can specify the following values: 'INSERT' - Insert data as a new item into the DynamoDB table. This item uses the specified hash key as a partition key. If you specified a range key, the item uses the range key as a sort key. 'UPDATE' - Update an existing item of the DynamoDB table with new data. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key. 'DELETE' - Delete an existing item of the DynamoDB table. This item's partition key must match the specified hash key. If you specified a range key, the range key must match the item's sort key. If you don't specify this parameter, AWS IoT Events triggers the 'INSERT' operation.
  910. */
  911. operation?: DynamoOperation;
  912. /**
  913. * The name of the DynamoDB column that receives the action payload. If you don't specify this parameter, the name of the DynamoDB column is payload.
  914. */
  915. payloadField?: DynamoKeyField;
  916. /**
  917. * The name of the DynamoDB table. The tableName value must match the table name of the target DynamoDB table.
  918. */
  919. tableName: DynamoTableName;
  920. payload?: Payload;
  921. }
  922. export interface DynamoDBv2Action {
  923. /**
  924. * The name of the DynamoDB table.
  925. */
  926. tableName: DynamoTableName;
  927. payload?: Payload;
  928. }
  929. export type DynamoKeyField = string;
  930. export type DynamoKeyType = string;
  931. export type DynamoKeyValue = string;
  932. export type DynamoOperation = string;
  933. export type DynamoTableName = string;
  934. export interface EmailConfiguration {
  935. /**
  936. * The email address that sends emails. If you use the AWS IoT Events managed AWS Lambda function to manage your emails, you must verify the email address that sends emails in Amazon SES.
  937. */
  938. from: FromEmail;
  939. /**
  940. * Contains the subject and message of an email.
  941. */
  942. content?: EmailContent;
  943. /**
  944. * Contains the information of one or more recipients who receive the emails. You must add the users that receive emails to your AWS SSO store.
  945. */
  946. recipients: EmailRecipients;
  947. }
  948. export type EmailConfigurations = EmailConfiguration[];
  949. export interface EmailContent {
  950. /**
  951. * The subject of the email.
  952. */
  953. subject?: EmailSubject;
  954. /**
  955. * The message that you want to send. The message can be up to 200 characters.
  956. */
  957. additionalMessage?: NotificationAdditionalMessage;
  958. }
  959. export interface EmailRecipients {
  960. /**
  961. * Specifies one or more recipients who receive the email.
  962. */
  963. to?: RecipientDetails;
  964. }
  965. export type EmailSubject = string;
  966. export type EvaluationMethod = "BATCH"|"SERIAL"|string;
  967. export interface Event {
  968. /**
  969. * The name of the event.
  970. */
  971. eventName: EventName;
  972. /**
  973. * Optional. The Boolean expression that, when TRUE, causes the actions to be performed. If not present, the actions are performed (=TRUE). If the expression result is not a Boolean value, the actions are not performed (=FALSE).
  974. */
  975. condition?: Condition;
  976. /**
  977. * The actions to be performed.
  978. */
  979. actions?: Actions;
  980. }
  981. export type EventName = string;
  982. export type Events = Event[];
  983. export interface FirehoseAction {
  984. /**
  985. * The name of the Kinesis Data Firehose delivery stream where the data is written.
  986. */
  987. deliveryStreamName: DeliveryStreamName;
  988. /**
  989. * A character separator that is used to separate records written to the Kinesis Data Firehose delivery stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
  990. */
  991. separator?: FirehoseSeparator;
  992. /**
  993. * You can configure the action payload when you send a message to an Amazon Kinesis Data Firehose delivery stream.
  994. */
  995. payload?: Payload;
  996. }
  997. export type FirehoseSeparator = string;
  998. export type FromEmail = string;
  999. export interface GetDetectorModelAnalysisResultsRequest {
  1000. /**
  1001. * The ID of the analysis result that you want to retrieve.
  1002. */
  1003. analysisId: AnalysisId;
  1004. /**
  1005. * The token that you can use to return the next set of results.
  1006. */
  1007. nextToken?: NextToken;
  1008. /**
  1009. * The maximum number of results to be returned per request.
  1010. */
  1011. maxResults?: MaxAnalysisResults;
  1012. }
  1013. export interface GetDetectorModelAnalysisResultsResponse {
  1014. /**
  1015. * Contains information about one or more analysis results.
  1016. */
  1017. analysisResults?: AnalysisResults;
  1018. /**
  1019. * The token that you can use to return the next set of results, or null if there are no more results.
  1020. */
  1021. nextToken?: NextToken;
  1022. }
  1023. export type IdentityStoreId = string;
  1024. export interface InitializationConfiguration {
  1025. /**
  1026. * The value must be TRUE or FALSE. If FALSE, all alarm instances created based on the alarm model are activated. The default value is TRUE.
  1027. */
  1028. disabledOnInitialization: DisabledOnInitialization;
  1029. }
  1030. export interface Input {
  1031. /**
  1032. * Information about the configuration of an input.
  1033. */
  1034. inputConfiguration?: InputConfiguration;
  1035. /**
  1036. * The definition of the input.
  1037. */
  1038. inputDefinition?: InputDefinition;
  1039. }
  1040. export type InputArn = string;
  1041. export interface InputConfiguration {
  1042. /**
  1043. * The name of the input.
  1044. */
  1045. inputName: InputName;
  1046. /**
  1047. * A brief description of the input.
  1048. */
  1049. inputDescription?: InputDescription;
  1050. /**
  1051. * The ARN of the input.
  1052. */
  1053. inputArn: InputArn;
  1054. /**
  1055. * The time the input was created.
  1056. */
  1057. creationTime: Timestamp;
  1058. /**
  1059. * The last time the input was updated.
  1060. */
  1061. lastUpdateTime: Timestamp;
  1062. /**
  1063. * The status of the input.
  1064. */
  1065. status: InputStatus;
  1066. }
  1067. export interface InputDefinition {
  1068. /**
  1069. * The attributes from the JSON payload that are made available by the input. Inputs are derived from messages sent to the AWS IoT Events system using BatchPutMessage. Each such message contains a JSON payload, and those attributes (and their paired values) specified here are available for use in the condition expressions used by detectors that monitor this input.
  1070. */
  1071. attributes: Attributes;
  1072. }
  1073. export type InputDescription = string;
  1074. export interface InputIdentifier {
  1075. /**
  1076. * The identifier of the input routed to AWS IoT Events.
  1077. */
  1078. iotEventsInputIdentifier?: IotEventsInputIdentifier;
  1079. /**
  1080. * The identifer of the input routed from AWS IoT SiteWise.
  1081. */
  1082. iotSiteWiseInputIdentifier?: IotSiteWiseInputIdentifier;
  1083. }
  1084. export type InputName = string;
  1085. export type InputProperty = string;
  1086. export type InputStatus = "CREATING"|"UPDATING"|"ACTIVE"|"DELETING"|string;
  1087. export type InputSummaries = InputSummary[];
  1088. export interface InputSummary {
  1089. /**
  1090. * The name of the input.
  1091. */
  1092. inputName?: InputName;
  1093. /**
  1094. * A brief description of the input.
  1095. */
  1096. inputDescription?: InputDescription;
  1097. /**
  1098. * The ARN of the input.
  1099. */
  1100. inputArn?: InputArn;
  1101. /**
  1102. * The time the input was created.
  1103. */
  1104. creationTime?: Timestamp;
  1105. /**
  1106. * The last time the input was updated.
  1107. */
  1108. lastUpdateTime?: Timestamp;
  1109. /**
  1110. * The status of the input.
  1111. */
  1112. status?: InputStatus;
  1113. }
  1114. export interface IotEventsAction {
  1115. /**
  1116. * The name of the AWS IoT Events input where the data is sent.
  1117. */
  1118. inputName: InputName;
  1119. /**
  1120. * You can configure the action payload when you send a message to an AWS IoT Events input.
  1121. */
  1122. payload?: Payload;
  1123. }
  1124. export interface IotEventsInputIdentifier {
  1125. /**
  1126. * The name of the input routed to AWS IoT Events.
  1127. */
  1128. inputName: InputName;
  1129. }
  1130. export interface IotSiteWiseAction {
  1131. /**
  1132. * A unique identifier for this entry. You can use the entry ID to track which data entry causes an error in case of failure. The default is a new unique identifier.
  1133. */
  1134. entryId?: AssetPropertyEntryId;
  1135. /**
  1136. * The ID of the asset that has the specified property.
  1137. */
  1138. assetId?: AssetId;
  1139. /**
  1140. * The ID of the asset property.
  1141. */
  1142. propertyId?: AssetPropertyId;
  1143. /**
  1144. * The alias of the asset property.
  1145. */
  1146. propertyAlias?: AssetPropertyAlias;
  1147. /**
  1148. * The value to send to the asset property. This value contains timestamp, quality, and value (TQV) information.
  1149. */
  1150. propertyValue?: AssetPropertyValue;
  1151. }
  1152. export interface IotSiteWiseAssetModelPropertyIdentifier {
  1153. /**
  1154. * The ID of the AWS IoT SiteWise asset model.
  1155. */
  1156. assetModelId: AssetModelId;
  1157. /**
  1158. * The ID of the AWS IoT SiteWise asset property.
  1159. */
  1160. propertyId: AssetPropertyId;
  1161. }
  1162. export interface IotSiteWiseInputIdentifier {
  1163. /**
  1164. * The identifier of the AWS IoT SiteWise asset model property.
  1165. */
  1166. iotSiteWiseAssetModelPropertyIdentifier?: IotSiteWiseAssetModelPropertyIdentifier;
  1167. }
  1168. export interface IotTopicPublishAction {
  1169. /**
  1170. * The MQTT topic of the message. You can use a string expression that includes variables ($variable.&lt;variable-name&gt;) and input values ($input.&lt;input-name&gt;.&lt;path-to-datum&gt;) as the topic string.
  1171. */
  1172. mqttTopic: MQTTTopic;
  1173. /**
  1174. * You can configure the action payload when you publish a message to an AWS IoT Core topic.
  1175. */
  1176. payload?: Payload;
  1177. }
  1178. export type KeyValue = string;
  1179. export interface LambdaAction {
  1180. /**
  1181. * The ARN of the Lambda function that is executed.
  1182. */
  1183. functionArn: AmazonResourceName;
  1184. /**
  1185. * You can configure the action payload when you send a message to a Lambda function.
  1186. */
  1187. payload?: Payload;
  1188. }
  1189. export interface ListAlarmModelVersionsRequest {
  1190. /**
  1191. * The name of the alarm model.
  1192. */
  1193. alarmModelName: AlarmModelName;
  1194. /**
  1195. * The token that you can use to return the next set of results.
  1196. */
  1197. nextToken?: NextToken;
  1198. /**
  1199. * The maximum number of results to be returned per request.
  1200. */
  1201. maxResults?: MaxResults;
  1202. }
  1203. export interface ListAlarmModelVersionsResponse {
  1204. /**
  1205. * A list that summarizes each alarm model version.
  1206. */
  1207. alarmModelVersionSummaries?: AlarmModelVersionSummaries;
  1208. /**
  1209. * The token that you can use to return the next set of results, or null if there are no more results.
  1210. */
  1211. nextToken?: NextToken;
  1212. }
  1213. export interface ListAlarmModelsRequest {
  1214. /**
  1215. * The token that you can use to return the next set of results.
  1216. */
  1217. nextToken?: NextToken;
  1218. /**
  1219. * The maximum number of results to be returned per request.
  1220. */
  1221. maxResults?: MaxResults;
  1222. }
  1223. export interface ListAlarmModelsResponse {
  1224. /**
  1225. * A list that summarizes each alarm model.
  1226. */
  1227. alarmModelSummaries?: AlarmModelSummaries;
  1228. /**
  1229. * The token that you can use to return the next set of results, or null if there are no more results.
  1230. */
  1231. nextToken?: NextToken;
  1232. }
  1233. export interface ListDetectorModelVersionsRequest {
  1234. /**
  1235. * The name of the detector model whose versions are returned.
  1236. */
  1237. detectorModelName: DetectorModelName;
  1238. /**
  1239. * The token that you can use to return the next set of results.
  1240. */
  1241. nextToken?: NextToken;
  1242. /**
  1243. * The maximum number of results to be returned per request.
  1244. */
  1245. maxResults?: MaxResults;
  1246. }
  1247. export interface ListDetectorModelVersionsResponse {
  1248. /**
  1249. * Summary information about the detector model versions.
  1250. */
  1251. detectorModelVersionSummaries?: DetectorModelVersionSummaries;
  1252. /**
  1253. * The token that you can use to return the next set of results, or null if there are no more results.
  1254. */
  1255. nextToken?: NextToken;
  1256. }
  1257. export interface ListDetectorModelsRequest {
  1258. /**
  1259. * The token that you can use to return the next set of results.
  1260. */
  1261. nextToken?: NextToken;
  1262. /**
  1263. * The maximum number of results to be returned per request.
  1264. */
  1265. maxResults?: MaxResults;
  1266. }
  1267. export interface ListDetectorModelsResponse {
  1268. /**
  1269. * Summary information about the detector models.
  1270. */
  1271. detectorModelSummaries?: DetectorModelSummaries;
  1272. /**
  1273. * The token that you can use to return the next set of results, or null if there are no more results.
  1274. */
  1275. nextToken?: NextToken;
  1276. }
  1277. export interface ListInputRoutingsRequest {
  1278. /**
  1279. * The identifer of the routed input.
  1280. */
  1281. inputIdentifier: InputIdentifier;
  1282. /**
  1283. * The maximum number of results to be returned per request.
  1284. */
  1285. maxResults?: MaxResults;
  1286. /**
  1287. * The token that you can use to return the next set of results.
  1288. */
  1289. nextToken?: NextToken;
  1290. }
  1291. export interface ListInputRoutingsResponse {
  1292. /**
  1293. * Summary information about the routed resources.
  1294. */
  1295. routedResources?: RoutedResources;
  1296. /**
  1297. * The token that you can use to return the next set of results, or null if there are no more results.
  1298. */
  1299. nextToken?: NextToken;
  1300. }
  1301. export interface ListInputsRequest {
  1302. /**
  1303. * The token that you can use to return the next set of results.
  1304. */
  1305. nextToken?: NextToken;
  1306. /**
  1307. * The maximum number of results to be returned per request.
  1308. */
  1309. maxResults?: MaxResults;
  1310. }
  1311. export interface ListInputsResponse {
  1312. /**
  1313. * Summary information about the inputs.
  1314. */
  1315. inputSummaries?: InputSummaries;
  1316. /**
  1317. * The token that you can use to return the next set of results, or null if there are no more results.
  1318. */
  1319. nextToken?: NextToken;
  1320. }
  1321. export interface ListTagsForResourceRequest {
  1322. /**
  1323. * The ARN of the resource.
  1324. */
  1325. resourceArn: AmazonResourceName;
  1326. }
  1327. export interface ListTagsForResourceResponse {
  1328. /**
  1329. * The list of tags assigned to the resource.
  1330. */
  1331. tags?: Tags;
  1332. }
  1333. export type LoggingEnabled = boolean;
  1334. export type LoggingLevel = "ERROR"|"INFO"|"DEBUG"|string;
  1335. export interface LoggingOptions {
  1336. /**
  1337. * The ARN of the role that grants permission to AWS IoT Events to perform logging.
  1338. */
  1339. roleArn: AmazonResourceName;
  1340. /**
  1341. * The logging level.
  1342. */
  1343. level: LoggingLevel;
  1344. /**
  1345. * If TRUE, logging is enabled for AWS IoT Events.
  1346. */
  1347. enabled: LoggingEnabled;
  1348. /**
  1349. * Information that identifies those detector models and their detectors (instances) for which the logging level is given.
  1350. */
  1351. detectorDebugOptions?: DetectorDebugOptions;
  1352. }
  1353. export type MQTTTopic = string;
  1354. export type MaxAnalysisResults = number;
  1355. export type MaxResults = number;
  1356. export type NextToken = string;
  1357. export interface NotificationAction {
  1358. /**
  1359. * Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function provided by AWS IoT Events.
  1360. */
  1361. action: NotificationTargetActions;
  1362. /**
  1363. * Contains the configuration information of SMS notifications.
  1364. */
  1365. smsConfigurations?: SMSConfigurations;
  1366. /**
  1367. * Contains the configuration information of email notifications.
  1368. */
  1369. emailConfigurations?: EmailConfigurations;
  1370. }
  1371. export type NotificationActions = NotificationAction[];
  1372. export type NotificationAdditionalMessage = string;
  1373. export interface NotificationTargetActions {
  1374. lambdaAction?: LambdaAction;
  1375. }
  1376. export interface OnEnterLifecycle {
  1377. /**
  1378. * Specifies the actions that are performed when the state is entered and the condition is TRUE.
  1379. */
  1380. events?: Events;
  1381. }
  1382. export interface OnExitLifecycle {
  1383. /**
  1384. * Specifies the actions that are performed when the state is exited and the condition is TRUE.
  1385. */
  1386. events?: Events;
  1387. }
  1388. export interface OnInputLifecycle {
  1389. /**
  1390. * Specifies the actions performed when the condition evaluates to TRUE.
  1391. */
  1392. events?: Events;
  1393. /**
  1394. * Specifies the actions performed, and the next state entered, when a condition evaluates to TRUE.
  1395. */
  1396. transitionEvents?: TransitionEvents;
  1397. }
  1398. export interface Payload {
  1399. /**
  1400. * The content of the payload. You can use a string expression that includes quoted strings ('&lt;string&gt;'), variables ($variable.&lt;variable-name&gt;), input values ($input.&lt;input-name&gt;.&lt;path-to-datum&gt;), string concatenations, and quoted strings that contain ${} as the content. The recommended maximum size of a content expression is 1 KB.
  1401. */
  1402. contentExpression: ContentExpression;
  1403. /**
  1404. * The value of the payload type can be either STRING or JSON.
  1405. */
  1406. type: PayloadType;
  1407. }
  1408. export type PayloadType = "STRING"|"JSON"|string;
  1409. export interface PutLoggingOptionsRequest {
  1410. /**
  1411. * The new values of the AWS IoT Events logging options.
  1412. */
  1413. loggingOptions: LoggingOptions;
  1414. }
  1415. export type QueueUrl = string;
  1416. export interface RecipientDetail {
  1417. /**
  1418. * The AWS Single Sign-On (AWS SSO) authentication information.
  1419. */
  1420. ssoIdentity?: SSOIdentity;
  1421. }
  1422. export type RecipientDetails = RecipientDetail[];
  1423. export interface ResetTimerAction {
  1424. /**
  1425. * The name of the timer to reset.
  1426. */
  1427. timerName: TimerName;
  1428. }
  1429. export type ResourceName = string;
  1430. export interface RoutedResource {
  1431. /**
  1432. * The name of the routed resource.
  1433. */
  1434. name?: ResourceName;
  1435. /**
  1436. * The ARN of the routed resource. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  1437. */
  1438. arn?: AmazonResourceName;
  1439. }
  1440. export type RoutedResources = RoutedResource[];
  1441. export interface SMSConfiguration {
  1442. /**
  1443. * The sender ID.
  1444. */
  1445. senderId?: SMSSenderId;
  1446. /**
  1447. * The message that you want to send. The message can be up to 200 characters.
  1448. */
  1449. additionalMessage?: NotificationAdditionalMessage;
  1450. /**
  1451. * Specifies one or more recipients who receive the message. You must add the users that receive SMS messages to your AWS SSO store.
  1452. */
  1453. recipients: RecipientDetails;
  1454. }
  1455. export type SMSConfigurations = SMSConfiguration[];
  1456. export type SMSSenderId = string;
  1457. export interface SNSTopicPublishAction {
  1458. /**
  1459. * The ARN of the Amazon SNS target where the message is sent.
  1460. */
  1461. targetArn: AmazonResourceName;
  1462. /**
  1463. * You can configure the action payload when you send a message as an Amazon SNS push notification.
  1464. */
  1465. payload?: Payload;
  1466. }
  1467. export interface SSOIdentity {
  1468. /**
  1469. * The ID of the AWS SSO identity store.
  1470. */
  1471. identityStoreId: IdentityStoreId;
  1472. /**
  1473. * The user ID.
  1474. */
  1475. userId?: SSOReferenceId;
  1476. }
  1477. export type SSOReferenceId = string;
  1478. export type Seconds = number;
  1479. export interface SetTimerAction {
  1480. /**
  1481. * The name of the timer.
  1482. */
  1483. timerName: TimerName;
  1484. /**
  1485. * The number of seconds until the timer expires. The minimum value is 60 seconds to ensure accuracy. The maximum value is 31622400 seconds.
  1486. */
  1487. seconds?: Seconds;
  1488. /**
  1489. * The duration of the timer, in seconds. You can use a string expression that includes numbers, variables ($variable.&lt;variable-name&gt;), and input values ($input.&lt;input-name&gt;.&lt;path-to-datum&gt;) as the duration. The range of the duration is 1-31622400 seconds. To ensure accuracy, the minimum duration is 60 seconds. The evaluated result of the duration is rounded down to the nearest whole number.
  1490. */
  1491. durationExpression?: VariableValue;
  1492. }
  1493. export interface SetVariableAction {
  1494. /**
  1495. * The name of the variable.
  1496. */
  1497. variableName: VariableName;
  1498. /**
  1499. * The new value of the variable.
  1500. */
  1501. value: VariableValue;
  1502. }
  1503. export type Severity = number;
  1504. export interface SimpleRule {
  1505. /**
  1506. * The value on the left side of the comparison operator. You can specify an AWS IoT Events input attribute as an input property.
  1507. */
  1508. inputProperty: InputProperty;
  1509. /**
  1510. * The comparison operator.
  1511. */
  1512. comparisonOperator: ComparisonOperator;
  1513. /**
  1514. * The value on the right side of the comparison operator. You can enter a number or specify an AWS IoT Events input attribute.
  1515. */
  1516. threshold: Threshold;
  1517. }
  1518. export interface SqsAction {
  1519. /**
  1520. * The URL of the SQS queue where the data is written.
  1521. */
  1522. queueUrl: QueueUrl;
  1523. /**
  1524. * Set this to TRUE if you want the data to be base-64 encoded before it is written to the queue. Otherwise, set this to FALSE.
  1525. */
  1526. useBase64?: UseBase64;
  1527. /**
  1528. * You can configure the action payload when you send a message to an Amazon SQS queue.
  1529. */
  1530. payload?: Payload;
  1531. }
  1532. export interface StartDetectorModelAnalysisRequest {
  1533. detectorModelDefinition: DetectorModelDefinition;
  1534. }
  1535. export interface StartDetectorModelAnalysisResponse {
  1536. /**
  1537. * The ID that you can use to retrieve the analysis result.
  1538. */
  1539. analysisId?: AnalysisId;
  1540. }
  1541. export interface State {
  1542. /**
  1543. * The name of the state.
  1544. */
  1545. stateName: StateName;
  1546. /**
  1547. * When an input is received and the condition is TRUE, perform the specified actions.
  1548. */
  1549. onInput?: OnInputLifecycle;
  1550. /**
  1551. * When entering this state, perform these actions if the condition is TRUE.
  1552. */
  1553. onEnter?: OnEnterLifecycle;
  1554. /**
  1555. * When exiting this state, perform these actions if the specified condition is TRUE.
  1556. */
  1557. onExit?: OnExitLifecycle;
  1558. }
  1559. export type StateName = string;
  1560. export type States = State[];
  1561. export type StatusMessage = string;
  1562. export interface Tag {
  1563. /**
  1564. * The tag's key.
  1565. */
  1566. key: TagKey;
  1567. /**
  1568. * The tag's value.
  1569. */
  1570. value: TagValue;
  1571. }
  1572. export type TagKey = string;
  1573. export type TagKeys = TagKey[];
  1574. export interface TagResourceRequest {
  1575. /**
  1576. * The ARN of the resource.
  1577. */
  1578. resourceArn: AmazonResourceName;
  1579. /**
  1580. * The new or modified tags for the resource.
  1581. */
  1582. tags: Tags;
  1583. }
  1584. export interface TagResourceResponse {
  1585. }
  1586. export type TagValue = string;
  1587. export type Tags = Tag[];
  1588. export type Threshold = string;
  1589. export type TimerName = string;
  1590. export type Timestamp = Date;
  1591. export interface TransitionEvent {
  1592. /**
  1593. * The name of the transition event.
  1594. */
  1595. eventName: EventName;
  1596. /**
  1597. * Required. A Boolean expression that when TRUE causes the actions to be performed and the nextState to be entered.
  1598. */
  1599. condition: Condition;
  1600. /**
  1601. * The actions to be performed.
  1602. */
  1603. actions?: Actions;
  1604. /**
  1605. * The next state to enter.
  1606. */
  1607. nextState: StateName;
  1608. }
  1609. export type TransitionEvents = TransitionEvent[];
  1610. export interface UntagResourceRequest {
  1611. /**
  1612. * The ARN of the resource.
  1613. */
  1614. resourceArn: AmazonResourceName;
  1615. /**
  1616. * A list of the keys of the tags to be removed from the resource.
  1617. */
  1618. tagKeys: TagKeys;
  1619. }
  1620. export interface UntagResourceResponse {
  1621. }
  1622. export interface UpdateAlarmModelRequest {
  1623. /**
  1624. * The name of the alarm model.
  1625. */
  1626. alarmModelName: AlarmModelName;
  1627. /**
  1628. * The description of the alarm model.
  1629. */
  1630. alarmModelDescription?: AlarmModelDescription;
  1631. /**
  1632. * The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  1633. */
  1634. roleArn: AmazonResourceName;
  1635. /**
  1636. * A non-negative integer that reflects the severity level of the alarm.
  1637. */
  1638. severity?: Severity;
  1639. /**
  1640. * Defines when your alarm is invoked.
  1641. */
  1642. alarmRule: AlarmRule;
  1643. /**
  1644. * Contains information about one or more notification actions.
  1645. */
  1646. alarmNotification?: AlarmNotification;
  1647. /**
  1648. * Contains information about one or more alarm actions.
  1649. */
  1650. alarmEventActions?: AlarmEventActions;
  1651. /**
  1652. * Contains the configuration information of alarm state changes.
  1653. */
  1654. alarmCapabilities?: AlarmCapabilities;
  1655. }
  1656. export interface UpdateAlarmModelResponse {
  1657. /**
  1658. * The time the alarm model was created, in the Unix epoch format.
  1659. */
  1660. creationTime?: Timestamp;
  1661. /**
  1662. * The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
  1663. */
  1664. alarmModelArn?: AlarmModelArn;
  1665. /**
  1666. * The version of the alarm model.
  1667. */
  1668. alarmModelVersion?: AlarmModelVersion;
  1669. /**
  1670. * The time the alarm model was last updated, in the Unix epoch format.
  1671. */
  1672. lastUpdateTime?: Timestamp;
  1673. /**
  1674. * The status of the alarm model. The status can be one of the following values: ACTIVE - The alarm model is active and it's ready to evaluate data. ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes. INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model. FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.
  1675. */
  1676. status?: AlarmModelVersionStatus;
  1677. }
  1678. export interface UpdateDetectorModelRequest {
  1679. /**
  1680. * The name of the detector model that is updated.
  1681. */
  1682. detectorModelName: DetectorModelName;
  1683. /**
  1684. * Information that defines how a detector operates.
  1685. */
  1686. detectorModelDefinition: DetectorModelDefinition;
  1687. /**
  1688. * A brief description of the detector model.
  1689. */
  1690. detectorModelDescription?: DetectorModelDescription;
  1691. /**
  1692. * The ARN of the role that grants permission to AWS IoT Events to perform its operations.
  1693. */
  1694. roleArn: AmazonResourceName;
  1695. /**
  1696. * Information about the order in which events are evaluated and how actions are executed.
  1697. */
  1698. evaluationMethod?: EvaluationMethod;
  1699. }
  1700. export interface UpdateDetectorModelResponse {
  1701. /**
  1702. * Information about how the detector model is configured.
  1703. */
  1704. detectorModelConfiguration?: DetectorModelConfiguration;
  1705. }
  1706. export interface UpdateInputRequest {
  1707. /**
  1708. * The name of the input you want to update.
  1709. */
  1710. inputName: InputName;
  1711. /**
  1712. * A brief description of the input.
  1713. */
  1714. inputDescription?: InputDescription;
  1715. /**
  1716. * The definition of the input.
  1717. */
  1718. inputDefinition: InputDefinition;
  1719. }
  1720. export interface UpdateInputResponse {
  1721. /**
  1722. * Information about the configuration of the input.
  1723. */
  1724. inputConfiguration?: InputConfiguration;
  1725. }
  1726. export type UseBase64 = boolean;
  1727. export type VariableName = string;
  1728. export type VariableValue = string;
  1729. /**
  1730. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1731. */
  1732. export type apiVersion = "2018-07-27"|"latest"|string;
  1733. export interface ClientApiVersions {
  1734. /**
  1735. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1736. */
  1737. apiVersion?: apiVersion;
  1738. }
  1739. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  1740. /**
  1741. * Contains interfaces for use with the IoTEvents client.
  1742. */
  1743. export import Types = IoTEvents;
  1744. }
  1745. export = IoTEvents;