api.go 99 KB

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