api.go 158 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package datapipeline
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  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 will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See ActivatePipeline for more information on using the ActivatePipeline
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the ActivatePipelineRequest method.
  29. // req, resp := client.ActivatePipelineRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipeline
  37. func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (req *request.Request, output *ActivatePipelineOutput) {
  38. op := &request.Operation{
  39. Name: opActivatePipeline,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &ActivatePipelineInput{}
  45. }
  46. output = &ActivatePipelineOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // ActivatePipeline API operation for AWS Data Pipeline.
  52. //
  53. // Validates the specified pipeline and starts processing pipeline tasks. If
  54. // the pipeline does not pass validation, activation fails.
  55. //
  56. // If you need to pause the pipeline to investigate an issue with a component,
  57. // such as a data source or script, call DeactivatePipeline.
  58. //
  59. // To activate a finished pipeline, modify the end date for the pipeline and
  60. // then activate it.
  61. //
  62. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  63. // with awserr.Error's Code and Message methods to get detailed information about
  64. // the error.
  65. //
  66. // See the AWS API reference guide for AWS Data Pipeline's
  67. // API operation ActivatePipeline for usage and error information.
  68. //
  69. // Returned Error Codes:
  70. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  71. // The specified pipeline was not found. Verify that you used the correct user
  72. // and account identifiers.
  73. //
  74. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  75. // The specified pipeline has been deleted.
  76. //
  77. // * ErrCodeInternalServiceError "InternalServiceError"
  78. // An internal service error occurred.
  79. //
  80. // * ErrCodeInvalidRequestException "InvalidRequestException"
  81. // The request was not valid. Verify that your request was properly formatted,
  82. // that the signature was generated with the correct credentials, and that you
  83. // haven't exceeded any of the service limits for your account.
  84. //
  85. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipeline
  86. func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (*ActivatePipelineOutput, error) {
  87. req, out := c.ActivatePipelineRequest(input)
  88. return out, req.Send()
  89. }
  90. // ActivatePipelineWithContext is the same as ActivatePipeline with the addition of
  91. // the ability to pass a context and additional request options.
  92. //
  93. // See ActivatePipeline for details on how to use this API operation.
  94. //
  95. // The context must be non-nil and will be used for request cancellation. If
  96. // the context is nil a panic will occur. In the future the SDK may create
  97. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  98. // for more information on using Contexts.
  99. func (c *DataPipeline) ActivatePipelineWithContext(ctx aws.Context, input *ActivatePipelineInput, opts ...request.Option) (*ActivatePipelineOutput, error) {
  100. req, out := c.ActivatePipelineRequest(input)
  101. req.SetContext(ctx)
  102. req.ApplyOptions(opts...)
  103. return out, req.Send()
  104. }
  105. const opAddTags = "AddTags"
  106. // AddTagsRequest generates a "aws/request.Request" representing the
  107. // client's request for the AddTags operation. The "output" return
  108. // value will be populated with the request's response once the request completes
  109. // successfully.
  110. //
  111. // Use "Send" method on the returned Request to send the API call to the service.
  112. // the "output" return value is not valid until after Send returns without error.
  113. //
  114. // See AddTags for more information on using the AddTags
  115. // API call, and error handling.
  116. //
  117. // This method is useful when you want to inject custom logic or configuration
  118. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  119. //
  120. //
  121. // // Example sending a request using the AddTagsRequest method.
  122. // req, resp := client.AddTagsRequest(params)
  123. //
  124. // err := req.Send()
  125. // if err == nil { // resp is now filled
  126. // fmt.Println(resp)
  127. // }
  128. //
  129. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags
  130. func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
  131. op := &request.Operation{
  132. Name: opAddTags,
  133. HTTPMethod: "POST",
  134. HTTPPath: "/",
  135. }
  136. if input == nil {
  137. input = &AddTagsInput{}
  138. }
  139. output = &AddTagsOutput{}
  140. req = c.newRequest(op, input, output)
  141. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  142. return
  143. }
  144. // AddTags API operation for AWS Data Pipeline.
  145. //
  146. // Adds or modifies tags for the specified pipeline.
  147. //
  148. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  149. // with awserr.Error's Code and Message methods to get detailed information about
  150. // the error.
  151. //
  152. // See the AWS API reference guide for AWS Data Pipeline's
  153. // API operation AddTags for usage and error information.
  154. //
  155. // Returned Error Codes:
  156. // * ErrCodeInternalServiceError "InternalServiceError"
  157. // An internal service error occurred.
  158. //
  159. // * ErrCodeInvalidRequestException "InvalidRequestException"
  160. // The request was not valid. Verify that your request was properly formatted,
  161. // that the signature was generated with the correct credentials, and that you
  162. // haven't exceeded any of the service limits for your account.
  163. //
  164. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  165. // The specified pipeline was not found. Verify that you used the correct user
  166. // and account identifiers.
  167. //
  168. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  169. // The specified pipeline has been deleted.
  170. //
  171. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags
  172. func (c *DataPipeline) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
  173. req, out := c.AddTagsRequest(input)
  174. return out, req.Send()
  175. }
  176. // AddTagsWithContext is the same as AddTags with the addition of
  177. // the ability to pass a context and additional request options.
  178. //
  179. // See AddTags for details on how to use this API operation.
  180. //
  181. // The context must be non-nil and will be used for request cancellation. If
  182. // the context is nil a panic will occur. In the future the SDK may create
  183. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  184. // for more information on using Contexts.
  185. func (c *DataPipeline) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) {
  186. req, out := c.AddTagsRequest(input)
  187. req.SetContext(ctx)
  188. req.ApplyOptions(opts...)
  189. return out, req.Send()
  190. }
  191. const opCreatePipeline = "CreatePipeline"
  192. // CreatePipelineRequest generates a "aws/request.Request" representing the
  193. // client's request for the CreatePipeline operation. The "output" return
  194. // value will be populated with the request's response once the request completes
  195. // successfully.
  196. //
  197. // Use "Send" method on the returned Request to send the API call to the service.
  198. // the "output" return value is not valid until after Send returns without error.
  199. //
  200. // See CreatePipeline for more information on using the CreatePipeline
  201. // API call, and error handling.
  202. //
  203. // This method is useful when you want to inject custom logic or configuration
  204. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  205. //
  206. //
  207. // // Example sending a request using the CreatePipelineRequest method.
  208. // req, resp := client.CreatePipelineRequest(params)
  209. //
  210. // err := req.Send()
  211. // if err == nil { // resp is now filled
  212. // fmt.Println(resp)
  213. // }
  214. //
  215. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipeline
  216. func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
  217. op := &request.Operation{
  218. Name: opCreatePipeline,
  219. HTTPMethod: "POST",
  220. HTTPPath: "/",
  221. }
  222. if input == nil {
  223. input = &CreatePipelineInput{}
  224. }
  225. output = &CreatePipelineOutput{}
  226. req = c.newRequest(op, input, output)
  227. return
  228. }
  229. // CreatePipeline API operation for AWS Data Pipeline.
  230. //
  231. // Creates a new, empty pipeline. Use PutPipelineDefinition to populate the
  232. // pipeline.
  233. //
  234. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  235. // with awserr.Error's Code and Message methods to get detailed information about
  236. // the error.
  237. //
  238. // See the AWS API reference guide for AWS Data Pipeline's
  239. // API operation CreatePipeline for usage and error information.
  240. //
  241. // Returned Error Codes:
  242. // * ErrCodeInternalServiceError "InternalServiceError"
  243. // An internal service error occurred.
  244. //
  245. // * ErrCodeInvalidRequestException "InvalidRequestException"
  246. // The request was not valid. Verify that your request was properly formatted,
  247. // that the signature was generated with the correct credentials, and that you
  248. // haven't exceeded any of the service limits for your account.
  249. //
  250. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipeline
  251. func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
  252. req, out := c.CreatePipelineRequest(input)
  253. return out, req.Send()
  254. }
  255. // CreatePipelineWithContext is the same as CreatePipeline with the addition of
  256. // the ability to pass a context and additional request options.
  257. //
  258. // See CreatePipeline for details on how to use this API operation.
  259. //
  260. // The context must be non-nil and will be used for request cancellation. If
  261. // the context is nil a panic will occur. In the future the SDK may create
  262. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  263. // for more information on using Contexts.
  264. func (c *DataPipeline) CreatePipelineWithContext(ctx aws.Context, input *CreatePipelineInput, opts ...request.Option) (*CreatePipelineOutput, error) {
  265. req, out := c.CreatePipelineRequest(input)
  266. req.SetContext(ctx)
  267. req.ApplyOptions(opts...)
  268. return out, req.Send()
  269. }
  270. const opDeactivatePipeline = "DeactivatePipeline"
  271. // DeactivatePipelineRequest generates a "aws/request.Request" representing the
  272. // client's request for the DeactivatePipeline operation. The "output" return
  273. // value will be populated with the request's response once the request completes
  274. // successfully.
  275. //
  276. // Use "Send" method on the returned Request to send the API call to the service.
  277. // the "output" return value is not valid until after Send returns without error.
  278. //
  279. // See DeactivatePipeline for more information on using the DeactivatePipeline
  280. // API call, and error handling.
  281. //
  282. // This method is useful when you want to inject custom logic or configuration
  283. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  284. //
  285. //
  286. // // Example sending a request using the DeactivatePipelineRequest method.
  287. // req, resp := client.DeactivatePipelineRequest(params)
  288. //
  289. // err := req.Send()
  290. // if err == nil { // resp is now filled
  291. // fmt.Println(resp)
  292. // }
  293. //
  294. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipeline
  295. func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) (req *request.Request, output *DeactivatePipelineOutput) {
  296. op := &request.Operation{
  297. Name: opDeactivatePipeline,
  298. HTTPMethod: "POST",
  299. HTTPPath: "/",
  300. }
  301. if input == nil {
  302. input = &DeactivatePipelineInput{}
  303. }
  304. output = &DeactivatePipelineOutput{}
  305. req = c.newRequest(op, input, output)
  306. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  307. return
  308. }
  309. // DeactivatePipeline API operation for AWS Data Pipeline.
  310. //
  311. // Deactivates the specified running pipeline. The pipeline is set to the DEACTIVATING
  312. // state until the deactivation process completes.
  313. //
  314. // To resume a deactivated pipeline, use ActivatePipeline. By default, the pipeline
  315. // resumes from the last completed execution. Optionally, you can specify the
  316. // date and time to resume the pipeline.
  317. //
  318. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  319. // with awserr.Error's Code and Message methods to get detailed information about
  320. // the error.
  321. //
  322. // See the AWS API reference guide for AWS Data Pipeline's
  323. // API operation DeactivatePipeline for usage and error information.
  324. //
  325. // Returned Error Codes:
  326. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  327. // The specified pipeline was not found. Verify that you used the correct user
  328. // and account identifiers.
  329. //
  330. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  331. // The specified pipeline has been deleted.
  332. //
  333. // * ErrCodeInternalServiceError "InternalServiceError"
  334. // An internal service error occurred.
  335. //
  336. // * ErrCodeInvalidRequestException "InvalidRequestException"
  337. // The request was not valid. Verify that your request was properly formatted,
  338. // that the signature was generated with the correct credentials, and that you
  339. // haven't exceeded any of the service limits for your account.
  340. //
  341. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipeline
  342. func (c *DataPipeline) DeactivatePipeline(input *DeactivatePipelineInput) (*DeactivatePipelineOutput, error) {
  343. req, out := c.DeactivatePipelineRequest(input)
  344. return out, req.Send()
  345. }
  346. // DeactivatePipelineWithContext is the same as DeactivatePipeline with the addition of
  347. // the ability to pass a context and additional request options.
  348. //
  349. // See DeactivatePipeline for details on how to use this API operation.
  350. //
  351. // The context must be non-nil and will be used for request cancellation. If
  352. // the context is nil a panic will occur. In the future the SDK may create
  353. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  354. // for more information on using Contexts.
  355. func (c *DataPipeline) DeactivatePipelineWithContext(ctx aws.Context, input *DeactivatePipelineInput, opts ...request.Option) (*DeactivatePipelineOutput, error) {
  356. req, out := c.DeactivatePipelineRequest(input)
  357. req.SetContext(ctx)
  358. req.ApplyOptions(opts...)
  359. return out, req.Send()
  360. }
  361. const opDeletePipeline = "DeletePipeline"
  362. // DeletePipelineRequest generates a "aws/request.Request" representing the
  363. // client's request for the DeletePipeline operation. The "output" return
  364. // value will be populated with the request's response once the request completes
  365. // successfully.
  366. //
  367. // Use "Send" method on the returned Request to send the API call to the service.
  368. // the "output" return value is not valid until after Send returns without error.
  369. //
  370. // See DeletePipeline for more information on using the DeletePipeline
  371. // API call, and error handling.
  372. //
  373. // This method is useful when you want to inject custom logic or configuration
  374. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  375. //
  376. //
  377. // // Example sending a request using the DeletePipelineRequest method.
  378. // req, resp := client.DeletePipelineRequest(params)
  379. //
  380. // err := req.Send()
  381. // if err == nil { // resp is now filled
  382. // fmt.Println(resp)
  383. // }
  384. //
  385. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipeline
  386. func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
  387. op := &request.Operation{
  388. Name: opDeletePipeline,
  389. HTTPMethod: "POST",
  390. HTTPPath: "/",
  391. }
  392. if input == nil {
  393. input = &DeletePipelineInput{}
  394. }
  395. output = &DeletePipelineOutput{}
  396. req = c.newRequest(op, input, output)
  397. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  398. return
  399. }
  400. // DeletePipeline API operation for AWS Data Pipeline.
  401. //
  402. // Deletes a pipeline, its pipeline definition, and its run history. AWS Data
  403. // Pipeline attempts to cancel instances associated with the pipeline that are
  404. // currently being processed by task runners.
  405. //
  406. // Deleting a pipeline cannot be undone. You cannot query or restore a deleted
  407. // pipeline. To temporarily pause a pipeline instead of deleting it, call SetStatus
  408. // with the status set to PAUSE on individual components. Components that are
  409. // paused by SetStatus can be resumed.
  410. //
  411. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  412. // with awserr.Error's Code and Message methods to get detailed information about
  413. // the error.
  414. //
  415. // See the AWS API reference guide for AWS Data Pipeline's
  416. // API operation DeletePipeline for usage and error information.
  417. //
  418. // Returned Error Codes:
  419. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  420. // The specified pipeline was not found. Verify that you used the correct user
  421. // and account identifiers.
  422. //
  423. // * ErrCodeInternalServiceError "InternalServiceError"
  424. // An internal service error occurred.
  425. //
  426. // * ErrCodeInvalidRequestException "InvalidRequestException"
  427. // The request was not valid. Verify that your request was properly formatted,
  428. // that the signature was generated with the correct credentials, and that you
  429. // haven't exceeded any of the service limits for your account.
  430. //
  431. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipeline
  432. func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
  433. req, out := c.DeletePipelineRequest(input)
  434. return out, req.Send()
  435. }
  436. // DeletePipelineWithContext is the same as DeletePipeline with the addition of
  437. // the ability to pass a context and additional request options.
  438. //
  439. // See DeletePipeline for details on how to use this API operation.
  440. //
  441. // The context must be non-nil and will be used for request cancellation. If
  442. // the context is nil a panic will occur. In the future the SDK may create
  443. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  444. // for more information on using Contexts.
  445. func (c *DataPipeline) DeletePipelineWithContext(ctx aws.Context, input *DeletePipelineInput, opts ...request.Option) (*DeletePipelineOutput, error) {
  446. req, out := c.DeletePipelineRequest(input)
  447. req.SetContext(ctx)
  448. req.ApplyOptions(opts...)
  449. return out, req.Send()
  450. }
  451. const opDescribeObjects = "DescribeObjects"
  452. // DescribeObjectsRequest generates a "aws/request.Request" representing the
  453. // client's request for the DescribeObjects operation. The "output" return
  454. // value will be populated with the request's response once the request completes
  455. // successfully.
  456. //
  457. // Use "Send" method on the returned Request to send the API call to the service.
  458. // the "output" return value is not valid until after Send returns without error.
  459. //
  460. // See DescribeObjects for more information on using the DescribeObjects
  461. // API call, and error handling.
  462. //
  463. // This method is useful when you want to inject custom logic or configuration
  464. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  465. //
  466. //
  467. // // Example sending a request using the DescribeObjectsRequest method.
  468. // req, resp := client.DescribeObjectsRequest(params)
  469. //
  470. // err := req.Send()
  471. // if err == nil { // resp is now filled
  472. // fmt.Println(resp)
  473. // }
  474. //
  475. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjects
  476. func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req *request.Request, output *DescribeObjectsOutput) {
  477. op := &request.Operation{
  478. Name: opDescribeObjects,
  479. HTTPMethod: "POST",
  480. HTTPPath: "/",
  481. Paginator: &request.Paginator{
  482. InputTokens: []string{"marker"},
  483. OutputTokens: []string{"marker"},
  484. LimitToken: "",
  485. TruncationToken: "hasMoreResults",
  486. },
  487. }
  488. if input == nil {
  489. input = &DescribeObjectsInput{}
  490. }
  491. output = &DescribeObjectsOutput{}
  492. req = c.newRequest(op, input, output)
  493. return
  494. }
  495. // DescribeObjects API operation for AWS Data Pipeline.
  496. //
  497. // Gets the object definitions for a set of objects associated with the pipeline.
  498. // Object definitions are composed of a set of fields that define the properties
  499. // of the object.
  500. //
  501. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  502. // with awserr.Error's Code and Message methods to get detailed information about
  503. // the error.
  504. //
  505. // See the AWS API reference guide for AWS Data Pipeline's
  506. // API operation DescribeObjects for usage and error information.
  507. //
  508. // Returned Error Codes:
  509. // * ErrCodeInternalServiceError "InternalServiceError"
  510. // An internal service error occurred.
  511. //
  512. // * ErrCodeInvalidRequestException "InvalidRequestException"
  513. // The request was not valid. Verify that your request was properly formatted,
  514. // that the signature was generated with the correct credentials, and that you
  515. // haven't exceeded any of the service limits for your account.
  516. //
  517. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  518. // The specified pipeline was not found. Verify that you used the correct user
  519. // and account identifiers.
  520. //
  521. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  522. // The specified pipeline has been deleted.
  523. //
  524. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjects
  525. func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeObjectsOutput, error) {
  526. req, out := c.DescribeObjectsRequest(input)
  527. return out, req.Send()
  528. }
  529. // DescribeObjectsWithContext is the same as DescribeObjects with the addition of
  530. // the ability to pass a context and additional request options.
  531. //
  532. // See DescribeObjects for details on how to use this API operation.
  533. //
  534. // The context must be non-nil and will be used for request cancellation. If
  535. // the context is nil a panic will occur. In the future the SDK may create
  536. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  537. // for more information on using Contexts.
  538. func (c *DataPipeline) DescribeObjectsWithContext(ctx aws.Context, input *DescribeObjectsInput, opts ...request.Option) (*DescribeObjectsOutput, error) {
  539. req, out := c.DescribeObjectsRequest(input)
  540. req.SetContext(ctx)
  541. req.ApplyOptions(opts...)
  542. return out, req.Send()
  543. }
  544. // DescribeObjectsPages iterates over the pages of a DescribeObjects operation,
  545. // calling the "fn" function with the response data for each page. To stop
  546. // iterating, return false from the fn function.
  547. //
  548. // See DescribeObjects method for more information on how to use this operation.
  549. //
  550. // Note: This operation can generate multiple requests to a service.
  551. //
  552. // // Example iterating over at most 3 pages of a DescribeObjects operation.
  553. // pageNum := 0
  554. // err := client.DescribeObjectsPages(params,
  555. // func(page *DescribeObjectsOutput, lastPage bool) bool {
  556. // pageNum++
  557. // fmt.Println(page)
  558. // return pageNum <= 3
  559. // })
  560. //
  561. func (c *DataPipeline) DescribeObjectsPages(input *DescribeObjectsInput, fn func(*DescribeObjectsOutput, bool) bool) error {
  562. return c.DescribeObjectsPagesWithContext(aws.BackgroundContext(), input, fn)
  563. }
  564. // DescribeObjectsPagesWithContext same as DescribeObjectsPages except
  565. // it takes a Context and allows setting request options on the pages.
  566. //
  567. // The context must be non-nil and will be used for request cancellation. If
  568. // the context is nil a panic will occur. In the future the SDK may create
  569. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  570. // for more information on using Contexts.
  571. func (c *DataPipeline) DescribeObjectsPagesWithContext(ctx aws.Context, input *DescribeObjectsInput, fn func(*DescribeObjectsOutput, bool) bool, opts ...request.Option) error {
  572. p := request.Pagination{
  573. NewRequest: func() (*request.Request, error) {
  574. var inCpy *DescribeObjectsInput
  575. if input != nil {
  576. tmp := *input
  577. inCpy = &tmp
  578. }
  579. req, _ := c.DescribeObjectsRequest(inCpy)
  580. req.SetContext(ctx)
  581. req.ApplyOptions(opts...)
  582. return req, nil
  583. },
  584. }
  585. cont := true
  586. for p.Next() && cont {
  587. cont = fn(p.Page().(*DescribeObjectsOutput), !p.HasNextPage())
  588. }
  589. return p.Err()
  590. }
  591. const opDescribePipelines = "DescribePipelines"
  592. // DescribePipelinesRequest generates a "aws/request.Request" representing the
  593. // client's request for the DescribePipelines operation. The "output" return
  594. // value will be populated with the request's response once the request completes
  595. // successfully.
  596. //
  597. // Use "Send" method on the returned Request to send the API call to the service.
  598. // the "output" return value is not valid until after Send returns without error.
  599. //
  600. // See DescribePipelines for more information on using the DescribePipelines
  601. // API call, and error handling.
  602. //
  603. // This method is useful when you want to inject custom logic or configuration
  604. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  605. //
  606. //
  607. // // Example sending a request using the DescribePipelinesRequest method.
  608. // req, resp := client.DescribePipelinesRequest(params)
  609. //
  610. // err := req.Send()
  611. // if err == nil { // resp is now filled
  612. // fmt.Println(resp)
  613. // }
  614. //
  615. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelines
  616. func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) (req *request.Request, output *DescribePipelinesOutput) {
  617. op := &request.Operation{
  618. Name: opDescribePipelines,
  619. HTTPMethod: "POST",
  620. HTTPPath: "/",
  621. }
  622. if input == nil {
  623. input = &DescribePipelinesInput{}
  624. }
  625. output = &DescribePipelinesOutput{}
  626. req = c.newRequest(op, input, output)
  627. return
  628. }
  629. // DescribePipelines API operation for AWS Data Pipeline.
  630. //
  631. // Retrieves metadata about one or more pipelines. The information retrieved
  632. // includes the name of the pipeline, the pipeline identifier, its current state,
  633. // and the user account that owns the pipeline. Using account credentials, you
  634. // can retrieve metadata about pipelines that you or your IAM users have created.
  635. // If you are using an IAM user account, you can retrieve metadata about only
  636. // those pipelines for which you have read permissions.
  637. //
  638. // To retrieve the full pipeline definition instead of metadata about the pipeline,
  639. // call GetPipelineDefinition.
  640. //
  641. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  642. // with awserr.Error's Code and Message methods to get detailed information about
  643. // the error.
  644. //
  645. // See the AWS API reference guide for AWS Data Pipeline's
  646. // API operation DescribePipelines for usage and error information.
  647. //
  648. // Returned Error Codes:
  649. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  650. // The specified pipeline was not found. Verify that you used the correct user
  651. // and account identifiers.
  652. //
  653. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  654. // The specified pipeline has been deleted.
  655. //
  656. // * ErrCodeInternalServiceError "InternalServiceError"
  657. // An internal service error occurred.
  658. //
  659. // * ErrCodeInvalidRequestException "InvalidRequestException"
  660. // The request was not valid. Verify that your request was properly formatted,
  661. // that the signature was generated with the correct credentials, and that you
  662. // haven't exceeded any of the service limits for your account.
  663. //
  664. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelines
  665. func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (*DescribePipelinesOutput, error) {
  666. req, out := c.DescribePipelinesRequest(input)
  667. return out, req.Send()
  668. }
  669. // DescribePipelinesWithContext is the same as DescribePipelines with the addition of
  670. // the ability to pass a context and additional request options.
  671. //
  672. // See DescribePipelines for details on how to use this API operation.
  673. //
  674. // The context must be non-nil and will be used for request cancellation. If
  675. // the context is nil a panic will occur. In the future the SDK may create
  676. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  677. // for more information on using Contexts.
  678. func (c *DataPipeline) DescribePipelinesWithContext(ctx aws.Context, input *DescribePipelinesInput, opts ...request.Option) (*DescribePipelinesOutput, error) {
  679. req, out := c.DescribePipelinesRequest(input)
  680. req.SetContext(ctx)
  681. req.ApplyOptions(opts...)
  682. return out, req.Send()
  683. }
  684. const opEvaluateExpression = "EvaluateExpression"
  685. // EvaluateExpressionRequest generates a "aws/request.Request" representing the
  686. // client's request for the EvaluateExpression operation. The "output" return
  687. // value will be populated with the request's response once the request completes
  688. // successfully.
  689. //
  690. // Use "Send" method on the returned Request to send the API call to the service.
  691. // the "output" return value is not valid until after Send returns without error.
  692. //
  693. // See EvaluateExpression for more information on using the EvaluateExpression
  694. // API call, and error handling.
  695. //
  696. // This method is useful when you want to inject custom logic or configuration
  697. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  698. //
  699. //
  700. // // Example sending a request using the EvaluateExpressionRequest method.
  701. // req, resp := client.EvaluateExpressionRequest(params)
  702. //
  703. // err := req.Send()
  704. // if err == nil { // resp is now filled
  705. // fmt.Println(resp)
  706. // }
  707. //
  708. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression
  709. func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) (req *request.Request, output *EvaluateExpressionOutput) {
  710. op := &request.Operation{
  711. Name: opEvaluateExpression,
  712. HTTPMethod: "POST",
  713. HTTPPath: "/",
  714. }
  715. if input == nil {
  716. input = &EvaluateExpressionInput{}
  717. }
  718. output = &EvaluateExpressionOutput{}
  719. req = c.newRequest(op, input, output)
  720. return
  721. }
  722. // EvaluateExpression API operation for AWS Data Pipeline.
  723. //
  724. // Task runners call EvaluateExpression to evaluate a string in the context
  725. // of the specified object. For example, a task runner can evaluate SQL queries
  726. // stored in Amazon S3.
  727. //
  728. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  729. // with awserr.Error's Code and Message methods to get detailed information about
  730. // the error.
  731. //
  732. // See the AWS API reference guide for AWS Data Pipeline's
  733. // API operation EvaluateExpression for usage and error information.
  734. //
  735. // Returned Error Codes:
  736. // * ErrCodeInternalServiceError "InternalServiceError"
  737. // An internal service error occurred.
  738. //
  739. // * ErrCodeTaskNotFoundException "TaskNotFoundException"
  740. // The specified task was not found.
  741. //
  742. // * ErrCodeInvalidRequestException "InvalidRequestException"
  743. // The request was not valid. Verify that your request was properly formatted,
  744. // that the signature was generated with the correct credentials, and that you
  745. // haven't exceeded any of the service limits for your account.
  746. //
  747. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  748. // The specified pipeline was not found. Verify that you used the correct user
  749. // and account identifiers.
  750. //
  751. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  752. // The specified pipeline has been deleted.
  753. //
  754. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression
  755. func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (*EvaluateExpressionOutput, error) {
  756. req, out := c.EvaluateExpressionRequest(input)
  757. return out, req.Send()
  758. }
  759. // EvaluateExpressionWithContext is the same as EvaluateExpression with the addition of
  760. // the ability to pass a context and additional request options.
  761. //
  762. // See EvaluateExpression for details on how to use this API operation.
  763. //
  764. // The context must be non-nil and will be used for request cancellation. If
  765. // the context is nil a panic will occur. In the future the SDK may create
  766. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  767. // for more information on using Contexts.
  768. func (c *DataPipeline) EvaluateExpressionWithContext(ctx aws.Context, input *EvaluateExpressionInput, opts ...request.Option) (*EvaluateExpressionOutput, error) {
  769. req, out := c.EvaluateExpressionRequest(input)
  770. req.SetContext(ctx)
  771. req.ApplyOptions(opts...)
  772. return out, req.Send()
  773. }
  774. const opGetPipelineDefinition = "GetPipelineDefinition"
  775. // GetPipelineDefinitionRequest generates a "aws/request.Request" representing the
  776. // client's request for the GetPipelineDefinition operation. The "output" return
  777. // value will be populated with the request's response once the request completes
  778. // successfully.
  779. //
  780. // Use "Send" method on the returned Request to send the API call to the service.
  781. // the "output" return value is not valid until after Send returns without error.
  782. //
  783. // See GetPipelineDefinition for more information on using the GetPipelineDefinition
  784. // API call, and error handling.
  785. //
  786. // This method is useful when you want to inject custom logic or configuration
  787. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  788. //
  789. //
  790. // // Example sending a request using the GetPipelineDefinitionRequest method.
  791. // req, resp := client.GetPipelineDefinitionRequest(params)
  792. //
  793. // err := req.Send()
  794. // if err == nil { // resp is now filled
  795. // fmt.Println(resp)
  796. // }
  797. //
  798. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinition
  799. func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinitionInput) (req *request.Request, output *GetPipelineDefinitionOutput) {
  800. op := &request.Operation{
  801. Name: opGetPipelineDefinition,
  802. HTTPMethod: "POST",
  803. HTTPPath: "/",
  804. }
  805. if input == nil {
  806. input = &GetPipelineDefinitionInput{}
  807. }
  808. output = &GetPipelineDefinitionOutput{}
  809. req = c.newRequest(op, input, output)
  810. return
  811. }
  812. // GetPipelineDefinition API operation for AWS Data Pipeline.
  813. //
  814. // Gets the definition of the specified pipeline. You can call GetPipelineDefinition
  815. // to retrieve the pipeline definition that you provided using PutPipelineDefinition.
  816. //
  817. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  818. // with awserr.Error's Code and Message methods to get detailed information about
  819. // the error.
  820. //
  821. // See the AWS API reference guide for AWS Data Pipeline's
  822. // API operation GetPipelineDefinition for usage and error information.
  823. //
  824. // Returned Error Codes:
  825. // * ErrCodeInternalServiceError "InternalServiceError"
  826. // An internal service error occurred.
  827. //
  828. // * ErrCodeInvalidRequestException "InvalidRequestException"
  829. // The request was not valid. Verify that your request was properly formatted,
  830. // that the signature was generated with the correct credentials, and that you
  831. // haven't exceeded any of the service limits for your account.
  832. //
  833. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  834. // The specified pipeline was not found. Verify that you used the correct user
  835. // and account identifiers.
  836. //
  837. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  838. // The specified pipeline has been deleted.
  839. //
  840. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinition
  841. func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (*GetPipelineDefinitionOutput, error) {
  842. req, out := c.GetPipelineDefinitionRequest(input)
  843. return out, req.Send()
  844. }
  845. // GetPipelineDefinitionWithContext is the same as GetPipelineDefinition with the addition of
  846. // the ability to pass a context and additional request options.
  847. //
  848. // See GetPipelineDefinition for details on how to use this API operation.
  849. //
  850. // The context must be non-nil and will be used for request cancellation. If
  851. // the context is nil a panic will occur. In the future the SDK may create
  852. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  853. // for more information on using Contexts.
  854. func (c *DataPipeline) GetPipelineDefinitionWithContext(ctx aws.Context, input *GetPipelineDefinitionInput, opts ...request.Option) (*GetPipelineDefinitionOutput, error) {
  855. req, out := c.GetPipelineDefinitionRequest(input)
  856. req.SetContext(ctx)
  857. req.ApplyOptions(opts...)
  858. return out, req.Send()
  859. }
  860. const opListPipelines = "ListPipelines"
  861. // ListPipelinesRequest generates a "aws/request.Request" representing the
  862. // client's request for the ListPipelines operation. The "output" return
  863. // value will be populated with the request's response once the request completes
  864. // successfully.
  865. //
  866. // Use "Send" method on the returned Request to send the API call to the service.
  867. // the "output" return value is not valid until after Send returns without error.
  868. //
  869. // See ListPipelines for more information on using the ListPipelines
  870. // API call, and error handling.
  871. //
  872. // This method is useful when you want to inject custom logic or configuration
  873. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  874. //
  875. //
  876. // // Example sending a request using the ListPipelinesRequest method.
  877. // req, resp := client.ListPipelinesRequest(params)
  878. //
  879. // err := req.Send()
  880. // if err == nil { // resp is now filled
  881. // fmt.Println(resp)
  882. // }
  883. //
  884. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelines
  885. func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
  886. op := &request.Operation{
  887. Name: opListPipelines,
  888. HTTPMethod: "POST",
  889. HTTPPath: "/",
  890. Paginator: &request.Paginator{
  891. InputTokens: []string{"marker"},
  892. OutputTokens: []string{"marker"},
  893. LimitToken: "",
  894. TruncationToken: "hasMoreResults",
  895. },
  896. }
  897. if input == nil {
  898. input = &ListPipelinesInput{}
  899. }
  900. output = &ListPipelinesOutput{}
  901. req = c.newRequest(op, input, output)
  902. return
  903. }
  904. // ListPipelines API operation for AWS Data Pipeline.
  905. //
  906. // Lists the pipeline identifiers for all active pipelines that you have permission
  907. // to access.
  908. //
  909. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  910. // with awserr.Error's Code and Message methods to get detailed information about
  911. // the error.
  912. //
  913. // See the AWS API reference guide for AWS Data Pipeline's
  914. // API operation ListPipelines for usage and error information.
  915. //
  916. // Returned Error Codes:
  917. // * ErrCodeInternalServiceError "InternalServiceError"
  918. // An internal service error occurred.
  919. //
  920. // * ErrCodeInvalidRequestException "InvalidRequestException"
  921. // The request was not valid. Verify that your request was properly formatted,
  922. // that the signature was generated with the correct credentials, and that you
  923. // haven't exceeded any of the service limits for your account.
  924. //
  925. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelines
  926. func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
  927. req, out := c.ListPipelinesRequest(input)
  928. return out, req.Send()
  929. }
  930. // ListPipelinesWithContext is the same as ListPipelines with the addition of
  931. // the ability to pass a context and additional request options.
  932. //
  933. // See ListPipelines for details on how to use this API operation.
  934. //
  935. // The context must be non-nil and will be used for request cancellation. If
  936. // the context is nil a panic will occur. In the future the SDK may create
  937. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  938. // for more information on using Contexts.
  939. func (c *DataPipeline) ListPipelinesWithContext(ctx aws.Context, input *ListPipelinesInput, opts ...request.Option) (*ListPipelinesOutput, error) {
  940. req, out := c.ListPipelinesRequest(input)
  941. req.SetContext(ctx)
  942. req.ApplyOptions(opts...)
  943. return out, req.Send()
  944. }
  945. // ListPipelinesPages iterates over the pages of a ListPipelines operation,
  946. // calling the "fn" function with the response data for each page. To stop
  947. // iterating, return false from the fn function.
  948. //
  949. // See ListPipelines method for more information on how to use this operation.
  950. //
  951. // Note: This operation can generate multiple requests to a service.
  952. //
  953. // // Example iterating over at most 3 pages of a ListPipelines operation.
  954. // pageNum := 0
  955. // err := client.ListPipelinesPages(params,
  956. // func(page *ListPipelinesOutput, lastPage bool) bool {
  957. // pageNum++
  958. // fmt.Println(page)
  959. // return pageNum <= 3
  960. // })
  961. //
  962. func (c *DataPipeline) ListPipelinesPages(input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool) error {
  963. return c.ListPipelinesPagesWithContext(aws.BackgroundContext(), input, fn)
  964. }
  965. // ListPipelinesPagesWithContext same as ListPipelinesPages except
  966. // it takes a Context and allows setting request options on the pages.
  967. //
  968. // The context must be non-nil and will be used for request cancellation. If
  969. // the context is nil a panic will occur. In the future the SDK may create
  970. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  971. // for more information on using Contexts.
  972. func (c *DataPipeline) ListPipelinesPagesWithContext(ctx aws.Context, input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool, opts ...request.Option) error {
  973. p := request.Pagination{
  974. NewRequest: func() (*request.Request, error) {
  975. var inCpy *ListPipelinesInput
  976. if input != nil {
  977. tmp := *input
  978. inCpy = &tmp
  979. }
  980. req, _ := c.ListPipelinesRequest(inCpy)
  981. req.SetContext(ctx)
  982. req.ApplyOptions(opts...)
  983. return req, nil
  984. },
  985. }
  986. cont := true
  987. for p.Next() && cont {
  988. cont = fn(p.Page().(*ListPipelinesOutput), !p.HasNextPage())
  989. }
  990. return p.Err()
  991. }
  992. const opPollForTask = "PollForTask"
  993. // PollForTaskRequest generates a "aws/request.Request" representing the
  994. // client's request for the PollForTask operation. The "output" return
  995. // value will be populated with the request's response once the request completes
  996. // successfully.
  997. //
  998. // Use "Send" method on the returned Request to send the API call to the service.
  999. // the "output" return value is not valid until after Send returns without error.
  1000. //
  1001. // See PollForTask for more information on using the PollForTask
  1002. // API call, and error handling.
  1003. //
  1004. // This method is useful when you want to inject custom logic or configuration
  1005. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1006. //
  1007. //
  1008. // // Example sending a request using the PollForTaskRequest method.
  1009. // req, resp := client.PollForTaskRequest(params)
  1010. //
  1011. // err := req.Send()
  1012. // if err == nil { // resp is now filled
  1013. // fmt.Println(resp)
  1014. // }
  1015. //
  1016. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTask
  1017. func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request.Request, output *PollForTaskOutput) {
  1018. op := &request.Operation{
  1019. Name: opPollForTask,
  1020. HTTPMethod: "POST",
  1021. HTTPPath: "/",
  1022. }
  1023. if input == nil {
  1024. input = &PollForTaskInput{}
  1025. }
  1026. output = &PollForTaskOutput{}
  1027. req = c.newRequest(op, input, output)
  1028. return
  1029. }
  1030. // PollForTask API operation for AWS Data Pipeline.
  1031. //
  1032. // Task runners call PollForTask to receive a task to perform from AWS Data
  1033. // Pipeline. The task runner specifies which tasks it can perform by setting
  1034. // a value for the workerGroup parameter. The task returned can come from any
  1035. // of the pipelines that match the workerGroup value passed in by the task runner
  1036. // and that was launched using the IAM user credentials specified by the task
  1037. // runner.
  1038. //
  1039. // If tasks are ready in the work queue, PollForTask returns a response immediately.
  1040. // If no tasks are available in the queue, PollForTask uses long-polling and
  1041. // holds on to a poll connection for up to a 90 seconds, during which time the
  1042. // first newly scheduled task is handed to the task runner. To accomodate this,
  1043. // set the socket timeout in your task runner to 90 seconds. The task runner
  1044. // should not call PollForTask again on the same workerGroup until it receives
  1045. // a response, and this can take up to 90 seconds.
  1046. //
  1047. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1048. // with awserr.Error's Code and Message methods to get detailed information about
  1049. // the error.
  1050. //
  1051. // See the AWS API reference guide for AWS Data Pipeline's
  1052. // API operation PollForTask for usage and error information.
  1053. //
  1054. // Returned Error Codes:
  1055. // * ErrCodeInternalServiceError "InternalServiceError"
  1056. // An internal service error occurred.
  1057. //
  1058. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1059. // The request was not valid. Verify that your request was properly formatted,
  1060. // that the signature was generated with the correct credentials, and that you
  1061. // haven't exceeded any of the service limits for your account.
  1062. //
  1063. // * ErrCodeTaskNotFoundException "TaskNotFoundException"
  1064. // The specified task was not found.
  1065. //
  1066. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTask
  1067. func (c *DataPipeline) PollForTask(input *PollForTaskInput) (*PollForTaskOutput, error) {
  1068. req, out := c.PollForTaskRequest(input)
  1069. return out, req.Send()
  1070. }
  1071. // PollForTaskWithContext is the same as PollForTask with the addition of
  1072. // the ability to pass a context and additional request options.
  1073. //
  1074. // See PollForTask for details on how to use this API operation.
  1075. //
  1076. // The context must be non-nil and will be used for request cancellation. If
  1077. // the context is nil a panic will occur. In the future the SDK may create
  1078. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1079. // for more information on using Contexts.
  1080. func (c *DataPipeline) PollForTaskWithContext(ctx aws.Context, input *PollForTaskInput, opts ...request.Option) (*PollForTaskOutput, error) {
  1081. req, out := c.PollForTaskRequest(input)
  1082. req.SetContext(ctx)
  1083. req.ApplyOptions(opts...)
  1084. return out, req.Send()
  1085. }
  1086. const opPutPipelineDefinition = "PutPipelineDefinition"
  1087. // PutPipelineDefinitionRequest generates a "aws/request.Request" representing the
  1088. // client's request for the PutPipelineDefinition operation. The "output" return
  1089. // value will be populated with the request's response once the request completes
  1090. // successfully.
  1091. //
  1092. // Use "Send" method on the returned Request to send the API call to the service.
  1093. // the "output" return value is not valid until after Send returns without error.
  1094. //
  1095. // See PutPipelineDefinition for more information on using the PutPipelineDefinition
  1096. // API call, and error handling.
  1097. //
  1098. // This method is useful when you want to inject custom logic or configuration
  1099. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1100. //
  1101. //
  1102. // // Example sending a request using the PutPipelineDefinitionRequest method.
  1103. // req, resp := client.PutPipelineDefinitionRequest(params)
  1104. //
  1105. // err := req.Send()
  1106. // if err == nil { // resp is now filled
  1107. // fmt.Println(resp)
  1108. // }
  1109. //
  1110. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinition
  1111. func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinitionInput) (req *request.Request, output *PutPipelineDefinitionOutput) {
  1112. op := &request.Operation{
  1113. Name: opPutPipelineDefinition,
  1114. HTTPMethod: "POST",
  1115. HTTPPath: "/",
  1116. }
  1117. if input == nil {
  1118. input = &PutPipelineDefinitionInput{}
  1119. }
  1120. output = &PutPipelineDefinitionOutput{}
  1121. req = c.newRequest(op, input, output)
  1122. return
  1123. }
  1124. // PutPipelineDefinition API operation for AWS Data Pipeline.
  1125. //
  1126. // Adds tasks, schedules, and preconditions to the specified pipeline. You can
  1127. // use PutPipelineDefinition to populate a new pipeline.
  1128. //
  1129. // PutPipelineDefinition also validates the configuration as it adds it to the
  1130. // pipeline. Changes to the pipeline are saved unless one of the following three
  1131. // validation errors exists in the pipeline.
  1132. //
  1133. // An object is missing a name or identifier field.
  1134. // A string or reference field is empty.
  1135. // The number of objects in the pipeline exceeds the maximum allowed objects.
  1136. //
  1137. // The pipeline is in a FINISHED state.
  1138. // Pipeline object definitions are passed to the PutPipelineDefinition action
  1139. // and returned by the GetPipelineDefinition action.
  1140. //
  1141. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1142. // with awserr.Error's Code and Message methods to get detailed information about
  1143. // the error.
  1144. //
  1145. // See the AWS API reference guide for AWS Data Pipeline's
  1146. // API operation PutPipelineDefinition for usage and error information.
  1147. //
  1148. // Returned Error Codes:
  1149. // * ErrCodeInternalServiceError "InternalServiceError"
  1150. // An internal service error occurred.
  1151. //
  1152. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1153. // The request was not valid. Verify that your request was properly formatted,
  1154. // that the signature was generated with the correct credentials, and that you
  1155. // haven't exceeded any of the service limits for your account.
  1156. //
  1157. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1158. // The specified pipeline was not found. Verify that you used the correct user
  1159. // and account identifiers.
  1160. //
  1161. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  1162. // The specified pipeline has been deleted.
  1163. //
  1164. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinition
  1165. func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (*PutPipelineDefinitionOutput, error) {
  1166. req, out := c.PutPipelineDefinitionRequest(input)
  1167. return out, req.Send()
  1168. }
  1169. // PutPipelineDefinitionWithContext is the same as PutPipelineDefinition with the addition of
  1170. // the ability to pass a context and additional request options.
  1171. //
  1172. // See PutPipelineDefinition for details on how to use this API operation.
  1173. //
  1174. // The context must be non-nil and will be used for request cancellation. If
  1175. // the context is nil a panic will occur. In the future the SDK may create
  1176. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1177. // for more information on using Contexts.
  1178. func (c *DataPipeline) PutPipelineDefinitionWithContext(ctx aws.Context, input *PutPipelineDefinitionInput, opts ...request.Option) (*PutPipelineDefinitionOutput, error) {
  1179. req, out := c.PutPipelineDefinitionRequest(input)
  1180. req.SetContext(ctx)
  1181. req.ApplyOptions(opts...)
  1182. return out, req.Send()
  1183. }
  1184. const opQueryObjects = "QueryObjects"
  1185. // QueryObjectsRequest generates a "aws/request.Request" representing the
  1186. // client's request for the QueryObjects operation. The "output" return
  1187. // value will be populated with the request's response once the request completes
  1188. // successfully.
  1189. //
  1190. // Use "Send" method on the returned Request to send the API call to the service.
  1191. // the "output" return value is not valid until after Send returns without error.
  1192. //
  1193. // See QueryObjects for more information on using the QueryObjects
  1194. // API call, and error handling.
  1195. //
  1196. // This method is useful when you want to inject custom logic or configuration
  1197. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1198. //
  1199. //
  1200. // // Example sending a request using the QueryObjectsRequest method.
  1201. // req, resp := client.QueryObjectsRequest(params)
  1202. //
  1203. // err := req.Send()
  1204. // if err == nil { // resp is now filled
  1205. // fmt.Println(resp)
  1206. // }
  1207. //
  1208. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjects
  1209. func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *request.Request, output *QueryObjectsOutput) {
  1210. op := &request.Operation{
  1211. Name: opQueryObjects,
  1212. HTTPMethod: "POST",
  1213. HTTPPath: "/",
  1214. Paginator: &request.Paginator{
  1215. InputTokens: []string{"marker"},
  1216. OutputTokens: []string{"marker"},
  1217. LimitToken: "limit",
  1218. TruncationToken: "hasMoreResults",
  1219. },
  1220. }
  1221. if input == nil {
  1222. input = &QueryObjectsInput{}
  1223. }
  1224. output = &QueryObjectsOutput{}
  1225. req = c.newRequest(op, input, output)
  1226. return
  1227. }
  1228. // QueryObjects API operation for AWS Data Pipeline.
  1229. //
  1230. // Queries the specified pipeline for the names of objects that match the specified
  1231. // set of conditions.
  1232. //
  1233. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1234. // with awserr.Error's Code and Message methods to get detailed information about
  1235. // the error.
  1236. //
  1237. // See the AWS API reference guide for AWS Data Pipeline's
  1238. // API operation QueryObjects for usage and error information.
  1239. //
  1240. // Returned Error Codes:
  1241. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1242. // The specified pipeline was not found. Verify that you used the correct user
  1243. // and account identifiers.
  1244. //
  1245. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  1246. // The specified pipeline has been deleted.
  1247. //
  1248. // * ErrCodeInternalServiceError "InternalServiceError"
  1249. // An internal service error occurred.
  1250. //
  1251. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1252. // The request was not valid. Verify that your request was properly formatted,
  1253. // that the signature was generated with the correct credentials, and that you
  1254. // haven't exceeded any of the service limits for your account.
  1255. //
  1256. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjects
  1257. func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutput, error) {
  1258. req, out := c.QueryObjectsRequest(input)
  1259. return out, req.Send()
  1260. }
  1261. // QueryObjectsWithContext is the same as QueryObjects with the addition of
  1262. // the ability to pass a context and additional request options.
  1263. //
  1264. // See QueryObjects for details on how to use this API operation.
  1265. //
  1266. // The context must be non-nil and will be used for request cancellation. If
  1267. // the context is nil a panic will occur. In the future the SDK may create
  1268. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1269. // for more information on using Contexts.
  1270. func (c *DataPipeline) QueryObjectsWithContext(ctx aws.Context, input *QueryObjectsInput, opts ...request.Option) (*QueryObjectsOutput, error) {
  1271. req, out := c.QueryObjectsRequest(input)
  1272. req.SetContext(ctx)
  1273. req.ApplyOptions(opts...)
  1274. return out, req.Send()
  1275. }
  1276. // QueryObjectsPages iterates over the pages of a QueryObjects operation,
  1277. // calling the "fn" function with the response data for each page. To stop
  1278. // iterating, return false from the fn function.
  1279. //
  1280. // See QueryObjects method for more information on how to use this operation.
  1281. //
  1282. // Note: This operation can generate multiple requests to a service.
  1283. //
  1284. // // Example iterating over at most 3 pages of a QueryObjects operation.
  1285. // pageNum := 0
  1286. // err := client.QueryObjectsPages(params,
  1287. // func(page *QueryObjectsOutput, lastPage bool) bool {
  1288. // pageNum++
  1289. // fmt.Println(page)
  1290. // return pageNum <= 3
  1291. // })
  1292. //
  1293. func (c *DataPipeline) QueryObjectsPages(input *QueryObjectsInput, fn func(*QueryObjectsOutput, bool) bool) error {
  1294. return c.QueryObjectsPagesWithContext(aws.BackgroundContext(), input, fn)
  1295. }
  1296. // QueryObjectsPagesWithContext same as QueryObjectsPages except
  1297. // it takes a Context and allows setting request options on the pages.
  1298. //
  1299. // The context must be non-nil and will be used for request cancellation. If
  1300. // the context is nil a panic will occur. In the future the SDK may create
  1301. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1302. // for more information on using Contexts.
  1303. func (c *DataPipeline) QueryObjectsPagesWithContext(ctx aws.Context, input *QueryObjectsInput, fn func(*QueryObjectsOutput, bool) bool, opts ...request.Option) error {
  1304. p := request.Pagination{
  1305. NewRequest: func() (*request.Request, error) {
  1306. var inCpy *QueryObjectsInput
  1307. if input != nil {
  1308. tmp := *input
  1309. inCpy = &tmp
  1310. }
  1311. req, _ := c.QueryObjectsRequest(inCpy)
  1312. req.SetContext(ctx)
  1313. req.ApplyOptions(opts...)
  1314. return req, nil
  1315. },
  1316. }
  1317. cont := true
  1318. for p.Next() && cont {
  1319. cont = fn(p.Page().(*QueryObjectsOutput), !p.HasNextPage())
  1320. }
  1321. return p.Err()
  1322. }
  1323. const opRemoveTags = "RemoveTags"
  1324. // RemoveTagsRequest generates a "aws/request.Request" representing the
  1325. // client's request for the RemoveTags operation. The "output" return
  1326. // value will be populated with the request's response once the request completes
  1327. // successfully.
  1328. //
  1329. // Use "Send" method on the returned Request to send the API call to the service.
  1330. // the "output" return value is not valid until after Send returns without error.
  1331. //
  1332. // See RemoveTags for more information on using the RemoveTags
  1333. // API call, and error handling.
  1334. //
  1335. // This method is useful when you want to inject custom logic or configuration
  1336. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1337. //
  1338. //
  1339. // // Example sending a request using the RemoveTagsRequest method.
  1340. // req, resp := client.RemoveTagsRequest(params)
  1341. //
  1342. // err := req.Send()
  1343. // if err == nil { // resp is now filled
  1344. // fmt.Println(resp)
  1345. // }
  1346. //
  1347. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTags
  1348. func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
  1349. op := &request.Operation{
  1350. Name: opRemoveTags,
  1351. HTTPMethod: "POST",
  1352. HTTPPath: "/",
  1353. }
  1354. if input == nil {
  1355. input = &RemoveTagsInput{}
  1356. }
  1357. output = &RemoveTagsOutput{}
  1358. req = c.newRequest(op, input, output)
  1359. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1360. return
  1361. }
  1362. // RemoveTags API operation for AWS Data Pipeline.
  1363. //
  1364. // Removes existing tags from the specified pipeline.
  1365. //
  1366. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1367. // with awserr.Error's Code and Message methods to get detailed information about
  1368. // the error.
  1369. //
  1370. // See the AWS API reference guide for AWS Data Pipeline's
  1371. // API operation RemoveTags for usage and error information.
  1372. //
  1373. // Returned Error Codes:
  1374. // * ErrCodeInternalServiceError "InternalServiceError"
  1375. // An internal service error occurred.
  1376. //
  1377. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1378. // The request was not valid. Verify that your request was properly formatted,
  1379. // that the signature was generated with the correct credentials, and that you
  1380. // haven't exceeded any of the service limits for your account.
  1381. //
  1382. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1383. // The specified pipeline was not found. Verify that you used the correct user
  1384. // and account identifiers.
  1385. //
  1386. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  1387. // The specified pipeline has been deleted.
  1388. //
  1389. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTags
  1390. func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
  1391. req, out := c.RemoveTagsRequest(input)
  1392. return out, req.Send()
  1393. }
  1394. // RemoveTagsWithContext is the same as RemoveTags with the addition of
  1395. // the ability to pass a context and additional request options.
  1396. //
  1397. // See RemoveTags for details on how to use this API operation.
  1398. //
  1399. // The context must be non-nil and will be used for request cancellation. If
  1400. // the context is nil a panic will occur. In the future the SDK may create
  1401. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1402. // for more information on using Contexts.
  1403. func (c *DataPipeline) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error) {
  1404. req, out := c.RemoveTagsRequest(input)
  1405. req.SetContext(ctx)
  1406. req.ApplyOptions(opts...)
  1407. return out, req.Send()
  1408. }
  1409. const opReportTaskProgress = "ReportTaskProgress"
  1410. // ReportTaskProgressRequest generates a "aws/request.Request" representing the
  1411. // client's request for the ReportTaskProgress operation. The "output" return
  1412. // value will be populated with the request's response once the request completes
  1413. // successfully.
  1414. //
  1415. // Use "Send" method on the returned Request to send the API call to the service.
  1416. // the "output" return value is not valid until after Send returns without error.
  1417. //
  1418. // See ReportTaskProgress for more information on using the ReportTaskProgress
  1419. // API call, and error handling.
  1420. //
  1421. // This method is useful when you want to inject custom logic or configuration
  1422. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1423. //
  1424. //
  1425. // // Example sending a request using the ReportTaskProgressRequest method.
  1426. // req, resp := client.ReportTaskProgressRequest(params)
  1427. //
  1428. // err := req.Send()
  1429. // if err == nil { // resp is now filled
  1430. // fmt.Println(resp)
  1431. // }
  1432. //
  1433. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgress
  1434. func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) (req *request.Request, output *ReportTaskProgressOutput) {
  1435. op := &request.Operation{
  1436. Name: opReportTaskProgress,
  1437. HTTPMethod: "POST",
  1438. HTTPPath: "/",
  1439. }
  1440. if input == nil {
  1441. input = &ReportTaskProgressInput{}
  1442. }
  1443. output = &ReportTaskProgressOutput{}
  1444. req = c.newRequest(op, input, output)
  1445. return
  1446. }
  1447. // ReportTaskProgress API operation for AWS Data Pipeline.
  1448. //
  1449. // Task runners call ReportTaskProgress when assigned a task to acknowledge
  1450. // that it has the task. If the web service does not receive this acknowledgement
  1451. // within 2 minutes, it assigns the task in a subsequent PollForTask call. After
  1452. // this initial acknowledgement, the task runner only needs to report progress
  1453. // every 15 minutes to maintain its ownership of the task. You can change this
  1454. // reporting time from 15 minutes by specifying a reportProgressTimeout field
  1455. // in your pipeline.
  1456. //
  1457. // If a task runner does not report its status after 5 minutes, AWS Data Pipeline
  1458. // assumes that the task runner is unable to process the task and reassigns
  1459. // the task in a subsequent response to PollForTask. Task runners should call
  1460. // ReportTaskProgress every 60 seconds.
  1461. //
  1462. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1463. // with awserr.Error's Code and Message methods to get detailed information about
  1464. // the error.
  1465. //
  1466. // See the AWS API reference guide for AWS Data Pipeline's
  1467. // API operation ReportTaskProgress for usage and error information.
  1468. //
  1469. // Returned Error Codes:
  1470. // * ErrCodeInternalServiceError "InternalServiceError"
  1471. // An internal service error occurred.
  1472. //
  1473. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1474. // The request was not valid. Verify that your request was properly formatted,
  1475. // that the signature was generated with the correct credentials, and that you
  1476. // haven't exceeded any of the service limits for your account.
  1477. //
  1478. // * ErrCodeTaskNotFoundException "TaskNotFoundException"
  1479. // The specified task was not found.
  1480. //
  1481. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1482. // The specified pipeline was not found. Verify that you used the correct user
  1483. // and account identifiers.
  1484. //
  1485. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  1486. // The specified pipeline has been deleted.
  1487. //
  1488. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgress
  1489. func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (*ReportTaskProgressOutput, error) {
  1490. req, out := c.ReportTaskProgressRequest(input)
  1491. return out, req.Send()
  1492. }
  1493. // ReportTaskProgressWithContext is the same as ReportTaskProgress with the addition of
  1494. // the ability to pass a context and additional request options.
  1495. //
  1496. // See ReportTaskProgress for details on how to use this API operation.
  1497. //
  1498. // The context must be non-nil and will be used for request cancellation. If
  1499. // the context is nil a panic will occur. In the future the SDK may create
  1500. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1501. // for more information on using Contexts.
  1502. func (c *DataPipeline) ReportTaskProgressWithContext(ctx aws.Context, input *ReportTaskProgressInput, opts ...request.Option) (*ReportTaskProgressOutput, error) {
  1503. req, out := c.ReportTaskProgressRequest(input)
  1504. req.SetContext(ctx)
  1505. req.ApplyOptions(opts...)
  1506. return out, req.Send()
  1507. }
  1508. const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat"
  1509. // ReportTaskRunnerHeartbeatRequest generates a "aws/request.Request" representing the
  1510. // client's request for the ReportTaskRunnerHeartbeat operation. The "output" return
  1511. // value will be populated with the request's response once the request completes
  1512. // successfully.
  1513. //
  1514. // Use "Send" method on the returned Request to send the API call to the service.
  1515. // the "output" return value is not valid until after Send returns without error.
  1516. //
  1517. // See ReportTaskRunnerHeartbeat for more information on using the ReportTaskRunnerHeartbeat
  1518. // API call, and error handling.
  1519. //
  1520. // This method is useful when you want to inject custom logic or configuration
  1521. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1522. //
  1523. //
  1524. // // Example sending a request using the ReportTaskRunnerHeartbeatRequest method.
  1525. // req, resp := client.ReportTaskRunnerHeartbeatRequest(params)
  1526. //
  1527. // err := req.Send()
  1528. // if err == nil { // resp is now filled
  1529. // fmt.Println(resp)
  1530. // }
  1531. //
  1532. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeat
  1533. func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerHeartbeatInput) (req *request.Request, output *ReportTaskRunnerHeartbeatOutput) {
  1534. op := &request.Operation{
  1535. Name: opReportTaskRunnerHeartbeat,
  1536. HTTPMethod: "POST",
  1537. HTTPPath: "/",
  1538. }
  1539. if input == nil {
  1540. input = &ReportTaskRunnerHeartbeatInput{}
  1541. }
  1542. output = &ReportTaskRunnerHeartbeatOutput{}
  1543. req = c.newRequest(op, input, output)
  1544. return
  1545. }
  1546. // ReportTaskRunnerHeartbeat API operation for AWS Data Pipeline.
  1547. //
  1548. // Task runners call ReportTaskRunnerHeartbeat every 15 minutes to indicate
  1549. // that they are operational. If the AWS Data Pipeline Task Runner is launched
  1550. // on a resource managed by AWS Data Pipeline, the web service can use this
  1551. // call to detect when the task runner application has failed and restart a
  1552. // new instance.
  1553. //
  1554. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1555. // with awserr.Error's Code and Message methods to get detailed information about
  1556. // the error.
  1557. //
  1558. // See the AWS API reference guide for AWS Data Pipeline's
  1559. // API operation ReportTaskRunnerHeartbeat for usage and error information.
  1560. //
  1561. // Returned Error Codes:
  1562. // * ErrCodeInternalServiceError "InternalServiceError"
  1563. // An internal service error occurred.
  1564. //
  1565. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1566. // The request was not valid. Verify that your request was properly formatted,
  1567. // that the signature was generated with the correct credentials, and that you
  1568. // haven't exceeded any of the service limits for your account.
  1569. //
  1570. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeat
  1571. func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (*ReportTaskRunnerHeartbeatOutput, error) {
  1572. req, out := c.ReportTaskRunnerHeartbeatRequest(input)
  1573. return out, req.Send()
  1574. }
  1575. // ReportTaskRunnerHeartbeatWithContext is the same as ReportTaskRunnerHeartbeat with the addition of
  1576. // the ability to pass a context and additional request options.
  1577. //
  1578. // See ReportTaskRunnerHeartbeat for details on how to use this API operation.
  1579. //
  1580. // The context must be non-nil and will be used for request cancellation. If
  1581. // the context is nil a panic will occur. In the future the SDK may create
  1582. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1583. // for more information on using Contexts.
  1584. func (c *DataPipeline) ReportTaskRunnerHeartbeatWithContext(ctx aws.Context, input *ReportTaskRunnerHeartbeatInput, opts ...request.Option) (*ReportTaskRunnerHeartbeatOutput, error) {
  1585. req, out := c.ReportTaskRunnerHeartbeatRequest(input)
  1586. req.SetContext(ctx)
  1587. req.ApplyOptions(opts...)
  1588. return out, req.Send()
  1589. }
  1590. const opSetStatus = "SetStatus"
  1591. // SetStatusRequest generates a "aws/request.Request" representing the
  1592. // client's request for the SetStatus operation. The "output" return
  1593. // value will be populated with the request's response once the request completes
  1594. // successfully.
  1595. //
  1596. // Use "Send" method on the returned Request to send the API call to the service.
  1597. // the "output" return value is not valid until after Send returns without error.
  1598. //
  1599. // See SetStatus for more information on using the SetStatus
  1600. // API call, and error handling.
  1601. //
  1602. // This method is useful when you want to inject custom logic or configuration
  1603. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1604. //
  1605. //
  1606. // // Example sending a request using the SetStatusRequest method.
  1607. // req, resp := client.SetStatusRequest(params)
  1608. //
  1609. // err := req.Send()
  1610. // if err == nil { // resp is now filled
  1611. // fmt.Println(resp)
  1612. // }
  1613. //
  1614. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatus
  1615. func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Request, output *SetStatusOutput) {
  1616. op := &request.Operation{
  1617. Name: opSetStatus,
  1618. HTTPMethod: "POST",
  1619. HTTPPath: "/",
  1620. }
  1621. if input == nil {
  1622. input = &SetStatusInput{}
  1623. }
  1624. output = &SetStatusOutput{}
  1625. req = c.newRequest(op, input, output)
  1626. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1627. return
  1628. }
  1629. // SetStatus API operation for AWS Data Pipeline.
  1630. //
  1631. // Requests that the status of the specified physical or logical pipeline objects
  1632. // be updated in the specified pipeline. This update might not occur immediately,
  1633. // but is eventually consistent. The status that can be set depends on the type
  1634. // of object (for example, DataNode or Activity). You cannot perform this operation
  1635. // on FINISHED pipelines and attempting to do so returns InvalidRequestException.
  1636. //
  1637. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1638. // with awserr.Error's Code and Message methods to get detailed information about
  1639. // the error.
  1640. //
  1641. // See the AWS API reference guide for AWS Data Pipeline's
  1642. // API operation SetStatus for usage and error information.
  1643. //
  1644. // Returned Error Codes:
  1645. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1646. // The specified pipeline was not found. Verify that you used the correct user
  1647. // and account identifiers.
  1648. //
  1649. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  1650. // The specified pipeline has been deleted.
  1651. //
  1652. // * ErrCodeInternalServiceError "InternalServiceError"
  1653. // An internal service error occurred.
  1654. //
  1655. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1656. // The request was not valid. Verify that your request was properly formatted,
  1657. // that the signature was generated with the correct credentials, and that you
  1658. // haven't exceeded any of the service limits for your account.
  1659. //
  1660. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatus
  1661. func (c *DataPipeline) SetStatus(input *SetStatusInput) (*SetStatusOutput, error) {
  1662. req, out := c.SetStatusRequest(input)
  1663. return out, req.Send()
  1664. }
  1665. // SetStatusWithContext is the same as SetStatus with the addition of
  1666. // the ability to pass a context and additional request options.
  1667. //
  1668. // See SetStatus for details on how to use this API operation.
  1669. //
  1670. // The context must be non-nil and will be used for request cancellation. If
  1671. // the context is nil a panic will occur. In the future the SDK may create
  1672. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1673. // for more information on using Contexts.
  1674. func (c *DataPipeline) SetStatusWithContext(ctx aws.Context, input *SetStatusInput, opts ...request.Option) (*SetStatusOutput, error) {
  1675. req, out := c.SetStatusRequest(input)
  1676. req.SetContext(ctx)
  1677. req.ApplyOptions(opts...)
  1678. return out, req.Send()
  1679. }
  1680. const opSetTaskStatus = "SetTaskStatus"
  1681. // SetTaskStatusRequest generates a "aws/request.Request" representing the
  1682. // client's request for the SetTaskStatus operation. The "output" return
  1683. // value will be populated with the request's response once the request completes
  1684. // successfully.
  1685. //
  1686. // Use "Send" method on the returned Request to send the API call to the service.
  1687. // the "output" return value is not valid until after Send returns without error.
  1688. //
  1689. // See SetTaskStatus for more information on using the SetTaskStatus
  1690. // API call, and error handling.
  1691. //
  1692. // This method is useful when you want to inject custom logic or configuration
  1693. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1694. //
  1695. //
  1696. // // Example sending a request using the SetTaskStatusRequest method.
  1697. // req, resp := client.SetTaskStatusRequest(params)
  1698. //
  1699. // err := req.Send()
  1700. // if err == nil { // resp is now filled
  1701. // fmt.Println(resp)
  1702. // }
  1703. //
  1704. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatus
  1705. func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *request.Request, output *SetTaskStatusOutput) {
  1706. op := &request.Operation{
  1707. Name: opSetTaskStatus,
  1708. HTTPMethod: "POST",
  1709. HTTPPath: "/",
  1710. }
  1711. if input == nil {
  1712. input = &SetTaskStatusInput{}
  1713. }
  1714. output = &SetTaskStatusOutput{}
  1715. req = c.newRequest(op, input, output)
  1716. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1717. return
  1718. }
  1719. // SetTaskStatus API operation for AWS Data Pipeline.
  1720. //
  1721. // Task runners call SetTaskStatus to notify AWS Data Pipeline that a task is
  1722. // completed and provide information about the final status. A task runner makes
  1723. // this call regardless of whether the task was sucessful. A task runner does
  1724. // not need to call SetTaskStatus for tasks that are canceled by the web service
  1725. // during a call to ReportTaskProgress.
  1726. //
  1727. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1728. // with awserr.Error's Code and Message methods to get detailed information about
  1729. // the error.
  1730. //
  1731. // See the AWS API reference guide for AWS Data Pipeline's
  1732. // API operation SetTaskStatus for usage and error information.
  1733. //
  1734. // Returned Error Codes:
  1735. // * ErrCodeInternalServiceError "InternalServiceError"
  1736. // An internal service error occurred.
  1737. //
  1738. // * ErrCodeTaskNotFoundException "TaskNotFoundException"
  1739. // The specified task was not found.
  1740. //
  1741. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1742. // The request was not valid. Verify that your request was properly formatted,
  1743. // that the signature was generated with the correct credentials, and that you
  1744. // haven't exceeded any of the service limits for your account.
  1745. //
  1746. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1747. // The specified pipeline was not found. Verify that you used the correct user
  1748. // and account identifiers.
  1749. //
  1750. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  1751. // The specified pipeline has been deleted.
  1752. //
  1753. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatus
  1754. func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (*SetTaskStatusOutput, error) {
  1755. req, out := c.SetTaskStatusRequest(input)
  1756. return out, req.Send()
  1757. }
  1758. // SetTaskStatusWithContext is the same as SetTaskStatus with the addition of
  1759. // the ability to pass a context and additional request options.
  1760. //
  1761. // See SetTaskStatus for details on how to use this API operation.
  1762. //
  1763. // The context must be non-nil and will be used for request cancellation. If
  1764. // the context is nil a panic will occur. In the future the SDK may create
  1765. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1766. // for more information on using Contexts.
  1767. func (c *DataPipeline) SetTaskStatusWithContext(ctx aws.Context, input *SetTaskStatusInput, opts ...request.Option) (*SetTaskStatusOutput, error) {
  1768. req, out := c.SetTaskStatusRequest(input)
  1769. req.SetContext(ctx)
  1770. req.ApplyOptions(opts...)
  1771. return out, req.Send()
  1772. }
  1773. const opValidatePipelineDefinition = "ValidatePipelineDefinition"
  1774. // ValidatePipelineDefinitionRequest generates a "aws/request.Request" representing the
  1775. // client's request for the ValidatePipelineDefinition operation. The "output" return
  1776. // value will be populated with the request's response once the request completes
  1777. // successfully.
  1778. //
  1779. // Use "Send" method on the returned Request to send the API call to the service.
  1780. // the "output" return value is not valid until after Send returns without error.
  1781. //
  1782. // See ValidatePipelineDefinition for more information on using the ValidatePipelineDefinition
  1783. // API call, and error handling.
  1784. //
  1785. // This method is useful when you want to inject custom logic or configuration
  1786. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1787. //
  1788. //
  1789. // // Example sending a request using the ValidatePipelineDefinitionRequest method.
  1790. // req, resp := client.ValidatePipelineDefinitionRequest(params)
  1791. //
  1792. // err := req.Send()
  1793. // if err == nil { // resp is now filled
  1794. // fmt.Println(resp)
  1795. // }
  1796. //
  1797. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinition
  1798. func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipelineDefinitionInput) (req *request.Request, output *ValidatePipelineDefinitionOutput) {
  1799. op := &request.Operation{
  1800. Name: opValidatePipelineDefinition,
  1801. HTTPMethod: "POST",
  1802. HTTPPath: "/",
  1803. }
  1804. if input == nil {
  1805. input = &ValidatePipelineDefinitionInput{}
  1806. }
  1807. output = &ValidatePipelineDefinitionOutput{}
  1808. req = c.newRequest(op, input, output)
  1809. return
  1810. }
  1811. // ValidatePipelineDefinition API operation for AWS Data Pipeline.
  1812. //
  1813. // Validates the specified pipeline definition to ensure that it is well formed
  1814. // and can be run without error.
  1815. //
  1816. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1817. // with awserr.Error's Code and Message methods to get detailed information about
  1818. // the error.
  1819. //
  1820. // See the AWS API reference guide for AWS Data Pipeline's
  1821. // API operation ValidatePipelineDefinition for usage and error information.
  1822. //
  1823. // Returned Error Codes:
  1824. // * ErrCodeInternalServiceError "InternalServiceError"
  1825. // An internal service error occurred.
  1826. //
  1827. // * ErrCodeInvalidRequestException "InvalidRequestException"
  1828. // The request was not valid. Verify that your request was properly formatted,
  1829. // that the signature was generated with the correct credentials, and that you
  1830. // haven't exceeded any of the service limits for your account.
  1831. //
  1832. // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
  1833. // The specified pipeline was not found. Verify that you used the correct user
  1834. // and account identifiers.
  1835. //
  1836. // * ErrCodePipelineDeletedException "PipelineDeletedException"
  1837. // The specified pipeline has been deleted.
  1838. //
  1839. // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinition
  1840. func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinitionInput) (*ValidatePipelineDefinitionOutput, error) {
  1841. req, out := c.ValidatePipelineDefinitionRequest(input)
  1842. return out, req.Send()
  1843. }
  1844. // ValidatePipelineDefinitionWithContext is the same as ValidatePipelineDefinition with the addition of
  1845. // the ability to pass a context and additional request options.
  1846. //
  1847. // See ValidatePipelineDefinition for details on how to use this API operation.
  1848. //
  1849. // The context must be non-nil and will be used for request cancellation. If
  1850. // the context is nil a panic will occur. In the future the SDK may create
  1851. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1852. // for more information on using Contexts.
  1853. func (c *DataPipeline) ValidatePipelineDefinitionWithContext(ctx aws.Context, input *ValidatePipelineDefinitionInput, opts ...request.Option) (*ValidatePipelineDefinitionOutput, error) {
  1854. req, out := c.ValidatePipelineDefinitionRequest(input)
  1855. req.SetContext(ctx)
  1856. req.ApplyOptions(opts...)
  1857. return out, req.Send()
  1858. }
  1859. // Contains the parameters for ActivatePipeline.
  1860. type ActivatePipelineInput struct {
  1861. _ struct{} `type:"structure"`
  1862. // A list of parameter values to pass to the pipeline at activation.
  1863. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  1864. // The ID of the pipeline.
  1865. //
  1866. // PipelineId is a required field
  1867. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1868. // The date and time to resume the pipeline. By default, the pipeline resumes
  1869. // from the last completed execution.
  1870. StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp"`
  1871. }
  1872. // String returns the string representation
  1873. func (s ActivatePipelineInput) String() string {
  1874. return awsutil.Prettify(s)
  1875. }
  1876. // GoString returns the string representation
  1877. func (s ActivatePipelineInput) GoString() string {
  1878. return s.String()
  1879. }
  1880. // Validate inspects the fields of the type to determine if they are valid.
  1881. func (s *ActivatePipelineInput) Validate() error {
  1882. invalidParams := request.ErrInvalidParams{Context: "ActivatePipelineInput"}
  1883. if s.PipelineId == nil {
  1884. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1885. }
  1886. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1887. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1888. }
  1889. if s.ParameterValues != nil {
  1890. for i, v := range s.ParameterValues {
  1891. if v == nil {
  1892. continue
  1893. }
  1894. if err := v.Validate(); err != nil {
  1895. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
  1896. }
  1897. }
  1898. }
  1899. if invalidParams.Len() > 0 {
  1900. return invalidParams
  1901. }
  1902. return nil
  1903. }
  1904. // SetParameterValues sets the ParameterValues field's value.
  1905. func (s *ActivatePipelineInput) SetParameterValues(v []*ParameterValue) *ActivatePipelineInput {
  1906. s.ParameterValues = v
  1907. return s
  1908. }
  1909. // SetPipelineId sets the PipelineId field's value.
  1910. func (s *ActivatePipelineInput) SetPipelineId(v string) *ActivatePipelineInput {
  1911. s.PipelineId = &v
  1912. return s
  1913. }
  1914. // SetStartTimestamp sets the StartTimestamp field's value.
  1915. func (s *ActivatePipelineInput) SetStartTimestamp(v time.Time) *ActivatePipelineInput {
  1916. s.StartTimestamp = &v
  1917. return s
  1918. }
  1919. // Contains the output of ActivatePipeline.
  1920. type ActivatePipelineOutput struct {
  1921. _ struct{} `type:"structure"`
  1922. }
  1923. // String returns the string representation
  1924. func (s ActivatePipelineOutput) String() string {
  1925. return awsutil.Prettify(s)
  1926. }
  1927. // GoString returns the string representation
  1928. func (s ActivatePipelineOutput) GoString() string {
  1929. return s.String()
  1930. }
  1931. // Contains the parameters for AddTags.
  1932. type AddTagsInput struct {
  1933. _ struct{} `type:"structure"`
  1934. // The ID of the pipeline.
  1935. //
  1936. // PipelineId is a required field
  1937. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  1938. // The tags to add, as key/value pairs.
  1939. //
  1940. // Tags is a required field
  1941. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  1942. }
  1943. // String returns the string representation
  1944. func (s AddTagsInput) String() string {
  1945. return awsutil.Prettify(s)
  1946. }
  1947. // GoString returns the string representation
  1948. func (s AddTagsInput) GoString() string {
  1949. return s.String()
  1950. }
  1951. // Validate inspects the fields of the type to determine if they are valid.
  1952. func (s *AddTagsInput) Validate() error {
  1953. invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
  1954. if s.PipelineId == nil {
  1955. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  1956. }
  1957. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  1958. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  1959. }
  1960. if s.Tags == nil {
  1961. invalidParams.Add(request.NewErrParamRequired("Tags"))
  1962. }
  1963. if s.Tags != nil {
  1964. for i, v := range s.Tags {
  1965. if v == nil {
  1966. continue
  1967. }
  1968. if err := v.Validate(); err != nil {
  1969. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  1970. }
  1971. }
  1972. }
  1973. if invalidParams.Len() > 0 {
  1974. return invalidParams
  1975. }
  1976. return nil
  1977. }
  1978. // SetPipelineId sets the PipelineId field's value.
  1979. func (s *AddTagsInput) SetPipelineId(v string) *AddTagsInput {
  1980. s.PipelineId = &v
  1981. return s
  1982. }
  1983. // SetTags sets the Tags field's value.
  1984. func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
  1985. s.Tags = v
  1986. return s
  1987. }
  1988. // Contains the output of AddTags.
  1989. type AddTagsOutput struct {
  1990. _ struct{} `type:"structure"`
  1991. }
  1992. // String returns the string representation
  1993. func (s AddTagsOutput) String() string {
  1994. return awsutil.Prettify(s)
  1995. }
  1996. // GoString returns the string representation
  1997. func (s AddTagsOutput) GoString() string {
  1998. return s.String()
  1999. }
  2000. // Contains the parameters for CreatePipeline.
  2001. type CreatePipelineInput struct {
  2002. _ struct{} `type:"structure"`
  2003. // The description for the pipeline.
  2004. Description *string `locationName:"description" type:"string"`
  2005. // The name for the pipeline. You can use the same name for multiple pipelines
  2006. // associated with your AWS account, because AWS Data Pipeline assigns each
  2007. // pipeline a unique pipeline identifier.
  2008. //
  2009. // Name is a required field
  2010. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2011. // A list of tags to associate with the pipeline at creation. Tags let you control
  2012. // access to pipelines. For more information, see Controlling User Access to
  2013. // Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  2014. // in the AWS Data Pipeline Developer Guide.
  2015. Tags []*Tag `locationName:"tags" type:"list"`
  2016. // A unique identifier. This identifier is not the same as the pipeline identifier
  2017. // assigned by AWS Data Pipeline. You are responsible for defining the format
  2018. // and ensuring the uniqueness of this identifier. You use this parameter to
  2019. // ensure idempotency during repeated calls to CreatePipeline. For example,
  2020. // if the first call to CreatePipeline does not succeed, you can pass in the
  2021. // same unique identifier and pipeline name combination on a subsequent call
  2022. // to CreatePipeline. CreatePipeline ensures that if a pipeline already exists
  2023. // with the same name and unique identifier, a new pipeline is not created.
  2024. // Instead, you'll receive the pipeline identifier from the previous attempt.
  2025. // The uniqueness of the name and unique identifier combination is scoped to
  2026. // the AWS account or IAM user credentials.
  2027. //
  2028. // UniqueId is a required field
  2029. UniqueId *string `locationName:"uniqueId" min:"1" type:"string" required:"true"`
  2030. }
  2031. // String returns the string representation
  2032. func (s CreatePipelineInput) String() string {
  2033. return awsutil.Prettify(s)
  2034. }
  2035. // GoString returns the string representation
  2036. func (s CreatePipelineInput) GoString() string {
  2037. return s.String()
  2038. }
  2039. // Validate inspects the fields of the type to determine if they are valid.
  2040. func (s *CreatePipelineInput) Validate() error {
  2041. invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
  2042. if s.Name == nil {
  2043. invalidParams.Add(request.NewErrParamRequired("Name"))
  2044. }
  2045. if s.Name != nil && len(*s.Name) < 1 {
  2046. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2047. }
  2048. if s.UniqueId == nil {
  2049. invalidParams.Add(request.NewErrParamRequired("UniqueId"))
  2050. }
  2051. if s.UniqueId != nil && len(*s.UniqueId) < 1 {
  2052. invalidParams.Add(request.NewErrParamMinLen("UniqueId", 1))
  2053. }
  2054. if s.Tags != nil {
  2055. for i, v := range s.Tags {
  2056. if v == nil {
  2057. continue
  2058. }
  2059. if err := v.Validate(); err != nil {
  2060. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2061. }
  2062. }
  2063. }
  2064. if invalidParams.Len() > 0 {
  2065. return invalidParams
  2066. }
  2067. return nil
  2068. }
  2069. // SetDescription sets the Description field's value.
  2070. func (s *CreatePipelineInput) SetDescription(v string) *CreatePipelineInput {
  2071. s.Description = &v
  2072. return s
  2073. }
  2074. // SetName sets the Name field's value.
  2075. func (s *CreatePipelineInput) SetName(v string) *CreatePipelineInput {
  2076. s.Name = &v
  2077. return s
  2078. }
  2079. // SetTags sets the Tags field's value.
  2080. func (s *CreatePipelineInput) SetTags(v []*Tag) *CreatePipelineInput {
  2081. s.Tags = v
  2082. return s
  2083. }
  2084. // SetUniqueId sets the UniqueId field's value.
  2085. func (s *CreatePipelineInput) SetUniqueId(v string) *CreatePipelineInput {
  2086. s.UniqueId = &v
  2087. return s
  2088. }
  2089. // Contains the output of CreatePipeline.
  2090. type CreatePipelineOutput struct {
  2091. _ struct{} `type:"structure"`
  2092. // The ID that AWS Data Pipeline assigns the newly created pipeline. For example,
  2093. // df-06372391ZG65EXAMPLE.
  2094. //
  2095. // PipelineId is a required field
  2096. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2097. }
  2098. // String returns the string representation
  2099. func (s CreatePipelineOutput) String() string {
  2100. return awsutil.Prettify(s)
  2101. }
  2102. // GoString returns the string representation
  2103. func (s CreatePipelineOutput) GoString() string {
  2104. return s.String()
  2105. }
  2106. // SetPipelineId sets the PipelineId field's value.
  2107. func (s *CreatePipelineOutput) SetPipelineId(v string) *CreatePipelineOutput {
  2108. s.PipelineId = &v
  2109. return s
  2110. }
  2111. // Contains the parameters for DeactivatePipeline.
  2112. type DeactivatePipelineInput struct {
  2113. _ struct{} `type:"structure"`
  2114. // Indicates whether to cancel any running objects. The default is true, which
  2115. // sets the state of any running objects to CANCELED. If this value is false,
  2116. // the pipeline is deactivated after all running objects finish.
  2117. CancelActive *bool `locationName:"cancelActive" type:"boolean"`
  2118. // The ID of the pipeline.
  2119. //
  2120. // PipelineId is a required field
  2121. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2122. }
  2123. // String returns the string representation
  2124. func (s DeactivatePipelineInput) String() string {
  2125. return awsutil.Prettify(s)
  2126. }
  2127. // GoString returns the string representation
  2128. func (s DeactivatePipelineInput) GoString() string {
  2129. return s.String()
  2130. }
  2131. // Validate inspects the fields of the type to determine if they are valid.
  2132. func (s *DeactivatePipelineInput) Validate() error {
  2133. invalidParams := request.ErrInvalidParams{Context: "DeactivatePipelineInput"}
  2134. if s.PipelineId == nil {
  2135. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2136. }
  2137. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2138. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2139. }
  2140. if invalidParams.Len() > 0 {
  2141. return invalidParams
  2142. }
  2143. return nil
  2144. }
  2145. // SetCancelActive sets the CancelActive field's value.
  2146. func (s *DeactivatePipelineInput) SetCancelActive(v bool) *DeactivatePipelineInput {
  2147. s.CancelActive = &v
  2148. return s
  2149. }
  2150. // SetPipelineId sets the PipelineId field's value.
  2151. func (s *DeactivatePipelineInput) SetPipelineId(v string) *DeactivatePipelineInput {
  2152. s.PipelineId = &v
  2153. return s
  2154. }
  2155. // Contains the output of DeactivatePipeline.
  2156. type DeactivatePipelineOutput struct {
  2157. _ struct{} `type:"structure"`
  2158. }
  2159. // String returns the string representation
  2160. func (s DeactivatePipelineOutput) String() string {
  2161. return awsutil.Prettify(s)
  2162. }
  2163. // GoString returns the string representation
  2164. func (s DeactivatePipelineOutput) GoString() string {
  2165. return s.String()
  2166. }
  2167. // Contains the parameters for DeletePipeline.
  2168. type DeletePipelineInput struct {
  2169. _ struct{} `type:"structure"`
  2170. // The ID of the pipeline.
  2171. //
  2172. // PipelineId is a required field
  2173. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2174. }
  2175. // String returns the string representation
  2176. func (s DeletePipelineInput) String() string {
  2177. return awsutil.Prettify(s)
  2178. }
  2179. // GoString returns the string representation
  2180. func (s DeletePipelineInput) GoString() string {
  2181. return s.String()
  2182. }
  2183. // Validate inspects the fields of the type to determine if they are valid.
  2184. func (s *DeletePipelineInput) Validate() error {
  2185. invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
  2186. if s.PipelineId == nil {
  2187. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2188. }
  2189. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2190. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2191. }
  2192. if invalidParams.Len() > 0 {
  2193. return invalidParams
  2194. }
  2195. return nil
  2196. }
  2197. // SetPipelineId sets the PipelineId field's value.
  2198. func (s *DeletePipelineInput) SetPipelineId(v string) *DeletePipelineInput {
  2199. s.PipelineId = &v
  2200. return s
  2201. }
  2202. type DeletePipelineOutput struct {
  2203. _ struct{} `type:"structure"`
  2204. }
  2205. // String returns the string representation
  2206. func (s DeletePipelineOutput) String() string {
  2207. return awsutil.Prettify(s)
  2208. }
  2209. // GoString returns the string representation
  2210. func (s DeletePipelineOutput) GoString() string {
  2211. return s.String()
  2212. }
  2213. // Contains the parameters for DescribeObjects.
  2214. type DescribeObjectsInput struct {
  2215. _ struct{} `type:"structure"`
  2216. // Indicates whether any expressions in the object should be evaluated when
  2217. // the object descriptions are returned.
  2218. EvaluateExpressions *bool `locationName:"evaluateExpressions" type:"boolean"`
  2219. // The starting point for the results to be returned. For the first call, this
  2220. // value should be empty. As long as there are more results, continue to call
  2221. // DescribeObjects with the marker value from the previous call to retrieve
  2222. // the next set of results.
  2223. Marker *string `locationName:"marker" type:"string"`
  2224. // The IDs of the pipeline objects that contain the definitions to be described.
  2225. // You can pass as many as 25 identifiers in a single call to DescribeObjects.
  2226. //
  2227. // ObjectIds is a required field
  2228. ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
  2229. // The ID of the pipeline that contains the object definitions.
  2230. //
  2231. // PipelineId is a required field
  2232. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2233. }
  2234. // String returns the string representation
  2235. func (s DescribeObjectsInput) String() string {
  2236. return awsutil.Prettify(s)
  2237. }
  2238. // GoString returns the string representation
  2239. func (s DescribeObjectsInput) GoString() string {
  2240. return s.String()
  2241. }
  2242. // Validate inspects the fields of the type to determine if they are valid.
  2243. func (s *DescribeObjectsInput) Validate() error {
  2244. invalidParams := request.ErrInvalidParams{Context: "DescribeObjectsInput"}
  2245. if s.ObjectIds == nil {
  2246. invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
  2247. }
  2248. if s.PipelineId == nil {
  2249. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2250. }
  2251. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2252. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2253. }
  2254. if invalidParams.Len() > 0 {
  2255. return invalidParams
  2256. }
  2257. return nil
  2258. }
  2259. // SetEvaluateExpressions sets the EvaluateExpressions field's value.
  2260. func (s *DescribeObjectsInput) SetEvaluateExpressions(v bool) *DescribeObjectsInput {
  2261. s.EvaluateExpressions = &v
  2262. return s
  2263. }
  2264. // SetMarker sets the Marker field's value.
  2265. func (s *DescribeObjectsInput) SetMarker(v string) *DescribeObjectsInput {
  2266. s.Marker = &v
  2267. return s
  2268. }
  2269. // SetObjectIds sets the ObjectIds field's value.
  2270. func (s *DescribeObjectsInput) SetObjectIds(v []*string) *DescribeObjectsInput {
  2271. s.ObjectIds = v
  2272. return s
  2273. }
  2274. // SetPipelineId sets the PipelineId field's value.
  2275. func (s *DescribeObjectsInput) SetPipelineId(v string) *DescribeObjectsInput {
  2276. s.PipelineId = &v
  2277. return s
  2278. }
  2279. // Contains the output of DescribeObjects.
  2280. type DescribeObjectsOutput struct {
  2281. _ struct{} `type:"structure"`
  2282. // Indicates whether there are more results to return.
  2283. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
  2284. // The starting point for the next page of results. To view the next page of
  2285. // results, call DescribeObjects again with this marker value. If the value
  2286. // is null, there are no more results.
  2287. Marker *string `locationName:"marker" type:"string"`
  2288. // An array of object definitions.
  2289. //
  2290. // PipelineObjects is a required field
  2291. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
  2292. }
  2293. // String returns the string representation
  2294. func (s DescribeObjectsOutput) String() string {
  2295. return awsutil.Prettify(s)
  2296. }
  2297. // GoString returns the string representation
  2298. func (s DescribeObjectsOutput) GoString() string {
  2299. return s.String()
  2300. }
  2301. // SetHasMoreResults sets the HasMoreResults field's value.
  2302. func (s *DescribeObjectsOutput) SetHasMoreResults(v bool) *DescribeObjectsOutput {
  2303. s.HasMoreResults = &v
  2304. return s
  2305. }
  2306. // SetMarker sets the Marker field's value.
  2307. func (s *DescribeObjectsOutput) SetMarker(v string) *DescribeObjectsOutput {
  2308. s.Marker = &v
  2309. return s
  2310. }
  2311. // SetPipelineObjects sets the PipelineObjects field's value.
  2312. func (s *DescribeObjectsOutput) SetPipelineObjects(v []*PipelineObject) *DescribeObjectsOutput {
  2313. s.PipelineObjects = v
  2314. return s
  2315. }
  2316. // Contains the parameters for DescribePipelines.
  2317. type DescribePipelinesInput struct {
  2318. _ struct{} `type:"structure"`
  2319. // The IDs of the pipelines to describe. You can pass as many as 25 identifiers
  2320. // in a single call. To obtain pipeline IDs, call ListPipelines.
  2321. //
  2322. // PipelineIds is a required field
  2323. PipelineIds []*string `locationName:"pipelineIds" type:"list" required:"true"`
  2324. }
  2325. // String returns the string representation
  2326. func (s DescribePipelinesInput) String() string {
  2327. return awsutil.Prettify(s)
  2328. }
  2329. // GoString returns the string representation
  2330. func (s DescribePipelinesInput) GoString() string {
  2331. return s.String()
  2332. }
  2333. // Validate inspects the fields of the type to determine if they are valid.
  2334. func (s *DescribePipelinesInput) Validate() error {
  2335. invalidParams := request.ErrInvalidParams{Context: "DescribePipelinesInput"}
  2336. if s.PipelineIds == nil {
  2337. invalidParams.Add(request.NewErrParamRequired("PipelineIds"))
  2338. }
  2339. if invalidParams.Len() > 0 {
  2340. return invalidParams
  2341. }
  2342. return nil
  2343. }
  2344. // SetPipelineIds sets the PipelineIds field's value.
  2345. func (s *DescribePipelinesInput) SetPipelineIds(v []*string) *DescribePipelinesInput {
  2346. s.PipelineIds = v
  2347. return s
  2348. }
  2349. // Contains the output of DescribePipelines.
  2350. type DescribePipelinesOutput struct {
  2351. _ struct{} `type:"structure"`
  2352. // An array of descriptions for the specified pipelines.
  2353. //
  2354. // PipelineDescriptionList is a required field
  2355. PipelineDescriptionList []*PipelineDescription `locationName:"pipelineDescriptionList" type:"list" required:"true"`
  2356. }
  2357. // String returns the string representation
  2358. func (s DescribePipelinesOutput) String() string {
  2359. return awsutil.Prettify(s)
  2360. }
  2361. // GoString returns the string representation
  2362. func (s DescribePipelinesOutput) GoString() string {
  2363. return s.String()
  2364. }
  2365. // SetPipelineDescriptionList sets the PipelineDescriptionList field's value.
  2366. func (s *DescribePipelinesOutput) SetPipelineDescriptionList(v []*PipelineDescription) *DescribePipelinesOutput {
  2367. s.PipelineDescriptionList = v
  2368. return s
  2369. }
  2370. // Contains the parameters for EvaluateExpression.
  2371. type EvaluateExpressionInput struct {
  2372. _ struct{} `type:"structure"`
  2373. // The expression to evaluate.
  2374. //
  2375. // Expression is a required field
  2376. Expression *string `locationName:"expression" type:"string" required:"true"`
  2377. // The ID of the object.
  2378. //
  2379. // ObjectId is a required field
  2380. ObjectId *string `locationName:"objectId" min:"1" type:"string" required:"true"`
  2381. // The ID of the pipeline.
  2382. //
  2383. // PipelineId is a required field
  2384. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2385. }
  2386. // String returns the string representation
  2387. func (s EvaluateExpressionInput) String() string {
  2388. return awsutil.Prettify(s)
  2389. }
  2390. // GoString returns the string representation
  2391. func (s EvaluateExpressionInput) GoString() string {
  2392. return s.String()
  2393. }
  2394. // Validate inspects the fields of the type to determine if they are valid.
  2395. func (s *EvaluateExpressionInput) Validate() error {
  2396. invalidParams := request.ErrInvalidParams{Context: "EvaluateExpressionInput"}
  2397. if s.Expression == nil {
  2398. invalidParams.Add(request.NewErrParamRequired("Expression"))
  2399. }
  2400. if s.ObjectId == nil {
  2401. invalidParams.Add(request.NewErrParamRequired("ObjectId"))
  2402. }
  2403. if s.ObjectId != nil && len(*s.ObjectId) < 1 {
  2404. invalidParams.Add(request.NewErrParamMinLen("ObjectId", 1))
  2405. }
  2406. if s.PipelineId == nil {
  2407. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2408. }
  2409. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2410. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2411. }
  2412. if invalidParams.Len() > 0 {
  2413. return invalidParams
  2414. }
  2415. return nil
  2416. }
  2417. // SetExpression sets the Expression field's value.
  2418. func (s *EvaluateExpressionInput) SetExpression(v string) *EvaluateExpressionInput {
  2419. s.Expression = &v
  2420. return s
  2421. }
  2422. // SetObjectId sets the ObjectId field's value.
  2423. func (s *EvaluateExpressionInput) SetObjectId(v string) *EvaluateExpressionInput {
  2424. s.ObjectId = &v
  2425. return s
  2426. }
  2427. // SetPipelineId sets the PipelineId field's value.
  2428. func (s *EvaluateExpressionInput) SetPipelineId(v string) *EvaluateExpressionInput {
  2429. s.PipelineId = &v
  2430. return s
  2431. }
  2432. // Contains the output of EvaluateExpression.
  2433. type EvaluateExpressionOutput struct {
  2434. _ struct{} `type:"structure"`
  2435. // The evaluated expression.
  2436. //
  2437. // EvaluatedExpression is a required field
  2438. EvaluatedExpression *string `locationName:"evaluatedExpression" type:"string" required:"true"`
  2439. }
  2440. // String returns the string representation
  2441. func (s EvaluateExpressionOutput) String() string {
  2442. return awsutil.Prettify(s)
  2443. }
  2444. // GoString returns the string representation
  2445. func (s EvaluateExpressionOutput) GoString() string {
  2446. return s.String()
  2447. }
  2448. // SetEvaluatedExpression sets the EvaluatedExpression field's value.
  2449. func (s *EvaluateExpressionOutput) SetEvaluatedExpression(v string) *EvaluateExpressionOutput {
  2450. s.EvaluatedExpression = &v
  2451. return s
  2452. }
  2453. // A key-value pair that describes a property of a pipeline object. The value
  2454. // is specified as either a string value (StringValue) or a reference to another
  2455. // object (RefValue) but not as both.
  2456. type Field struct {
  2457. _ struct{} `type:"structure"`
  2458. // The field identifier.
  2459. //
  2460. // Key is a required field
  2461. Key *string `locationName:"key" min:"1" type:"string" required:"true"`
  2462. // The field value, expressed as the identifier of another object.
  2463. RefValue *string `locationName:"refValue" min:"1" type:"string"`
  2464. // The field value, expressed as a String.
  2465. StringValue *string `locationName:"stringValue" type:"string"`
  2466. }
  2467. // String returns the string representation
  2468. func (s Field) String() string {
  2469. return awsutil.Prettify(s)
  2470. }
  2471. // GoString returns the string representation
  2472. func (s Field) GoString() string {
  2473. return s.String()
  2474. }
  2475. // Validate inspects the fields of the type to determine if they are valid.
  2476. func (s *Field) Validate() error {
  2477. invalidParams := request.ErrInvalidParams{Context: "Field"}
  2478. if s.Key == nil {
  2479. invalidParams.Add(request.NewErrParamRequired("Key"))
  2480. }
  2481. if s.Key != nil && len(*s.Key) < 1 {
  2482. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  2483. }
  2484. if s.RefValue != nil && len(*s.RefValue) < 1 {
  2485. invalidParams.Add(request.NewErrParamMinLen("RefValue", 1))
  2486. }
  2487. if invalidParams.Len() > 0 {
  2488. return invalidParams
  2489. }
  2490. return nil
  2491. }
  2492. // SetKey sets the Key field's value.
  2493. func (s *Field) SetKey(v string) *Field {
  2494. s.Key = &v
  2495. return s
  2496. }
  2497. // SetRefValue sets the RefValue field's value.
  2498. func (s *Field) SetRefValue(v string) *Field {
  2499. s.RefValue = &v
  2500. return s
  2501. }
  2502. // SetStringValue sets the StringValue field's value.
  2503. func (s *Field) SetStringValue(v string) *Field {
  2504. s.StringValue = &v
  2505. return s
  2506. }
  2507. // Contains the parameters for GetPipelineDefinition.
  2508. type GetPipelineDefinitionInput struct {
  2509. _ struct{} `type:"structure"`
  2510. // The ID of the pipeline.
  2511. //
  2512. // PipelineId is a required field
  2513. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2514. // The version of the pipeline definition to retrieve. Set this parameter to
  2515. // latest (default) to use the last definition saved to the pipeline or active
  2516. // to use the last definition that was activated.
  2517. Version *string `locationName:"version" type:"string"`
  2518. }
  2519. // String returns the string representation
  2520. func (s GetPipelineDefinitionInput) String() string {
  2521. return awsutil.Prettify(s)
  2522. }
  2523. // GoString returns the string representation
  2524. func (s GetPipelineDefinitionInput) GoString() string {
  2525. return s.String()
  2526. }
  2527. // Validate inspects the fields of the type to determine if they are valid.
  2528. func (s *GetPipelineDefinitionInput) Validate() error {
  2529. invalidParams := request.ErrInvalidParams{Context: "GetPipelineDefinitionInput"}
  2530. if s.PipelineId == nil {
  2531. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  2532. }
  2533. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  2534. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  2535. }
  2536. if invalidParams.Len() > 0 {
  2537. return invalidParams
  2538. }
  2539. return nil
  2540. }
  2541. // SetPipelineId sets the PipelineId field's value.
  2542. func (s *GetPipelineDefinitionInput) SetPipelineId(v string) *GetPipelineDefinitionInput {
  2543. s.PipelineId = &v
  2544. return s
  2545. }
  2546. // SetVersion sets the Version field's value.
  2547. func (s *GetPipelineDefinitionInput) SetVersion(v string) *GetPipelineDefinitionInput {
  2548. s.Version = &v
  2549. return s
  2550. }
  2551. // Contains the output of GetPipelineDefinition.
  2552. type GetPipelineDefinitionOutput struct {
  2553. _ struct{} `type:"structure"`
  2554. // The parameter objects used in the pipeline definition.
  2555. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
  2556. // The parameter values used in the pipeline definition.
  2557. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  2558. // The objects defined in the pipeline.
  2559. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list"`
  2560. }
  2561. // String returns the string representation
  2562. func (s GetPipelineDefinitionOutput) String() string {
  2563. return awsutil.Prettify(s)
  2564. }
  2565. // GoString returns the string representation
  2566. func (s GetPipelineDefinitionOutput) GoString() string {
  2567. return s.String()
  2568. }
  2569. // SetParameterObjects sets the ParameterObjects field's value.
  2570. func (s *GetPipelineDefinitionOutput) SetParameterObjects(v []*ParameterObject) *GetPipelineDefinitionOutput {
  2571. s.ParameterObjects = v
  2572. return s
  2573. }
  2574. // SetParameterValues sets the ParameterValues field's value.
  2575. func (s *GetPipelineDefinitionOutput) SetParameterValues(v []*ParameterValue) *GetPipelineDefinitionOutput {
  2576. s.ParameterValues = v
  2577. return s
  2578. }
  2579. // SetPipelineObjects sets the PipelineObjects field's value.
  2580. func (s *GetPipelineDefinitionOutput) SetPipelineObjects(v []*PipelineObject) *GetPipelineDefinitionOutput {
  2581. s.PipelineObjects = v
  2582. return s
  2583. }
  2584. // Identity information for the EC2 instance that is hosting the task runner.
  2585. // You can get this value by calling a metadata URI from the EC2 instance. For
  2586. // more information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
  2587. // in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves
  2588. // that your task runner is running on an EC2 instance, and ensures the proper
  2589. // AWS Data Pipeline service charges are applied to your pipeline.
  2590. type InstanceIdentity struct {
  2591. _ struct{} `type:"structure"`
  2592. // A description of an EC2 instance that is generated when the instance is launched
  2593. // and exposed to the instance via the instance metadata service in the form
  2594. // of a JSON representation of an object.
  2595. Document *string `locationName:"document" type:"string"`
  2596. // A signature which can be used to verify the accuracy and authenticity of
  2597. // the information provided in the instance identity document.
  2598. Signature *string `locationName:"signature" type:"string"`
  2599. }
  2600. // String returns the string representation
  2601. func (s InstanceIdentity) String() string {
  2602. return awsutil.Prettify(s)
  2603. }
  2604. // GoString returns the string representation
  2605. func (s InstanceIdentity) GoString() string {
  2606. return s.String()
  2607. }
  2608. // SetDocument sets the Document field's value.
  2609. func (s *InstanceIdentity) SetDocument(v string) *InstanceIdentity {
  2610. s.Document = &v
  2611. return s
  2612. }
  2613. // SetSignature sets the Signature field's value.
  2614. func (s *InstanceIdentity) SetSignature(v string) *InstanceIdentity {
  2615. s.Signature = &v
  2616. return s
  2617. }
  2618. // Contains the parameters for ListPipelines.
  2619. type ListPipelinesInput struct {
  2620. _ struct{} `type:"structure"`
  2621. // The starting point for the results to be returned. For the first call, this
  2622. // value should be empty. As long as there are more results, continue to call
  2623. // ListPipelines with the marker value from the previous call to retrieve the
  2624. // next set of results.
  2625. Marker *string `locationName:"marker" type:"string"`
  2626. }
  2627. // String returns the string representation
  2628. func (s ListPipelinesInput) String() string {
  2629. return awsutil.Prettify(s)
  2630. }
  2631. // GoString returns the string representation
  2632. func (s ListPipelinesInput) GoString() string {
  2633. return s.String()
  2634. }
  2635. // SetMarker sets the Marker field's value.
  2636. func (s *ListPipelinesInput) SetMarker(v string) *ListPipelinesInput {
  2637. s.Marker = &v
  2638. return s
  2639. }
  2640. // Contains the output of ListPipelines.
  2641. type ListPipelinesOutput struct {
  2642. _ struct{} `type:"structure"`
  2643. // Indicates whether there are more results that can be obtained by a subsequent
  2644. // call.
  2645. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
  2646. // The starting point for the next page of results. To view the next page of
  2647. // results, call ListPipelinesOutput again with this marker value. If the value
  2648. // is null, there are no more results.
  2649. Marker *string `locationName:"marker" type:"string"`
  2650. // The pipeline identifiers. If you require additional information about the
  2651. // pipelines, you can use these identifiers to call DescribePipelines and GetPipelineDefinition.
  2652. //
  2653. // PipelineIdList is a required field
  2654. PipelineIdList []*PipelineIdName `locationName:"pipelineIdList" type:"list" required:"true"`
  2655. }
  2656. // String returns the string representation
  2657. func (s ListPipelinesOutput) String() string {
  2658. return awsutil.Prettify(s)
  2659. }
  2660. // GoString returns the string representation
  2661. func (s ListPipelinesOutput) GoString() string {
  2662. return s.String()
  2663. }
  2664. // SetHasMoreResults sets the HasMoreResults field's value.
  2665. func (s *ListPipelinesOutput) SetHasMoreResults(v bool) *ListPipelinesOutput {
  2666. s.HasMoreResults = &v
  2667. return s
  2668. }
  2669. // SetMarker sets the Marker field's value.
  2670. func (s *ListPipelinesOutput) SetMarker(v string) *ListPipelinesOutput {
  2671. s.Marker = &v
  2672. return s
  2673. }
  2674. // SetPipelineIdList sets the PipelineIdList field's value.
  2675. func (s *ListPipelinesOutput) SetPipelineIdList(v []*PipelineIdName) *ListPipelinesOutput {
  2676. s.PipelineIdList = v
  2677. return s
  2678. }
  2679. // Contains a logical operation for comparing the value of a field with a specified
  2680. // value.
  2681. type Operator struct {
  2682. _ struct{} `type:"structure"`
  2683. // The logical operation to be performed: equal (EQ), equal reference (REF_EQ),
  2684. // less than or equal (LE), greater than or equal (GE), or between (BETWEEN).
  2685. // Equal reference (REF_EQ) can be used only with reference fields. The other
  2686. // comparison types can be used only with String fields. The comparison types
  2687. // you can use apply only to certain object fields, as detailed below.
  2688. //
  2689. // The comparison operators EQ and REF_EQ act on the following fields:
  2690. //
  2691. // * name
  2692. // * @sphere
  2693. // * parent
  2694. // * @componentParent
  2695. // * @instanceParent
  2696. // * @status
  2697. // * @scheduledStartTime
  2698. // * @scheduledEndTime
  2699. // * @actualStartTime
  2700. // * @actualEndTime
  2701. // The comparison operators GE, LE, and BETWEEN act on the following fields:
  2702. //
  2703. // * @scheduledStartTime
  2704. // * @scheduledEndTime
  2705. // * @actualStartTime
  2706. // * @actualEndTime
  2707. // Note that fields beginning with the at sign (@) are read-only and set by
  2708. // the web service. When you name fields, you should choose names containing
  2709. // only alpha-numeric values, as symbols may be reserved by AWS Data Pipeline.
  2710. // User-defined fields that you add to a pipeline should prefix their name with
  2711. // the string "my".
  2712. Type *string `locationName:"type" type:"string" enum:"OperatorType"`
  2713. // The value that the actual field value will be compared with.
  2714. Values []*string `locationName:"values" type:"list"`
  2715. }
  2716. // String returns the string representation
  2717. func (s Operator) String() string {
  2718. return awsutil.Prettify(s)
  2719. }
  2720. // GoString returns the string representation
  2721. func (s Operator) GoString() string {
  2722. return s.String()
  2723. }
  2724. // SetType sets the Type field's value.
  2725. func (s *Operator) SetType(v string) *Operator {
  2726. s.Type = &v
  2727. return s
  2728. }
  2729. // SetValues sets the Values field's value.
  2730. func (s *Operator) SetValues(v []*string) *Operator {
  2731. s.Values = v
  2732. return s
  2733. }
  2734. // The attributes allowed or specified with a parameter object.
  2735. type ParameterAttribute struct {
  2736. _ struct{} `type:"structure"`
  2737. // The field identifier.
  2738. //
  2739. // Key is a required field
  2740. Key *string `locationName:"key" min:"1" type:"string" required:"true"`
  2741. // The field value, expressed as a String.
  2742. //
  2743. // StringValue is a required field
  2744. StringValue *string `locationName:"stringValue" type:"string" required:"true"`
  2745. }
  2746. // String returns the string representation
  2747. func (s ParameterAttribute) String() string {
  2748. return awsutil.Prettify(s)
  2749. }
  2750. // GoString returns the string representation
  2751. func (s ParameterAttribute) GoString() string {
  2752. return s.String()
  2753. }
  2754. // Validate inspects the fields of the type to determine if they are valid.
  2755. func (s *ParameterAttribute) Validate() error {
  2756. invalidParams := request.ErrInvalidParams{Context: "ParameterAttribute"}
  2757. if s.Key == nil {
  2758. invalidParams.Add(request.NewErrParamRequired("Key"))
  2759. }
  2760. if s.Key != nil && len(*s.Key) < 1 {
  2761. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  2762. }
  2763. if s.StringValue == nil {
  2764. invalidParams.Add(request.NewErrParamRequired("StringValue"))
  2765. }
  2766. if invalidParams.Len() > 0 {
  2767. return invalidParams
  2768. }
  2769. return nil
  2770. }
  2771. // SetKey sets the Key field's value.
  2772. func (s *ParameterAttribute) SetKey(v string) *ParameterAttribute {
  2773. s.Key = &v
  2774. return s
  2775. }
  2776. // SetStringValue sets the StringValue field's value.
  2777. func (s *ParameterAttribute) SetStringValue(v string) *ParameterAttribute {
  2778. s.StringValue = &v
  2779. return s
  2780. }
  2781. // Contains information about a parameter object.
  2782. type ParameterObject struct {
  2783. _ struct{} `type:"structure"`
  2784. // The attributes of the parameter object.
  2785. //
  2786. // Attributes is a required field
  2787. Attributes []*ParameterAttribute `locationName:"attributes" type:"list" required:"true"`
  2788. // The ID of the parameter object.
  2789. //
  2790. // Id is a required field
  2791. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  2792. }
  2793. // String returns the string representation
  2794. func (s ParameterObject) String() string {
  2795. return awsutil.Prettify(s)
  2796. }
  2797. // GoString returns the string representation
  2798. func (s ParameterObject) GoString() string {
  2799. return s.String()
  2800. }
  2801. // Validate inspects the fields of the type to determine if they are valid.
  2802. func (s *ParameterObject) Validate() error {
  2803. invalidParams := request.ErrInvalidParams{Context: "ParameterObject"}
  2804. if s.Attributes == nil {
  2805. invalidParams.Add(request.NewErrParamRequired("Attributes"))
  2806. }
  2807. if s.Id == nil {
  2808. invalidParams.Add(request.NewErrParamRequired("Id"))
  2809. }
  2810. if s.Id != nil && len(*s.Id) < 1 {
  2811. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  2812. }
  2813. if s.Attributes != nil {
  2814. for i, v := range s.Attributes {
  2815. if v == nil {
  2816. continue
  2817. }
  2818. if err := v.Validate(); err != nil {
  2819. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams))
  2820. }
  2821. }
  2822. }
  2823. if invalidParams.Len() > 0 {
  2824. return invalidParams
  2825. }
  2826. return nil
  2827. }
  2828. // SetAttributes sets the Attributes field's value.
  2829. func (s *ParameterObject) SetAttributes(v []*ParameterAttribute) *ParameterObject {
  2830. s.Attributes = v
  2831. return s
  2832. }
  2833. // SetId sets the Id field's value.
  2834. func (s *ParameterObject) SetId(v string) *ParameterObject {
  2835. s.Id = &v
  2836. return s
  2837. }
  2838. // A value or list of parameter values.
  2839. type ParameterValue struct {
  2840. _ struct{} `type:"structure"`
  2841. // The ID of the parameter value.
  2842. //
  2843. // Id is a required field
  2844. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  2845. // The field value, expressed as a String.
  2846. //
  2847. // StringValue is a required field
  2848. StringValue *string `locationName:"stringValue" type:"string" required:"true"`
  2849. }
  2850. // String returns the string representation
  2851. func (s ParameterValue) String() string {
  2852. return awsutil.Prettify(s)
  2853. }
  2854. // GoString returns the string representation
  2855. func (s ParameterValue) GoString() string {
  2856. return s.String()
  2857. }
  2858. // Validate inspects the fields of the type to determine if they are valid.
  2859. func (s *ParameterValue) Validate() error {
  2860. invalidParams := request.ErrInvalidParams{Context: "ParameterValue"}
  2861. if s.Id == nil {
  2862. invalidParams.Add(request.NewErrParamRequired("Id"))
  2863. }
  2864. if s.Id != nil && len(*s.Id) < 1 {
  2865. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  2866. }
  2867. if s.StringValue == nil {
  2868. invalidParams.Add(request.NewErrParamRequired("StringValue"))
  2869. }
  2870. if invalidParams.Len() > 0 {
  2871. return invalidParams
  2872. }
  2873. return nil
  2874. }
  2875. // SetId sets the Id field's value.
  2876. func (s *ParameterValue) SetId(v string) *ParameterValue {
  2877. s.Id = &v
  2878. return s
  2879. }
  2880. // SetStringValue sets the StringValue field's value.
  2881. func (s *ParameterValue) SetStringValue(v string) *ParameterValue {
  2882. s.StringValue = &v
  2883. return s
  2884. }
  2885. // Contains pipeline metadata.
  2886. type PipelineDescription struct {
  2887. _ struct{} `type:"structure"`
  2888. // Description of the pipeline.
  2889. Description *string `locationName:"description" type:"string"`
  2890. // A list of read-only fields that contain metadata about the pipeline: @userId,
  2891. // @accountId, and @pipelineState.
  2892. //
  2893. // Fields is a required field
  2894. Fields []*Field `locationName:"fields" type:"list" required:"true"`
  2895. // The name of the pipeline.
  2896. //
  2897. // Name is a required field
  2898. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2899. // The pipeline identifier that was assigned by AWS Data Pipeline. This is a
  2900. // string of the form df-297EG78HU43EEXAMPLE.
  2901. //
  2902. // PipelineId is a required field
  2903. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  2904. // A list of tags to associated with a pipeline. Tags let you control access
  2905. // to pipelines. For more information, see Controlling User Access to Pipelines
  2906. // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  2907. // in the AWS Data Pipeline Developer Guide.
  2908. Tags []*Tag `locationName:"tags" type:"list"`
  2909. }
  2910. // String returns the string representation
  2911. func (s PipelineDescription) String() string {
  2912. return awsutil.Prettify(s)
  2913. }
  2914. // GoString returns the string representation
  2915. func (s PipelineDescription) GoString() string {
  2916. return s.String()
  2917. }
  2918. // SetDescription sets the Description field's value.
  2919. func (s *PipelineDescription) SetDescription(v string) *PipelineDescription {
  2920. s.Description = &v
  2921. return s
  2922. }
  2923. // SetFields sets the Fields field's value.
  2924. func (s *PipelineDescription) SetFields(v []*Field) *PipelineDescription {
  2925. s.Fields = v
  2926. return s
  2927. }
  2928. // SetName sets the Name field's value.
  2929. func (s *PipelineDescription) SetName(v string) *PipelineDescription {
  2930. s.Name = &v
  2931. return s
  2932. }
  2933. // SetPipelineId sets the PipelineId field's value.
  2934. func (s *PipelineDescription) SetPipelineId(v string) *PipelineDescription {
  2935. s.PipelineId = &v
  2936. return s
  2937. }
  2938. // SetTags sets the Tags field's value.
  2939. func (s *PipelineDescription) SetTags(v []*Tag) *PipelineDescription {
  2940. s.Tags = v
  2941. return s
  2942. }
  2943. // Contains the name and identifier of a pipeline.
  2944. type PipelineIdName struct {
  2945. _ struct{} `type:"structure"`
  2946. // The ID of the pipeline that was assigned by AWS Data Pipeline. This is a
  2947. // string of the form df-297EG78HU43EEXAMPLE.
  2948. Id *string `locationName:"id" min:"1" type:"string"`
  2949. // The name of the pipeline.
  2950. Name *string `locationName:"name" min:"1" type:"string"`
  2951. }
  2952. // String returns the string representation
  2953. func (s PipelineIdName) String() string {
  2954. return awsutil.Prettify(s)
  2955. }
  2956. // GoString returns the string representation
  2957. func (s PipelineIdName) GoString() string {
  2958. return s.String()
  2959. }
  2960. // SetId sets the Id field's value.
  2961. func (s *PipelineIdName) SetId(v string) *PipelineIdName {
  2962. s.Id = &v
  2963. return s
  2964. }
  2965. // SetName sets the Name field's value.
  2966. func (s *PipelineIdName) SetName(v string) *PipelineIdName {
  2967. s.Name = &v
  2968. return s
  2969. }
  2970. // Contains information about a pipeline object. This can be a logical, physical,
  2971. // or physical attempt pipeline object. The complete set of components of a
  2972. // pipeline defines the pipeline.
  2973. type PipelineObject struct {
  2974. _ struct{} `type:"structure"`
  2975. // Key-value pairs that define the properties of the object.
  2976. //
  2977. // Fields is a required field
  2978. Fields []*Field `locationName:"fields" type:"list" required:"true"`
  2979. // The ID of the object.
  2980. //
  2981. // Id is a required field
  2982. Id *string `locationName:"id" min:"1" type:"string" required:"true"`
  2983. // The name of the object.
  2984. //
  2985. // Name is a required field
  2986. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2987. }
  2988. // String returns the string representation
  2989. func (s PipelineObject) String() string {
  2990. return awsutil.Prettify(s)
  2991. }
  2992. // GoString returns the string representation
  2993. func (s PipelineObject) GoString() string {
  2994. return s.String()
  2995. }
  2996. // Validate inspects the fields of the type to determine if they are valid.
  2997. func (s *PipelineObject) Validate() error {
  2998. invalidParams := request.ErrInvalidParams{Context: "PipelineObject"}
  2999. if s.Fields == nil {
  3000. invalidParams.Add(request.NewErrParamRequired("Fields"))
  3001. }
  3002. if s.Id == nil {
  3003. invalidParams.Add(request.NewErrParamRequired("Id"))
  3004. }
  3005. if s.Id != nil && len(*s.Id) < 1 {
  3006. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  3007. }
  3008. if s.Name == nil {
  3009. invalidParams.Add(request.NewErrParamRequired("Name"))
  3010. }
  3011. if s.Name != nil && len(*s.Name) < 1 {
  3012. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3013. }
  3014. if s.Fields != nil {
  3015. for i, v := range s.Fields {
  3016. if v == nil {
  3017. continue
  3018. }
  3019. if err := v.Validate(); err != nil {
  3020. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
  3021. }
  3022. }
  3023. }
  3024. if invalidParams.Len() > 0 {
  3025. return invalidParams
  3026. }
  3027. return nil
  3028. }
  3029. // SetFields sets the Fields field's value.
  3030. func (s *PipelineObject) SetFields(v []*Field) *PipelineObject {
  3031. s.Fields = v
  3032. return s
  3033. }
  3034. // SetId sets the Id field's value.
  3035. func (s *PipelineObject) SetId(v string) *PipelineObject {
  3036. s.Id = &v
  3037. return s
  3038. }
  3039. // SetName sets the Name field's value.
  3040. func (s *PipelineObject) SetName(v string) *PipelineObject {
  3041. s.Name = &v
  3042. return s
  3043. }
  3044. // Contains the parameters for PollForTask.
  3045. type PollForTaskInput struct {
  3046. _ struct{} `type:"structure"`
  3047. // The public DNS name of the calling task runner.
  3048. Hostname *string `locationName:"hostname" min:"1" type:"string"`
  3049. // Identity information for the EC2 instance that is hosting the task runner.
  3050. // You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id.
  3051. // For more information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
  3052. // in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves
  3053. // that your task runner is running on an EC2 instance, and ensures the proper
  3054. // AWS Data Pipeline service charges are applied to your pipeline.
  3055. InstanceIdentity *InstanceIdentity `locationName:"instanceIdentity" type:"structure"`
  3056. // The type of task the task runner is configured to accept and process. The
  3057. // worker group is set as a field on objects in the pipeline when they are created.
  3058. // You can only specify a single value for workerGroup in the call to PollForTask.
  3059. // There are no wildcard values permitted in workerGroup; the string must be
  3060. // an exact, case-sensitive, match.
  3061. //
  3062. // WorkerGroup is a required field
  3063. WorkerGroup *string `locationName:"workerGroup" type:"string" required:"true"`
  3064. }
  3065. // String returns the string representation
  3066. func (s PollForTaskInput) String() string {
  3067. return awsutil.Prettify(s)
  3068. }
  3069. // GoString returns the string representation
  3070. func (s PollForTaskInput) GoString() string {
  3071. return s.String()
  3072. }
  3073. // Validate inspects the fields of the type to determine if they are valid.
  3074. func (s *PollForTaskInput) Validate() error {
  3075. invalidParams := request.ErrInvalidParams{Context: "PollForTaskInput"}
  3076. if s.Hostname != nil && len(*s.Hostname) < 1 {
  3077. invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
  3078. }
  3079. if s.WorkerGroup == nil {
  3080. invalidParams.Add(request.NewErrParamRequired("WorkerGroup"))
  3081. }
  3082. if invalidParams.Len() > 0 {
  3083. return invalidParams
  3084. }
  3085. return nil
  3086. }
  3087. // SetHostname sets the Hostname field's value.
  3088. func (s *PollForTaskInput) SetHostname(v string) *PollForTaskInput {
  3089. s.Hostname = &v
  3090. return s
  3091. }
  3092. // SetInstanceIdentity sets the InstanceIdentity field's value.
  3093. func (s *PollForTaskInput) SetInstanceIdentity(v *InstanceIdentity) *PollForTaskInput {
  3094. s.InstanceIdentity = v
  3095. return s
  3096. }
  3097. // SetWorkerGroup sets the WorkerGroup field's value.
  3098. func (s *PollForTaskInput) SetWorkerGroup(v string) *PollForTaskInput {
  3099. s.WorkerGroup = &v
  3100. return s
  3101. }
  3102. // Contains the output of PollForTask.
  3103. type PollForTaskOutput struct {
  3104. _ struct{} `type:"structure"`
  3105. // The information needed to complete the task that is being assigned to the
  3106. // task runner. One of the fields returned in this object is taskId, which contains
  3107. // an identifier for the task being assigned. The calling task runner uses taskId
  3108. // in subsequent calls to ReportTaskProgress and SetTaskStatus.
  3109. TaskObject *TaskObject `locationName:"taskObject" type:"structure"`
  3110. }
  3111. // String returns the string representation
  3112. func (s PollForTaskOutput) String() string {
  3113. return awsutil.Prettify(s)
  3114. }
  3115. // GoString returns the string representation
  3116. func (s PollForTaskOutput) GoString() string {
  3117. return s.String()
  3118. }
  3119. // SetTaskObject sets the TaskObject field's value.
  3120. func (s *PollForTaskOutput) SetTaskObject(v *TaskObject) *PollForTaskOutput {
  3121. s.TaskObject = v
  3122. return s
  3123. }
  3124. // Contains the parameters for PutPipelineDefinition.
  3125. type PutPipelineDefinitionInput struct {
  3126. _ struct{} `type:"structure"`
  3127. // The parameter objects used with the pipeline.
  3128. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
  3129. // The parameter values used with the pipeline.
  3130. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  3131. // The ID of the pipeline.
  3132. //
  3133. // PipelineId is a required field
  3134. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  3135. // The objects that define the pipeline. These objects overwrite the existing
  3136. // pipeline definition.
  3137. //
  3138. // PipelineObjects is a required field
  3139. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
  3140. }
  3141. // String returns the string representation
  3142. func (s PutPipelineDefinitionInput) String() string {
  3143. return awsutil.Prettify(s)
  3144. }
  3145. // GoString returns the string representation
  3146. func (s PutPipelineDefinitionInput) GoString() string {
  3147. return s.String()
  3148. }
  3149. // Validate inspects the fields of the type to determine if they are valid.
  3150. func (s *PutPipelineDefinitionInput) Validate() error {
  3151. invalidParams := request.ErrInvalidParams{Context: "PutPipelineDefinitionInput"}
  3152. if s.PipelineId == nil {
  3153. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  3154. }
  3155. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  3156. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  3157. }
  3158. if s.PipelineObjects == nil {
  3159. invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
  3160. }
  3161. if s.ParameterObjects != nil {
  3162. for i, v := range s.ParameterObjects {
  3163. if v == nil {
  3164. continue
  3165. }
  3166. if err := v.Validate(); err != nil {
  3167. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
  3168. }
  3169. }
  3170. }
  3171. if s.ParameterValues != nil {
  3172. for i, v := range s.ParameterValues {
  3173. if v == nil {
  3174. continue
  3175. }
  3176. if err := v.Validate(); err != nil {
  3177. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
  3178. }
  3179. }
  3180. }
  3181. if s.PipelineObjects != nil {
  3182. for i, v := range s.PipelineObjects {
  3183. if v == nil {
  3184. continue
  3185. }
  3186. if err := v.Validate(); err != nil {
  3187. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
  3188. }
  3189. }
  3190. }
  3191. if invalidParams.Len() > 0 {
  3192. return invalidParams
  3193. }
  3194. return nil
  3195. }
  3196. // SetParameterObjects sets the ParameterObjects field's value.
  3197. func (s *PutPipelineDefinitionInput) SetParameterObjects(v []*ParameterObject) *PutPipelineDefinitionInput {
  3198. s.ParameterObjects = v
  3199. return s
  3200. }
  3201. // SetParameterValues sets the ParameterValues field's value.
  3202. func (s *PutPipelineDefinitionInput) SetParameterValues(v []*ParameterValue) *PutPipelineDefinitionInput {
  3203. s.ParameterValues = v
  3204. return s
  3205. }
  3206. // SetPipelineId sets the PipelineId field's value.
  3207. func (s *PutPipelineDefinitionInput) SetPipelineId(v string) *PutPipelineDefinitionInput {
  3208. s.PipelineId = &v
  3209. return s
  3210. }
  3211. // SetPipelineObjects sets the PipelineObjects field's value.
  3212. func (s *PutPipelineDefinitionInput) SetPipelineObjects(v []*PipelineObject) *PutPipelineDefinitionInput {
  3213. s.PipelineObjects = v
  3214. return s
  3215. }
  3216. // Contains the output of PutPipelineDefinition.
  3217. type PutPipelineDefinitionOutput struct {
  3218. _ struct{} `type:"structure"`
  3219. // Indicates whether there were validation errors, and the pipeline definition
  3220. // is stored but cannot be activated until you correct the pipeline and call
  3221. // PutPipelineDefinition to commit the corrected pipeline.
  3222. //
  3223. // Errored is a required field
  3224. Errored *bool `locationName:"errored" type:"boolean" required:"true"`
  3225. // The validation errors that are associated with the objects defined in pipelineObjects.
  3226. ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
  3227. // The validation warnings that are associated with the objects defined in pipelineObjects.
  3228. ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
  3229. }
  3230. // String returns the string representation
  3231. func (s PutPipelineDefinitionOutput) String() string {
  3232. return awsutil.Prettify(s)
  3233. }
  3234. // GoString returns the string representation
  3235. func (s PutPipelineDefinitionOutput) GoString() string {
  3236. return s.String()
  3237. }
  3238. // SetErrored sets the Errored field's value.
  3239. func (s *PutPipelineDefinitionOutput) SetErrored(v bool) *PutPipelineDefinitionOutput {
  3240. s.Errored = &v
  3241. return s
  3242. }
  3243. // SetValidationErrors sets the ValidationErrors field's value.
  3244. func (s *PutPipelineDefinitionOutput) SetValidationErrors(v []*ValidationError) *PutPipelineDefinitionOutput {
  3245. s.ValidationErrors = v
  3246. return s
  3247. }
  3248. // SetValidationWarnings sets the ValidationWarnings field's value.
  3249. func (s *PutPipelineDefinitionOutput) SetValidationWarnings(v []*ValidationWarning) *PutPipelineDefinitionOutput {
  3250. s.ValidationWarnings = v
  3251. return s
  3252. }
  3253. // Defines the query to run against an object.
  3254. type Query struct {
  3255. _ struct{} `type:"structure"`
  3256. // List of selectors that define the query. An object must satisfy all of the
  3257. // selectors to match the query.
  3258. Selectors []*Selector `locationName:"selectors" type:"list"`
  3259. }
  3260. // String returns the string representation
  3261. func (s Query) String() string {
  3262. return awsutil.Prettify(s)
  3263. }
  3264. // GoString returns the string representation
  3265. func (s Query) GoString() string {
  3266. return s.String()
  3267. }
  3268. // SetSelectors sets the Selectors field's value.
  3269. func (s *Query) SetSelectors(v []*Selector) *Query {
  3270. s.Selectors = v
  3271. return s
  3272. }
  3273. // Contains the parameters for QueryObjects.
  3274. type QueryObjectsInput struct {
  3275. _ struct{} `type:"structure"`
  3276. // The maximum number of object names that QueryObjects will return in a single
  3277. // call. The default value is 100.
  3278. Limit *int64 `locationName:"limit" type:"integer"`
  3279. // The starting point for the results to be returned. For the first call, this
  3280. // value should be empty. As long as there are more results, continue to call
  3281. // QueryObjects with the marker value from the previous call to retrieve the
  3282. // next set of results.
  3283. Marker *string `locationName:"marker" type:"string"`
  3284. // The ID of the pipeline.
  3285. //
  3286. // PipelineId is a required field
  3287. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  3288. // The query that defines the objects to be returned. The Query object can contain
  3289. // a maximum of ten selectors. The conditions in the query are limited to top-level
  3290. // String fields in the object. These filters can be applied to components,
  3291. // instances, and attempts.
  3292. Query *Query `locationName:"query" type:"structure"`
  3293. // Indicates whether the query applies to components or instances. The possible
  3294. // values are: COMPONENT, INSTANCE, and ATTEMPT.
  3295. //
  3296. // Sphere is a required field
  3297. Sphere *string `locationName:"sphere" type:"string" required:"true"`
  3298. }
  3299. // String returns the string representation
  3300. func (s QueryObjectsInput) String() string {
  3301. return awsutil.Prettify(s)
  3302. }
  3303. // GoString returns the string representation
  3304. func (s QueryObjectsInput) GoString() string {
  3305. return s.String()
  3306. }
  3307. // Validate inspects the fields of the type to determine if they are valid.
  3308. func (s *QueryObjectsInput) Validate() error {
  3309. invalidParams := request.ErrInvalidParams{Context: "QueryObjectsInput"}
  3310. if s.PipelineId == nil {
  3311. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  3312. }
  3313. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  3314. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  3315. }
  3316. if s.Sphere == nil {
  3317. invalidParams.Add(request.NewErrParamRequired("Sphere"))
  3318. }
  3319. if invalidParams.Len() > 0 {
  3320. return invalidParams
  3321. }
  3322. return nil
  3323. }
  3324. // SetLimit sets the Limit field's value.
  3325. func (s *QueryObjectsInput) SetLimit(v int64) *QueryObjectsInput {
  3326. s.Limit = &v
  3327. return s
  3328. }
  3329. // SetMarker sets the Marker field's value.
  3330. func (s *QueryObjectsInput) SetMarker(v string) *QueryObjectsInput {
  3331. s.Marker = &v
  3332. return s
  3333. }
  3334. // SetPipelineId sets the PipelineId field's value.
  3335. func (s *QueryObjectsInput) SetPipelineId(v string) *QueryObjectsInput {
  3336. s.PipelineId = &v
  3337. return s
  3338. }
  3339. // SetQuery sets the Query field's value.
  3340. func (s *QueryObjectsInput) SetQuery(v *Query) *QueryObjectsInput {
  3341. s.Query = v
  3342. return s
  3343. }
  3344. // SetSphere sets the Sphere field's value.
  3345. func (s *QueryObjectsInput) SetSphere(v string) *QueryObjectsInput {
  3346. s.Sphere = &v
  3347. return s
  3348. }
  3349. // Contains the output of QueryObjects.
  3350. type QueryObjectsOutput struct {
  3351. _ struct{} `type:"structure"`
  3352. // Indicates whether there are more results that can be obtained by a subsequent
  3353. // call.
  3354. HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
  3355. // The identifiers that match the query selectors.
  3356. Ids []*string `locationName:"ids" type:"list"`
  3357. // The starting point for the next page of results. To view the next page of
  3358. // results, call QueryObjects again with this marker value. If the value is
  3359. // null, there are no more results.
  3360. Marker *string `locationName:"marker" type:"string"`
  3361. }
  3362. // String returns the string representation
  3363. func (s QueryObjectsOutput) String() string {
  3364. return awsutil.Prettify(s)
  3365. }
  3366. // GoString returns the string representation
  3367. func (s QueryObjectsOutput) GoString() string {
  3368. return s.String()
  3369. }
  3370. // SetHasMoreResults sets the HasMoreResults field's value.
  3371. func (s *QueryObjectsOutput) SetHasMoreResults(v bool) *QueryObjectsOutput {
  3372. s.HasMoreResults = &v
  3373. return s
  3374. }
  3375. // SetIds sets the Ids field's value.
  3376. func (s *QueryObjectsOutput) SetIds(v []*string) *QueryObjectsOutput {
  3377. s.Ids = v
  3378. return s
  3379. }
  3380. // SetMarker sets the Marker field's value.
  3381. func (s *QueryObjectsOutput) SetMarker(v string) *QueryObjectsOutput {
  3382. s.Marker = &v
  3383. return s
  3384. }
  3385. // Contains the parameters for RemoveTags.
  3386. type RemoveTagsInput struct {
  3387. _ struct{} `type:"structure"`
  3388. // The ID of the pipeline.
  3389. //
  3390. // PipelineId is a required field
  3391. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  3392. // The keys of the tags to remove.
  3393. //
  3394. // TagKeys is a required field
  3395. TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
  3396. }
  3397. // String returns the string representation
  3398. func (s RemoveTagsInput) String() string {
  3399. return awsutil.Prettify(s)
  3400. }
  3401. // GoString returns the string representation
  3402. func (s RemoveTagsInput) GoString() string {
  3403. return s.String()
  3404. }
  3405. // Validate inspects the fields of the type to determine if they are valid.
  3406. func (s *RemoveTagsInput) Validate() error {
  3407. invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
  3408. if s.PipelineId == nil {
  3409. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  3410. }
  3411. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  3412. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  3413. }
  3414. if s.TagKeys == nil {
  3415. invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  3416. }
  3417. if invalidParams.Len() > 0 {
  3418. return invalidParams
  3419. }
  3420. return nil
  3421. }
  3422. // SetPipelineId sets the PipelineId field's value.
  3423. func (s *RemoveTagsInput) SetPipelineId(v string) *RemoveTagsInput {
  3424. s.PipelineId = &v
  3425. return s
  3426. }
  3427. // SetTagKeys sets the TagKeys field's value.
  3428. func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput {
  3429. s.TagKeys = v
  3430. return s
  3431. }
  3432. // Contains the output of RemoveTags.
  3433. type RemoveTagsOutput struct {
  3434. _ struct{} `type:"structure"`
  3435. }
  3436. // String returns the string representation
  3437. func (s RemoveTagsOutput) String() string {
  3438. return awsutil.Prettify(s)
  3439. }
  3440. // GoString returns the string representation
  3441. func (s RemoveTagsOutput) GoString() string {
  3442. return s.String()
  3443. }
  3444. // Contains the parameters for ReportTaskProgress.
  3445. type ReportTaskProgressInput struct {
  3446. _ struct{} `type:"structure"`
  3447. // Key-value pairs that define the properties of the ReportTaskProgressInput
  3448. // object.
  3449. Fields []*Field `locationName:"fields" type:"list"`
  3450. // The ID of the task assigned to the task runner. This value is provided in
  3451. // the response for PollForTask.
  3452. //
  3453. // TaskId is a required field
  3454. TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
  3455. }
  3456. // String returns the string representation
  3457. func (s ReportTaskProgressInput) String() string {
  3458. return awsutil.Prettify(s)
  3459. }
  3460. // GoString returns the string representation
  3461. func (s ReportTaskProgressInput) GoString() string {
  3462. return s.String()
  3463. }
  3464. // Validate inspects the fields of the type to determine if they are valid.
  3465. func (s *ReportTaskProgressInput) Validate() error {
  3466. invalidParams := request.ErrInvalidParams{Context: "ReportTaskProgressInput"}
  3467. if s.TaskId == nil {
  3468. invalidParams.Add(request.NewErrParamRequired("TaskId"))
  3469. }
  3470. if s.TaskId != nil && len(*s.TaskId) < 1 {
  3471. invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
  3472. }
  3473. if s.Fields != nil {
  3474. for i, v := range s.Fields {
  3475. if v == nil {
  3476. continue
  3477. }
  3478. if err := v.Validate(); err != nil {
  3479. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
  3480. }
  3481. }
  3482. }
  3483. if invalidParams.Len() > 0 {
  3484. return invalidParams
  3485. }
  3486. return nil
  3487. }
  3488. // SetFields sets the Fields field's value.
  3489. func (s *ReportTaskProgressInput) SetFields(v []*Field) *ReportTaskProgressInput {
  3490. s.Fields = v
  3491. return s
  3492. }
  3493. // SetTaskId sets the TaskId field's value.
  3494. func (s *ReportTaskProgressInput) SetTaskId(v string) *ReportTaskProgressInput {
  3495. s.TaskId = &v
  3496. return s
  3497. }
  3498. // Contains the output of ReportTaskProgress.
  3499. type ReportTaskProgressOutput struct {
  3500. _ struct{} `type:"structure"`
  3501. // If true, the calling task runner should cancel processing of the task. The
  3502. // task runner does not need to call SetTaskStatus for canceled tasks.
  3503. //
  3504. // Canceled is a required field
  3505. Canceled *bool `locationName:"canceled" type:"boolean" required:"true"`
  3506. }
  3507. // String returns the string representation
  3508. func (s ReportTaskProgressOutput) String() string {
  3509. return awsutil.Prettify(s)
  3510. }
  3511. // GoString returns the string representation
  3512. func (s ReportTaskProgressOutput) GoString() string {
  3513. return s.String()
  3514. }
  3515. // SetCanceled sets the Canceled field's value.
  3516. func (s *ReportTaskProgressOutput) SetCanceled(v bool) *ReportTaskProgressOutput {
  3517. s.Canceled = &v
  3518. return s
  3519. }
  3520. // Contains the parameters for ReportTaskRunnerHeartbeat.
  3521. type ReportTaskRunnerHeartbeatInput struct {
  3522. _ struct{} `type:"structure"`
  3523. // The public DNS name of the task runner.
  3524. Hostname *string `locationName:"hostname" min:"1" type:"string"`
  3525. // The ID of the task runner. This value should be unique across your AWS account.
  3526. // In the case of AWS Data Pipeline Task Runner launched on a resource managed
  3527. // by AWS Data Pipeline, the web service provides a unique identifier when it
  3528. // launches the application. If you have written a custom task runner, you should
  3529. // assign a unique identifier for the task runner.
  3530. //
  3531. // TaskrunnerId is a required field
  3532. TaskrunnerId *string `locationName:"taskrunnerId" min:"1" type:"string" required:"true"`
  3533. // The type of task the task runner is configured to accept and process. The
  3534. // worker group is set as a field on objects in the pipeline when they are created.
  3535. // You can only specify a single value for workerGroup. There are no wildcard
  3536. // values permitted in workerGroup; the string must be an exact, case-sensitive,
  3537. // match.
  3538. WorkerGroup *string `locationName:"workerGroup" type:"string"`
  3539. }
  3540. // String returns the string representation
  3541. func (s ReportTaskRunnerHeartbeatInput) String() string {
  3542. return awsutil.Prettify(s)
  3543. }
  3544. // GoString returns the string representation
  3545. func (s ReportTaskRunnerHeartbeatInput) GoString() string {
  3546. return s.String()
  3547. }
  3548. // Validate inspects the fields of the type to determine if they are valid.
  3549. func (s *ReportTaskRunnerHeartbeatInput) Validate() error {
  3550. invalidParams := request.ErrInvalidParams{Context: "ReportTaskRunnerHeartbeatInput"}
  3551. if s.Hostname != nil && len(*s.Hostname) < 1 {
  3552. invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
  3553. }
  3554. if s.TaskrunnerId == nil {
  3555. invalidParams.Add(request.NewErrParamRequired("TaskrunnerId"))
  3556. }
  3557. if s.TaskrunnerId != nil && len(*s.TaskrunnerId) < 1 {
  3558. invalidParams.Add(request.NewErrParamMinLen("TaskrunnerId", 1))
  3559. }
  3560. if invalidParams.Len() > 0 {
  3561. return invalidParams
  3562. }
  3563. return nil
  3564. }
  3565. // SetHostname sets the Hostname field's value.
  3566. func (s *ReportTaskRunnerHeartbeatInput) SetHostname(v string) *ReportTaskRunnerHeartbeatInput {
  3567. s.Hostname = &v
  3568. return s
  3569. }
  3570. // SetTaskrunnerId sets the TaskrunnerId field's value.
  3571. func (s *ReportTaskRunnerHeartbeatInput) SetTaskrunnerId(v string) *ReportTaskRunnerHeartbeatInput {
  3572. s.TaskrunnerId = &v
  3573. return s
  3574. }
  3575. // SetWorkerGroup sets the WorkerGroup field's value.
  3576. func (s *ReportTaskRunnerHeartbeatInput) SetWorkerGroup(v string) *ReportTaskRunnerHeartbeatInput {
  3577. s.WorkerGroup = &v
  3578. return s
  3579. }
  3580. // Contains the output of ReportTaskRunnerHeartbeat.
  3581. type ReportTaskRunnerHeartbeatOutput struct {
  3582. _ struct{} `type:"structure"`
  3583. // Indicates whether the calling task runner should terminate.
  3584. //
  3585. // Terminate is a required field
  3586. Terminate *bool `locationName:"terminate" type:"boolean" required:"true"`
  3587. }
  3588. // String returns the string representation
  3589. func (s ReportTaskRunnerHeartbeatOutput) String() string {
  3590. return awsutil.Prettify(s)
  3591. }
  3592. // GoString returns the string representation
  3593. func (s ReportTaskRunnerHeartbeatOutput) GoString() string {
  3594. return s.String()
  3595. }
  3596. // SetTerminate sets the Terminate field's value.
  3597. func (s *ReportTaskRunnerHeartbeatOutput) SetTerminate(v bool) *ReportTaskRunnerHeartbeatOutput {
  3598. s.Terminate = &v
  3599. return s
  3600. }
  3601. // A comparision that is used to determine whether a query should return this
  3602. // object.
  3603. type Selector struct {
  3604. _ struct{} `type:"structure"`
  3605. // The name of the field that the operator will be applied to. The field name
  3606. // is the "key" portion of the field definition in the pipeline definition syntax
  3607. // that is used by the AWS Data Pipeline API. If the field is not set on the
  3608. // object, the condition fails.
  3609. FieldName *string `locationName:"fieldName" type:"string"`
  3610. // Contains a logical operation for comparing the value of a field with a specified
  3611. // value.
  3612. Operator *Operator `locationName:"operator" type:"structure"`
  3613. }
  3614. // String returns the string representation
  3615. func (s Selector) String() string {
  3616. return awsutil.Prettify(s)
  3617. }
  3618. // GoString returns the string representation
  3619. func (s Selector) GoString() string {
  3620. return s.String()
  3621. }
  3622. // SetFieldName sets the FieldName field's value.
  3623. func (s *Selector) SetFieldName(v string) *Selector {
  3624. s.FieldName = &v
  3625. return s
  3626. }
  3627. // SetOperator sets the Operator field's value.
  3628. func (s *Selector) SetOperator(v *Operator) *Selector {
  3629. s.Operator = v
  3630. return s
  3631. }
  3632. // Contains the parameters for SetStatus.
  3633. type SetStatusInput struct {
  3634. _ struct{} `type:"structure"`
  3635. // The IDs of the objects. The corresponding objects can be either physical
  3636. // or components, but not a mix of both types.
  3637. //
  3638. // ObjectIds is a required field
  3639. ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
  3640. // The ID of the pipeline that contains the objects.
  3641. //
  3642. // PipelineId is a required field
  3643. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  3644. // The status to be set on all the objects specified in objectIds. For components,
  3645. // use PAUSE or RESUME. For instances, use TRY_CANCEL, RERUN, or MARK_FINISHED.
  3646. //
  3647. // Status is a required field
  3648. Status *string `locationName:"status" type:"string" required:"true"`
  3649. }
  3650. // String returns the string representation
  3651. func (s SetStatusInput) String() string {
  3652. return awsutil.Prettify(s)
  3653. }
  3654. // GoString returns the string representation
  3655. func (s SetStatusInput) GoString() string {
  3656. return s.String()
  3657. }
  3658. // Validate inspects the fields of the type to determine if they are valid.
  3659. func (s *SetStatusInput) Validate() error {
  3660. invalidParams := request.ErrInvalidParams{Context: "SetStatusInput"}
  3661. if s.ObjectIds == nil {
  3662. invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
  3663. }
  3664. if s.PipelineId == nil {
  3665. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  3666. }
  3667. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  3668. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  3669. }
  3670. if s.Status == nil {
  3671. invalidParams.Add(request.NewErrParamRequired("Status"))
  3672. }
  3673. if invalidParams.Len() > 0 {
  3674. return invalidParams
  3675. }
  3676. return nil
  3677. }
  3678. // SetObjectIds sets the ObjectIds field's value.
  3679. func (s *SetStatusInput) SetObjectIds(v []*string) *SetStatusInput {
  3680. s.ObjectIds = v
  3681. return s
  3682. }
  3683. // SetPipelineId sets the PipelineId field's value.
  3684. func (s *SetStatusInput) SetPipelineId(v string) *SetStatusInput {
  3685. s.PipelineId = &v
  3686. return s
  3687. }
  3688. // SetStatus sets the Status field's value.
  3689. func (s *SetStatusInput) SetStatus(v string) *SetStatusInput {
  3690. s.Status = &v
  3691. return s
  3692. }
  3693. type SetStatusOutput struct {
  3694. _ struct{} `type:"structure"`
  3695. }
  3696. // String returns the string representation
  3697. func (s SetStatusOutput) String() string {
  3698. return awsutil.Prettify(s)
  3699. }
  3700. // GoString returns the string representation
  3701. func (s SetStatusOutput) GoString() string {
  3702. return s.String()
  3703. }
  3704. // Contains the parameters for SetTaskStatus.
  3705. type SetTaskStatusInput struct {
  3706. _ struct{} `type:"structure"`
  3707. // If an error occurred during the task, this value specifies the error code.
  3708. // This value is set on the physical attempt object. It is used to display error
  3709. // information to the user. It should not start with string "Service_" which
  3710. // is reserved by the system.
  3711. ErrorId *string `locationName:"errorId" type:"string"`
  3712. // If an error occurred during the task, this value specifies a text description
  3713. // of the error. This value is set on the physical attempt object. It is used
  3714. // to display error information to the user. The web service does not parse
  3715. // this value.
  3716. ErrorMessage *string `locationName:"errorMessage" type:"string"`
  3717. // If an error occurred during the task, this value specifies the stack trace
  3718. // associated with the error. This value is set on the physical attempt object.
  3719. // It is used to display error information to the user. The web service does
  3720. // not parse this value.
  3721. ErrorStackTrace *string `locationName:"errorStackTrace" type:"string"`
  3722. // The ID of the task assigned to the task runner. This value is provided in
  3723. // the response for PollForTask.
  3724. //
  3725. // TaskId is a required field
  3726. TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
  3727. // If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully.
  3728. // Preconditions use false.
  3729. //
  3730. // TaskStatus is a required field
  3731. TaskStatus *string `locationName:"taskStatus" type:"string" required:"true" enum:"TaskStatus"`
  3732. }
  3733. // String returns the string representation
  3734. func (s SetTaskStatusInput) String() string {
  3735. return awsutil.Prettify(s)
  3736. }
  3737. // GoString returns the string representation
  3738. func (s SetTaskStatusInput) GoString() string {
  3739. return s.String()
  3740. }
  3741. // Validate inspects the fields of the type to determine if they are valid.
  3742. func (s *SetTaskStatusInput) Validate() error {
  3743. invalidParams := request.ErrInvalidParams{Context: "SetTaskStatusInput"}
  3744. if s.TaskId == nil {
  3745. invalidParams.Add(request.NewErrParamRequired("TaskId"))
  3746. }
  3747. if s.TaskId != nil && len(*s.TaskId) < 1 {
  3748. invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
  3749. }
  3750. if s.TaskStatus == nil {
  3751. invalidParams.Add(request.NewErrParamRequired("TaskStatus"))
  3752. }
  3753. if invalidParams.Len() > 0 {
  3754. return invalidParams
  3755. }
  3756. return nil
  3757. }
  3758. // SetErrorId sets the ErrorId field's value.
  3759. func (s *SetTaskStatusInput) SetErrorId(v string) *SetTaskStatusInput {
  3760. s.ErrorId = &v
  3761. return s
  3762. }
  3763. // SetErrorMessage sets the ErrorMessage field's value.
  3764. func (s *SetTaskStatusInput) SetErrorMessage(v string) *SetTaskStatusInput {
  3765. s.ErrorMessage = &v
  3766. return s
  3767. }
  3768. // SetErrorStackTrace sets the ErrorStackTrace field's value.
  3769. func (s *SetTaskStatusInput) SetErrorStackTrace(v string) *SetTaskStatusInput {
  3770. s.ErrorStackTrace = &v
  3771. return s
  3772. }
  3773. // SetTaskId sets the TaskId field's value.
  3774. func (s *SetTaskStatusInput) SetTaskId(v string) *SetTaskStatusInput {
  3775. s.TaskId = &v
  3776. return s
  3777. }
  3778. // SetTaskStatus sets the TaskStatus field's value.
  3779. func (s *SetTaskStatusInput) SetTaskStatus(v string) *SetTaskStatusInput {
  3780. s.TaskStatus = &v
  3781. return s
  3782. }
  3783. // Contains the output of SetTaskStatus.
  3784. type SetTaskStatusOutput struct {
  3785. _ struct{} `type:"structure"`
  3786. }
  3787. // String returns the string representation
  3788. func (s SetTaskStatusOutput) String() string {
  3789. return awsutil.Prettify(s)
  3790. }
  3791. // GoString returns the string representation
  3792. func (s SetTaskStatusOutput) GoString() string {
  3793. return s.String()
  3794. }
  3795. // Tags are key/value pairs defined by a user and associated with a pipeline
  3796. // to control access. AWS Data Pipeline allows you to associate ten tags per
  3797. // pipeline. For more information, see Controlling User Access to Pipelines
  3798. // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  3799. // in the AWS Data Pipeline Developer Guide.
  3800. type Tag struct {
  3801. _ struct{} `type:"structure"`
  3802. // The key name of a tag defined by a user. For more information, see Controlling
  3803. // User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  3804. // in the AWS Data Pipeline Developer Guide.
  3805. //
  3806. // Key is a required field
  3807. Key *string `locationName:"key" min:"1" type:"string" required:"true"`
  3808. // The optional value portion of a tag defined by a user. For more information,
  3809. // see Controlling User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
  3810. // in the AWS Data Pipeline Developer Guide.
  3811. //
  3812. // Value is a required field
  3813. Value *string `locationName:"value" type:"string" required:"true"`
  3814. }
  3815. // String returns the string representation
  3816. func (s Tag) String() string {
  3817. return awsutil.Prettify(s)
  3818. }
  3819. // GoString returns the string representation
  3820. func (s Tag) GoString() string {
  3821. return s.String()
  3822. }
  3823. // Validate inspects the fields of the type to determine if they are valid.
  3824. func (s *Tag) Validate() error {
  3825. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  3826. if s.Key == nil {
  3827. invalidParams.Add(request.NewErrParamRequired("Key"))
  3828. }
  3829. if s.Key != nil && len(*s.Key) < 1 {
  3830. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  3831. }
  3832. if s.Value == nil {
  3833. invalidParams.Add(request.NewErrParamRequired("Value"))
  3834. }
  3835. if invalidParams.Len() > 0 {
  3836. return invalidParams
  3837. }
  3838. return nil
  3839. }
  3840. // SetKey sets the Key field's value.
  3841. func (s *Tag) SetKey(v string) *Tag {
  3842. s.Key = &v
  3843. return s
  3844. }
  3845. // SetValue sets the Value field's value.
  3846. func (s *Tag) SetValue(v string) *Tag {
  3847. s.Value = &v
  3848. return s
  3849. }
  3850. // Contains information about a pipeline task that is assigned to a task runner.
  3851. type TaskObject struct {
  3852. _ struct{} `type:"structure"`
  3853. // The ID of the pipeline task attempt object. AWS Data Pipeline uses this value
  3854. // to track how many times a task is attempted.
  3855. AttemptId *string `locationName:"attemptId" min:"1" type:"string"`
  3856. // Connection information for the location where the task runner will publish
  3857. // the output of the task.
  3858. Objects map[string]*PipelineObject `locationName:"objects" type:"map"`
  3859. // The ID of the pipeline that provided the task.
  3860. PipelineId *string `locationName:"pipelineId" min:"1" type:"string"`
  3861. // An internal identifier for the task. This ID is passed to the SetTaskStatus
  3862. // and ReportTaskProgress actions.
  3863. TaskId *string `locationName:"taskId" min:"1" type:"string"`
  3864. }
  3865. // String returns the string representation
  3866. func (s TaskObject) String() string {
  3867. return awsutil.Prettify(s)
  3868. }
  3869. // GoString returns the string representation
  3870. func (s TaskObject) GoString() string {
  3871. return s.String()
  3872. }
  3873. // SetAttemptId sets the AttemptId field's value.
  3874. func (s *TaskObject) SetAttemptId(v string) *TaskObject {
  3875. s.AttemptId = &v
  3876. return s
  3877. }
  3878. // SetObjects sets the Objects field's value.
  3879. func (s *TaskObject) SetObjects(v map[string]*PipelineObject) *TaskObject {
  3880. s.Objects = v
  3881. return s
  3882. }
  3883. // SetPipelineId sets the PipelineId field's value.
  3884. func (s *TaskObject) SetPipelineId(v string) *TaskObject {
  3885. s.PipelineId = &v
  3886. return s
  3887. }
  3888. // SetTaskId sets the TaskId field's value.
  3889. func (s *TaskObject) SetTaskId(v string) *TaskObject {
  3890. s.TaskId = &v
  3891. return s
  3892. }
  3893. // Contains the parameters for ValidatePipelineDefinition.
  3894. type ValidatePipelineDefinitionInput struct {
  3895. _ struct{} `type:"structure"`
  3896. // The parameter objects used with the pipeline.
  3897. ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
  3898. // The parameter values used with the pipeline.
  3899. ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
  3900. // The ID of the pipeline.
  3901. //
  3902. // PipelineId is a required field
  3903. PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
  3904. // The objects that define the pipeline changes to validate against the pipeline.
  3905. //
  3906. // PipelineObjects is a required field
  3907. PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
  3908. }
  3909. // String returns the string representation
  3910. func (s ValidatePipelineDefinitionInput) String() string {
  3911. return awsutil.Prettify(s)
  3912. }
  3913. // GoString returns the string representation
  3914. func (s ValidatePipelineDefinitionInput) GoString() string {
  3915. return s.String()
  3916. }
  3917. // Validate inspects the fields of the type to determine if they are valid.
  3918. func (s *ValidatePipelineDefinitionInput) Validate() error {
  3919. invalidParams := request.ErrInvalidParams{Context: "ValidatePipelineDefinitionInput"}
  3920. if s.PipelineId == nil {
  3921. invalidParams.Add(request.NewErrParamRequired("PipelineId"))
  3922. }
  3923. if s.PipelineId != nil && len(*s.PipelineId) < 1 {
  3924. invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
  3925. }
  3926. if s.PipelineObjects == nil {
  3927. invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
  3928. }
  3929. if s.ParameterObjects != nil {
  3930. for i, v := range s.ParameterObjects {
  3931. if v == nil {
  3932. continue
  3933. }
  3934. if err := v.Validate(); err != nil {
  3935. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
  3936. }
  3937. }
  3938. }
  3939. if s.ParameterValues != nil {
  3940. for i, v := range s.ParameterValues {
  3941. if v == nil {
  3942. continue
  3943. }
  3944. if err := v.Validate(); err != nil {
  3945. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
  3946. }
  3947. }
  3948. }
  3949. if s.PipelineObjects != nil {
  3950. for i, v := range s.PipelineObjects {
  3951. if v == nil {
  3952. continue
  3953. }
  3954. if err := v.Validate(); err != nil {
  3955. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
  3956. }
  3957. }
  3958. }
  3959. if invalidParams.Len() > 0 {
  3960. return invalidParams
  3961. }
  3962. return nil
  3963. }
  3964. // SetParameterObjects sets the ParameterObjects field's value.
  3965. func (s *ValidatePipelineDefinitionInput) SetParameterObjects(v []*ParameterObject) *ValidatePipelineDefinitionInput {
  3966. s.ParameterObjects = v
  3967. return s
  3968. }
  3969. // SetParameterValues sets the ParameterValues field's value.
  3970. func (s *ValidatePipelineDefinitionInput) SetParameterValues(v []*ParameterValue) *ValidatePipelineDefinitionInput {
  3971. s.ParameterValues = v
  3972. return s
  3973. }
  3974. // SetPipelineId sets the PipelineId field's value.
  3975. func (s *ValidatePipelineDefinitionInput) SetPipelineId(v string) *ValidatePipelineDefinitionInput {
  3976. s.PipelineId = &v
  3977. return s
  3978. }
  3979. // SetPipelineObjects sets the PipelineObjects field's value.
  3980. func (s *ValidatePipelineDefinitionInput) SetPipelineObjects(v []*PipelineObject) *ValidatePipelineDefinitionInput {
  3981. s.PipelineObjects = v
  3982. return s
  3983. }
  3984. // Contains the output of ValidatePipelineDefinition.
  3985. type ValidatePipelineDefinitionOutput struct {
  3986. _ struct{} `type:"structure"`
  3987. // Indicates whether there were validation errors.
  3988. //
  3989. // Errored is a required field
  3990. Errored *bool `locationName:"errored" type:"boolean" required:"true"`
  3991. // Any validation errors that were found.
  3992. ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
  3993. // Any validation warnings that were found.
  3994. ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
  3995. }
  3996. // String returns the string representation
  3997. func (s ValidatePipelineDefinitionOutput) String() string {
  3998. return awsutil.Prettify(s)
  3999. }
  4000. // GoString returns the string representation
  4001. func (s ValidatePipelineDefinitionOutput) GoString() string {
  4002. return s.String()
  4003. }
  4004. // SetErrored sets the Errored field's value.
  4005. func (s *ValidatePipelineDefinitionOutput) SetErrored(v bool) *ValidatePipelineDefinitionOutput {
  4006. s.Errored = &v
  4007. return s
  4008. }
  4009. // SetValidationErrors sets the ValidationErrors field's value.
  4010. func (s *ValidatePipelineDefinitionOutput) SetValidationErrors(v []*ValidationError) *ValidatePipelineDefinitionOutput {
  4011. s.ValidationErrors = v
  4012. return s
  4013. }
  4014. // SetValidationWarnings sets the ValidationWarnings field's value.
  4015. func (s *ValidatePipelineDefinitionOutput) SetValidationWarnings(v []*ValidationWarning) *ValidatePipelineDefinitionOutput {
  4016. s.ValidationWarnings = v
  4017. return s
  4018. }
  4019. // Defines a validation error. Validation errors prevent pipeline activation.
  4020. // The set of validation errors that can be returned are defined by AWS Data
  4021. // Pipeline.
  4022. type ValidationError struct {
  4023. _ struct{} `type:"structure"`
  4024. // A description of the validation error.
  4025. Errors []*string `locationName:"errors" type:"list"`
  4026. // The identifier of the object that contains the validation error.
  4027. Id *string `locationName:"id" min:"1" type:"string"`
  4028. }
  4029. // String returns the string representation
  4030. func (s ValidationError) String() string {
  4031. return awsutil.Prettify(s)
  4032. }
  4033. // GoString returns the string representation
  4034. func (s ValidationError) GoString() string {
  4035. return s.String()
  4036. }
  4037. // SetErrors sets the Errors field's value.
  4038. func (s *ValidationError) SetErrors(v []*string) *ValidationError {
  4039. s.Errors = v
  4040. return s
  4041. }
  4042. // SetId sets the Id field's value.
  4043. func (s *ValidationError) SetId(v string) *ValidationError {
  4044. s.Id = &v
  4045. return s
  4046. }
  4047. // Defines a validation warning. Validation warnings do not prevent pipeline
  4048. // activation. The set of validation warnings that can be returned are defined
  4049. // by AWS Data Pipeline.
  4050. type ValidationWarning struct {
  4051. _ struct{} `type:"structure"`
  4052. // The identifier of the object that contains the validation warning.
  4053. Id *string `locationName:"id" min:"1" type:"string"`
  4054. // A description of the validation warning.
  4055. Warnings []*string `locationName:"warnings" type:"list"`
  4056. }
  4057. // String returns the string representation
  4058. func (s ValidationWarning) String() string {
  4059. return awsutil.Prettify(s)
  4060. }
  4061. // GoString returns the string representation
  4062. func (s ValidationWarning) GoString() string {
  4063. return s.String()
  4064. }
  4065. // SetId sets the Id field's value.
  4066. func (s *ValidationWarning) SetId(v string) *ValidationWarning {
  4067. s.Id = &v
  4068. return s
  4069. }
  4070. // SetWarnings sets the Warnings field's value.
  4071. func (s *ValidationWarning) SetWarnings(v []*string) *ValidationWarning {
  4072. s.Warnings = v
  4073. return s
  4074. }
  4075. const (
  4076. // OperatorTypeEq is a OperatorType enum value
  4077. OperatorTypeEq = "EQ"
  4078. // OperatorTypeRefEq is a OperatorType enum value
  4079. OperatorTypeRefEq = "REF_EQ"
  4080. // OperatorTypeLe is a OperatorType enum value
  4081. OperatorTypeLe = "LE"
  4082. // OperatorTypeGe is a OperatorType enum value
  4083. OperatorTypeGe = "GE"
  4084. // OperatorTypeBetween is a OperatorType enum value
  4085. OperatorTypeBetween = "BETWEEN"
  4086. )
  4087. const (
  4088. // TaskStatusFinished is a TaskStatus enum value
  4089. TaskStatusFinished = "FINISHED"
  4090. // TaskStatusFailed is a TaskStatus enum value
  4091. TaskStatusFailed = "FAILED"
  4092. // TaskStatusFalse is a TaskStatus enum value
  4093. TaskStatusFalse = "FALSE"
  4094. )