1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package datapipeline
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opActivatePipeline = "ActivatePipeline"
- // ActivatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the ActivatePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ActivatePipeline for more information on using the ActivatePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ActivatePipelineRequest method.
- // req, resp := client.ActivatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipeline
- func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (req *request.Request, output *ActivatePipelineOutput) {
- op := &request.Operation{
- Name: opActivatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ActivatePipelineInput{}
- }
- output = &ActivatePipelineOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // ActivatePipeline API operation for AWS Data Pipeline.
- //
- // Validates the specified pipeline and starts processing pipeline tasks. If
- // the pipeline does not pass validation, activation fails.
- //
- // If you need to pause the pipeline to investigate an issue with a component,
- // such as a data source or script, call DeactivatePipeline.
- //
- // To activate a finished pipeline, modify the end date for the pipeline and
- // then activate it.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation ActivatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ActivatePipeline
- func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (*ActivatePipelineOutput, error) {
- req, out := c.ActivatePipelineRequest(input)
- return out, req.Send()
- }
- // ActivatePipelineWithContext is the same as ActivatePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ActivatePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) ActivatePipelineWithContext(ctx aws.Context, input *ActivatePipelineInput, opts ...request.Option) (*ActivatePipelineOutput, error) {
- req, out := c.ActivatePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opAddTags = "AddTags"
- // AddTagsRequest generates a "aws/request.Request" representing the
- // client's request for the AddTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See AddTags for more information on using the AddTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the AddTagsRequest method.
- // req, resp := client.AddTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags
- func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *request.Request, output *AddTagsOutput) {
- op := &request.Operation{
- Name: opAddTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddTagsInput{}
- }
- output = &AddTagsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // AddTags API operation for AWS Data Pipeline.
- //
- // Adds or modifies tags for the specified pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation AddTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/AddTags
- func (c *DataPipeline) AddTags(input *AddTagsInput) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- return out, req.Send()
- }
- // AddTagsWithContext is the same as AddTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See AddTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) AddTagsWithContext(ctx aws.Context, input *AddTagsInput, opts ...request.Option) (*AddTagsOutput, error) {
- req, out := c.AddTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreatePipeline = "CreatePipeline"
- // CreatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the CreatePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreatePipeline for more information on using the CreatePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreatePipelineRequest method.
- // req, resp := client.CreatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipeline
- func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *request.Request, output *CreatePipelineOutput) {
- op := &request.Operation{
- Name: opCreatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreatePipelineInput{}
- }
- output = &CreatePipelineOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreatePipeline API operation for AWS Data Pipeline.
- //
- // Creates a new, empty pipeline. Use PutPipelineDefinition to populate the
- // pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation CreatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/CreatePipeline
- func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- return out, req.Send()
- }
- // CreatePipelineWithContext is the same as CreatePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreatePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) CreatePipelineWithContext(ctx aws.Context, input *CreatePipelineInput, opts ...request.Option) (*CreatePipelineOutput, error) {
- req, out := c.CreatePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeactivatePipeline = "DeactivatePipeline"
- // DeactivatePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DeactivatePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeactivatePipeline for more information on using the DeactivatePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeactivatePipelineRequest method.
- // req, resp := client.DeactivatePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipeline
- func (c *DataPipeline) DeactivatePipelineRequest(input *DeactivatePipelineInput) (req *request.Request, output *DeactivatePipelineOutput) {
- op := &request.Operation{
- Name: opDeactivatePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeactivatePipelineInput{}
- }
- output = &DeactivatePipelineOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeactivatePipeline API operation for AWS Data Pipeline.
- //
- // Deactivates the specified running pipeline. The pipeline is set to the DEACTIVATING
- // state until the deactivation process completes.
- //
- // To resume a deactivated pipeline, use ActivatePipeline. By default, the pipeline
- // resumes from the last completed execution. Optionally, you can specify the
- // date and time to resume the pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation DeactivatePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeactivatePipeline
- func (c *DataPipeline) DeactivatePipeline(input *DeactivatePipelineInput) (*DeactivatePipelineOutput, error) {
- req, out := c.DeactivatePipelineRequest(input)
- return out, req.Send()
- }
- // DeactivatePipelineWithContext is the same as DeactivatePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeactivatePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) DeactivatePipelineWithContext(ctx aws.Context, input *DeactivatePipelineInput, opts ...request.Option) (*DeactivatePipelineOutput, error) {
- req, out := c.DeactivatePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeletePipeline = "DeletePipeline"
- // DeletePipelineRequest generates a "aws/request.Request" representing the
- // client's request for the DeletePipeline operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeletePipeline for more information on using the DeletePipeline
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeletePipelineRequest method.
- // req, resp := client.DeletePipelineRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipeline
- func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *request.Request, output *DeletePipelineOutput) {
- op := &request.Operation{
- Name: opDeletePipeline,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeletePipelineInput{}
- }
- output = &DeletePipelineOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeletePipeline API operation for AWS Data Pipeline.
- //
- // Deletes a pipeline, its pipeline definition, and its run history. AWS Data
- // Pipeline attempts to cancel instances associated with the pipeline that are
- // currently being processed by task runners.
- //
- // Deleting a pipeline cannot be undone. You cannot query or restore a deleted
- // pipeline. To temporarily pause a pipeline instead of deleting it, call SetStatus
- // with the status set to PAUSE on individual components. Components that are
- // paused by SetStatus can be resumed.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation DeletePipeline for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DeletePipeline
- func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- return out, req.Send()
- }
- // DeletePipelineWithContext is the same as DeletePipeline with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeletePipeline for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) DeletePipelineWithContext(ctx aws.Context, input *DeletePipelineInput, opts ...request.Option) (*DeletePipelineOutput, error) {
- req, out := c.DeletePipelineRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDescribeObjects = "DescribeObjects"
- // DescribeObjectsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeObjects operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribeObjects for more information on using the DescribeObjects
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribeObjectsRequest method.
- // req, resp := client.DescribeObjectsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjects
- func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req *request.Request, output *DescribeObjectsOutput) {
- op := &request.Operation{
- Name: opDescribeObjects,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"marker"},
- OutputTokens: []string{"marker"},
- LimitToken: "",
- TruncationToken: "hasMoreResults",
- },
- }
- if input == nil {
- input = &DescribeObjectsInput{}
- }
- output = &DescribeObjectsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribeObjects API operation for AWS Data Pipeline.
- //
- // Gets the object definitions for a set of objects associated with the pipeline.
- // Object definitions are composed of a set of fields that define the properties
- // of the object.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation DescribeObjects for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribeObjects
- func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (*DescribeObjectsOutput, error) {
- req, out := c.DescribeObjectsRequest(input)
- return out, req.Send()
- }
- // DescribeObjectsWithContext is the same as DescribeObjects with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribeObjects for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) DescribeObjectsWithContext(ctx aws.Context, input *DescribeObjectsInput, opts ...request.Option) (*DescribeObjectsOutput, error) {
- req, out := c.DescribeObjectsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // DescribeObjectsPages iterates over the pages of a DescribeObjects operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See DescribeObjects method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a DescribeObjects operation.
- // pageNum := 0
- // err := client.DescribeObjectsPages(params,
- // func(page *DescribeObjectsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *DataPipeline) DescribeObjectsPages(input *DescribeObjectsInput, fn func(*DescribeObjectsOutput, bool) bool) error {
- return c.DescribeObjectsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // DescribeObjectsPagesWithContext same as DescribeObjectsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) DescribeObjectsPagesWithContext(ctx aws.Context, input *DescribeObjectsInput, fn func(*DescribeObjectsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *DescribeObjectsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.DescribeObjectsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*DescribeObjectsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opDescribePipelines = "DescribePipelines"
- // DescribePipelinesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribePipelines operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DescribePipelines for more information on using the DescribePipelines
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DescribePipelinesRequest method.
- // req, resp := client.DescribePipelinesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelines
- func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) (req *request.Request, output *DescribePipelinesOutput) {
- op := &request.Operation{
- Name: opDescribePipelines,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribePipelinesInput{}
- }
- output = &DescribePipelinesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // DescribePipelines API operation for AWS Data Pipeline.
- //
- // Retrieves metadata about one or more pipelines. The information retrieved
- // includes the name of the pipeline, the pipeline identifier, its current state,
- // and the user account that owns the pipeline. Using account credentials, you
- // can retrieve metadata about pipelines that you or your IAM users have created.
- // If you are using an IAM user account, you can retrieve metadata about only
- // those pipelines for which you have read permissions.
- //
- // To retrieve the full pipeline definition instead of metadata about the pipeline,
- // call GetPipelineDefinition.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation DescribePipelines for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/DescribePipelines
- func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (*DescribePipelinesOutput, error) {
- req, out := c.DescribePipelinesRequest(input)
- return out, req.Send()
- }
- // DescribePipelinesWithContext is the same as DescribePipelines with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DescribePipelines for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) DescribePipelinesWithContext(ctx aws.Context, input *DescribePipelinesInput, opts ...request.Option) (*DescribePipelinesOutput, error) {
- req, out := c.DescribePipelinesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opEvaluateExpression = "EvaluateExpression"
- // EvaluateExpressionRequest generates a "aws/request.Request" representing the
- // client's request for the EvaluateExpression operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See EvaluateExpression for more information on using the EvaluateExpression
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the EvaluateExpressionRequest method.
- // req, resp := client.EvaluateExpressionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression
- func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) (req *request.Request, output *EvaluateExpressionOutput) {
- op := &request.Operation{
- Name: opEvaluateExpression,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &EvaluateExpressionInput{}
- }
- output = &EvaluateExpressionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // EvaluateExpression API operation for AWS Data Pipeline.
- //
- // Task runners call EvaluateExpression to evaluate a string in the context
- // of the specified object. For example, a task runner can evaluate SQL queries
- // stored in Amazon S3.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation EvaluateExpression for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeTaskNotFoundException "TaskNotFoundException"
- // The specified task was not found.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/EvaluateExpression
- func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (*EvaluateExpressionOutput, error) {
- req, out := c.EvaluateExpressionRequest(input)
- return out, req.Send()
- }
- // EvaluateExpressionWithContext is the same as EvaluateExpression with the addition of
- // the ability to pass a context and additional request options.
- //
- // See EvaluateExpression for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) EvaluateExpressionWithContext(ctx aws.Context, input *EvaluateExpressionInput, opts ...request.Option) (*EvaluateExpressionOutput, error) {
- req, out := c.EvaluateExpressionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetPipelineDefinition = "GetPipelineDefinition"
- // GetPipelineDefinitionRequest generates a "aws/request.Request" representing the
- // client's request for the GetPipelineDefinition operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetPipelineDefinition for more information on using the GetPipelineDefinition
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetPipelineDefinitionRequest method.
- // req, resp := client.GetPipelineDefinitionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinition
- func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinitionInput) (req *request.Request, output *GetPipelineDefinitionOutput) {
- op := &request.Operation{
- Name: opGetPipelineDefinition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetPipelineDefinitionInput{}
- }
- output = &GetPipelineDefinitionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetPipelineDefinition API operation for AWS Data Pipeline.
- //
- // Gets the definition of the specified pipeline. You can call GetPipelineDefinition
- // to retrieve the pipeline definition that you provided using PutPipelineDefinition.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation GetPipelineDefinition for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/GetPipelineDefinition
- func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (*GetPipelineDefinitionOutput, error) {
- req, out := c.GetPipelineDefinitionRequest(input)
- return out, req.Send()
- }
- // GetPipelineDefinitionWithContext is the same as GetPipelineDefinition with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetPipelineDefinition for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) GetPipelineDefinitionWithContext(ctx aws.Context, input *GetPipelineDefinitionInput, opts ...request.Option) (*GetPipelineDefinitionOutput, error) {
- req, out := c.GetPipelineDefinitionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListPipelines = "ListPipelines"
- // ListPipelinesRequest generates a "aws/request.Request" representing the
- // client's request for the ListPipelines operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListPipelines for more information on using the ListPipelines
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListPipelinesRequest method.
- // req, resp := client.ListPipelinesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelines
- func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *request.Request, output *ListPipelinesOutput) {
- op := &request.Operation{
- Name: opListPipelines,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"marker"},
- OutputTokens: []string{"marker"},
- LimitToken: "",
- TruncationToken: "hasMoreResults",
- },
- }
- if input == nil {
- input = &ListPipelinesInput{}
- }
- output = &ListPipelinesOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListPipelines API operation for AWS Data Pipeline.
- //
- // Lists the pipeline identifiers for all active pipelines that you have permission
- // to access.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation ListPipelines for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ListPipelines
- func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- return out, req.Send()
- }
- // ListPipelinesWithContext is the same as ListPipelines with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListPipelines for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) ListPipelinesWithContext(ctx aws.Context, input *ListPipelinesInput, opts ...request.Option) (*ListPipelinesOutput, error) {
- req, out := c.ListPipelinesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListPipelinesPages iterates over the pages of a ListPipelines operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListPipelines method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListPipelines operation.
- // pageNum := 0
- // err := client.ListPipelinesPages(params,
- // func(page *ListPipelinesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *DataPipeline) ListPipelinesPages(input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool) error {
- return c.ListPipelinesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListPipelinesPagesWithContext same as ListPipelinesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) ListPipelinesPagesWithContext(ctx aws.Context, input *ListPipelinesInput, fn func(*ListPipelinesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListPipelinesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListPipelinesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*ListPipelinesOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opPollForTask = "PollForTask"
- // PollForTaskRequest generates a "aws/request.Request" representing the
- // client's request for the PollForTask operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PollForTask for more information on using the PollForTask
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PollForTaskRequest method.
- // req, resp := client.PollForTaskRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTask
- func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *request.Request, output *PollForTaskOutput) {
- op := &request.Operation{
- Name: opPollForTask,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PollForTaskInput{}
- }
- output = &PollForTaskOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PollForTask API operation for AWS Data Pipeline.
- //
- // Task runners call PollForTask to receive a task to perform from AWS Data
- // Pipeline. The task runner specifies which tasks it can perform by setting
- // a value for the workerGroup parameter. The task returned can come from any
- // of the pipelines that match the workerGroup value passed in by the task runner
- // and that was launched using the IAM user credentials specified by the task
- // runner.
- //
- // If tasks are ready in the work queue, PollForTask returns a response immediately.
- // If no tasks are available in the queue, PollForTask uses long-polling and
- // holds on to a poll connection for up to a 90 seconds, during which time the
- // first newly scheduled task is handed to the task runner. To accomodate this,
- // set the socket timeout in your task runner to 90 seconds. The task runner
- // should not call PollForTask again on the same workerGroup until it receives
- // a response, and this can take up to 90 seconds.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation PollForTask for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodeTaskNotFoundException "TaskNotFoundException"
- // The specified task was not found.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PollForTask
- func (c *DataPipeline) PollForTask(input *PollForTaskInput) (*PollForTaskOutput, error) {
- req, out := c.PollForTaskRequest(input)
- return out, req.Send()
- }
- // PollForTaskWithContext is the same as PollForTask with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PollForTask for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) PollForTaskWithContext(ctx aws.Context, input *PollForTaskInput, opts ...request.Option) (*PollForTaskOutput, error) {
- req, out := c.PollForTaskRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutPipelineDefinition = "PutPipelineDefinition"
- // PutPipelineDefinitionRequest generates a "aws/request.Request" representing the
- // client's request for the PutPipelineDefinition operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutPipelineDefinition for more information on using the PutPipelineDefinition
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutPipelineDefinitionRequest method.
- // req, resp := client.PutPipelineDefinitionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinition
- func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinitionInput) (req *request.Request, output *PutPipelineDefinitionOutput) {
- op := &request.Operation{
- Name: opPutPipelineDefinition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutPipelineDefinitionInput{}
- }
- output = &PutPipelineDefinitionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // PutPipelineDefinition API operation for AWS Data Pipeline.
- //
- // Adds tasks, schedules, and preconditions to the specified pipeline. You can
- // use PutPipelineDefinition to populate a new pipeline.
- //
- // PutPipelineDefinition also validates the configuration as it adds it to the
- // pipeline. Changes to the pipeline are saved unless one of the following three
- // validation errors exists in the pipeline.
- //
- // An object is missing a name or identifier field.
- // A string or reference field is empty.
- // The number of objects in the pipeline exceeds the maximum allowed objects.
- //
- // The pipeline is in a FINISHED state.
- // Pipeline object definitions are passed to the PutPipelineDefinition action
- // and returned by the GetPipelineDefinition action.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation PutPipelineDefinition for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/PutPipelineDefinition
- func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (*PutPipelineDefinitionOutput, error) {
- req, out := c.PutPipelineDefinitionRequest(input)
- return out, req.Send()
- }
- // PutPipelineDefinitionWithContext is the same as PutPipelineDefinition with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutPipelineDefinition for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) PutPipelineDefinitionWithContext(ctx aws.Context, input *PutPipelineDefinitionInput, opts ...request.Option) (*PutPipelineDefinitionOutput, error) {
- req, out := c.PutPipelineDefinitionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opQueryObjects = "QueryObjects"
- // QueryObjectsRequest generates a "aws/request.Request" representing the
- // client's request for the QueryObjects operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See QueryObjects for more information on using the QueryObjects
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the QueryObjectsRequest method.
- // req, resp := client.QueryObjectsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjects
- func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *request.Request, output *QueryObjectsOutput) {
- op := &request.Operation{
- Name: opQueryObjects,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"marker"},
- OutputTokens: []string{"marker"},
- LimitToken: "limit",
- TruncationToken: "hasMoreResults",
- },
- }
- if input == nil {
- input = &QueryObjectsInput{}
- }
- output = &QueryObjectsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // QueryObjects API operation for AWS Data Pipeline.
- //
- // Queries the specified pipeline for the names of objects that match the specified
- // set of conditions.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation QueryObjects for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/QueryObjects
- func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (*QueryObjectsOutput, error) {
- req, out := c.QueryObjectsRequest(input)
- return out, req.Send()
- }
- // QueryObjectsWithContext is the same as QueryObjects with the addition of
- // the ability to pass a context and additional request options.
- //
- // See QueryObjects for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) QueryObjectsWithContext(ctx aws.Context, input *QueryObjectsInput, opts ...request.Option) (*QueryObjectsOutput, error) {
- req, out := c.QueryObjectsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // QueryObjectsPages iterates over the pages of a QueryObjects operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See QueryObjects method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a QueryObjects operation.
- // pageNum := 0
- // err := client.QueryObjectsPages(params,
- // func(page *QueryObjectsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *DataPipeline) QueryObjectsPages(input *QueryObjectsInput, fn func(*QueryObjectsOutput, bool) bool) error {
- return c.QueryObjectsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // QueryObjectsPagesWithContext same as QueryObjectsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) QueryObjectsPagesWithContext(ctx aws.Context, input *QueryObjectsInput, fn func(*QueryObjectsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *QueryObjectsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.QueryObjectsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*QueryObjectsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opRemoveTags = "RemoveTags"
- // RemoveTagsRequest generates a "aws/request.Request" representing the
- // client's request for the RemoveTags operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See RemoveTags for more information on using the RemoveTags
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the RemoveTagsRequest method.
- // req, resp := client.RemoveTagsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTags
- func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *request.Request, output *RemoveTagsOutput) {
- op := &request.Operation{
- Name: opRemoveTags,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &RemoveTagsInput{}
- }
- output = &RemoveTagsOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // RemoveTags API operation for AWS Data Pipeline.
- //
- // Removes existing tags from the specified pipeline.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation RemoveTags for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/RemoveTags
- func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (*RemoveTagsOutput, error) {
- req, out := c.RemoveTagsRequest(input)
- return out, req.Send()
- }
- // RemoveTagsWithContext is the same as RemoveTags with the addition of
- // the ability to pass a context and additional request options.
- //
- // See RemoveTags for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) RemoveTagsWithContext(ctx aws.Context, input *RemoveTagsInput, opts ...request.Option) (*RemoveTagsOutput, error) {
- req, out := c.RemoveTagsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opReportTaskProgress = "ReportTaskProgress"
- // ReportTaskProgressRequest generates a "aws/request.Request" representing the
- // client's request for the ReportTaskProgress operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ReportTaskProgress for more information on using the ReportTaskProgress
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ReportTaskProgressRequest method.
- // req, resp := client.ReportTaskProgressRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgress
- func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) (req *request.Request, output *ReportTaskProgressOutput) {
- op := &request.Operation{
- Name: opReportTaskProgress,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ReportTaskProgressInput{}
- }
- output = &ReportTaskProgressOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ReportTaskProgress API operation for AWS Data Pipeline.
- //
- // Task runners call ReportTaskProgress when assigned a task to acknowledge
- // that it has the task. If the web service does not receive this acknowledgement
- // within 2 minutes, it assigns the task in a subsequent PollForTask call. After
- // this initial acknowledgement, the task runner only needs to report progress
- // every 15 minutes to maintain its ownership of the task. You can change this
- // reporting time from 15 minutes by specifying a reportProgressTimeout field
- // in your pipeline.
- //
- // If a task runner does not report its status after 5 minutes, AWS Data Pipeline
- // assumes that the task runner is unable to process the task and reassigns
- // the task in a subsequent response to PollForTask. Task runners should call
- // ReportTaskProgress every 60 seconds.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation ReportTaskProgress for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodeTaskNotFoundException "TaskNotFoundException"
- // The specified task was not found.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskProgress
- func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (*ReportTaskProgressOutput, error) {
- req, out := c.ReportTaskProgressRequest(input)
- return out, req.Send()
- }
- // ReportTaskProgressWithContext is the same as ReportTaskProgress with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ReportTaskProgress for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) ReportTaskProgressWithContext(ctx aws.Context, input *ReportTaskProgressInput, opts ...request.Option) (*ReportTaskProgressOutput, error) {
- req, out := c.ReportTaskProgressRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opReportTaskRunnerHeartbeat = "ReportTaskRunnerHeartbeat"
- // ReportTaskRunnerHeartbeatRequest generates a "aws/request.Request" representing the
- // client's request for the ReportTaskRunnerHeartbeat operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ReportTaskRunnerHeartbeat for more information on using the ReportTaskRunnerHeartbeat
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ReportTaskRunnerHeartbeatRequest method.
- // req, resp := client.ReportTaskRunnerHeartbeatRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeat
- func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerHeartbeatInput) (req *request.Request, output *ReportTaskRunnerHeartbeatOutput) {
- op := &request.Operation{
- Name: opReportTaskRunnerHeartbeat,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ReportTaskRunnerHeartbeatInput{}
- }
- output = &ReportTaskRunnerHeartbeatOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ReportTaskRunnerHeartbeat API operation for AWS Data Pipeline.
- //
- // Task runners call ReportTaskRunnerHeartbeat every 15 minutes to indicate
- // that they are operational. If the AWS Data Pipeline Task Runner is launched
- // on a resource managed by AWS Data Pipeline, the web service can use this
- // call to detect when the task runner application has failed and restart a
- // new instance.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation ReportTaskRunnerHeartbeat for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ReportTaskRunnerHeartbeat
- func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (*ReportTaskRunnerHeartbeatOutput, error) {
- req, out := c.ReportTaskRunnerHeartbeatRequest(input)
- return out, req.Send()
- }
- // ReportTaskRunnerHeartbeatWithContext is the same as ReportTaskRunnerHeartbeat with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ReportTaskRunnerHeartbeat for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) ReportTaskRunnerHeartbeatWithContext(ctx aws.Context, input *ReportTaskRunnerHeartbeatInput, opts ...request.Option) (*ReportTaskRunnerHeartbeatOutput, error) {
- req, out := c.ReportTaskRunnerHeartbeatRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetStatus = "SetStatus"
- // SetStatusRequest generates a "aws/request.Request" representing the
- // client's request for the SetStatus operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SetStatus for more information on using the SetStatus
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SetStatusRequest method.
- // req, resp := client.SetStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatus
- func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *request.Request, output *SetStatusOutput) {
- op := &request.Operation{
- Name: opSetStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetStatusInput{}
- }
- output = &SetStatusOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // SetStatus API operation for AWS Data Pipeline.
- //
- // Requests that the status of the specified physical or logical pipeline objects
- // be updated in the specified pipeline. This update might not occur immediately,
- // but is eventually consistent. The status that can be set depends on the type
- // of object (for example, DataNode or Activity). You cannot perform this operation
- // on FINISHED pipelines and attempting to do so returns InvalidRequestException.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation SetStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetStatus
- func (c *DataPipeline) SetStatus(input *SetStatusInput) (*SetStatusOutput, error) {
- req, out := c.SetStatusRequest(input)
- return out, req.Send()
- }
- // SetStatusWithContext is the same as SetStatus with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetStatus for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) SetStatusWithContext(ctx aws.Context, input *SetStatusInput, opts ...request.Option) (*SetStatusOutput, error) {
- req, out := c.SetStatusRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opSetTaskStatus = "SetTaskStatus"
- // SetTaskStatusRequest generates a "aws/request.Request" representing the
- // client's request for the SetTaskStatus operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See SetTaskStatus for more information on using the SetTaskStatus
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the SetTaskStatusRequest method.
- // req, resp := client.SetTaskStatusRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatus
- func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *request.Request, output *SetTaskStatusOutput) {
- op := &request.Operation{
- Name: opSetTaskStatus,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &SetTaskStatusInput{}
- }
- output = &SetTaskStatusOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // SetTaskStatus API operation for AWS Data Pipeline.
- //
- // Task runners call SetTaskStatus to notify AWS Data Pipeline that a task is
- // completed and provide information about the final status. A task runner makes
- // this call regardless of whether the task was sucessful. A task runner does
- // not need to call SetTaskStatus for tasks that are canceled by the web service
- // during a call to ReportTaskProgress.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation SetTaskStatus for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeTaskNotFoundException "TaskNotFoundException"
- // The specified task was not found.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/SetTaskStatus
- func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (*SetTaskStatusOutput, error) {
- req, out := c.SetTaskStatusRequest(input)
- return out, req.Send()
- }
- // SetTaskStatusWithContext is the same as SetTaskStatus with the addition of
- // the ability to pass a context and additional request options.
- //
- // See SetTaskStatus for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) SetTaskStatusWithContext(ctx aws.Context, input *SetTaskStatusInput, opts ...request.Option) (*SetTaskStatusOutput, error) {
- req, out := c.SetTaskStatusRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opValidatePipelineDefinition = "ValidatePipelineDefinition"
- // ValidatePipelineDefinitionRequest generates a "aws/request.Request" representing the
- // client's request for the ValidatePipelineDefinition operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ValidatePipelineDefinition for more information on using the ValidatePipelineDefinition
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ValidatePipelineDefinitionRequest method.
- // req, resp := client.ValidatePipelineDefinitionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinition
- func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipelineDefinitionInput) (req *request.Request, output *ValidatePipelineDefinitionOutput) {
- op := &request.Operation{
- Name: opValidatePipelineDefinition,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ValidatePipelineDefinitionInput{}
- }
- output = &ValidatePipelineDefinitionOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ValidatePipelineDefinition API operation for AWS Data Pipeline.
- //
- // Validates the specified pipeline definition to ensure that it is well formed
- // and can be run without error.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Data Pipeline's
- // API operation ValidatePipelineDefinition for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInternalServiceError "InternalServiceError"
- // An internal service error occurred.
- //
- // * ErrCodeInvalidRequestException "InvalidRequestException"
- // The request was not valid. Verify that your request was properly formatted,
- // that the signature was generated with the correct credentials, and that you
- // haven't exceeded any of the service limits for your account.
- //
- // * ErrCodePipelineNotFoundException "PipelineNotFoundException"
- // The specified pipeline was not found. Verify that you used the correct user
- // and account identifiers.
- //
- // * ErrCodePipelineDeletedException "PipelineDeletedException"
- // The specified pipeline has been deleted.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/datapipeline-2012-10-29/ValidatePipelineDefinition
- func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinitionInput) (*ValidatePipelineDefinitionOutput, error) {
- req, out := c.ValidatePipelineDefinitionRequest(input)
- return out, req.Send()
- }
- // ValidatePipelineDefinitionWithContext is the same as ValidatePipelineDefinition with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ValidatePipelineDefinition for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *DataPipeline) ValidatePipelineDefinitionWithContext(ctx aws.Context, input *ValidatePipelineDefinitionInput, opts ...request.Option) (*ValidatePipelineDefinitionOutput, error) {
- req, out := c.ValidatePipelineDefinitionRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Contains the parameters for ActivatePipeline.
- type ActivatePipelineInput struct {
- _ struct{} `type:"structure"`
- // A list of parameter values to pass to the pipeline at activation.
- ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The date and time to resume the pipeline. By default, the pipeline resumes
- // from the last completed execution.
- StartTimestamp *time.Time `locationName:"startTimestamp" type:"timestamp"`
- }
- // String returns the string representation
- func (s ActivatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActivatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ActivatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ActivatePipelineInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if s.ParameterValues != nil {
- for i, v := range s.ParameterValues {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParameterValues sets the ParameterValues field's value.
- func (s *ActivatePipelineInput) SetParameterValues(v []*ParameterValue) *ActivatePipelineInput {
- s.ParameterValues = v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *ActivatePipelineInput) SetPipelineId(v string) *ActivatePipelineInput {
- s.PipelineId = &v
- return s
- }
- // SetStartTimestamp sets the StartTimestamp field's value.
- func (s *ActivatePipelineInput) SetStartTimestamp(v time.Time) *ActivatePipelineInput {
- s.StartTimestamp = &v
- return s
- }
- // Contains the output of ActivatePipeline.
- type ActivatePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ActivatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ActivatePipelineOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for AddTags.
- type AddTagsInput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The tags to add, as key/value pairs.
- //
- // Tags is a required field
- Tags []*Tag `locationName:"tags" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s AddTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddTagsInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if s.Tags == nil {
- invalidParams.Add(request.NewErrParamRequired("Tags"))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *AddTagsInput) SetPipelineId(v string) *AddTagsInput {
- s.PipelineId = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *AddTagsInput) SetTags(v []*Tag) *AddTagsInput {
- s.Tags = v
- return s
- }
- // Contains the output of AddTags.
- type AddTagsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddTagsOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for CreatePipeline.
- type CreatePipelineInput struct {
- _ struct{} `type:"structure"`
- // The description for the pipeline.
- Description *string `locationName:"description" type:"string"`
- // The name for the pipeline. You can use the same name for multiple pipelines
- // associated with your AWS account, because AWS Data Pipeline assigns each
- // pipeline a unique pipeline identifier.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // A list of tags to associate with the pipeline at creation. Tags let you control
- // access to pipelines. For more information, see Controlling User Access to
- // Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
- // in the AWS Data Pipeline Developer Guide.
- Tags []*Tag `locationName:"tags" type:"list"`
- // A unique identifier. This identifier is not the same as the pipeline identifier
- // assigned by AWS Data Pipeline. You are responsible for defining the format
- // and ensuring the uniqueness of this identifier. You use this parameter to
- // ensure idempotency during repeated calls to CreatePipeline. For example,
- // if the first call to CreatePipeline does not succeed, you can pass in the
- // same unique identifier and pipeline name combination on a subsequent call
- // to CreatePipeline. CreatePipeline ensures that if a pipeline already exists
- // with the same name and unique identifier, a new pipeline is not created.
- // Instead, you'll receive the pipeline identifier from the previous attempt.
- // The uniqueness of the name and unique identifier combination is scoped to
- // the AWS account or IAM user credentials.
- //
- // UniqueId is a required field
- UniqueId *string `locationName:"uniqueId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreatePipelineInput"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.UniqueId == nil {
- invalidParams.Add(request.NewErrParamRequired("UniqueId"))
- }
- if s.UniqueId != nil && len(*s.UniqueId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("UniqueId", 1))
- }
- if s.Tags != nil {
- for i, v := range s.Tags {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *CreatePipelineInput) SetDescription(v string) *CreatePipelineInput {
- s.Description = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreatePipelineInput) SetName(v string) *CreatePipelineInput {
- s.Name = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreatePipelineInput) SetTags(v []*Tag) *CreatePipelineInput {
- s.Tags = v
- return s
- }
- // SetUniqueId sets the UniqueId field's value.
- func (s *CreatePipelineInput) SetUniqueId(v string) *CreatePipelineInput {
- s.UniqueId = &v
- return s
- }
- // Contains the output of CreatePipeline.
- type CreatePipelineOutput struct {
- _ struct{} `type:"structure"`
- // The ID that AWS Data Pipeline assigns the newly created pipeline. For example,
- // df-06372391ZG65EXAMPLE.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreatePipelineOutput) GoString() string {
- return s.String()
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *CreatePipelineOutput) SetPipelineId(v string) *CreatePipelineOutput {
- s.PipelineId = &v
- return s
- }
- // Contains the parameters for DeactivatePipeline.
- type DeactivatePipelineInput struct {
- _ struct{} `type:"structure"`
- // Indicates whether to cancel any running objects. The default is true, which
- // sets the state of any running objects to CANCELED. If this value is false,
- // the pipeline is deactivated after all running objects finish.
- CancelActive *bool `locationName:"cancelActive" type:"boolean"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeactivatePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeactivatePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeactivatePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeactivatePipelineInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetCancelActive sets the CancelActive field's value.
- func (s *DeactivatePipelineInput) SetCancelActive(v bool) *DeactivatePipelineInput {
- s.CancelActive = &v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *DeactivatePipelineInput) SetPipelineId(v string) *DeactivatePipelineInput {
- s.PipelineId = &v
- return s
- }
- // Contains the output of DeactivatePipeline.
- type DeactivatePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeactivatePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeactivatePipelineOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DeletePipeline.
- type DeletePipelineInput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeletePipelineInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeletePipelineInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeletePipelineInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *DeletePipelineInput) SetPipelineId(v string) *DeletePipelineInput {
- s.PipelineId = &v
- return s
- }
- type DeletePipelineOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeletePipelineOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeletePipelineOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for DescribeObjects.
- type DescribeObjectsInput struct {
- _ struct{} `type:"structure"`
- // Indicates whether any expressions in the object should be evaluated when
- // the object descriptions are returned.
- EvaluateExpressions *bool `locationName:"evaluateExpressions" type:"boolean"`
- // The starting point for the results to be returned. For the first call, this
- // value should be empty. As long as there are more results, continue to call
- // DescribeObjects with the marker value from the previous call to retrieve
- // the next set of results.
- Marker *string `locationName:"marker" type:"string"`
- // The IDs of the pipeline objects that contain the definitions to be described.
- // You can pass as many as 25 identifiers in a single call to DescribeObjects.
- //
- // ObjectIds is a required field
- ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
- // The ID of the pipeline that contains the object definitions.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeObjectsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeObjectsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeObjectsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeObjectsInput"}
- if s.ObjectIds == nil {
- invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
- }
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetEvaluateExpressions sets the EvaluateExpressions field's value.
- func (s *DescribeObjectsInput) SetEvaluateExpressions(v bool) *DescribeObjectsInput {
- s.EvaluateExpressions = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeObjectsInput) SetMarker(v string) *DescribeObjectsInput {
- s.Marker = &v
- return s
- }
- // SetObjectIds sets the ObjectIds field's value.
- func (s *DescribeObjectsInput) SetObjectIds(v []*string) *DescribeObjectsInput {
- s.ObjectIds = v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *DescribeObjectsInput) SetPipelineId(v string) *DescribeObjectsInput {
- s.PipelineId = &v
- return s
- }
- // Contains the output of DescribeObjects.
- type DescribeObjectsOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether there are more results to return.
- HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
- // The starting point for the next page of results. To view the next page of
- // results, call DescribeObjects again with this marker value. If the value
- // is null, there are no more results.
- Marker *string `locationName:"marker" type:"string"`
- // An array of object definitions.
- //
- // PipelineObjects is a required field
- PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeObjectsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeObjectsOutput) GoString() string {
- return s.String()
- }
- // SetHasMoreResults sets the HasMoreResults field's value.
- func (s *DescribeObjectsOutput) SetHasMoreResults(v bool) *DescribeObjectsOutput {
- s.HasMoreResults = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *DescribeObjectsOutput) SetMarker(v string) *DescribeObjectsOutput {
- s.Marker = &v
- return s
- }
- // SetPipelineObjects sets the PipelineObjects field's value.
- func (s *DescribeObjectsOutput) SetPipelineObjects(v []*PipelineObject) *DescribeObjectsOutput {
- s.PipelineObjects = v
- return s
- }
- // Contains the parameters for DescribePipelines.
- type DescribePipelinesInput struct {
- _ struct{} `type:"structure"`
- // The IDs of the pipelines to describe. You can pass as many as 25 identifiers
- // in a single call. To obtain pipeline IDs, call ListPipelines.
- //
- // PipelineIds is a required field
- PipelineIds []*string `locationName:"pipelineIds" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribePipelinesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribePipelinesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribePipelinesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribePipelinesInput"}
- if s.PipelineIds == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineIds"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineIds sets the PipelineIds field's value.
- func (s *DescribePipelinesInput) SetPipelineIds(v []*string) *DescribePipelinesInput {
- s.PipelineIds = v
- return s
- }
- // Contains the output of DescribePipelines.
- type DescribePipelinesOutput struct {
- _ struct{} `type:"structure"`
- // An array of descriptions for the specified pipelines.
- //
- // PipelineDescriptionList is a required field
- PipelineDescriptionList []*PipelineDescription `locationName:"pipelineDescriptionList" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribePipelinesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribePipelinesOutput) GoString() string {
- return s.String()
- }
- // SetPipelineDescriptionList sets the PipelineDescriptionList field's value.
- func (s *DescribePipelinesOutput) SetPipelineDescriptionList(v []*PipelineDescription) *DescribePipelinesOutput {
- s.PipelineDescriptionList = v
- return s
- }
- // Contains the parameters for EvaluateExpression.
- type EvaluateExpressionInput struct {
- _ struct{} `type:"structure"`
- // The expression to evaluate.
- //
- // Expression is a required field
- Expression *string `locationName:"expression" type:"string" required:"true"`
- // The ID of the object.
- //
- // ObjectId is a required field
- ObjectId *string `locationName:"objectId" min:"1" type:"string" required:"true"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s EvaluateExpressionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EvaluateExpressionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *EvaluateExpressionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "EvaluateExpressionInput"}
- if s.Expression == nil {
- invalidParams.Add(request.NewErrParamRequired("Expression"))
- }
- if s.ObjectId == nil {
- invalidParams.Add(request.NewErrParamRequired("ObjectId"))
- }
- if s.ObjectId != nil && len(*s.ObjectId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ObjectId", 1))
- }
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetExpression sets the Expression field's value.
- func (s *EvaluateExpressionInput) SetExpression(v string) *EvaluateExpressionInput {
- s.Expression = &v
- return s
- }
- // SetObjectId sets the ObjectId field's value.
- func (s *EvaluateExpressionInput) SetObjectId(v string) *EvaluateExpressionInput {
- s.ObjectId = &v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *EvaluateExpressionInput) SetPipelineId(v string) *EvaluateExpressionInput {
- s.PipelineId = &v
- return s
- }
- // Contains the output of EvaluateExpression.
- type EvaluateExpressionOutput struct {
- _ struct{} `type:"structure"`
- // The evaluated expression.
- //
- // EvaluatedExpression is a required field
- EvaluatedExpression *string `locationName:"evaluatedExpression" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s EvaluateExpressionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s EvaluateExpressionOutput) GoString() string {
- return s.String()
- }
- // SetEvaluatedExpression sets the EvaluatedExpression field's value.
- func (s *EvaluateExpressionOutput) SetEvaluatedExpression(v string) *EvaluateExpressionOutput {
- s.EvaluatedExpression = &v
- return s
- }
- // A key-value pair that describes a property of a pipeline object. The value
- // is specified as either a string value (StringValue) or a reference to another
- // object (RefValue) but not as both.
- type Field struct {
- _ struct{} `type:"structure"`
- // The field identifier.
- //
- // Key is a required field
- Key *string `locationName:"key" min:"1" type:"string" required:"true"`
- // The field value, expressed as the identifier of another object.
- RefValue *string `locationName:"refValue" min:"1" type:"string"`
- // The field value, expressed as a String.
- StringValue *string `locationName:"stringValue" type:"string"`
- }
- // String returns the string representation
- func (s Field) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Field) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Field) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Field"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.RefValue != nil && len(*s.RefValue) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RefValue", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKey sets the Key field's value.
- func (s *Field) SetKey(v string) *Field {
- s.Key = &v
- return s
- }
- // SetRefValue sets the RefValue field's value.
- func (s *Field) SetRefValue(v string) *Field {
- s.RefValue = &v
- return s
- }
- // SetStringValue sets the StringValue field's value.
- func (s *Field) SetStringValue(v string) *Field {
- s.StringValue = &v
- return s
- }
- // Contains the parameters for GetPipelineDefinition.
- type GetPipelineDefinitionInput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The version of the pipeline definition to retrieve. Set this parameter to
- // latest (default) to use the last definition saved to the pipeline or active
- // to use the last definition that was activated.
- Version *string `locationName:"version" type:"string"`
- }
- // String returns the string representation
- func (s GetPipelineDefinitionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineDefinitionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetPipelineDefinitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetPipelineDefinitionInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *GetPipelineDefinitionInput) SetPipelineId(v string) *GetPipelineDefinitionInput {
- s.PipelineId = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *GetPipelineDefinitionInput) SetVersion(v string) *GetPipelineDefinitionInput {
- s.Version = &v
- return s
- }
- // Contains the output of GetPipelineDefinition.
- type GetPipelineDefinitionOutput struct {
- _ struct{} `type:"structure"`
- // The parameter objects used in the pipeline definition.
- ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
- // The parameter values used in the pipeline definition.
- ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
- // The objects defined in the pipeline.
- PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list"`
- }
- // String returns the string representation
- func (s GetPipelineDefinitionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetPipelineDefinitionOutput) GoString() string {
- return s.String()
- }
- // SetParameterObjects sets the ParameterObjects field's value.
- func (s *GetPipelineDefinitionOutput) SetParameterObjects(v []*ParameterObject) *GetPipelineDefinitionOutput {
- s.ParameterObjects = v
- return s
- }
- // SetParameterValues sets the ParameterValues field's value.
- func (s *GetPipelineDefinitionOutput) SetParameterValues(v []*ParameterValue) *GetPipelineDefinitionOutput {
- s.ParameterValues = v
- return s
- }
- // SetPipelineObjects sets the PipelineObjects field's value.
- func (s *GetPipelineDefinitionOutput) SetPipelineObjects(v []*PipelineObject) *GetPipelineDefinitionOutput {
- s.PipelineObjects = v
- return s
- }
- // Identity information for the EC2 instance that is hosting the task runner.
- // You can get this value by calling a metadata URI from the EC2 instance. For
- // more information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
- // in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves
- // that your task runner is running on an EC2 instance, and ensures the proper
- // AWS Data Pipeline service charges are applied to your pipeline.
- type InstanceIdentity struct {
- _ struct{} `type:"structure"`
- // A description of an EC2 instance that is generated when the instance is launched
- // and exposed to the instance via the instance metadata service in the form
- // of a JSON representation of an object.
- Document *string `locationName:"document" type:"string"`
- // A signature which can be used to verify the accuracy and authenticity of
- // the information provided in the instance identity document.
- Signature *string `locationName:"signature" type:"string"`
- }
- // String returns the string representation
- func (s InstanceIdentity) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InstanceIdentity) GoString() string {
- return s.String()
- }
- // SetDocument sets the Document field's value.
- func (s *InstanceIdentity) SetDocument(v string) *InstanceIdentity {
- s.Document = &v
- return s
- }
- // SetSignature sets the Signature field's value.
- func (s *InstanceIdentity) SetSignature(v string) *InstanceIdentity {
- s.Signature = &v
- return s
- }
- // Contains the parameters for ListPipelines.
- type ListPipelinesInput struct {
- _ struct{} `type:"structure"`
- // The starting point for the results to be returned. For the first call, this
- // value should be empty. As long as there are more results, continue to call
- // ListPipelines with the marker value from the previous call to retrieve the
- // next set of results.
- Marker *string `locationName:"marker" type:"string"`
- }
- // String returns the string representation
- func (s ListPipelinesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesInput) GoString() string {
- return s.String()
- }
- // SetMarker sets the Marker field's value.
- func (s *ListPipelinesInput) SetMarker(v string) *ListPipelinesInput {
- s.Marker = &v
- return s
- }
- // Contains the output of ListPipelines.
- type ListPipelinesOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether there are more results that can be obtained by a subsequent
- // call.
- HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
- // The starting point for the next page of results. To view the next page of
- // results, call ListPipelinesOutput again with this marker value. If the value
- // is null, there are no more results.
- Marker *string `locationName:"marker" type:"string"`
- // The pipeline identifiers. If you require additional information about the
- // pipelines, you can use these identifiers to call DescribePipelines and GetPipelineDefinition.
- //
- // PipelineIdList is a required field
- PipelineIdList []*PipelineIdName `locationName:"pipelineIdList" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ListPipelinesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListPipelinesOutput) GoString() string {
- return s.String()
- }
- // SetHasMoreResults sets the HasMoreResults field's value.
- func (s *ListPipelinesOutput) SetHasMoreResults(v bool) *ListPipelinesOutput {
- s.HasMoreResults = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *ListPipelinesOutput) SetMarker(v string) *ListPipelinesOutput {
- s.Marker = &v
- return s
- }
- // SetPipelineIdList sets the PipelineIdList field's value.
- func (s *ListPipelinesOutput) SetPipelineIdList(v []*PipelineIdName) *ListPipelinesOutput {
- s.PipelineIdList = v
- return s
- }
- // Contains a logical operation for comparing the value of a field with a specified
- // value.
- type Operator struct {
- _ struct{} `type:"structure"`
- // The logical operation to be performed: equal (EQ), equal reference (REF_EQ),
- // less than or equal (LE), greater than or equal (GE), or between (BETWEEN).
- // Equal reference (REF_EQ) can be used only with reference fields. The other
- // comparison types can be used only with String fields. The comparison types
- // you can use apply only to certain object fields, as detailed below.
- //
- // The comparison operators EQ and REF_EQ act on the following fields:
- //
- // * name
- // * @sphere
- // * parent
- // * @componentParent
- // * @instanceParent
- // * @status
- // * @scheduledStartTime
- // * @scheduledEndTime
- // * @actualStartTime
- // * @actualEndTime
- // The comparison operators GE, LE, and BETWEEN act on the following fields:
- //
- // * @scheduledStartTime
- // * @scheduledEndTime
- // * @actualStartTime
- // * @actualEndTime
- // Note that fields beginning with the at sign (@) are read-only and set by
- // the web service. When you name fields, you should choose names containing
- // only alpha-numeric values, as symbols may be reserved by AWS Data Pipeline.
- // User-defined fields that you add to a pipeline should prefix their name with
- // the string "my".
- Type *string `locationName:"type" type:"string" enum:"OperatorType"`
- // The value that the actual field value will be compared with.
- Values []*string `locationName:"values" type:"list"`
- }
- // String returns the string representation
- func (s Operator) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Operator) GoString() string {
- return s.String()
- }
- // SetType sets the Type field's value.
- func (s *Operator) SetType(v string) *Operator {
- s.Type = &v
- return s
- }
- // SetValues sets the Values field's value.
- func (s *Operator) SetValues(v []*string) *Operator {
- s.Values = v
- return s
- }
- // The attributes allowed or specified with a parameter object.
- type ParameterAttribute struct {
- _ struct{} `type:"structure"`
- // The field identifier.
- //
- // Key is a required field
- Key *string `locationName:"key" min:"1" type:"string" required:"true"`
- // The field value, expressed as a String.
- //
- // StringValue is a required field
- StringValue *string `locationName:"stringValue" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ParameterAttribute) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ParameterAttribute) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ParameterAttribute) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ParameterAttribute"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.StringValue == nil {
- invalidParams.Add(request.NewErrParamRequired("StringValue"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKey sets the Key field's value.
- func (s *ParameterAttribute) SetKey(v string) *ParameterAttribute {
- s.Key = &v
- return s
- }
- // SetStringValue sets the StringValue field's value.
- func (s *ParameterAttribute) SetStringValue(v string) *ParameterAttribute {
- s.StringValue = &v
- return s
- }
- // Contains information about a parameter object.
- type ParameterObject struct {
- _ struct{} `type:"structure"`
- // The attributes of the parameter object.
- //
- // Attributes is a required field
- Attributes []*ParameterAttribute `locationName:"attributes" type:"list" required:"true"`
- // The ID of the parameter object.
- //
- // Id is a required field
- Id *string `locationName:"id" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ParameterObject) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ParameterObject) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ParameterObject) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ParameterObject"}
- if s.Attributes == nil {
- invalidParams.Add(request.NewErrParamRequired("Attributes"))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if s.Attributes != nil {
- for i, v := range s.Attributes {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Attributes", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAttributes sets the Attributes field's value.
- func (s *ParameterObject) SetAttributes(v []*ParameterAttribute) *ParameterObject {
- s.Attributes = v
- return s
- }
- // SetId sets the Id field's value.
- func (s *ParameterObject) SetId(v string) *ParameterObject {
- s.Id = &v
- return s
- }
- // A value or list of parameter values.
- type ParameterValue struct {
- _ struct{} `type:"structure"`
- // The ID of the parameter value.
- //
- // Id is a required field
- Id *string `locationName:"id" min:"1" type:"string" required:"true"`
- // The field value, expressed as a String.
- //
- // StringValue is a required field
- StringValue *string `locationName:"stringValue" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ParameterValue) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ParameterValue) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ParameterValue) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ParameterValue"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if s.StringValue == nil {
- invalidParams.Add(request.NewErrParamRequired("StringValue"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetId sets the Id field's value.
- func (s *ParameterValue) SetId(v string) *ParameterValue {
- s.Id = &v
- return s
- }
- // SetStringValue sets the StringValue field's value.
- func (s *ParameterValue) SetStringValue(v string) *ParameterValue {
- s.StringValue = &v
- return s
- }
- // Contains pipeline metadata.
- type PipelineDescription struct {
- _ struct{} `type:"structure"`
- // Description of the pipeline.
- Description *string `locationName:"description" type:"string"`
- // A list of read-only fields that contain metadata about the pipeline: @userId,
- // @accountId, and @pipelineState.
- //
- // Fields is a required field
- Fields []*Field `locationName:"fields" type:"list" required:"true"`
- // The name of the pipeline.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- // The pipeline identifier that was assigned by AWS Data Pipeline. This is a
- // string of the form df-297EG78HU43EEXAMPLE.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // A list of tags to associated with a pipeline. Tags let you control access
- // to pipelines. For more information, see Controlling User Access to Pipelines
- // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
- // in the AWS Data Pipeline Developer Guide.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s PipelineDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineDescription) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *PipelineDescription) SetDescription(v string) *PipelineDescription {
- s.Description = &v
- return s
- }
- // SetFields sets the Fields field's value.
- func (s *PipelineDescription) SetFields(v []*Field) *PipelineDescription {
- s.Fields = v
- return s
- }
- // SetName sets the Name field's value.
- func (s *PipelineDescription) SetName(v string) *PipelineDescription {
- s.Name = &v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *PipelineDescription) SetPipelineId(v string) *PipelineDescription {
- s.PipelineId = &v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *PipelineDescription) SetTags(v []*Tag) *PipelineDescription {
- s.Tags = v
- return s
- }
- // Contains the name and identifier of a pipeline.
- type PipelineIdName struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline that was assigned by AWS Data Pipeline. This is a
- // string of the form df-297EG78HU43EEXAMPLE.
- Id *string `locationName:"id" min:"1" type:"string"`
- // The name of the pipeline.
- Name *string `locationName:"name" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s PipelineIdName) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineIdName) GoString() string {
- return s.String()
- }
- // SetId sets the Id field's value.
- func (s *PipelineIdName) SetId(v string) *PipelineIdName {
- s.Id = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *PipelineIdName) SetName(v string) *PipelineIdName {
- s.Name = &v
- return s
- }
- // Contains information about a pipeline object. This can be a logical, physical,
- // or physical attempt pipeline object. The complete set of components of a
- // pipeline defines the pipeline.
- type PipelineObject struct {
- _ struct{} `type:"structure"`
- // Key-value pairs that define the properties of the object.
- //
- // Fields is a required field
- Fields []*Field `locationName:"fields" type:"list" required:"true"`
- // The ID of the object.
- //
- // Id is a required field
- Id *string `locationName:"id" min:"1" type:"string" required:"true"`
- // The name of the object.
- //
- // Name is a required field
- Name *string `locationName:"name" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PipelineObject) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PipelineObject) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PipelineObject) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PipelineObject"}
- if s.Fields == nil {
- invalidParams.Add(request.NewErrParamRequired("Fields"))
- }
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.Fields != nil {
- for i, v := range s.Fields {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFields sets the Fields field's value.
- func (s *PipelineObject) SetFields(v []*Field) *PipelineObject {
- s.Fields = v
- return s
- }
- // SetId sets the Id field's value.
- func (s *PipelineObject) SetId(v string) *PipelineObject {
- s.Id = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *PipelineObject) SetName(v string) *PipelineObject {
- s.Name = &v
- return s
- }
- // Contains the parameters for PollForTask.
- type PollForTaskInput struct {
- _ struct{} `type:"structure"`
- // The public DNS name of the calling task runner.
- Hostname *string `locationName:"hostname" min:"1" type:"string"`
- // Identity information for the EC2 instance that is hosting the task runner.
- // You can get this value from the instance using http://169.254.169.254/latest/meta-data/instance-id.
- // For more information, see Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
- // in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves
- // that your task runner is running on an EC2 instance, and ensures the proper
- // AWS Data Pipeline service charges are applied to your pipeline.
- InstanceIdentity *InstanceIdentity `locationName:"instanceIdentity" type:"structure"`
- // The type of task the task runner is configured to accept and process. The
- // worker group is set as a field on objects in the pipeline when they are created.
- // You can only specify a single value for workerGroup in the call to PollForTask.
- // There are no wildcard values permitted in workerGroup; the string must be
- // an exact, case-sensitive, match.
- //
- // WorkerGroup is a required field
- WorkerGroup *string `locationName:"workerGroup" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s PollForTaskInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForTaskInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PollForTaskInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PollForTaskInput"}
- if s.Hostname != nil && len(*s.Hostname) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
- }
- if s.WorkerGroup == nil {
- invalidParams.Add(request.NewErrParamRequired("WorkerGroup"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHostname sets the Hostname field's value.
- func (s *PollForTaskInput) SetHostname(v string) *PollForTaskInput {
- s.Hostname = &v
- return s
- }
- // SetInstanceIdentity sets the InstanceIdentity field's value.
- func (s *PollForTaskInput) SetInstanceIdentity(v *InstanceIdentity) *PollForTaskInput {
- s.InstanceIdentity = v
- return s
- }
- // SetWorkerGroup sets the WorkerGroup field's value.
- func (s *PollForTaskInput) SetWorkerGroup(v string) *PollForTaskInput {
- s.WorkerGroup = &v
- return s
- }
- // Contains the output of PollForTask.
- type PollForTaskOutput struct {
- _ struct{} `type:"structure"`
- // The information needed to complete the task that is being assigned to the
- // task runner. One of the fields returned in this object is taskId, which contains
- // an identifier for the task being assigned. The calling task runner uses taskId
- // in subsequent calls to ReportTaskProgress and SetTaskStatus.
- TaskObject *TaskObject `locationName:"taskObject" type:"structure"`
- }
- // String returns the string representation
- func (s PollForTaskOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PollForTaskOutput) GoString() string {
- return s.String()
- }
- // SetTaskObject sets the TaskObject field's value.
- func (s *PollForTaskOutput) SetTaskObject(v *TaskObject) *PollForTaskOutput {
- s.TaskObject = v
- return s
- }
- // Contains the parameters for PutPipelineDefinition.
- type PutPipelineDefinitionInput struct {
- _ struct{} `type:"structure"`
- // The parameter objects used with the pipeline.
- ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
- // The parameter values used with the pipeline.
- ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The objects that define the pipeline. These objects overwrite the existing
- // pipeline definition.
- //
- // PipelineObjects is a required field
- PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s PutPipelineDefinitionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutPipelineDefinitionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *PutPipelineDefinitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "PutPipelineDefinitionInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if s.PipelineObjects == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
- }
- if s.ParameterObjects != nil {
- for i, v := range s.ParameterObjects {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.ParameterValues != nil {
- for i, v := range s.ParameterValues {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.PipelineObjects != nil {
- for i, v := range s.PipelineObjects {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParameterObjects sets the ParameterObjects field's value.
- func (s *PutPipelineDefinitionInput) SetParameterObjects(v []*ParameterObject) *PutPipelineDefinitionInput {
- s.ParameterObjects = v
- return s
- }
- // SetParameterValues sets the ParameterValues field's value.
- func (s *PutPipelineDefinitionInput) SetParameterValues(v []*ParameterValue) *PutPipelineDefinitionInput {
- s.ParameterValues = v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *PutPipelineDefinitionInput) SetPipelineId(v string) *PutPipelineDefinitionInput {
- s.PipelineId = &v
- return s
- }
- // SetPipelineObjects sets the PipelineObjects field's value.
- func (s *PutPipelineDefinitionInput) SetPipelineObjects(v []*PipelineObject) *PutPipelineDefinitionInput {
- s.PipelineObjects = v
- return s
- }
- // Contains the output of PutPipelineDefinition.
- type PutPipelineDefinitionOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether there were validation errors, and the pipeline definition
- // is stored but cannot be activated until you correct the pipeline and call
- // PutPipelineDefinition to commit the corrected pipeline.
- //
- // Errored is a required field
- Errored *bool `locationName:"errored" type:"boolean" required:"true"`
- // The validation errors that are associated with the objects defined in pipelineObjects.
- ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
- // The validation warnings that are associated with the objects defined in pipelineObjects.
- ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
- }
- // String returns the string representation
- func (s PutPipelineDefinitionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutPipelineDefinitionOutput) GoString() string {
- return s.String()
- }
- // SetErrored sets the Errored field's value.
- func (s *PutPipelineDefinitionOutput) SetErrored(v bool) *PutPipelineDefinitionOutput {
- s.Errored = &v
- return s
- }
- // SetValidationErrors sets the ValidationErrors field's value.
- func (s *PutPipelineDefinitionOutput) SetValidationErrors(v []*ValidationError) *PutPipelineDefinitionOutput {
- s.ValidationErrors = v
- return s
- }
- // SetValidationWarnings sets the ValidationWarnings field's value.
- func (s *PutPipelineDefinitionOutput) SetValidationWarnings(v []*ValidationWarning) *PutPipelineDefinitionOutput {
- s.ValidationWarnings = v
- return s
- }
- // Defines the query to run against an object.
- type Query struct {
- _ struct{} `type:"structure"`
- // List of selectors that define the query. An object must satisfy all of the
- // selectors to match the query.
- Selectors []*Selector `locationName:"selectors" type:"list"`
- }
- // String returns the string representation
- func (s Query) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Query) GoString() string {
- return s.String()
- }
- // SetSelectors sets the Selectors field's value.
- func (s *Query) SetSelectors(v []*Selector) *Query {
- s.Selectors = v
- return s
- }
- // Contains the parameters for QueryObjects.
- type QueryObjectsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of object names that QueryObjects will return in a single
- // call. The default value is 100.
- Limit *int64 `locationName:"limit" type:"integer"`
- // The starting point for the results to be returned. For the first call, this
- // value should be empty. As long as there are more results, continue to call
- // QueryObjects with the marker value from the previous call to retrieve the
- // next set of results.
- Marker *string `locationName:"marker" type:"string"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The query that defines the objects to be returned. The Query object can contain
- // a maximum of ten selectors. The conditions in the query are limited to top-level
- // String fields in the object. These filters can be applied to components,
- // instances, and attempts.
- Query *Query `locationName:"query" type:"structure"`
- // Indicates whether the query applies to components or instances. The possible
- // values are: COMPONENT, INSTANCE, and ATTEMPT.
- //
- // Sphere is a required field
- Sphere *string `locationName:"sphere" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s QueryObjectsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s QueryObjectsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *QueryObjectsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "QueryObjectsInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if s.Sphere == nil {
- invalidParams.Add(request.NewErrParamRequired("Sphere"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetLimit sets the Limit field's value.
- func (s *QueryObjectsInput) SetLimit(v int64) *QueryObjectsInput {
- s.Limit = &v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *QueryObjectsInput) SetMarker(v string) *QueryObjectsInput {
- s.Marker = &v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *QueryObjectsInput) SetPipelineId(v string) *QueryObjectsInput {
- s.PipelineId = &v
- return s
- }
- // SetQuery sets the Query field's value.
- func (s *QueryObjectsInput) SetQuery(v *Query) *QueryObjectsInput {
- s.Query = v
- return s
- }
- // SetSphere sets the Sphere field's value.
- func (s *QueryObjectsInput) SetSphere(v string) *QueryObjectsInput {
- s.Sphere = &v
- return s
- }
- // Contains the output of QueryObjects.
- type QueryObjectsOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether there are more results that can be obtained by a subsequent
- // call.
- HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
- // The identifiers that match the query selectors.
- Ids []*string `locationName:"ids" type:"list"`
- // The starting point for the next page of results. To view the next page of
- // results, call QueryObjects again with this marker value. If the value is
- // null, there are no more results.
- Marker *string `locationName:"marker" type:"string"`
- }
- // String returns the string representation
- func (s QueryObjectsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s QueryObjectsOutput) GoString() string {
- return s.String()
- }
- // SetHasMoreResults sets the HasMoreResults field's value.
- func (s *QueryObjectsOutput) SetHasMoreResults(v bool) *QueryObjectsOutput {
- s.HasMoreResults = &v
- return s
- }
- // SetIds sets the Ids field's value.
- func (s *QueryObjectsOutput) SetIds(v []*string) *QueryObjectsOutput {
- s.Ids = v
- return s
- }
- // SetMarker sets the Marker field's value.
- func (s *QueryObjectsOutput) SetMarker(v string) *QueryObjectsOutput {
- s.Marker = &v
- return s
- }
- // Contains the parameters for RemoveTags.
- type RemoveTagsInput struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The keys of the tags to remove.
- //
- // TagKeys is a required field
- TagKeys []*string `locationName:"tagKeys" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s RemoveTagsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RemoveTagsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RemoveTagsInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if s.TagKeys == nil {
- invalidParams.Add(request.NewErrParamRequired("TagKeys"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *RemoveTagsInput) SetPipelineId(v string) *RemoveTagsInput {
- s.PipelineId = &v
- return s
- }
- // SetTagKeys sets the TagKeys field's value.
- func (s *RemoveTagsInput) SetTagKeys(v []*string) *RemoveTagsInput {
- s.TagKeys = v
- return s
- }
- // Contains the output of RemoveTags.
- type RemoveTagsOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s RemoveTagsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RemoveTagsOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for ReportTaskProgress.
- type ReportTaskProgressInput struct {
- _ struct{} `type:"structure"`
- // Key-value pairs that define the properties of the ReportTaskProgressInput
- // object.
- Fields []*Field `locationName:"fields" type:"list"`
- // The ID of the task assigned to the task runner. This value is provided in
- // the response for PollForTask.
- //
- // TaskId is a required field
- TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ReportTaskProgressInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReportTaskProgressInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReportTaskProgressInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReportTaskProgressInput"}
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if s.Fields != nil {
- for i, v := range s.Fields {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Fields", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetFields sets the Fields field's value.
- func (s *ReportTaskProgressInput) SetFields(v []*Field) *ReportTaskProgressInput {
- s.Fields = v
- return s
- }
- // SetTaskId sets the TaskId field's value.
- func (s *ReportTaskProgressInput) SetTaskId(v string) *ReportTaskProgressInput {
- s.TaskId = &v
- return s
- }
- // Contains the output of ReportTaskProgress.
- type ReportTaskProgressOutput struct {
- _ struct{} `type:"structure"`
- // If true, the calling task runner should cancel processing of the task. The
- // task runner does not need to call SetTaskStatus for canceled tasks.
- //
- // Canceled is a required field
- Canceled *bool `locationName:"canceled" type:"boolean" required:"true"`
- }
- // String returns the string representation
- func (s ReportTaskProgressOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReportTaskProgressOutput) GoString() string {
- return s.String()
- }
- // SetCanceled sets the Canceled field's value.
- func (s *ReportTaskProgressOutput) SetCanceled(v bool) *ReportTaskProgressOutput {
- s.Canceled = &v
- return s
- }
- // Contains the parameters for ReportTaskRunnerHeartbeat.
- type ReportTaskRunnerHeartbeatInput struct {
- _ struct{} `type:"structure"`
- // The public DNS name of the task runner.
- Hostname *string `locationName:"hostname" min:"1" type:"string"`
- // The ID of the task runner. This value should be unique across your AWS account.
- // In the case of AWS Data Pipeline Task Runner launched on a resource managed
- // by AWS Data Pipeline, the web service provides a unique identifier when it
- // launches the application. If you have written a custom task runner, you should
- // assign a unique identifier for the task runner.
- //
- // TaskrunnerId is a required field
- TaskrunnerId *string `locationName:"taskrunnerId" min:"1" type:"string" required:"true"`
- // The type of task the task runner is configured to accept and process. The
- // worker group is set as a field on objects in the pipeline when they are created.
- // You can only specify a single value for workerGroup. There are no wildcard
- // values permitted in workerGroup; the string must be an exact, case-sensitive,
- // match.
- WorkerGroup *string `locationName:"workerGroup" type:"string"`
- }
- // String returns the string representation
- func (s ReportTaskRunnerHeartbeatInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReportTaskRunnerHeartbeatInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReportTaskRunnerHeartbeatInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReportTaskRunnerHeartbeatInput"}
- if s.Hostname != nil && len(*s.Hostname) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Hostname", 1))
- }
- if s.TaskrunnerId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskrunnerId"))
- }
- if s.TaskrunnerId != nil && len(*s.TaskrunnerId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskrunnerId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetHostname sets the Hostname field's value.
- func (s *ReportTaskRunnerHeartbeatInput) SetHostname(v string) *ReportTaskRunnerHeartbeatInput {
- s.Hostname = &v
- return s
- }
- // SetTaskrunnerId sets the TaskrunnerId field's value.
- func (s *ReportTaskRunnerHeartbeatInput) SetTaskrunnerId(v string) *ReportTaskRunnerHeartbeatInput {
- s.TaskrunnerId = &v
- return s
- }
- // SetWorkerGroup sets the WorkerGroup field's value.
- func (s *ReportTaskRunnerHeartbeatInput) SetWorkerGroup(v string) *ReportTaskRunnerHeartbeatInput {
- s.WorkerGroup = &v
- return s
- }
- // Contains the output of ReportTaskRunnerHeartbeat.
- type ReportTaskRunnerHeartbeatOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether the calling task runner should terminate.
- //
- // Terminate is a required field
- Terminate *bool `locationName:"terminate" type:"boolean" required:"true"`
- }
- // String returns the string representation
- func (s ReportTaskRunnerHeartbeatOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReportTaskRunnerHeartbeatOutput) GoString() string {
- return s.String()
- }
- // SetTerminate sets the Terminate field's value.
- func (s *ReportTaskRunnerHeartbeatOutput) SetTerminate(v bool) *ReportTaskRunnerHeartbeatOutput {
- s.Terminate = &v
- return s
- }
- // A comparision that is used to determine whether a query should return this
- // object.
- type Selector struct {
- _ struct{} `type:"structure"`
- // The name of the field that the operator will be applied to. The field name
- // is the "key" portion of the field definition in the pipeline definition syntax
- // that is used by the AWS Data Pipeline API. If the field is not set on the
- // object, the condition fails.
- FieldName *string `locationName:"fieldName" type:"string"`
- // Contains a logical operation for comparing the value of a field with a specified
- // value.
- Operator *Operator `locationName:"operator" type:"structure"`
- }
- // String returns the string representation
- func (s Selector) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Selector) GoString() string {
- return s.String()
- }
- // SetFieldName sets the FieldName field's value.
- func (s *Selector) SetFieldName(v string) *Selector {
- s.FieldName = &v
- return s
- }
- // SetOperator sets the Operator field's value.
- func (s *Selector) SetOperator(v *Operator) *Selector {
- s.Operator = v
- return s
- }
- // Contains the parameters for SetStatus.
- type SetStatusInput struct {
- _ struct{} `type:"structure"`
- // The IDs of the objects. The corresponding objects can be either physical
- // or components, but not a mix of both types.
- //
- // ObjectIds is a required field
- ObjectIds []*string `locationName:"objectIds" type:"list" required:"true"`
- // The ID of the pipeline that contains the objects.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The status to be set on all the objects specified in objectIds. For components,
- // use PAUSE or RESUME. For instances, use TRY_CANCEL, RERUN, or MARK_FINISHED.
- //
- // Status is a required field
- Status *string `locationName:"status" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s SetStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetStatusInput"}
- if s.ObjectIds == nil {
- invalidParams.Add(request.NewErrParamRequired("ObjectIds"))
- }
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if s.Status == nil {
- invalidParams.Add(request.NewErrParamRequired("Status"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetObjectIds sets the ObjectIds field's value.
- func (s *SetStatusInput) SetObjectIds(v []*string) *SetStatusInput {
- s.ObjectIds = v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *SetStatusInput) SetPipelineId(v string) *SetStatusInput {
- s.PipelineId = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *SetStatusInput) SetStatus(v string) *SetStatusInput {
- s.Status = &v
- return s
- }
- type SetStatusOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetStatusOutput) GoString() string {
- return s.String()
- }
- // Contains the parameters for SetTaskStatus.
- type SetTaskStatusInput struct {
- _ struct{} `type:"structure"`
- // If an error occurred during the task, this value specifies the error code.
- // This value is set on the physical attempt object. It is used to display error
- // information to the user. It should not start with string "Service_" which
- // is reserved by the system.
- ErrorId *string `locationName:"errorId" type:"string"`
- // If an error occurred during the task, this value specifies a text description
- // of the error. This value is set on the physical attempt object. It is used
- // to display error information to the user. The web service does not parse
- // this value.
- ErrorMessage *string `locationName:"errorMessage" type:"string"`
- // If an error occurred during the task, this value specifies the stack trace
- // associated with the error. This value is set on the physical attempt object.
- // It is used to display error information to the user. The web service does
- // not parse this value.
- ErrorStackTrace *string `locationName:"errorStackTrace" type:"string"`
- // The ID of the task assigned to the task runner. This value is provided in
- // the response for PollForTask.
- //
- // TaskId is a required field
- TaskId *string `locationName:"taskId" min:"1" type:"string" required:"true"`
- // If FINISHED, the task successfully completed. If FAILED, the task ended unsuccessfully.
- // Preconditions use false.
- //
- // TaskStatus is a required field
- TaskStatus *string `locationName:"taskStatus" type:"string" required:"true" enum:"TaskStatus"`
- }
- // String returns the string representation
- func (s SetTaskStatusInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetTaskStatusInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SetTaskStatusInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SetTaskStatusInput"}
- if s.TaskId == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskId"))
- }
- if s.TaskId != nil && len(*s.TaskId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TaskId", 1))
- }
- if s.TaskStatus == nil {
- invalidParams.Add(request.NewErrParamRequired("TaskStatus"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetErrorId sets the ErrorId field's value.
- func (s *SetTaskStatusInput) SetErrorId(v string) *SetTaskStatusInput {
- s.ErrorId = &v
- return s
- }
- // SetErrorMessage sets the ErrorMessage field's value.
- func (s *SetTaskStatusInput) SetErrorMessage(v string) *SetTaskStatusInput {
- s.ErrorMessage = &v
- return s
- }
- // SetErrorStackTrace sets the ErrorStackTrace field's value.
- func (s *SetTaskStatusInput) SetErrorStackTrace(v string) *SetTaskStatusInput {
- s.ErrorStackTrace = &v
- return s
- }
- // SetTaskId sets the TaskId field's value.
- func (s *SetTaskStatusInput) SetTaskId(v string) *SetTaskStatusInput {
- s.TaskId = &v
- return s
- }
- // SetTaskStatus sets the TaskStatus field's value.
- func (s *SetTaskStatusInput) SetTaskStatus(v string) *SetTaskStatusInput {
- s.TaskStatus = &v
- return s
- }
- // Contains the output of SetTaskStatus.
- type SetTaskStatusOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s SetTaskStatusOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SetTaskStatusOutput) GoString() string {
- return s.String()
- }
- // Tags are key/value pairs defined by a user and associated with a pipeline
- // to control access. AWS Data Pipeline allows you to associate ten tags per
- // pipeline. For more information, see Controlling User Access to Pipelines
- // (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
- // in the AWS Data Pipeline Developer Guide.
- type Tag struct {
- _ struct{} `type:"structure"`
- // The key name of a tag defined by a user. For more information, see Controlling
- // User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
- // in the AWS Data Pipeline Developer Guide.
- //
- // Key is a required field
- Key *string `locationName:"key" min:"1" type:"string" required:"true"`
- // The optional value portion of a tag defined by a user. For more information,
- // see Controlling User Access to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
- // in the AWS Data Pipeline Developer Guide.
- //
- // Value is a required field
- Value *string `locationName:"value" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Tag) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Tag"}
- if s.Key == nil {
- invalidParams.Add(request.NewErrParamRequired("Key"))
- }
- if s.Key != nil && len(*s.Key) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Key", 1))
- }
- if s.Value == nil {
- invalidParams.Add(request.NewErrParamRequired("Value"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetKey sets the Key field's value.
- func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
- }
- // Contains information about a pipeline task that is assigned to a task runner.
- type TaskObject struct {
- _ struct{} `type:"structure"`
- // The ID of the pipeline task attempt object. AWS Data Pipeline uses this value
- // to track how many times a task is attempted.
- AttemptId *string `locationName:"attemptId" min:"1" type:"string"`
- // Connection information for the location where the task runner will publish
- // the output of the task.
- Objects map[string]*PipelineObject `locationName:"objects" type:"map"`
- // The ID of the pipeline that provided the task.
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string"`
- // An internal identifier for the task. This ID is passed to the SetTaskStatus
- // and ReportTaskProgress actions.
- TaskId *string `locationName:"taskId" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s TaskObject) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TaskObject) GoString() string {
- return s.String()
- }
- // SetAttemptId sets the AttemptId field's value.
- func (s *TaskObject) SetAttemptId(v string) *TaskObject {
- s.AttemptId = &v
- return s
- }
- // SetObjects sets the Objects field's value.
- func (s *TaskObject) SetObjects(v map[string]*PipelineObject) *TaskObject {
- s.Objects = v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *TaskObject) SetPipelineId(v string) *TaskObject {
- s.PipelineId = &v
- return s
- }
- // SetTaskId sets the TaskId field's value.
- func (s *TaskObject) SetTaskId(v string) *TaskObject {
- s.TaskId = &v
- return s
- }
- // Contains the parameters for ValidatePipelineDefinition.
- type ValidatePipelineDefinitionInput struct {
- _ struct{} `type:"structure"`
- // The parameter objects used with the pipeline.
- ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
- // The parameter values used with the pipeline.
- ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
- // The ID of the pipeline.
- //
- // PipelineId is a required field
- PipelineId *string `locationName:"pipelineId" min:"1" type:"string" required:"true"`
- // The objects that define the pipeline changes to validate against the pipeline.
- //
- // PipelineObjects is a required field
- PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
- }
- // String returns the string representation
- func (s ValidatePipelineDefinitionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ValidatePipelineDefinitionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ValidatePipelineDefinitionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ValidatePipelineDefinitionInput"}
- if s.PipelineId == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineId"))
- }
- if s.PipelineId != nil && len(*s.PipelineId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("PipelineId", 1))
- }
- if s.PipelineObjects == nil {
- invalidParams.Add(request.NewErrParamRequired("PipelineObjects"))
- }
- if s.ParameterObjects != nil {
- for i, v := range s.ParameterObjects {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterObjects", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.ParameterValues != nil {
- for i, v := range s.ParameterValues {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ParameterValues", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.PipelineObjects != nil {
- for i, v := range s.PipelineObjects {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "PipelineObjects", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetParameterObjects sets the ParameterObjects field's value.
- func (s *ValidatePipelineDefinitionInput) SetParameterObjects(v []*ParameterObject) *ValidatePipelineDefinitionInput {
- s.ParameterObjects = v
- return s
- }
- // SetParameterValues sets the ParameterValues field's value.
- func (s *ValidatePipelineDefinitionInput) SetParameterValues(v []*ParameterValue) *ValidatePipelineDefinitionInput {
- s.ParameterValues = v
- return s
- }
- // SetPipelineId sets the PipelineId field's value.
- func (s *ValidatePipelineDefinitionInput) SetPipelineId(v string) *ValidatePipelineDefinitionInput {
- s.PipelineId = &v
- return s
- }
- // SetPipelineObjects sets the PipelineObjects field's value.
- func (s *ValidatePipelineDefinitionInput) SetPipelineObjects(v []*PipelineObject) *ValidatePipelineDefinitionInput {
- s.PipelineObjects = v
- return s
- }
- // Contains the output of ValidatePipelineDefinition.
- type ValidatePipelineDefinitionOutput struct {
- _ struct{} `type:"structure"`
- // Indicates whether there were validation errors.
- //
- // Errored is a required field
- Errored *bool `locationName:"errored" type:"boolean" required:"true"`
- // Any validation errors that were found.
- ValidationErrors []*ValidationError `locationName:"validationErrors" type:"list"`
- // Any validation warnings that were found.
- ValidationWarnings []*ValidationWarning `locationName:"validationWarnings" type:"list"`
- }
- // String returns the string representation
- func (s ValidatePipelineDefinitionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ValidatePipelineDefinitionOutput) GoString() string {
- return s.String()
- }
- // SetErrored sets the Errored field's value.
- func (s *ValidatePipelineDefinitionOutput) SetErrored(v bool) *ValidatePipelineDefinitionOutput {
- s.Errored = &v
- return s
- }
- // SetValidationErrors sets the ValidationErrors field's value.
- func (s *ValidatePipelineDefinitionOutput) SetValidationErrors(v []*ValidationError) *ValidatePipelineDefinitionOutput {
- s.ValidationErrors = v
- return s
- }
- // SetValidationWarnings sets the ValidationWarnings field's value.
- func (s *ValidatePipelineDefinitionOutput) SetValidationWarnings(v []*ValidationWarning) *ValidatePipelineDefinitionOutput {
- s.ValidationWarnings = v
- return s
- }
- // Defines a validation error. Validation errors prevent pipeline activation.
- // The set of validation errors that can be returned are defined by AWS Data
- // Pipeline.
- type ValidationError struct {
- _ struct{} `type:"structure"`
- // A description of the validation error.
- Errors []*string `locationName:"errors" type:"list"`
- // The identifier of the object that contains the validation error.
- Id *string `locationName:"id" min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ValidationError) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ValidationError) GoString() string {
- return s.String()
- }
- // SetErrors sets the Errors field's value.
- func (s *ValidationError) SetErrors(v []*string) *ValidationError {
- s.Errors = v
- return s
- }
- // SetId sets the Id field's value.
- func (s *ValidationError) SetId(v string) *ValidationError {
- s.Id = &v
- return s
- }
- // Defines a validation warning. Validation warnings do not prevent pipeline
- // activation. The set of validation warnings that can be returned are defined
- // by AWS Data Pipeline.
- type ValidationWarning struct {
- _ struct{} `type:"structure"`
- // The identifier of the object that contains the validation warning.
- Id *string `locationName:"id" min:"1" type:"string"`
- // A description of the validation warning.
- Warnings []*string `locationName:"warnings" type:"list"`
- }
- // String returns the string representation
- func (s ValidationWarning) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ValidationWarning) GoString() string {
- return s.String()
- }
- // SetId sets the Id field's value.
- func (s *ValidationWarning) SetId(v string) *ValidationWarning {
- s.Id = &v
- return s
- }
- // SetWarnings sets the Warnings field's value.
- func (s *ValidationWarning) SetWarnings(v []*string) *ValidationWarning {
- s.Warnings = v
- return s
- }
- const (
- // OperatorTypeEq is a OperatorType enum value
- OperatorTypeEq = "EQ"
- // OperatorTypeRefEq is a OperatorType enum value
- OperatorTypeRefEq = "REF_EQ"
- // OperatorTypeLe is a OperatorType enum value
- OperatorTypeLe = "LE"
- // OperatorTypeGe is a OperatorType enum value
- OperatorTypeGe = "GE"
- // OperatorTypeBetween is a OperatorType enum value
- OperatorTypeBetween = "BETWEEN"
- )
- const (
- // TaskStatusFinished is a TaskStatus enum value
- TaskStatusFinished = "FINISHED"
- // TaskStatusFailed is a TaskStatus enum value
- TaskStatusFailed = "FAILED"
- // TaskStatusFalse is a TaskStatus enum value
- TaskStatusFalse = "FALSE"
- )
|