api.go 119 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package datapipeline provides a client for AWS Data Pipeline.
  3. package datapipeline
  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. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opActivatePipeline = "ActivatePipeline"
  13. // ActivatePipelineRequest generates a "aws/request.Request" representing the
  14. // client's request for the ActivatePipeline operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // See ActivatePipeline for usage and error information.
  19. //
  20. // Creating a request object using this method should be used when you want to inject
  21. // custom logic into the request's lifecycle using a custom handler, or if you want to
  22. // access properties on the request object before or after sending the request. If
  23. // you just want the service response, call the ActivatePipeline method directly
  24. // instead.
  25. //
  26. // Note: You must call the "Send" method on the returned request object in order
  27. // to execute the request.
  28. //
  29. // // Example sending a request using the ActivatePipelineRequest method.
  30. // req, resp := client.ActivatePipelineRequest(params)
  31. //
  32. // err := req.Send()
  33. // if err == nil { // resp is now filled
  34. // fmt.Println(resp)
  35. // }
  36. //
  37. func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (req *request.Request, output *ActivatePipelineOutput) {
  38. op := &request.Operation{
  39. Name: opActivatePipeline,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &ActivatePipelineInput{}
  45. }
  46. req = c.newRequest(op, input, output)
  47. output = &ActivatePipelineOutput{}
  48. req.Data = output
  49. return
  50. }
  51. // ActivatePipeline API operation for AWS Data Pipeline.
  52. //
  53. // Validates the specified pipeline and starts processing pipeline tasks. If
  54. // the pipeline does not pass validation, activation fails.
  55. //
  56. // If you need to pause the pipeline to investigate an issue with a component,
  57. // such as a data source or script, call DeactivatePipeline.
  58. //
  59. // To activate a finished pipeline, modify the end date for the pipeline and
  60. // then activate it.
  61. //
  62. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  63. // with awserr.Error's Code and Message methods to get detailed information about
  64. // the error.
  65. //
  66. // See the AWS API reference guide for AWS Data Pipeline's
  67. // API operation ActivatePipeline for usage and error information.
  68. //
  69. // Returned Error Codes:
  70. // * PipelineNotFoundException
  71. // The specified pipeline was not found. Verify that you used the correct user
  72. // and account identifiers.
  73. //
  74. // * PipelineDeletedException
  75. // The specified pipeline has been deleted.
  76. //
  77. // * InternalServiceError
  78. // An internal service error occurred.
  79. //
  80. // * InvalidRequestException
  81. // The request was not valid. Verify that your request was properly formatted,
  82. // that the signature was generated with the correct credentials, and that you
  83. // haven't exceeded any of the service limits for your account.
  84. //
  85. func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (*ActivatePipelineOutput, error) {
  86. req, out := c.ActivatePipelineRequest(input)
  87. err := req.Send()
  88. return out, err
  89. }
  90. const opAddTags = "AddTags"
  91. // AddTagsRequest generates a "aws/request.Request" representing the
  92. // client's request for the AddTags operation. The "output" return
  93. // value can be used to capture response data after the request's "Send" method
  94. // is called.
  95. //
  96. // See AddTags for usage and error information.
  97. //
  98. // Creating a request object using this method should be used when you want to inject
  99. // custom logic into the request's lifecycle using a custom handler, or if you want to
  100. // access properties on the request object before or after sending the request. If
  101. // you just want the service response, call the AddTags method directly
  102. // instead.
  103. //
  104. // Note: You must call the "Send" method on the returned request object in order
  105. // to execute the request.
  106. //
  107. // // Example sending a request using the AddTagsRequest method.
  108. // req, resp := client.AddTagsRequest(params)
  109. //
  110. // err := req.Send()
  111. // if err == nil { // resp is now filled
  112. // fmt.Println(resp)
  113. // }
  114. //
  115. func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
  116. op := &request.Operation{
  117. Name: opAddTags,
  118. HTTPMethod: "POST",
  119. HTTPPath: "/",
  120. }
  121. if input == nil {
  122. input = &AddTagsInput{}
  123. }
  124. req = c.newRequest(op, input, output)
  125. output = &AddTagsOutput{}
  126. req.Data = output
  127. return
  128. }
  129. // AddTags API operation for AWS Data Pipeline.
  130. //
  131. // Adds or modifies tags for the specified pipeline.
  132. //
  133. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  134. // with awserr.Error's Code and Message methods to get detailed information about
  135. // the error.
  136. //
  137. // See the AWS API reference guide for AWS Data Pipeline's
  138. // API operation AddTags for usage and error information.
  139. //
  140. // Returned Error Codes:
  141. // * InternalServiceError
  142. // An internal service error occurred.
  143. //
  144. // * InvalidRequestException
  145. // The request was not valid. Verify that your request was properly formatted,
  146. // that the signature was generated with the correct credentials, and that you
  147. // haven't exceeded any of the service limits for your account.
  148. //
  149. // * PipelineNotFoundException
  150. // The specified pipeline was not found. Verify that you used the correct user
  151. // and account identifiers.
  152. //
  153. // * PipelineDeletedException
  154. // The specified pipeline has been deleted.
  155. //
  156. func (c *DataPipeline) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
  157. req, out := c.AddTagsRequest(input)
  158. err := req.Send()
  159. return out, err
  160. }
  161. const opCreatePipeline = "CreatePipeline"
  162. // CreatePipelineRequest generates a "aws/request.Request" representing the
  163. // client's request for the CreatePipeline operation. The "output" return
  164. // value can be used to capture response data after the request's "Send" method
  165. // is called.
  166. //
  167. // See CreatePipeline for usage and error information.
  168. //
  169. // Creating a request object using this method should be used when you want to inject
  170. // custom logic into the request's lifecycle using a custom handler, or if you want to
  171. // access properties on the request object before or after sending the request. If
  172. // you just want the service response, call the CreatePipeline method directly
  173. // instead.
  174. //
  175. // Note: You must call the "Send" method on the returned request object in order
  176. // to execute the request.
  177. //
  178. // // Example sending a request using the CreatePipelineRequest method.
  179. // req, resp := client.CreatePipelineRequest(params)
  180. //
  181. // err := req.Send()
  182. // if err == nil { // resp is now filled
  183. // fmt.Println(resp)
  184. // }
  185. //
  186. func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
  187. op := &request.Operation{
  188. Name: opCreatePipeline,
  189. HTTPMethod: "POST",
  190. HTTPPath: "/",
  191. }
  192. if input == nil {
  193. input = &CreatePipelineInput{}
  194. }
  195. req = c.newRequest(op, input, output)
  196. output = &CreatePipelineOutput{}
  197. req.Data = output
  198. return
  199. }
  200. // CreatePipeline API operation for AWS Data Pipeline.
  201. //
  202. // Creates a new, empty pipeline. Use PutPipelineDefinition to populate the
  203. // pipeline.
  204. //
  205. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  206. // with awserr.Error's Code and Message methods to get detailed information about
  207. // the error.
  208. //
  209. // See the AWS API reference guide for AWS Data Pipeline's
  210. // API operation CreatePipeline for usage and error information.
  211. //
  212. // Returned Error Codes:
  213. // * InternalServiceError
  214. // An internal service error occurred.
  215. //
  216. // * InvalidRequestException
  217. // The request was not valid. Verify that your request was properly formatted,
  218. // that the signature was generated with the correct credentials, and that you
  219. // haven't exceeded any of the service limits for your account.
  220. //
  221. func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
  222. req, out := c.CreatePipelineRequest(input)
  223. err := req.Send()
  224. return out, err
  225. }
  226. const opDeactivatePipeline = "DeactivatePipeline"
  227. // DeactivatePipelineRequest generates a "aws/request.Request" representing the
  228. // client's request for the DeactivatePipeline operation. The "output" return
  229. // value can be used to capture response data after the request's "Send" method
  230. // is called.
  231. //
  232. // See DeactivatePipeline for usage and error information.
  233. //
  234. // Creating a request object using this method should be used when you want to inject
  235. // custom logic into the request's lifecycle using a custom handler, or if you want to
  236. // access properties on the request object before or after sending the request. If
  237. // you just want the service response, call the DeactivatePipeline method directly
  238. // instead.
  239. //
  240. // Note: You must call the "Send" method on the returned request object in order
  241. // to execute the request.
  242. //
  243. // // Example sending a request using the DeactivatePipelineRequest method.
  244. // req, resp := client.DeactivatePipelineRequest(params)
  245. //
  246. // err := req.Send()
  247. // if err == nil { // resp is now filled
  248. // fmt.Println(resp)
  249. // }
  250. //
  251. func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) (req *request.Request, output *DeactivatePipelineOutput) {
  252. op := &request.Operation{
  253. Name: opDeactivatePipeline,
  254. HTTPMethod: "POST",
  255. HTTPPath: "/",
  256. }
  257. if input == nil {
  258. input = &DeactivatePipelineInput{}
  259. }
  260. req = c.newRequest(op, input, output)
  261. output = &DeactivatePipelineOutput{}
  262. req.Data = output
  263. return
  264. }
  265. // DeactivatePipeline API operation for AWS Data Pipeline.
  266. //
  267. // Deactivates the specified running pipeline. The pipeline is set to the DEACTIVATING
  268. // state until the deactivation process completes.
  269. //
  270. // To resume a deactivated pipeline, use ActivatePipeline. By default, the pipeline
  271. // resumes from the last completed execution. Optionally, you can specify the
  272. // date and time to resume the pipeline.
  273. //
  274. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  275. // with awserr.Error's Code and Message methods to get detailed information about
  276. // the error.
  277. //
  278. // See the AWS API reference guide for AWS Data Pipeline's
  279. // API operation DeactivatePipeline for usage and error information.
  280. //
  281. // Returned Error Codes:
  282. // * PipelineNotFoundException
  283. // The specified pipeline was not found. Verify that you used the correct user
  284. // and account identifiers.
  285. //
  286. // * PipelineDeletedException
  287. // The specified pipeline has been deleted.
  288. //
  289. // * InternalServiceError
  290. // An internal service error occurred.
  291. //
  292. // * InvalidRequestException
  293. // The request was not valid. Verify that your request was properly formatted,
  294. // that the signature was generated with the correct credentials, and that you
  295. // haven't exceeded any of the service limits for your account.
  296. //
  297. func (c *DataPipeline) DeactivatePipeline(input *DeactivatePipelineInput) (*DeactivatePipelineOutput, error) {
  298. req, out := c.DeactivatePipelineRequest(input)
  299. err := req.Send()
  300. return out, err
  301. }
  302. const opDeletePipeline = "DeletePipeline"
  303. // DeletePipelineRequest generates a "aws/request.Request" representing the
  304. // client's request for the DeletePipeline operation. The "output" return
  305. // value can be used to capture response data after the request's "Send" method
  306. // is called.
  307. //
  308. // See DeletePipeline for usage and error information.
  309. //
  310. // Creating a request object using this method should be used when you want to inject
  311. // custom logic into the request's lifecycle using a custom handler, or if you want to
  312. // access properties on the request object before or after sending the request. If
  313. // you just want the service response, call the DeletePipeline method directly
  314. // instead.
  315. //
  316. // Note: You must call the "Send" method on the returned request object in order
  317. // to execute the request.
  318. //
  319. // // Example sending a request using the DeletePipelineRequest method.
  320. // req, resp := client.DeletePipelineRequest(params)
  321. //
  322. // err := req.Send()
  323. // if err == nil { // resp is now filled
  324. // fmt.Println(resp)
  325. // }
  326. //
  327. func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
  328. op := &request.Operation{
  329. Name: opDeletePipeline,
  330. HTTPMethod: "POST",
  331. HTTPPath: "/",
  332. }
  333. if input == nil {
  334. input = &DeletePipelineInput{}
  335. }
  336. req = c.newRequest(op, input, output)
  337. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  338. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  339. output = &DeletePipelineOutput{}
  340. req.Data = output
  341. return
  342. }
  343. // DeletePipeline API operation for AWS Data Pipeline.
  344. //
  345. // Deletes a pipeline, its pipeline definition, and its run history. AWS Data
  346. // Pipeline attempts to cancel instances associated with the pipeline that are
  347. // currently being processed by task runners.
  348. //
  349. // Deleting a pipeline cannot be undone. You cannot query or restore a deleted
  350. // pipeline. To temporarily pause a pipeline instead of deleting it, call SetStatus
  351. // with the status set to PAUSE on individual components. Components that are
  352. // paused by SetStatus can be resumed.
  353. //
  354. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  355. // with awserr.Error's Code and Message methods to get detailed information about
  356. // the error.
  357. //
  358. // See the AWS API reference guide for AWS Data Pipeline's
  359. // API operation DeletePipeline for usage and error information.
  360. //
  361. // Returned Error Codes:
  362. // * PipelineNotFoundException
  363. // The specified pipeline was not found. Verify that you used the correct user
  364. // and account identifiers.
  365. //
  366. // * InternalServiceError
  367. // An internal service error occurred.
  368. //
  369. // * InvalidRequestException
  370. // The request was not valid. Verify that your request was properly formatted,
  371. // that the signature was generated with the correct credentials, and that you
  372. // haven't exceeded any of the service limits for your account.
  373. //
  374. func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
  375. req, out := c.DeletePipelineRequest(input)
  376. err := req.Send()
  377. return out, err
  378. }
  379. const opDescribeObjects = "DescribeObjects"
  380. // DescribeObjectsRequest generates a "aws/request.Request" representing the
  381. // client's request for the DescribeObjects operation. The "output" return
  382. // value can be used to capture response data after the request's "Send" method
  383. // is called.
  384. //
  385. // See DescribeObjects for usage and error information.
  386. //
  387. // Creating a request object using this method should be used when you want to inject
  388. // custom logic into the request's lifecycle using a custom handler, or if you want to
  389. // access properties on the request object before or after sending the request. If
  390. // you just want the service response, call the DescribeObjects method directly
  391. // instead.
  392. //
  393. // Note: You must call the "Send" method on the returned request object in order
  394. // to execute the request.
  395. //
  396. // // Example sending a request using the DescribeObjectsRequest method.
  397. // req, resp := client.DescribeObjectsRequest(params)
  398. //
  399. // err := req.Send()
  400. // if err == nil { // resp is now filled
  401. // fmt.Println(resp)
  402. // }
  403. //
  404. func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req *request.Request, output *DescribeObjectsOutput) {
  405. op := &request.Operation{
  406. Name: opDescribeObjects,
  407. HTTPMethod: "POST",
  408. HTTPPath: "/",
  409. Paginator: &request.Paginator{
  410. InputTokens: []string{"marker"},
  411. OutputTokens: []string{"marker"},
  412. LimitToken: "",
  413. TruncationToken: "hasMoreResults",
  414. },
  415. }
  416. if input == nil {
  417. input = &DescribeObjectsInput{}
  418. }
  419. req = c.newRequest(op, input, output)
  420. output = &DescribeObjectsOutput{}
  421. req.Data = output
  422. return
  423. }
  424. // DescribeObjects API operation for AWS Data Pipeline.
  425. //
  426. // Gets the object definitions for a set of objects associated with the pipeline.
  427. // Object definitions are composed of a set of fields that define the properties
  428. // of the object.
  429. //
  430. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  431. // with awserr.Error's Code and Message methods to get detailed information about
  432. // the error.
  433. //
  434. // See the AWS API reference guide for AWS Data Pipeline's
  435. // API operation DescribeObjects for usage and error information.
  436. //
  437. // Returned Error Codes:
  438. // * InternalServiceError
  439. // An internal service error occurred.
  440. //
  441. // * InvalidRequestException
  442. // The request was not valid. Verify that your request was properly formatted,
  443. // that the signature was generated with the correct credentials, and that you
  444. // haven't exceeded any of the service limits for your account.
  445. //
  446. // * PipelineNotFoundException
  447. // The specified pipeline was not found. Verify that you used the correct user
  448. // and account identifiers.
  449. //
  450. // * PipelineDeletedException
  451. // The specified pipeline has been deleted.
  452. //
  453. func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeObjectsOutput, error) {
  454. req, out := c.DescribeObjectsRequest(input)
  455. err := req.Send()
  456. return out, err
  457. }
  458. // DescribeObjectsPages iterates over the pages of a DescribeObjects operation,
  459. // calling the "fn" function with the response data for each page. To stop
  460. // iterating, return false from the fn function.
  461. //
  462. // See DescribeObjects method for more information on how to use this operation.
  463. //
  464. // Note: This operation can generate multiple requests to a service.
  465. //
  466. // // Example iterating over at most 3 pages of a DescribeObjects operation.
  467. // pageNum := 0
  468. // err := client.DescribeObjectsPages(params,
  469. // func(page *DescribeObjectsOutput, lastPage bool) bool {
  470. // pageNum++
  471. // fmt.Println(page)
  472. // return pageNum <= 3
  473. // })
  474. //
  475. func (c *DataPipeline) DescribeObjectsPages(input *DescribeObjectsInput, fn func(p *DescribeObjectsOutput, lastPage bool) (shouldContinue bool)) error {
  476. page, _ := c.DescribeObjectsRequest(input)
  477. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  478. return page.EachPage(func(p interface{}, lastPage bool) bool {
  479. return fn(p.(*DescribeObjectsOutput), lastPage)
  480. })
  481. }
  482. const opDescribePipelines = "DescribePipelines"
  483. // DescribePipelinesRequest generates a "aws/request.Request" representing the
  484. // client's request for the DescribePipelines operation. The "output" return
  485. // value can be used to capture response data after the request's "Send" method
  486. // is called.
  487. //
  488. // See DescribePipelines for usage and error information.
  489. //
  490. // Creating a request object using this method should be used when you want to inject
  491. // custom logic into the request's lifecycle using a custom handler, or if you want to
  492. // access properties on the request object before or after sending the request. If
  493. // you just want the service response, call the DescribePipelines method directly
  494. // instead.
  495. //
  496. // Note: You must call the "Send" method on the returned request object in order
  497. // to execute the request.
  498. //
  499. // // Example sending a request using the DescribePipelinesRequest method.
  500. // req, resp := client.DescribePipelinesRequest(params)
  501. //
  502. // err := req.Send()
  503. // if err == nil { // resp is now filled
  504. // fmt.Println(resp)
  505. // }
  506. //
  507. func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) (req *request.Request, output *DescribePipelinesOutput) {
  508. op := &request.Operation{
  509. Name: opDescribePipelines,
  510. HTTPMethod: "POST",
  511. HTTPPath: "/",
  512. }
  513. if input == nil {
  514. input = &DescribePipelinesInput{}
  515. }
  516. req = c.newRequest(op, input, output)
  517. output = &DescribePipelinesOutput{}
  518. req.Data = output
  519. return
  520. }
  521. // DescribePipelines API operation for AWS Data Pipeline.
  522. //
  523. // Retrieves metadata about one or more pipelines. The information retrieved
  524. // includes the name of the pipeline, the pipeline identifier, its current state,
  525. // and the user account that owns the pipeline. Using account credentials, you
  526. // can retrieve metadata about pipelines that you or your IAM users have created.
  527. // If you are using an IAM user account, you can retrieve metadata about only
  528. // those pipelines for which you have read permissions.
  529. //
  530. // To retrieve the full pipeline definition instead of metadata about the pipeline,
  531. // call GetPipelineDefinition.
  532. //
  533. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  534. // with awserr.Error's Code and Message methods to get detailed information about
  535. // the error.
  536. //
  537. // See the AWS API reference guide for AWS Data Pipeline's
  538. // API operation DescribePipelines for usage and error information.
  539. //
  540. // Returned Error Codes:
  541. // * PipelineNotFoundException
  542. // The specified pipeline was not found. Verify that you used the correct user
  543. // and account identifiers.
  544. //
  545. // * PipelineDeletedException
  546. // The specified pipeline has been deleted.
  547. //
  548. // * InternalServiceError
  549. // An internal service error occurred.
  550. //
  551. // * InvalidRequestException
  552. // The request was not valid. Verify that your request was properly formatted,
  553. // that the signature was generated with the correct credentials, and that you
  554. // haven't exceeded any of the service limits for your account.
  555. //
  556. func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (*DescribePipelinesOutput, error) {
  557. req, out := c.DescribePipelinesRequest(input)
  558. err := req.Send()
  559. return out, err
  560. }
  561. const opEvaluateExpression = "EvaluateExpression"
  562. // EvaluateExpressionRequest generates a "aws/request.Request" representing the
  563. // client's request for the EvaluateExpression operation. The "output" return
  564. // value can be used to capture response data after the request's "Send" method
  565. // is called.
  566. //
  567. // See EvaluateExpression for usage and error information.
  568. //
  569. // Creating a request object using this method should be used when you want to inject
  570. // custom logic into the request's lifecycle using a custom handler, or if you want to
  571. // access properties on the request object before or after sending the request. If
  572. // you just want the service response, call the EvaluateExpression method directly
  573. // instead.
  574. //
  575. // Note: You must call the "Send" method on the returned request object in order
  576. // to execute the request.
  577. //
  578. // // Example sending a request using the EvaluateExpressionRequest method.
  579. // req, resp := client.EvaluateExpressionRequest(params)
  580. //
  581. // err := req.Send()
  582. // if err == nil { // resp is now filled
  583. // fmt.Println(resp)
  584. // }
  585. //
  586. func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) (req *request.Request, output *EvaluateExpressionOutput) {
  587. op := &request.Operation{
  588. Name: opEvaluateExpression,
  589. HTTPMethod: "POST",
  590. HTTPPath: "/",
  591. }
  592. if input == nil {
  593. input = &EvaluateExpressionInput{}
  594. }
  595. req = c.newRequest(op, input, output)
  596. output = &EvaluateExpressionOutput{}
  597. req.Data = output
  598. return
  599. }
  600. // EvaluateExpression API operation for AWS Data Pipeline.
  601. //
  602. // Task runners call EvaluateExpression to evaluate a string in the context
  603. // of the specified object. For example, a task runner can evaluate SQL queries
  604. // stored in Amazon S3.
  605. //
  606. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  607. // with awserr.Error's Code and Message methods to get detailed information about
  608. // the error.
  609. //
  610. // See the AWS API reference guide for AWS Data Pipeline's
  611. // API operation EvaluateExpression for usage and error information.
  612. //
  613. // Returned Error Codes:
  614. // * InternalServiceError
  615. // An internal service error occurred.
  616. //
  617. // * TaskNotFoundException
  618. // The specified task was not found.
  619. //
  620. // * InvalidRequestException
  621. // The request was not valid. Verify that your request was properly formatted,
  622. // that the signature was generated with the correct credentials, and that you
  623. // haven't exceeded any of the service limits for your account.
  624. //
  625. // * PipelineNotFoundException
  626. // The specified pipeline was not found. Verify that you used the correct user
  627. // and account identifiers.
  628. //
  629. // * PipelineDeletedException
  630. // The specified pipeline has been deleted.
  631. //
  632. func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (*EvaluateExpressionOutput, error) {
  633. req, out := c.EvaluateExpressionRequest(input)
  634. err := req.Send()
  635. return out, err
  636. }
  637. const opGetPipelineDefinition = "GetPipelineDefinition"
  638. // GetPipelineDefinitionRequest generates a "aws/request.Request" representing the
  639. // client's request for the GetPipelineDefinition operation. The "output" return
  640. // value can be used to capture response data after the request's "Send" method
  641. // is called.
  642. //
  643. // See GetPipelineDefinition for usage and error information.
  644. //
  645. // Creating a request object using this method should be used when you want to inject
  646. // custom logic into the request's lifecycle using a custom handler, or if you want to
  647. // access properties on the request object before or after sending the request. If
  648. // you just want the service response, call the GetPipelineDefinition method directly
  649. // instead.
  650. //
  651. // Note: You must call the "Send" method on the returned request object in order
  652. // to execute the request.
  653. //
  654. // // Example sending a request using the GetPipelineDefinitionRequest method.
  655. // req, resp := client.GetPipelineDefinitionRequest(params)
  656. //
  657. // err := req.Send()
  658. // if err == nil { // resp is now filled
  659. // fmt.Println(resp)
  660. // }
  661. //
  662. func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinitionInput) (req *request.Request, output *GetPipelineDefinitionOutput) {
  663. op := &request.Operation{
  664. Name: opGetPipelineDefinition,
  665. HTTPMethod: "POST",
  666. HTTPPath: "/",
  667. }
  668. if input == nil {
  669. input = &GetPipelineDefinitionInput{}
  670. }
  671. req = c.newRequest(op, input, output)
  672. output = &GetPipelineDefinitionOutput{}
  673. req.Data = output
  674. return
  675. }
  676. // GetPipelineDefinition API operation for AWS Data Pipeline.
  677. //
  678. // Gets the definition of the specified pipeline. You can call GetPipelineDefinition
  679. // to retrieve the pipeline definition that you provided using PutPipelineDefinition.
  680. //
  681. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  682. // with awserr.Error's Code and Message methods to get detailed information about
  683. // the error.
  684. //
  685. // See the AWS API reference guide for AWS Data Pipeline's
  686. // API operation GetPipelineDefinition for usage and error information.
  687. //
  688. // Returned Error Codes:
  689. // * InternalServiceError
  690. // An internal service error occurred.
  691. //
  692. // * InvalidRequestException
  693. // The request was not valid. Verify that your request was properly formatted,
  694. // that the signature was generated with the correct credentials, and that you
  695. // haven't exceeded any of the service limits for your account.
  696. //
  697. // * PipelineNotFoundException
  698. // The specified pipeline was not found. Verify that you used the correct user
  699. // and account identifiers.
  700. //
  701. // * PipelineDeletedException
  702. // The specified pipeline has been deleted.
  703. //
  704. func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (*GetPipelineDefinitionOutput, error) {
  705. req, out := c.GetPipelineDefinitionRequest(input)
  706. err := req.Send()
  707. return out, err
  708. }
  709. const opListPipelines = "ListPipelines"
  710. // ListPipelinesRequest generates a "aws/request.Request" representing the
  711. // client's request for the ListPipelines operation. The "output" return
  712. // value can be used to capture response data after the request's "Send" method
  713. // is called.
  714. //
  715. // See ListPipelines for usage and error information.
  716. //
  717. // Creating a request object using this method should be used when you want to inject
  718. // custom logic into the request's lifecycle using a custom handler, or if you want to
  719. // access properties on the request object before or after sending the request. If
  720. // you just want the service response, call the ListPipelines method directly
  721. // instead.
  722. //
  723. // Note: You must call the "Send" method on the returned request object in order
  724. // to execute the request.
  725. //
  726. // // Example sending a request using the ListPipelinesRequest method.
  727. // req, resp := client.ListPipelinesRequest(params)
  728. //
  729. // err := req.Send()
  730. // if err == nil { // resp is now filled
  731. // fmt.Println(resp)
  732. // }
  733. //
  734. func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
  735. op := &request.Operation{
  736. Name: opListPipelines,
  737. HTTPMethod: "POST",
  738. HTTPPath: "/",
  739. Paginator: &request.Paginator{
  740. InputTokens: []string{"marker"},
  741. OutputTokens: []string{"marker"},
  742. LimitToken: "",
  743. TruncationToken: "hasMoreResults",
  744. },
  745. }
  746. if input == nil {
  747. input = &ListPipelinesInput{}
  748. }
  749. req = c.newRequest(op, input, output)
  750. output = &ListPipelinesOutput{}
  751. req.Data = output
  752. return
  753. }
  754. // ListPipelines API operation for AWS Data Pipeline.
  755. //
  756. // Lists the pipeline identifiers for all active pipelines that you have permission
  757. // to access.
  758. //
  759. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  760. // with awserr.Error's Code and Message methods to get detailed information about
  761. // the error.
  762. //
  763. // See the AWS API reference guide for AWS Data Pipeline's
  764. // API operation ListPipelines for usage and error information.
  765. //
  766. // Returned Error Codes:
  767. // * InternalServiceError
  768. // An internal service error occurred.
  769. //
  770. // * InvalidRequestException
  771. // The request was not valid. Verify that your request was properly formatted,
  772. // that the signature was generated with the correct credentials, and that you
  773. // haven't exceeded any of the service limits for your account.
  774. //
  775. func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
  776. req, out := c.ListPipelinesRequest(input)
  777. err := req.Send()
  778. return out, err
  779. }
  780. // ListPipelinesPages iterates over the pages of a ListPipelines operation,
  781. // calling the "fn" function with the response data for each page. To stop
  782. // iterating, return false from the fn function.
  783. //
  784. // See ListPipelines method for more information on how to use this operation.
  785. //
  786. // Note: This operation can generate multiple requests to a service.
  787. //
  788. // // Example iterating over at most 3 pages of a ListPipelines operation.
  789. // pageNum := 0
  790. // err := client.ListPipelinesPages(params,
  791. // func(page *ListPipelinesOutput, lastPage bool) bool {
  792. // pageNum++
  793. // fmt.Println(page)
  794. // return pageNum <= 3
  795. // })
  796. //
  797. func (c *DataPipeline) ListPipelinesPages(input *ListPipelinesInput, fn func(p *ListPipelinesOutput, lastPage bool) (shouldContinue bool)) error {
  798. page, _ := c.ListPipelinesRequest(input)
  799. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  800. return page.EachPage(func(p interface{}, lastPage bool) bool {
  801. return fn(p.(*ListPipelinesOutput), lastPage)
  802. })
  803. }
  804. const opPollForTask = "PollForTask"
  805. // PollForTaskRequest generates a "aws/request.Request" representing the
  806. // client's request for the PollForTask operation. The "output" return
  807. // value can be used to capture response data after the request's "Send" method
  808. // is called.
  809. //
  810. // See PollForTask for usage and error information.
  811. //
  812. // Creating a request object using this method should be used when you want to inject
  813. // custom logic into the request's lifecycle using a custom handler, or if you want to
  814. // access properties on the request object before or after sending the request. If
  815. // you just want the service response, call the PollForTask method directly
  816. // instead.
  817. //
  818. // Note: You must call the "Send" method on the returned request object in order
  819. // to execute the request.
  820. //
  821. // // Example sending a request using the PollForTaskRequest method.
  822. // req, resp := client.PollForTaskRequest(params)
  823. //
  824. // err := req.Send()
  825. // if err == nil { // resp is now filled
  826. // fmt.Println(resp)
  827. // }
  828. //
  829. func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request.Request, output *PollForTaskOutput) {
  830. op := &request.Operation{
  831. Name: opPollForTask,
  832. HTTPMethod: "POST",
  833. HTTPPath: "/",
  834. }
  835. if input == nil {
  836. input = &PollForTaskInput{}
  837. }
  838. req = c.newRequest(op, input, output)
  839. output = &PollForTaskOutput{}
  840. req.Data = output
  841. return
  842. }
  843. // PollForTask API operation for AWS Data Pipeline.
  844. //
  845. // Task runners call PollForTask to receive a task to perform from AWS Data
  846. // Pipeline. The task runner specifies which tasks it can perform by setting
  847. // a value for the workerGroup parameter. The task returned can come from any
  848. // of the pipelines that match the workerGroup value passed in by the task runner
  849. // and that was launched using the IAM user credentials specified by the task
  850. // runner.
  851. //
  852. // If tasks are ready in the work queue, PollForTask returns a response immediately.
  853. // If no tasks are available in the queue, PollForTask uses long-polling and
  854. // holds on to a poll connection for up to a 90 seconds, during which time the
  855. // first newly scheduled task is handed to the task runner. To accomodate this,
  856. // set the socket timeout in your task runner to 90 seconds. The task runner
  857. // should not call PollForTask again on the same workerGroup until it receives
  858. // a response, and this can take up to 90 seconds.
  859. //
  860. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  861. // with awserr.Error's Code and Message methods to get detailed information about
  862. // the error.
  863. //
  864. // See the AWS API reference guide for AWS Data Pipeline's
  865. // API operation PollForTask for usage and error information.
  866. //
  867. // Returned Error Codes:
  868. // * InternalServiceError
  869. // An internal service error occurred.
  870. //
  871. // * InvalidRequestException
  872. // The request was not valid. Verify that your request was properly formatted,
  873. // that the signature was generated with the correct credentials, and that you
  874. // haven't exceeded any of the service limits for your account.
  875. //
  876. // * TaskNotFoundException
  877. // The specified task was not found.
  878. //
  879. func (c *DataPipeline) PollForTask(input *PollForTaskInput) (*PollForTaskOutput, error) {
  880. req, out := c.PollForTaskRequest(input)
  881. err := req.Send()
  882. return out, err
  883. }
  884. const opPutPipelineDefinition = "PutPipelineDefinition"
  885. // PutPipelineDefinitionRequest generates a "aws/request.Request" representing the
  886. // client's request for the PutPipelineDefinition operation. The "output" return
  887. // value can be used to capture response data after the request's "Send" method
  888. // is called.
  889. //
  890. // See PutPipelineDefinition for usage and error information.
  891. //
  892. // Creating a request object using this method should be used when you want to inject
  893. // custom logic into the request's lifecycle using a custom handler, or if you want to
  894. // access properties on the request object before or after sending the request. If
  895. // you just want the service response, call the PutPipelineDefinition method directly
  896. // instead.
  897. //
  898. // Note: You must call the "Send" method on the returned request object in order
  899. // to execute the request.
  900. //
  901. // // Example sending a request using the PutPipelineDefinitionRequest method.
  902. // req, resp := client.PutPipelineDefinitionRequest(params)
  903. //
  904. // err := req.Send()
  905. // if err == nil { // resp is now filled
  906. // fmt.Println(resp)
  907. // }
  908. //
  909. func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinitionInput) (req *request.Request, output *PutPipelineDefinitionOutput) {
  910. op := &request.Operation{
  911. Name: opPutPipelineDefinition,
  912. HTTPMethod: "POST",
  913. HTTPPath: "/",
  914. }
  915. if input == nil {
  916. input = &PutPipelineDefinitionInput{}
  917. }
  918. req = c.newRequest(op, input, output)
  919. output = &PutPipelineDefinitionOutput{}
  920. req.Data = output
  921. return
  922. }
  923. // PutPipelineDefinition API operation for AWS Data Pipeline.
  924. //
  925. // Adds tasks, schedules, and preconditions to the specified pipeline. You can
  926. // use PutPipelineDefinition to populate a new pipeline.
  927. //
  928. // PutPipelineDefinition also validates the configuration as it adds it to the
  929. // pipeline. Changes to the pipeline are saved unless one of the following three
  930. // validation errors exists in the pipeline.
  931. //
  932. // An object is missing a name or identifier field.
  933. // A string or reference field is empty.
  934. // The number of objects in the pipeline exceeds the maximum allowed objects.
  935. //
  936. // The pipeline is in a FINISHED state.
  937. // Pipeline object definitions are passed to the PutPipelineDefinition action
  938. // and returned by the GetPipelineDefinition action.
  939. //
  940. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  941. // with awserr.Error's Code and Message methods to get detailed information about
  942. // the error.
  943. //
  944. // See the AWS API reference guide for AWS Data Pipeline's
  945. // API operation PutPipelineDefinition for usage and error information.
  946. //
  947. // Returned Error Codes:
  948. // * InternalServiceError
  949. // An internal service error occurred.
  950. //
  951. // * InvalidRequestException
  952. // The request was not valid. Verify that your request was properly formatted,
  953. // that the signature was generated with the correct credentials, and that you
  954. // haven't exceeded any of the service limits for your account.
  955. //
  956. // * PipelineNotFoundException
  957. // The specified pipeline was not found. Verify that you used the correct user
  958. // and account identifiers.
  959. //
  960. // * PipelineDeletedException
  961. // The specified pipeline has been deleted.
  962. //
  963. func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (*PutPipelineDefinitionOutput, error) {
  964. req, out := c.PutPipelineDefinitionRequest(input)
  965. err := req.Send()
  966. return out, err
  967. }
  968. const opQueryObjects = "QueryObjects"
  969. // QueryObjectsRequest generates a "aws/request.Request" representing the
  970. // client's request for the QueryObjects operation. The "output" return
  971. // value can be used to capture response data after the request's "Send" method
  972. // is called.
  973. //
  974. // See QueryObjects for usage and error information.
  975. //
  976. // Creating a request object using this method should be used when you want to inject
  977. // custom logic into the request's lifecycle using a custom handler, or if you want to
  978. // access properties on the request object before or after sending the request. If
  979. // you just want the service response, call the QueryObjects method directly
  980. // instead.
  981. //
  982. // Note: You must call the "Send" method on the returned request object in order
  983. // to execute the request.
  984. //
  985. // // Example sending a request using the QueryObjectsRequest method.
  986. // req, resp := client.QueryObjectsRequest(params)
  987. //
  988. // err := req.Send()
  989. // if err == nil { // resp is now filled
  990. // fmt.Println(resp)
  991. // }
  992. //
  993. func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *request.Request, output *QueryObjectsOutput) {
  994. op := &request.Operation{
  995. Name: opQueryObjects,
  996. HTTPMethod: "POST",
  997. HTTPPath: "/",
  998. Paginator: &request.Paginator{
  999. InputTokens: []string{"marker"},
  1000. OutputTokens: []string{"marker"},
  1001. LimitToken: "limit",
  1002. TruncationToken: "hasMoreResults",
  1003. },
  1004. }
  1005. if input == nil {
  1006. input = &QueryObjectsInput{}
  1007. }
  1008. req = c.newRequest(op, input, output)
  1009. output = &QueryObjectsOutput{}
  1010. req.Data = output
  1011. return
  1012. }
  1013. // QueryObjects API operation for AWS Data Pipeline.
  1014. //
  1015. // Queries the specified pipeline for the names of objects that match the specified
  1016. // set of conditions.
  1017. //
  1018. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1019. // with awserr.Error's Code and Message methods to get detailed information about
  1020. // the error.
  1021. //
  1022. // See the AWS API reference guide for AWS Data Pipeline's
  1023. // API operation QueryObjects for usage and error information.
  1024. //
  1025. // Returned Error Codes:
  1026. // * PipelineNotFoundException
  1027. // The specified pipeline was not found. Verify that you used the correct user
  1028. // and account identifiers.
  1029. //
  1030. // * PipelineDeletedException
  1031. // The specified pipeline has been deleted.
  1032. //
  1033. // * InternalServiceError
  1034. // An internal service error occurred.
  1035. //
  1036. // * InvalidRequestException
  1037. // The request was not valid. Verify that your request was properly formatted,
  1038. // that the signature was generated with the correct credentials, and that you
  1039. // haven't exceeded any of the service limits for your account.
  1040. //
  1041. func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutput, error) {
  1042. req, out := c.QueryObjectsRequest(input)
  1043. err := req.Send()
  1044. return out, err
  1045. }
  1046. // QueryObjectsPages iterates over the pages of a QueryObjects operation,
  1047. // calling the "fn" function with the response data for each page. To stop
  1048. // iterating, return false from the fn function.
  1049. //
  1050. // See QueryObjects method for more information on how to use this operation.
  1051. //
  1052. // Note: This operation can generate multiple requests to a service.
  1053. //
  1054. // // Example iterating over at most 3 pages of a QueryObjects operation.
  1055. // pageNum := 0
  1056. // err := client.QueryObjectsPages(params,
  1057. // func(page *QueryObjectsOutput, lastPage bool) bool {
  1058. // pageNum++
  1059. // fmt.Println(page)
  1060. // return pageNum <= 3
  1061. // })
  1062. //
  1063. func (c *DataPipeline) QueryObjectsPages(input *QueryObjectsInput, fn func(p *QueryObjectsOutput, lastPage bool) (shouldContinue bool)) error {
  1064. page, _ := c.QueryObjectsRequest(input)
  1065. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  1066. return page.EachPage(func(p interface{}, lastPage bool) bool {
  1067. return fn(p.(*QueryObjectsOutput), lastPage)
  1068. })
  1069. }
  1070. const opRemoveTags = "RemoveTags"
  1071. // RemoveTagsRequest generates a "aws/request.Request" representing the
  1072. // client's request for the RemoveTags operation. The "output" return
  1073. // value can be used to capture response data after the request's "Send" method
  1074. // is called.
  1075. //
  1076. // See RemoveTags for usage and error information.
  1077. //
  1078. // Creating a request object using this method should be used when you want to inject
  1079. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1080. // access properties on the request object before or after sending the request. If
  1081. // you just want the service response, call the RemoveTags method directly
  1082. // instead.
  1083. //
  1084. // Note: You must call the "Send" method on the returned request object in order
  1085. // to execute the request.
  1086. //
  1087. // // Example sending a request using the RemoveTagsRequest method.
  1088. // req, resp := client.RemoveTagsRequest(params)
  1089. //
  1090. // err := req.Send()
  1091. // if err == nil { // resp is now filled
  1092. // fmt.Println(resp)
  1093. // }
  1094. //
  1095. func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
  1096. op := &request.Operation{
  1097. Name: opRemoveTags,
  1098. HTTPMethod: "POST",
  1099. HTTPPath: "/",
  1100. }
  1101. if input == nil {
  1102. input = &RemoveTagsInput{}
  1103. }
  1104. req = c.newRequest(op, input, output)
  1105. output = &RemoveTagsOutput{}
  1106. req.Data = output
  1107. return
  1108. }
  1109. // RemoveTags API operation for AWS Data Pipeline.
  1110. //
  1111. // Removes existing tags from the specified pipeline.
  1112. //
  1113. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1114. // with awserr.Error's Code and Message methods to get detailed information about
  1115. // the error.
  1116. //
  1117. // See the AWS API reference guide for AWS Data Pipeline's
  1118. // API operation RemoveTags for usage and error information.
  1119. //
  1120. // Returned Error Codes:
  1121. // * InternalServiceError
  1122. // An internal service error occurred.
  1123. //
  1124. // * InvalidRequestException
  1125. // The request was not valid. Verify that your request was properly formatted,
  1126. // that the signature was generated with the correct credentials, and that you
  1127. // haven't exceeded any of the service limits for your account.
  1128. //
  1129. // * PipelineNotFoundException
  1130. // The specified pipeline was not found. Verify that you used the correct user
  1131. // and account identifiers.
  1132. //
  1133. // * PipelineDeletedException
  1134. // The specified pipeline has been deleted.
  1135. //
  1136. func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
  1137. req, out := c.RemoveTagsRequest(input)
  1138. err := req.Send()
  1139. return out, err
  1140. }
  1141. const opReportTaskProgress = "ReportTaskProgress"
  1142. // ReportTaskProgressRequest generates a "aws/request.Request" representing the
  1143. // client's request for the ReportTaskProgress operation. The "output" return
  1144. // value can be used to capture response data after the request's "Send" method
  1145. // is called.
  1146. //
  1147. // See ReportTaskProgress for usage and error information.
  1148. //
  1149. // Creating a request object using this method should be used when you want to inject
  1150. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1151. // access properties on the request object before or after sending the request. If
  1152. // you just want the service response, call the ReportTaskProgress method directly
  1153. // instead.
  1154. //
  1155. // Note: You must call the "Send" method on the returned request object in order
  1156. // to execute the request.
  1157. //
  1158. // // Example sending a request using the ReportTaskProgressRequest method.
  1159. // req, resp := client.ReportTaskProgressRequest(params)
  1160. //
  1161. // err := req.Send()
  1162. // if err == nil { // resp is now filled
  1163. // fmt.Println(resp)
  1164. // }
  1165. //
  1166. func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) (req *request.Request, output *ReportTaskProgressOutput) {
  1167. op := &request.Operation{
  1168. Name: opReportTaskProgress,
  1169. HTTPMethod: "POST",
  1170. HTTPPath: "/",
  1171. }
  1172. if input == nil {
  1173. input = &ReportTaskProgressInput{}
  1174. }
  1175. req = c.newRequest(op, input, output)
  1176. output = &ReportTaskProgressOutput{}
  1177. req.Data = output
  1178. return
  1179. }
  1180. // ReportTaskProgress API operation for AWS Data Pipeline.
  1181. //
  1182. // Task runners call ReportTaskProgress when assigned a task to acknowledge
  1183. // that it has the task. If the web service does not receive this acknowledgement
  1184. // within 2 minutes, it assigns the task in a subsequent PollForTask call. After
  1185. // this initial acknowledgement, the task runner only needs to report progress
  1186. // every 15 minutes to maintain its ownership of the task. You can change this
  1187. // reporting time from 15 minutes by specifying a reportProgressTimeout field
  1188. // in your pipeline.
  1189. //
  1190. // If a task runner does not report its status after 5 minutes, AWS Data Pipeline
  1191. // assumes that the task runner is unable to process the task and reassigns
  1192. // the task in a subsequent response to PollForTask. Task runners should call
  1193. // ReportTaskProgress every 60 seconds.
  1194. //
  1195. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1196. // with awserr.Error's Code and Message methods to get detailed information about
  1197. // the error.
  1198. //
  1199. // See the AWS API reference guide for AWS Data Pipeline's
  1200. // API operation ReportTaskProgress for usage and error information.
  1201. //
  1202. // Returned Error Codes:
  1203. // * InternalServiceError
  1204. // An internal service error occurred.
  1205. //
  1206. // * InvalidRequestException
  1207. // The request was not valid. Verify that your request was properly formatted,
  1208. // that the signature was generated with the correct credentials, and that you
  1209. // haven't exceeded any of the service limits for your account.
  1210. //
  1211. // * TaskNotFoundException
  1212. // The specified task was not found.
  1213. //
  1214. // * PipelineNotFoundException
  1215. // The specified pipeline was not found. Verify that you used the correct user
  1216. // and account identifiers.
  1217. //
  1218. // * PipelineDeletedException
  1219. // The specified pipeline has been deleted.
  1220. //
  1221. func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (*ReportTaskProgressOutput, error) {
  1222. req, out := c.ReportTaskProgressRequest(input)
  1223. err := req.Send()
  1224. return out, err
  1225. }
  1226. const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat"
  1227. // ReportTaskRunnerHeartbeatRequest generates a "aws/request.Request" representing the
  1228. // client's request for the ReportTaskRunnerHeartbeat operation. The "output" return
  1229. // value can be used to capture response data after the request's "Send" method
  1230. // is called.
  1231. //
  1232. // See ReportTaskRunnerHeartbeat for usage and error information.
  1233. //
  1234. // Creating a request object using this method should be used when you want to inject
  1235. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1236. // access properties on the request object before or after sending the request. If
  1237. // you just want the service response, call the ReportTaskRunnerHeartbeat method directly
  1238. // instead.
  1239. //
  1240. // Note: You must call the "Send" method on the returned request object in order
  1241. // to execute the request.
  1242. //
  1243. // // Example sending a request using the ReportTaskRunnerHeartbeatRequest method.
  1244. // req, resp := client.ReportTaskRunnerHeartbeatRequest(params)
  1245. //
  1246. // err := req.Send()
  1247. // if err == nil { // resp is now filled
  1248. // fmt.Println(resp)
  1249. // }
  1250. //
  1251. func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerHeartbeatInput) (req *request.Request, output *ReportTaskRunnerHeartbeatOutput) {
  1252. op := &request.Operation{
  1253. Name: opReportTaskRunnerHeartbeat,
  1254. HTTPMethod: "POST",
  1255. HTTPPath: "/",
  1256. }
  1257. if input == nil {
  1258. input = &ReportTaskRunnerHeartbeatInput{}
  1259. }
  1260. req = c.newRequest(op, input, output)
  1261. output = &ReportTaskRunnerHeartbeatOutput{}
  1262. req.Data = output
  1263. return
  1264. }
  1265. // ReportTaskRunnerHeartbeat API operation for AWS Data Pipeline.
  1266. //
  1267. // Task runners call ReportTaskRunnerHeartbeat every 15 minutes to indicate
  1268. // that they are operational. If the AWS Data Pipeline Task Runner is launched
  1269. // on a resource managed by AWS Data Pipeline, the web service can use this
  1270. // call to detect when the task runner application has failed and restart a
  1271. // new instance.
  1272. //
  1273. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1274. // with awserr.Error's Code and Message methods to get detailed information about
  1275. // the error.
  1276. //
  1277. // See the AWS API reference guide for AWS Data Pipeline's
  1278. // API operation ReportTaskRunnerHeartbeat for usage and error information.
  1279. //
  1280. // Returned Error Codes:
  1281. // * InternalServiceError
  1282. // An internal service error occurred.
  1283. //
  1284. // * InvalidRequestException
  1285. // The request was not valid. Verify that your request was properly formatted,
  1286. // that the signature was generated with the correct credentials, and that you
  1287. // haven't exceeded any of the service limits for your account.
  1288. //
  1289. func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (*ReportTaskRunnerHeartbeatOutput, error) {
  1290. req, out := c.ReportTaskRunnerHeartbeatRequest(input)
  1291. err := req.Send()
  1292. return out, err
  1293. }
  1294. const opSetStatus = "SetStatus"
  1295. // SetStatusRequest generates a "aws/request.Request" representing the
  1296. // client's request for the SetStatus operation. The "output" return
  1297. // value can be used to capture response data after the request's "Send" method
  1298. // is called.
  1299. //
  1300. // See SetStatus for usage and error information.
  1301. //
  1302. // Creating a request object using this method should be used when you want to inject
  1303. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1304. // access properties on the request object before or after sending the request. If
  1305. // you just want the service response, call the SetStatus method directly
  1306. // instead.
  1307. //
  1308. // Note: You must call the "Send" method on the returned request object in order
  1309. // to execute the request.
  1310. //
  1311. // // Example sending a request using the SetStatusRequest method.
  1312. // req, resp := client.SetStatusRequest(params)
  1313. //
  1314. // err := req.Send()
  1315. // if err == nil { // resp is now filled
  1316. // fmt.Println(resp)
  1317. // }
  1318. //
  1319. func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Request, output *SetStatusOutput) {
  1320. op := &request.Operation{
  1321. Name: opSetStatus,
  1322. HTTPMethod: "POST",
  1323. HTTPPath: "/",
  1324. }
  1325. if input == nil {
  1326. input = &SetStatusInput{}
  1327. }
  1328. req = c.newRequest(op, input, output)
  1329. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  1330. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  1331. output = &SetStatusOutput{}
  1332. req.Data = output
  1333. return
  1334. }
  1335. // SetStatus API operation for AWS Data Pipeline.
  1336. //
  1337. // Requests that the status of the specified physical or logical pipeline objects
  1338. // be updated in the specified pipeline. This update might not occur immediately,
  1339. // but is eventually consistent. The status that can be set depends on the type
  1340. // of object (for example, DataNode or Activity). You cannot perform this operation
  1341. // on FINISHED pipelines and attempting to do so returns InvalidRequestException.
  1342. //
  1343. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1344. // with awserr.Error's Code and Message methods to get detailed information about
  1345. // the error.
  1346. //
  1347. // See the AWS API reference guide for AWS Data Pipeline's
  1348. // API operation SetStatus for usage and error information.
  1349. //
  1350. // Returned Error Codes:
  1351. // * PipelineNotFoundException
  1352. // The specified pipeline was not found. Verify that you used the correct user
  1353. // and account identifiers.
  1354. //
  1355. // * PipelineDeletedException
  1356. // The specified pipeline has been deleted.
  1357. //
  1358. // * InternalServiceError
  1359. // An internal service error occurred.
  1360. //
  1361. // * InvalidRequestException
  1362. // The request was not valid. Verify that your request was properly formatted,
  1363. // that the signature was generated with the correct credentials, and that you
  1364. // haven't exceeded any of the service limits for your account.
  1365. //
  1366. func (c *DataPipeline) SetStatus(input *SetStatusInput) (*SetStatusOutput, error) {
  1367. req, out := c.SetStatusRequest(input)
  1368. err := req.Send()
  1369. return out, err
  1370. }
  1371. const opSetTaskStatus = "SetTaskStatus"
  1372. // SetTaskStatusRequest generates a "aws/request.Request" representing the
  1373. // client's request for the SetTaskStatus operation. The "output" return
  1374. // value can be used to capture response data after the request's "Send" method
  1375. // is called.
  1376. //
  1377. // See SetTaskStatus for usage and error information.
  1378. //
  1379. // Creating a request object using this method should be used when you want to inject
  1380. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1381. // access properties on the request object before or after sending the request. If
  1382. // you just want the service response, call the SetTaskStatus method directly
  1383. // instead.
  1384. //
  1385. // Note: You must call the "Send" method on the returned request object in order
  1386. // to execute the request.
  1387. //
  1388. // // Example sending a request using the SetTaskStatusRequest method.
  1389. // req, resp := client.SetTaskStatusRequest(params)
  1390. //
  1391. // err := req.Send()
  1392. // if err == nil { // resp is now filled
  1393. // fmt.Println(resp)
  1394. // }
  1395. //
  1396. func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *request.Request, output *SetTaskStatusOutput) {
  1397. op := &request.Operation{
  1398. Name: opSetTaskStatus,
  1399. HTTPMethod: "POST",
  1400. HTTPPath: "/",
  1401. }
  1402. if input == nil {
  1403. input = &SetTaskStatusInput{}
  1404. }
  1405. req = c.newRequest(op, input, output)
  1406. output = &SetTaskStatusOutput{}
  1407. req.Data = output
  1408. return
  1409. }
  1410. // SetTaskStatus API operation for AWS Data Pipeline.
  1411. //
  1412. // Task runners call SetTaskStatus to notify AWS Data Pipeline that a task is
  1413. // completed and provide information about the final status. A task runner makes
  1414. // this call regardless of whether the task was sucessful. A task runner does
  1415. // not need to call SetTaskStatus for tasks that are canceled by the web service
  1416. // during a call to ReportTaskProgress.
  1417. //
  1418. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1419. // with awserr.Error's Code and Message methods to get detailed information about
  1420. // the error.
  1421. //
  1422. // See the AWS API reference guide for AWS Data Pipeline's
  1423. // API operation SetTaskStatus for usage and error information.
  1424. //
  1425. // Returned Error Codes:
  1426. // * InternalServiceError
  1427. // An internal service error occurred.
  1428. //
  1429. // * TaskNotFoundException
  1430. // The specified task was not found.
  1431. //
  1432. // * InvalidRequestException
  1433. // The request was not valid. Verify that your request was properly formatted,
  1434. // that the signature was generated with the correct credentials, and that you
  1435. // haven't exceeded any of the service limits for your account.
  1436. //
  1437. // * PipelineNotFoundException
  1438. // The specified pipeline was not found. Verify that you used the correct user
  1439. // and account identifiers.
  1440. //
  1441. // * PipelineDeletedException
  1442. // The specified pipeline has been deleted.
  1443. //
  1444. func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (*SetTaskStatusOutput, error) {
  1445. req, out := c.SetTaskStatusRequest(input)
  1446. err := req.Send()
  1447. return out, err
  1448. }
  1449. const opValidatePipelineDefinition = "ValidatePipelineDefinition"
  1450. // ValidatePipelineDefinitionRequest generates a "aws/request.Request" representing the
  1451. // client's request for the ValidatePipelineDefinition operation. The "output" return
  1452. // value can be used to capture response data after the request's "Send" method
  1453. // is called.
  1454. //
  1455. // See ValidatePipelineDefinition for usage and error information.
  1456. //
  1457. // Creating a request object using this method should be used when you want to inject
  1458. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1459. // access properties on the request object before or after sending the request. If
  1460. // you just want the service response, call the ValidatePipelineDefinition method directly
  1461. // instead.
  1462. //
  1463. // Note: You must call the "Send" method on the returned request object in order
  1464. // to execute the request.
  1465. //
  1466. // // Example sending a request using the ValidatePipelineDefinitionRequest method.
  1467. // req, resp := client.ValidatePipelineDefinitionRequest(params)
  1468. //
  1469. // err := req.Send()
  1470. // if err == nil { // resp is now filled
  1471. // fmt.Println(resp)
  1472. // }
  1473. //
  1474. func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipelineDefinitionInput) (req *request.Request, output *ValidatePipelineDefinitionOutput) {
  1475. op := &request.Operation{
  1476. Name: opValidatePipelineDefinition,
  1477. HTTPMethod: "POST",
  1478. HTTPPath: "/",
  1479. }
  1480. if input == nil {
  1481. input = &ValidatePipelineDefinitionInput{}
  1482. }
  1483. req = c.newRequest(op, input, output)
  1484. output = &ValidatePipelineDefinitionOutput{}
  1485. req.Data = output
  1486. return
  1487. }
  1488. // ValidatePipelineDefinition API operation for AWS Data Pipeline.
  1489. //
  1490. // Validates the specified pipeline definition to ensure that it is well formed
  1491. // and can be run without error.
  1492. //
  1493. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1494. // with awserr.Error's Code and Message methods to get detailed information about
  1495. // the error.
  1496. //
  1497. // See the AWS API reference guide for AWS Data Pipeline's
  1498. // API operation ValidatePipelineDefinition for usage and error information.
  1499. //
  1500. // Returned Error Codes:
  1501. // * InternalServiceError
  1502. // An internal service error occurred.
  1503. //
  1504. // * InvalidRequestException
  1505. // The request was not valid. Verify that your request was properly formatted,
  1506. // that the signature was generated with the correct credentials, and that you
  1507. // haven't exceeded any of the service limits for your account.
  1508. //
  1509. // * PipelineNotFoundException
  1510. // The specified pipeline was not found. Verify that you used the correct user
  1511. // and account identifiers.
  1512. //
  1513. // * PipelineDeletedException
  1514. // The specified pipeline has been deleted.
  1515. //
  1516. func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinitionInput) (*ValidatePipelineDefinitionOutput, error) {
  1517. req, out := c.ValidatePipelineDefinitionRequest(input)
  1518. err := req.Send()
  1519. return out, err
  1520. }
  1521. // Contains the parameters for ActivatePipeline.
  1522. type ActivatePipelineInput struct {
  1523. _ struct{} `type:"structure"`
  1524. // A list of parameter values to pass to the pipeline at activation.
  1525. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  1526. // The ID of the pipeline.
  1527. //
  1528. // PipelineId is a required field
  1529. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1530. // The date and time to resume the pipeline. By default, the pipeline resumes
  1531. // from the last completed execution.
  1532. StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp" timestampFormat:"unix"`
  1533. }
  1534. // String returns the string representation
  1535. func (s ActivatePipelineInput) String() string {
  1536. return awsutil.Prettify(s)
  1537. }
  1538. // GoString returns the string representation
  1539. func (s ActivatePipelineInput) GoString() string {
  1540. return s.String()
  1541. }
  1542. // Validate inspects the fields of the type to determine if they are valid.
  1543. func (s *ActivatePipelineInput) Validate() error {
  1544. invalidParams := request.ErrInvalidParams{Context: "ActivatePipelineInput"}
  1545. if s.PipelineId == nil {
  1546. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1547. }
  1548. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1549. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1550. }
  1551. if s.ParameterValues != nil {
  1552. for i, v := range s.ParameterValues {
  1553. if v == nil {
  1554. continue
  1555. }
  1556. if err := v.Validate(); err != nil {
  1557. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
  1558. }
  1559. }
  1560. }
  1561. if invalidParams.Len() > 0 {
  1562. return invalidParams
  1563. }
  1564. return nil
  1565. }
  1566. // Contains the output of ActivatePipeline.
  1567. type ActivatePipelineOutput struct {
  1568. _ struct{} `type:"structure"`
  1569. }
  1570. // String returns the string representation
  1571. func (s ActivatePipelineOutput) String() string {
  1572. return awsutil.Prettify(s)
  1573. }
  1574. // GoString returns the string representation
  1575. func (s ActivatePipelineOutput) GoString() string {
  1576. return s.String()
  1577. }
  1578. // Contains the parameters for AddTags.
  1579. type AddTagsInput struct {
  1580. _ struct{} `type:"structure"`
  1581. // The ID of the pipeline.
  1582. //
  1583. // PipelineId is a required field
  1584. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1585. // The tags to add, as key/value pairs.
  1586. //
  1587. // Tags is a required field
  1588. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  1589. }
  1590. // String returns the string representation
  1591. func (s AddTagsInput) String() string {
  1592. return awsutil.Prettify(s)
  1593. }
  1594. // GoString returns the string representation
  1595. func (s AddTagsInput) GoString() string {
  1596. return s.String()
  1597. }
  1598. // Validate inspects the fields of the type to determine if they are valid.
  1599. func (s *AddTagsInput) Validate() error {
  1600. invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
  1601. if s.PipelineId == nil {
  1602. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1603. }
  1604. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1605. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1606. }
  1607. if s.Tags == nil {
  1608. invalidParams.Add(request.NewErrParamRequired("Tags"))
  1609. }
  1610. if s.Tags != nil {
  1611. for i, v := range s.Tags {
  1612. if v == nil {
  1613. continue
  1614. }
  1615. if err := v.Validate(); err != nil {
  1616. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  1617. }
  1618. }
  1619. }
  1620. if invalidParams.Len() > 0 {
  1621. return invalidParams
  1622. }
  1623. return nil
  1624. }
  1625. // Contains the output of AddTags.
  1626. type AddTagsOutput struct {
  1627. _ struct{} `type:"structure"`
  1628. }
  1629. // String returns the string representation
  1630. func (s AddTagsOutput) String() string {
  1631. return awsutil.Prettify(s)
  1632. }
  1633. // GoString returns the string representation
  1634. func (s AddTagsOutput) GoString() string {
  1635. return s.String()
  1636. }
  1637. // Contains the parameters for CreatePipeline.
  1638. type CreatePipelineInput struct {
  1639. _ struct{} `type:"structure"`
  1640. // The description for the pipeline.
  1641. Description *string `locationName:"description" type:"string"`
  1642. // The name for the pipeline. You can use the same name for multiple pipelines
  1643. // associated with your AWS account, because AWS Data Pipeline assigns each
  1644. // pipeline a unique pipeline identifier.
  1645. //
  1646. // Name is a required field
  1647. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  1648. // A list of tags to associate with the pipeline at creation. Tags let you control
  1649. // access to pipelines. For more information, see Controlling User Access to
  1650. // Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  1651. // in the AWS Data Pipeline Developer Guide.
  1652. Tags []*Tag `locationName:"tags" type:"list"`
  1653. // A unique identifier. This identifier is not the same as the pipeline identifier
  1654. // assigned by AWS Data Pipeline. You are responsible for defining the format
  1655. // and ensuring the uniqueness of this identifier. You use this parameter to
  1656. // ensure idempotency during repeated calls to CreatePipeline. For example,
  1657. // if the first call to CreatePipeline does not succeed, you can pass in the
  1658. // same unique identifier and pipeline name combination on a subsequent call
  1659. // to CreatePipeline. CreatePipeline ensures that if a pipeline already exists
  1660. // with the same name and unique identifier, a new pipeline is not created.
  1661. // Instead, you'll receive the pipeline identifier from the previous attempt.
  1662. // The uniqueness of the name and unique identifier combination is scoped to
  1663. // the AWS account or IAM user credentials.
  1664. //
  1665. // UniqueId is a required field
  1666. UniqueId *string `locationName:"uniqueId" min:"1" type:"string" required:"true"`
  1667. }
  1668. // String returns the string representation
  1669. func (s CreatePipelineInput) String() string {
  1670. return awsutil.Prettify(s)
  1671. }
  1672. // GoString returns the string representation
  1673. func (s CreatePipelineInput) GoString() string {
  1674. return s.String()
  1675. }
  1676. // Validate inspects the fields of the type to determine if they are valid.
  1677. func (s *CreatePipelineInput) Validate() error {
  1678. invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
  1679. if s.Name == nil {
  1680. invalidParams.Add(request.NewErrParamRequired("Name"))
  1681. }
  1682. if s.Name != nil && len(*s.Name) < 1 {
  1683. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  1684. }
  1685. if s.UniqueId == nil {
  1686. invalidParams.Add(request.NewErrParamRequired("UniqueId"))
  1687. }
  1688. if s.UniqueId != nil && len(*s.UniqueId) < 1 {
  1689. invalidParams.Add(request.NewErrParamMinLen("UniqueId", 1))
  1690. }
  1691. if s.Tags != nil {
  1692. for i, v := range s.Tags {
  1693. if v == nil {
  1694. continue
  1695. }
  1696. if err := v.Validate(); err != nil {
  1697. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  1698. }
  1699. }
  1700. }
  1701. if invalidParams.Len() > 0 {
  1702. return invalidParams
  1703. }
  1704. return nil
  1705. }
  1706. // Contains the output of CreatePipeline.
  1707. type CreatePipelineOutput struct {
  1708. _ struct{} `type:"structure"`
  1709. // The ID that AWS Data Pipeline assigns the newly created pipeline. For example,
  1710. // df-06372391ZG65EXAMPLE.
  1711. //
  1712. // PipelineId is a required field
  1713. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1714. }
  1715. // String returns the string representation
  1716. func (s CreatePipelineOutput) String() string {
  1717. return awsutil.Prettify(s)
  1718. }
  1719. // GoString returns the string representation
  1720. func (s CreatePipelineOutput) GoString() string {
  1721. return s.String()
  1722. }
  1723. // Contains the parameters for DeactivatePipeline.
  1724. type DeactivatePipelineInput struct {
  1725. _ struct{} `type:"structure"`
  1726. // Indicates whether to cancel any running objects. The default is true, which
  1727. // sets the state of any running objects to CANCELED. If this value is false,
  1728. // the pipeline is deactivated after all running objects finish.
  1729. CancelActive *bool `locationName:"cancelActive" type:"boolean"`
  1730. // The ID of the pipeline.
  1731. //
  1732. // PipelineId is a required field
  1733. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1734. }
  1735. // String returns the string representation
  1736. func (s DeactivatePipelineInput) String() string {
  1737. return awsutil.Prettify(s)
  1738. }
  1739. // GoString returns the string representation
  1740. func (s DeactivatePipelineInput) GoString() string {
  1741. return s.String()
  1742. }
  1743. // Validate inspects the fields of the type to determine if they are valid.
  1744. func (s *DeactivatePipelineInput) Validate() error {
  1745. invalidParams := request.ErrInvalidParams{Context: "DeactivatePipelineInput"}
  1746. if s.PipelineId == nil {
  1747. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1748. }
  1749. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1750. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1751. }
  1752. if invalidParams.Len() > 0 {
  1753. return invalidParams
  1754. }
  1755. return nil
  1756. }
  1757. // Contains the output of DeactivatePipeline.
  1758. type DeactivatePipelineOutput struct {
  1759. _ struct{} `type:"structure"`
  1760. }
  1761. // String returns the string representation
  1762. func (s DeactivatePipelineOutput) String() string {
  1763. return awsutil.Prettify(s)
  1764. }
  1765. // GoString returns the string representation
  1766. func (s DeactivatePipelineOutput) GoString() string {
  1767. return s.String()
  1768. }
  1769. // Contains the parameters for DeletePipeline.
  1770. type DeletePipelineInput struct {
  1771. _ struct{} `type:"structure"`
  1772. // The ID of the pipeline.
  1773. //
  1774. // PipelineId is a required field
  1775. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1776. }
  1777. // String returns the string representation
  1778. func (s DeletePipelineInput) String() string {
  1779. return awsutil.Prettify(s)
  1780. }
  1781. // GoString returns the string representation
  1782. func (s DeletePipelineInput) GoString() string {
  1783. return s.String()
  1784. }
  1785. // Validate inspects the fields of the type to determine if they are valid.
  1786. func (s *DeletePipelineInput) Validate() error {
  1787. invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
  1788. if s.PipelineId == nil {
  1789. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1790. }
  1791. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1792. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1793. }
  1794. if invalidParams.Len() > 0 {
  1795. return invalidParams
  1796. }
  1797. return nil
  1798. }
  1799. type DeletePipelineOutput struct {
  1800. _ struct{} `type:"structure"`
  1801. }
  1802. // String returns the string representation
  1803. func (s DeletePipelineOutput) String() string {
  1804. return awsutil.Prettify(s)
  1805. }
  1806. // GoString returns the string representation
  1807. func (s DeletePipelineOutput) GoString() string {
  1808. return s.String()
  1809. }
  1810. // Contains the parameters for DescribeObjects.
  1811. type DescribeObjectsInput struct {
  1812. _ struct{} `type:"structure"`
  1813. // Indicates whether any expressions in the object should be evaluated when
  1814. // the object descriptions are returned.
  1815. EvaluateExpressions *bool `locationName:"evaluateExpressions" type:"boolean"`
  1816. // The starting point for the results to be returned. For the first call, this
  1817. // value should be empty. As long as there are more results, continue to call
  1818. // DescribeObjects with the marker value from the previous call to retrieve
  1819. // the next set of results.
  1820. Marker *string `locationName:"marker" type:"string"`
  1821. // The IDs of the pipeline objects that contain the definitions to be described.
  1822. // You can pass as many as 25 identifiers in a single call to DescribeObjects.
  1823. //
  1824. // ObjectIds is a required field
  1825. ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
  1826. // The ID of the pipeline that contains the object definitions.
  1827. //
  1828. // PipelineId is a required field
  1829. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1830. }
  1831. // String returns the string representation
  1832. func (s DescribeObjectsInput) String() string {
  1833. return awsutil.Prettify(s)
  1834. }
  1835. // GoString returns the string representation
  1836. func (s DescribeObjectsInput) GoString() string {
  1837. return s.String()
  1838. }
  1839. // Validate inspects the fields of the type to determine if they are valid.
  1840. func (s *DescribeObjectsInput) Validate() error {
  1841. invalidParams := request.ErrInvalidParams{Context: "DescribeObjectsInput"}
  1842. if s.ObjectIds == nil {
  1843. invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
  1844. }
  1845. if s.PipelineId == nil {
  1846. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1847. }
  1848. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1849. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1850. }
  1851. if invalidParams.Len() > 0 {
  1852. return invalidParams
  1853. }
  1854. return nil
  1855. }
  1856. // Contains the output of DescribeObjects.
  1857. type DescribeObjectsOutput struct {
  1858. _ struct{} `type:"structure"`
  1859. // Indicates whether there are more results to return.
  1860. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
  1861. // The starting point for the next page of results. To view the next page of
  1862. // results, call DescribeObjects again with this marker value. If the value
  1863. // is null, there are no more results.
  1864. Marker *string `locationName:"marker" type:"string"`
  1865. // An array of object definitions.
  1866. //
  1867. // PipelineObjects is a required field
  1868. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
  1869. }
  1870. // String returns the string representation
  1871. func (s DescribeObjectsOutput) String() string {
  1872. return awsutil.Prettify(s)
  1873. }
  1874. // GoString returns the string representation
  1875. func (s DescribeObjectsOutput) GoString() string {
  1876. return s.String()
  1877. }
  1878. // Contains the parameters for DescribePipelines.
  1879. type DescribePipelinesInput struct {
  1880. _ struct{} `type:"structure"`
  1881. // The IDs of the pipelines to describe. You can pass as many as 25 identifiers
  1882. // in a single call. To obtain pipeline IDs, call ListPipelines.
  1883. //
  1884. // PipelineIds is a required field
  1885. PipelineIds []*string `locationName:"pipelineIds" type:"list" required:"true"`
  1886. }
  1887. // String returns the string representation
  1888. func (s DescribePipelinesInput) String() string {
  1889. return awsutil.Prettify(s)
  1890. }
  1891. // GoString returns the string representation
  1892. func (s DescribePipelinesInput) GoString() string {
  1893. return s.String()
  1894. }
  1895. // Validate inspects the fields of the type to determine if they are valid.
  1896. func (s *DescribePipelinesInput) Validate() error {
  1897. invalidParams := request.ErrInvalidParams{Context: "DescribePipelinesInput"}
  1898. if s.PipelineIds == nil {
  1899. invalidParams.Add(request.NewErrParamRequired("PipelineIds"))
  1900. }
  1901. if invalidParams.Len() > 0 {
  1902. return invalidParams
  1903. }
  1904. return nil
  1905. }
  1906. // Contains the output of DescribePipelines.
  1907. type DescribePipelinesOutput struct {
  1908. _ struct{} `type:"structure"`
  1909. // An array of descriptions for the specified pipelines.
  1910. //
  1911. // PipelineDescriptionList is a required field
  1912. PipelineDescriptionList []*PipelineDescription `locationName:"pipelineDescriptionList" type:"list" required:"true"`
  1913. }
  1914. // String returns the string representation
  1915. func (s DescribePipelinesOutput) String() string {
  1916. return awsutil.Prettify(s)
  1917. }
  1918. // GoString returns the string representation
  1919. func (s DescribePipelinesOutput) GoString() string {
  1920. return s.String()
  1921. }
  1922. // Contains the parameters for EvaluateExpression.
  1923. type EvaluateExpressionInput struct {
  1924. _ struct{} `type:"structure"`
  1925. // The expression to evaluate.
  1926. //
  1927. // Expression is a required field
  1928. Expression *string `locationName:"expression" type:"string" required:"true"`
  1929. // The ID of the object.
  1930. //
  1931. // ObjectId is a required field
  1932. ObjectId *string `locationName:"objectId" min:"1" type:"string" required:"true"`
  1933. // The ID of the pipeline.
  1934. //
  1935. // PipelineId is a required field
  1936. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1937. }
  1938. // String returns the string representation
  1939. func (s EvaluateExpressionInput) String() string {
  1940. return awsutil.Prettify(s)
  1941. }
  1942. // GoString returns the string representation
  1943. func (s EvaluateExpressionInput) GoString() string {
  1944. return s.String()
  1945. }
  1946. // Validate inspects the fields of the type to determine if they are valid.
  1947. func (s *EvaluateExpressionInput) Validate() error {
  1948. invalidParams := request.ErrInvalidParams{Context: "EvaluateExpressionInput"}
  1949. if s.Expression == nil {
  1950. invalidParams.Add(request.NewErrParamRequired("Expression"))
  1951. }
  1952. if s.ObjectId == nil {
  1953. invalidParams.Add(request.NewErrParamRequired("ObjectId"))
  1954. }
  1955. if s.ObjectId != nil && len(*s.ObjectId) < 1 {
  1956. invalidParams.Add(request.NewErrParamMinLen("ObjectId", 1))
  1957. }
  1958. if s.PipelineId == nil {
  1959. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1960. }
  1961. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1962. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1963. }
  1964. if invalidParams.Len() > 0 {
  1965. return invalidParams
  1966. }
  1967. return nil
  1968. }
  1969. // Contains the output of EvaluateExpression.
  1970. type EvaluateExpressionOutput struct {
  1971. _ struct{} `type:"structure"`
  1972. // The evaluated expression.
  1973. //
  1974. // EvaluatedExpression is a required field
  1975. EvaluatedExpression *string `locationName:"evaluatedExpression" type:"string" required:"true"`
  1976. }
  1977. // String returns the string representation
  1978. func (s EvaluateExpressionOutput) String() string {
  1979. return awsutil.Prettify(s)
  1980. }
  1981. // GoString returns the string representation
  1982. func (s EvaluateExpressionOutput) GoString() string {
  1983. return s.String()
  1984. }
  1985. // A key-value pair that describes a property of a pipeline object. The value
  1986. // is specified as either a string value (StringValue) or a reference to another
  1987. // object (RefValue) but not as both.
  1988. type Field struct {
  1989. _ struct{} `type:"structure"`
  1990. // The field identifier.
  1991. //
  1992. // Key is a required field
  1993. Key *string `locationName:"key" min:"1" type:"string" required:"true"`
  1994. // The field value, expressed as the identifier of another object.
  1995. RefValue *string `locationName:"refValue" min:"1" type:"string"`
  1996. // The field value, expressed as a String.
  1997. StringValue *string `locationName:"stringValue" type:"string"`
  1998. }
  1999. // String returns the string representation
  2000. func (s Field) String() string {
  2001. return awsutil.Prettify(s)
  2002. }
  2003. // GoString returns the string representation
  2004. func (s Field) GoString() string {
  2005. return s.String()
  2006. }
  2007. // Validate inspects the fields of the type to determine if they are valid.
  2008. func (s *Field) Validate() error {
  2009. invalidParams := request.ErrInvalidParams{Context: "Field"}
  2010. if s.Key == nil {
  2011. invalidParams.Add(request.NewErrParamRequired("Key"))
  2012. }
  2013. if s.Key != nil && len(*s.Key) < 1 {
  2014. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  2015. }
  2016. if s.RefValue != nil && len(*s.RefValue) < 1 {
  2017. invalidParams.Add(request.NewErrParamMinLen("RefValue", 1))
  2018. }
  2019. if invalidParams.Len() > 0 {
  2020. return invalidParams
  2021. }
  2022. return nil
  2023. }
  2024. // Contains the parameters for GetPipelineDefinition.
  2025. type GetPipelineDefinitionInput struct {
  2026. _ struct{} `type:"structure"`
  2027. // The ID of the pipeline.
  2028. //
  2029. // PipelineId is a required field
  2030. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2031. // The version of the pipeline definition to retrieve. Set this parameter to
  2032. // latest (default) to use the last definition saved to the pipeline or active
  2033. // to use the last definition that was activated.
  2034. Version *string `locationName:"version" type:"string"`
  2035. }
  2036. // String returns the string representation
  2037. func (s GetPipelineDefinitionInput) String() string {
  2038. return awsutil.Prettify(s)
  2039. }
  2040. // GoString returns the string representation
  2041. func (s GetPipelineDefinitionInput) GoString() string {
  2042. return s.String()
  2043. }
  2044. // Validate inspects the fields of the type to determine if they are valid.
  2045. func (s *GetPipelineDefinitionInput) Validate() error {
  2046. invalidParams := request.ErrInvalidParams{Context: "GetPipelineDefinitionInput"}
  2047. if s.PipelineId == nil {
  2048. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2049. }
  2050. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2051. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2052. }
  2053. if invalidParams.Len() > 0 {
  2054. return invalidParams
  2055. }
  2056. return nil
  2057. }
  2058. // Contains the output of GetPipelineDefinition.
  2059. type GetPipelineDefinitionOutput struct {
  2060. _ struct{} `type:"structure"`
  2061. // The parameter objects used in the pipeline definition.
  2062. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
  2063. // The parameter values used in the pipeline definition.
  2064. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  2065. // The objects defined in the pipeline.
  2066. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list"`
  2067. }
  2068. // String returns the string representation
  2069. func (s GetPipelineDefinitionOutput) String() string {
  2070. return awsutil.Prettify(s)
  2071. }
  2072. // GoString returns the string representation
  2073. func (s GetPipelineDefinitionOutput) GoString() string {
  2074. return s.String()
  2075. }
  2076. // Identity information for the EC2 instance that is hosting the task runner.
  2077. // You can get this value by calling a metadata URI from the EC2 instance. For
  2078. // more information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
  2079. // in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves
  2080. // that your task runner is running on an EC2 instance, and ensures the proper
  2081. // AWS Data Pipeline service charges are applied to your pipeline.
  2082. type InstanceIdentity struct {
  2083. _ struct{} `type:"structure"`
  2084. // A description of an EC2 instance that is generated when the instance is launched
  2085. // and exposed to the instance via the instance metadata service in the form
  2086. // of a JSON representation of an object.
  2087. Document *string `locationName:"document" type:"string"`
  2088. // A signature which can be used to verify the accuracy and authenticity of
  2089. // the information provided in the instance identity document.
  2090. Signature *string `locationName:"signature" type:"string"`
  2091. }
  2092. // String returns the string representation
  2093. func (s InstanceIdentity) String() string {
  2094. return awsutil.Prettify(s)
  2095. }
  2096. // GoString returns the string representation
  2097. func (s InstanceIdentity) GoString() string {
  2098. return s.String()
  2099. }
  2100. // Contains the parameters for ListPipelines.
  2101. type ListPipelinesInput struct {
  2102. _ struct{} `type:"structure"`
  2103. // The starting point for the results to be returned. For the first call, this
  2104. // value should be empty. As long as there are more results, continue to call
  2105. // ListPipelines with the marker value from the previous call to retrieve the
  2106. // next set of results.
  2107. Marker *string `locationName:"marker" type:"string"`
  2108. }
  2109. // String returns the string representation
  2110. func (s ListPipelinesInput) String() string {
  2111. return awsutil.Prettify(s)
  2112. }
  2113. // GoString returns the string representation
  2114. func (s ListPipelinesInput) GoString() string {
  2115. return s.String()
  2116. }
  2117. // Contains the output of ListPipelines.
  2118. type ListPipelinesOutput struct {
  2119. _ struct{} `type:"structure"`
  2120. // Indicates whether there are more results that can be obtained by a subsequent
  2121. // call.
  2122. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
  2123. // The starting point for the next page of results. To view the next page of
  2124. // results, call ListPipelinesOutput again with this marker value. If the value
  2125. // is null, there are no more results.
  2126. Marker *string `locationName:"marker" type:"string"`
  2127. // The pipeline identifiers. If you require additional information about the
  2128. // pipelines, you can use these identifiers to call DescribePipelines and GetPipelineDefinition.
  2129. //
  2130. // PipelineIdList is a required field
  2131. PipelineIdList []*PipelineIdName `locationName:"pipelineIdList" type:"list" required:"true"`
  2132. }
  2133. // String returns the string representation
  2134. func (s ListPipelinesOutput) String() string {
  2135. return awsutil.Prettify(s)
  2136. }
  2137. // GoString returns the string representation
  2138. func (s ListPipelinesOutput) GoString() string {
  2139. return s.String()
  2140. }
  2141. // Contains a logical operation for comparing the value of a field with a specified
  2142. // value.
  2143. type Operator struct {
  2144. _ struct{} `type:"structure"`
  2145. // The logical operation to be performed: equal (EQ), equal reference (REF_EQ),
  2146. // less than or equal (LE), greater than or equal (GE), or between (BETWEEN).
  2147. // Equal reference (REF_EQ) can be used only with reference fields. The other
  2148. // comparison types can be used only with String fields. The comparison types
  2149. // you can use apply only to certain object fields, as detailed below.
  2150. //
  2151. // The comparison operators EQ and REF_EQ act on the following fields:
  2152. //
  2153. // * name
  2154. // * @sphere
  2155. // * parent
  2156. // * @componentParent
  2157. // * @instanceParent
  2158. // * @status
  2159. // * @scheduledStartTime
  2160. // * @scheduledEndTime
  2161. // * @actualStartTime
  2162. // * @actualEndTime
  2163. // The comparison operators GE, LE, and BETWEEN act on the following fields:
  2164. //
  2165. // * @scheduledStartTime
  2166. // * @scheduledEndTime
  2167. // * @actualStartTime
  2168. // * @actualEndTime
  2169. // Note that fields beginning with the at sign (@) are read-only and set by
  2170. // the web service. When you name fields, you should choose names containing
  2171. // only alpha-numeric values, as symbols may be reserved by AWS Data Pipeline.
  2172. // User-defined fields that you add to a pipeline should prefix their name with
  2173. // the string "my".
  2174. Type *string `locationName:"type" type:"string" enum:"OperatorType"`
  2175. // The value that the actual field value will be compared with.
  2176. Values []*string `locationName:"values" type:"list"`
  2177. }
  2178. // String returns the string representation
  2179. func (s Operator) String() string {
  2180. return awsutil.Prettify(s)
  2181. }
  2182. // GoString returns the string representation
  2183. func (s Operator) GoString() string {
  2184. return s.String()
  2185. }
  2186. // The attributes allowed or specified with a parameter object.
  2187. type ParameterAttribute struct {
  2188. _ struct{} `type:"structure"`
  2189. // The field identifier.
  2190. //
  2191. // Key is a required field
  2192. Key *string `locationName:"key" min:"1" type:"string" required:"true"`
  2193. // The field value, expressed as a String.
  2194. //
  2195. // StringValue is a required field
  2196. StringValue *string `locationName:"stringValue" type:"string" required:"true"`
  2197. }
  2198. // String returns the string representation
  2199. func (s ParameterAttribute) String() string {
  2200. return awsutil.Prettify(s)
  2201. }
  2202. // GoString returns the string representation
  2203. func (s ParameterAttribute) GoString() string {
  2204. return s.String()
  2205. }
  2206. // Validate inspects the fields of the type to determine if they are valid.
  2207. func (s *ParameterAttribute) Validate() error {
  2208. invalidParams := request.ErrInvalidParams{Context: "ParameterAttribute"}
  2209. if s.Key == nil {
  2210. invalidParams.Add(request.NewErrParamRequired("Key"))
  2211. }
  2212. if s.Key != nil && len(*s.Key) < 1 {
  2213. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  2214. }
  2215. if s.StringValue == nil {
  2216. invalidParams.Add(request.NewErrParamRequired("StringValue"))
  2217. }
  2218. if invalidParams.Len() > 0 {
  2219. return invalidParams
  2220. }
  2221. return nil
  2222. }
  2223. // Contains information about a parameter object.
  2224. type ParameterObject struct {
  2225. _ struct{} `type:"structure"`
  2226. // The attributes of the parameter object.
  2227. //
  2228. // Attributes is a required field
  2229. Attributes []*ParameterAttribute `locationName:"attributes" type:"list" required:"true"`
  2230. // The ID of the parameter object.
  2231. //
  2232. // Id is a required field
  2233. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  2234. }
  2235. // String returns the string representation
  2236. func (s ParameterObject) String() string {
  2237. return awsutil.Prettify(s)
  2238. }
  2239. // GoString returns the string representation
  2240. func (s ParameterObject) GoString() string {
  2241. return s.String()
  2242. }
  2243. // Validate inspects the fields of the type to determine if they are valid.
  2244. func (s *ParameterObject) Validate() error {
  2245. invalidParams := request.ErrInvalidParams{Context: "ParameterObject"}
  2246. if s.Attributes == nil {
  2247. invalidParams.Add(request.NewErrParamRequired("Attributes"))
  2248. }
  2249. if s.Id == nil {
  2250. invalidParams.Add(request.NewErrParamRequired("Id"))
  2251. }
  2252. if s.Id != nil && len(*s.Id) < 1 {
  2253. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  2254. }
  2255. if s.Attributes != nil {
  2256. for i, v := range s.Attributes {
  2257. if v == nil {
  2258. continue
  2259. }
  2260. if err := v.Validate(); err != nil {
  2261. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams))
  2262. }
  2263. }
  2264. }
  2265. if invalidParams.Len() > 0 {
  2266. return invalidParams
  2267. }
  2268. return nil
  2269. }
  2270. // A value or list of parameter values.
  2271. type ParameterValue struct {
  2272. _ struct{} `type:"structure"`
  2273. // The ID of the parameter value.
  2274. //
  2275. // Id is a required field
  2276. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  2277. // The field value, expressed as a String.
  2278. //
  2279. // StringValue is a required field
  2280. StringValue *string `locationName:"stringValue" type:"string" required:"true"`
  2281. }
  2282. // String returns the string representation
  2283. func (s ParameterValue) String() string {
  2284. return awsutil.Prettify(s)
  2285. }
  2286. // GoString returns the string representation
  2287. func (s ParameterValue) GoString() string {
  2288. return s.String()
  2289. }
  2290. // Validate inspects the fields of the type to determine if they are valid.
  2291. func (s *ParameterValue) Validate() error {
  2292. invalidParams := request.ErrInvalidParams{Context: "ParameterValue"}
  2293. if s.Id == nil {
  2294. invalidParams.Add(request.NewErrParamRequired("Id"))
  2295. }
  2296. if s.Id != nil && len(*s.Id) < 1 {
  2297. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  2298. }
  2299. if s.StringValue == nil {
  2300. invalidParams.Add(request.NewErrParamRequired("StringValue"))
  2301. }
  2302. if invalidParams.Len() > 0 {
  2303. return invalidParams
  2304. }
  2305. return nil
  2306. }
  2307. // Contains pipeline metadata.
  2308. type PipelineDescription struct {
  2309. _ struct{} `type:"structure"`
  2310. // Description of the pipeline.
  2311. Description *string `locationName:"description" type:"string"`
  2312. // A list of read-only fields that contain metadata about the pipeline: @userId,
  2313. // @accountId, and @pipelineState.
  2314. //
  2315. // Fields is a required field
  2316. Fields []*Field `locationName:"fields" type:"list" required:"true"`
  2317. // The name of the pipeline.
  2318. //
  2319. // Name is a required field
  2320. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2321. // The pipeline identifier that was assigned by AWS Data Pipeline. This is a
  2322. // string of the form df-297EG78HU43EEXAMPLE.
  2323. //
  2324. // PipelineId is a required field
  2325. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2326. // A list of tags to associated with a pipeline. Tags let you control access
  2327. // to pipelines. For more information, see Controlling User Access to Pipelines
  2328. // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  2329. // in the AWS Data Pipeline Developer Guide.
  2330. Tags []*Tag `locationName:"tags" type:"list"`
  2331. }
  2332. // String returns the string representation
  2333. func (s PipelineDescription) String() string {
  2334. return awsutil.Prettify(s)
  2335. }
  2336. // GoString returns the string representation
  2337. func (s PipelineDescription) GoString() string {
  2338. return s.String()
  2339. }
  2340. // Contains the name and identifier of a pipeline.
  2341. type PipelineIdName struct {
  2342. _ struct{} `type:"structure"`
  2343. // The ID of the pipeline that was assigned by AWS Data Pipeline. This is a
  2344. // string of the form df-297EG78HU43EEXAMPLE.
  2345. Id *string `locationName:"id" min:"1" type:"string"`
  2346. // The name of the pipeline.
  2347. Name *string `locationName:"name" min:"1" type:"string"`
  2348. }
  2349. // String returns the string representation
  2350. func (s PipelineIdName) String() string {
  2351. return awsutil.Prettify(s)
  2352. }
  2353. // GoString returns the string representation
  2354. func (s PipelineIdName) GoString() string {
  2355. return s.String()
  2356. }
  2357. // Contains information about a pipeline object. This can be a logical, physical,
  2358. // or physical attempt pipeline object. The complete set of components of a
  2359. // pipeline defines the pipeline.
  2360. type PipelineObject struct {
  2361. _ struct{} `type:"structure"`
  2362. // Key-value pairs that define the properties of the object.
  2363. //
  2364. // Fields is a required field
  2365. Fields []*Field `locationName:"fields" type:"list" required:"true"`
  2366. // The ID of the object.
  2367. //
  2368. // Id is a required field
  2369. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  2370. // The name of the object.
  2371. //
  2372. // Name is a required field
  2373. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2374. }
  2375. // String returns the string representation
  2376. func (s PipelineObject) String() string {
  2377. return awsutil.Prettify(s)
  2378. }
  2379. // GoString returns the string representation
  2380. func (s PipelineObject) GoString() string {
  2381. return s.String()
  2382. }
  2383. // Validate inspects the fields of the type to determine if they are valid.
  2384. func (s *PipelineObject) Validate() error {
  2385. invalidParams := request.ErrInvalidParams{Context: "PipelineObject"}
  2386. if s.Fields == nil {
  2387. invalidParams.Add(request.NewErrParamRequired("Fields"))
  2388. }
  2389. if s.Id == nil {
  2390. invalidParams.Add(request.NewErrParamRequired("Id"))
  2391. }
  2392. if s.Id != nil && len(*s.Id) < 1 {
  2393. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  2394. }
  2395. if s.Name == nil {
  2396. invalidParams.Add(request.NewErrParamRequired("Name"))
  2397. }
  2398. if s.Name != nil && len(*s.Name) < 1 {
  2399. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2400. }
  2401. if s.Fields != nil {
  2402. for i, v := range s.Fields {
  2403. if v == nil {
  2404. continue
  2405. }
  2406. if err := v.Validate(); err != nil {
  2407. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
  2408. }
  2409. }
  2410. }
  2411. if invalidParams.Len() > 0 {
  2412. return invalidParams
  2413. }
  2414. return nil
  2415. }
  2416. // Contains the parameters for PollForTask.
  2417. type PollForTaskInput struct {
  2418. _ struct{} `type:"structure"`
  2419. // The public DNS name of the calling task runner.
  2420. Hostname *string `locationName:"hostname" min:"1" type:"string"`
  2421. // Identity information for the EC2 instance that is hosting the task runner.
  2422. // You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id.
  2423. // For more information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
  2424. // in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves
  2425. // that your task runner is running on an EC2 instance, and ensures the proper
  2426. // AWS Data Pipeline service charges are applied to your pipeline.
  2427. InstanceIdentity *InstanceIdentity `locationName:"instanceIdentity" type:"structure"`
  2428. // The type of task the task runner is configured to accept and process. The
  2429. // worker group is set as a field on objects in the pipeline when they are created.
  2430. // You can only specify a single value for workerGroup in the call to PollForTask.
  2431. // There are no wildcard values permitted in workerGroup; the string must be
  2432. // an exact, case-sensitive, match.
  2433. //
  2434. // WorkerGroup is a required field
  2435. WorkerGroup *string `locationName:"workerGroup" type:"string" required:"true"`
  2436. }
  2437. // String returns the string representation
  2438. func (s PollForTaskInput) String() string {
  2439. return awsutil.Prettify(s)
  2440. }
  2441. // GoString returns the string representation
  2442. func (s PollForTaskInput) GoString() string {
  2443. return s.String()
  2444. }
  2445. // Validate inspects the fields of the type to determine if they are valid.
  2446. func (s *PollForTaskInput) Validate() error {
  2447. invalidParams := request.ErrInvalidParams{Context: "PollForTaskInput"}
  2448. if s.Hostname != nil && len(*s.Hostname) < 1 {
  2449. invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
  2450. }
  2451. if s.WorkerGroup == nil {
  2452. invalidParams.Add(request.NewErrParamRequired("WorkerGroup"))
  2453. }
  2454. if invalidParams.Len() > 0 {
  2455. return invalidParams
  2456. }
  2457. return nil
  2458. }
  2459. // Contains the output of PollForTask.
  2460. type PollForTaskOutput struct {
  2461. _ struct{} `type:"structure"`
  2462. // The information needed to complete the task that is being assigned to the
  2463. // task runner. One of the fields returned in this object is taskId, which contains
  2464. // an identifier for the task being assigned. The calling task runner uses taskId
  2465. // in subsequent calls to ReportTaskProgress and SetTaskStatus.
  2466. TaskObject *TaskObject `locationName:"taskObject" type:"structure"`
  2467. }
  2468. // String returns the string representation
  2469. func (s PollForTaskOutput) String() string {
  2470. return awsutil.Prettify(s)
  2471. }
  2472. // GoString returns the string representation
  2473. func (s PollForTaskOutput) GoString() string {
  2474. return s.String()
  2475. }
  2476. // Contains the parameters for PutPipelineDefinition.
  2477. type PutPipelineDefinitionInput struct {
  2478. _ struct{} `type:"structure"`
  2479. // The parameter objects used with the pipeline.
  2480. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
  2481. // The parameter values used with the pipeline.
  2482. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  2483. // The ID of the pipeline.
  2484. //
  2485. // PipelineId is a required field
  2486. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2487. // The objects that define the pipeline. These objects overwrite the existing
  2488. // pipeline definition.
  2489. //
  2490. // PipelineObjects is a required field
  2491. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
  2492. }
  2493. // String returns the string representation
  2494. func (s PutPipelineDefinitionInput) String() string {
  2495. return awsutil.Prettify(s)
  2496. }
  2497. // GoString returns the string representation
  2498. func (s PutPipelineDefinitionInput) GoString() string {
  2499. return s.String()
  2500. }
  2501. // Validate inspects the fields of the type to determine if they are valid.
  2502. func (s *PutPipelineDefinitionInput) Validate() error {
  2503. invalidParams := request.ErrInvalidParams{Context: "PutPipelineDefinitionInput"}
  2504. if s.PipelineId == nil {
  2505. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2506. }
  2507. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2508. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2509. }
  2510. if s.PipelineObjects == nil {
  2511. invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
  2512. }
  2513. if s.ParameterObjects != nil {
  2514. for i, v := range s.ParameterObjects {
  2515. if v == nil {
  2516. continue
  2517. }
  2518. if err := v.Validate(); err != nil {
  2519. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
  2520. }
  2521. }
  2522. }
  2523. if s.ParameterValues != nil {
  2524. for i, v := range s.ParameterValues {
  2525. if v == nil {
  2526. continue
  2527. }
  2528. if err := v.Validate(); err != nil {
  2529. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
  2530. }
  2531. }
  2532. }
  2533. if s.PipelineObjects != nil {
  2534. for i, v := range s.PipelineObjects {
  2535. if v == nil {
  2536. continue
  2537. }
  2538. if err := v.Validate(); err != nil {
  2539. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
  2540. }
  2541. }
  2542. }
  2543. if invalidParams.Len() > 0 {
  2544. return invalidParams
  2545. }
  2546. return nil
  2547. }
  2548. // Contains the output of PutPipelineDefinition.
  2549. type PutPipelineDefinitionOutput struct {
  2550. _ struct{} `type:"structure"`
  2551. // Indicates whether there were validation errors, and the pipeline definition
  2552. // is stored but cannot be activated until you correct the pipeline and call
  2553. // PutPipelineDefinition to commit the corrected pipeline.
  2554. //
  2555. // Errored is a required field
  2556. Errored *bool `locationName:"errored" type:"boolean" required:"true"`
  2557. // The validation errors that are associated with the objects defined in pipelineObjects.
  2558. ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
  2559. // The validation warnings that are associated with the objects defined in pipelineObjects.
  2560. ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
  2561. }
  2562. // String returns the string representation
  2563. func (s PutPipelineDefinitionOutput) String() string {
  2564. return awsutil.Prettify(s)
  2565. }
  2566. // GoString returns the string representation
  2567. func (s PutPipelineDefinitionOutput) GoString() string {
  2568. return s.String()
  2569. }
  2570. // Defines the query to run against an object.
  2571. type Query struct {
  2572. _ struct{} `type:"structure"`
  2573. // List of selectors that define the query. An object must satisfy all of the
  2574. // selectors to match the query.
  2575. Selectors []*Selector `locationName:"selectors" type:"list"`
  2576. }
  2577. // String returns the string representation
  2578. func (s Query) String() string {
  2579. return awsutil.Prettify(s)
  2580. }
  2581. // GoString returns the string representation
  2582. func (s Query) GoString() string {
  2583. return s.String()
  2584. }
  2585. // Contains the parameters for QueryObjects.
  2586. type QueryObjectsInput struct {
  2587. _ struct{} `type:"structure"`
  2588. // The maximum number of object names that QueryObjects will return in a single
  2589. // call. The default value is 100.
  2590. Limit *int64 `locationName:"limit" type:"integer"`
  2591. // The starting point for the results to be returned. For the first call, this
  2592. // value should be empty. As long as there are more results, continue to call
  2593. // QueryObjects with the marker value from the previous call to retrieve the
  2594. // next set of results.
  2595. Marker *string `locationName:"marker" type:"string"`
  2596. // The ID of the pipeline.
  2597. //
  2598. // PipelineId is a required field
  2599. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2600. // The query that defines the objects to be returned. The Query object can contain
  2601. // a maximum of ten selectors. The conditions in the query are limited to top-level
  2602. // String fields in the object. These filters can be applied to components,
  2603. // instances, and attempts.
  2604. Query *Query `locationName:"query" type:"structure"`
  2605. // Indicates whether the query applies to components or instances. The possible
  2606. // values are: COMPONENT, INSTANCE, and ATTEMPT.
  2607. //
  2608. // Sphere is a required field
  2609. Sphere *string `locationName:"sphere" type:"string" required:"true"`
  2610. }
  2611. // String returns the string representation
  2612. func (s QueryObjectsInput) String() string {
  2613. return awsutil.Prettify(s)
  2614. }
  2615. // GoString returns the string representation
  2616. func (s QueryObjectsInput) GoString() string {
  2617. return s.String()
  2618. }
  2619. // Validate inspects the fields of the type to determine if they are valid.
  2620. func (s *QueryObjectsInput) Validate() error {
  2621. invalidParams := request.ErrInvalidParams{Context: "QueryObjectsInput"}
  2622. if s.PipelineId == nil {
  2623. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2624. }
  2625. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2626. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2627. }
  2628. if s.Sphere == nil {
  2629. invalidParams.Add(request.NewErrParamRequired("Sphere"))
  2630. }
  2631. if invalidParams.Len() > 0 {
  2632. return invalidParams
  2633. }
  2634. return nil
  2635. }
  2636. // Contains the output of QueryObjects.
  2637. type QueryObjectsOutput struct {
  2638. _ struct{} `type:"structure"`
  2639. // Indicates whether there are more results that can be obtained by a subsequent
  2640. // call.
  2641. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
  2642. // The identifiers that match the query selectors.
  2643. Ids []*string `locationName:"ids" type:"list"`
  2644. // The starting point for the next page of results. To view the next page of
  2645. // results, call QueryObjects again with this marker value. If the value is
  2646. // null, there are no more results.
  2647. Marker *string `locationName:"marker" type:"string"`
  2648. }
  2649. // String returns the string representation
  2650. func (s QueryObjectsOutput) String() string {
  2651. return awsutil.Prettify(s)
  2652. }
  2653. // GoString returns the string representation
  2654. func (s QueryObjectsOutput) GoString() string {
  2655. return s.String()
  2656. }
  2657. // Contains the parameters for RemoveTags.
  2658. type RemoveTagsInput struct {
  2659. _ struct{} `type:"structure"`
  2660. // The ID of the pipeline.
  2661. //
  2662. // PipelineId is a required field
  2663. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2664. // The keys of the tags to remove.
  2665. //
  2666. // TagKeys is a required field
  2667. TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
  2668. }
  2669. // String returns the string representation
  2670. func (s RemoveTagsInput) String() string {
  2671. return awsutil.Prettify(s)
  2672. }
  2673. // GoString returns the string representation
  2674. func (s RemoveTagsInput) GoString() string {
  2675. return s.String()
  2676. }
  2677. // Validate inspects the fields of the type to determine if they are valid.
  2678. func (s *RemoveTagsInput) Validate() error {
  2679. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
  2680. if s.PipelineId == nil {
  2681. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2682. }
  2683. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2684. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2685. }
  2686. if s.TagKeys == nil {
  2687. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  2688. }
  2689. if invalidParams.Len() > 0 {
  2690. return invalidParams
  2691. }
  2692. return nil
  2693. }
  2694. // Contains the output of RemoveTags.
  2695. type RemoveTagsOutput struct {
  2696. _ struct{} `type:"structure"`
  2697. }
  2698. // String returns the string representation
  2699. func (s RemoveTagsOutput) String() string {
  2700. return awsutil.Prettify(s)
  2701. }
  2702. // GoString returns the string representation
  2703. func (s RemoveTagsOutput) GoString() string {
  2704. return s.String()
  2705. }
  2706. // Contains the parameters for ReportTaskProgress.
  2707. type ReportTaskProgressInput struct {
  2708. _ struct{} `type:"structure"`
  2709. // Key-value pairs that define the properties of the ReportTaskProgressInput
  2710. // object.
  2711. Fields []*Field `locationName:"fields" type:"list"`
  2712. // The ID of the task assigned to the task runner. This value is provided in
  2713. // the response for PollForTask.
  2714. //
  2715. // TaskId is a required field
  2716. TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
  2717. }
  2718. // String returns the string representation
  2719. func (s ReportTaskProgressInput) String() string {
  2720. return awsutil.Prettify(s)
  2721. }
  2722. // GoString returns the string representation
  2723. func (s ReportTaskProgressInput) GoString() string {
  2724. return s.String()
  2725. }
  2726. // Validate inspects the fields of the type to determine if they are valid.
  2727. func (s *ReportTaskProgressInput) Validate() error {
  2728. invalidParams := request.ErrInvalidParams{Context: "ReportTaskProgressInput"}
  2729. if s.TaskId == nil {
  2730. invalidParams.Add(request.NewErrParamRequired("TaskId"))
  2731. }
  2732. if s.TaskId != nil && len(*s.TaskId) < 1 {
  2733. invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
  2734. }
  2735. if s.Fields != nil {
  2736. for i, v := range s.Fields {
  2737. if v == nil {
  2738. continue
  2739. }
  2740. if err := v.Validate(); err != nil {
  2741. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
  2742. }
  2743. }
  2744. }
  2745. if invalidParams.Len() > 0 {
  2746. return invalidParams
  2747. }
  2748. return nil
  2749. }
  2750. // Contains the output of ReportTaskProgress.
  2751. type ReportTaskProgressOutput struct {
  2752. _ struct{} `type:"structure"`
  2753. // If true, the calling task runner should cancel processing of the task. The
  2754. // task runner does not need to call SetTaskStatus for canceled tasks.
  2755. //
  2756. // Canceled is a required field
  2757. Canceled *bool `locationName:"canceled" type:"boolean" required:"true"`
  2758. }
  2759. // String returns the string representation
  2760. func (s ReportTaskProgressOutput) String() string {
  2761. return awsutil.Prettify(s)
  2762. }
  2763. // GoString returns the string representation
  2764. func (s ReportTaskProgressOutput) GoString() string {
  2765. return s.String()
  2766. }
  2767. // Contains the parameters for ReportTaskRunnerHeartbeat.
  2768. type ReportTaskRunnerHeartbeatInput struct {
  2769. _ struct{} `type:"structure"`
  2770. // The public DNS name of the task runner.
  2771. Hostname *string `locationName:"hostname" min:"1" type:"string"`
  2772. // The ID of the task runner. This value should be unique across your AWS account.
  2773. // In the case of AWS Data Pipeline Task Runner launched on a resource managed
  2774. // by AWS Data Pipeline, the web service provides a unique identifier when it
  2775. // launches the application. If you have written a custom task runner, you should
  2776. // assign a unique identifier for the task runner.
  2777. //
  2778. // TaskrunnerId is a required field
  2779. TaskrunnerId *string `locationName:"taskrunnerId" min:"1" type:"string" required:"true"`
  2780. // The type of task the task runner is configured to accept and process. The
  2781. // worker group is set as a field on objects in the pipeline when they are created.
  2782. // You can only specify a single value for workerGroup. There are no wildcard
  2783. // values permitted in workerGroup; the string must be an exact, case-sensitive,
  2784. // match.
  2785. WorkerGroup *string `locationName:"workerGroup" type:"string"`
  2786. }
  2787. // String returns the string representation
  2788. func (s ReportTaskRunnerHeartbeatInput) String() string {
  2789. return awsutil.Prettify(s)
  2790. }
  2791. // GoString returns the string representation
  2792. func (s ReportTaskRunnerHeartbeatInput) GoString() string {
  2793. return s.String()
  2794. }
  2795. // Validate inspects the fields of the type to determine if they are valid.
  2796. func (s *ReportTaskRunnerHeartbeatInput) Validate() error {
  2797. invalidParams := request.ErrInvalidParams{Context: "ReportTaskRunnerHeartbeatInput"}
  2798. if s.Hostname != nil && len(*s.Hostname) < 1 {
  2799. invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
  2800. }
  2801. if s.TaskrunnerId == nil {
  2802. invalidParams.Add(request.NewErrParamRequired("TaskrunnerId"))
  2803. }
  2804. if s.TaskrunnerId != nil && len(*s.TaskrunnerId) < 1 {
  2805. invalidParams.Add(request.NewErrParamMinLen("TaskrunnerId", 1))
  2806. }
  2807. if invalidParams.Len() > 0 {
  2808. return invalidParams
  2809. }
  2810. return nil
  2811. }
  2812. // Contains the output of ReportTaskRunnerHeartbeat.
  2813. type ReportTaskRunnerHeartbeatOutput struct {
  2814. _ struct{} `type:"structure"`
  2815. // Indicates whether the calling task runner should terminate.
  2816. //
  2817. // Terminate is a required field
  2818. Terminate *bool `locationName:"terminate" type:"boolean" required:"true"`
  2819. }
  2820. // String returns the string representation
  2821. func (s ReportTaskRunnerHeartbeatOutput) String() string {
  2822. return awsutil.Prettify(s)
  2823. }
  2824. // GoString returns the string representation
  2825. func (s ReportTaskRunnerHeartbeatOutput) GoString() string {
  2826. return s.String()
  2827. }
  2828. // A comparision that is used to determine whether a query should return this
  2829. // object.
  2830. type Selector struct {
  2831. _ struct{} `type:"structure"`
  2832. // The name of the field that the operator will be applied to. The field name
  2833. // is the "key" portion of the field definition in the pipeline definition syntax
  2834. // that is used by the AWS Data Pipeline API. If the field is not set on the
  2835. // object, the condition fails.
  2836. FieldName *string `locationName:"fieldName" type:"string"`
  2837. // Contains a logical operation for comparing the value of a field with a specified
  2838. // value.
  2839. Operator *Operator `locationName:"operator" type:"structure"`
  2840. }
  2841. // String returns the string representation
  2842. func (s Selector) String() string {
  2843. return awsutil.Prettify(s)
  2844. }
  2845. // GoString returns the string representation
  2846. func (s Selector) GoString() string {
  2847. return s.String()
  2848. }
  2849. // Contains the parameters for SetStatus.
  2850. type SetStatusInput struct {
  2851. _ struct{} `type:"structure"`
  2852. // The IDs of the objects. The corresponding objects can be either physical
  2853. // or components, but not a mix of both types.
  2854. //
  2855. // ObjectIds is a required field
  2856. ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
  2857. // The ID of the pipeline that contains the objects.
  2858. //
  2859. // PipelineId is a required field
  2860. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2861. // The status to be set on all the objects specified in objectIds. For components,
  2862. // use PAUSE or RESUME. For instances, use TRY_CANCEL, RERUN, or MARK_FINISHED.
  2863. //
  2864. // Status is a required field
  2865. Status *string `locationName:"status" type:"string" required:"true"`
  2866. }
  2867. // String returns the string representation
  2868. func (s SetStatusInput) String() string {
  2869. return awsutil.Prettify(s)
  2870. }
  2871. // GoString returns the string representation
  2872. func (s SetStatusInput) GoString() string {
  2873. return s.String()
  2874. }
  2875. // Validate inspects the fields of the type to determine if they are valid.
  2876. func (s *SetStatusInput) Validate() error {
  2877. invalidParams := request.ErrInvalidParams{Context: "SetStatusInput"}
  2878. if s.ObjectIds == nil {
  2879. invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
  2880. }
  2881. if s.PipelineId == nil {
  2882. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2883. }
  2884. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2885. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2886. }
  2887. if s.Status == nil {
  2888. invalidParams.Add(request.NewErrParamRequired("Status"))
  2889. }
  2890. if invalidParams.Len() > 0 {
  2891. return invalidParams
  2892. }
  2893. return nil
  2894. }
  2895. type SetStatusOutput struct {
  2896. _ struct{} `type:"structure"`
  2897. }
  2898. // String returns the string representation
  2899. func (s SetStatusOutput) String() string {
  2900. return awsutil.Prettify(s)
  2901. }
  2902. // GoString returns the string representation
  2903. func (s SetStatusOutput) GoString() string {
  2904. return s.String()
  2905. }
  2906. // Contains the parameters for SetTaskStatus.
  2907. type SetTaskStatusInput struct {
  2908. _ struct{} `type:"structure"`
  2909. // If an error occurred during the task, this value specifies the error code.
  2910. // This value is set on the physical attempt object. It is used to display error
  2911. // information to the user. It should not start with string "Service_" which
  2912. // is reserved by the system.
  2913. ErrorId *string `locationName:"errorId" type:"string"`
  2914. // If an error occurred during the task, this value specifies a text description
  2915. // of the error. This value is set on the physical attempt object. It is used
  2916. // to display error information to the user. The web service does not parse
  2917. // this value.
  2918. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  2919. // If an error occurred during the task, this value specifies the stack trace
  2920. // associated with the error. This value is set on the physical attempt object.
  2921. // It is used to display error information to the user. The web service does
  2922. // not parse this value.
  2923. ErrorStackTrace *string `locationName:"errorStackTrace" type:"string"`
  2924. // The ID of the task assigned to the task runner. This value is provided in
  2925. // the response for PollForTask.
  2926. //
  2927. // TaskId is a required field
  2928. TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
  2929. // If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully.
  2930. // Preconditions use false.
  2931. //
  2932. // TaskStatus is a required field
  2933. TaskStatus *string `locationName:"taskStatus" type:"string" required:"true" enum:"TaskStatus"`
  2934. }
  2935. // String returns the string representation
  2936. func (s SetTaskStatusInput) String() string {
  2937. return awsutil.Prettify(s)
  2938. }
  2939. // GoString returns the string representation
  2940. func (s SetTaskStatusInput) GoString() string {
  2941. return s.String()
  2942. }
  2943. // Validate inspects the fields of the type to determine if they are valid.
  2944. func (s *SetTaskStatusInput) Validate() error {
  2945. invalidParams := request.ErrInvalidParams{Context: "SetTaskStatusInput"}
  2946. if s.TaskId == nil {
  2947. invalidParams.Add(request.NewErrParamRequired("TaskId"))
  2948. }
  2949. if s.TaskId != nil && len(*s.TaskId) < 1 {
  2950. invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
  2951. }
  2952. if s.TaskStatus == nil {
  2953. invalidParams.Add(request.NewErrParamRequired("TaskStatus"))
  2954. }
  2955. if invalidParams.Len() > 0 {
  2956. return invalidParams
  2957. }
  2958. return nil
  2959. }
  2960. // Contains the output of SetTaskStatus.
  2961. type SetTaskStatusOutput struct {
  2962. _ struct{} `type:"structure"`
  2963. }
  2964. // String returns the string representation
  2965. func (s SetTaskStatusOutput) String() string {
  2966. return awsutil.Prettify(s)
  2967. }
  2968. // GoString returns the string representation
  2969. func (s SetTaskStatusOutput) GoString() string {
  2970. return s.String()
  2971. }
  2972. // Tags are key/value pairs defined by a user and associated with a pipeline
  2973. // to control access. AWS Data Pipeline allows you to associate ten tags per
  2974. // pipeline. For more information, see Controlling User Access to Pipelines
  2975. // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  2976. // in the AWS Data Pipeline Developer Guide.
  2977. type Tag struct {
  2978. _ struct{} `type:"structure"`
  2979. // The key name of a tag defined by a user. For more information, see Controlling
  2980. // User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  2981. // in the AWS Data Pipeline Developer Guide.
  2982. //
  2983. // Key is a required field
  2984. Key *string `locationName:"key" min:"1" type:"string" required:"true"`
  2985. // The optional value portion of a tag defined by a user. For more information,
  2986. // see Controlling User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  2987. // in the AWS Data Pipeline Developer Guide.
  2988. //
  2989. // Value is a required field
  2990. Value *string `locationName:"value" type:"string" required:"true"`
  2991. }
  2992. // String returns the string representation
  2993. func (s Tag) String() string {
  2994. return awsutil.Prettify(s)
  2995. }
  2996. // GoString returns the string representation
  2997. func (s Tag) GoString() string {
  2998. return s.String()
  2999. }
  3000. // Validate inspects the fields of the type to determine if they are valid.
  3001. func (s *Tag) Validate() error {
  3002. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  3003. if s.Key == nil {
  3004. invalidParams.Add(request.NewErrParamRequired("Key"))
  3005. }
  3006. if s.Key != nil && len(*s.Key) < 1 {
  3007. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  3008. }
  3009. if s.Value == nil {
  3010. invalidParams.Add(request.NewErrParamRequired("Value"))
  3011. }
  3012. if invalidParams.Len() > 0 {
  3013. return invalidParams
  3014. }
  3015. return nil
  3016. }
  3017. // Contains information about a pipeline task that is assigned to a task runner.
  3018. type TaskObject struct {
  3019. _ struct{} `type:"structure"`
  3020. // The ID of the pipeline task attempt object. AWS Data Pipeline uses this value
  3021. // to track how many times a task is attempted.
  3022. AttemptId *string `locationName:"attemptId" min:"1" type:"string"`
  3023. // Connection information for the location where the task runner will publish
  3024. // the output of the task.
  3025. Objects map[string]*PipelineObject `locationName:"objects" type:"map"`
  3026. // The ID of the pipeline that provided the task.
  3027. PipelineId *string `locationName:"pipelineId" min:"1" type:"string"`
  3028. // An internal identifier for the task. This ID is passed to the SetTaskStatus
  3029. // and ReportTaskProgress actions.
  3030. TaskId *string `locationName:"taskId" min:"1" type:"string"`
  3031. }
  3032. // String returns the string representation
  3033. func (s TaskObject) String() string {
  3034. return awsutil.Prettify(s)
  3035. }
  3036. // GoString returns the string representation
  3037. func (s TaskObject) GoString() string {
  3038. return s.String()
  3039. }
  3040. // Contains the parameters for ValidatePipelineDefinition.
  3041. type ValidatePipelineDefinitionInput struct {
  3042. _ struct{} `type:"structure"`
  3043. // The parameter objects used with the pipeline.
  3044. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
  3045. // The parameter values used with the pipeline.
  3046. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  3047. // The ID of the pipeline.
  3048. //
  3049. // PipelineId is a required field
  3050. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  3051. // The objects that define the pipeline changes to validate against the pipeline.
  3052. //
  3053. // PipelineObjects is a required field
  3054. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
  3055. }
  3056. // String returns the string representation
  3057. func (s ValidatePipelineDefinitionInput) String() string {
  3058. return awsutil.Prettify(s)
  3059. }
  3060. // GoString returns the string representation
  3061. func (s ValidatePipelineDefinitionInput) GoString() string {
  3062. return s.String()
  3063. }
  3064. // Validate inspects the fields of the type to determine if they are valid.
  3065. func (s *ValidatePipelineDefinitionInput) Validate() error {
  3066. invalidParams := request.ErrInvalidParams{Context: "ValidatePipelineDefinitionInput"}
  3067. if s.PipelineId == nil {
  3068. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  3069. }
  3070. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  3071. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  3072. }
  3073. if s.PipelineObjects == nil {
  3074. invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
  3075. }
  3076. if s.ParameterObjects != nil {
  3077. for i, v := range s.ParameterObjects {
  3078. if v == nil {
  3079. continue
  3080. }
  3081. if err := v.Validate(); err != nil {
  3082. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
  3083. }
  3084. }
  3085. }
  3086. if s.ParameterValues != nil {
  3087. for i, v := range s.ParameterValues {
  3088. if v == nil {
  3089. continue
  3090. }
  3091. if err := v.Validate(); err != nil {
  3092. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
  3093. }
  3094. }
  3095. }
  3096. if s.PipelineObjects != nil {
  3097. for i, v := range s.PipelineObjects {
  3098. if v == nil {
  3099. continue
  3100. }
  3101. if err := v.Validate(); err != nil {
  3102. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
  3103. }
  3104. }
  3105. }
  3106. if invalidParams.Len() > 0 {
  3107. return invalidParams
  3108. }
  3109. return nil
  3110. }
  3111. // Contains the output of ValidatePipelineDefinition.
  3112. type ValidatePipelineDefinitionOutput struct {
  3113. _ struct{} `type:"structure"`
  3114. // Indicates whether there were validation errors.
  3115. //
  3116. // Errored is a required field
  3117. Errored *bool `locationName:"errored" type:"boolean" required:"true"`
  3118. // Any validation errors that were found.
  3119. ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
  3120. // Any validation warnings that were found.
  3121. ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
  3122. }
  3123. // String returns the string representation
  3124. func (s ValidatePipelineDefinitionOutput) String() string {
  3125. return awsutil.Prettify(s)
  3126. }
  3127. // GoString returns the string representation
  3128. func (s ValidatePipelineDefinitionOutput) GoString() string {
  3129. return s.String()
  3130. }
  3131. // Defines a validation error. Validation errors prevent pipeline activation.
  3132. // The set of validation errors that can be returned are defined by AWS Data
  3133. // Pipeline.
  3134. type ValidationError struct {
  3135. _ struct{} `type:"structure"`
  3136. // A description of the validation error.
  3137. Errors []*string `locationName:"errors" type:"list"`
  3138. // The identifier of the object that contains the validation error.
  3139. Id *string `locationName:"id" min:"1" type:"string"`
  3140. }
  3141. // String returns the string representation
  3142. func (s ValidationError) String() string {
  3143. return awsutil.Prettify(s)
  3144. }
  3145. // GoString returns the string representation
  3146. func (s ValidationError) GoString() string {
  3147. return s.String()
  3148. }
  3149. // Defines a validation warning. Validation warnings do not prevent pipeline
  3150. // activation. The set of validation warnings that can be returned are defined
  3151. // by AWS Data Pipeline.
  3152. type ValidationWarning struct {
  3153. _ struct{} `type:"structure"`
  3154. // The identifier of the object that contains the validation warning.
  3155. Id *string `locationName:"id" min:"1" type:"string"`
  3156. // A description of the validation warning.
  3157. Warnings []*string `locationName:"warnings" type:"list"`
  3158. }
  3159. // String returns the string representation
  3160. func (s ValidationWarning) String() string {
  3161. return awsutil.Prettify(s)
  3162. }
  3163. // GoString returns the string representation
  3164. func (s ValidationWarning) GoString() string {
  3165. return s.String()
  3166. }
  3167. const (
  3168. // OperatorTypeEq is a OperatorType enum value
  3169. OperatorTypeEq = "EQ"
  3170. // OperatorTypeRefEq is a OperatorType enum value
  3171. OperatorTypeRefEq = "REF_EQ"
  3172. // OperatorTypeLe is a OperatorType enum value
  3173. OperatorTypeLe = "LE"
  3174. // OperatorTypeGe is a OperatorType enum value
  3175. OperatorTypeGe = "GE"
  3176. // OperatorTypeBetween is a OperatorType enum value
  3177. OperatorTypeBetween = "BETWEEN"
  3178. )
  3179. const (
  3180. // TaskStatusFinished is a TaskStatus enum value
  3181. TaskStatusFinished = "FINISHED"
  3182. // TaskStatusFailed is a TaskStatus enum value
  3183. TaskStatusFailed = "FAILED"
  3184. // TaskStatusFalse is a TaskStatus enum value
  3185. TaskStatusFalse = "FALSE"
  3186. )