api-2.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562
  1. {
  2. "version":"2.0",
  3. "metadata":{
  4. "apiVersion":"2016-06-30",
  5. "endpointPrefix":"snowball",
  6. "jsonVersion":"1.1",
  7. "protocol":"json",
  8. "serviceAbbreviation":"Amazon Snowball",
  9. "serviceFullName":"Amazon Import/Export Snowball",
  10. "signatureVersion":"v4",
  11. "targetPrefix":"AWSIESnowballJobManagementService"
  12. },
  13. "operations":{
  14. "CancelJob":{
  15. "name":"CancelJob",
  16. "http":{
  17. "method":"POST",
  18. "requestUri":"/"
  19. },
  20. "input":{"shape":"CancelJobRequest"},
  21. "output":{"shape":"CancelJobResult"},
  22. "errors":[
  23. {"shape":"InvalidResourceException"},
  24. {"shape":"InvalidJobStateException"},
  25. {"shape":"KMSRequestFailedException"}
  26. ]
  27. },
  28. "CreateAddress":{
  29. "name":"CreateAddress",
  30. "http":{
  31. "method":"POST",
  32. "requestUri":"/"
  33. },
  34. "input":{"shape":"CreateAddressRequest"},
  35. "output":{"shape":"CreateAddressResult"},
  36. "errors":[
  37. {"shape":"InvalidAddressException"},
  38. {"shape":"UnsupportedAddressException"}
  39. ]
  40. },
  41. "CreateJob":{
  42. "name":"CreateJob",
  43. "http":{
  44. "method":"POST",
  45. "requestUri":"/"
  46. },
  47. "input":{"shape":"CreateJobRequest"},
  48. "output":{"shape":"CreateJobResult"},
  49. "errors":[
  50. {"shape":"InvalidResourceException"},
  51. {"shape":"KMSRequestFailedException"}
  52. ]
  53. },
  54. "DescribeAddress":{
  55. "name":"DescribeAddress",
  56. "http":{
  57. "method":"POST",
  58. "requestUri":"/"
  59. },
  60. "input":{"shape":"DescribeAddressRequest"},
  61. "output":{"shape":"DescribeAddressResult"},
  62. "errors":[
  63. {"shape":"InvalidResourceException"}
  64. ]
  65. },
  66. "DescribeAddresses":{
  67. "name":"DescribeAddresses",
  68. "http":{
  69. "method":"POST",
  70. "requestUri":"/"
  71. },
  72. "input":{"shape":"DescribeAddressesRequest"},
  73. "output":{"shape":"DescribeAddressesResult"},
  74. "errors":[
  75. {"shape":"InvalidResourceException"}
  76. ]
  77. },
  78. "DescribeJob":{
  79. "name":"DescribeJob",
  80. "http":{
  81. "method":"POST",
  82. "requestUri":"/"
  83. },
  84. "input":{"shape":"DescribeJobRequest"},
  85. "output":{"shape":"DescribeJobResult"},
  86. "errors":[
  87. {"shape":"InvalidResourceException"}
  88. ]
  89. },
  90. "GetJobManifest":{
  91. "name":"GetJobManifest",
  92. "http":{
  93. "method":"POST",
  94. "requestUri":"/"
  95. },
  96. "input":{"shape":"GetJobManifestRequest"},
  97. "output":{"shape":"GetJobManifestResult"},
  98. "errors":[
  99. {"shape":"InvalidResourceException"},
  100. {"shape":"InvalidJobStateException"}
  101. ]
  102. },
  103. "GetJobUnlockCode":{
  104. "name":"GetJobUnlockCode",
  105. "http":{
  106. "method":"POST",
  107. "requestUri":"/"
  108. },
  109. "input":{"shape":"GetJobUnlockCodeRequest"},
  110. "output":{"shape":"GetJobUnlockCodeResult"},
  111. "errors":[
  112. {"shape":"InvalidResourceException"},
  113. {"shape":"InvalidJobStateException"}
  114. ]
  115. },
  116. "GetSnowballUsage":{
  117. "name":"GetSnowballUsage",
  118. "http":{
  119. "method":"POST",
  120. "requestUri":"/"
  121. },
  122. "input":{"shape":"GetSnowballUsageRequest"},
  123. "output":{"shape":"GetSnowballUsageResult"}
  124. },
  125. "ListJobs":{
  126. "name":"ListJobs",
  127. "http":{
  128. "method":"POST",
  129. "requestUri":"/"
  130. },
  131. "input":{"shape":"ListJobsRequest"},
  132. "output":{"shape":"ListJobsResult"}
  133. },
  134. "UpdateJob":{
  135. "name":"UpdateJob",
  136. "http":{
  137. "method":"POST",
  138. "requestUri":"/"
  139. },
  140. "input":{"shape":"UpdateJobRequest"},
  141. "output":{"shape":"UpdateJobResult"},
  142. "errors":[
  143. {"shape":"InvalidResourceException"},
  144. {"shape":"InvalidJobStateException"},
  145. {"shape":"KMSRequestFailedException"}
  146. ]
  147. }
  148. },
  149. "shapes":{
  150. "Address":{
  151. "type":"structure",
  152. "members":{
  153. "AddressId":{"shape":"AddressId"},
  154. "Name":{"shape":"String"},
  155. "Company":{"shape":"String"},
  156. "Street1":{"shape":"String"},
  157. "Street2":{"shape":"String"},
  158. "Street3":{"shape":"String"},
  159. "City":{"shape":"String"},
  160. "StateOrProvince":{"shape":"String"},
  161. "PrefectureOrDistrict":{"shape":"String"},
  162. "Landmark":{"shape":"String"},
  163. "Country":{"shape":"String"},
  164. "PostalCode":{"shape":"String"},
  165. "PhoneNumber":{"shape":"String"}
  166. }
  167. },
  168. "AddressId":{
  169. "type":"string",
  170. "max":40,
  171. "min":40,
  172. "pattern":"ADID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
  173. },
  174. "AddressList":{
  175. "type":"list",
  176. "member":{"shape":"Address"}
  177. },
  178. "Boolean":{"type":"boolean"},
  179. "CancelJobRequest":{
  180. "type":"structure",
  181. "required":["JobId"],
  182. "members":{
  183. "JobId":{"shape":"JobId"}
  184. }
  185. },
  186. "CancelJobResult":{
  187. "type":"structure",
  188. "members":{
  189. }
  190. },
  191. "CreateAddressRequest":{
  192. "type":"structure",
  193. "required":["Address"],
  194. "members":{
  195. "Address":{"shape":"Address"}
  196. }
  197. },
  198. "CreateAddressResult":{
  199. "type":"structure",
  200. "members":{
  201. "AddressId":{"shape":"String"}
  202. }
  203. },
  204. "CreateJobRequest":{
  205. "type":"structure",
  206. "required":[
  207. "JobType",
  208. "Resources",
  209. "AddressId",
  210. "RoleARN",
  211. "ShippingOption"
  212. ],
  213. "members":{
  214. "JobType":{"shape":"JobType"},
  215. "Resources":{"shape":"JobResource"},
  216. "Description":{"shape":"String"},
  217. "AddressId":{"shape":"AddressId"},
  218. "KmsKeyARN":{"shape":"KmsKeyARN"},
  219. "RoleARN":{"shape":"RoleARN"},
  220. "SnowballCapacityPreference":{"shape":"SnowballCapacity"},
  221. "ShippingOption":{"shape":"ShippingOption"},
  222. "Notification":{"shape":"Notification"}
  223. }
  224. },
  225. "CreateJobResult":{
  226. "type":"structure",
  227. "members":{
  228. "JobId":{"shape":"JobId"}
  229. }
  230. },
  231. "DataTransfer":{
  232. "type":"structure",
  233. "members":{
  234. "BytesTransferred":{"shape":"Long"},
  235. "ObjectsTransferred":{"shape":"Long"},
  236. "TotalBytes":{"shape":"Long"},
  237. "TotalObjects":{"shape":"Long"}
  238. }
  239. },
  240. "DescribeAddressRequest":{
  241. "type":"structure",
  242. "required":["AddressId"],
  243. "members":{
  244. "AddressId":{"shape":"AddressId"}
  245. }
  246. },
  247. "DescribeAddressResult":{
  248. "type":"structure",
  249. "members":{
  250. "Address":{"shape":"Address"}
  251. }
  252. },
  253. "DescribeAddressesRequest":{
  254. "type":"structure",
  255. "members":{
  256. "MaxResults":{"shape":"ListLimit"},
  257. "NextToken":{"shape":"String"}
  258. }
  259. },
  260. "DescribeAddressesResult":{
  261. "type":"structure",
  262. "members":{
  263. "Addresses":{"shape":"AddressList"},
  264. "NextToken":{"shape":"String"}
  265. }
  266. },
  267. "DescribeJobRequest":{
  268. "type":"structure",
  269. "required":["JobId"],
  270. "members":{
  271. "JobId":{"shape":"JobId"}
  272. }
  273. },
  274. "DescribeJobResult":{
  275. "type":"structure",
  276. "members":{
  277. "JobMetadata":{"shape":"JobMetadata"},
  278. "SubJobMetadata":{"shape":"JobMetadataList"}
  279. }
  280. },
  281. "GetJobManifestRequest":{
  282. "type":"structure",
  283. "required":["JobId"],
  284. "members":{
  285. "JobId":{"shape":"JobId"}
  286. }
  287. },
  288. "GetJobManifestResult":{
  289. "type":"structure",
  290. "members":{
  291. "ManifestURI":{"shape":"String"}
  292. }
  293. },
  294. "GetJobUnlockCodeRequest":{
  295. "type":"structure",
  296. "required":["JobId"],
  297. "members":{
  298. "JobId":{"shape":"JobId"}
  299. }
  300. },
  301. "GetJobUnlockCodeResult":{
  302. "type":"structure",
  303. "members":{
  304. "UnlockCode":{"shape":"String"}
  305. }
  306. },
  307. "GetSnowballUsageRequest":{
  308. "type":"structure",
  309. "members":{
  310. }
  311. },
  312. "GetSnowballUsageResult":{
  313. "type":"structure",
  314. "members":{
  315. "SnowballLimit":{"shape":"Integer"},
  316. "SnowballsInUse":{"shape":"Integer"}
  317. }
  318. },
  319. "Integer":{"type":"integer"},
  320. "InvalidAddressException":{
  321. "type":"structure",
  322. "members":{
  323. "Message":{"shape":"String"}
  324. },
  325. "exception":true
  326. },
  327. "InvalidJobStateException":{
  328. "type":"structure",
  329. "members":{
  330. "Message":{"shape":"String"}
  331. },
  332. "exception":true
  333. },
  334. "InvalidResourceException":{
  335. "type":"structure",
  336. "members":{
  337. "Message":{"shape":"String"}
  338. },
  339. "exception":true
  340. },
  341. "JobId":{
  342. "type":"string",
  343. "max":39,
  344. "min":39,
  345. "pattern":"(M|J)ID[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
  346. },
  347. "JobListEntry":{
  348. "type":"structure",
  349. "members":{
  350. "JobId":{"shape":"String"},
  351. "JobState":{"shape":"JobState"},
  352. "IsMaster":{"shape":"Boolean"}
  353. }
  354. },
  355. "JobListEntryList":{
  356. "type":"list",
  357. "member":{"shape":"JobListEntry"}
  358. },
  359. "JobLogs":{
  360. "type":"structure",
  361. "members":{
  362. "JobCompletionReportURI":{"shape":"String"},
  363. "JobSuccessLogURI":{"shape":"String"},
  364. "JobFailureLogURI":{"shape":"String"}
  365. }
  366. },
  367. "JobMetadata":{
  368. "type":"structure",
  369. "members":{
  370. "JobId":{"shape":"String"},
  371. "JobState":{"shape":"JobState"},
  372. "JobType":{"shape":"JobType"},
  373. "CreationDate":{"shape":"Timestamp"},
  374. "Resources":{"shape":"JobResource"},
  375. "Description":{"shape":"String"},
  376. "KmsKeyARN":{"shape":"KmsKeyARN"},
  377. "RoleARN":{"shape":"RoleARN"},
  378. "AddressId":{"shape":"AddressId"},
  379. "ShippingDetails":{"shape":"ShippingDetails"},
  380. "SnowballCapacityPreference":{"shape":"SnowballCapacity"},
  381. "Notification":{"shape":"Notification"},
  382. "DataTransferProgress":{"shape":"DataTransfer"},
  383. "JobLogInfo":{"shape":"JobLogs"}
  384. }
  385. },
  386. "JobMetadataList":{
  387. "type":"list",
  388. "member":{"shape":"JobMetadata"}
  389. },
  390. "JobResource":{
  391. "type":"structure",
  392. "members":{
  393. "S3Resources":{"shape":"S3ResourceList"}
  394. }
  395. },
  396. "JobState":{
  397. "type":"string",
  398. "enum":[
  399. "New",
  400. "PreparingAppliance",
  401. "PreparingShipment",
  402. "InTransitToCustomer",
  403. "WithCustomer",
  404. "InTransitToAWS",
  405. "WithAWS",
  406. "InProgress",
  407. "Complete",
  408. "Cancelled",
  409. "Listing",
  410. "Pending"
  411. ]
  412. },
  413. "JobStateList":{
  414. "type":"list",
  415. "member":{"shape":"JobState"}
  416. },
  417. "JobType":{
  418. "type":"string",
  419. "enum":[
  420. "IMPORT",
  421. "EXPORT"
  422. ]
  423. },
  424. "KMSRequestFailedException":{
  425. "type":"structure",
  426. "members":{
  427. "Message":{"shape":"String"}
  428. },
  429. "exception":true
  430. },
  431. "KeyRange":{
  432. "type":"structure",
  433. "members":{
  434. "BeginMarker":{"shape":"String"},
  435. "EndMarker":{"shape":"String"}
  436. }
  437. },
  438. "KmsKeyARN":{
  439. "type":"string",
  440. "max":255,
  441. "pattern":"arn:(aws|aws-us-gov):kms:.*:[0-9]{12}:key/.*"
  442. },
  443. "ListJobsRequest":{
  444. "type":"structure",
  445. "members":{
  446. "MaxResults":{"shape":"ListLimit"},
  447. "NextToken":{"shape":"String"}
  448. }
  449. },
  450. "ListJobsResult":{
  451. "type":"structure",
  452. "members":{
  453. "JobListEntries":{"shape":"JobListEntryList"},
  454. "NextToken":{"shape":"String"}
  455. }
  456. },
  457. "ListLimit":{
  458. "type":"integer",
  459. "max":100,
  460. "min":0
  461. },
  462. "Long":{"type":"long"},
  463. "Notification":{
  464. "type":"structure",
  465. "members":{
  466. "SnsTopicARN":{"shape":"SnsTopicARN"},
  467. "JobStatesToNotify":{"shape":"JobStateList"},
  468. "NotifyAll":{"shape":"Boolean"}
  469. }
  470. },
  471. "ResourceARN":{
  472. "type":"string",
  473. "max":255,
  474. "pattern":"arn:(aws|aws-us-gov):s3:::.*"
  475. },
  476. "RoleARN":{
  477. "type":"string",
  478. "max":255,
  479. "pattern":"arn:(aws|aws-us-gov):iam::[0-9]{12}:role/.*"
  480. },
  481. "S3Resource":{
  482. "type":"structure",
  483. "members":{
  484. "BucketArn":{"shape":"ResourceARN"},
  485. "KeyRange":{"shape":"KeyRange"}
  486. }
  487. },
  488. "S3ResourceList":{
  489. "type":"list",
  490. "member":{"shape":"S3Resource"}
  491. },
  492. "Shipment":{
  493. "type":"structure",
  494. "members":{
  495. "Status":{"shape":"String"},
  496. "TrackingNumber":{"shape":"String"}
  497. }
  498. },
  499. "ShippingDetails":{
  500. "type":"structure",
  501. "members":{
  502. "ShippingOption":{"shape":"ShippingOption"},
  503. "InboundShipment":{"shape":"Shipment"},
  504. "OutboundShipment":{"shape":"Shipment"}
  505. }
  506. },
  507. "ShippingOption":{
  508. "type":"string",
  509. "enum":[
  510. "SECOND_DAY",
  511. "NEXT_DAY",
  512. "EXPRESS",
  513. "STANDARD"
  514. ]
  515. },
  516. "SnowballCapacity":{
  517. "type":"string",
  518. "enum":[
  519. "T50",
  520. "T80",
  521. "NoPreference"
  522. ]
  523. },
  524. "SnsTopicARN":{
  525. "type":"string",
  526. "max":255,
  527. "pattern":"arn:(aws|aws-us-gov):sns:.*:[0-9]{12}:.*"
  528. },
  529. "String":{
  530. "type":"string",
  531. "max":255,
  532. "min":1
  533. },
  534. "Timestamp":{"type":"timestamp"},
  535. "UnsupportedAddressException":{
  536. "type":"structure",
  537. "members":{
  538. "Message":{"shape":"String"}
  539. },
  540. "exception":true
  541. },
  542. "UpdateJobRequest":{
  543. "type":"structure",
  544. "required":["JobId"],
  545. "members":{
  546. "JobId":{"shape":"JobId"},
  547. "RoleARN":{"shape":"RoleARN"},
  548. "Notification":{"shape":"Notification"},
  549. "Resources":{"shape":"JobResource"},
  550. "AddressId":{"shape":"AddressId"},
  551. "ShippingOption":{"shape":"ShippingOption"},
  552. "Description":{"shape":"String"},
  553. "SnowballCapacityPreference":{"shape":"SnowballCapacity"}
  554. }
  555. },
  556. "UpdateJobResult":{
  557. "type":"structure",
  558. "members":{
  559. }
  560. }
  561. }
  562. }