api.go 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package snowball provides a client for Amazon Import/Export Snowball.
  3. package snowball
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. )
  10. const opCancelJob = "CancelJob"
  11. // CancelJobRequest generates a "aws/request.Request" representing the
  12. // client's request for the CancelJob operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the CancelJob method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the CancelJobRequest method.
  26. // req, resp := client.CancelJobRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *Snowball) CancelJobRequest(input *CancelJobInput) (req *request.Request, output *CancelJobOutput) {
  34. op := &request.Operation{
  35. Name: opCancelJob,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &CancelJobInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &CancelJobOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Cancels the specified job. Note that you can only cancel a job before its
  48. // JobState value changes to PreparingAppliance. Requesting the ListJobs or
  49. // DescribeJob action will return a job's JobState as part of the response element
  50. // data returned.
  51. func (c *Snowball) CancelJob(input *CancelJobInput) (*CancelJobOutput, error) {
  52. req, out := c.CancelJobRequest(input)
  53. err := req.Send()
  54. return out, err
  55. }
  56. const opCreateAddress = "CreateAddress"
  57. // CreateAddressRequest generates a "aws/request.Request" representing the
  58. // client's request for the CreateAddress operation. The "output" return
  59. // value can be used to capture response data after the request's "Send" method
  60. // is called.
  61. //
  62. // Creating a request object using this method should be used when you want to inject
  63. // custom logic into the request's lifecycle using a custom handler, or if you want to
  64. // access properties on the request object before or after sending the request. If
  65. // you just want the service response, call the CreateAddress method directly
  66. // instead.
  67. //
  68. // Note: You must call the "Send" method on the returned request object in order
  69. // to execute the request.
  70. //
  71. // // Example sending a request using the CreateAddressRequest method.
  72. // req, resp := client.CreateAddressRequest(params)
  73. //
  74. // err := req.Send()
  75. // if err == nil { // resp is now filled
  76. // fmt.Println(resp)
  77. // }
  78. //
  79. func (c *Snowball) CreateAddressRequest(input *CreateAddressInput) (req *request.Request, output *CreateAddressOutput) {
  80. op := &request.Operation{
  81. Name: opCreateAddress,
  82. HTTPMethod: "POST",
  83. HTTPPath: "/",
  84. }
  85. if input == nil {
  86. input = &CreateAddressInput{}
  87. }
  88. req = c.newRequest(op, input, output)
  89. output = &CreateAddressOutput{}
  90. req.Data = output
  91. return
  92. }
  93. // Creates an address for a Snowball to be shipped to.
  94. //
  95. // Addresses are validated at the time of creation. The address you provide
  96. // must be located within the serviceable area of your region. If the address
  97. // is invalid or unsupported, then an exception is thrown.
  98. func (c *Snowball) CreateAddress(input *CreateAddressInput) (*CreateAddressOutput, error) {
  99. req, out := c.CreateAddressRequest(input)
  100. err := req.Send()
  101. return out, err
  102. }
  103. const opCreateJob = "CreateJob"
  104. // CreateJobRequest generates a "aws/request.Request" representing the
  105. // client's request for the CreateJob operation. The "output" return
  106. // value can be used to capture response data after the request's "Send" method
  107. // is called.
  108. //
  109. // Creating a request object using this method should be used when you want to inject
  110. // custom logic into the request's lifecycle using a custom handler, or if you want to
  111. // access properties on the request object before or after sending the request. If
  112. // you just want the service response, call the CreateJob method directly
  113. // instead.
  114. //
  115. // Note: You must call the "Send" method on the returned request object in order
  116. // to execute the request.
  117. //
  118. // // Example sending a request using the CreateJobRequest method.
  119. // req, resp := client.CreateJobRequest(params)
  120. //
  121. // err := req.Send()
  122. // if err == nil { // resp is now filled
  123. // fmt.Println(resp)
  124. // }
  125. //
  126. func (c *Snowball) CreateJobRequest(input *CreateJobInput) (req *request.Request, output *CreateJobOutput) {
  127. op := &request.Operation{
  128. Name: opCreateJob,
  129. HTTPMethod: "POST",
  130. HTTPPath: "/",
  131. }
  132. if input == nil {
  133. input = &CreateJobInput{}
  134. }
  135. req = c.newRequest(op, input, output)
  136. output = &CreateJobOutput{}
  137. req.Data = output
  138. return
  139. }
  140. // Creates a job to import or export data between Amazon S3 and your on-premises
  141. // data center. Note that your AWS account must have the right trust policies
  142. // and permissions in place to create a job for Snowball. For more information,
  143. // see api-reference-policies.
  144. func (c *Snowball) CreateJob(input *CreateJobInput) (*CreateJobOutput, error) {
  145. req, out := c.CreateJobRequest(input)
  146. err := req.Send()
  147. return out, err
  148. }
  149. const opDescribeAddress = "DescribeAddress"
  150. // DescribeAddressRequest generates a "aws/request.Request" representing the
  151. // client's request for the DescribeAddress operation. The "output" return
  152. // value can be used to capture response data after the request's "Send" method
  153. // is called.
  154. //
  155. // Creating a request object using this method should be used when you want to inject
  156. // custom logic into the request's lifecycle using a custom handler, or if you want to
  157. // access properties on the request object before or after sending the request. If
  158. // you just want the service response, call the DescribeAddress method directly
  159. // instead.
  160. //
  161. // Note: You must call the "Send" method on the returned request object in order
  162. // to execute the request.
  163. //
  164. // // Example sending a request using the DescribeAddressRequest method.
  165. // req, resp := client.DescribeAddressRequest(params)
  166. //
  167. // err := req.Send()
  168. // if err == nil { // resp is now filled
  169. // fmt.Println(resp)
  170. // }
  171. //
  172. func (c *Snowball) DescribeAddressRequest(input *DescribeAddressInput) (req *request.Request, output *DescribeAddressOutput) {
  173. op := &request.Operation{
  174. Name: opDescribeAddress,
  175. HTTPMethod: "POST",
  176. HTTPPath: "/",
  177. }
  178. if input == nil {
  179. input = &DescribeAddressInput{}
  180. }
  181. req = c.newRequest(op, input, output)
  182. output = &DescribeAddressOutput{}
  183. req.Data = output
  184. return
  185. }
  186. // Takes an AddressId and returns specific details about that address in the
  187. // form of an Address object.
  188. func (c *Snowball) DescribeAddress(input *DescribeAddressInput) (*DescribeAddressOutput, error) {
  189. req, out := c.DescribeAddressRequest(input)
  190. err := req.Send()
  191. return out, err
  192. }
  193. const opDescribeAddresses = "DescribeAddresses"
  194. // DescribeAddressesRequest generates a "aws/request.Request" representing the
  195. // client's request for the DescribeAddresses operation. The "output" return
  196. // value can be used to capture response data after the request's "Send" method
  197. // is called.
  198. //
  199. // Creating a request object using this method should be used when you want to inject
  200. // custom logic into the request's lifecycle using a custom handler, or if you want to
  201. // access properties on the request object before or after sending the request. If
  202. // you just want the service response, call the DescribeAddresses method directly
  203. // instead.
  204. //
  205. // Note: You must call the "Send" method on the returned request object in order
  206. // to execute the request.
  207. //
  208. // // Example sending a request using the DescribeAddressesRequest method.
  209. // req, resp := client.DescribeAddressesRequest(params)
  210. //
  211. // err := req.Send()
  212. // if err == nil { // resp is now filled
  213. // fmt.Println(resp)
  214. // }
  215. //
  216. func (c *Snowball) DescribeAddressesRequest(input *DescribeAddressesInput) (req *request.Request, output *DescribeAddressesOutput) {
  217. op := &request.Operation{
  218. Name: opDescribeAddresses,
  219. HTTPMethod: "POST",
  220. HTTPPath: "/",
  221. Paginator: &request.Paginator{
  222. InputTokens: []string{"NextToken"},
  223. OutputTokens: []string{"NextToken"},
  224. LimitToken: "MaxResults",
  225. TruncationToken: "",
  226. },
  227. }
  228. if input == nil {
  229. input = &DescribeAddressesInput{}
  230. }
  231. req = c.newRequest(op, input, output)
  232. output = &DescribeAddressesOutput{}
  233. req.Data = output
  234. return
  235. }
  236. // Returns a specified number of ADDRESS objects. Calling this API in one of
  237. // the US regions will return addresses from the list of all addresses associated
  238. // with this account in all US regions.
  239. func (c *Snowball) DescribeAddresses(input *DescribeAddressesInput) (*DescribeAddressesOutput, error) {
  240. req, out := c.DescribeAddressesRequest(input)
  241. err := req.Send()
  242. return out, err
  243. }
  244. // DescribeAddressesPages iterates over the pages of a DescribeAddresses operation,
  245. // calling the "fn" function with the response data for each page. To stop
  246. // iterating, return false from the fn function.
  247. //
  248. // See DescribeAddresses method for more information on how to use this operation.
  249. //
  250. // Note: This operation can generate multiple requests to a service.
  251. //
  252. // // Example iterating over at most 3 pages of a DescribeAddresses operation.
  253. // pageNum := 0
  254. // err := client.DescribeAddressesPages(params,
  255. // func(page *DescribeAddressesOutput, lastPage bool) bool {
  256. // pageNum++
  257. // fmt.Println(page)
  258. // return pageNum <= 3
  259. // })
  260. //
  261. func (c *Snowball) DescribeAddressesPages(input *DescribeAddressesInput, fn func(p *DescribeAddressesOutput, lastPage bool) (shouldContinue bool)) error {
  262. page, _ := c.DescribeAddressesRequest(input)
  263. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  264. return page.EachPage(func(p interface{}, lastPage bool) bool {
  265. return fn(p.(*DescribeAddressesOutput), lastPage)
  266. })
  267. }
  268. const opDescribeJob = "DescribeJob"
  269. // DescribeJobRequest generates a "aws/request.Request" representing the
  270. // client's request for the DescribeJob operation. The "output" return
  271. // value can be used to capture response data after the request's "Send" method
  272. // is called.
  273. //
  274. // Creating a request object using this method should be used when you want to inject
  275. // custom logic into the request's lifecycle using a custom handler, or if you want to
  276. // access properties on the request object before or after sending the request. If
  277. // you just want the service response, call the DescribeJob method directly
  278. // instead.
  279. //
  280. // Note: You must call the "Send" method on the returned request object in order
  281. // to execute the request.
  282. //
  283. // // Example sending a request using the DescribeJobRequest method.
  284. // req, resp := client.DescribeJobRequest(params)
  285. //
  286. // err := req.Send()
  287. // if err == nil { // resp is now filled
  288. // fmt.Println(resp)
  289. // }
  290. //
  291. func (c *Snowball) DescribeJobRequest(input *DescribeJobInput) (req *request.Request, output *DescribeJobOutput) {
  292. op := &request.Operation{
  293. Name: opDescribeJob,
  294. HTTPMethod: "POST",
  295. HTTPPath: "/",
  296. }
  297. if input == nil {
  298. input = &DescribeJobInput{}
  299. }
  300. req = c.newRequest(op, input, output)
  301. output = &DescribeJobOutput{}
  302. req.Data = output
  303. return
  304. }
  305. // Returns information about a specific job including shipping information,
  306. // job status, and other important metadata.
  307. func (c *Snowball) DescribeJob(input *DescribeJobInput) (*DescribeJobOutput, error) {
  308. req, out := c.DescribeJobRequest(input)
  309. err := req.Send()
  310. return out, err
  311. }
  312. const opGetJobManifest = "GetJobManifest"
  313. // GetJobManifestRequest generates a "aws/request.Request" representing the
  314. // client's request for the GetJobManifest operation. The "output" return
  315. // value can be used to capture response data after the request's "Send" method
  316. // is called.
  317. //
  318. // Creating a request object using this method should be used when you want to inject
  319. // custom logic into the request's lifecycle using a custom handler, or if you want to
  320. // access properties on the request object before or after sending the request. If
  321. // you just want the service response, call the GetJobManifest method directly
  322. // instead.
  323. //
  324. // Note: You must call the "Send" method on the returned request object in order
  325. // to execute the request.
  326. //
  327. // // Example sending a request using the GetJobManifestRequest method.
  328. // req, resp := client.GetJobManifestRequest(params)
  329. //
  330. // err := req.Send()
  331. // if err == nil { // resp is now filled
  332. // fmt.Println(resp)
  333. // }
  334. //
  335. func (c *Snowball) GetJobManifestRequest(input *GetJobManifestInput) (req *request.Request, output *GetJobManifestOutput) {
  336. op := &request.Operation{
  337. Name: opGetJobManifest,
  338. HTTPMethod: "POST",
  339. HTTPPath: "/",
  340. }
  341. if input == nil {
  342. input = &GetJobManifestInput{}
  343. }
  344. req = c.newRequest(op, input, output)
  345. output = &GetJobManifestOutput{}
  346. req.Data = output
  347. return
  348. }
  349. // Returns a link to an Amazon S3 presigned URL for the manifest file associated
  350. // with the specified JobId value. You can access the manifest file for up to
  351. // 60 minutes after this request has been made. To access the manifest file
  352. // after 60 minutes have passed, you'll have to make another call to the GetJobManifest
  353. // action.
  354. //
  355. // The manifest is an encrypted file that you can download after your job enters
  356. // the WithCustomer status. The manifest is decrypted by using the UnlockCode
  357. // code value, when you pass both values to the Snowball through the Snowball
  358. // client when the client is started for the first time.
  359. //
  360. // As a best practice, we recommend that you don't save a copy of an UnlockCode
  361. // value in the same location as the manifest file for that job. Saving these
  362. // separately helps prevent unauthorized parties from gaining access to the
  363. // Snowball associated with that job.
  364. //
  365. // Note that the credentials of a given job, including its manifest file and
  366. // unlock code, expire 90 days after the job is created.
  367. func (c *Snowball) GetJobManifest(input *GetJobManifestInput) (*GetJobManifestOutput, error) {
  368. req, out := c.GetJobManifestRequest(input)
  369. err := req.Send()
  370. return out, err
  371. }
  372. const opGetJobUnlockCode = "GetJobUnlockCode"
  373. // GetJobUnlockCodeRequest generates a "aws/request.Request" representing the
  374. // client's request for the GetJobUnlockCode operation. The "output" return
  375. // value can be used to capture response data after the request's "Send" method
  376. // is called.
  377. //
  378. // Creating a request object using this method should be used when you want to inject
  379. // custom logic into the request's lifecycle using a custom handler, or if you want to
  380. // access properties on the request object before or after sending the request. If
  381. // you just want the service response, call the GetJobUnlockCode method directly
  382. // instead.
  383. //
  384. // Note: You must call the "Send" method on the returned request object in order
  385. // to execute the request.
  386. //
  387. // // Example sending a request using the GetJobUnlockCodeRequest method.
  388. // req, resp := client.GetJobUnlockCodeRequest(params)
  389. //
  390. // err := req.Send()
  391. // if err == nil { // resp is now filled
  392. // fmt.Println(resp)
  393. // }
  394. //
  395. func (c *Snowball) GetJobUnlockCodeRequest(input *GetJobUnlockCodeInput) (req *request.Request, output *GetJobUnlockCodeOutput) {
  396. op := &request.Operation{
  397. Name: opGetJobUnlockCode,
  398. HTTPMethod: "POST",
  399. HTTPPath: "/",
  400. }
  401. if input == nil {
  402. input = &GetJobUnlockCodeInput{}
  403. }
  404. req = c.newRequest(op, input, output)
  405. output = &GetJobUnlockCodeOutput{}
  406. req.Data = output
  407. return
  408. }
  409. // Returns the UnlockCode code value for the specified job. A particular UnlockCode
  410. // value can be accessed for up to 90 days after the associated job has been
  411. // created.
  412. //
  413. // The UnlockCode value is a 29-character code with 25 alphanumeric characters
  414. // and 4 hyphens. This code is used to decrypt the manifest file when it is
  415. // passed along with the manifest to the Snowball through the Snowball client
  416. // when the client is started for the first time.
  417. //
  418. // As a best practice, we recommend that you don't save a copy of the UnlockCode
  419. // in the same location as the manifest file for that job. Saving these separately
  420. // helps prevent unauthorized parties from gaining access to the Snowball associated
  421. // with that job.
  422. func (c *Snowball) GetJobUnlockCode(input *GetJobUnlockCodeInput) (*GetJobUnlockCodeOutput, error) {
  423. req, out := c.GetJobUnlockCodeRequest(input)
  424. err := req.Send()
  425. return out, err
  426. }
  427. const opGetSnowballUsage = "GetSnowballUsage"
  428. // GetSnowballUsageRequest generates a "aws/request.Request" representing the
  429. // client's request for the GetSnowballUsage operation. The "output" return
  430. // value can be used to capture response data after the request's "Send" method
  431. // is called.
  432. //
  433. // Creating a request object using this method should be used when you want to inject
  434. // custom logic into the request's lifecycle using a custom handler, or if you want to
  435. // access properties on the request object before or after sending the request. If
  436. // you just want the service response, call the GetSnowballUsage method directly
  437. // instead.
  438. //
  439. // Note: You must call the "Send" method on the returned request object in order
  440. // to execute the request.
  441. //
  442. // // Example sending a request using the GetSnowballUsageRequest method.
  443. // req, resp := client.GetSnowballUsageRequest(params)
  444. //
  445. // err := req.Send()
  446. // if err == nil { // resp is now filled
  447. // fmt.Println(resp)
  448. // }
  449. //
  450. func (c *Snowball) GetSnowballUsageRequest(input *GetSnowballUsageInput) (req *request.Request, output *GetSnowballUsageOutput) {
  451. op := &request.Operation{
  452. Name: opGetSnowballUsage,
  453. HTTPMethod: "POST",
  454. HTTPPath: "/",
  455. }
  456. if input == nil {
  457. input = &GetSnowballUsageInput{}
  458. }
  459. req = c.newRequest(op, input, output)
  460. output = &GetSnowballUsageOutput{}
  461. req.Data = output
  462. return
  463. }
  464. // Returns information about the Snowball service limit for your account, and
  465. // also the number of Snowballs your account has in use.
  466. //
  467. // Note that the default service limit for the number of Snowballs that you
  468. // can have at one time is 1. If you want to increase your service limit, contact
  469. // AWS Support.
  470. func (c *Snowball) GetSnowballUsage(input *GetSnowballUsageInput) (*GetSnowballUsageOutput, error) {
  471. req, out := c.GetSnowballUsageRequest(input)
  472. err := req.Send()
  473. return out, err
  474. }
  475. const opListJobs = "ListJobs"
  476. // ListJobsRequest generates a "aws/request.Request" representing the
  477. // client's request for the ListJobs operation. The "output" return
  478. // value can be used to capture response data after the request's "Send" method
  479. // is called.
  480. //
  481. // Creating a request object using this method should be used when you want to inject
  482. // custom logic into the request's lifecycle using a custom handler, or if you want to
  483. // access properties on the request object before or after sending the request. If
  484. // you just want the service response, call the ListJobs method directly
  485. // instead.
  486. //
  487. // Note: You must call the "Send" method on the returned request object in order
  488. // to execute the request.
  489. //
  490. // // Example sending a request using the ListJobsRequest method.
  491. // req, resp := client.ListJobsRequest(params)
  492. //
  493. // err := req.Send()
  494. // if err == nil { // resp is now filled
  495. // fmt.Println(resp)
  496. // }
  497. //
  498. func (c *Snowball) ListJobsRequest(input *ListJobsInput) (req *request.Request, output *ListJobsOutput) {
  499. op := &request.Operation{
  500. Name: opListJobs,
  501. HTTPMethod: "POST",
  502. HTTPPath: "/",
  503. Paginator: &request.Paginator{
  504. InputTokens: []string{"NextToken"},
  505. OutputTokens: []string{"NextToken"},
  506. LimitToken: "MaxResults",
  507. TruncationToken: "",
  508. },
  509. }
  510. if input == nil {
  511. input = &ListJobsInput{}
  512. }
  513. req = c.newRequest(op, input, output)
  514. output = &ListJobsOutput{}
  515. req.Data = output
  516. return
  517. }
  518. // Returns an array of JobListEntry objects of the specified length. Each JobListEntry
  519. // object contains a job's state, a job's ID, and a value that indicates whether
  520. // the job is a job part, in the case of export jobs. Calling this API action
  521. // in one of the US regions will return jobs from the list of all jobs associated
  522. // with this account in all US regions.
  523. func (c *Snowball) ListJobs(input *ListJobsInput) (*ListJobsOutput, error) {
  524. req, out := c.ListJobsRequest(input)
  525. err := req.Send()
  526. return out, err
  527. }
  528. // ListJobsPages iterates over the pages of a ListJobs operation,
  529. // calling the "fn" function with the response data for each page. To stop
  530. // iterating, return false from the fn function.
  531. //
  532. // See ListJobs method for more information on how to use this operation.
  533. //
  534. // Note: This operation can generate multiple requests to a service.
  535. //
  536. // // Example iterating over at most 3 pages of a ListJobs operation.
  537. // pageNum := 0
  538. // err := client.ListJobsPages(params,
  539. // func(page *ListJobsOutput, lastPage bool) bool {
  540. // pageNum++
  541. // fmt.Println(page)
  542. // return pageNum <= 3
  543. // })
  544. //
  545. func (c *Snowball) ListJobsPages(input *ListJobsInput, fn func(p *ListJobsOutput, lastPage bool) (shouldContinue bool)) error {
  546. page, _ := c.ListJobsRequest(input)
  547. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  548. return page.EachPage(func(p interface{}, lastPage bool) bool {
  549. return fn(p.(*ListJobsOutput), lastPage)
  550. })
  551. }
  552. const opUpdateJob = "UpdateJob"
  553. // UpdateJobRequest generates a "aws/request.Request" representing the
  554. // client's request for the UpdateJob operation. The "output" return
  555. // value can be used to capture response data after the request's "Send" method
  556. // is called.
  557. //
  558. // Creating a request object using this method should be used when you want to inject
  559. // custom logic into the request's lifecycle using a custom handler, or if you want to
  560. // access properties on the request object before or after sending the request. If
  561. // you just want the service response, call the UpdateJob method directly
  562. // instead.
  563. //
  564. // Note: You must call the "Send" method on the returned request object in order
  565. // to execute the request.
  566. //
  567. // // Example sending a request using the UpdateJobRequest method.
  568. // req, resp := client.UpdateJobRequest(params)
  569. //
  570. // err := req.Send()
  571. // if err == nil { // resp is now filled
  572. // fmt.Println(resp)
  573. // }
  574. //
  575. func (c *Snowball) UpdateJobRequest(input *UpdateJobInput) (req *request.Request, output *UpdateJobOutput) {
  576. op := &request.Operation{
  577. Name: opUpdateJob,
  578. HTTPMethod: "POST",
  579. HTTPPath: "/",
  580. }
  581. if input == nil {
  582. input = &UpdateJobInput{}
  583. }
  584. req = c.newRequest(op, input, output)
  585. output = &UpdateJobOutput{}
  586. req.Data = output
  587. return
  588. }
  589. // While a job's JobState value is New, you can update some of the information
  590. // associated with a job. Once the job changes to a different job state, usually
  591. // within 60 minutes of the job being created, this action is no longer available.
  592. func (c *Snowball) UpdateJob(input *UpdateJobInput) (*UpdateJobOutput, error) {
  593. req, out := c.UpdateJobRequest(input)
  594. err := req.Send()
  595. return out, err
  596. }
  597. // The address that you want the Snowball or Snowballs associated with a specific
  598. // job to be shipped to. Addresses are validated at the time of creation. The
  599. // address you provide must be located within the serviceable area of your region.
  600. // Although no individual elements of the Address are required, if the address
  601. // is invalid or unsupported, then an exception is thrown.
  602. type Address struct {
  603. _ struct{} `type:"structure"`
  604. // The unique ID for an address.
  605. AddressId *string `min:"40" type:"string"`
  606. // The city in an address that a Snowball is to be delivered to.
  607. City *string `min:"1" type:"string"`
  608. // The name of the company to receive a Snowball at an address.
  609. Company *string `min:"1" type:"string"`
  610. // The country in an address that a Snowball is to be delivered to.
  611. Country *string `min:"1" type:"string"`
  612. // A landmark listed in an address that a Snowball is to be delivered to.
  613. Landmark *string `min:"1" type:"string"`
  614. // The name of a person to receive a Snowball at an address.
  615. Name *string `min:"1" type:"string"`
  616. // The phone number associated with an address that a Snowball is to be delivered
  617. // to.
  618. PhoneNumber *string `min:"1" type:"string"`
  619. // The postal code in an address that a Snowball is to be delivered to.
  620. PostalCode *string `min:"1" type:"string"`
  621. // The prefecture or district in an address that a Snowball is to be delivered
  622. // to.
  623. PrefectureOrDistrict *string `min:"1" type:"string"`
  624. // The state or province in an address that a Snowball is to be delivered to.
  625. StateOrProvince *string `min:"1" type:"string"`
  626. // The first line in a street address that a Snowball is to be delivered to.
  627. Street1 *string `min:"1" type:"string"`
  628. // The second line in a street address that a Snowball is to be delivered to.
  629. Street2 *string `min:"1" type:"string"`
  630. // The third line in a street address that a Snowball is to be delivered to.
  631. Street3 *string `min:"1" type:"string"`
  632. }
  633. // String returns the string representation
  634. func (s Address) String() string {
  635. return awsutil.Prettify(s)
  636. }
  637. // GoString returns the string representation
  638. func (s Address) GoString() string {
  639. return s.String()
  640. }
  641. // Validate inspects the fields of the type to determine if they are valid.
  642. func (s *Address) Validate() error {
  643. invalidParams := request.ErrInvalidParams{Context: "Address"}
  644. if s.AddressId != nil && len(*s.AddressId) < 40 {
  645. invalidParams.Add(request.NewErrParamMinLen("AddressId", 40))
  646. }
  647. if s.City != nil && len(*s.City) < 1 {
  648. invalidParams.Add(request.NewErrParamMinLen("City", 1))
  649. }
  650. if s.Company != nil && len(*s.Company) < 1 {
  651. invalidParams.Add(request.NewErrParamMinLen("Company", 1))
  652. }
  653. if s.Country != nil && len(*s.Country) < 1 {
  654. invalidParams.Add(request.NewErrParamMinLen("Country", 1))
  655. }
  656. if s.Landmark != nil && len(*s.Landmark) < 1 {
  657. invalidParams.Add(request.NewErrParamMinLen("Landmark", 1))
  658. }
  659. if s.Name != nil && len(*s.Name) < 1 {
  660. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  661. }
  662. if s.PhoneNumber != nil && len(*s.PhoneNumber) < 1 {
  663. invalidParams.Add(request.NewErrParamMinLen("PhoneNumber", 1))
  664. }
  665. if s.PostalCode != nil && len(*s.PostalCode) < 1 {
  666. invalidParams.Add(request.NewErrParamMinLen("PostalCode", 1))
  667. }
  668. if s.PrefectureOrDistrict != nil && len(*s.PrefectureOrDistrict) < 1 {
  669. invalidParams.Add(request.NewErrParamMinLen("PrefectureOrDistrict", 1))
  670. }
  671. if s.StateOrProvince != nil && len(*s.StateOrProvince) < 1 {
  672. invalidParams.Add(request.NewErrParamMinLen("StateOrProvince", 1))
  673. }
  674. if s.Street1 != nil && len(*s.Street1) < 1 {
  675. invalidParams.Add(request.NewErrParamMinLen("Street1", 1))
  676. }
  677. if s.Street2 != nil && len(*s.Street2) < 1 {
  678. invalidParams.Add(request.NewErrParamMinLen("Street2", 1))
  679. }
  680. if s.Street3 != nil && len(*s.Street3) < 1 {
  681. invalidParams.Add(request.NewErrParamMinLen("Street3", 1))
  682. }
  683. if invalidParams.Len() > 0 {
  684. return invalidParams
  685. }
  686. return nil
  687. }
  688. type CancelJobInput struct {
  689. _ struct{} `type:"structure"`
  690. // The 39 character job ID for the job that you want to cancel, for example
  691. // JID123e4567-e89b-12d3-a456-426655440000.
  692. JobId *string `min:"39" type:"string" required:"true"`
  693. }
  694. // String returns the string representation
  695. func (s CancelJobInput) String() string {
  696. return awsutil.Prettify(s)
  697. }
  698. // GoString returns the string representation
  699. func (s CancelJobInput) GoString() string {
  700. return s.String()
  701. }
  702. // Validate inspects the fields of the type to determine if they are valid.
  703. func (s *CancelJobInput) Validate() error {
  704. invalidParams := request.ErrInvalidParams{Context: "CancelJobInput"}
  705. if s.JobId == nil {
  706. invalidParams.Add(request.NewErrParamRequired("JobId"))
  707. }
  708. if s.JobId != nil && len(*s.JobId) < 39 {
  709. invalidParams.Add(request.NewErrParamMinLen("JobId", 39))
  710. }
  711. if invalidParams.Len() > 0 {
  712. return invalidParams
  713. }
  714. return nil
  715. }
  716. type CancelJobOutput struct {
  717. _ struct{} `type:"structure"`
  718. }
  719. // String returns the string representation
  720. func (s CancelJobOutput) String() string {
  721. return awsutil.Prettify(s)
  722. }
  723. // GoString returns the string representation
  724. func (s CancelJobOutput) GoString() string {
  725. return s.String()
  726. }
  727. type CreateAddressInput struct {
  728. _ struct{} `type:"structure"`
  729. // The address that you want the Snowball shipped to.
  730. Address *Address `type:"structure" required:"true"`
  731. }
  732. // String returns the string representation
  733. func (s CreateAddressInput) String() string {
  734. return awsutil.Prettify(s)
  735. }
  736. // GoString returns the string representation
  737. func (s CreateAddressInput) GoString() string {
  738. return s.String()
  739. }
  740. // Validate inspects the fields of the type to determine if they are valid.
  741. func (s *CreateAddressInput) Validate() error {
  742. invalidParams := request.ErrInvalidParams{Context: "CreateAddressInput"}
  743. if s.Address == nil {
  744. invalidParams.Add(request.NewErrParamRequired("Address"))
  745. }
  746. if s.Address != nil {
  747. if err := s.Address.Validate(); err != nil {
  748. invalidParams.AddNested("Address", err.(request.ErrInvalidParams))
  749. }
  750. }
  751. if invalidParams.Len() > 0 {
  752. return invalidParams
  753. }
  754. return nil
  755. }
  756. type CreateAddressOutput struct {
  757. _ struct{} `type:"structure"`
  758. // The automatically generated ID for a specific address. You'll use this ID
  759. // when you create a job to specify which address you want the Snowball for
  760. // that job shipped to.
  761. AddressId *string `min:"1" type:"string"`
  762. }
  763. // String returns the string representation
  764. func (s CreateAddressOutput) String() string {
  765. return awsutil.Prettify(s)
  766. }
  767. // GoString returns the string representation
  768. func (s CreateAddressOutput) GoString() string {
  769. return s.String()
  770. }
  771. type CreateJobInput struct {
  772. _ struct{} `type:"structure"`
  773. // The ID for the address that you want the Snowball shipped to.
  774. AddressId *string `min:"40" type:"string" required:"true"`
  775. // Defines an optional description of this specific job, for example Important
  776. // Photos 2016-08-11.
  777. Description *string `min:"1" type:"string"`
  778. // Defines the type of job that you're creating.
  779. JobType *string `type:"string" required:"true" enum:"JobType"`
  780. // The KmsKeyARN that you want to associate with this job. KmsKeyARNs are created
  781. // using the CreateKey (http://docs.aws.amazon.com/kms/latest/APIReference/API_CreateKey.html)
  782. // AWS Key Management Service (KMS) API action.
  783. KmsKeyARN *string `type:"string"`
  784. // Defines the Amazon Simple Notification Service (Amazon SNS) notification
  785. // settings for this job.
  786. Notification *Notification `type:"structure"`
  787. // Defines the Amazon S3 buckets associated with this job.
  788. //
  789. // With IMPORT jobs, you specify the bucket or buckets that your transferred
  790. // data will be imported into.
  791. //
  792. // With EXPORT jobs, you specify the bucket or buckets that your transferred
  793. // data will be exported from. Optionally, you can also specify a KeyRange value.
  794. // If you choose to export a range, you define the length of the range by providing
  795. // either an inclusive BeginMarker value, an inclusive EndMarker value, or both.
  796. // Ranges are UTF-8 binary sorted.
  797. Resources *JobResource `type:"structure" required:"true"`
  798. // The RoleARN that you want to associate with this job. RoleArns are created
  799. // using the CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html)
  800. // AWS Identity and Access Management (IAM) API action.
  801. RoleARN *string `type:"string" required:"true"`
  802. // The shipping speed for this job. Note that this speed does not dictate how
  803. // soon you'll get the Snowball, rather it represents how quickly the Snowball
  804. // moves to its destination while in transit. Regional shipping speeds are as
  805. // follows:
  806. //
  807. // In Australia, you have access to express shipping. Typically, Snowballs
  808. // shipped express are delivered in about a day.
  809. //
  810. // In the European Union (EU), you have access to express shipping. Typically,
  811. // Snowballs shipped express are delivered in about a day. In addition, most
  812. // countries in the EU have access to standard shipping, which typically takes
  813. // less than a week, one way.
  814. //
  815. // In India, Snowballs are delivered in one to seven days.
  816. //
  817. // In the US, you have access to one-day shipping and two-day shipping.
  818. ShippingOption *string `type:"string" required:"true" enum:"ShippingOption"`
  819. // If your job is being created in one of the US regions, you have the option
  820. // of specifying what size Snowball you'd like for this job. In all other regions,
  821. // Snowballs come with 80 TB in storage capacity.
  822. SnowballCapacityPreference *string `type:"string" enum:"Capacity"`
  823. }
  824. // String returns the string representation
  825. func (s CreateJobInput) String() string {
  826. return awsutil.Prettify(s)
  827. }
  828. // GoString returns the string representation
  829. func (s CreateJobInput) GoString() string {
  830. return s.String()
  831. }
  832. // Validate inspects the fields of the type to determine if they are valid.
  833. func (s *CreateJobInput) Validate() error {
  834. invalidParams := request.ErrInvalidParams{Context: "CreateJobInput"}
  835. if s.AddressId == nil {
  836. invalidParams.Add(request.NewErrParamRequired("AddressId"))
  837. }
  838. if s.AddressId != nil && len(*s.AddressId) < 40 {
  839. invalidParams.Add(request.NewErrParamMinLen("AddressId", 40))
  840. }
  841. if s.Description != nil && len(*s.Description) < 1 {
  842. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  843. }
  844. if s.JobType == nil {
  845. invalidParams.Add(request.NewErrParamRequired("JobType"))
  846. }
  847. if s.Resources == nil {
  848. invalidParams.Add(request.NewErrParamRequired("Resources"))
  849. }
  850. if s.RoleARN == nil {
  851. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  852. }
  853. if s.ShippingOption == nil {
  854. invalidParams.Add(request.NewErrParamRequired("ShippingOption"))
  855. }
  856. if s.Resources != nil {
  857. if err := s.Resources.Validate(); err != nil {
  858. invalidParams.AddNested("Resources", err.(request.ErrInvalidParams))
  859. }
  860. }
  861. if invalidParams.Len() > 0 {
  862. return invalidParams
  863. }
  864. return nil
  865. }
  866. type CreateJobOutput struct {
  867. _ struct{} `type:"structure"`
  868. // The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
  869. JobId *string `min:"39" type:"string"`
  870. }
  871. // String returns the string representation
  872. func (s CreateJobOutput) String() string {
  873. return awsutil.Prettify(s)
  874. }
  875. // GoString returns the string representation
  876. func (s CreateJobOutput) GoString() string {
  877. return s.String()
  878. }
  879. // Defines the real-time status of a Snowball's data transfer while the appliance
  880. // is at AWS. Note that this data is only available while a job has a JobState
  881. // value of InProgress, for both import and export jobs.
  882. type DataTransfer struct {
  883. _ struct{} `type:"structure"`
  884. // The number of bytes transferred between a Snowball and Amazon S3.
  885. BytesTransferred *int64 `type:"long"`
  886. // The number of objects transferred between a Snowball and Amazon S3.
  887. ObjectsTransferred *int64 `type:"long"`
  888. // The total bytes of data for a transfer between a Snowball and Amazon S3.
  889. // This value is set to 0 (zero) until all the keys that will be transferred
  890. // have been listed.
  891. TotalBytes *int64 `type:"long"`
  892. // The total number of objects for a transfer between a Snowball and Amazon
  893. // S3. This value is set to 0 (zero) until all the keys that will be transferred
  894. // have been listed.
  895. TotalObjects *int64 `type:"long"`
  896. }
  897. // String returns the string representation
  898. func (s DataTransfer) String() string {
  899. return awsutil.Prettify(s)
  900. }
  901. // GoString returns the string representation
  902. func (s DataTransfer) GoString() string {
  903. return s.String()
  904. }
  905. type DescribeAddressInput struct {
  906. _ struct{} `type:"structure"`
  907. // The automatically generated ID for a specific address.
  908. AddressId *string `min:"40" type:"string" required:"true"`
  909. }
  910. // String returns the string representation
  911. func (s DescribeAddressInput) String() string {
  912. return awsutil.Prettify(s)
  913. }
  914. // GoString returns the string representation
  915. func (s DescribeAddressInput) GoString() string {
  916. return s.String()
  917. }
  918. // Validate inspects the fields of the type to determine if they are valid.
  919. func (s *DescribeAddressInput) Validate() error {
  920. invalidParams := request.ErrInvalidParams{Context: "DescribeAddressInput"}
  921. if s.AddressId == nil {
  922. invalidParams.Add(request.NewErrParamRequired("AddressId"))
  923. }
  924. if s.AddressId != nil && len(*s.AddressId) < 40 {
  925. invalidParams.Add(request.NewErrParamMinLen("AddressId", 40))
  926. }
  927. if invalidParams.Len() > 0 {
  928. return invalidParams
  929. }
  930. return nil
  931. }
  932. type DescribeAddressOutput struct {
  933. _ struct{} `type:"structure"`
  934. // The address that you want the Snowball or Snowballs associated with a specific
  935. // job to be shipped to.
  936. Address *Address `type:"structure"`
  937. }
  938. // String returns the string representation
  939. func (s DescribeAddressOutput) String() string {
  940. return awsutil.Prettify(s)
  941. }
  942. // GoString returns the string representation
  943. func (s DescribeAddressOutput) GoString() string {
  944. return s.String()
  945. }
  946. type DescribeAddressesInput struct {
  947. _ struct{} `type:"structure"`
  948. // The number of ADDRESS objects to return.
  949. MaxResults *int64 `type:"integer"`
  950. // HTTP requests are stateless. To identify what object comes "next" in the
  951. // list of ADDRESS objects, you have the option of specifying a value for NextToken
  952. // as the starting point for your list of returned addresses.
  953. NextToken *string `min:"1" type:"string"`
  954. }
  955. // String returns the string representation
  956. func (s DescribeAddressesInput) String() string {
  957. return awsutil.Prettify(s)
  958. }
  959. // GoString returns the string representation
  960. func (s DescribeAddressesInput) GoString() string {
  961. return s.String()
  962. }
  963. // Validate inspects the fields of the type to determine if they are valid.
  964. func (s *DescribeAddressesInput) Validate() error {
  965. invalidParams := request.ErrInvalidParams{Context: "DescribeAddressesInput"}
  966. if s.NextToken != nil && len(*s.NextToken) < 1 {
  967. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  968. }
  969. if invalidParams.Len() > 0 {
  970. return invalidParams
  971. }
  972. return nil
  973. }
  974. type DescribeAddressesOutput struct {
  975. _ struct{} `type:"structure"`
  976. // The Snowball shipping addresses that were created for this account.
  977. Addresses []*Address `type:"list"`
  978. // HTTP requests are stateless. If you use the automatically generated NextToken
  979. // value in your next DescribeAddresses call, your list of returned addresses
  980. // will start from this point in the array.
  981. NextToken *string `min:"1" type:"string"`
  982. }
  983. // String returns the string representation
  984. func (s DescribeAddressesOutput) String() string {
  985. return awsutil.Prettify(s)
  986. }
  987. // GoString returns the string representation
  988. func (s DescribeAddressesOutput) GoString() string {
  989. return s.String()
  990. }
  991. type DescribeJobInput struct {
  992. _ struct{} `type:"structure"`
  993. // The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
  994. JobId *string `min:"39" type:"string" required:"true"`
  995. }
  996. // String returns the string representation
  997. func (s DescribeJobInput) String() string {
  998. return awsutil.Prettify(s)
  999. }
  1000. // GoString returns the string representation
  1001. func (s DescribeJobInput) GoString() string {
  1002. return s.String()
  1003. }
  1004. // Validate inspects the fields of the type to determine if they are valid.
  1005. func (s *DescribeJobInput) Validate() error {
  1006. invalidParams := request.ErrInvalidParams{Context: "DescribeJobInput"}
  1007. if s.JobId == nil {
  1008. invalidParams.Add(request.NewErrParamRequired("JobId"))
  1009. }
  1010. if s.JobId != nil && len(*s.JobId) < 39 {
  1011. invalidParams.Add(request.NewErrParamMinLen("JobId", 39))
  1012. }
  1013. if invalidParams.Len() > 0 {
  1014. return invalidParams
  1015. }
  1016. return nil
  1017. }
  1018. type DescribeJobOutput struct {
  1019. _ struct{} `type:"structure"`
  1020. // Information about a specific job, including shipping information, job status,
  1021. // and other important metadata.
  1022. JobMetadata *JobMetadata `type:"structure"`
  1023. // Information about a specific job part (in the case of an export job), including
  1024. // shipping information, job status, and other important metadata.
  1025. SubJobMetadata []*JobMetadata `type:"list"`
  1026. }
  1027. // String returns the string representation
  1028. func (s DescribeJobOutput) String() string {
  1029. return awsutil.Prettify(s)
  1030. }
  1031. // GoString returns the string representation
  1032. func (s DescribeJobOutput) GoString() string {
  1033. return s.String()
  1034. }
  1035. type GetJobManifestInput struct {
  1036. _ struct{} `type:"structure"`
  1037. // The ID for a job that you want to get the manifest file for, for example
  1038. // JID123e4567-e89b-12d3-a456-426655440000.
  1039. JobId *string `min:"39" type:"string" required:"true"`
  1040. }
  1041. // String returns the string representation
  1042. func (s GetJobManifestInput) String() string {
  1043. return awsutil.Prettify(s)
  1044. }
  1045. // GoString returns the string representation
  1046. func (s GetJobManifestInput) GoString() string {
  1047. return s.String()
  1048. }
  1049. // Validate inspects the fields of the type to determine if they are valid.
  1050. func (s *GetJobManifestInput) Validate() error {
  1051. invalidParams := request.ErrInvalidParams{Context: "GetJobManifestInput"}
  1052. if s.JobId == nil {
  1053. invalidParams.Add(request.NewErrParamRequired("JobId"))
  1054. }
  1055. if s.JobId != nil && len(*s.JobId) < 39 {
  1056. invalidParams.Add(request.NewErrParamMinLen("JobId", 39))
  1057. }
  1058. if invalidParams.Len() > 0 {
  1059. return invalidParams
  1060. }
  1061. return nil
  1062. }
  1063. type GetJobManifestOutput struct {
  1064. _ struct{} `type:"structure"`
  1065. // The Amazon S3 presigned URL for the manifest file associated with the specified
  1066. // JobId value.
  1067. ManifestURI *string `min:"1" type:"string"`
  1068. }
  1069. // String returns the string representation
  1070. func (s GetJobManifestOutput) String() string {
  1071. return awsutil.Prettify(s)
  1072. }
  1073. // GoString returns the string representation
  1074. func (s GetJobManifestOutput) GoString() string {
  1075. return s.String()
  1076. }
  1077. type GetJobUnlockCodeInput struct {
  1078. _ struct{} `type:"structure"`
  1079. // The ID for the job that you want to get the UnlockCode value for, for example
  1080. // JID123e4567-e89b-12d3-a456-426655440000.
  1081. JobId *string `min:"39" type:"string" required:"true"`
  1082. }
  1083. // String returns the string representation
  1084. func (s GetJobUnlockCodeInput) String() string {
  1085. return awsutil.Prettify(s)
  1086. }
  1087. // GoString returns the string representation
  1088. func (s GetJobUnlockCodeInput) GoString() string {
  1089. return s.String()
  1090. }
  1091. // Validate inspects the fields of the type to determine if they are valid.
  1092. func (s *GetJobUnlockCodeInput) Validate() error {
  1093. invalidParams := request.ErrInvalidParams{Context: "GetJobUnlockCodeInput"}
  1094. if s.JobId == nil {
  1095. invalidParams.Add(request.NewErrParamRequired("JobId"))
  1096. }
  1097. if s.JobId != nil && len(*s.JobId) < 39 {
  1098. invalidParams.Add(request.NewErrParamMinLen("JobId", 39))
  1099. }
  1100. if invalidParams.Len() > 0 {
  1101. return invalidParams
  1102. }
  1103. return nil
  1104. }
  1105. type GetJobUnlockCodeOutput struct {
  1106. _ struct{} `type:"structure"`
  1107. // The UnlockCode value for the specified job. The UnlockCode value can be accessed
  1108. // for up to 90 days after the job has been created.
  1109. UnlockCode *string `min:"1" type:"string"`
  1110. }
  1111. // String returns the string representation
  1112. func (s GetJobUnlockCodeOutput) String() string {
  1113. return awsutil.Prettify(s)
  1114. }
  1115. // GoString returns the string representation
  1116. func (s GetJobUnlockCodeOutput) GoString() string {
  1117. return s.String()
  1118. }
  1119. type GetSnowballUsageInput struct {
  1120. _ struct{} `type:"structure"`
  1121. }
  1122. // String returns the string representation
  1123. func (s GetSnowballUsageInput) String() string {
  1124. return awsutil.Prettify(s)
  1125. }
  1126. // GoString returns the string representation
  1127. func (s GetSnowballUsageInput) GoString() string {
  1128. return s.String()
  1129. }
  1130. type GetSnowballUsageOutput struct {
  1131. _ struct{} `type:"structure"`
  1132. // The service limit for number of Snowballs this account can have at once.
  1133. // The default service limit is 1 (one).
  1134. SnowballLimit *int64 `type:"integer"`
  1135. // The number of Snowballs that this account is currently using.
  1136. SnowballsInUse *int64 `type:"integer"`
  1137. }
  1138. // String returns the string representation
  1139. func (s GetSnowballUsageOutput) String() string {
  1140. return awsutil.Prettify(s)
  1141. }
  1142. // GoString returns the string representation
  1143. func (s GetSnowballUsageOutput) GoString() string {
  1144. return s.String()
  1145. }
  1146. // Each JobListEntry object contains a job's state, a job's ID, and a value
  1147. // that indicates whether the job is a job part, in the case of an export job.
  1148. type JobListEntry struct {
  1149. _ struct{} `type:"structure"`
  1150. // A value that indicates that this job is a master job. A master job represents
  1151. // a successful request to create an export job. Master jobs aren't associated
  1152. // with any Snowballs. Instead, each master job will have at least one job part,
  1153. // and each job part is associated with a Snowball. It might take some time
  1154. // before the job parts associated with a particular master job are listed,
  1155. // because they are created after the master job is created.
  1156. IsMaster *bool `type:"boolean"`
  1157. // The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
  1158. JobId *string `min:"1" type:"string"`
  1159. // The current state of this job.
  1160. JobState *string `type:"string" enum:"JobState"`
  1161. }
  1162. // String returns the string representation
  1163. func (s JobListEntry) String() string {
  1164. return awsutil.Prettify(s)
  1165. }
  1166. // GoString returns the string representation
  1167. func (s JobListEntry) GoString() string {
  1168. return s.String()
  1169. }
  1170. // Contains job logs. Whenever Snowball is used to import data into or export
  1171. // data out of Amazon S3, you'll have the option of downloading a PDF job report.
  1172. // Job logs are returned as a part of the response syntax of the DescribeJob
  1173. // action in the JobMetadata data type. The job logs can be accessed for up
  1174. // to 60 minutes after this request has been made. To access any of the job
  1175. // logs after 60 minutes have passed, you'll have to make another call to the
  1176. // DescribeJob action.
  1177. //
  1178. // For import jobs, the PDF job report becomes available at the end of the
  1179. // import process. For export jobs, your job report typically becomes available
  1180. // while the Snowball for your job part is being delivered to you.
  1181. //
  1182. // The job report provides you insight into the state of your Amazon S3 data
  1183. // transfer. The report includes details about your job or job part for your
  1184. // records.
  1185. //
  1186. // For deeper visibility into the status of your transferred objects, you can
  1187. // look at the two associated logs: a success log and a failure log. The logs
  1188. // are saved in comma-separated value (CSV) format, and the name of each log
  1189. // includes the ID of the job or job part that the log describes.
  1190. type JobLogs struct {
  1191. _ struct{} `type:"structure"`
  1192. // A link to an Amazon S3 presigned URL where the job completion report is located.
  1193. JobCompletionReportURI *string `min:"1" type:"string"`
  1194. // A link to an Amazon S3 presigned URL where the job failure log is located.
  1195. JobFailureLogURI *string `min:"1" type:"string"`
  1196. // A link to an Amazon S3 presigned URL where the job success log is located.
  1197. JobSuccessLogURI *string `min:"1" type:"string"`
  1198. }
  1199. // String returns the string representation
  1200. func (s JobLogs) String() string {
  1201. return awsutil.Prettify(s)
  1202. }
  1203. // GoString returns the string representation
  1204. func (s JobLogs) GoString() string {
  1205. return s.String()
  1206. }
  1207. // Contains information about a specific job including shipping information,
  1208. // job status, and other important metadata. This information is returned as
  1209. // a part of the response syntax of the DescribeJob action.
  1210. type JobMetadata struct {
  1211. _ struct{} `type:"structure"`
  1212. // The ID for the address that you want the Snowball shipped to.
  1213. AddressId *string `min:"40" type:"string"`
  1214. // The creation date for this job.
  1215. CreationDate *time.Time `type:"timestamp" timestampFormat:"unix"`
  1216. // A value that defines the real-time status of a Snowball's data transfer while
  1217. // the appliance is at AWS. Note that this data is only available while a job
  1218. // has a JobState value of InProgress, for both import and export jobs.
  1219. DataTransferProgress *DataTransfer `type:"structure"`
  1220. // The description of the job, provided at job creation.
  1221. Description *string `min:"1" type:"string"`
  1222. // The automatically generated ID for a job, for example JID123e4567-e89b-12d3-a456-426655440000.
  1223. JobId *string `min:"1" type:"string"`
  1224. // Links to Amazon S3 presigned URLs for the job report and logs. For import
  1225. // jobs, the PDF job report becomes available at the end of the import process.
  1226. // For export jobs, your job report typically becomes available while the Snowball
  1227. // for your job part is being delivered to you.
  1228. JobLogInfo *JobLogs `type:"structure"`
  1229. // The current state of the jobs.
  1230. JobState *string `type:"string" enum:"JobState"`
  1231. // The type of job.
  1232. JobType *string `type:"string" enum:"JobType"`
  1233. // The Amazon Resource Name (ARN) for the AWS Key Management Service (AWS KMS)
  1234. // key associated with this job. This ARN was created using the CreateKey API
  1235. // action in AWS KMS.
  1236. KmsKeyARN *string `type:"string"`
  1237. // The Amazon Simple Notification Service (Amazon SNS) notification settings
  1238. // associated with a specific job. The Notification object is returned as a
  1239. // part of the response syntax of the DescribeJob action in the JobMetadata
  1240. // data type.
  1241. Notification *Notification `type:"structure"`
  1242. // An array of S3Resource objects. Each S3Resource object represents an Amazon
  1243. // S3 bucket that your transferred data will be exported from or imported into.
  1244. Resources *JobResource `type:"structure"`
  1245. // The role ARN associated with this job. This ARN was created using the CreateRole
  1246. // API action in AWS Identity and Access Management (IAM).
  1247. RoleARN *string `type:"string"`
  1248. // A job's shipping information, including inbound and outbound tracking numbers
  1249. // and shipping speed options.
  1250. ShippingDetails *ShippingDetails `type:"structure"`
  1251. // The Snowball capacity preference for this job, specified at job creation.
  1252. // In US regions, you can choose between 50 TB and 80 TB Snowballs. All other
  1253. // regions use 80 TB capacity Snowballs.
  1254. SnowballCapacityPreference *string `type:"string" enum:"Capacity"`
  1255. }
  1256. // String returns the string representation
  1257. func (s JobMetadata) String() string {
  1258. return awsutil.Prettify(s)
  1259. }
  1260. // GoString returns the string representation
  1261. func (s JobMetadata) GoString() string {
  1262. return s.String()
  1263. }
  1264. // Contains an array of S3Resource objects. Each S3Resource object represents
  1265. // an Amazon S3 bucket that your transferred data will be exported from or imported
  1266. // into.
  1267. type JobResource struct {
  1268. _ struct{} `type:"structure"`
  1269. // An array of S3Resource objects.
  1270. S3Resources []*S3Resource `type:"list"`
  1271. }
  1272. // String returns the string representation
  1273. func (s JobResource) String() string {
  1274. return awsutil.Prettify(s)
  1275. }
  1276. // GoString returns the string representation
  1277. func (s JobResource) GoString() string {
  1278. return s.String()
  1279. }
  1280. // Validate inspects the fields of the type to determine if they are valid.
  1281. func (s *JobResource) Validate() error {
  1282. invalidParams := request.ErrInvalidParams{Context: "JobResource"}
  1283. if s.S3Resources != nil {
  1284. for i, v := range s.S3Resources {
  1285. if v == nil {
  1286. continue
  1287. }
  1288. if err := v.Validate(); err != nil {
  1289. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "S3Resources", i), err.(request.ErrInvalidParams))
  1290. }
  1291. }
  1292. }
  1293. if invalidParams.Len() > 0 {
  1294. return invalidParams
  1295. }
  1296. return nil
  1297. }
  1298. // Contains a key range. For export jobs, a S3Resource object can have an optional
  1299. // KeyRange value. The length of the range is defined at job creation, and has
  1300. // either an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges
  1301. // are UTF-8 binary sorted.
  1302. type KeyRange struct {
  1303. _ struct{} `type:"structure"`
  1304. // The key that starts an optional key range for an export job. Ranges are inclusive
  1305. // and UTF-8 binary sorted.
  1306. BeginMarker *string `min:"1" type:"string"`
  1307. // The key that ends an optional key range for an export job. Ranges are inclusive
  1308. // and UTF-8 binary sorted.
  1309. EndMarker *string `min:"1" type:"string"`
  1310. }
  1311. // String returns the string representation
  1312. func (s KeyRange) String() string {
  1313. return awsutil.Prettify(s)
  1314. }
  1315. // GoString returns the string representation
  1316. func (s KeyRange) GoString() string {
  1317. return s.String()
  1318. }
  1319. // Validate inspects the fields of the type to determine if they are valid.
  1320. func (s *KeyRange) Validate() error {
  1321. invalidParams := request.ErrInvalidParams{Context: "KeyRange"}
  1322. if s.BeginMarker != nil && len(*s.BeginMarker) < 1 {
  1323. invalidParams.Add(request.NewErrParamMinLen("BeginMarker", 1))
  1324. }
  1325. if s.EndMarker != nil && len(*s.EndMarker) < 1 {
  1326. invalidParams.Add(request.NewErrParamMinLen("EndMarker", 1))
  1327. }
  1328. if invalidParams.Len() > 0 {
  1329. return invalidParams
  1330. }
  1331. return nil
  1332. }
  1333. type ListJobsInput struct {
  1334. _ struct{} `type:"structure"`
  1335. // The number of JobListEntry objects to return.
  1336. MaxResults *int64 `type:"integer"`
  1337. // HTTP requests are stateless. To identify what object comes "next" in the
  1338. // list of JobListEntry objects, you have the option of specifying NextToken
  1339. // as the starting point for your returned list.
  1340. NextToken *string `min:"1" type:"string"`
  1341. }
  1342. // String returns the string representation
  1343. func (s ListJobsInput) String() string {
  1344. return awsutil.Prettify(s)
  1345. }
  1346. // GoString returns the string representation
  1347. func (s ListJobsInput) GoString() string {
  1348. return s.String()
  1349. }
  1350. // Validate inspects the fields of the type to determine if they are valid.
  1351. func (s *ListJobsInput) Validate() error {
  1352. invalidParams := request.ErrInvalidParams{Context: "ListJobsInput"}
  1353. if s.NextToken != nil && len(*s.NextToken) < 1 {
  1354. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  1355. }
  1356. if invalidParams.Len() > 0 {
  1357. return invalidParams
  1358. }
  1359. return nil
  1360. }
  1361. type ListJobsOutput struct {
  1362. _ struct{} `type:"structure"`
  1363. // Each JobListEntry object contains a job's state, a job's ID, and a value
  1364. // that indicates whether the job is a job part, in the case of export jobs.
  1365. JobListEntries []*JobListEntry `type:"list"`
  1366. // HTTP requests are stateless. If you use this automatically generated NextToken
  1367. // value in your next ListJobs call, your returned JobListEntry objects will
  1368. // start from this point in the array.
  1369. NextToken *string `min:"1" type:"string"`
  1370. }
  1371. // String returns the string representation
  1372. func (s ListJobsOutput) String() string {
  1373. return awsutil.Prettify(s)
  1374. }
  1375. // GoString returns the string representation
  1376. func (s ListJobsOutput) GoString() string {
  1377. return s.String()
  1378. }
  1379. // The Amazon Simple Notification Service (Amazon SNS) notification settings
  1380. // associated with a specific job. The Notification object is returned as a
  1381. // part of the response syntax of the DescribeJob action in the JobMetadata
  1382. // data type.
  1383. //
  1384. // When the notification settings are defined during job creation, you can
  1385. // choose to notify based on a specific set of job states using the JobStatesToNotify
  1386. // array of strings, or you can specify that you want to have Amazon SNS notifications
  1387. // sent out for all job states with NotifyAll set to true.
  1388. type Notification struct {
  1389. _ struct{} `type:"structure"`
  1390. // The list of job states that will trigger a notification for this job.
  1391. JobStatesToNotify []*string `type:"list"`
  1392. // Any change in job state will trigger a notification for this job.
  1393. NotifyAll *bool `type:"boolean"`
  1394. // The new SNS TopicArn that you want to associate with this job. You can create
  1395. // Amazon Resource Names (ARNs) for topics by using the CreateTopic (http://docs.aws.amazon.com/sns/latest/api/API_CreateTopic.html)
  1396. // Amazon SNS API action.
  1397. //
  1398. // Note that you can subscribe email addresses to an Amazon SNS topic through
  1399. // the AWS Management Console, or by using the Subscribe (http://docs.aws.amazon.com/sns/latest/api/API_Subscribe.html)
  1400. // AWS Simple Notification Service (SNS) API action.
  1401. SnsTopicARN *string `type:"string"`
  1402. }
  1403. // String returns the string representation
  1404. func (s Notification) String() string {
  1405. return awsutil.Prettify(s)
  1406. }
  1407. // GoString returns the string representation
  1408. func (s Notification) GoString() string {
  1409. return s.String()
  1410. }
  1411. // Each S3Resource object represents an Amazon S3 bucket that your transferred
  1412. // data will be exported from or imported into. For export jobs, this object
  1413. // can have an optional KeyRange value. The length of the range is defined at
  1414. // job creation, and has either an inclusive BeginMarker, an inclusive EndMarker,
  1415. // or both. Ranges are UTF-8 binary sorted.
  1416. type S3Resource struct {
  1417. _ struct{} `type:"structure"`
  1418. // The Amazon Resource Name (ARN) of an Amazon S3 bucket.
  1419. BucketArn *string `type:"string"`
  1420. // For export jobs, you can provide an optional KeyRange within a specific Amazon
  1421. // S3 bucket. The length of the range is defined at job creation, and has either
  1422. // an inclusive BeginMarker, an inclusive EndMarker, or both. Ranges are UTF-8
  1423. // binary sorted.
  1424. KeyRange *KeyRange `type:"structure"`
  1425. }
  1426. // String returns the string representation
  1427. func (s S3Resource) String() string {
  1428. return awsutil.Prettify(s)
  1429. }
  1430. // GoString returns the string representation
  1431. func (s S3Resource) GoString() string {
  1432. return s.String()
  1433. }
  1434. // Validate inspects the fields of the type to determine if they are valid.
  1435. func (s *S3Resource) Validate() error {
  1436. invalidParams := request.ErrInvalidParams{Context: "S3Resource"}
  1437. if s.KeyRange != nil {
  1438. if err := s.KeyRange.Validate(); err != nil {
  1439. invalidParams.AddNested("KeyRange", err.(request.ErrInvalidParams))
  1440. }
  1441. }
  1442. if invalidParams.Len() > 0 {
  1443. return invalidParams
  1444. }
  1445. return nil
  1446. }
  1447. // The Status and TrackingNumber information for an inbound or outbound shipment.
  1448. type Shipment struct {
  1449. _ struct{} `type:"structure"`
  1450. // Status information for a shipment. Valid statuses include NEW, IN_TRANSIT,
  1451. // and DELIVERED.
  1452. Status *string `min:"1" type:"string"`
  1453. // The tracking number for this job. Using this tracking number with your region's
  1454. // carrier's website, you can track a Snowball as the carrier transports it.
  1455. //
  1456. // For India, the carrier is Amazon Logistics. For all other regions, UPS is
  1457. // the carrier.
  1458. TrackingNumber *string `min:"1" type:"string"`
  1459. }
  1460. // String returns the string representation
  1461. func (s Shipment) String() string {
  1462. return awsutil.Prettify(s)
  1463. }
  1464. // GoString returns the string representation
  1465. func (s Shipment) GoString() string {
  1466. return s.String()
  1467. }
  1468. // A job's shipping information, including inbound and outbound tracking numbers
  1469. // and shipping speed options.
  1470. type ShippingDetails struct {
  1471. _ struct{} `type:"structure"`
  1472. // The Status and TrackingNumber values for a Snowball being delivered to the
  1473. // address that you specified for a particular job.
  1474. InboundShipment *Shipment `type:"structure"`
  1475. // The Status and TrackingNumber values for a Snowball being returned to AWS
  1476. // for a particular job.
  1477. OutboundShipment *Shipment `type:"structure"`
  1478. // The shipping speed for a particular job. Note that this speed does not dictate
  1479. // how soon you'll get the Snowball from the job's creation date. This speed
  1480. // represents how quickly it moves to its destination while in transit. Regional
  1481. // shipping speeds are as follows:
  1482. //
  1483. // In Australia, you have access to express shipping. Typically, Snowballs
  1484. // shipped express are delivered in about a day.
  1485. //
  1486. // In the European Union (EU), you have access to express shipping. Typically,
  1487. // Snowballs shipped express are delivered in about a day. In addition, most
  1488. // countries in the EU have access to standard shipping, which typically takes
  1489. // less than a week, one way.
  1490. //
  1491. // In India, Snowballs are delivered in one to seven days.
  1492. //
  1493. // In the United States of America (US), you have access to one-day shipping
  1494. // and two-day shipping.
  1495. ShippingOption *string `type:"string" enum:"ShippingOption"`
  1496. }
  1497. // String returns the string representation
  1498. func (s ShippingDetails) String() string {
  1499. return awsutil.Prettify(s)
  1500. }
  1501. // GoString returns the string representation
  1502. func (s ShippingDetails) GoString() string {
  1503. return s.String()
  1504. }
  1505. type UpdateJobInput struct {
  1506. _ struct{} `type:"structure"`
  1507. // The ID of the updated Address object.
  1508. AddressId *string `min:"40" type:"string"`
  1509. // The updated description of this job's JobMetadata object.
  1510. Description *string `min:"1" type:"string"`
  1511. // The job ID of the job that you want to update, for example JID123e4567-e89b-12d3-a456-426655440000.
  1512. JobId *string `min:"39" type:"string" required:"true"`
  1513. // The new or updated Notification object.
  1514. Notification *Notification `type:"structure"`
  1515. // The updated S3Resource object (for a single Amazon S3 bucket or key range),
  1516. // or the updated JobResource object (for multiple buckets or key ranges).
  1517. Resources *JobResource `type:"structure"`
  1518. // The new role Amazon Resource Name (ARN) that you want to associate with this
  1519. // job. To create a role ARN, use the CreateRole (http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreateRole.html)
  1520. // AWS Identity and Access Management (IAM) API action.
  1521. RoleARN *string `type:"string"`
  1522. // The updated shipping option value of this job's ShippingDetails object.
  1523. ShippingOption *string `type:"string" enum:"ShippingOption"`
  1524. // The updated SnowballCapacityPreference of this job's JobMetadata object.
  1525. // Note that the 50 TB Snowballs are only available in the US regions.
  1526. SnowballCapacityPreference *string `type:"string" enum:"Capacity"`
  1527. }
  1528. // String returns the string representation
  1529. func (s UpdateJobInput) String() string {
  1530. return awsutil.Prettify(s)
  1531. }
  1532. // GoString returns the string representation
  1533. func (s UpdateJobInput) GoString() string {
  1534. return s.String()
  1535. }
  1536. // Validate inspects the fields of the type to determine if they are valid.
  1537. func (s *UpdateJobInput) Validate() error {
  1538. invalidParams := request.ErrInvalidParams{Context: "UpdateJobInput"}
  1539. if s.AddressId != nil && len(*s.AddressId) < 40 {
  1540. invalidParams.Add(request.NewErrParamMinLen("AddressId", 40))
  1541. }
  1542. if s.Description != nil && len(*s.Description) < 1 {
  1543. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  1544. }
  1545. if s.JobId == nil {
  1546. invalidParams.Add(request.NewErrParamRequired("JobId"))
  1547. }
  1548. if s.JobId != nil && len(*s.JobId) < 39 {
  1549. invalidParams.Add(request.NewErrParamMinLen("JobId", 39))
  1550. }
  1551. if s.Resources != nil {
  1552. if err := s.Resources.Validate(); err != nil {
  1553. invalidParams.AddNested("Resources", err.(request.ErrInvalidParams))
  1554. }
  1555. }
  1556. if invalidParams.Len() > 0 {
  1557. return invalidParams
  1558. }
  1559. return nil
  1560. }
  1561. type UpdateJobOutput struct {
  1562. _ struct{} `type:"structure"`
  1563. }
  1564. // String returns the string representation
  1565. func (s UpdateJobOutput) String() string {
  1566. return awsutil.Prettify(s)
  1567. }
  1568. // GoString returns the string representation
  1569. func (s UpdateJobOutput) GoString() string {
  1570. return s.String()
  1571. }
  1572. const (
  1573. // @enum Capacity
  1574. CapacityT50 = "T50"
  1575. // @enum Capacity
  1576. CapacityT80 = "T80"
  1577. // @enum Capacity
  1578. CapacityNoPreference = "NoPreference"
  1579. )
  1580. const (
  1581. // @enum JobState
  1582. JobStateNew = "New"
  1583. // @enum JobState
  1584. JobStatePreparingAppliance = "PreparingAppliance"
  1585. // @enum JobState
  1586. JobStatePreparingShipment = "PreparingShipment"
  1587. // @enum JobState
  1588. JobStateInTransitToCustomer = "InTransitToCustomer"
  1589. // @enum JobState
  1590. JobStateWithCustomer = "WithCustomer"
  1591. // @enum JobState
  1592. JobStateInTransitToAws = "InTransitToAWS"
  1593. // @enum JobState
  1594. JobStateWithAws = "WithAWS"
  1595. // @enum JobState
  1596. JobStateInProgress = "InProgress"
  1597. // @enum JobState
  1598. JobStateComplete = "Complete"
  1599. // @enum JobState
  1600. JobStateCancelled = "Cancelled"
  1601. // @enum JobState
  1602. JobStateListing = "Listing"
  1603. // @enum JobState
  1604. JobStatePending = "Pending"
  1605. )
  1606. const (
  1607. // @enum JobType
  1608. JobTypeImport = "IMPORT"
  1609. // @enum JobType
  1610. JobTypeExport = "EXPORT"
  1611. )
  1612. const (
  1613. // @enum ShippingOption
  1614. ShippingOptionSecondDay = "SECOND_DAY"
  1615. // @enum ShippingOption
  1616. ShippingOptionNextDay = "NEXT_DAY"
  1617. // @enum ShippingOption
  1618. ShippingOptionExpress = "EXPRESS"
  1619. // @enum ShippingOption
  1620. ShippingOptionStandard = "STANDARD"
  1621. )