iotdeviceadvisor.d.ts 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  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 IotDeviceAdvisor extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: IotDeviceAdvisor.Types.ClientConfiguration)
  13. config: Config & IotDeviceAdvisor.Types.ClientConfiguration;
  14. /**
  15. * Creates a Device Advisor test suite. Requires permission to access the CreateSuiteDefinition action.
  16. */
  17. createSuiteDefinition(params: IotDeviceAdvisor.Types.CreateSuiteDefinitionRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.CreateSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.CreateSuiteDefinitionResponse, AWSError>;
  18. /**
  19. * Creates a Device Advisor test suite. Requires permission to access the CreateSuiteDefinition action.
  20. */
  21. createSuiteDefinition(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.CreateSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.CreateSuiteDefinitionResponse, AWSError>;
  22. /**
  23. * Deletes a Device Advisor test suite. Requires permission to access the DeleteSuiteDefinition action.
  24. */
  25. deleteSuiteDefinition(params: IotDeviceAdvisor.Types.DeleteSuiteDefinitionRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.DeleteSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.DeleteSuiteDefinitionResponse, AWSError>;
  26. /**
  27. * Deletes a Device Advisor test suite. Requires permission to access the DeleteSuiteDefinition action.
  28. */
  29. deleteSuiteDefinition(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.DeleteSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.DeleteSuiteDefinitionResponse, AWSError>;
  30. /**
  31. * Gets information about an Device Advisor endpoint.
  32. */
  33. getEndpoint(params: IotDeviceAdvisor.Types.GetEndpointRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetEndpointResponse) => void): Request<IotDeviceAdvisor.Types.GetEndpointResponse, AWSError>;
  34. /**
  35. * Gets information about an Device Advisor endpoint.
  36. */
  37. getEndpoint(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetEndpointResponse) => void): Request<IotDeviceAdvisor.Types.GetEndpointResponse, AWSError>;
  38. /**
  39. * Gets information about a Device Advisor test suite. Requires permission to access the GetSuiteDefinition action.
  40. */
  41. getSuiteDefinition(params: IotDeviceAdvisor.Types.GetSuiteDefinitionRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.GetSuiteDefinitionResponse, AWSError>;
  42. /**
  43. * Gets information about a Device Advisor test suite. Requires permission to access the GetSuiteDefinition action.
  44. */
  45. getSuiteDefinition(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.GetSuiteDefinitionResponse, AWSError>;
  46. /**
  47. * Gets information about a Device Advisor test suite run. Requires permission to access the GetSuiteRun action.
  48. */
  49. getSuiteRun(params: IotDeviceAdvisor.Types.GetSuiteRunRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetSuiteRunResponse) => void): Request<IotDeviceAdvisor.Types.GetSuiteRunResponse, AWSError>;
  50. /**
  51. * Gets information about a Device Advisor test suite run. Requires permission to access the GetSuiteRun action.
  52. */
  53. getSuiteRun(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetSuiteRunResponse) => void): Request<IotDeviceAdvisor.Types.GetSuiteRunResponse, AWSError>;
  54. /**
  55. * Gets a report download link for a successful Device Advisor qualifying test suite run. Requires permission to access the GetSuiteRunReport action.
  56. */
  57. getSuiteRunReport(params: IotDeviceAdvisor.Types.GetSuiteRunReportRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetSuiteRunReportResponse) => void): Request<IotDeviceAdvisor.Types.GetSuiteRunReportResponse, AWSError>;
  58. /**
  59. * Gets a report download link for a successful Device Advisor qualifying test suite run. Requires permission to access the GetSuiteRunReport action.
  60. */
  61. getSuiteRunReport(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.GetSuiteRunReportResponse) => void): Request<IotDeviceAdvisor.Types.GetSuiteRunReportResponse, AWSError>;
  62. /**
  63. * Lists the Device Advisor test suites you have created. Requires permission to access the ListSuiteDefinitions action.
  64. */
  65. listSuiteDefinitions(params: IotDeviceAdvisor.Types.ListSuiteDefinitionsRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.ListSuiteDefinitionsResponse) => void): Request<IotDeviceAdvisor.Types.ListSuiteDefinitionsResponse, AWSError>;
  66. /**
  67. * Lists the Device Advisor test suites you have created. Requires permission to access the ListSuiteDefinitions action.
  68. */
  69. listSuiteDefinitions(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.ListSuiteDefinitionsResponse) => void): Request<IotDeviceAdvisor.Types.ListSuiteDefinitionsResponse, AWSError>;
  70. /**
  71. * Lists runs of the specified Device Advisor test suite. You can list all runs of the test suite, or the runs of a specific version of the test suite. Requires permission to access the ListSuiteRuns action.
  72. */
  73. listSuiteRuns(params: IotDeviceAdvisor.Types.ListSuiteRunsRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.ListSuiteRunsResponse) => void): Request<IotDeviceAdvisor.Types.ListSuiteRunsResponse, AWSError>;
  74. /**
  75. * Lists runs of the specified Device Advisor test suite. You can list all runs of the test suite, or the runs of a specific version of the test suite. Requires permission to access the ListSuiteRuns action.
  76. */
  77. listSuiteRuns(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.ListSuiteRunsResponse) => void): Request<IotDeviceAdvisor.Types.ListSuiteRunsResponse, AWSError>;
  78. /**
  79. * Lists the tags attached to an IoT Device Advisor resource. Requires permission to access the ListTagsForResource action.
  80. */
  81. listTagsForResource(params: IotDeviceAdvisor.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.ListTagsForResourceResponse) => void): Request<IotDeviceAdvisor.Types.ListTagsForResourceResponse, AWSError>;
  82. /**
  83. * Lists the tags attached to an IoT Device Advisor resource. Requires permission to access the ListTagsForResource action.
  84. */
  85. listTagsForResource(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.ListTagsForResourceResponse) => void): Request<IotDeviceAdvisor.Types.ListTagsForResourceResponse, AWSError>;
  86. /**
  87. * Starts a Device Advisor test suite run. Requires permission to access the StartSuiteRun action.
  88. */
  89. startSuiteRun(params: IotDeviceAdvisor.Types.StartSuiteRunRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.StartSuiteRunResponse) => void): Request<IotDeviceAdvisor.Types.StartSuiteRunResponse, AWSError>;
  90. /**
  91. * Starts a Device Advisor test suite run. Requires permission to access the StartSuiteRun action.
  92. */
  93. startSuiteRun(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.StartSuiteRunResponse) => void): Request<IotDeviceAdvisor.Types.StartSuiteRunResponse, AWSError>;
  94. /**
  95. * Stops a Device Advisor test suite run that is currently running. Requires permission to access the StopSuiteRun action.
  96. */
  97. stopSuiteRun(params: IotDeviceAdvisor.Types.StopSuiteRunRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.StopSuiteRunResponse) => void): Request<IotDeviceAdvisor.Types.StopSuiteRunResponse, AWSError>;
  98. /**
  99. * Stops a Device Advisor test suite run that is currently running. Requires permission to access the StopSuiteRun action.
  100. */
  101. stopSuiteRun(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.StopSuiteRunResponse) => void): Request<IotDeviceAdvisor.Types.StopSuiteRunResponse, AWSError>;
  102. /**
  103. * Adds to and modifies existing tags of an IoT Device Advisor resource. Requires permission to access the TagResource action.
  104. */
  105. tagResource(params: IotDeviceAdvisor.Types.TagResourceRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.TagResourceResponse) => void): Request<IotDeviceAdvisor.Types.TagResourceResponse, AWSError>;
  106. /**
  107. * Adds to and modifies existing tags of an IoT Device Advisor resource. Requires permission to access the TagResource action.
  108. */
  109. tagResource(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.TagResourceResponse) => void): Request<IotDeviceAdvisor.Types.TagResourceResponse, AWSError>;
  110. /**
  111. * Removes tags from an IoT Device Advisor resource. Requires permission to access the UntagResource action.
  112. */
  113. untagResource(params: IotDeviceAdvisor.Types.UntagResourceRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.UntagResourceResponse) => void): Request<IotDeviceAdvisor.Types.UntagResourceResponse, AWSError>;
  114. /**
  115. * Removes tags from an IoT Device Advisor resource. Requires permission to access the UntagResource action.
  116. */
  117. untagResource(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.UntagResourceResponse) => void): Request<IotDeviceAdvisor.Types.UntagResourceResponse, AWSError>;
  118. /**
  119. * Updates a Device Advisor test suite. Requires permission to access the UpdateSuiteDefinition action.
  120. */
  121. updateSuiteDefinition(params: IotDeviceAdvisor.Types.UpdateSuiteDefinitionRequest, callback?: (err: AWSError, data: IotDeviceAdvisor.Types.UpdateSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.UpdateSuiteDefinitionResponse, AWSError>;
  122. /**
  123. * Updates a Device Advisor test suite. Requires permission to access the UpdateSuiteDefinition action.
  124. */
  125. updateSuiteDefinition(callback?: (err: AWSError, data: IotDeviceAdvisor.Types.UpdateSuiteDefinitionResponse) => void): Request<IotDeviceAdvisor.Types.UpdateSuiteDefinitionResponse, AWSError>;
  126. }
  127. declare namespace IotDeviceAdvisor {
  128. export type AmazonResourceName = string;
  129. export type AuthenticationMethod = "X509ClientCertificate"|"SignatureVersion4"|string;
  130. export interface CreateSuiteDefinitionRequest {
  131. /**
  132. * Creates a Device Advisor test suite with suite definition configuration.
  133. */
  134. suiteDefinitionConfiguration: SuiteDefinitionConfiguration;
  135. /**
  136. * The tags to be attached to the suite definition.
  137. */
  138. tags?: TagMap;
  139. }
  140. export interface CreateSuiteDefinitionResponse {
  141. /**
  142. * The UUID of the test suite created.
  143. */
  144. suiteDefinitionId?: UUID;
  145. /**
  146. * The Amazon Resource Name (ARN) of the test suite.
  147. */
  148. suiteDefinitionArn?: AmazonResourceName;
  149. /**
  150. * The suite definition name of the test suite. This is a required parameter.
  151. */
  152. suiteDefinitionName?: SuiteDefinitionName;
  153. /**
  154. * The timestamp of when the test suite was created.
  155. */
  156. createdAt?: Timestamp;
  157. }
  158. export interface DeleteSuiteDefinitionRequest {
  159. /**
  160. * Suite definition ID of the test suite to be deleted.
  161. */
  162. suiteDefinitionId: UUID;
  163. }
  164. export interface DeleteSuiteDefinitionResponse {
  165. }
  166. export interface DeviceUnderTest {
  167. /**
  168. * Lists device's thing ARN.
  169. */
  170. thingArn?: AmazonResourceName;
  171. /**
  172. * Lists device's certificate ARN.
  173. */
  174. certificateArn?: AmazonResourceName;
  175. /**
  176. * Lists device's role ARN.
  177. */
  178. deviceRoleArn?: AmazonResourceName;
  179. }
  180. export type DeviceUnderTestList = DeviceUnderTest[];
  181. export type Endpoint = string;
  182. export type ErrorReason = string;
  183. export type Failure = string;
  184. export interface GetEndpointRequest {
  185. /**
  186. * The thing ARN of the device. This is an optional parameter.
  187. */
  188. thingArn?: AmazonResourceName;
  189. /**
  190. * The certificate ARN of the device. This is an optional parameter.
  191. */
  192. certificateArn?: AmazonResourceName;
  193. /**
  194. * The device role ARN of the device. This is an optional parameter.
  195. */
  196. deviceRoleArn?: AmazonResourceName;
  197. /**
  198. * The authentication method used during the device connection.
  199. */
  200. authenticationMethod?: AuthenticationMethod;
  201. }
  202. export interface GetEndpointResponse {
  203. /**
  204. * The response of an Device Advisor endpoint.
  205. */
  206. endpoint?: Endpoint;
  207. }
  208. export interface GetSuiteDefinitionRequest {
  209. /**
  210. * Suite definition ID of the test suite to get.
  211. */
  212. suiteDefinitionId: UUID;
  213. /**
  214. * Suite definition version of the test suite to get.
  215. */
  216. suiteDefinitionVersion?: SuiteDefinitionVersion;
  217. }
  218. export interface GetSuiteDefinitionResponse {
  219. /**
  220. * Suite definition ID of the suite definition.
  221. */
  222. suiteDefinitionId?: UUID;
  223. /**
  224. * The ARN of the suite definition.
  225. */
  226. suiteDefinitionArn?: AmazonResourceName;
  227. /**
  228. * Suite definition version of the suite definition.
  229. */
  230. suiteDefinitionVersion?: SuiteDefinitionVersion;
  231. /**
  232. * Latest suite definition version of the suite definition.
  233. */
  234. latestVersion?: SuiteDefinitionVersion;
  235. /**
  236. * Suite configuration of the suite definition.
  237. */
  238. suiteDefinitionConfiguration?: SuiteDefinitionConfiguration;
  239. /**
  240. * Date (in Unix epoch time) when the suite definition was created.
  241. */
  242. createdAt?: Timestamp;
  243. /**
  244. * Date (in Unix epoch time) when the suite definition was last modified.
  245. */
  246. lastModifiedAt?: Timestamp;
  247. /**
  248. * Tags attached to the suite definition.
  249. */
  250. tags?: TagMap;
  251. }
  252. export interface GetSuiteRunReportRequest {
  253. /**
  254. * Suite definition ID of the test suite.
  255. */
  256. suiteDefinitionId: UUID;
  257. /**
  258. * Suite run ID of the test suite run.
  259. */
  260. suiteRunId: UUID;
  261. }
  262. export interface GetSuiteRunReportResponse {
  263. /**
  264. * Download URL of the qualification report.
  265. */
  266. qualificationReportDownloadUrl?: QualificationReportDownloadUrl;
  267. }
  268. export interface GetSuiteRunRequest {
  269. /**
  270. * Suite definition ID for the test suite run.
  271. */
  272. suiteDefinitionId: UUID;
  273. /**
  274. * Suite run ID for the test suite run.
  275. */
  276. suiteRunId: UUID;
  277. }
  278. export interface GetSuiteRunResponse {
  279. /**
  280. * Suite definition ID for the test suite run.
  281. */
  282. suiteDefinitionId?: UUID;
  283. /**
  284. * Suite definition version for the test suite run.
  285. */
  286. suiteDefinitionVersion?: SuiteDefinitionVersion;
  287. /**
  288. * Suite run ID for the test suite run.
  289. */
  290. suiteRunId?: UUID;
  291. /**
  292. * The ARN of the suite run.
  293. */
  294. suiteRunArn?: AmazonResourceName;
  295. /**
  296. * Suite run configuration for the test suite run.
  297. */
  298. suiteRunConfiguration?: SuiteRunConfiguration;
  299. /**
  300. * Test results for the test suite run.
  301. */
  302. testResult?: TestResult;
  303. /**
  304. * Date (in Unix epoch time) when the test suite run started.
  305. */
  306. startTime?: Timestamp;
  307. /**
  308. * Date (in Unix epoch time) when the test suite run ended.
  309. */
  310. endTime?: Timestamp;
  311. /**
  312. * Status for the test suite run.
  313. */
  314. status?: SuiteRunStatus;
  315. /**
  316. * Error reason for any test suite run failure.
  317. */
  318. errorReason?: ErrorReason;
  319. /**
  320. * The tags attached to the suite run.
  321. */
  322. tags?: TagMap;
  323. }
  324. export type GroupName = string;
  325. export interface GroupResult {
  326. /**
  327. * Group result ID.
  328. */
  329. groupId?: UUID;
  330. /**
  331. * Group Result Name.
  332. */
  333. groupName?: GroupName;
  334. /**
  335. * Tests under Group Result.
  336. */
  337. tests?: TestCaseRuns;
  338. }
  339. export type GroupResultList = GroupResult[];
  340. export type IntendedForQualificationBoolean = boolean;
  341. export type IsLongDurationTestBoolean = boolean;
  342. export interface ListSuiteDefinitionsRequest {
  343. /**
  344. * The maximum number of results to return at once.
  345. */
  346. maxResults?: MaxResults;
  347. /**
  348. * A token used to get the next set of results.
  349. */
  350. nextToken?: Token;
  351. }
  352. export interface ListSuiteDefinitionsResponse {
  353. /**
  354. * An array of objects that provide summaries of information about the suite definitions in the list.
  355. */
  356. suiteDefinitionInformationList?: SuiteDefinitionInformationList;
  357. /**
  358. * A token used to get the next set of results.
  359. */
  360. nextToken?: Token;
  361. }
  362. export interface ListSuiteRunsRequest {
  363. /**
  364. * Lists the test suite runs of the specified test suite based on suite definition ID.
  365. */
  366. suiteDefinitionId?: UUID;
  367. /**
  368. * Must be passed along with suiteDefinitionId. Lists the test suite runs of the specified test suite based on suite definition version.
  369. */
  370. suiteDefinitionVersion?: SuiteDefinitionVersion;
  371. /**
  372. * The maximum number of results to return at once.
  373. */
  374. maxResults?: MaxResults;
  375. /**
  376. * A token to retrieve the next set of results.
  377. */
  378. nextToken?: Token;
  379. }
  380. export interface ListSuiteRunsResponse {
  381. /**
  382. * An array of objects that provide summaries of information about the suite runs in the list.
  383. */
  384. suiteRunsList?: SuiteRunsList;
  385. /**
  386. * A token to retrieve the next set of results.
  387. */
  388. nextToken?: Token;
  389. }
  390. export interface ListTagsForResourceRequest {
  391. /**
  392. * The resource ARN of the IoT Device Advisor resource. This can be SuiteDefinition ARN or SuiteRun ARN.
  393. */
  394. resourceArn: AmazonResourceName;
  395. }
  396. export interface ListTagsForResourceResponse {
  397. /**
  398. * The tags attached to the IoT Device Advisor resource.
  399. */
  400. tags?: TagMap;
  401. }
  402. export type LogUrl = string;
  403. export type MaxResults = number;
  404. export type ParallelRun = boolean;
  405. export type Protocol = "MqttV3_1_1"|"MqttV5"|"MqttV3_1_1_OverWebSocket"|"MqttV5_OverWebSocket"|string;
  406. export type QualificationReportDownloadUrl = string;
  407. export type RootGroup = string;
  408. export type SelectedTestList = UUID[];
  409. export interface StartSuiteRunRequest {
  410. /**
  411. * Suite definition ID of the test suite.
  412. */
  413. suiteDefinitionId: UUID;
  414. /**
  415. * Suite definition version of the test suite.
  416. */
  417. suiteDefinitionVersion?: SuiteDefinitionVersion;
  418. /**
  419. * Suite run configuration.
  420. */
  421. suiteRunConfiguration: SuiteRunConfiguration;
  422. /**
  423. * The tags to be attached to the suite run.
  424. */
  425. tags?: TagMap;
  426. }
  427. export interface StartSuiteRunResponse {
  428. /**
  429. * Suite Run ID of the started suite run.
  430. */
  431. suiteRunId?: UUID;
  432. /**
  433. * Amazon Resource Name (ARN) of the started suite run.
  434. */
  435. suiteRunArn?: AmazonResourceName;
  436. /**
  437. * Starts a Device Advisor test suite run based on suite create time.
  438. */
  439. createdAt?: Timestamp;
  440. /**
  441. * The response of an Device Advisor test endpoint.
  442. */
  443. endpoint?: Endpoint;
  444. }
  445. export type Status = "PASS"|"FAIL"|"CANCELED"|"PENDING"|"RUNNING"|"STOPPING"|"STOPPED"|"PASS_WITH_WARNINGS"|"ERROR"|string;
  446. export interface StopSuiteRunRequest {
  447. /**
  448. * Suite definition ID of the test suite run to be stopped.
  449. */
  450. suiteDefinitionId: UUID;
  451. /**
  452. * Suite run ID of the test suite run to be stopped.
  453. */
  454. suiteRunId: UUID;
  455. }
  456. export interface StopSuiteRunResponse {
  457. }
  458. export type String128 = string;
  459. export type String256 = string;
  460. export interface SuiteDefinitionConfiguration {
  461. /**
  462. * Gets the suite definition name. This is a required parameter.
  463. */
  464. suiteDefinitionName: SuiteDefinitionName;
  465. /**
  466. * Gets the devices configured.
  467. */
  468. devices?: DeviceUnderTestList;
  469. /**
  470. * Gets the tests intended for qualification in a suite.
  471. */
  472. intendedForQualification?: IntendedForQualificationBoolean;
  473. /**
  474. * Verifies if the test suite is a long duration test.
  475. */
  476. isLongDurationTest?: IsLongDurationTestBoolean;
  477. /**
  478. * Gets the test suite root group. This is a required parameter. For updating or creating the latest qualification suite, if intendedForQualification is set to true, rootGroup can be an empty string. If intendedForQualification is false, rootGroup cannot be an empty string. If rootGroup is empty, and intendedForQualification is set to true, all the qualification tests are included, and the configuration is default. For a qualification suite, the minimum length is 0, and the maximum is 2048. For a non-qualification suite, the minimum length is 1, and the maximum is 2048.
  479. */
  480. rootGroup: RootGroup;
  481. /**
  482. * Gets the device permission ARN. This is a required parameter.
  483. */
  484. devicePermissionRoleArn: AmazonResourceName;
  485. /**
  486. * Sets the MQTT protocol that is configured in the suite definition.
  487. */
  488. protocol?: Protocol;
  489. }
  490. export interface SuiteDefinitionInformation {
  491. /**
  492. * Suite definition ID of the test suite.
  493. */
  494. suiteDefinitionId?: UUID;
  495. /**
  496. * Suite name of the test suite.
  497. */
  498. suiteDefinitionName?: SuiteDefinitionName;
  499. /**
  500. * Specifies the devices that are under test for the test suite.
  501. */
  502. defaultDevices?: DeviceUnderTestList;
  503. /**
  504. * Specifies if the test suite is intended for qualification.
  505. */
  506. intendedForQualification?: IntendedForQualificationBoolean;
  507. /**
  508. * Verifies if the test suite is a long duration test.
  509. */
  510. isLongDurationTest?: IsLongDurationTestBoolean;
  511. /**
  512. * Gets the MQTT protocol that is configured in the suite definition.
  513. */
  514. protocol?: Protocol;
  515. /**
  516. * Date (in Unix epoch time) when the test suite was created.
  517. */
  518. createdAt?: Timestamp;
  519. }
  520. export type SuiteDefinitionInformationList = SuiteDefinitionInformation[];
  521. export type SuiteDefinitionName = string;
  522. export type SuiteDefinitionVersion = string;
  523. export interface SuiteRunConfiguration {
  524. /**
  525. * Sets the primary device for the test suite run. This requires a thing ARN or a certificate ARN.
  526. */
  527. primaryDevice: DeviceUnderTest;
  528. /**
  529. * Sets test case list.
  530. */
  531. selectedTestList?: SelectedTestList;
  532. /**
  533. * TRUE if multiple test suites run in parallel.
  534. */
  535. parallelRun?: ParallelRun;
  536. }
  537. export interface SuiteRunInformation {
  538. /**
  539. * Suite definition ID of the suite run.
  540. */
  541. suiteDefinitionId?: UUID;
  542. /**
  543. * Suite definition version of the suite run.
  544. */
  545. suiteDefinitionVersion?: SuiteDefinitionVersion;
  546. /**
  547. * Suite definition name of the suite run.
  548. */
  549. suiteDefinitionName?: SuiteDefinitionName;
  550. /**
  551. * Suite run ID of the suite run.
  552. */
  553. suiteRunId?: UUID;
  554. /**
  555. * Date (in Unix epoch time) when the suite run was created.
  556. */
  557. createdAt?: Timestamp;
  558. /**
  559. * Date (in Unix epoch time) when the suite run was started.
  560. */
  561. startedAt?: Timestamp;
  562. /**
  563. * Date (in Unix epoch time) when the suite run ended.
  564. */
  565. endAt?: Timestamp;
  566. /**
  567. * Status of the suite run.
  568. */
  569. status?: SuiteRunStatus;
  570. /**
  571. * Number of test cases that passed in the suite run.
  572. */
  573. passed?: SuiteRunResultCount;
  574. /**
  575. * Number of test cases that failed in the suite run.
  576. */
  577. failed?: SuiteRunResultCount;
  578. }
  579. export type SuiteRunResultCount = number;
  580. export type SuiteRunStatus = "PASS"|"FAIL"|"CANCELED"|"PENDING"|"RUNNING"|"STOPPING"|"STOPPED"|"PASS_WITH_WARNINGS"|"ERROR"|string;
  581. export type SuiteRunsList = SuiteRunInformation[];
  582. export type SystemMessage = string;
  583. export type TagKeyList = String128[];
  584. export type TagMap = {[key: string]: String256};
  585. export interface TagResourceRequest {
  586. /**
  587. * The resource ARN of an IoT Device Advisor resource. This can be SuiteDefinition ARN or SuiteRun ARN.
  588. */
  589. resourceArn: AmazonResourceName;
  590. /**
  591. * The tags to be attached to the IoT Device Advisor resource.
  592. */
  593. tags: TagMap;
  594. }
  595. export interface TagResourceResponse {
  596. }
  597. export type TestCaseDefinitionName = string;
  598. export interface TestCaseRun {
  599. /**
  600. * Provides the test case run ID.
  601. */
  602. testCaseRunId?: UUID;
  603. /**
  604. * Provides the test case run definition ID.
  605. */
  606. testCaseDefinitionId?: UUID;
  607. /**
  608. * Provides the test case run definition name.
  609. */
  610. testCaseDefinitionName?: TestCaseDefinitionName;
  611. /**
  612. * Provides the test case run status. Status is one of the following: PASS: Test passed. FAIL: Test failed. PENDING: Test has not started running but is scheduled. RUNNING: Test is running. STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run. STOPPED Test is stopped. You will see this status only if you stop a suite run. PASS_WITH_WARNINGS: Test passed with warnings. ERORR: Test faced an error when running due to an internal issue.
  613. */
  614. status?: Status;
  615. /**
  616. * Provides test case run start time.
  617. */
  618. startTime?: Timestamp;
  619. /**
  620. * Provides test case run end time.
  621. */
  622. endTime?: Timestamp;
  623. /**
  624. * Provides test case run log URL.
  625. */
  626. logUrl?: LogUrl;
  627. /**
  628. * Provides test case run warnings.
  629. */
  630. warnings?: Warnings;
  631. /**
  632. * Provides test case run failure result.
  633. */
  634. failure?: Failure;
  635. /**
  636. * Provides the test scenarios for the test case run.
  637. */
  638. testScenarios?: TestCaseScenariosList;
  639. }
  640. export type TestCaseRuns = TestCaseRun[];
  641. export interface TestCaseScenario {
  642. /**
  643. * Provides test case scenario ID.
  644. */
  645. testCaseScenarioId?: TestCaseScenarioId;
  646. /**
  647. * Provides test case scenario type. Type is one of the following: Advanced Basic
  648. */
  649. testCaseScenarioType?: TestCaseScenarioType;
  650. /**
  651. * Provides the test case scenario status. Status is one of the following: PASS: Test passed. FAIL: Test failed. PENDING: Test has not started running but is scheduled. RUNNING: Test is running. STOPPING: Test is performing cleanup steps. You will see this status only if you stop a suite run. STOPPED Test is stopped. You will see this status only if you stop a suite run. PASS_WITH_WARNINGS: Test passed with warnings. ERORR: Test faced an error when running due to an internal issue.
  652. */
  653. status?: TestCaseScenarioStatus;
  654. /**
  655. * Provides test case scenario failure result.
  656. */
  657. failure?: Failure;
  658. /**
  659. * Provides test case scenario system messages if any.
  660. */
  661. systemMessage?: SystemMessage;
  662. }
  663. export type TestCaseScenarioId = string;
  664. export type TestCaseScenarioStatus = "PASS"|"FAIL"|"CANCELED"|"PENDING"|"RUNNING"|"STOPPING"|"STOPPED"|"PASS_WITH_WARNINGS"|"ERROR"|string;
  665. export type TestCaseScenarioType = "Advanced"|"Basic"|string;
  666. export type TestCaseScenariosList = TestCaseScenario[];
  667. export interface TestResult {
  668. /**
  669. * Show each group of test results.
  670. */
  671. groups?: GroupResultList;
  672. }
  673. export type Timestamp = Date;
  674. export type Token = string;
  675. export type UUID = string;
  676. export interface UntagResourceRequest {
  677. /**
  678. * The resource ARN of an IoT Device Advisor resource. This can be SuiteDefinition ARN or SuiteRun ARN.
  679. */
  680. resourceArn: AmazonResourceName;
  681. /**
  682. * List of tag keys to remove from the IoT Device Advisor resource.
  683. */
  684. tagKeys: TagKeyList;
  685. }
  686. export interface UntagResourceResponse {
  687. }
  688. export interface UpdateSuiteDefinitionRequest {
  689. /**
  690. * Suite definition ID of the test suite to be updated.
  691. */
  692. suiteDefinitionId: UUID;
  693. /**
  694. * Updates a Device Advisor test suite with suite definition configuration.
  695. */
  696. suiteDefinitionConfiguration: SuiteDefinitionConfiguration;
  697. }
  698. export interface UpdateSuiteDefinitionResponse {
  699. /**
  700. * Suite definition ID of the updated test suite.
  701. */
  702. suiteDefinitionId?: UUID;
  703. /**
  704. * Amazon Resource Name (ARN) of the updated test suite.
  705. */
  706. suiteDefinitionArn?: AmazonResourceName;
  707. /**
  708. * Updates the suite definition name. This is a required parameter.
  709. */
  710. suiteDefinitionName?: SuiteDefinitionName;
  711. /**
  712. * Suite definition version of the updated test suite.
  713. */
  714. suiteDefinitionVersion?: SuiteDefinitionVersion;
  715. /**
  716. * Timestamp of when the test suite was created.
  717. */
  718. createdAt?: Timestamp;
  719. /**
  720. * Timestamp of when the test suite was updated.
  721. */
  722. lastUpdatedAt?: Timestamp;
  723. }
  724. export type Warnings = string;
  725. /**
  726. * 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.
  727. */
  728. export type apiVersion = "2020-09-18"|"latest"|string;
  729. export interface ClientApiVersions {
  730. /**
  731. * 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.
  732. */
  733. apiVersion?: apiVersion;
  734. }
  735. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  736. /**
  737. * Contains interfaces for use with the IotDeviceAdvisor client.
  738. */
  739. export import Types = IotDeviceAdvisor;
  740. }
  741. export = IotDeviceAdvisor;