api.go 217 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package applicationdiscoveryservice
  3. import (
  4. "fmt"
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opAssociateConfigurationItemsToApplication = "AssociateConfigurationItemsToApplication"
  13. // AssociateConfigurationItemsToApplicationRequest generates a "aws/request.Request" representing the
  14. // client's request for the AssociateConfigurationItemsToApplication operation. The "output" return
  15. // value will be populated with the request's response once the request completes
  16. // successfully.
  17. //
  18. // Use "Send" method on the returned Request to send the API call to the service.
  19. // the "output" return value is not valid until after Send returns without error.
  20. //
  21. // See AssociateConfigurationItemsToApplication for more information on using the AssociateConfigurationItemsToApplication
  22. // API call, and error handling.
  23. //
  24. // This method is useful when you want to inject custom logic or configuration
  25. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  26. //
  27. //
  28. // // Example sending a request using the AssociateConfigurationItemsToApplicationRequest method.
  29. // req, resp := client.AssociateConfigurationItemsToApplicationRequest(params)
  30. //
  31. // err := req.Send()
  32. // if err == nil { // resp is now filled
  33. // fmt.Println(resp)
  34. // }
  35. //
  36. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
  37. func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationRequest(input *AssociateConfigurationItemsToApplicationInput) (req *request.Request, output *AssociateConfigurationItemsToApplicationOutput) {
  38. op := &request.Operation{
  39. Name: opAssociateConfigurationItemsToApplication,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &AssociateConfigurationItemsToApplicationInput{}
  45. }
  46. output = &AssociateConfigurationItemsToApplicationOutput{}
  47. req = c.newRequest(op, input, output)
  48. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  49. return
  50. }
  51. // AssociateConfigurationItemsToApplication API operation for AWS Application Discovery Service.
  52. //
  53. // Associates one or more configuration items with an application.
  54. //
  55. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  56. // with awserr.Error's Code and Message methods to get detailed information about
  57. // the error.
  58. //
  59. // See the AWS API reference guide for AWS Application Discovery Service's
  60. // API operation AssociateConfigurationItemsToApplication for usage and error information.
  61. //
  62. // Returned Error Codes:
  63. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  64. // The AWS user account does not have permission to perform the action. Check
  65. // the IAM policy associated with this account.
  66. //
  67. // * ErrCodeInvalidParameterException "InvalidParameterException"
  68. // One or more parameters are not valid. Verify the parameters and try again.
  69. //
  70. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  71. // The value of one or more parameters are either invalid or out of range. Verify
  72. // the parameter values and try again.
  73. //
  74. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  75. // The server experienced an internal error. Try again.
  76. //
  77. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/AssociateConfigurationItemsToApplication
  78. func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplication(input *AssociateConfigurationItemsToApplicationInput) (*AssociateConfigurationItemsToApplicationOutput, error) {
  79. req, out := c.AssociateConfigurationItemsToApplicationRequest(input)
  80. return out, req.Send()
  81. }
  82. // AssociateConfigurationItemsToApplicationWithContext is the same as AssociateConfigurationItemsToApplication with the addition of
  83. // the ability to pass a context and additional request options.
  84. //
  85. // See AssociateConfigurationItemsToApplication for details on how to use this API operation.
  86. //
  87. // The context must be non-nil and will be used for request cancellation. If
  88. // the context is nil a panic will occur. In the future the SDK may create
  89. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  90. // for more information on using Contexts.
  91. func (c *ApplicationDiscoveryService) AssociateConfigurationItemsToApplicationWithContext(ctx aws.Context, input *AssociateConfigurationItemsToApplicationInput, opts ...request.Option) (*AssociateConfigurationItemsToApplicationOutput, error) {
  92. req, out := c.AssociateConfigurationItemsToApplicationRequest(input)
  93. req.SetContext(ctx)
  94. req.ApplyOptions(opts...)
  95. return out, req.Send()
  96. }
  97. const opBatchDeleteImportData = "BatchDeleteImportData"
  98. // BatchDeleteImportDataRequest generates a "aws/request.Request" representing the
  99. // client's request for the BatchDeleteImportData operation. The "output" return
  100. // value will be populated with the request's response once the request completes
  101. // successfully.
  102. //
  103. // Use "Send" method on the returned Request to send the API call to the service.
  104. // the "output" return value is not valid until after Send returns without error.
  105. //
  106. // See BatchDeleteImportData for more information on using the BatchDeleteImportData
  107. // API call, and error handling.
  108. //
  109. // This method is useful when you want to inject custom logic or configuration
  110. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  111. //
  112. //
  113. // // Example sending a request using the BatchDeleteImportDataRequest method.
  114. // req, resp := client.BatchDeleteImportDataRequest(params)
  115. //
  116. // err := req.Send()
  117. // if err == nil { // resp is now filled
  118. // fmt.Println(resp)
  119. // }
  120. //
  121. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData
  122. func (c *ApplicationDiscoveryService) BatchDeleteImportDataRequest(input *BatchDeleteImportDataInput) (req *request.Request, output *BatchDeleteImportDataOutput) {
  123. op := &request.Operation{
  124. Name: opBatchDeleteImportData,
  125. HTTPMethod: "POST",
  126. HTTPPath: "/",
  127. }
  128. if input == nil {
  129. input = &BatchDeleteImportDataInput{}
  130. }
  131. output = &BatchDeleteImportDataOutput{}
  132. req = c.newRequest(op, input, output)
  133. return
  134. }
  135. // BatchDeleteImportData API operation for AWS Application Discovery Service.
  136. //
  137. // Deletes one or more import tasks, each identified by their import ID. Each
  138. // import task has a number of records that can identify servers or applications.
  139. //
  140. // AWS Application Discovery Service has built-in matching logic that will identify
  141. // when discovered servers match existing entries that you've previously discovered,
  142. // the information for the already-existing discovered server is updated. When
  143. // you delete an import task that contains records that were used to match,
  144. // the information in those matched records that comes from the deleted records
  145. // will also be deleted.
  146. //
  147. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  148. // with awserr.Error's Code and Message methods to get detailed information about
  149. // the error.
  150. //
  151. // See the AWS API reference guide for AWS Application Discovery Service's
  152. // API operation BatchDeleteImportData for usage and error information.
  153. //
  154. // Returned Error Codes:
  155. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  156. // The AWS user account does not have permission to perform the action. Check
  157. // the IAM policy associated with this account.
  158. //
  159. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  160. // The value of one or more parameters are either invalid or out of range. Verify
  161. // the parameter values and try again.
  162. //
  163. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  164. // The server experienced an internal error. Try again.
  165. //
  166. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/BatchDeleteImportData
  167. func (c *ApplicationDiscoveryService) BatchDeleteImportData(input *BatchDeleteImportDataInput) (*BatchDeleteImportDataOutput, error) {
  168. req, out := c.BatchDeleteImportDataRequest(input)
  169. return out, req.Send()
  170. }
  171. // BatchDeleteImportDataWithContext is the same as BatchDeleteImportData with the addition of
  172. // the ability to pass a context and additional request options.
  173. //
  174. // See BatchDeleteImportData for details on how to use this API operation.
  175. //
  176. // The context must be non-nil and will be used for request cancellation. If
  177. // the context is nil a panic will occur. In the future the SDK may create
  178. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  179. // for more information on using Contexts.
  180. func (c *ApplicationDiscoveryService) BatchDeleteImportDataWithContext(ctx aws.Context, input *BatchDeleteImportDataInput, opts ...request.Option) (*BatchDeleteImportDataOutput, error) {
  181. req, out := c.BatchDeleteImportDataRequest(input)
  182. req.SetContext(ctx)
  183. req.ApplyOptions(opts...)
  184. return out, req.Send()
  185. }
  186. const opCreateApplication = "CreateApplication"
  187. // CreateApplicationRequest generates a "aws/request.Request" representing the
  188. // client's request for the CreateApplication operation. The "output" return
  189. // value will be populated with the request's response once the request completes
  190. // successfully.
  191. //
  192. // Use "Send" method on the returned Request to send the API call to the service.
  193. // the "output" return value is not valid until after Send returns without error.
  194. //
  195. // See CreateApplication for more information on using the CreateApplication
  196. // API call, and error handling.
  197. //
  198. // This method is useful when you want to inject custom logic or configuration
  199. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  200. //
  201. //
  202. // // Example sending a request using the CreateApplicationRequest method.
  203. // req, resp := client.CreateApplicationRequest(params)
  204. //
  205. // err := req.Send()
  206. // if err == nil { // resp is now filled
  207. // fmt.Println(resp)
  208. // }
  209. //
  210. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
  211. func (c *ApplicationDiscoveryService) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
  212. op := &request.Operation{
  213. Name: opCreateApplication,
  214. HTTPMethod: "POST",
  215. HTTPPath: "/",
  216. }
  217. if input == nil {
  218. input = &CreateApplicationInput{}
  219. }
  220. output = &CreateApplicationOutput{}
  221. req = c.newRequest(op, input, output)
  222. return
  223. }
  224. // CreateApplication API operation for AWS Application Discovery Service.
  225. //
  226. // Creates an application with the given name and description.
  227. //
  228. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  229. // with awserr.Error's Code and Message methods to get detailed information about
  230. // the error.
  231. //
  232. // See the AWS API reference guide for AWS Application Discovery Service's
  233. // API operation CreateApplication for usage and error information.
  234. //
  235. // Returned Error Codes:
  236. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  237. // The AWS user account does not have permission to perform the action. Check
  238. // the IAM policy associated with this account.
  239. //
  240. // * ErrCodeInvalidParameterException "InvalidParameterException"
  241. // One or more parameters are not valid. Verify the parameters and try again.
  242. //
  243. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  244. // The value of one or more parameters are either invalid or out of range. Verify
  245. // the parameter values and try again.
  246. //
  247. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  248. // The server experienced an internal error. Try again.
  249. //
  250. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateApplication
  251. func (c *ApplicationDiscoveryService) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
  252. req, out := c.CreateApplicationRequest(input)
  253. return out, req.Send()
  254. }
  255. // CreateApplicationWithContext is the same as CreateApplication with the addition of
  256. // the ability to pass a context and additional request options.
  257. //
  258. // See CreateApplication for details on how to use this API operation.
  259. //
  260. // The context must be non-nil and will be used for request cancellation. If
  261. // the context is nil a panic will occur. In the future the SDK may create
  262. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  263. // for more information on using Contexts.
  264. func (c *ApplicationDiscoveryService) CreateApplicationWithContext(ctx aws.Context, input *CreateApplicationInput, opts ...request.Option) (*CreateApplicationOutput, error) {
  265. req, out := c.CreateApplicationRequest(input)
  266. req.SetContext(ctx)
  267. req.ApplyOptions(opts...)
  268. return out, req.Send()
  269. }
  270. const opCreateTags = "CreateTags"
  271. // CreateTagsRequest generates a "aws/request.Request" representing the
  272. // client's request for the CreateTags operation. The "output" return
  273. // value will be populated with the request's response once the request completes
  274. // successfully.
  275. //
  276. // Use "Send" method on the returned Request to send the API call to the service.
  277. // the "output" return value is not valid until after Send returns without error.
  278. //
  279. // See CreateTags for more information on using the CreateTags
  280. // API call, and error handling.
  281. //
  282. // This method is useful when you want to inject custom logic or configuration
  283. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  284. //
  285. //
  286. // // Example sending a request using the CreateTagsRequest method.
  287. // req, resp := client.CreateTagsRequest(params)
  288. //
  289. // err := req.Send()
  290. // if err == nil { // resp is now filled
  291. // fmt.Println(resp)
  292. // }
  293. //
  294. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
  295. func (c *ApplicationDiscoveryService) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
  296. op := &request.Operation{
  297. Name: opCreateTags,
  298. HTTPMethod: "POST",
  299. HTTPPath: "/",
  300. }
  301. if input == nil {
  302. input = &CreateTagsInput{}
  303. }
  304. output = &CreateTagsOutput{}
  305. req = c.newRequest(op, input, output)
  306. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  307. return
  308. }
  309. // CreateTags API operation for AWS Application Discovery Service.
  310. //
  311. // Creates one or more tags for configuration items. Tags are metadata that
  312. // help you categorize IT assets. This API accepts a list of multiple configuration
  313. // items.
  314. //
  315. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  316. // with awserr.Error's Code and Message methods to get detailed information about
  317. // the error.
  318. //
  319. // See the AWS API reference guide for AWS Application Discovery Service's
  320. // API operation CreateTags for usage and error information.
  321. //
  322. // Returned Error Codes:
  323. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  324. // The AWS user account does not have permission to perform the action. Check
  325. // the IAM policy associated with this account.
  326. //
  327. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  328. // The specified configuration ID was not located. Verify the configuration
  329. // ID and try again.
  330. //
  331. // * ErrCodeInvalidParameterException "InvalidParameterException"
  332. // One or more parameters are not valid. Verify the parameters and try again.
  333. //
  334. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  335. // The value of one or more parameters are either invalid or out of range. Verify
  336. // the parameter values and try again.
  337. //
  338. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  339. // The server experienced an internal error. Try again.
  340. //
  341. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/CreateTags
  342. func (c *ApplicationDiscoveryService) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
  343. req, out := c.CreateTagsRequest(input)
  344. return out, req.Send()
  345. }
  346. // CreateTagsWithContext is the same as CreateTags with the addition of
  347. // the ability to pass a context and additional request options.
  348. //
  349. // See CreateTags for details on how to use this API operation.
  350. //
  351. // The context must be non-nil and will be used for request cancellation. If
  352. // the context is nil a panic will occur. In the future the SDK may create
  353. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  354. // for more information on using Contexts.
  355. func (c *ApplicationDiscoveryService) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
  356. req, out := c.CreateTagsRequest(input)
  357. req.SetContext(ctx)
  358. req.ApplyOptions(opts...)
  359. return out, req.Send()
  360. }
  361. const opDeleteApplications = "DeleteApplications"
  362. // DeleteApplicationsRequest generates a "aws/request.Request" representing the
  363. // client's request for the DeleteApplications operation. The "output" return
  364. // value will be populated with the request's response once the request completes
  365. // successfully.
  366. //
  367. // Use "Send" method on the returned Request to send the API call to the service.
  368. // the "output" return value is not valid until after Send returns without error.
  369. //
  370. // See DeleteApplications for more information on using the DeleteApplications
  371. // API call, and error handling.
  372. //
  373. // This method is useful when you want to inject custom logic or configuration
  374. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  375. //
  376. //
  377. // // Example sending a request using the DeleteApplicationsRequest method.
  378. // req, resp := client.DeleteApplicationsRequest(params)
  379. //
  380. // err := req.Send()
  381. // if err == nil { // resp is now filled
  382. // fmt.Println(resp)
  383. // }
  384. //
  385. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
  386. func (c *ApplicationDiscoveryService) DeleteApplicationsRequest(input *DeleteApplicationsInput) (req *request.Request, output *DeleteApplicationsOutput) {
  387. op := &request.Operation{
  388. Name: opDeleteApplications,
  389. HTTPMethod: "POST",
  390. HTTPPath: "/",
  391. }
  392. if input == nil {
  393. input = &DeleteApplicationsInput{}
  394. }
  395. output = &DeleteApplicationsOutput{}
  396. req = c.newRequest(op, input, output)
  397. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  398. return
  399. }
  400. // DeleteApplications API operation for AWS Application Discovery Service.
  401. //
  402. // Deletes a list of applications and their associations with configuration
  403. // items.
  404. //
  405. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  406. // with awserr.Error's Code and Message methods to get detailed information about
  407. // the error.
  408. //
  409. // See the AWS API reference guide for AWS Application Discovery Service's
  410. // API operation DeleteApplications for usage and error information.
  411. //
  412. // Returned Error Codes:
  413. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  414. // The AWS user account does not have permission to perform the action. Check
  415. // the IAM policy associated with this account.
  416. //
  417. // * ErrCodeInvalidParameterException "InvalidParameterException"
  418. // One or more parameters are not valid. Verify the parameters and try again.
  419. //
  420. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  421. // The value of one or more parameters are either invalid or out of range. Verify
  422. // the parameter values and try again.
  423. //
  424. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  425. // The server experienced an internal error. Try again.
  426. //
  427. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteApplications
  428. func (c *ApplicationDiscoveryService) DeleteApplications(input *DeleteApplicationsInput) (*DeleteApplicationsOutput, error) {
  429. req, out := c.DeleteApplicationsRequest(input)
  430. return out, req.Send()
  431. }
  432. // DeleteApplicationsWithContext is the same as DeleteApplications with the addition of
  433. // the ability to pass a context and additional request options.
  434. //
  435. // See DeleteApplications for details on how to use this API operation.
  436. //
  437. // The context must be non-nil and will be used for request cancellation. If
  438. // the context is nil a panic will occur. In the future the SDK may create
  439. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  440. // for more information on using Contexts.
  441. func (c *ApplicationDiscoveryService) DeleteApplicationsWithContext(ctx aws.Context, input *DeleteApplicationsInput, opts ...request.Option) (*DeleteApplicationsOutput, error) {
  442. req, out := c.DeleteApplicationsRequest(input)
  443. req.SetContext(ctx)
  444. req.ApplyOptions(opts...)
  445. return out, req.Send()
  446. }
  447. const opDeleteTags = "DeleteTags"
  448. // DeleteTagsRequest generates a "aws/request.Request" representing the
  449. // client's request for the DeleteTags operation. The "output" return
  450. // value will be populated with the request's response once the request completes
  451. // successfully.
  452. //
  453. // Use "Send" method on the returned Request to send the API call to the service.
  454. // the "output" return value is not valid until after Send returns without error.
  455. //
  456. // See DeleteTags for more information on using the DeleteTags
  457. // API call, and error handling.
  458. //
  459. // This method is useful when you want to inject custom logic or configuration
  460. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  461. //
  462. //
  463. // // Example sending a request using the DeleteTagsRequest method.
  464. // req, resp := client.DeleteTagsRequest(params)
  465. //
  466. // err := req.Send()
  467. // if err == nil { // resp is now filled
  468. // fmt.Println(resp)
  469. // }
  470. //
  471. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
  472. func (c *ApplicationDiscoveryService) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
  473. op := &request.Operation{
  474. Name: opDeleteTags,
  475. HTTPMethod: "POST",
  476. HTTPPath: "/",
  477. }
  478. if input == nil {
  479. input = &DeleteTagsInput{}
  480. }
  481. output = &DeleteTagsOutput{}
  482. req = c.newRequest(op, input, output)
  483. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  484. return
  485. }
  486. // DeleteTags API operation for AWS Application Discovery Service.
  487. //
  488. // Deletes the association between configuration items and one or more tags.
  489. // This API accepts a list of multiple configuration items.
  490. //
  491. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  492. // with awserr.Error's Code and Message methods to get detailed information about
  493. // the error.
  494. //
  495. // See the AWS API reference guide for AWS Application Discovery Service's
  496. // API operation DeleteTags for usage and error information.
  497. //
  498. // Returned Error Codes:
  499. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  500. // The AWS user account does not have permission to perform the action. Check
  501. // the IAM policy associated with this account.
  502. //
  503. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  504. // The specified configuration ID was not located. Verify the configuration
  505. // ID and try again.
  506. //
  507. // * ErrCodeInvalidParameterException "InvalidParameterException"
  508. // One or more parameters are not valid. Verify the parameters and try again.
  509. //
  510. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  511. // The value of one or more parameters are either invalid or out of range. Verify
  512. // the parameter values and try again.
  513. //
  514. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  515. // The server experienced an internal error. Try again.
  516. //
  517. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DeleteTags
  518. func (c *ApplicationDiscoveryService) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
  519. req, out := c.DeleteTagsRequest(input)
  520. return out, req.Send()
  521. }
  522. // DeleteTagsWithContext is the same as DeleteTags with the addition of
  523. // the ability to pass a context and additional request options.
  524. //
  525. // See DeleteTags for details on how to use this API operation.
  526. //
  527. // The context must be non-nil and will be used for request cancellation. If
  528. // the context is nil a panic will occur. In the future the SDK may create
  529. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  530. // for more information on using Contexts.
  531. func (c *ApplicationDiscoveryService) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
  532. req, out := c.DeleteTagsRequest(input)
  533. req.SetContext(ctx)
  534. req.ApplyOptions(opts...)
  535. return out, req.Send()
  536. }
  537. const opDescribeAgents = "DescribeAgents"
  538. // DescribeAgentsRequest generates a "aws/request.Request" representing the
  539. // client's request for the DescribeAgents operation. The "output" return
  540. // value will be populated with the request's response once the request completes
  541. // successfully.
  542. //
  543. // Use "Send" method on the returned Request to send the API call to the service.
  544. // the "output" return value is not valid until after Send returns without error.
  545. //
  546. // See DescribeAgents for more information on using the DescribeAgents
  547. // API call, and error handling.
  548. //
  549. // This method is useful when you want to inject custom logic or configuration
  550. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  551. //
  552. //
  553. // // Example sending a request using the DescribeAgentsRequest method.
  554. // req, resp := client.DescribeAgentsRequest(params)
  555. //
  556. // err := req.Send()
  557. // if err == nil { // resp is now filled
  558. // fmt.Println(resp)
  559. // }
  560. //
  561. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
  562. func (c *ApplicationDiscoveryService) DescribeAgentsRequest(input *DescribeAgentsInput) (req *request.Request, output *DescribeAgentsOutput) {
  563. op := &request.Operation{
  564. Name: opDescribeAgents,
  565. HTTPMethod: "POST",
  566. HTTPPath: "/",
  567. }
  568. if input == nil {
  569. input = &DescribeAgentsInput{}
  570. }
  571. output = &DescribeAgentsOutput{}
  572. req = c.newRequest(op, input, output)
  573. return
  574. }
  575. // DescribeAgents API operation for AWS Application Discovery Service.
  576. //
  577. // Lists agents or connectors as specified by ID or other filters. All agents/connectors
  578. // associated with your user account can be listed if you call DescribeAgents
  579. // as is without passing any parameters.
  580. //
  581. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  582. // with awserr.Error's Code and Message methods to get detailed information about
  583. // the error.
  584. //
  585. // See the AWS API reference guide for AWS Application Discovery Service's
  586. // API operation DescribeAgents for usage and error information.
  587. //
  588. // Returned Error Codes:
  589. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  590. // The AWS user account does not have permission to perform the action. Check
  591. // the IAM policy associated with this account.
  592. //
  593. // * ErrCodeInvalidParameterException "InvalidParameterException"
  594. // One or more parameters are not valid. Verify the parameters and try again.
  595. //
  596. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  597. // The value of one or more parameters are either invalid or out of range. Verify
  598. // the parameter values and try again.
  599. //
  600. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  601. // The server experienced an internal error. Try again.
  602. //
  603. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeAgents
  604. func (c *ApplicationDiscoveryService) DescribeAgents(input *DescribeAgentsInput) (*DescribeAgentsOutput, error) {
  605. req, out := c.DescribeAgentsRequest(input)
  606. return out, req.Send()
  607. }
  608. // DescribeAgentsWithContext is the same as DescribeAgents with the addition of
  609. // the ability to pass a context and additional request options.
  610. //
  611. // See DescribeAgents for details on how to use this API operation.
  612. //
  613. // The context must be non-nil and will be used for request cancellation. If
  614. // the context is nil a panic will occur. In the future the SDK may create
  615. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  616. // for more information on using Contexts.
  617. func (c *ApplicationDiscoveryService) DescribeAgentsWithContext(ctx aws.Context, input *DescribeAgentsInput, opts ...request.Option) (*DescribeAgentsOutput, error) {
  618. req, out := c.DescribeAgentsRequest(input)
  619. req.SetContext(ctx)
  620. req.ApplyOptions(opts...)
  621. return out, req.Send()
  622. }
  623. const opDescribeConfigurations = "DescribeConfigurations"
  624. // DescribeConfigurationsRequest generates a "aws/request.Request" representing the
  625. // client's request for the DescribeConfigurations operation. The "output" return
  626. // value will be populated with the request's response once the request completes
  627. // successfully.
  628. //
  629. // Use "Send" method on the returned Request to send the API call to the service.
  630. // the "output" return value is not valid until after Send returns without error.
  631. //
  632. // See DescribeConfigurations for more information on using the DescribeConfigurations
  633. // API call, and error handling.
  634. //
  635. // This method is useful when you want to inject custom logic or configuration
  636. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  637. //
  638. //
  639. // // Example sending a request using the DescribeConfigurationsRequest method.
  640. // req, resp := client.DescribeConfigurationsRequest(params)
  641. //
  642. // err := req.Send()
  643. // if err == nil { // resp is now filled
  644. // fmt.Println(resp)
  645. // }
  646. //
  647. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
  648. func (c *ApplicationDiscoveryService) DescribeConfigurationsRequest(input *DescribeConfigurationsInput) (req *request.Request, output *DescribeConfigurationsOutput) {
  649. op := &request.Operation{
  650. Name: opDescribeConfigurations,
  651. HTTPMethod: "POST",
  652. HTTPPath: "/",
  653. }
  654. if input == nil {
  655. input = &DescribeConfigurationsInput{}
  656. }
  657. output = &DescribeConfigurationsOutput{}
  658. req = c.newRequest(op, input, output)
  659. return
  660. }
  661. // DescribeConfigurations API operation for AWS Application Discovery Service.
  662. //
  663. // Retrieves attributes for a list of configuration item IDs.
  664. //
  665. // All of the supplied IDs must be for the same asset type from one of the following:
  666. //
  667. // server
  668. //
  669. // application
  670. //
  671. // process
  672. //
  673. // connection
  674. //
  675. // Output fields are specific to the asset type specified. For example, the
  676. // output for a server configuration item includes a list of attributes about
  677. // the server, such as host name, operating system, number of network cards,
  678. // etc.
  679. //
  680. // For a complete list of outputs for each asset type, see Using the DescribeConfigurations
  681. // Action (http://docs.aws.amazon.com/application-discovery/latest/APIReference/discovery-api-queries.html#DescribeConfigurations).
  682. //
  683. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  684. // with awserr.Error's Code and Message methods to get detailed information about
  685. // the error.
  686. //
  687. // See the AWS API reference guide for AWS Application Discovery Service's
  688. // API operation DescribeConfigurations for usage and error information.
  689. //
  690. // Returned Error Codes:
  691. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  692. // The AWS user account does not have permission to perform the action. Check
  693. // the IAM policy associated with this account.
  694. //
  695. // * ErrCodeInvalidParameterException "InvalidParameterException"
  696. // One or more parameters are not valid. Verify the parameters and try again.
  697. //
  698. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  699. // The value of one or more parameters are either invalid or out of range. Verify
  700. // the parameter values and try again.
  701. //
  702. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  703. // The server experienced an internal error. Try again.
  704. //
  705. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeConfigurations
  706. func (c *ApplicationDiscoveryService) DescribeConfigurations(input *DescribeConfigurationsInput) (*DescribeConfigurationsOutput, error) {
  707. req, out := c.DescribeConfigurationsRequest(input)
  708. return out, req.Send()
  709. }
  710. // DescribeConfigurationsWithContext is the same as DescribeConfigurations with the addition of
  711. // the ability to pass a context and additional request options.
  712. //
  713. // See DescribeConfigurations for details on how to use this API operation.
  714. //
  715. // The context must be non-nil and will be used for request cancellation. If
  716. // the context is nil a panic will occur. In the future the SDK may create
  717. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  718. // for more information on using Contexts.
  719. func (c *ApplicationDiscoveryService) DescribeConfigurationsWithContext(ctx aws.Context, input *DescribeConfigurationsInput, opts ...request.Option) (*DescribeConfigurationsOutput, error) {
  720. req, out := c.DescribeConfigurationsRequest(input)
  721. req.SetContext(ctx)
  722. req.ApplyOptions(opts...)
  723. return out, req.Send()
  724. }
  725. const opDescribeContinuousExports = "DescribeContinuousExports"
  726. // DescribeContinuousExportsRequest generates a "aws/request.Request" representing the
  727. // client's request for the DescribeContinuousExports operation. The "output" return
  728. // value will be populated with the request's response once the request completes
  729. // successfully.
  730. //
  731. // Use "Send" method on the returned Request to send the API call to the service.
  732. // the "output" return value is not valid until after Send returns without error.
  733. //
  734. // See DescribeContinuousExports for more information on using the DescribeContinuousExports
  735. // API call, and error handling.
  736. //
  737. // This method is useful when you want to inject custom logic or configuration
  738. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  739. //
  740. //
  741. // // Example sending a request using the DescribeContinuousExportsRequest method.
  742. // req, resp := client.DescribeContinuousExportsRequest(params)
  743. //
  744. // err := req.Send()
  745. // if err == nil { // resp is now filled
  746. // fmt.Println(resp)
  747. // }
  748. //
  749. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports
  750. func (c *ApplicationDiscoveryService) DescribeContinuousExportsRequest(input *DescribeContinuousExportsInput) (req *request.Request, output *DescribeContinuousExportsOutput) {
  751. op := &request.Operation{
  752. Name: opDescribeContinuousExports,
  753. HTTPMethod: "POST",
  754. HTTPPath: "/",
  755. Paginator: &request.Paginator{
  756. InputTokens: []string{"nextToken"},
  757. OutputTokens: []string{"nextToken"},
  758. LimitToken: "maxResults",
  759. TruncationToken: "",
  760. },
  761. }
  762. if input == nil {
  763. input = &DescribeContinuousExportsInput{}
  764. }
  765. output = &DescribeContinuousExportsOutput{}
  766. req = c.newRequest(op, input, output)
  767. return
  768. }
  769. // DescribeContinuousExports API operation for AWS Application Discovery Service.
  770. //
  771. // Lists exports as specified by ID. All continuous exports associated with
  772. // your user account can be listed if you call DescribeContinuousExports as
  773. // is without passing any parameters.
  774. //
  775. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  776. // with awserr.Error's Code and Message methods to get detailed information about
  777. // the error.
  778. //
  779. // See the AWS API reference guide for AWS Application Discovery Service's
  780. // API operation DescribeContinuousExports for usage and error information.
  781. //
  782. // Returned Error Codes:
  783. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  784. // The AWS user account does not have permission to perform the action. Check
  785. // the IAM policy associated with this account.
  786. //
  787. // * ErrCodeInvalidParameterException "InvalidParameterException"
  788. // One or more parameters are not valid. Verify the parameters and try again.
  789. //
  790. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  791. // The value of one or more parameters are either invalid or out of range. Verify
  792. // the parameter values and try again.
  793. //
  794. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  795. // The server experienced an internal error. Try again.
  796. //
  797. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  798. // This operation is not permitted.
  799. //
  800. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  801. // The specified configuration ID was not located. Verify the configuration
  802. // ID and try again.
  803. //
  804. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeContinuousExports
  805. func (c *ApplicationDiscoveryService) DescribeContinuousExports(input *DescribeContinuousExportsInput) (*DescribeContinuousExportsOutput, error) {
  806. req, out := c.DescribeContinuousExportsRequest(input)
  807. return out, req.Send()
  808. }
  809. // DescribeContinuousExportsWithContext is the same as DescribeContinuousExports with the addition of
  810. // the ability to pass a context and additional request options.
  811. //
  812. // See DescribeContinuousExports for details on how to use this API operation.
  813. //
  814. // The context must be non-nil and will be used for request cancellation. If
  815. // the context is nil a panic will occur. In the future the SDK may create
  816. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  817. // for more information on using Contexts.
  818. func (c *ApplicationDiscoveryService) DescribeContinuousExportsWithContext(ctx aws.Context, input *DescribeContinuousExportsInput, opts ...request.Option) (*DescribeContinuousExportsOutput, error) {
  819. req, out := c.DescribeContinuousExportsRequest(input)
  820. req.SetContext(ctx)
  821. req.ApplyOptions(opts...)
  822. return out, req.Send()
  823. }
  824. // DescribeContinuousExportsPages iterates over the pages of a DescribeContinuousExports operation,
  825. // calling the "fn" function with the response data for each page. To stop
  826. // iterating, return false from the fn function.
  827. //
  828. // See DescribeContinuousExports method for more information on how to use this operation.
  829. //
  830. // Note: This operation can generate multiple requests to a service.
  831. //
  832. // // Example iterating over at most 3 pages of a DescribeContinuousExports operation.
  833. // pageNum := 0
  834. // err := client.DescribeContinuousExportsPages(params,
  835. // func(page *DescribeContinuousExportsOutput, lastPage bool) bool {
  836. // pageNum++
  837. // fmt.Println(page)
  838. // return pageNum <= 3
  839. // })
  840. //
  841. func (c *ApplicationDiscoveryService) DescribeContinuousExportsPages(input *DescribeContinuousExportsInput, fn func(*DescribeContinuousExportsOutput, bool) bool) error {
  842. return c.DescribeContinuousExportsPagesWithContext(aws.BackgroundContext(), input, fn)
  843. }
  844. // DescribeContinuousExportsPagesWithContext same as DescribeContinuousExportsPages except
  845. // it takes a Context and allows setting request options on the pages.
  846. //
  847. // The context must be non-nil and will be used for request cancellation. If
  848. // the context is nil a panic will occur. In the future the SDK may create
  849. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  850. // for more information on using Contexts.
  851. func (c *ApplicationDiscoveryService) DescribeContinuousExportsPagesWithContext(ctx aws.Context, input *DescribeContinuousExportsInput, fn func(*DescribeContinuousExportsOutput, bool) bool, opts ...request.Option) error {
  852. p := request.Pagination{
  853. NewRequest: func() (*request.Request, error) {
  854. var inCpy *DescribeContinuousExportsInput
  855. if input != nil {
  856. tmp := *input
  857. inCpy = &tmp
  858. }
  859. req, _ := c.DescribeContinuousExportsRequest(inCpy)
  860. req.SetContext(ctx)
  861. req.ApplyOptions(opts...)
  862. return req, nil
  863. },
  864. }
  865. cont := true
  866. for p.Next() && cont {
  867. cont = fn(p.Page().(*DescribeContinuousExportsOutput), !p.HasNextPage())
  868. }
  869. return p.Err()
  870. }
  871. const opDescribeExportConfigurations = "DescribeExportConfigurations"
  872. // DescribeExportConfigurationsRequest generates a "aws/request.Request" representing the
  873. // client's request for the DescribeExportConfigurations operation. The "output" return
  874. // value will be populated with the request's response once the request completes
  875. // successfully.
  876. //
  877. // Use "Send" method on the returned Request to send the API call to the service.
  878. // the "output" return value is not valid until after Send returns without error.
  879. //
  880. // See DescribeExportConfigurations for more information on using the DescribeExportConfigurations
  881. // API call, and error handling.
  882. //
  883. // This method is useful when you want to inject custom logic or configuration
  884. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  885. //
  886. //
  887. // // Example sending a request using the DescribeExportConfigurationsRequest method.
  888. // req, resp := client.DescribeExportConfigurationsRequest(params)
  889. //
  890. // err := req.Send()
  891. // if err == nil { // resp is now filled
  892. // fmt.Println(resp)
  893. // }
  894. //
  895. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
  896. //
  897. // Deprecated: DescribeExportConfigurations has been deprecated
  898. func (c *ApplicationDiscoveryService) DescribeExportConfigurationsRequest(input *DescribeExportConfigurationsInput) (req *request.Request, output *DescribeExportConfigurationsOutput) {
  899. if c.Client.Config.Logger != nil {
  900. c.Client.Config.Logger.Log("This operation, DescribeExportConfigurations, has been deprecated")
  901. }
  902. op := &request.Operation{
  903. Name: opDescribeExportConfigurations,
  904. HTTPMethod: "POST",
  905. HTTPPath: "/",
  906. }
  907. if input == nil {
  908. input = &DescribeExportConfigurationsInput{}
  909. }
  910. output = &DescribeExportConfigurationsOutput{}
  911. req = c.newRequest(op, input, output)
  912. return
  913. }
  914. // DescribeExportConfigurations API operation for AWS Application Discovery Service.
  915. //
  916. // DescribeExportConfigurations is deprecated.
  917. //
  918. // Use instead DescribeExportTasks (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html).
  919. //
  920. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  921. // with awserr.Error's Code and Message methods to get detailed information about
  922. // the error.
  923. //
  924. // See the AWS API reference guide for AWS Application Discovery Service's
  925. // API operation DescribeExportConfigurations for usage and error information.
  926. //
  927. // Returned Error Codes:
  928. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  929. // The AWS user account does not have permission to perform the action. Check
  930. // the IAM policy associated with this account.
  931. //
  932. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  933. // The specified configuration ID was not located. Verify the configuration
  934. // ID and try again.
  935. //
  936. // * ErrCodeInvalidParameterException "InvalidParameterException"
  937. // One or more parameters are not valid. Verify the parameters and try again.
  938. //
  939. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  940. // The value of one or more parameters are either invalid or out of range. Verify
  941. // the parameter values and try again.
  942. //
  943. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  944. // The server experienced an internal error. Try again.
  945. //
  946. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportConfigurations
  947. //
  948. // Deprecated: DescribeExportConfigurations has been deprecated
  949. func (c *ApplicationDiscoveryService) DescribeExportConfigurations(input *DescribeExportConfigurationsInput) (*DescribeExportConfigurationsOutput, error) {
  950. req, out := c.DescribeExportConfigurationsRequest(input)
  951. return out, req.Send()
  952. }
  953. // DescribeExportConfigurationsWithContext is the same as DescribeExportConfigurations with the addition of
  954. // the ability to pass a context and additional request options.
  955. //
  956. // See DescribeExportConfigurations for details on how to use this API operation.
  957. //
  958. // The context must be non-nil and will be used for request cancellation. If
  959. // the context is nil a panic will occur. In the future the SDK may create
  960. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  961. // for more information on using Contexts.
  962. //
  963. // Deprecated: DescribeExportConfigurationsWithContext has been deprecated
  964. func (c *ApplicationDiscoveryService) DescribeExportConfigurationsWithContext(ctx aws.Context, input *DescribeExportConfigurationsInput, opts ...request.Option) (*DescribeExportConfigurationsOutput, error) {
  965. req, out := c.DescribeExportConfigurationsRequest(input)
  966. req.SetContext(ctx)
  967. req.ApplyOptions(opts...)
  968. return out, req.Send()
  969. }
  970. const opDescribeExportTasks = "DescribeExportTasks"
  971. // DescribeExportTasksRequest generates a "aws/request.Request" representing the
  972. // client's request for the DescribeExportTasks operation. The "output" return
  973. // value will be populated with the request's response once the request completes
  974. // successfully.
  975. //
  976. // Use "Send" method on the returned Request to send the API call to the service.
  977. // the "output" return value is not valid until after Send returns without error.
  978. //
  979. // See DescribeExportTasks for more information on using the DescribeExportTasks
  980. // API call, and error handling.
  981. //
  982. // This method is useful when you want to inject custom logic or configuration
  983. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  984. //
  985. //
  986. // // Example sending a request using the DescribeExportTasksRequest method.
  987. // req, resp := client.DescribeExportTasksRequest(params)
  988. //
  989. // err := req.Send()
  990. // if err == nil { // resp is now filled
  991. // fmt.Println(resp)
  992. // }
  993. //
  994. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
  995. func (c *ApplicationDiscoveryService) DescribeExportTasksRequest(input *DescribeExportTasksInput) (req *request.Request, output *DescribeExportTasksOutput) {
  996. op := &request.Operation{
  997. Name: opDescribeExportTasks,
  998. HTTPMethod: "POST",
  999. HTTPPath: "/",
  1000. }
  1001. if input == nil {
  1002. input = &DescribeExportTasksInput{}
  1003. }
  1004. output = &DescribeExportTasksOutput{}
  1005. req = c.newRequest(op, input, output)
  1006. return
  1007. }
  1008. // DescribeExportTasks API operation for AWS Application Discovery Service.
  1009. //
  1010. // Retrieve status of one or more export tasks. You can retrieve the status
  1011. // of up to 100 export tasks.
  1012. //
  1013. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1014. // with awserr.Error's Code and Message methods to get detailed information about
  1015. // the error.
  1016. //
  1017. // See the AWS API reference guide for AWS Application Discovery Service's
  1018. // API operation DescribeExportTasks for usage and error information.
  1019. //
  1020. // Returned Error Codes:
  1021. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1022. // The AWS user account does not have permission to perform the action. Check
  1023. // the IAM policy associated with this account.
  1024. //
  1025. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1026. // One or more parameters are not valid. Verify the parameters and try again.
  1027. //
  1028. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1029. // The value of one or more parameters are either invalid or out of range. Verify
  1030. // the parameter values and try again.
  1031. //
  1032. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1033. // The server experienced an internal error. Try again.
  1034. //
  1035. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeExportTasks
  1036. func (c *ApplicationDiscoveryService) DescribeExportTasks(input *DescribeExportTasksInput) (*DescribeExportTasksOutput, error) {
  1037. req, out := c.DescribeExportTasksRequest(input)
  1038. return out, req.Send()
  1039. }
  1040. // DescribeExportTasksWithContext is the same as DescribeExportTasks with the addition of
  1041. // the ability to pass a context and additional request options.
  1042. //
  1043. // See DescribeExportTasks for details on how to use this API operation.
  1044. //
  1045. // The context must be non-nil and will be used for request cancellation. If
  1046. // the context is nil a panic will occur. In the future the SDK may create
  1047. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1048. // for more information on using Contexts.
  1049. func (c *ApplicationDiscoveryService) DescribeExportTasksWithContext(ctx aws.Context, input *DescribeExportTasksInput, opts ...request.Option) (*DescribeExportTasksOutput, error) {
  1050. req, out := c.DescribeExportTasksRequest(input)
  1051. req.SetContext(ctx)
  1052. req.ApplyOptions(opts...)
  1053. return out, req.Send()
  1054. }
  1055. const opDescribeImportTasks = "DescribeImportTasks"
  1056. // DescribeImportTasksRequest generates a "aws/request.Request" representing the
  1057. // client's request for the DescribeImportTasks operation. The "output" return
  1058. // value will be populated with the request's response once the request completes
  1059. // successfully.
  1060. //
  1061. // Use "Send" method on the returned Request to send the API call to the service.
  1062. // the "output" return value is not valid until after Send returns without error.
  1063. //
  1064. // See DescribeImportTasks for more information on using the DescribeImportTasks
  1065. // API call, and error handling.
  1066. //
  1067. // This method is useful when you want to inject custom logic or configuration
  1068. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1069. //
  1070. //
  1071. // // Example sending a request using the DescribeImportTasksRequest method.
  1072. // req, resp := client.DescribeImportTasksRequest(params)
  1073. //
  1074. // err := req.Send()
  1075. // if err == nil { // resp is now filled
  1076. // fmt.Println(resp)
  1077. // }
  1078. //
  1079. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks
  1080. func (c *ApplicationDiscoveryService) DescribeImportTasksRequest(input *DescribeImportTasksInput) (req *request.Request, output *DescribeImportTasksOutput) {
  1081. op := &request.Operation{
  1082. Name: opDescribeImportTasks,
  1083. HTTPMethod: "POST",
  1084. HTTPPath: "/",
  1085. Paginator: &request.Paginator{
  1086. InputTokens: []string{"nextToken"},
  1087. OutputTokens: []string{"nextToken"},
  1088. LimitToken: "maxResults",
  1089. TruncationToken: "",
  1090. },
  1091. }
  1092. if input == nil {
  1093. input = &DescribeImportTasksInput{}
  1094. }
  1095. output = &DescribeImportTasksOutput{}
  1096. req = c.newRequest(op, input, output)
  1097. return
  1098. }
  1099. // DescribeImportTasks API operation for AWS Application Discovery Service.
  1100. //
  1101. // Returns an array of import tasks for your account, including status information,
  1102. // times, IDs, the Amazon S3 Object URL for the import file, and more.
  1103. //
  1104. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1105. // with awserr.Error's Code and Message methods to get detailed information about
  1106. // the error.
  1107. //
  1108. // See the AWS API reference guide for AWS Application Discovery Service's
  1109. // API operation DescribeImportTasks for usage and error information.
  1110. //
  1111. // Returned Error Codes:
  1112. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1113. // The AWS user account does not have permission to perform the action. Check
  1114. // the IAM policy associated with this account.
  1115. //
  1116. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1117. // The value of one or more parameters are either invalid or out of range. Verify
  1118. // the parameter values and try again.
  1119. //
  1120. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1121. // The server experienced an internal error. Try again.
  1122. //
  1123. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeImportTasks
  1124. func (c *ApplicationDiscoveryService) DescribeImportTasks(input *DescribeImportTasksInput) (*DescribeImportTasksOutput, error) {
  1125. req, out := c.DescribeImportTasksRequest(input)
  1126. return out, req.Send()
  1127. }
  1128. // DescribeImportTasksWithContext is the same as DescribeImportTasks with the addition of
  1129. // the ability to pass a context and additional request options.
  1130. //
  1131. // See DescribeImportTasks for details on how to use this API operation.
  1132. //
  1133. // The context must be non-nil and will be used for request cancellation. If
  1134. // the context is nil a panic will occur. In the future the SDK may create
  1135. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1136. // for more information on using Contexts.
  1137. func (c *ApplicationDiscoveryService) DescribeImportTasksWithContext(ctx aws.Context, input *DescribeImportTasksInput, opts ...request.Option) (*DescribeImportTasksOutput, error) {
  1138. req, out := c.DescribeImportTasksRequest(input)
  1139. req.SetContext(ctx)
  1140. req.ApplyOptions(opts...)
  1141. return out, req.Send()
  1142. }
  1143. // DescribeImportTasksPages iterates over the pages of a DescribeImportTasks operation,
  1144. // calling the "fn" function with the response data for each page. To stop
  1145. // iterating, return false from the fn function.
  1146. //
  1147. // See DescribeImportTasks method for more information on how to use this operation.
  1148. //
  1149. // Note: This operation can generate multiple requests to a service.
  1150. //
  1151. // // Example iterating over at most 3 pages of a DescribeImportTasks operation.
  1152. // pageNum := 0
  1153. // err := client.DescribeImportTasksPages(params,
  1154. // func(page *DescribeImportTasksOutput, lastPage bool) bool {
  1155. // pageNum++
  1156. // fmt.Println(page)
  1157. // return pageNum <= 3
  1158. // })
  1159. //
  1160. func (c *ApplicationDiscoveryService) DescribeImportTasksPages(input *DescribeImportTasksInput, fn func(*DescribeImportTasksOutput, bool) bool) error {
  1161. return c.DescribeImportTasksPagesWithContext(aws.BackgroundContext(), input, fn)
  1162. }
  1163. // DescribeImportTasksPagesWithContext same as DescribeImportTasksPages except
  1164. // it takes a Context and allows setting request options on the pages.
  1165. //
  1166. // The context must be non-nil and will be used for request cancellation. If
  1167. // the context is nil a panic will occur. In the future the SDK may create
  1168. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1169. // for more information on using Contexts.
  1170. func (c *ApplicationDiscoveryService) DescribeImportTasksPagesWithContext(ctx aws.Context, input *DescribeImportTasksInput, fn func(*DescribeImportTasksOutput, bool) bool, opts ...request.Option) error {
  1171. p := request.Pagination{
  1172. NewRequest: func() (*request.Request, error) {
  1173. var inCpy *DescribeImportTasksInput
  1174. if input != nil {
  1175. tmp := *input
  1176. inCpy = &tmp
  1177. }
  1178. req, _ := c.DescribeImportTasksRequest(inCpy)
  1179. req.SetContext(ctx)
  1180. req.ApplyOptions(opts...)
  1181. return req, nil
  1182. },
  1183. }
  1184. cont := true
  1185. for p.Next() && cont {
  1186. cont = fn(p.Page().(*DescribeImportTasksOutput), !p.HasNextPage())
  1187. }
  1188. return p.Err()
  1189. }
  1190. const opDescribeTags = "DescribeTags"
  1191. // DescribeTagsRequest generates a "aws/request.Request" representing the
  1192. // client's request for the DescribeTags operation. The "output" return
  1193. // value will be populated with the request's response once the request completes
  1194. // successfully.
  1195. //
  1196. // Use "Send" method on the returned Request to send the API call to the service.
  1197. // the "output" return value is not valid until after Send returns without error.
  1198. //
  1199. // See DescribeTags for more information on using the DescribeTags
  1200. // API call, and error handling.
  1201. //
  1202. // This method is useful when you want to inject custom logic or configuration
  1203. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1204. //
  1205. //
  1206. // // Example sending a request using the DescribeTagsRequest method.
  1207. // req, resp := client.DescribeTagsRequest(params)
  1208. //
  1209. // err := req.Send()
  1210. // if err == nil { // resp is now filled
  1211. // fmt.Println(resp)
  1212. // }
  1213. //
  1214. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
  1215. func (c *ApplicationDiscoveryService) DescribeTagsRequest(input *DescribeTagsInput) (req *request.Request, output *DescribeTagsOutput) {
  1216. op := &request.Operation{
  1217. Name: opDescribeTags,
  1218. HTTPMethod: "POST",
  1219. HTTPPath: "/",
  1220. }
  1221. if input == nil {
  1222. input = &DescribeTagsInput{}
  1223. }
  1224. output = &DescribeTagsOutput{}
  1225. req = c.newRequest(op, input, output)
  1226. return
  1227. }
  1228. // DescribeTags API operation for AWS Application Discovery Service.
  1229. //
  1230. // Retrieves a list of configuration items that have tags as specified by the
  1231. // key-value pairs, name and value, passed to the optional parameter filters.
  1232. //
  1233. // There are three valid tag filter names:
  1234. //
  1235. // * tagKey
  1236. //
  1237. // * tagValue
  1238. //
  1239. // * configurationId
  1240. //
  1241. // Also, all configuration items associated with your user account that have
  1242. // tags can be listed if you call DescribeTags as is without passing any parameters.
  1243. //
  1244. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1245. // with awserr.Error's Code and Message methods to get detailed information about
  1246. // the error.
  1247. //
  1248. // See the AWS API reference guide for AWS Application Discovery Service's
  1249. // API operation DescribeTags for usage and error information.
  1250. //
  1251. // Returned Error Codes:
  1252. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1253. // The AWS user account does not have permission to perform the action. Check
  1254. // the IAM policy associated with this account.
  1255. //
  1256. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1257. // The specified configuration ID was not located. Verify the configuration
  1258. // ID and try again.
  1259. //
  1260. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1261. // One or more parameters are not valid. Verify the parameters and try again.
  1262. //
  1263. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1264. // The value of one or more parameters are either invalid or out of range. Verify
  1265. // the parameter values and try again.
  1266. //
  1267. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1268. // The server experienced an internal error. Try again.
  1269. //
  1270. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DescribeTags
  1271. func (c *ApplicationDiscoveryService) DescribeTags(input *DescribeTagsInput) (*DescribeTagsOutput, error) {
  1272. req, out := c.DescribeTagsRequest(input)
  1273. return out, req.Send()
  1274. }
  1275. // DescribeTagsWithContext is the same as DescribeTags with the addition of
  1276. // the ability to pass a context and additional request options.
  1277. //
  1278. // See DescribeTags for details on how to use this API operation.
  1279. //
  1280. // The context must be non-nil and will be used for request cancellation. If
  1281. // the context is nil a panic will occur. In the future the SDK may create
  1282. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1283. // for more information on using Contexts.
  1284. func (c *ApplicationDiscoveryService) DescribeTagsWithContext(ctx aws.Context, input *DescribeTagsInput, opts ...request.Option) (*DescribeTagsOutput, error) {
  1285. req, out := c.DescribeTagsRequest(input)
  1286. req.SetContext(ctx)
  1287. req.ApplyOptions(opts...)
  1288. return out, req.Send()
  1289. }
  1290. const opDisassociateConfigurationItemsFromApplication = "DisassociateConfigurationItemsFromApplication"
  1291. // DisassociateConfigurationItemsFromApplicationRequest generates a "aws/request.Request" representing the
  1292. // client's request for the DisassociateConfigurationItemsFromApplication operation. The "output" return
  1293. // value will be populated with the request's response once the request completes
  1294. // successfully.
  1295. //
  1296. // Use "Send" method on the returned Request to send the API call to the service.
  1297. // the "output" return value is not valid until after Send returns without error.
  1298. //
  1299. // See DisassociateConfigurationItemsFromApplication for more information on using the DisassociateConfigurationItemsFromApplication
  1300. // API call, and error handling.
  1301. //
  1302. // This method is useful when you want to inject custom logic or configuration
  1303. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1304. //
  1305. //
  1306. // // Example sending a request using the DisassociateConfigurationItemsFromApplicationRequest method.
  1307. // req, resp := client.DisassociateConfigurationItemsFromApplicationRequest(params)
  1308. //
  1309. // err := req.Send()
  1310. // if err == nil { // resp is now filled
  1311. // fmt.Println(resp)
  1312. // }
  1313. //
  1314. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
  1315. func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationRequest(input *DisassociateConfigurationItemsFromApplicationInput) (req *request.Request, output *DisassociateConfigurationItemsFromApplicationOutput) {
  1316. op := &request.Operation{
  1317. Name: opDisassociateConfigurationItemsFromApplication,
  1318. HTTPMethod: "POST",
  1319. HTTPPath: "/",
  1320. }
  1321. if input == nil {
  1322. input = &DisassociateConfigurationItemsFromApplicationInput{}
  1323. }
  1324. output = &DisassociateConfigurationItemsFromApplicationOutput{}
  1325. req = c.newRequest(op, input, output)
  1326. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1327. return
  1328. }
  1329. // DisassociateConfigurationItemsFromApplication API operation for AWS Application Discovery Service.
  1330. //
  1331. // Disassociates one or more configuration items from an application.
  1332. //
  1333. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1334. // with awserr.Error's Code and Message methods to get detailed information about
  1335. // the error.
  1336. //
  1337. // See the AWS API reference guide for AWS Application Discovery Service's
  1338. // API operation DisassociateConfigurationItemsFromApplication for usage and error information.
  1339. //
  1340. // Returned Error Codes:
  1341. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1342. // The AWS user account does not have permission to perform the action. Check
  1343. // the IAM policy associated with this account.
  1344. //
  1345. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1346. // One or more parameters are not valid. Verify the parameters and try again.
  1347. //
  1348. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1349. // The value of one or more parameters are either invalid or out of range. Verify
  1350. // the parameter values and try again.
  1351. //
  1352. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1353. // The server experienced an internal error. Try again.
  1354. //
  1355. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/DisassociateConfigurationItemsFromApplication
  1356. func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplication(input *DisassociateConfigurationItemsFromApplicationInput) (*DisassociateConfigurationItemsFromApplicationOutput, error) {
  1357. req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input)
  1358. return out, req.Send()
  1359. }
  1360. // DisassociateConfigurationItemsFromApplicationWithContext is the same as DisassociateConfigurationItemsFromApplication with the addition of
  1361. // the ability to pass a context and additional request options.
  1362. //
  1363. // See DisassociateConfigurationItemsFromApplication for details on how to use this API operation.
  1364. //
  1365. // The context must be non-nil and will be used for request cancellation. If
  1366. // the context is nil a panic will occur. In the future the SDK may create
  1367. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1368. // for more information on using Contexts.
  1369. func (c *ApplicationDiscoveryService) DisassociateConfigurationItemsFromApplicationWithContext(ctx aws.Context, input *DisassociateConfigurationItemsFromApplicationInput, opts ...request.Option) (*DisassociateConfigurationItemsFromApplicationOutput, error) {
  1370. req, out := c.DisassociateConfigurationItemsFromApplicationRequest(input)
  1371. req.SetContext(ctx)
  1372. req.ApplyOptions(opts...)
  1373. return out, req.Send()
  1374. }
  1375. const opExportConfigurations = "ExportConfigurations"
  1376. // ExportConfigurationsRequest generates a "aws/request.Request" representing the
  1377. // client's request for the ExportConfigurations operation. The "output" return
  1378. // value will be populated with the request's response once the request completes
  1379. // successfully.
  1380. //
  1381. // Use "Send" method on the returned Request to send the API call to the service.
  1382. // the "output" return value is not valid until after Send returns without error.
  1383. //
  1384. // See ExportConfigurations for more information on using the ExportConfigurations
  1385. // API call, and error handling.
  1386. //
  1387. // This method is useful when you want to inject custom logic or configuration
  1388. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1389. //
  1390. //
  1391. // // Example sending a request using the ExportConfigurationsRequest method.
  1392. // req, resp := client.ExportConfigurationsRequest(params)
  1393. //
  1394. // err := req.Send()
  1395. // if err == nil { // resp is now filled
  1396. // fmt.Println(resp)
  1397. // }
  1398. //
  1399. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
  1400. //
  1401. // Deprecated: ExportConfigurations has been deprecated
  1402. func (c *ApplicationDiscoveryService) ExportConfigurationsRequest(input *ExportConfigurationsInput) (req *request.Request, output *ExportConfigurationsOutput) {
  1403. if c.Client.Config.Logger != nil {
  1404. c.Client.Config.Logger.Log("This operation, ExportConfigurations, has been deprecated")
  1405. }
  1406. op := &request.Operation{
  1407. Name: opExportConfigurations,
  1408. HTTPMethod: "POST",
  1409. HTTPPath: "/",
  1410. }
  1411. if input == nil {
  1412. input = &ExportConfigurationsInput{}
  1413. }
  1414. output = &ExportConfigurationsOutput{}
  1415. req = c.newRequest(op, input, output)
  1416. return
  1417. }
  1418. // ExportConfigurations API operation for AWS Application Discovery Service.
  1419. //
  1420. // Deprecated. Use StartExportTask instead.
  1421. //
  1422. // Exports all discovered configuration data to an Amazon S3 bucket or an application
  1423. // that enables you to view and evaluate the data. Data includes tags and tag
  1424. // associations, processes, connections, servers, and system performance. This
  1425. // API returns an export ID that you can query using the DescribeExportConfigurations
  1426. // API. The system imposes a limit of two configuration exports in six hours.
  1427. //
  1428. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1429. // with awserr.Error's Code and Message methods to get detailed information about
  1430. // the error.
  1431. //
  1432. // See the AWS API reference guide for AWS Application Discovery Service's
  1433. // API operation ExportConfigurations for usage and error information.
  1434. //
  1435. // Returned Error Codes:
  1436. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1437. // The AWS user account does not have permission to perform the action. Check
  1438. // the IAM policy associated with this account.
  1439. //
  1440. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1441. // One or more parameters are not valid. Verify the parameters and try again.
  1442. //
  1443. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1444. // The value of one or more parameters are either invalid or out of range. Verify
  1445. // the parameter values and try again.
  1446. //
  1447. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1448. // The server experienced an internal error. Try again.
  1449. //
  1450. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1451. // This operation is not permitted.
  1452. //
  1453. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ExportConfigurations
  1454. //
  1455. // Deprecated: ExportConfigurations has been deprecated
  1456. func (c *ApplicationDiscoveryService) ExportConfigurations(input *ExportConfigurationsInput) (*ExportConfigurationsOutput, error) {
  1457. req, out := c.ExportConfigurationsRequest(input)
  1458. return out, req.Send()
  1459. }
  1460. // ExportConfigurationsWithContext is the same as ExportConfigurations with the addition of
  1461. // the ability to pass a context and additional request options.
  1462. //
  1463. // See ExportConfigurations for details on how to use this API operation.
  1464. //
  1465. // The context must be non-nil and will be used for request cancellation. If
  1466. // the context is nil a panic will occur. In the future the SDK may create
  1467. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1468. // for more information on using Contexts.
  1469. //
  1470. // Deprecated: ExportConfigurationsWithContext has been deprecated
  1471. func (c *ApplicationDiscoveryService) ExportConfigurationsWithContext(ctx aws.Context, input *ExportConfigurationsInput, opts ...request.Option) (*ExportConfigurationsOutput, error) {
  1472. req, out := c.ExportConfigurationsRequest(input)
  1473. req.SetContext(ctx)
  1474. req.ApplyOptions(opts...)
  1475. return out, req.Send()
  1476. }
  1477. const opGetDiscoverySummary = "GetDiscoverySummary"
  1478. // GetDiscoverySummaryRequest generates a "aws/request.Request" representing the
  1479. // client's request for the GetDiscoverySummary operation. The "output" return
  1480. // value will be populated with the request's response once the request completes
  1481. // successfully.
  1482. //
  1483. // Use "Send" method on the returned Request to send the API call to the service.
  1484. // the "output" return value is not valid until after Send returns without error.
  1485. //
  1486. // See GetDiscoverySummary for more information on using the GetDiscoverySummary
  1487. // API call, and error handling.
  1488. //
  1489. // This method is useful when you want to inject custom logic or configuration
  1490. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1491. //
  1492. //
  1493. // // Example sending a request using the GetDiscoverySummaryRequest method.
  1494. // req, resp := client.GetDiscoverySummaryRequest(params)
  1495. //
  1496. // err := req.Send()
  1497. // if err == nil { // resp is now filled
  1498. // fmt.Println(resp)
  1499. // }
  1500. //
  1501. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
  1502. func (c *ApplicationDiscoveryService) GetDiscoverySummaryRequest(input *GetDiscoverySummaryInput) (req *request.Request, output *GetDiscoverySummaryOutput) {
  1503. op := &request.Operation{
  1504. Name: opGetDiscoverySummary,
  1505. HTTPMethod: "POST",
  1506. HTTPPath: "/",
  1507. }
  1508. if input == nil {
  1509. input = &GetDiscoverySummaryInput{}
  1510. }
  1511. output = &GetDiscoverySummaryOutput{}
  1512. req = c.newRequest(op, input, output)
  1513. return
  1514. }
  1515. // GetDiscoverySummary API operation for AWS Application Discovery Service.
  1516. //
  1517. // Retrieves a short summary of discovered assets.
  1518. //
  1519. // This API operation takes no request parameters and is called as is at the
  1520. // command prompt as shown in the example.
  1521. //
  1522. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1523. // with awserr.Error's Code and Message methods to get detailed information about
  1524. // the error.
  1525. //
  1526. // See the AWS API reference guide for AWS Application Discovery Service's
  1527. // API operation GetDiscoverySummary for usage and error information.
  1528. //
  1529. // Returned Error Codes:
  1530. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1531. // The AWS user account does not have permission to perform the action. Check
  1532. // the IAM policy associated with this account.
  1533. //
  1534. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1535. // One or more parameters are not valid. Verify the parameters and try again.
  1536. //
  1537. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1538. // The value of one or more parameters are either invalid or out of range. Verify
  1539. // the parameter values and try again.
  1540. //
  1541. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1542. // The server experienced an internal error. Try again.
  1543. //
  1544. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/GetDiscoverySummary
  1545. func (c *ApplicationDiscoveryService) GetDiscoverySummary(input *GetDiscoverySummaryInput) (*GetDiscoverySummaryOutput, error) {
  1546. req, out := c.GetDiscoverySummaryRequest(input)
  1547. return out, req.Send()
  1548. }
  1549. // GetDiscoverySummaryWithContext is the same as GetDiscoverySummary with the addition of
  1550. // the ability to pass a context and additional request options.
  1551. //
  1552. // See GetDiscoverySummary for details on how to use this API operation.
  1553. //
  1554. // The context must be non-nil and will be used for request cancellation. If
  1555. // the context is nil a panic will occur. In the future the SDK may create
  1556. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1557. // for more information on using Contexts.
  1558. func (c *ApplicationDiscoveryService) GetDiscoverySummaryWithContext(ctx aws.Context, input *GetDiscoverySummaryInput, opts ...request.Option) (*GetDiscoverySummaryOutput, error) {
  1559. req, out := c.GetDiscoverySummaryRequest(input)
  1560. req.SetContext(ctx)
  1561. req.ApplyOptions(opts...)
  1562. return out, req.Send()
  1563. }
  1564. const opListConfigurations = "ListConfigurations"
  1565. // ListConfigurationsRequest generates a "aws/request.Request" representing the
  1566. // client's request for the ListConfigurations operation. The "output" return
  1567. // value will be populated with the request's response once the request completes
  1568. // successfully.
  1569. //
  1570. // Use "Send" method on the returned Request to send the API call to the service.
  1571. // the "output" return value is not valid until after Send returns without error.
  1572. //
  1573. // See ListConfigurations for more information on using the ListConfigurations
  1574. // API call, and error handling.
  1575. //
  1576. // This method is useful when you want to inject custom logic or configuration
  1577. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1578. //
  1579. //
  1580. // // Example sending a request using the ListConfigurationsRequest method.
  1581. // req, resp := client.ListConfigurationsRequest(params)
  1582. //
  1583. // err := req.Send()
  1584. // if err == nil { // resp is now filled
  1585. // fmt.Println(resp)
  1586. // }
  1587. //
  1588. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
  1589. func (c *ApplicationDiscoveryService) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsOutput) {
  1590. op := &request.Operation{
  1591. Name: opListConfigurations,
  1592. HTTPMethod: "POST",
  1593. HTTPPath: "/",
  1594. }
  1595. if input == nil {
  1596. input = &ListConfigurationsInput{}
  1597. }
  1598. output = &ListConfigurationsOutput{}
  1599. req = c.newRequest(op, input, output)
  1600. return
  1601. }
  1602. // ListConfigurations API operation for AWS Application Discovery Service.
  1603. //
  1604. // Retrieves a list of configuration items as specified by the value passed
  1605. // to the required paramater configurationType. Optional filtering may be applied
  1606. // to refine search results.
  1607. //
  1608. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1609. // with awserr.Error's Code and Message methods to get detailed information about
  1610. // the error.
  1611. //
  1612. // See the AWS API reference guide for AWS Application Discovery Service's
  1613. // API operation ListConfigurations for usage and error information.
  1614. //
  1615. // Returned Error Codes:
  1616. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1617. // The AWS user account does not have permission to perform the action. Check
  1618. // the IAM policy associated with this account.
  1619. //
  1620. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  1621. // The specified configuration ID was not located. Verify the configuration
  1622. // ID and try again.
  1623. //
  1624. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1625. // One or more parameters are not valid. Verify the parameters and try again.
  1626. //
  1627. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1628. // The value of one or more parameters are either invalid or out of range. Verify
  1629. // the parameter values and try again.
  1630. //
  1631. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1632. // The server experienced an internal error. Try again.
  1633. //
  1634. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListConfigurations
  1635. func (c *ApplicationDiscoveryService) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsOutput, error) {
  1636. req, out := c.ListConfigurationsRequest(input)
  1637. return out, req.Send()
  1638. }
  1639. // ListConfigurationsWithContext is the same as ListConfigurations with the addition of
  1640. // the ability to pass a context and additional request options.
  1641. //
  1642. // See ListConfigurations for details on how to use this API operation.
  1643. //
  1644. // The context must be non-nil and will be used for request cancellation. If
  1645. // the context is nil a panic will occur. In the future the SDK may create
  1646. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1647. // for more information on using Contexts.
  1648. func (c *ApplicationDiscoveryService) ListConfigurationsWithContext(ctx aws.Context, input *ListConfigurationsInput, opts ...request.Option) (*ListConfigurationsOutput, error) {
  1649. req, out := c.ListConfigurationsRequest(input)
  1650. req.SetContext(ctx)
  1651. req.ApplyOptions(opts...)
  1652. return out, req.Send()
  1653. }
  1654. const opListServerNeighbors = "ListServerNeighbors"
  1655. // ListServerNeighborsRequest generates a "aws/request.Request" representing the
  1656. // client's request for the ListServerNeighbors operation. The "output" return
  1657. // value will be populated with the request's response once the request completes
  1658. // successfully.
  1659. //
  1660. // Use "Send" method on the returned Request to send the API call to the service.
  1661. // the "output" return value is not valid until after Send returns without error.
  1662. //
  1663. // See ListServerNeighbors for more information on using the ListServerNeighbors
  1664. // API call, and error handling.
  1665. //
  1666. // This method is useful when you want to inject custom logic or configuration
  1667. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1668. //
  1669. //
  1670. // // Example sending a request using the ListServerNeighborsRequest method.
  1671. // req, resp := client.ListServerNeighborsRequest(params)
  1672. //
  1673. // err := req.Send()
  1674. // if err == nil { // resp is now filled
  1675. // fmt.Println(resp)
  1676. // }
  1677. //
  1678. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
  1679. func (c *ApplicationDiscoveryService) ListServerNeighborsRequest(input *ListServerNeighborsInput) (req *request.Request, output *ListServerNeighborsOutput) {
  1680. op := &request.Operation{
  1681. Name: opListServerNeighbors,
  1682. HTTPMethod: "POST",
  1683. HTTPPath: "/",
  1684. }
  1685. if input == nil {
  1686. input = &ListServerNeighborsInput{}
  1687. }
  1688. output = &ListServerNeighborsOutput{}
  1689. req = c.newRequest(op, input, output)
  1690. return
  1691. }
  1692. // ListServerNeighbors API operation for AWS Application Discovery Service.
  1693. //
  1694. // Retrieves a list of servers that are one network hop away from a specified
  1695. // server.
  1696. //
  1697. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1698. // with awserr.Error's Code and Message methods to get detailed information about
  1699. // the error.
  1700. //
  1701. // See the AWS API reference guide for AWS Application Discovery Service's
  1702. // API operation ListServerNeighbors for usage and error information.
  1703. //
  1704. // Returned Error Codes:
  1705. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1706. // The AWS user account does not have permission to perform the action. Check
  1707. // the IAM policy associated with this account.
  1708. //
  1709. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1710. // One or more parameters are not valid. Verify the parameters and try again.
  1711. //
  1712. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1713. // The value of one or more parameters are either invalid or out of range. Verify
  1714. // the parameter values and try again.
  1715. //
  1716. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1717. // The server experienced an internal error. Try again.
  1718. //
  1719. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/ListServerNeighbors
  1720. func (c *ApplicationDiscoveryService) ListServerNeighbors(input *ListServerNeighborsInput) (*ListServerNeighborsOutput, error) {
  1721. req, out := c.ListServerNeighborsRequest(input)
  1722. return out, req.Send()
  1723. }
  1724. // ListServerNeighborsWithContext is the same as ListServerNeighbors with the addition of
  1725. // the ability to pass a context and additional request options.
  1726. //
  1727. // See ListServerNeighbors for details on how to use this API operation.
  1728. //
  1729. // The context must be non-nil and will be used for request cancellation. If
  1730. // the context is nil a panic will occur. In the future the SDK may create
  1731. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1732. // for more information on using Contexts.
  1733. func (c *ApplicationDiscoveryService) ListServerNeighborsWithContext(ctx aws.Context, input *ListServerNeighborsInput, opts ...request.Option) (*ListServerNeighborsOutput, error) {
  1734. req, out := c.ListServerNeighborsRequest(input)
  1735. req.SetContext(ctx)
  1736. req.ApplyOptions(opts...)
  1737. return out, req.Send()
  1738. }
  1739. const opStartContinuousExport = "StartContinuousExport"
  1740. // StartContinuousExportRequest generates a "aws/request.Request" representing the
  1741. // client's request for the StartContinuousExport operation. The "output" return
  1742. // value will be populated with the request's response once the request completes
  1743. // successfully.
  1744. //
  1745. // Use "Send" method on the returned Request to send the API call to the service.
  1746. // the "output" return value is not valid until after Send returns without error.
  1747. //
  1748. // See StartContinuousExport for more information on using the StartContinuousExport
  1749. // API call, and error handling.
  1750. //
  1751. // This method is useful when you want to inject custom logic or configuration
  1752. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1753. //
  1754. //
  1755. // // Example sending a request using the StartContinuousExportRequest method.
  1756. // req, resp := client.StartContinuousExportRequest(params)
  1757. //
  1758. // err := req.Send()
  1759. // if err == nil { // resp is now filled
  1760. // fmt.Println(resp)
  1761. // }
  1762. //
  1763. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport
  1764. func (c *ApplicationDiscoveryService) StartContinuousExportRequest(input *StartContinuousExportInput) (req *request.Request, output *StartContinuousExportOutput) {
  1765. op := &request.Operation{
  1766. Name: opStartContinuousExport,
  1767. HTTPMethod: "POST",
  1768. HTTPPath: "/",
  1769. }
  1770. if input == nil {
  1771. input = &StartContinuousExportInput{}
  1772. }
  1773. output = &StartContinuousExportOutput{}
  1774. req = c.newRequest(op, input, output)
  1775. return
  1776. }
  1777. // StartContinuousExport API operation for AWS Application Discovery Service.
  1778. //
  1779. // Start the continuous flow of agent's discovered data into Amazon Athena.
  1780. //
  1781. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1782. // with awserr.Error's Code and Message methods to get detailed information about
  1783. // the error.
  1784. //
  1785. // See the AWS API reference guide for AWS Application Discovery Service's
  1786. // API operation StartContinuousExport for usage and error information.
  1787. //
  1788. // Returned Error Codes:
  1789. // * ErrCodeConflictErrorException "ConflictErrorException"
  1790. //
  1791. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1792. // The AWS user account does not have permission to perform the action. Check
  1793. // the IAM policy associated with this account.
  1794. //
  1795. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1796. // One or more parameters are not valid. Verify the parameters and try again.
  1797. //
  1798. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1799. // The value of one or more parameters are either invalid or out of range. Verify
  1800. // the parameter values and try again.
  1801. //
  1802. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1803. // The server experienced an internal error. Try again.
  1804. //
  1805. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1806. // This operation is not permitted.
  1807. //
  1808. // * ErrCodeResourceInUseException "ResourceInUseException"
  1809. // This issue occurs when the same clientRequestToken is used with the StartImportTask
  1810. // action, but with different parameters. For example, you use the same request
  1811. // token but have two different import URLs, you can encounter this issue. If
  1812. // the import tasks are meant to be different, use a different clientRequestToken,
  1813. // and try again.
  1814. //
  1815. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartContinuousExport
  1816. func (c *ApplicationDiscoveryService) StartContinuousExport(input *StartContinuousExportInput) (*StartContinuousExportOutput, error) {
  1817. req, out := c.StartContinuousExportRequest(input)
  1818. return out, req.Send()
  1819. }
  1820. // StartContinuousExportWithContext is the same as StartContinuousExport with the addition of
  1821. // the ability to pass a context and additional request options.
  1822. //
  1823. // See StartContinuousExport for details on how to use this API operation.
  1824. //
  1825. // The context must be non-nil and will be used for request cancellation. If
  1826. // the context is nil a panic will occur. In the future the SDK may create
  1827. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1828. // for more information on using Contexts.
  1829. func (c *ApplicationDiscoveryService) StartContinuousExportWithContext(ctx aws.Context, input *StartContinuousExportInput, opts ...request.Option) (*StartContinuousExportOutput, error) {
  1830. req, out := c.StartContinuousExportRequest(input)
  1831. req.SetContext(ctx)
  1832. req.ApplyOptions(opts...)
  1833. return out, req.Send()
  1834. }
  1835. const opStartDataCollectionByAgentIds = "StartDataCollectionByAgentIds"
  1836. // StartDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
  1837. // client's request for the StartDataCollectionByAgentIds operation. The "output" return
  1838. // value will be populated with the request's response once the request completes
  1839. // successfully.
  1840. //
  1841. // Use "Send" method on the returned Request to send the API call to the service.
  1842. // the "output" return value is not valid until after Send returns without error.
  1843. //
  1844. // See StartDataCollectionByAgentIds for more information on using the StartDataCollectionByAgentIds
  1845. // API call, and error handling.
  1846. //
  1847. // This method is useful when you want to inject custom logic or configuration
  1848. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1849. //
  1850. //
  1851. // // Example sending a request using the StartDataCollectionByAgentIdsRequest method.
  1852. // req, resp := client.StartDataCollectionByAgentIdsRequest(params)
  1853. //
  1854. // err := req.Send()
  1855. // if err == nil { // resp is now filled
  1856. // fmt.Println(resp)
  1857. // }
  1858. //
  1859. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
  1860. func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsRequest(input *StartDataCollectionByAgentIdsInput) (req *request.Request, output *StartDataCollectionByAgentIdsOutput) {
  1861. op := &request.Operation{
  1862. Name: opStartDataCollectionByAgentIds,
  1863. HTTPMethod: "POST",
  1864. HTTPPath: "/",
  1865. }
  1866. if input == nil {
  1867. input = &StartDataCollectionByAgentIdsInput{}
  1868. }
  1869. output = &StartDataCollectionByAgentIdsOutput{}
  1870. req = c.newRequest(op, input, output)
  1871. return
  1872. }
  1873. // StartDataCollectionByAgentIds API operation for AWS Application Discovery Service.
  1874. //
  1875. // Instructs the specified agents or connectors to start collecting data.
  1876. //
  1877. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1878. // with awserr.Error's Code and Message methods to get detailed information about
  1879. // the error.
  1880. //
  1881. // See the AWS API reference guide for AWS Application Discovery Service's
  1882. // API operation StartDataCollectionByAgentIds for usage and error information.
  1883. //
  1884. // Returned Error Codes:
  1885. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1886. // The AWS user account does not have permission to perform the action. Check
  1887. // the IAM policy associated with this account.
  1888. //
  1889. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1890. // One or more parameters are not valid. Verify the parameters and try again.
  1891. //
  1892. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1893. // The value of one or more parameters are either invalid or out of range. Verify
  1894. // the parameter values and try again.
  1895. //
  1896. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1897. // The server experienced an internal error. Try again.
  1898. //
  1899. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartDataCollectionByAgentIds
  1900. func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIds(input *StartDataCollectionByAgentIdsInput) (*StartDataCollectionByAgentIdsOutput, error) {
  1901. req, out := c.StartDataCollectionByAgentIdsRequest(input)
  1902. return out, req.Send()
  1903. }
  1904. // StartDataCollectionByAgentIdsWithContext is the same as StartDataCollectionByAgentIds with the addition of
  1905. // the ability to pass a context and additional request options.
  1906. //
  1907. // See StartDataCollectionByAgentIds for details on how to use this API operation.
  1908. //
  1909. // The context must be non-nil and will be used for request cancellation. If
  1910. // the context is nil a panic will occur. In the future the SDK may create
  1911. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1912. // for more information on using Contexts.
  1913. func (c *ApplicationDiscoveryService) StartDataCollectionByAgentIdsWithContext(ctx aws.Context, input *StartDataCollectionByAgentIdsInput, opts ...request.Option) (*StartDataCollectionByAgentIdsOutput, error) {
  1914. req, out := c.StartDataCollectionByAgentIdsRequest(input)
  1915. req.SetContext(ctx)
  1916. req.ApplyOptions(opts...)
  1917. return out, req.Send()
  1918. }
  1919. const opStartExportTask = "StartExportTask"
  1920. // StartExportTaskRequest generates a "aws/request.Request" representing the
  1921. // client's request for the StartExportTask operation. The "output" return
  1922. // value will be populated with the request's response once the request completes
  1923. // successfully.
  1924. //
  1925. // Use "Send" method on the returned Request to send the API call to the service.
  1926. // the "output" return value is not valid until after Send returns without error.
  1927. //
  1928. // See StartExportTask for more information on using the StartExportTask
  1929. // API call, and error handling.
  1930. //
  1931. // This method is useful when you want to inject custom logic or configuration
  1932. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1933. //
  1934. //
  1935. // // Example sending a request using the StartExportTaskRequest method.
  1936. // req, resp := client.StartExportTaskRequest(params)
  1937. //
  1938. // err := req.Send()
  1939. // if err == nil { // resp is now filled
  1940. // fmt.Println(resp)
  1941. // }
  1942. //
  1943. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
  1944. func (c *ApplicationDiscoveryService) StartExportTaskRequest(input *StartExportTaskInput) (req *request.Request, output *StartExportTaskOutput) {
  1945. op := &request.Operation{
  1946. Name: opStartExportTask,
  1947. HTTPMethod: "POST",
  1948. HTTPPath: "/",
  1949. }
  1950. if input == nil {
  1951. input = &StartExportTaskInput{}
  1952. }
  1953. output = &StartExportTaskOutput{}
  1954. req = c.newRequest(op, input, output)
  1955. return
  1956. }
  1957. // StartExportTask API operation for AWS Application Discovery Service.
  1958. //
  1959. // Begins the export of discovered data to an S3 bucket.
  1960. //
  1961. // If you specify agentIds in a filter, the task exports up to 72 hours of detailed
  1962. // data collected by the identified Application Discovery Agent, including network,
  1963. // process, and performance details. A time range for exported agent data may
  1964. // be set by using startTime and endTime. Export of detailed agent data is limited
  1965. // to five concurrently running exports.
  1966. //
  1967. // If you do not include an agentIds filter, summary data is exported that includes
  1968. // both AWS Agentless Discovery Connector data and summary data from AWS Discovery
  1969. // Agents. Export of summary data is limited to two exports per day.
  1970. //
  1971. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1972. // with awserr.Error's Code and Message methods to get detailed information about
  1973. // the error.
  1974. //
  1975. // See the AWS API reference guide for AWS Application Discovery Service's
  1976. // API operation StartExportTask for usage and error information.
  1977. //
  1978. // Returned Error Codes:
  1979. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  1980. // The AWS user account does not have permission to perform the action. Check
  1981. // the IAM policy associated with this account.
  1982. //
  1983. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1984. // One or more parameters are not valid. Verify the parameters and try again.
  1985. //
  1986. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  1987. // The value of one or more parameters are either invalid or out of range. Verify
  1988. // the parameter values and try again.
  1989. //
  1990. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  1991. // The server experienced an internal error. Try again.
  1992. //
  1993. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1994. // This operation is not permitted.
  1995. //
  1996. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartExportTask
  1997. func (c *ApplicationDiscoveryService) StartExportTask(input *StartExportTaskInput) (*StartExportTaskOutput, error) {
  1998. req, out := c.StartExportTaskRequest(input)
  1999. return out, req.Send()
  2000. }
  2001. // StartExportTaskWithContext is the same as StartExportTask with the addition of
  2002. // the ability to pass a context and additional request options.
  2003. //
  2004. // See StartExportTask for details on how to use this API operation.
  2005. //
  2006. // The context must be non-nil and will be used for request cancellation. If
  2007. // the context is nil a panic will occur. In the future the SDK may create
  2008. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2009. // for more information on using Contexts.
  2010. func (c *ApplicationDiscoveryService) StartExportTaskWithContext(ctx aws.Context, input *StartExportTaskInput, opts ...request.Option) (*StartExportTaskOutput, error) {
  2011. req, out := c.StartExportTaskRequest(input)
  2012. req.SetContext(ctx)
  2013. req.ApplyOptions(opts...)
  2014. return out, req.Send()
  2015. }
  2016. const opStartImportTask = "StartImportTask"
  2017. // StartImportTaskRequest generates a "aws/request.Request" representing the
  2018. // client's request for the StartImportTask operation. The "output" return
  2019. // value will be populated with the request's response once the request completes
  2020. // successfully.
  2021. //
  2022. // Use "Send" method on the returned Request to send the API call to the service.
  2023. // the "output" return value is not valid until after Send returns without error.
  2024. //
  2025. // See StartImportTask for more information on using the StartImportTask
  2026. // API call, and error handling.
  2027. //
  2028. // This method is useful when you want to inject custom logic or configuration
  2029. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2030. //
  2031. //
  2032. // // Example sending a request using the StartImportTaskRequest method.
  2033. // req, resp := client.StartImportTaskRequest(params)
  2034. //
  2035. // err := req.Send()
  2036. // if err == nil { // resp is now filled
  2037. // fmt.Println(resp)
  2038. // }
  2039. //
  2040. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask
  2041. func (c *ApplicationDiscoveryService) StartImportTaskRequest(input *StartImportTaskInput) (req *request.Request, output *StartImportTaskOutput) {
  2042. op := &request.Operation{
  2043. Name: opStartImportTask,
  2044. HTTPMethod: "POST",
  2045. HTTPPath: "/",
  2046. }
  2047. if input == nil {
  2048. input = &StartImportTaskInput{}
  2049. }
  2050. output = &StartImportTaskOutput{}
  2051. req = c.newRequest(op, input, output)
  2052. return
  2053. }
  2054. // StartImportTask API operation for AWS Application Discovery Service.
  2055. //
  2056. // Starts an import task, which allows you to import details of your on-premises
  2057. // environment directly into AWS without having to use the Application Discovery
  2058. // Service (ADS) tools such as the Discovery Connector or Discovery Agent. This
  2059. // gives you the option to perform migration assessment and planning directly
  2060. // from your imported data, including the ability to group your devices as applications
  2061. // and track their migration status.
  2062. //
  2063. // To start an import request, do this:
  2064. //
  2065. // Download the specially formatted comma separated value (CSV) import template,
  2066. // which you can find here: https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv
  2067. // (https://s3-us-west-2.amazonaws.com/templates-7cffcf56-bd96-4b1c-b45b-a5b42f282e46/import_template.csv).
  2068. //
  2069. // Fill out the template with your server and application data.
  2070. //
  2071. // Upload your import file to an Amazon S3 bucket, and make a note of it's Object
  2072. // URL. Your import file must be in the CSV format.
  2073. //
  2074. // Use the console or the StartImportTask command with the AWS CLI or one of
  2075. // the AWS SDKs to import the records from your file.
  2076. //
  2077. // For more information, including step-by-step procedures, see Migration Hub
  2078. // Import (http://docs.aws.amazon.com/application-discovery/latest/userguide/discovery-import.html)
  2079. // in the AWS Application Discovery Service User Guide.
  2080. //
  2081. // There are limits to the number of import tasks you can create (and delete)
  2082. // in an AWS account. For more information, see AWS Application Discovery Service
  2083. // Limits (http://docs.aws.amazon.com/application-discovery/latest/userguide/ads_service_limits.html)
  2084. // in the AWS Application Discovery Service User Guide.
  2085. //
  2086. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2087. // with awserr.Error's Code and Message methods to get detailed information about
  2088. // the error.
  2089. //
  2090. // See the AWS API reference guide for AWS Application Discovery Service's
  2091. // API operation StartImportTask for usage and error information.
  2092. //
  2093. // Returned Error Codes:
  2094. // * ErrCodeResourceInUseException "ResourceInUseException"
  2095. // This issue occurs when the same clientRequestToken is used with the StartImportTask
  2096. // action, but with different parameters. For example, you use the same request
  2097. // token but have two different import URLs, you can encounter this issue. If
  2098. // the import tasks are meant to be different, use a different clientRequestToken,
  2099. // and try again.
  2100. //
  2101. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  2102. // The AWS user account does not have permission to perform the action. Check
  2103. // the IAM policy associated with this account.
  2104. //
  2105. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  2106. // The value of one or more parameters are either invalid or out of range. Verify
  2107. // the parameter values and try again.
  2108. //
  2109. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  2110. // The server experienced an internal error. Try again.
  2111. //
  2112. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StartImportTask
  2113. func (c *ApplicationDiscoveryService) StartImportTask(input *StartImportTaskInput) (*StartImportTaskOutput, error) {
  2114. req, out := c.StartImportTaskRequest(input)
  2115. return out, req.Send()
  2116. }
  2117. // StartImportTaskWithContext is the same as StartImportTask with the addition of
  2118. // the ability to pass a context and additional request options.
  2119. //
  2120. // See StartImportTask for details on how to use this API operation.
  2121. //
  2122. // The context must be non-nil and will be used for request cancellation. If
  2123. // the context is nil a panic will occur. In the future the SDK may create
  2124. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2125. // for more information on using Contexts.
  2126. func (c *ApplicationDiscoveryService) StartImportTaskWithContext(ctx aws.Context, input *StartImportTaskInput, opts ...request.Option) (*StartImportTaskOutput, error) {
  2127. req, out := c.StartImportTaskRequest(input)
  2128. req.SetContext(ctx)
  2129. req.ApplyOptions(opts...)
  2130. return out, req.Send()
  2131. }
  2132. const opStopContinuousExport = "StopContinuousExport"
  2133. // StopContinuousExportRequest generates a "aws/request.Request" representing the
  2134. // client's request for the StopContinuousExport operation. The "output" return
  2135. // value will be populated with the request's response once the request completes
  2136. // successfully.
  2137. //
  2138. // Use "Send" method on the returned Request to send the API call to the service.
  2139. // the "output" return value is not valid until after Send returns without error.
  2140. //
  2141. // See StopContinuousExport for more information on using the StopContinuousExport
  2142. // API call, and error handling.
  2143. //
  2144. // This method is useful when you want to inject custom logic or configuration
  2145. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2146. //
  2147. //
  2148. // // Example sending a request using the StopContinuousExportRequest method.
  2149. // req, resp := client.StopContinuousExportRequest(params)
  2150. //
  2151. // err := req.Send()
  2152. // if err == nil { // resp is now filled
  2153. // fmt.Println(resp)
  2154. // }
  2155. //
  2156. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport
  2157. func (c *ApplicationDiscoveryService) StopContinuousExportRequest(input *StopContinuousExportInput) (req *request.Request, output *StopContinuousExportOutput) {
  2158. op := &request.Operation{
  2159. Name: opStopContinuousExport,
  2160. HTTPMethod: "POST",
  2161. HTTPPath: "/",
  2162. }
  2163. if input == nil {
  2164. input = &StopContinuousExportInput{}
  2165. }
  2166. output = &StopContinuousExportOutput{}
  2167. req = c.newRequest(op, input, output)
  2168. return
  2169. }
  2170. // StopContinuousExport API operation for AWS Application Discovery Service.
  2171. //
  2172. // Stop the continuous flow of agent's discovered data into Amazon Athena.
  2173. //
  2174. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2175. // with awserr.Error's Code and Message methods to get detailed information about
  2176. // the error.
  2177. //
  2178. // See the AWS API reference guide for AWS Application Discovery Service's
  2179. // API operation StopContinuousExport for usage and error information.
  2180. //
  2181. // Returned Error Codes:
  2182. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  2183. // The AWS user account does not have permission to perform the action. Check
  2184. // the IAM policy associated with this account.
  2185. //
  2186. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2187. // One or more parameters are not valid. Verify the parameters and try again.
  2188. //
  2189. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  2190. // The value of one or more parameters are either invalid or out of range. Verify
  2191. // the parameter values and try again.
  2192. //
  2193. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  2194. // The server experienced an internal error. Try again.
  2195. //
  2196. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2197. // This operation is not permitted.
  2198. //
  2199. // * ErrCodeResourceNotFoundException "ResourceNotFoundException"
  2200. // The specified configuration ID was not located. Verify the configuration
  2201. // ID and try again.
  2202. //
  2203. // * ErrCodeResourceInUseException "ResourceInUseException"
  2204. // This issue occurs when the same clientRequestToken is used with the StartImportTask
  2205. // action, but with different parameters. For example, you use the same request
  2206. // token but have two different import URLs, you can encounter this issue. If
  2207. // the import tasks are meant to be different, use a different clientRequestToken,
  2208. // and try again.
  2209. //
  2210. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopContinuousExport
  2211. func (c *ApplicationDiscoveryService) StopContinuousExport(input *StopContinuousExportInput) (*StopContinuousExportOutput, error) {
  2212. req, out := c.StopContinuousExportRequest(input)
  2213. return out, req.Send()
  2214. }
  2215. // StopContinuousExportWithContext is the same as StopContinuousExport with the addition of
  2216. // the ability to pass a context and additional request options.
  2217. //
  2218. // See StopContinuousExport for details on how to use this API operation.
  2219. //
  2220. // The context must be non-nil and will be used for request cancellation. If
  2221. // the context is nil a panic will occur. In the future the SDK may create
  2222. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2223. // for more information on using Contexts.
  2224. func (c *ApplicationDiscoveryService) StopContinuousExportWithContext(ctx aws.Context, input *StopContinuousExportInput, opts ...request.Option) (*StopContinuousExportOutput, error) {
  2225. req, out := c.StopContinuousExportRequest(input)
  2226. req.SetContext(ctx)
  2227. req.ApplyOptions(opts...)
  2228. return out, req.Send()
  2229. }
  2230. const opStopDataCollectionByAgentIds = "StopDataCollectionByAgentIds"
  2231. // StopDataCollectionByAgentIdsRequest generates a "aws/request.Request" representing the
  2232. // client's request for the StopDataCollectionByAgentIds operation. The "output" return
  2233. // value will be populated with the request's response once the request completes
  2234. // successfully.
  2235. //
  2236. // Use "Send" method on the returned Request to send the API call to the service.
  2237. // the "output" return value is not valid until after Send returns without error.
  2238. //
  2239. // See StopDataCollectionByAgentIds for more information on using the StopDataCollectionByAgentIds
  2240. // API call, and error handling.
  2241. //
  2242. // This method is useful when you want to inject custom logic or configuration
  2243. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2244. //
  2245. //
  2246. // // Example sending a request using the StopDataCollectionByAgentIdsRequest method.
  2247. // req, resp := client.StopDataCollectionByAgentIdsRequest(params)
  2248. //
  2249. // err := req.Send()
  2250. // if err == nil { // resp is now filled
  2251. // fmt.Println(resp)
  2252. // }
  2253. //
  2254. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
  2255. func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsRequest(input *StopDataCollectionByAgentIdsInput) (req *request.Request, output *StopDataCollectionByAgentIdsOutput) {
  2256. op := &request.Operation{
  2257. Name: opStopDataCollectionByAgentIds,
  2258. HTTPMethod: "POST",
  2259. HTTPPath: "/",
  2260. }
  2261. if input == nil {
  2262. input = &StopDataCollectionByAgentIdsInput{}
  2263. }
  2264. output = &StopDataCollectionByAgentIdsOutput{}
  2265. req = c.newRequest(op, input, output)
  2266. return
  2267. }
  2268. // StopDataCollectionByAgentIds API operation for AWS Application Discovery Service.
  2269. //
  2270. // Instructs the specified agents or connectors to stop collecting data.
  2271. //
  2272. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2273. // with awserr.Error's Code and Message methods to get detailed information about
  2274. // the error.
  2275. //
  2276. // See the AWS API reference guide for AWS Application Discovery Service's
  2277. // API operation StopDataCollectionByAgentIds for usage and error information.
  2278. //
  2279. // Returned Error Codes:
  2280. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  2281. // The AWS user account does not have permission to perform the action. Check
  2282. // the IAM policy associated with this account.
  2283. //
  2284. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2285. // One or more parameters are not valid. Verify the parameters and try again.
  2286. //
  2287. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  2288. // The value of one or more parameters are either invalid or out of range. Verify
  2289. // the parameter values and try again.
  2290. //
  2291. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  2292. // The server experienced an internal error. Try again.
  2293. //
  2294. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/StopDataCollectionByAgentIds
  2295. func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIds(input *StopDataCollectionByAgentIdsInput) (*StopDataCollectionByAgentIdsOutput, error) {
  2296. req, out := c.StopDataCollectionByAgentIdsRequest(input)
  2297. return out, req.Send()
  2298. }
  2299. // StopDataCollectionByAgentIdsWithContext is the same as StopDataCollectionByAgentIds with the addition of
  2300. // the ability to pass a context and additional request options.
  2301. //
  2302. // See StopDataCollectionByAgentIds for details on how to use this API operation.
  2303. //
  2304. // The context must be non-nil and will be used for request cancellation. If
  2305. // the context is nil a panic will occur. In the future the SDK may create
  2306. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2307. // for more information on using Contexts.
  2308. func (c *ApplicationDiscoveryService) StopDataCollectionByAgentIdsWithContext(ctx aws.Context, input *StopDataCollectionByAgentIdsInput, opts ...request.Option) (*StopDataCollectionByAgentIdsOutput, error) {
  2309. req, out := c.StopDataCollectionByAgentIdsRequest(input)
  2310. req.SetContext(ctx)
  2311. req.ApplyOptions(opts...)
  2312. return out, req.Send()
  2313. }
  2314. const opUpdateApplication = "UpdateApplication"
  2315. // UpdateApplicationRequest generates a "aws/request.Request" representing the
  2316. // client's request for the UpdateApplication operation. The "output" return
  2317. // value will be populated with the request's response once the request completes
  2318. // successfully.
  2319. //
  2320. // Use "Send" method on the returned Request to send the API call to the service.
  2321. // the "output" return value is not valid until after Send returns without error.
  2322. //
  2323. // See UpdateApplication for more information on using the UpdateApplication
  2324. // API call, and error handling.
  2325. //
  2326. // This method is useful when you want to inject custom logic or configuration
  2327. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2328. //
  2329. //
  2330. // // Example sending a request using the UpdateApplicationRequest method.
  2331. // req, resp := client.UpdateApplicationRequest(params)
  2332. //
  2333. // err := req.Send()
  2334. // if err == nil { // resp is now filled
  2335. // fmt.Println(resp)
  2336. // }
  2337. //
  2338. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
  2339. func (c *ApplicationDiscoveryService) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
  2340. op := &request.Operation{
  2341. Name: opUpdateApplication,
  2342. HTTPMethod: "POST",
  2343. HTTPPath: "/",
  2344. }
  2345. if input == nil {
  2346. input = &UpdateApplicationInput{}
  2347. }
  2348. output = &UpdateApplicationOutput{}
  2349. req = c.newRequest(op, input, output)
  2350. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2351. return
  2352. }
  2353. // UpdateApplication API operation for AWS Application Discovery Service.
  2354. //
  2355. // Updates metadata about an application.
  2356. //
  2357. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2358. // with awserr.Error's Code and Message methods to get detailed information about
  2359. // the error.
  2360. //
  2361. // See the AWS API reference guide for AWS Application Discovery Service's
  2362. // API operation UpdateApplication for usage and error information.
  2363. //
  2364. // Returned Error Codes:
  2365. // * ErrCodeAuthorizationErrorException "AuthorizationErrorException"
  2366. // The AWS user account does not have permission to perform the action. Check
  2367. // the IAM policy associated with this account.
  2368. //
  2369. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2370. // One or more parameters are not valid. Verify the parameters and try again.
  2371. //
  2372. // * ErrCodeInvalidParameterValueException "InvalidParameterValueException"
  2373. // The value of one or more parameters are either invalid or out of range. Verify
  2374. // the parameter values and try again.
  2375. //
  2376. // * ErrCodeServerInternalErrorException "ServerInternalErrorException"
  2377. // The server experienced an internal error. Try again.
  2378. //
  2379. // See also, https://docs.aws.amazon.com/goto/WebAPI/discovery-2015-11-01/UpdateApplication
  2380. func (c *ApplicationDiscoveryService) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
  2381. req, out := c.UpdateApplicationRequest(input)
  2382. return out, req.Send()
  2383. }
  2384. // UpdateApplicationWithContext is the same as UpdateApplication with the addition of
  2385. // the ability to pass a context and additional request options.
  2386. //
  2387. // See UpdateApplication for details on how to use this API operation.
  2388. //
  2389. // The context must be non-nil and will be used for request cancellation. If
  2390. // the context is nil a panic will occur. In the future the SDK may create
  2391. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2392. // for more information on using Contexts.
  2393. func (c *ApplicationDiscoveryService) UpdateApplicationWithContext(ctx aws.Context, input *UpdateApplicationInput, opts ...request.Option) (*UpdateApplicationOutput, error) {
  2394. req, out := c.UpdateApplicationRequest(input)
  2395. req.SetContext(ctx)
  2396. req.ApplyOptions(opts...)
  2397. return out, req.Send()
  2398. }
  2399. // Information about agents or connectors that were instructed to start collecting
  2400. // data. Information includes the agent/connector ID, a description of the operation,
  2401. // and whether the agent/connector configuration was updated.
  2402. type AgentConfigurationStatus struct {
  2403. _ struct{} `type:"structure"`
  2404. // The agent/connector ID.
  2405. AgentId *string `locationName:"agentId" type:"string"`
  2406. // A description of the operation performed.
  2407. Description *string `locationName:"description" type:"string"`
  2408. // Information about the status of the StartDataCollection and StopDataCollection
  2409. // operations. The system has recorded the data collection operation. The agent/connector
  2410. // receives this command the next time it polls for a new command.
  2411. OperationSucceeded *bool `locationName:"operationSucceeded" type:"boolean"`
  2412. }
  2413. // String returns the string representation
  2414. func (s AgentConfigurationStatus) String() string {
  2415. return awsutil.Prettify(s)
  2416. }
  2417. // GoString returns the string representation
  2418. func (s AgentConfigurationStatus) GoString() string {
  2419. return s.String()
  2420. }
  2421. // SetAgentId sets the AgentId field's value.
  2422. func (s *AgentConfigurationStatus) SetAgentId(v string) *AgentConfigurationStatus {
  2423. s.AgentId = &v
  2424. return s
  2425. }
  2426. // SetDescription sets the Description field's value.
  2427. func (s *AgentConfigurationStatus) SetDescription(v string) *AgentConfigurationStatus {
  2428. s.Description = &v
  2429. return s
  2430. }
  2431. // SetOperationSucceeded sets the OperationSucceeded field's value.
  2432. func (s *AgentConfigurationStatus) SetOperationSucceeded(v bool) *AgentConfigurationStatus {
  2433. s.OperationSucceeded = &v
  2434. return s
  2435. }
  2436. // Information about agents or connectors associated with the user’s AWS account.
  2437. // Information includes agent or connector IDs, IP addresses, media access control
  2438. // (MAC) addresses, agent or connector health, hostname where the agent or connector
  2439. // resides, and agent version for each agent.
  2440. type AgentInfo struct {
  2441. _ struct{} `type:"structure"`
  2442. // The agent or connector ID.
  2443. AgentId *string `locationName:"agentId" type:"string"`
  2444. // Network details about the host where the agent or connector resides.
  2445. AgentNetworkInfoList []*AgentNetworkInfo `locationName:"agentNetworkInfoList" type:"list"`
  2446. // Type of agent.
  2447. AgentType *string `locationName:"agentType" type:"string"`
  2448. // Status of the collection process for an agent or connector.
  2449. CollectionStatus *string `locationName:"collectionStatus" type:"string"`
  2450. // The ID of the connector.
  2451. ConnectorId *string `locationName:"connectorId" type:"string"`
  2452. // The health of the agent or connector.
  2453. Health *string `locationName:"health" type:"string" enum:"AgentStatus"`
  2454. // The name of the host where the agent or connector resides. The host can be
  2455. // a server or virtual machine.
  2456. HostName *string `locationName:"hostName" type:"string"`
  2457. // Time since agent or connector health was reported.
  2458. LastHealthPingTime *string `locationName:"lastHealthPingTime" type:"string"`
  2459. // Agent's first registration timestamp in UTC.
  2460. RegisteredTime *string `locationName:"registeredTime" type:"string"`
  2461. // The agent or connector version.
  2462. Version *string `locationName:"version" type:"string"`
  2463. }
  2464. // String returns the string representation
  2465. func (s AgentInfo) String() string {
  2466. return awsutil.Prettify(s)
  2467. }
  2468. // GoString returns the string representation
  2469. func (s AgentInfo) GoString() string {
  2470. return s.String()
  2471. }
  2472. // SetAgentId sets the AgentId field's value.
  2473. func (s *AgentInfo) SetAgentId(v string) *AgentInfo {
  2474. s.AgentId = &v
  2475. return s
  2476. }
  2477. // SetAgentNetworkInfoList sets the AgentNetworkInfoList field's value.
  2478. func (s *AgentInfo) SetAgentNetworkInfoList(v []*AgentNetworkInfo) *AgentInfo {
  2479. s.AgentNetworkInfoList = v
  2480. return s
  2481. }
  2482. // SetAgentType sets the AgentType field's value.
  2483. func (s *AgentInfo) SetAgentType(v string) *AgentInfo {
  2484. s.AgentType = &v
  2485. return s
  2486. }
  2487. // SetCollectionStatus sets the CollectionStatus field's value.
  2488. func (s *AgentInfo) SetCollectionStatus(v string) *AgentInfo {
  2489. s.CollectionStatus = &v
  2490. return s
  2491. }
  2492. // SetConnectorId sets the ConnectorId field's value.
  2493. func (s *AgentInfo) SetConnectorId(v string) *AgentInfo {
  2494. s.ConnectorId = &v
  2495. return s
  2496. }
  2497. // SetHealth sets the Health field's value.
  2498. func (s *AgentInfo) SetHealth(v string) *AgentInfo {
  2499. s.Health = &v
  2500. return s
  2501. }
  2502. // SetHostName sets the HostName field's value.
  2503. func (s *AgentInfo) SetHostName(v string) *AgentInfo {
  2504. s.HostName = &v
  2505. return s
  2506. }
  2507. // SetLastHealthPingTime sets the LastHealthPingTime field's value.
  2508. func (s *AgentInfo) SetLastHealthPingTime(v string) *AgentInfo {
  2509. s.LastHealthPingTime = &v
  2510. return s
  2511. }
  2512. // SetRegisteredTime sets the RegisteredTime field's value.
  2513. func (s *AgentInfo) SetRegisteredTime(v string) *AgentInfo {
  2514. s.RegisteredTime = &v
  2515. return s
  2516. }
  2517. // SetVersion sets the Version field's value.
  2518. func (s *AgentInfo) SetVersion(v string) *AgentInfo {
  2519. s.Version = &v
  2520. return s
  2521. }
  2522. // Network details about the host where the agent/connector resides.
  2523. type AgentNetworkInfo struct {
  2524. _ struct{} `type:"structure"`
  2525. // The IP address for the host where the agent/connector resides.
  2526. IpAddress *string `locationName:"ipAddress" type:"string"`
  2527. // The MAC address for the host where the agent/connector resides.
  2528. MacAddress *string `locationName:"macAddress" type:"string"`
  2529. }
  2530. // String returns the string representation
  2531. func (s AgentNetworkInfo) String() string {
  2532. return awsutil.Prettify(s)
  2533. }
  2534. // GoString returns the string representation
  2535. func (s AgentNetworkInfo) GoString() string {
  2536. return s.String()
  2537. }
  2538. // SetIpAddress sets the IpAddress field's value.
  2539. func (s *AgentNetworkInfo) SetIpAddress(v string) *AgentNetworkInfo {
  2540. s.IpAddress = &v
  2541. return s
  2542. }
  2543. // SetMacAddress sets the MacAddress field's value.
  2544. func (s *AgentNetworkInfo) SetMacAddress(v string) *AgentNetworkInfo {
  2545. s.MacAddress = &v
  2546. return s
  2547. }
  2548. type AssociateConfigurationItemsToApplicationInput struct {
  2549. _ struct{} `type:"structure"`
  2550. // The configuration ID of an application with which items are to be associated.
  2551. //
  2552. // ApplicationConfigurationId is a required field
  2553. ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"`
  2554. // The ID of each configuration item to be associated with an application.
  2555. //
  2556. // ConfigurationIds is a required field
  2557. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  2558. }
  2559. // String returns the string representation
  2560. func (s AssociateConfigurationItemsToApplicationInput) String() string {
  2561. return awsutil.Prettify(s)
  2562. }
  2563. // GoString returns the string representation
  2564. func (s AssociateConfigurationItemsToApplicationInput) GoString() string {
  2565. return s.String()
  2566. }
  2567. // Validate inspects the fields of the type to determine if they are valid.
  2568. func (s *AssociateConfigurationItemsToApplicationInput) Validate() error {
  2569. invalidParams := request.ErrInvalidParams{Context: "AssociateConfigurationItemsToApplicationInput"}
  2570. if s.ApplicationConfigurationId == nil {
  2571. invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId"))
  2572. }
  2573. if s.ConfigurationIds == nil {
  2574. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  2575. }
  2576. if invalidParams.Len() > 0 {
  2577. return invalidParams
  2578. }
  2579. return nil
  2580. }
  2581. // SetApplicationConfigurationId sets the ApplicationConfigurationId field's value.
  2582. func (s *AssociateConfigurationItemsToApplicationInput) SetApplicationConfigurationId(v string) *AssociateConfigurationItemsToApplicationInput {
  2583. s.ApplicationConfigurationId = &v
  2584. return s
  2585. }
  2586. // SetConfigurationIds sets the ConfigurationIds field's value.
  2587. func (s *AssociateConfigurationItemsToApplicationInput) SetConfigurationIds(v []*string) *AssociateConfigurationItemsToApplicationInput {
  2588. s.ConfigurationIds = v
  2589. return s
  2590. }
  2591. type AssociateConfigurationItemsToApplicationOutput struct {
  2592. _ struct{} `type:"structure"`
  2593. }
  2594. // String returns the string representation
  2595. func (s AssociateConfigurationItemsToApplicationOutput) String() string {
  2596. return awsutil.Prettify(s)
  2597. }
  2598. // GoString returns the string representation
  2599. func (s AssociateConfigurationItemsToApplicationOutput) GoString() string {
  2600. return s.String()
  2601. }
  2602. // Error messages returned for each import task that you deleted as a response
  2603. // for this command.
  2604. type BatchDeleteImportDataError struct {
  2605. _ struct{} `type:"structure"`
  2606. // The type of error that occurred for a specific import task.
  2607. ErrorCode *string `locationName:"errorCode" type:"string" enum:"BatchDeleteImportDataErrorCode"`
  2608. // The description of the error that occurred for a specific import task.
  2609. ErrorDescription *string `locationName:"errorDescription" type:"string"`
  2610. // The unique import ID associated with the error that occurred.
  2611. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  2612. }
  2613. // String returns the string representation
  2614. func (s BatchDeleteImportDataError) String() string {
  2615. return awsutil.Prettify(s)
  2616. }
  2617. // GoString returns the string representation
  2618. func (s BatchDeleteImportDataError) GoString() string {
  2619. return s.String()
  2620. }
  2621. // SetErrorCode sets the ErrorCode field's value.
  2622. func (s *BatchDeleteImportDataError) SetErrorCode(v string) *BatchDeleteImportDataError {
  2623. s.ErrorCode = &v
  2624. return s
  2625. }
  2626. // SetErrorDescription sets the ErrorDescription field's value.
  2627. func (s *BatchDeleteImportDataError) SetErrorDescription(v string) *BatchDeleteImportDataError {
  2628. s.ErrorDescription = &v
  2629. return s
  2630. }
  2631. // SetImportTaskId sets the ImportTaskId field's value.
  2632. func (s *BatchDeleteImportDataError) SetImportTaskId(v string) *BatchDeleteImportDataError {
  2633. s.ImportTaskId = &v
  2634. return s
  2635. }
  2636. type BatchDeleteImportDataInput struct {
  2637. _ struct{} `type:"structure"`
  2638. // The IDs for the import tasks that you want to delete.
  2639. //
  2640. // ImportTaskIds is a required field
  2641. ImportTaskIds []*string `locationName:"importTaskIds" min:"1" type:"list" required:"true"`
  2642. }
  2643. // String returns the string representation
  2644. func (s BatchDeleteImportDataInput) String() string {
  2645. return awsutil.Prettify(s)
  2646. }
  2647. // GoString returns the string representation
  2648. func (s BatchDeleteImportDataInput) GoString() string {
  2649. return s.String()
  2650. }
  2651. // Validate inspects the fields of the type to determine if they are valid.
  2652. func (s *BatchDeleteImportDataInput) Validate() error {
  2653. invalidParams := request.ErrInvalidParams{Context: "BatchDeleteImportDataInput"}
  2654. if s.ImportTaskIds == nil {
  2655. invalidParams.Add(request.NewErrParamRequired("ImportTaskIds"))
  2656. }
  2657. if s.ImportTaskIds != nil && len(s.ImportTaskIds) < 1 {
  2658. invalidParams.Add(request.NewErrParamMinLen("ImportTaskIds", 1))
  2659. }
  2660. if invalidParams.Len() > 0 {
  2661. return invalidParams
  2662. }
  2663. return nil
  2664. }
  2665. // SetImportTaskIds sets the ImportTaskIds field's value.
  2666. func (s *BatchDeleteImportDataInput) SetImportTaskIds(v []*string) *BatchDeleteImportDataInput {
  2667. s.ImportTaskIds = v
  2668. return s
  2669. }
  2670. type BatchDeleteImportDataOutput struct {
  2671. _ struct{} `type:"structure"`
  2672. // Error messages returned for each import task that you deleted as a response
  2673. // for this command.
  2674. Errors []*BatchDeleteImportDataError `locationName:"errors" type:"list"`
  2675. }
  2676. // String returns the string representation
  2677. func (s BatchDeleteImportDataOutput) String() string {
  2678. return awsutil.Prettify(s)
  2679. }
  2680. // GoString returns the string representation
  2681. func (s BatchDeleteImportDataOutput) GoString() string {
  2682. return s.String()
  2683. }
  2684. // SetErrors sets the Errors field's value.
  2685. func (s *BatchDeleteImportDataOutput) SetErrors(v []*BatchDeleteImportDataError) *BatchDeleteImportDataOutput {
  2686. s.Errors = v
  2687. return s
  2688. }
  2689. // Tags for a configuration item. Tags are metadata that help you categorize
  2690. // IT assets.
  2691. type ConfigurationTag struct {
  2692. _ struct{} `type:"structure"`
  2693. // The configuration ID for the item to tag. You can specify a list of keys
  2694. // and values.
  2695. ConfigurationId *string `locationName:"configurationId" type:"string"`
  2696. // A type of IT asset to tag.
  2697. ConfigurationType *string `locationName:"configurationType" type:"string" enum:"ConfigurationItemType"`
  2698. // A type of tag on which to filter. For example, serverType.
  2699. Key *string `locationName:"key" type:"string"`
  2700. // The time the configuration tag was created in Coordinated Universal Time
  2701. // (UTC).
  2702. TimeOfCreation *time.Time `locationName:"timeOfCreation" type:"timestamp"`
  2703. // A value on which to filter. For example key = serverType and value = web
  2704. // server.
  2705. Value *string `locationName:"value" type:"string"`
  2706. }
  2707. // String returns the string representation
  2708. func (s ConfigurationTag) String() string {
  2709. return awsutil.Prettify(s)
  2710. }
  2711. // GoString returns the string representation
  2712. func (s ConfigurationTag) GoString() string {
  2713. return s.String()
  2714. }
  2715. // SetConfigurationId sets the ConfigurationId field's value.
  2716. func (s *ConfigurationTag) SetConfigurationId(v string) *ConfigurationTag {
  2717. s.ConfigurationId = &v
  2718. return s
  2719. }
  2720. // SetConfigurationType sets the ConfigurationType field's value.
  2721. func (s *ConfigurationTag) SetConfigurationType(v string) *ConfigurationTag {
  2722. s.ConfigurationType = &v
  2723. return s
  2724. }
  2725. // SetKey sets the Key field's value.
  2726. func (s *ConfigurationTag) SetKey(v string) *ConfigurationTag {
  2727. s.Key = &v
  2728. return s
  2729. }
  2730. // SetTimeOfCreation sets the TimeOfCreation field's value.
  2731. func (s *ConfigurationTag) SetTimeOfCreation(v time.Time) *ConfigurationTag {
  2732. s.TimeOfCreation = &v
  2733. return s
  2734. }
  2735. // SetValue sets the Value field's value.
  2736. func (s *ConfigurationTag) SetValue(v string) *ConfigurationTag {
  2737. s.Value = &v
  2738. return s
  2739. }
  2740. // A list of continuous export descriptions.
  2741. type ContinuousExportDescription struct {
  2742. _ struct{} `type:"structure"`
  2743. // The type of data collector used to gather this data (currently only offered
  2744. // for AGENT).
  2745. DataSource *string `locationName:"dataSource" type:"string" enum:"DataSource"`
  2746. // The unique ID assigned to this export.
  2747. ExportId *string `locationName:"exportId" type:"string"`
  2748. // The name of the s3 bucket where the export data parquet files are stored.
  2749. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  2750. // An object which describes how the data is stored.
  2751. //
  2752. // * databaseName - the name of the Glue database used to store the schema.
  2753. SchemaStorageConfig map[string]*string `locationName:"schemaStorageConfig" type:"map"`
  2754. // The timestamp representing when the continuous export was started.
  2755. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  2756. // Describes the status of the export. Can be one of the following values:
  2757. //
  2758. // * START_IN_PROGRESS - setting up resources to start continuous export.
  2759. //
  2760. // * START_FAILED - an error occurred setting up continuous export. To recover,
  2761. // call start-continuous-export again.
  2762. //
  2763. // * ACTIVE - data is being exported to the customer bucket.
  2764. //
  2765. // * ERROR - an error occurred during export. To fix the issue, call stop-continuous-export
  2766. // and start-continuous-export.
  2767. //
  2768. // * STOP_IN_PROGRESS - stopping the export.
  2769. //
  2770. // * STOP_FAILED - an error occurred stopping the export. To recover, call
  2771. // stop-continuous-export again.
  2772. //
  2773. // * INACTIVE - the continuous export has been stopped. Data is no longer
  2774. // being exported to the customer bucket.
  2775. Status *string `locationName:"status" type:"string" enum:"ContinuousExportStatus"`
  2776. // Contains information about any errors that have occurred. This data type
  2777. // can have the following values:
  2778. //
  2779. // * ACCESS_DENIED - You don’t have permission to start Data Exploration
  2780. // in Amazon Athena. Contact your AWS administrator for help. For more information,
  2781. // see Setting Up AWS Application Discovery Service (http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html)
  2782. // in the Application Discovery Service User Guide.
  2783. //
  2784. // * DELIVERY_STREAM_LIMIT_FAILURE - You reached the limit for Amazon Kinesis
  2785. // Data Firehose delivery streams. Reduce the number of streams or request
  2786. // a limit increase and try again. For more information, see Kinesis Data
  2787. // Streams Limits (http://docs.aws.amazon.com/streams/latest/dev/service-sizes-and-limits.html)
  2788. // in the Amazon Kinesis Data Streams Developer Guide.
  2789. //
  2790. // * FIREHOSE_ROLE_MISSING - The Data Exploration feature is in an error
  2791. // state because your IAM User is missing the AWSApplicationDiscoveryServiceFirehose
  2792. // role. Turn on Data Exploration in Amazon Athena and try again. For more
  2793. // information, see Step 3: Provide Application Discovery Service Access
  2794. // to Non-Administrator Users by Attaching Policies (http://docs.aws.amazon.com/application-discovery/latest/userguide/setting-up.html#setting-up-user-policy)
  2795. // in the Application Discovery Service User Guide.
  2796. //
  2797. // * FIREHOSE_STREAM_DOES_NOT_EXIST - The Data Exploration feature is in
  2798. // an error state because your IAM User is missing one or more of the Kinesis
  2799. // data delivery streams.
  2800. //
  2801. // * INTERNAL_FAILURE - The Data Exploration feature is in an error state
  2802. // because of an internal failure. Try again later. If this problem persists,
  2803. // contact AWS Support.
  2804. //
  2805. // * S3_BUCKET_LIMIT_FAILURE - You reached the limit for Amazon S3 buckets.
  2806. // Reduce the number of Amazon S3 buckets or request a limit increase and
  2807. // try again. For more information, see Bucket Restrictions and Limitations
  2808. // (http://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html)
  2809. // in the Amazon Simple Storage Service Developer Guide.
  2810. StatusDetail *string `locationName:"statusDetail" min:"1" type:"string"`
  2811. // The timestamp that represents when this continuous export was stopped.
  2812. StopTime *time.Time `locationName:"stopTime" type:"timestamp"`
  2813. }
  2814. // String returns the string representation
  2815. func (s ContinuousExportDescription) String() string {
  2816. return awsutil.Prettify(s)
  2817. }
  2818. // GoString returns the string representation
  2819. func (s ContinuousExportDescription) GoString() string {
  2820. return s.String()
  2821. }
  2822. // SetDataSource sets the DataSource field's value.
  2823. func (s *ContinuousExportDescription) SetDataSource(v string) *ContinuousExportDescription {
  2824. s.DataSource = &v
  2825. return s
  2826. }
  2827. // SetExportId sets the ExportId field's value.
  2828. func (s *ContinuousExportDescription) SetExportId(v string) *ContinuousExportDescription {
  2829. s.ExportId = &v
  2830. return s
  2831. }
  2832. // SetS3Bucket sets the S3Bucket field's value.
  2833. func (s *ContinuousExportDescription) SetS3Bucket(v string) *ContinuousExportDescription {
  2834. s.S3Bucket = &v
  2835. return s
  2836. }
  2837. // SetSchemaStorageConfig sets the SchemaStorageConfig field's value.
  2838. func (s *ContinuousExportDescription) SetSchemaStorageConfig(v map[string]*string) *ContinuousExportDescription {
  2839. s.SchemaStorageConfig = v
  2840. return s
  2841. }
  2842. // SetStartTime sets the StartTime field's value.
  2843. func (s *ContinuousExportDescription) SetStartTime(v time.Time) *ContinuousExportDescription {
  2844. s.StartTime = &v
  2845. return s
  2846. }
  2847. // SetStatus sets the Status field's value.
  2848. func (s *ContinuousExportDescription) SetStatus(v string) *ContinuousExportDescription {
  2849. s.Status = &v
  2850. return s
  2851. }
  2852. // SetStatusDetail sets the StatusDetail field's value.
  2853. func (s *ContinuousExportDescription) SetStatusDetail(v string) *ContinuousExportDescription {
  2854. s.StatusDetail = &v
  2855. return s
  2856. }
  2857. // SetStopTime sets the StopTime field's value.
  2858. func (s *ContinuousExportDescription) SetStopTime(v time.Time) *ContinuousExportDescription {
  2859. s.StopTime = &v
  2860. return s
  2861. }
  2862. type CreateApplicationInput struct {
  2863. _ struct{} `type:"structure"`
  2864. // Description of the application to be created.
  2865. Description *string `locationName:"description" type:"string"`
  2866. // Name of the application to be created.
  2867. //
  2868. // Name is a required field
  2869. Name *string `locationName:"name" type:"string" required:"true"`
  2870. }
  2871. // String returns the string representation
  2872. func (s CreateApplicationInput) String() string {
  2873. return awsutil.Prettify(s)
  2874. }
  2875. // GoString returns the string representation
  2876. func (s CreateApplicationInput) GoString() string {
  2877. return s.String()
  2878. }
  2879. // Validate inspects the fields of the type to determine if they are valid.
  2880. func (s *CreateApplicationInput) Validate() error {
  2881. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
  2882. if s.Name == nil {
  2883. invalidParams.Add(request.NewErrParamRequired("Name"))
  2884. }
  2885. if invalidParams.Len() > 0 {
  2886. return invalidParams
  2887. }
  2888. return nil
  2889. }
  2890. // SetDescription sets the Description field's value.
  2891. func (s *CreateApplicationInput) SetDescription(v string) *CreateApplicationInput {
  2892. s.Description = &v
  2893. return s
  2894. }
  2895. // SetName sets the Name field's value.
  2896. func (s *CreateApplicationInput) SetName(v string) *CreateApplicationInput {
  2897. s.Name = &v
  2898. return s
  2899. }
  2900. type CreateApplicationOutput struct {
  2901. _ struct{} `type:"structure"`
  2902. // Configuration ID of an application to be created.
  2903. ConfigurationId *string `locationName:"configurationId" type:"string"`
  2904. }
  2905. // String returns the string representation
  2906. func (s CreateApplicationOutput) String() string {
  2907. return awsutil.Prettify(s)
  2908. }
  2909. // GoString returns the string representation
  2910. func (s CreateApplicationOutput) GoString() string {
  2911. return s.String()
  2912. }
  2913. // SetConfigurationId sets the ConfigurationId field's value.
  2914. func (s *CreateApplicationOutput) SetConfigurationId(v string) *CreateApplicationOutput {
  2915. s.ConfigurationId = &v
  2916. return s
  2917. }
  2918. type CreateTagsInput struct {
  2919. _ struct{} `type:"structure"`
  2920. // A list of configuration items that you want to tag.
  2921. //
  2922. // ConfigurationIds is a required field
  2923. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  2924. // Tags that you want to associate with one or more configuration items. Specify
  2925. // the tags that you want to create in a key-value format. For example:
  2926. //
  2927. // {"key": "serverType", "value": "webServer"}
  2928. //
  2929. // Tags is a required field
  2930. Tags []*Tag `locationName:"tags" type:"list" required:"true"`
  2931. }
  2932. // String returns the string representation
  2933. func (s CreateTagsInput) String() string {
  2934. return awsutil.Prettify(s)
  2935. }
  2936. // GoString returns the string representation
  2937. func (s CreateTagsInput) GoString() string {
  2938. return s.String()
  2939. }
  2940. // Validate inspects the fields of the type to determine if they are valid.
  2941. func (s *CreateTagsInput) Validate() error {
  2942. invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
  2943. if s.ConfigurationIds == nil {
  2944. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  2945. }
  2946. if s.Tags == nil {
  2947. invalidParams.Add(request.NewErrParamRequired("Tags"))
  2948. }
  2949. if s.Tags != nil {
  2950. for i, v := range s.Tags {
  2951. if v == nil {
  2952. continue
  2953. }
  2954. if err := v.Validate(); err != nil {
  2955. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  2956. }
  2957. }
  2958. }
  2959. if invalidParams.Len() > 0 {
  2960. return invalidParams
  2961. }
  2962. return nil
  2963. }
  2964. // SetConfigurationIds sets the ConfigurationIds field's value.
  2965. func (s *CreateTagsInput) SetConfigurationIds(v []*string) *CreateTagsInput {
  2966. s.ConfigurationIds = v
  2967. return s
  2968. }
  2969. // SetTags sets the Tags field's value.
  2970. func (s *CreateTagsInput) SetTags(v []*Tag) *CreateTagsInput {
  2971. s.Tags = v
  2972. return s
  2973. }
  2974. type CreateTagsOutput struct {
  2975. _ struct{} `type:"structure"`
  2976. }
  2977. // String returns the string representation
  2978. func (s CreateTagsOutput) String() string {
  2979. return awsutil.Prettify(s)
  2980. }
  2981. // GoString returns the string representation
  2982. func (s CreateTagsOutput) GoString() string {
  2983. return s.String()
  2984. }
  2985. // Inventory data for installed discovery agents.
  2986. type CustomerAgentInfo struct {
  2987. _ struct{} `type:"structure"`
  2988. // Number of active discovery agents.
  2989. //
  2990. // ActiveAgents is a required field
  2991. ActiveAgents *int64 `locationName:"activeAgents" type:"integer" required:"true"`
  2992. // Number of blacklisted discovery agents.
  2993. //
  2994. // BlackListedAgents is a required field
  2995. BlackListedAgents *int64 `locationName:"blackListedAgents" type:"integer" required:"true"`
  2996. // Number of healthy discovery agents
  2997. //
  2998. // HealthyAgents is a required field
  2999. HealthyAgents *int64 `locationName:"healthyAgents" type:"integer" required:"true"`
  3000. // Number of discovery agents with status SHUTDOWN.
  3001. //
  3002. // ShutdownAgents is a required field
  3003. ShutdownAgents *int64 `locationName:"shutdownAgents" type:"integer" required:"true"`
  3004. // Total number of discovery agents.
  3005. //
  3006. // TotalAgents is a required field
  3007. TotalAgents *int64 `locationName:"totalAgents" type:"integer" required:"true"`
  3008. // Number of unhealthy discovery agents.
  3009. //
  3010. // UnhealthyAgents is a required field
  3011. UnhealthyAgents *int64 `locationName:"unhealthyAgents" type:"integer" required:"true"`
  3012. // Number of unknown discovery agents.
  3013. //
  3014. // UnknownAgents is a required field
  3015. UnknownAgents *int64 `locationName:"unknownAgents" type:"integer" required:"true"`
  3016. }
  3017. // String returns the string representation
  3018. func (s CustomerAgentInfo) String() string {
  3019. return awsutil.Prettify(s)
  3020. }
  3021. // GoString returns the string representation
  3022. func (s CustomerAgentInfo) GoString() string {
  3023. return s.String()
  3024. }
  3025. // SetActiveAgents sets the ActiveAgents field's value.
  3026. func (s *CustomerAgentInfo) SetActiveAgents(v int64) *CustomerAgentInfo {
  3027. s.ActiveAgents = &v
  3028. return s
  3029. }
  3030. // SetBlackListedAgents sets the BlackListedAgents field's value.
  3031. func (s *CustomerAgentInfo) SetBlackListedAgents(v int64) *CustomerAgentInfo {
  3032. s.BlackListedAgents = &v
  3033. return s
  3034. }
  3035. // SetHealthyAgents sets the HealthyAgents field's value.
  3036. func (s *CustomerAgentInfo) SetHealthyAgents(v int64) *CustomerAgentInfo {
  3037. s.HealthyAgents = &v
  3038. return s
  3039. }
  3040. // SetShutdownAgents sets the ShutdownAgents field's value.
  3041. func (s *CustomerAgentInfo) SetShutdownAgents(v int64) *CustomerAgentInfo {
  3042. s.ShutdownAgents = &v
  3043. return s
  3044. }
  3045. // SetTotalAgents sets the TotalAgents field's value.
  3046. func (s *CustomerAgentInfo) SetTotalAgents(v int64) *CustomerAgentInfo {
  3047. s.TotalAgents = &v
  3048. return s
  3049. }
  3050. // SetUnhealthyAgents sets the UnhealthyAgents field's value.
  3051. func (s *CustomerAgentInfo) SetUnhealthyAgents(v int64) *CustomerAgentInfo {
  3052. s.UnhealthyAgents = &v
  3053. return s
  3054. }
  3055. // SetUnknownAgents sets the UnknownAgents field's value.
  3056. func (s *CustomerAgentInfo) SetUnknownAgents(v int64) *CustomerAgentInfo {
  3057. s.UnknownAgents = &v
  3058. return s
  3059. }
  3060. // Inventory data for installed discovery connectors.
  3061. type CustomerConnectorInfo struct {
  3062. _ struct{} `type:"structure"`
  3063. // Number of active discovery connectors.
  3064. //
  3065. // ActiveConnectors is a required field
  3066. ActiveConnectors *int64 `locationName:"activeConnectors" type:"integer" required:"true"`
  3067. // Number of blacklisted discovery connectors.
  3068. //
  3069. // BlackListedConnectors is a required field
  3070. BlackListedConnectors *int64 `locationName:"blackListedConnectors" type:"integer" required:"true"`
  3071. // Number of healthy discovery connectors.
  3072. //
  3073. // HealthyConnectors is a required field
  3074. HealthyConnectors *int64 `locationName:"healthyConnectors" type:"integer" required:"true"`
  3075. // Number of discovery connectors with status SHUTDOWN,
  3076. //
  3077. // ShutdownConnectors is a required field
  3078. ShutdownConnectors *int64 `locationName:"shutdownConnectors" type:"integer" required:"true"`
  3079. // Total number of discovery connectors.
  3080. //
  3081. // TotalConnectors is a required field
  3082. TotalConnectors *int64 `locationName:"totalConnectors" type:"integer" required:"true"`
  3083. // Number of unhealthy discovery connectors.
  3084. //
  3085. // UnhealthyConnectors is a required field
  3086. UnhealthyConnectors *int64 `locationName:"unhealthyConnectors" type:"integer" required:"true"`
  3087. // Number of unknown discovery connectors.
  3088. //
  3089. // UnknownConnectors is a required field
  3090. UnknownConnectors *int64 `locationName:"unknownConnectors" type:"integer" required:"true"`
  3091. }
  3092. // String returns the string representation
  3093. func (s CustomerConnectorInfo) String() string {
  3094. return awsutil.Prettify(s)
  3095. }
  3096. // GoString returns the string representation
  3097. func (s CustomerConnectorInfo) GoString() string {
  3098. return s.String()
  3099. }
  3100. // SetActiveConnectors sets the ActiveConnectors field's value.
  3101. func (s *CustomerConnectorInfo) SetActiveConnectors(v int64) *CustomerConnectorInfo {
  3102. s.ActiveConnectors = &v
  3103. return s
  3104. }
  3105. // SetBlackListedConnectors sets the BlackListedConnectors field's value.
  3106. func (s *CustomerConnectorInfo) SetBlackListedConnectors(v int64) *CustomerConnectorInfo {
  3107. s.BlackListedConnectors = &v
  3108. return s
  3109. }
  3110. // SetHealthyConnectors sets the HealthyConnectors field's value.
  3111. func (s *CustomerConnectorInfo) SetHealthyConnectors(v int64) *CustomerConnectorInfo {
  3112. s.HealthyConnectors = &v
  3113. return s
  3114. }
  3115. // SetShutdownConnectors sets the ShutdownConnectors field's value.
  3116. func (s *CustomerConnectorInfo) SetShutdownConnectors(v int64) *CustomerConnectorInfo {
  3117. s.ShutdownConnectors = &v
  3118. return s
  3119. }
  3120. // SetTotalConnectors sets the TotalConnectors field's value.
  3121. func (s *CustomerConnectorInfo) SetTotalConnectors(v int64) *CustomerConnectorInfo {
  3122. s.TotalConnectors = &v
  3123. return s
  3124. }
  3125. // SetUnhealthyConnectors sets the UnhealthyConnectors field's value.
  3126. func (s *CustomerConnectorInfo) SetUnhealthyConnectors(v int64) *CustomerConnectorInfo {
  3127. s.UnhealthyConnectors = &v
  3128. return s
  3129. }
  3130. // SetUnknownConnectors sets the UnknownConnectors field's value.
  3131. func (s *CustomerConnectorInfo) SetUnknownConnectors(v int64) *CustomerConnectorInfo {
  3132. s.UnknownConnectors = &v
  3133. return s
  3134. }
  3135. type DeleteApplicationsInput struct {
  3136. _ struct{} `type:"structure"`
  3137. // Configuration ID of an application to be deleted.
  3138. //
  3139. // ConfigurationIds is a required field
  3140. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  3141. }
  3142. // String returns the string representation
  3143. func (s DeleteApplicationsInput) String() string {
  3144. return awsutil.Prettify(s)
  3145. }
  3146. // GoString returns the string representation
  3147. func (s DeleteApplicationsInput) GoString() string {
  3148. return s.String()
  3149. }
  3150. // Validate inspects the fields of the type to determine if they are valid.
  3151. func (s *DeleteApplicationsInput) Validate() error {
  3152. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationsInput"}
  3153. if s.ConfigurationIds == nil {
  3154. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  3155. }
  3156. if invalidParams.Len() > 0 {
  3157. return invalidParams
  3158. }
  3159. return nil
  3160. }
  3161. // SetConfigurationIds sets the ConfigurationIds field's value.
  3162. func (s *DeleteApplicationsInput) SetConfigurationIds(v []*string) *DeleteApplicationsInput {
  3163. s.ConfigurationIds = v
  3164. return s
  3165. }
  3166. type DeleteApplicationsOutput struct {
  3167. _ struct{} `type:"structure"`
  3168. }
  3169. // String returns the string representation
  3170. func (s DeleteApplicationsOutput) String() string {
  3171. return awsutil.Prettify(s)
  3172. }
  3173. // GoString returns the string representation
  3174. func (s DeleteApplicationsOutput) GoString() string {
  3175. return s.String()
  3176. }
  3177. type DeleteTagsInput struct {
  3178. _ struct{} `type:"structure"`
  3179. // A list of configuration items with tags that you want to delete.
  3180. //
  3181. // ConfigurationIds is a required field
  3182. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  3183. // Tags that you want to delete from one or more configuration items. Specify
  3184. // the tags that you want to delete in a key-value format. For example:
  3185. //
  3186. // {"key": "serverType", "value": "webServer"}
  3187. Tags []*Tag `locationName:"tags" type:"list"`
  3188. }
  3189. // String returns the string representation
  3190. func (s DeleteTagsInput) String() string {
  3191. return awsutil.Prettify(s)
  3192. }
  3193. // GoString returns the string representation
  3194. func (s DeleteTagsInput) GoString() string {
  3195. return s.String()
  3196. }
  3197. // Validate inspects the fields of the type to determine if they are valid.
  3198. func (s *DeleteTagsInput) Validate() error {
  3199. invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
  3200. if s.ConfigurationIds == nil {
  3201. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  3202. }
  3203. if s.Tags != nil {
  3204. for i, v := range s.Tags {
  3205. if v == nil {
  3206. continue
  3207. }
  3208. if err := v.Validate(); err != nil {
  3209. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  3210. }
  3211. }
  3212. }
  3213. if invalidParams.Len() > 0 {
  3214. return invalidParams
  3215. }
  3216. return nil
  3217. }
  3218. // SetConfigurationIds sets the ConfigurationIds field's value.
  3219. func (s *DeleteTagsInput) SetConfigurationIds(v []*string) *DeleteTagsInput {
  3220. s.ConfigurationIds = v
  3221. return s
  3222. }
  3223. // SetTags sets the Tags field's value.
  3224. func (s *DeleteTagsInput) SetTags(v []*Tag) *DeleteTagsInput {
  3225. s.Tags = v
  3226. return s
  3227. }
  3228. type DeleteTagsOutput struct {
  3229. _ struct{} `type:"structure"`
  3230. }
  3231. // String returns the string representation
  3232. func (s DeleteTagsOutput) String() string {
  3233. return awsutil.Prettify(s)
  3234. }
  3235. // GoString returns the string representation
  3236. func (s DeleteTagsOutput) GoString() string {
  3237. return s.String()
  3238. }
  3239. type DescribeAgentsInput struct {
  3240. _ struct{} `type:"structure"`
  3241. // The agent or the Connector IDs for which you want information. If you specify
  3242. // no IDs, the system returns information about all agents/Connectors associated
  3243. // with your AWS user account.
  3244. AgentIds []*string `locationName:"agentIds" type:"list"`
  3245. // You can filter the request using various logical operators and a key-value
  3246. // format. For example:
  3247. //
  3248. // {"key": "collectionStatus", "value": "STARTED"}
  3249. Filters []*Filter `locationName:"filters" type:"list"`
  3250. // The total number of agents/Connectors to return in a single page of output.
  3251. // The maximum value is 100.
  3252. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3253. // Token to retrieve the next set of results. For example, if you previously
  3254. // specified 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults
  3255. // to 10, you received a set of 10 results along with a token. Use that token
  3256. // in this query to get the next set of 10.
  3257. NextToken *string `locationName:"nextToken" type:"string"`
  3258. }
  3259. // String returns the string representation
  3260. func (s DescribeAgentsInput) String() string {
  3261. return awsutil.Prettify(s)
  3262. }
  3263. // GoString returns the string representation
  3264. func (s DescribeAgentsInput) GoString() string {
  3265. return s.String()
  3266. }
  3267. // Validate inspects the fields of the type to determine if they are valid.
  3268. func (s *DescribeAgentsInput) Validate() error {
  3269. invalidParams := request.ErrInvalidParams{Context: "DescribeAgentsInput"}
  3270. if s.Filters != nil {
  3271. for i, v := range s.Filters {
  3272. if v == nil {
  3273. continue
  3274. }
  3275. if err := v.Validate(); err != nil {
  3276. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3277. }
  3278. }
  3279. }
  3280. if invalidParams.Len() > 0 {
  3281. return invalidParams
  3282. }
  3283. return nil
  3284. }
  3285. // SetAgentIds sets the AgentIds field's value.
  3286. func (s *DescribeAgentsInput) SetAgentIds(v []*string) *DescribeAgentsInput {
  3287. s.AgentIds = v
  3288. return s
  3289. }
  3290. // SetFilters sets the Filters field's value.
  3291. func (s *DescribeAgentsInput) SetFilters(v []*Filter) *DescribeAgentsInput {
  3292. s.Filters = v
  3293. return s
  3294. }
  3295. // SetMaxResults sets the MaxResults field's value.
  3296. func (s *DescribeAgentsInput) SetMaxResults(v int64) *DescribeAgentsInput {
  3297. s.MaxResults = &v
  3298. return s
  3299. }
  3300. // SetNextToken sets the NextToken field's value.
  3301. func (s *DescribeAgentsInput) SetNextToken(v string) *DescribeAgentsInput {
  3302. s.NextToken = &v
  3303. return s
  3304. }
  3305. type DescribeAgentsOutput struct {
  3306. _ struct{} `type:"structure"`
  3307. // Lists agents or the Connector by ID or lists all agents/Connectors associated
  3308. // with your user account if you did not specify an agent/Connector ID. The
  3309. // output includes agent/Connector IDs, IP addresses, media access control (MAC)
  3310. // addresses, agent/Connector health, host name where the agent/Connector resides,
  3311. // and the version number of each agent/Connector.
  3312. AgentsInfo []*AgentInfo `locationName:"agentsInfo" type:"list"`
  3313. // Token to retrieve the next set of results. For example, if you specified
  3314. // 100 IDs for DescribeAgentsRequest$agentIds but set DescribeAgentsRequest$maxResults
  3315. // to 10, you received a set of 10 results along with this token. Use this token
  3316. // in the next query to retrieve the next set of 10.
  3317. NextToken *string `locationName:"nextToken" type:"string"`
  3318. }
  3319. // String returns the string representation
  3320. func (s DescribeAgentsOutput) String() string {
  3321. return awsutil.Prettify(s)
  3322. }
  3323. // GoString returns the string representation
  3324. func (s DescribeAgentsOutput) GoString() string {
  3325. return s.String()
  3326. }
  3327. // SetAgentsInfo sets the AgentsInfo field's value.
  3328. func (s *DescribeAgentsOutput) SetAgentsInfo(v []*AgentInfo) *DescribeAgentsOutput {
  3329. s.AgentsInfo = v
  3330. return s
  3331. }
  3332. // SetNextToken sets the NextToken field's value.
  3333. func (s *DescribeAgentsOutput) SetNextToken(v string) *DescribeAgentsOutput {
  3334. s.NextToken = &v
  3335. return s
  3336. }
  3337. type DescribeConfigurationsInput struct {
  3338. _ struct{} `type:"structure"`
  3339. // One or more configuration IDs.
  3340. //
  3341. // ConfigurationIds is a required field
  3342. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  3343. }
  3344. // String returns the string representation
  3345. func (s DescribeConfigurationsInput) String() string {
  3346. return awsutil.Prettify(s)
  3347. }
  3348. // GoString returns the string representation
  3349. func (s DescribeConfigurationsInput) GoString() string {
  3350. return s.String()
  3351. }
  3352. // Validate inspects the fields of the type to determine if they are valid.
  3353. func (s *DescribeConfigurationsInput) Validate() error {
  3354. invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationsInput"}
  3355. if s.ConfigurationIds == nil {
  3356. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  3357. }
  3358. if invalidParams.Len() > 0 {
  3359. return invalidParams
  3360. }
  3361. return nil
  3362. }
  3363. // SetConfigurationIds sets the ConfigurationIds field's value.
  3364. func (s *DescribeConfigurationsInput) SetConfigurationIds(v []*string) *DescribeConfigurationsInput {
  3365. s.ConfigurationIds = v
  3366. return s
  3367. }
  3368. type DescribeConfigurationsOutput struct {
  3369. _ struct{} `type:"structure"`
  3370. // A key in the response map. The value is an array of data.
  3371. Configurations []map[string]*string `locationName:"configurations" type:"list"`
  3372. }
  3373. // String returns the string representation
  3374. func (s DescribeConfigurationsOutput) String() string {
  3375. return awsutil.Prettify(s)
  3376. }
  3377. // GoString returns the string representation
  3378. func (s DescribeConfigurationsOutput) GoString() string {
  3379. return s.String()
  3380. }
  3381. // SetConfigurations sets the Configurations field's value.
  3382. func (s *DescribeConfigurationsOutput) SetConfigurations(v []map[string]*string) *DescribeConfigurationsOutput {
  3383. s.Configurations = v
  3384. return s
  3385. }
  3386. type DescribeContinuousExportsInput struct {
  3387. _ struct{} `type:"structure"`
  3388. // The unique IDs assigned to the exports.
  3389. ExportIds []*string `locationName:"exportIds" type:"list"`
  3390. // A number between 1 and 100 specifying the maximum number of continuous export
  3391. // descriptions returned.
  3392. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  3393. // The token from the previous call to DescribeExportTasks.
  3394. NextToken *string `locationName:"nextToken" type:"string"`
  3395. }
  3396. // String returns the string representation
  3397. func (s DescribeContinuousExportsInput) String() string {
  3398. return awsutil.Prettify(s)
  3399. }
  3400. // GoString returns the string representation
  3401. func (s DescribeContinuousExportsInput) GoString() string {
  3402. return s.String()
  3403. }
  3404. // Validate inspects the fields of the type to determine if they are valid.
  3405. func (s *DescribeContinuousExportsInput) Validate() error {
  3406. invalidParams := request.ErrInvalidParams{Context: "DescribeContinuousExportsInput"}
  3407. if s.MaxResults != nil && *s.MaxResults < 1 {
  3408. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  3409. }
  3410. if invalidParams.Len() > 0 {
  3411. return invalidParams
  3412. }
  3413. return nil
  3414. }
  3415. // SetExportIds sets the ExportIds field's value.
  3416. func (s *DescribeContinuousExportsInput) SetExportIds(v []*string) *DescribeContinuousExportsInput {
  3417. s.ExportIds = v
  3418. return s
  3419. }
  3420. // SetMaxResults sets the MaxResults field's value.
  3421. func (s *DescribeContinuousExportsInput) SetMaxResults(v int64) *DescribeContinuousExportsInput {
  3422. s.MaxResults = &v
  3423. return s
  3424. }
  3425. // SetNextToken sets the NextToken field's value.
  3426. func (s *DescribeContinuousExportsInput) SetNextToken(v string) *DescribeContinuousExportsInput {
  3427. s.NextToken = &v
  3428. return s
  3429. }
  3430. type DescribeContinuousExportsOutput struct {
  3431. _ struct{} `type:"structure"`
  3432. // A list of continuous export descriptions.
  3433. Descriptions []*ContinuousExportDescription `locationName:"descriptions" type:"list"`
  3434. // The token from the previous call to DescribeExportTasks.
  3435. NextToken *string `locationName:"nextToken" type:"string"`
  3436. }
  3437. // String returns the string representation
  3438. func (s DescribeContinuousExportsOutput) String() string {
  3439. return awsutil.Prettify(s)
  3440. }
  3441. // GoString returns the string representation
  3442. func (s DescribeContinuousExportsOutput) GoString() string {
  3443. return s.String()
  3444. }
  3445. // SetDescriptions sets the Descriptions field's value.
  3446. func (s *DescribeContinuousExportsOutput) SetDescriptions(v []*ContinuousExportDescription) *DescribeContinuousExportsOutput {
  3447. s.Descriptions = v
  3448. return s
  3449. }
  3450. // SetNextToken sets the NextToken field's value.
  3451. func (s *DescribeContinuousExportsOutput) SetNextToken(v string) *DescribeContinuousExportsOutput {
  3452. s.NextToken = &v
  3453. return s
  3454. }
  3455. type DescribeExportConfigurationsInput struct {
  3456. _ struct{} `type:"structure"`
  3457. // A list of continuous export ids to search for.
  3458. ExportIds []*string `locationName:"exportIds" type:"list"`
  3459. // A number between 1 and 100 specifying the maximum number of continuous export
  3460. // descriptions returned.
  3461. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3462. // The token from the previous call to describe-export-tasks.
  3463. NextToken *string `locationName:"nextToken" type:"string"`
  3464. }
  3465. // String returns the string representation
  3466. func (s DescribeExportConfigurationsInput) String() string {
  3467. return awsutil.Prettify(s)
  3468. }
  3469. // GoString returns the string representation
  3470. func (s DescribeExportConfigurationsInput) GoString() string {
  3471. return s.String()
  3472. }
  3473. // SetExportIds sets the ExportIds field's value.
  3474. func (s *DescribeExportConfigurationsInput) SetExportIds(v []*string) *DescribeExportConfigurationsInput {
  3475. s.ExportIds = v
  3476. return s
  3477. }
  3478. // SetMaxResults sets the MaxResults field's value.
  3479. func (s *DescribeExportConfigurationsInput) SetMaxResults(v int64) *DescribeExportConfigurationsInput {
  3480. s.MaxResults = &v
  3481. return s
  3482. }
  3483. // SetNextToken sets the NextToken field's value.
  3484. func (s *DescribeExportConfigurationsInput) SetNextToken(v string) *DescribeExportConfigurationsInput {
  3485. s.NextToken = &v
  3486. return s
  3487. }
  3488. type DescribeExportConfigurationsOutput struct {
  3489. _ struct{} `type:"structure"`
  3490. ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"`
  3491. // The token from the previous call to describe-export-tasks.
  3492. NextToken *string `locationName:"nextToken" type:"string"`
  3493. }
  3494. // String returns the string representation
  3495. func (s DescribeExportConfigurationsOutput) String() string {
  3496. return awsutil.Prettify(s)
  3497. }
  3498. // GoString returns the string representation
  3499. func (s DescribeExportConfigurationsOutput) GoString() string {
  3500. return s.String()
  3501. }
  3502. // SetExportsInfo sets the ExportsInfo field's value.
  3503. func (s *DescribeExportConfigurationsOutput) SetExportsInfo(v []*ExportInfo) *DescribeExportConfigurationsOutput {
  3504. s.ExportsInfo = v
  3505. return s
  3506. }
  3507. // SetNextToken sets the NextToken field's value.
  3508. func (s *DescribeExportConfigurationsOutput) SetNextToken(v string) *DescribeExportConfigurationsOutput {
  3509. s.NextToken = &v
  3510. return s
  3511. }
  3512. type DescribeExportTasksInput struct {
  3513. _ struct{} `type:"structure"`
  3514. // One or more unique identifiers used to query the status of an export request.
  3515. ExportIds []*string `locationName:"exportIds" type:"list"`
  3516. // One or more filters.
  3517. //
  3518. // * AgentId - ID of the agent whose collected data will be exported
  3519. Filters []*ExportFilter `locationName:"filters" type:"list"`
  3520. // The maximum number of volume results returned by DescribeExportTasks in paginated
  3521. // output. When this parameter is used, DescribeExportTasks only returns maxResults
  3522. // results in a single page along with a nextToken response element.
  3523. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3524. // The nextToken value returned from a previous paginated DescribeExportTasks
  3525. // request where maxResults was used and the results exceeded the value of that
  3526. // parameter. Pagination continues from the end of the previous results that
  3527. // returned the nextToken value. This value is null when there are no more results
  3528. // to return.
  3529. NextToken *string `locationName:"nextToken" type:"string"`
  3530. }
  3531. // String returns the string representation
  3532. func (s DescribeExportTasksInput) String() string {
  3533. return awsutil.Prettify(s)
  3534. }
  3535. // GoString returns the string representation
  3536. func (s DescribeExportTasksInput) GoString() string {
  3537. return s.String()
  3538. }
  3539. // Validate inspects the fields of the type to determine if they are valid.
  3540. func (s *DescribeExportTasksInput) Validate() error {
  3541. invalidParams := request.ErrInvalidParams{Context: "DescribeExportTasksInput"}
  3542. if s.Filters != nil {
  3543. for i, v := range s.Filters {
  3544. if v == nil {
  3545. continue
  3546. }
  3547. if err := v.Validate(); err != nil {
  3548. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3549. }
  3550. }
  3551. }
  3552. if invalidParams.Len() > 0 {
  3553. return invalidParams
  3554. }
  3555. return nil
  3556. }
  3557. // SetExportIds sets the ExportIds field's value.
  3558. func (s *DescribeExportTasksInput) SetExportIds(v []*string) *DescribeExportTasksInput {
  3559. s.ExportIds = v
  3560. return s
  3561. }
  3562. // SetFilters sets the Filters field's value.
  3563. func (s *DescribeExportTasksInput) SetFilters(v []*ExportFilter) *DescribeExportTasksInput {
  3564. s.Filters = v
  3565. return s
  3566. }
  3567. // SetMaxResults sets the MaxResults field's value.
  3568. func (s *DescribeExportTasksInput) SetMaxResults(v int64) *DescribeExportTasksInput {
  3569. s.MaxResults = &v
  3570. return s
  3571. }
  3572. // SetNextToken sets the NextToken field's value.
  3573. func (s *DescribeExportTasksInput) SetNextToken(v string) *DescribeExportTasksInput {
  3574. s.NextToken = &v
  3575. return s
  3576. }
  3577. type DescribeExportTasksOutput struct {
  3578. _ struct{} `type:"structure"`
  3579. // Contains one or more sets of export request details. When the status of a
  3580. // request is SUCCEEDED, the response includes a URL for an Amazon S3 bucket
  3581. // where you can view the data in a CSV file.
  3582. ExportsInfo []*ExportInfo `locationName:"exportsInfo" type:"list"`
  3583. // The nextToken value to include in a future DescribeExportTasks request. When
  3584. // the results of a DescribeExportTasks request exceed maxResults, this value
  3585. // can be used to retrieve the next page of results. This value is null when
  3586. // there are no more results to return.
  3587. NextToken *string `locationName:"nextToken" type:"string"`
  3588. }
  3589. // String returns the string representation
  3590. func (s DescribeExportTasksOutput) String() string {
  3591. return awsutil.Prettify(s)
  3592. }
  3593. // GoString returns the string representation
  3594. func (s DescribeExportTasksOutput) GoString() string {
  3595. return s.String()
  3596. }
  3597. // SetExportsInfo sets the ExportsInfo field's value.
  3598. func (s *DescribeExportTasksOutput) SetExportsInfo(v []*ExportInfo) *DescribeExportTasksOutput {
  3599. s.ExportsInfo = v
  3600. return s
  3601. }
  3602. // SetNextToken sets the NextToken field's value.
  3603. func (s *DescribeExportTasksOutput) SetNextToken(v string) *DescribeExportTasksOutput {
  3604. s.NextToken = &v
  3605. return s
  3606. }
  3607. type DescribeImportTasksInput struct {
  3608. _ struct{} `type:"structure"`
  3609. // An array of name-value pairs that you provide to filter the results for the
  3610. // DescribeImportTask request to a specific subset of results. Currently, wildcard
  3611. // values aren't supported for filters.
  3612. Filters []*ImportTaskFilter `locationName:"filters" type:"list"`
  3613. // The maximum number of results that you want this request to return, up to
  3614. // 100.
  3615. MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  3616. // The token to request a specific page of results.
  3617. NextToken *string `locationName:"nextToken" type:"string"`
  3618. }
  3619. // String returns the string representation
  3620. func (s DescribeImportTasksInput) String() string {
  3621. return awsutil.Prettify(s)
  3622. }
  3623. // GoString returns the string representation
  3624. func (s DescribeImportTasksInput) GoString() string {
  3625. return s.String()
  3626. }
  3627. // Validate inspects the fields of the type to determine if they are valid.
  3628. func (s *DescribeImportTasksInput) Validate() error {
  3629. invalidParams := request.ErrInvalidParams{Context: "DescribeImportTasksInput"}
  3630. if s.MaxResults != nil && *s.MaxResults < 1 {
  3631. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  3632. }
  3633. if s.Filters != nil {
  3634. for i, v := range s.Filters {
  3635. if v == nil {
  3636. continue
  3637. }
  3638. if err := v.Validate(); err != nil {
  3639. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3640. }
  3641. }
  3642. }
  3643. if invalidParams.Len() > 0 {
  3644. return invalidParams
  3645. }
  3646. return nil
  3647. }
  3648. // SetFilters sets the Filters field's value.
  3649. func (s *DescribeImportTasksInput) SetFilters(v []*ImportTaskFilter) *DescribeImportTasksInput {
  3650. s.Filters = v
  3651. return s
  3652. }
  3653. // SetMaxResults sets the MaxResults field's value.
  3654. func (s *DescribeImportTasksInput) SetMaxResults(v int64) *DescribeImportTasksInput {
  3655. s.MaxResults = &v
  3656. return s
  3657. }
  3658. // SetNextToken sets the NextToken field's value.
  3659. func (s *DescribeImportTasksInput) SetNextToken(v string) *DescribeImportTasksInput {
  3660. s.NextToken = &v
  3661. return s
  3662. }
  3663. type DescribeImportTasksOutput struct {
  3664. _ struct{} `type:"structure"`
  3665. // The token to request the next page of results.
  3666. NextToken *string `locationName:"nextToken" type:"string"`
  3667. // A returned array of import tasks that match any applied filters, up to the
  3668. // specified number of maximum results.
  3669. Tasks []*ImportTask `locationName:"tasks" type:"list"`
  3670. }
  3671. // String returns the string representation
  3672. func (s DescribeImportTasksOutput) String() string {
  3673. return awsutil.Prettify(s)
  3674. }
  3675. // GoString returns the string representation
  3676. func (s DescribeImportTasksOutput) GoString() string {
  3677. return s.String()
  3678. }
  3679. // SetNextToken sets the NextToken field's value.
  3680. func (s *DescribeImportTasksOutput) SetNextToken(v string) *DescribeImportTasksOutput {
  3681. s.NextToken = &v
  3682. return s
  3683. }
  3684. // SetTasks sets the Tasks field's value.
  3685. func (s *DescribeImportTasksOutput) SetTasks(v []*ImportTask) *DescribeImportTasksOutput {
  3686. s.Tasks = v
  3687. return s
  3688. }
  3689. type DescribeTagsInput struct {
  3690. _ struct{} `type:"structure"`
  3691. // You can filter the list using a key-value format. You can separate these
  3692. // items by using logical operators. Allowed filters include tagKey, tagValue,
  3693. // and configurationId.
  3694. Filters []*TagFilter `locationName:"filters" type:"list"`
  3695. // The total number of items to return in a single page of output. The maximum
  3696. // value is 100.
  3697. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3698. // A token to start the list. Use this token to get the next set of results.
  3699. NextToken *string `locationName:"nextToken" type:"string"`
  3700. }
  3701. // String returns the string representation
  3702. func (s DescribeTagsInput) String() string {
  3703. return awsutil.Prettify(s)
  3704. }
  3705. // GoString returns the string representation
  3706. func (s DescribeTagsInput) GoString() string {
  3707. return s.String()
  3708. }
  3709. // Validate inspects the fields of the type to determine if they are valid.
  3710. func (s *DescribeTagsInput) Validate() error {
  3711. invalidParams := request.ErrInvalidParams{Context: "DescribeTagsInput"}
  3712. if s.Filters != nil {
  3713. for i, v := range s.Filters {
  3714. if v == nil {
  3715. continue
  3716. }
  3717. if err := v.Validate(); err != nil {
  3718. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  3719. }
  3720. }
  3721. }
  3722. if invalidParams.Len() > 0 {
  3723. return invalidParams
  3724. }
  3725. return nil
  3726. }
  3727. // SetFilters sets the Filters field's value.
  3728. func (s *DescribeTagsInput) SetFilters(v []*TagFilter) *DescribeTagsInput {
  3729. s.Filters = v
  3730. return s
  3731. }
  3732. // SetMaxResults sets the MaxResults field's value.
  3733. func (s *DescribeTagsInput) SetMaxResults(v int64) *DescribeTagsInput {
  3734. s.MaxResults = &v
  3735. return s
  3736. }
  3737. // SetNextToken sets the NextToken field's value.
  3738. func (s *DescribeTagsInput) SetNextToken(v string) *DescribeTagsInput {
  3739. s.NextToken = &v
  3740. return s
  3741. }
  3742. type DescribeTagsOutput struct {
  3743. _ struct{} `type:"structure"`
  3744. // The call returns a token. Use this token to get the next set of results.
  3745. NextToken *string `locationName:"nextToken" type:"string"`
  3746. // Depending on the input, this is a list of configuration items tagged with
  3747. // a specific tag, or a list of tags for a specific configuration item.
  3748. Tags []*ConfigurationTag `locationName:"tags" type:"list"`
  3749. }
  3750. // String returns the string representation
  3751. func (s DescribeTagsOutput) String() string {
  3752. return awsutil.Prettify(s)
  3753. }
  3754. // GoString returns the string representation
  3755. func (s DescribeTagsOutput) GoString() string {
  3756. return s.String()
  3757. }
  3758. // SetNextToken sets the NextToken field's value.
  3759. func (s *DescribeTagsOutput) SetNextToken(v string) *DescribeTagsOutput {
  3760. s.NextToken = &v
  3761. return s
  3762. }
  3763. // SetTags sets the Tags field's value.
  3764. func (s *DescribeTagsOutput) SetTags(v []*ConfigurationTag) *DescribeTagsOutput {
  3765. s.Tags = v
  3766. return s
  3767. }
  3768. type DisassociateConfigurationItemsFromApplicationInput struct {
  3769. _ struct{} `type:"structure"`
  3770. // Configuration ID of an application from which each item is disassociated.
  3771. //
  3772. // ApplicationConfigurationId is a required field
  3773. ApplicationConfigurationId *string `locationName:"applicationConfigurationId" type:"string" required:"true"`
  3774. // Configuration ID of each item to be disassociated from an application.
  3775. //
  3776. // ConfigurationIds is a required field
  3777. ConfigurationIds []*string `locationName:"configurationIds" type:"list" required:"true"`
  3778. }
  3779. // String returns the string representation
  3780. func (s DisassociateConfigurationItemsFromApplicationInput) String() string {
  3781. return awsutil.Prettify(s)
  3782. }
  3783. // GoString returns the string representation
  3784. func (s DisassociateConfigurationItemsFromApplicationInput) GoString() string {
  3785. return s.String()
  3786. }
  3787. // Validate inspects the fields of the type to determine if they are valid.
  3788. func (s *DisassociateConfigurationItemsFromApplicationInput) Validate() error {
  3789. invalidParams := request.ErrInvalidParams{Context: "DisassociateConfigurationItemsFromApplicationInput"}
  3790. if s.ApplicationConfigurationId == nil {
  3791. invalidParams.Add(request.NewErrParamRequired("ApplicationConfigurationId"))
  3792. }
  3793. if s.ConfigurationIds == nil {
  3794. invalidParams.Add(request.NewErrParamRequired("ConfigurationIds"))
  3795. }
  3796. if invalidParams.Len() > 0 {
  3797. return invalidParams
  3798. }
  3799. return nil
  3800. }
  3801. // SetApplicationConfigurationId sets the ApplicationConfigurationId field's value.
  3802. func (s *DisassociateConfigurationItemsFromApplicationInput) SetApplicationConfigurationId(v string) *DisassociateConfigurationItemsFromApplicationInput {
  3803. s.ApplicationConfigurationId = &v
  3804. return s
  3805. }
  3806. // SetConfigurationIds sets the ConfigurationIds field's value.
  3807. func (s *DisassociateConfigurationItemsFromApplicationInput) SetConfigurationIds(v []*string) *DisassociateConfigurationItemsFromApplicationInput {
  3808. s.ConfigurationIds = v
  3809. return s
  3810. }
  3811. type DisassociateConfigurationItemsFromApplicationOutput struct {
  3812. _ struct{} `type:"structure"`
  3813. }
  3814. // String returns the string representation
  3815. func (s DisassociateConfigurationItemsFromApplicationOutput) String() string {
  3816. return awsutil.Prettify(s)
  3817. }
  3818. // GoString returns the string representation
  3819. func (s DisassociateConfigurationItemsFromApplicationOutput) GoString() string {
  3820. return s.String()
  3821. }
  3822. type ExportConfigurationsInput struct {
  3823. _ struct{} `type:"structure"`
  3824. }
  3825. // String returns the string representation
  3826. func (s ExportConfigurationsInput) String() string {
  3827. return awsutil.Prettify(s)
  3828. }
  3829. // GoString returns the string representation
  3830. func (s ExportConfigurationsInput) GoString() string {
  3831. return s.String()
  3832. }
  3833. type ExportConfigurationsOutput struct {
  3834. _ struct{} `type:"structure"`
  3835. // A unique identifier that you can use to query the export status.
  3836. ExportId *string `locationName:"exportId" type:"string"`
  3837. }
  3838. // String returns the string representation
  3839. func (s ExportConfigurationsOutput) String() string {
  3840. return awsutil.Prettify(s)
  3841. }
  3842. // GoString returns the string representation
  3843. func (s ExportConfigurationsOutput) GoString() string {
  3844. return s.String()
  3845. }
  3846. // SetExportId sets the ExportId field's value.
  3847. func (s *ExportConfigurationsOutput) SetExportId(v string) *ExportConfigurationsOutput {
  3848. s.ExportId = &v
  3849. return s
  3850. }
  3851. // Used to select which agent's data is to be exported. A single agent ID may
  3852. // be selected for export using the StartExportTask (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_StartExportTask.html)
  3853. // action.
  3854. type ExportFilter struct {
  3855. _ struct{} `type:"structure"`
  3856. // Supported condition: EQUALS
  3857. //
  3858. // Condition is a required field
  3859. Condition *string `locationName:"condition" type:"string" required:"true"`
  3860. // A single ExportFilter name. Supported filters: agentId.
  3861. //
  3862. // Name is a required field
  3863. Name *string `locationName:"name" type:"string" required:"true"`
  3864. // A single agentId for a Discovery Agent. An agentId can be found using the
  3865. // DescribeAgents (http://docs.aws.amazon.com/application-discovery/latest/APIReference/API_DescribeExportTasks.html)
  3866. // action. Typically an ADS agentId is in the form o-0123456789abcdef0.
  3867. //
  3868. // Values is a required field
  3869. Values []*string `locationName:"values" type:"list" required:"true"`
  3870. }
  3871. // String returns the string representation
  3872. func (s ExportFilter) String() string {
  3873. return awsutil.Prettify(s)
  3874. }
  3875. // GoString returns the string representation
  3876. func (s ExportFilter) GoString() string {
  3877. return s.String()
  3878. }
  3879. // Validate inspects the fields of the type to determine if they are valid.
  3880. func (s *ExportFilter) Validate() error {
  3881. invalidParams := request.ErrInvalidParams{Context: "ExportFilter"}
  3882. if s.Condition == nil {
  3883. invalidParams.Add(request.NewErrParamRequired("Condition"))
  3884. }
  3885. if s.Name == nil {
  3886. invalidParams.Add(request.NewErrParamRequired("Name"))
  3887. }
  3888. if s.Values == nil {
  3889. invalidParams.Add(request.NewErrParamRequired("Values"))
  3890. }
  3891. if invalidParams.Len() > 0 {
  3892. return invalidParams
  3893. }
  3894. return nil
  3895. }
  3896. // SetCondition sets the Condition field's value.
  3897. func (s *ExportFilter) SetCondition(v string) *ExportFilter {
  3898. s.Condition = &v
  3899. return s
  3900. }
  3901. // SetName sets the Name field's value.
  3902. func (s *ExportFilter) SetName(v string) *ExportFilter {
  3903. s.Name = &v
  3904. return s
  3905. }
  3906. // SetValues sets the Values field's value.
  3907. func (s *ExportFilter) SetValues(v []*string) *ExportFilter {
  3908. s.Values = v
  3909. return s
  3910. }
  3911. // Information regarding the export status of discovered data. The value is
  3912. // an array of objects.
  3913. type ExportInfo struct {
  3914. _ struct{} `type:"structure"`
  3915. // A URL for an Amazon S3 bucket where you can review the exported data. The
  3916. // URL is displayed only if the export succeeded.
  3917. ConfigurationsDownloadUrl *string `locationName:"configurationsDownloadUrl" type:"string"`
  3918. // A unique identifier used to query an export.
  3919. //
  3920. // ExportId is a required field
  3921. ExportId *string `locationName:"exportId" type:"string" required:"true"`
  3922. // The time that the data export was initiated.
  3923. //
  3924. // ExportRequestTime is a required field
  3925. ExportRequestTime *time.Time `locationName:"exportRequestTime" type:"timestamp" required:"true"`
  3926. // The status of the data export job.
  3927. //
  3928. // ExportStatus is a required field
  3929. ExportStatus *string `locationName:"exportStatus" type:"string" required:"true" enum:"ExportStatus"`
  3930. // If true, the export of agent information exceeded the size limit for a single
  3931. // export and the exported data is incomplete for the requested time range.
  3932. // To address this, select a smaller time range for the export by using startDate
  3933. // and endDate.
  3934. IsTruncated *bool `locationName:"isTruncated" type:"boolean"`
  3935. // The endTime used in the StartExportTask request. If no endTime was requested,
  3936. // this result does not appear in ExportInfo.
  3937. RequestedEndTime *time.Time `locationName:"requestedEndTime" type:"timestamp"`
  3938. // The value of startTime parameter in the StartExportTask request. If no startTime
  3939. // was requested, this result does not appear in ExportInfo.
  3940. RequestedStartTime *time.Time `locationName:"requestedStartTime" type:"timestamp"`
  3941. // A status message provided for API callers.
  3942. //
  3943. // StatusMessage is a required field
  3944. StatusMessage *string `locationName:"statusMessage" type:"string" required:"true"`
  3945. }
  3946. // String returns the string representation
  3947. func (s ExportInfo) String() string {
  3948. return awsutil.Prettify(s)
  3949. }
  3950. // GoString returns the string representation
  3951. func (s ExportInfo) GoString() string {
  3952. return s.String()
  3953. }
  3954. // SetConfigurationsDownloadUrl sets the ConfigurationsDownloadUrl field's value.
  3955. func (s *ExportInfo) SetConfigurationsDownloadUrl(v string) *ExportInfo {
  3956. s.ConfigurationsDownloadUrl = &v
  3957. return s
  3958. }
  3959. // SetExportId sets the ExportId field's value.
  3960. func (s *ExportInfo) SetExportId(v string) *ExportInfo {
  3961. s.ExportId = &v
  3962. return s
  3963. }
  3964. // SetExportRequestTime sets the ExportRequestTime field's value.
  3965. func (s *ExportInfo) SetExportRequestTime(v time.Time) *ExportInfo {
  3966. s.ExportRequestTime = &v
  3967. return s
  3968. }
  3969. // SetExportStatus sets the ExportStatus field's value.
  3970. func (s *ExportInfo) SetExportStatus(v string) *ExportInfo {
  3971. s.ExportStatus = &v
  3972. return s
  3973. }
  3974. // SetIsTruncated sets the IsTruncated field's value.
  3975. func (s *ExportInfo) SetIsTruncated(v bool) *ExportInfo {
  3976. s.IsTruncated = &v
  3977. return s
  3978. }
  3979. // SetRequestedEndTime sets the RequestedEndTime field's value.
  3980. func (s *ExportInfo) SetRequestedEndTime(v time.Time) *ExportInfo {
  3981. s.RequestedEndTime = &v
  3982. return s
  3983. }
  3984. // SetRequestedStartTime sets the RequestedStartTime field's value.
  3985. func (s *ExportInfo) SetRequestedStartTime(v time.Time) *ExportInfo {
  3986. s.RequestedStartTime = &v
  3987. return s
  3988. }
  3989. // SetStatusMessage sets the StatusMessage field's value.
  3990. func (s *ExportInfo) SetStatusMessage(v string) *ExportInfo {
  3991. s.StatusMessage = &v
  3992. return s
  3993. }
  3994. // A filter that can use conditional operators.
  3995. //
  3996. // For more information about filters, see Querying Discovered Configuration
  3997. // Items (http://docs.aws.amazon.com/application-discovery/latest/APIReference/discovery-api-queries.html).
  3998. type Filter struct {
  3999. _ struct{} `type:"structure"`
  4000. // A conditional operator. The following operators are valid: EQUALS, NOT_EQUALS,
  4001. // CONTAINS, NOT_CONTAINS. If you specify multiple filters, the system utilizes
  4002. // all filters as though concatenated by AND. If you specify multiple values
  4003. // for a particular filter, the system differentiates the values using OR. Calling
  4004. // either DescribeConfigurations or ListConfigurations returns attributes of
  4005. // matching configuration items.
  4006. //
  4007. // Condition is a required field
  4008. Condition *string `locationName:"condition" type:"string" required:"true"`
  4009. // The name of the filter.
  4010. //
  4011. // Name is a required field
  4012. Name *string `locationName:"name" type:"string" required:"true"`
  4013. // A string value on which to filter. For example, if you choose the destinationServer.osVersion
  4014. // filter name, you could specify Ubuntu for the value.
  4015. //
  4016. // Values is a required field
  4017. Values []*string `locationName:"values" type:"list" required:"true"`
  4018. }
  4019. // String returns the string representation
  4020. func (s Filter) String() string {
  4021. return awsutil.Prettify(s)
  4022. }
  4023. // GoString returns the string representation
  4024. func (s Filter) GoString() string {
  4025. return s.String()
  4026. }
  4027. // Validate inspects the fields of the type to determine if they are valid.
  4028. func (s *Filter) Validate() error {
  4029. invalidParams := request.ErrInvalidParams{Context: "Filter"}
  4030. if s.Condition == nil {
  4031. invalidParams.Add(request.NewErrParamRequired("Condition"))
  4032. }
  4033. if s.Name == nil {
  4034. invalidParams.Add(request.NewErrParamRequired("Name"))
  4035. }
  4036. if s.Values == nil {
  4037. invalidParams.Add(request.NewErrParamRequired("Values"))
  4038. }
  4039. if invalidParams.Len() > 0 {
  4040. return invalidParams
  4041. }
  4042. return nil
  4043. }
  4044. // SetCondition sets the Condition field's value.
  4045. func (s *Filter) SetCondition(v string) *Filter {
  4046. s.Condition = &v
  4047. return s
  4048. }
  4049. // SetName sets the Name field's value.
  4050. func (s *Filter) SetName(v string) *Filter {
  4051. s.Name = &v
  4052. return s
  4053. }
  4054. // SetValues sets the Values field's value.
  4055. func (s *Filter) SetValues(v []*string) *Filter {
  4056. s.Values = v
  4057. return s
  4058. }
  4059. type GetDiscoverySummaryInput struct {
  4060. _ struct{} `type:"structure"`
  4061. }
  4062. // String returns the string representation
  4063. func (s GetDiscoverySummaryInput) String() string {
  4064. return awsutil.Prettify(s)
  4065. }
  4066. // GoString returns the string representation
  4067. func (s GetDiscoverySummaryInput) GoString() string {
  4068. return s.String()
  4069. }
  4070. type GetDiscoverySummaryOutput struct {
  4071. _ struct{} `type:"structure"`
  4072. // Details about discovered agents, including agent status and health.
  4073. AgentSummary *CustomerAgentInfo `locationName:"agentSummary" type:"structure"`
  4074. // The number of applications discovered.
  4075. Applications *int64 `locationName:"applications" type:"long"`
  4076. // Details about discovered connectors, including connector status and health.
  4077. ConnectorSummary *CustomerConnectorInfo `locationName:"connectorSummary" type:"structure"`
  4078. // The number of servers discovered.
  4079. Servers *int64 `locationName:"servers" type:"long"`
  4080. // The number of servers mapped to applications.
  4081. ServersMappedToApplications *int64 `locationName:"serversMappedToApplications" type:"long"`
  4082. // The number of servers mapped to tags.
  4083. ServersMappedtoTags *int64 `locationName:"serversMappedtoTags" type:"long"`
  4084. }
  4085. // String returns the string representation
  4086. func (s GetDiscoverySummaryOutput) String() string {
  4087. return awsutil.Prettify(s)
  4088. }
  4089. // GoString returns the string representation
  4090. func (s GetDiscoverySummaryOutput) GoString() string {
  4091. return s.String()
  4092. }
  4093. // SetAgentSummary sets the AgentSummary field's value.
  4094. func (s *GetDiscoverySummaryOutput) SetAgentSummary(v *CustomerAgentInfo) *GetDiscoverySummaryOutput {
  4095. s.AgentSummary = v
  4096. return s
  4097. }
  4098. // SetApplications sets the Applications field's value.
  4099. func (s *GetDiscoverySummaryOutput) SetApplications(v int64) *GetDiscoverySummaryOutput {
  4100. s.Applications = &v
  4101. return s
  4102. }
  4103. // SetConnectorSummary sets the ConnectorSummary field's value.
  4104. func (s *GetDiscoverySummaryOutput) SetConnectorSummary(v *CustomerConnectorInfo) *GetDiscoverySummaryOutput {
  4105. s.ConnectorSummary = v
  4106. return s
  4107. }
  4108. // SetServers sets the Servers field's value.
  4109. func (s *GetDiscoverySummaryOutput) SetServers(v int64) *GetDiscoverySummaryOutput {
  4110. s.Servers = &v
  4111. return s
  4112. }
  4113. // SetServersMappedToApplications sets the ServersMappedToApplications field's value.
  4114. func (s *GetDiscoverySummaryOutput) SetServersMappedToApplications(v int64) *GetDiscoverySummaryOutput {
  4115. s.ServersMappedToApplications = &v
  4116. return s
  4117. }
  4118. // SetServersMappedtoTags sets the ServersMappedtoTags field's value.
  4119. func (s *GetDiscoverySummaryOutput) SetServersMappedtoTags(v int64) *GetDiscoverySummaryOutput {
  4120. s.ServersMappedtoTags = &v
  4121. return s
  4122. }
  4123. // An array of information related to the import task request that includes
  4124. // status information, times, IDs, the Amazon S3 Object URL for the import file,
  4125. // and more.
  4126. type ImportTask struct {
  4127. _ struct{} `type:"structure"`
  4128. // The total number of application records in the import file that failed to
  4129. // be imported.
  4130. ApplicationImportFailure *int64 `locationName:"applicationImportFailure" type:"integer"`
  4131. // The total number of application records in the import file that were successfully
  4132. // imported.
  4133. ApplicationImportSuccess *int64 `locationName:"applicationImportSuccess" type:"integer"`
  4134. // A unique token used to prevent the same import request from occurring more
  4135. // than once. If you didn't provide a token, a token was automatically generated
  4136. // when the import task request was sent.
  4137. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
  4138. // A link to a compressed archive folder (in the ZIP format) that contains an
  4139. // error log and a file of failed records. You can use these two files to quickly
  4140. // identify records that failed, why they failed, and correct those records.
  4141. // Afterward, you can upload the corrected file to your Amazon S3 bucket and
  4142. // create another import task request.
  4143. //
  4144. // This field also includes authorization information so you can confirm the
  4145. // authenticity of the compressed archive before you download it.
  4146. //
  4147. // If some records failed to be imported we recommend that you correct the records
  4148. // in the failed entries file and then imports that failed entries file. This
  4149. // prevents you frmo having to correct and update the larger original file and
  4150. // attempt importing it again.
  4151. ErrorsAndFailedEntriesZip *string `locationName:"errorsAndFailedEntriesZip" type:"string"`
  4152. // The time that the import task request finished, presented in the Unix time
  4153. // stamp format.
  4154. ImportCompletionTime *time.Time `locationName:"importCompletionTime" type:"timestamp"`
  4155. // The time that the import task request was deleted, presented in the Unix
  4156. // time stamp format.
  4157. ImportDeletedTime *time.Time `locationName:"importDeletedTime" type:"timestamp"`
  4158. // The time that the import task request was made, presented in the Unix time
  4159. // stamp format.
  4160. ImportRequestTime *time.Time `locationName:"importRequestTime" type:"timestamp"`
  4161. // The unique ID for a specific import task. These IDs aren't globally unique,
  4162. // but they are unique within an AWS account.
  4163. ImportTaskId *string `locationName:"importTaskId" type:"string"`
  4164. // The URL for your import file that you've uploaded to Amazon S3.
  4165. ImportUrl *string `locationName:"importUrl" min:"1" type:"string"`
  4166. // A descriptive name for an import task. You can use this name to filter future
  4167. // requests related to this import task, such as identifying applications and
  4168. // servers that were included in this import task. We recommend that you use
  4169. // a meaningful name for each import task.
  4170. Name *string `locationName:"name" min:"1" type:"string"`
  4171. // The total number of server records in the import file that failed to be imported.
  4172. ServerImportFailure *int64 `locationName:"serverImportFailure" type:"integer"`
  4173. // The total number of server records in the import file that were successfully
  4174. // imported.
  4175. ServerImportSuccess *int64 `locationName:"serverImportSuccess" type:"integer"`
  4176. // The status of the import task. An import can have the status of IMPORT_COMPLETE
  4177. // and still have some records fail to import from the overall request. More
  4178. // information can be found in the downloadable archive defined in the errorsAndFailedEntriesZip
  4179. // field, or in the Migration Hub management console.
  4180. Status *string `locationName:"status" type:"string" enum:"ImportStatus"`
  4181. }
  4182. // String returns the string representation
  4183. func (s ImportTask) String() string {
  4184. return awsutil.Prettify(s)
  4185. }
  4186. // GoString returns the string representation
  4187. func (s ImportTask) GoString() string {
  4188. return s.String()
  4189. }
  4190. // SetApplicationImportFailure sets the ApplicationImportFailure field's value.
  4191. func (s *ImportTask) SetApplicationImportFailure(v int64) *ImportTask {
  4192. s.ApplicationImportFailure = &v
  4193. return s
  4194. }
  4195. // SetApplicationImportSuccess sets the ApplicationImportSuccess field's value.
  4196. func (s *ImportTask) SetApplicationImportSuccess(v int64) *ImportTask {
  4197. s.ApplicationImportSuccess = &v
  4198. return s
  4199. }
  4200. // SetClientRequestToken sets the ClientRequestToken field's value.
  4201. func (s *ImportTask) SetClientRequestToken(v string) *ImportTask {
  4202. s.ClientRequestToken = &v
  4203. return s
  4204. }
  4205. // SetErrorsAndFailedEntriesZip sets the ErrorsAndFailedEntriesZip field's value.
  4206. func (s *ImportTask) SetErrorsAndFailedEntriesZip(v string) *ImportTask {
  4207. s.ErrorsAndFailedEntriesZip = &v
  4208. return s
  4209. }
  4210. // SetImportCompletionTime sets the ImportCompletionTime field's value.
  4211. func (s *ImportTask) SetImportCompletionTime(v time.Time) *ImportTask {
  4212. s.ImportCompletionTime = &v
  4213. return s
  4214. }
  4215. // SetImportDeletedTime sets the ImportDeletedTime field's value.
  4216. func (s *ImportTask) SetImportDeletedTime(v time.Time) *ImportTask {
  4217. s.ImportDeletedTime = &v
  4218. return s
  4219. }
  4220. // SetImportRequestTime sets the ImportRequestTime field's value.
  4221. func (s *ImportTask) SetImportRequestTime(v time.Time) *ImportTask {
  4222. s.ImportRequestTime = &v
  4223. return s
  4224. }
  4225. // SetImportTaskId sets the ImportTaskId field's value.
  4226. func (s *ImportTask) SetImportTaskId(v string) *ImportTask {
  4227. s.ImportTaskId = &v
  4228. return s
  4229. }
  4230. // SetImportUrl sets the ImportUrl field's value.
  4231. func (s *ImportTask) SetImportUrl(v string) *ImportTask {
  4232. s.ImportUrl = &v
  4233. return s
  4234. }
  4235. // SetName sets the Name field's value.
  4236. func (s *ImportTask) SetName(v string) *ImportTask {
  4237. s.Name = &v
  4238. return s
  4239. }
  4240. // SetServerImportFailure sets the ServerImportFailure field's value.
  4241. func (s *ImportTask) SetServerImportFailure(v int64) *ImportTask {
  4242. s.ServerImportFailure = &v
  4243. return s
  4244. }
  4245. // SetServerImportSuccess sets the ServerImportSuccess field's value.
  4246. func (s *ImportTask) SetServerImportSuccess(v int64) *ImportTask {
  4247. s.ServerImportSuccess = &v
  4248. return s
  4249. }
  4250. // SetStatus sets the Status field's value.
  4251. func (s *ImportTask) SetStatus(v string) *ImportTask {
  4252. s.Status = &v
  4253. return s
  4254. }
  4255. // A name-values pair of elements you can use to filter the results when querying
  4256. // your import tasks. Currently, wildcards are not supported for filters.
  4257. //
  4258. // When filtering by import status, all other filter values are ignored.
  4259. type ImportTaskFilter struct {
  4260. _ struct{} `type:"structure"`
  4261. // The name, status, or import task ID for a specific import task.
  4262. Name *string `locationName:"name" type:"string" enum:"ImportTaskFilterName"`
  4263. // An array of strings that you can provide to match against a specific name,
  4264. // status, or import task ID to filter the results for your import task queries.
  4265. Values []*string `locationName:"values" min:"1" type:"list"`
  4266. }
  4267. // String returns the string representation
  4268. func (s ImportTaskFilter) String() string {
  4269. return awsutil.Prettify(s)
  4270. }
  4271. // GoString returns the string representation
  4272. func (s ImportTaskFilter) GoString() string {
  4273. return s.String()
  4274. }
  4275. // Validate inspects the fields of the type to determine if they are valid.
  4276. func (s *ImportTaskFilter) Validate() error {
  4277. invalidParams := request.ErrInvalidParams{Context: "ImportTaskFilter"}
  4278. if s.Values != nil && len(s.Values) < 1 {
  4279. invalidParams.Add(request.NewErrParamMinLen("Values", 1))
  4280. }
  4281. if invalidParams.Len() > 0 {
  4282. return invalidParams
  4283. }
  4284. return nil
  4285. }
  4286. // SetName sets the Name field's value.
  4287. func (s *ImportTaskFilter) SetName(v string) *ImportTaskFilter {
  4288. s.Name = &v
  4289. return s
  4290. }
  4291. // SetValues sets the Values field's value.
  4292. func (s *ImportTaskFilter) SetValues(v []*string) *ImportTaskFilter {
  4293. s.Values = v
  4294. return s
  4295. }
  4296. type ListConfigurationsInput struct {
  4297. _ struct{} `type:"structure"`
  4298. // A valid configuration identified by Application Discovery Service.
  4299. //
  4300. // ConfigurationType is a required field
  4301. ConfigurationType *string `locationName:"configurationType" type:"string" required:"true" enum:"ConfigurationItemType"`
  4302. // You can filter the request using various logical operators and a key-value
  4303. // format. For example:
  4304. //
  4305. // {"key": "serverType", "value": "webServer"}
  4306. //
  4307. // For a complete list of filter options and guidance about using them with
  4308. // this action, see Querying Discovered Configuration Items (http://docs.aws.amazon.com/application-discovery/latest/APIReference/discovery-api-queries.html#ListConfigurations).
  4309. Filters []*Filter `locationName:"filters" type:"list"`
  4310. // The total number of items to return. The maximum value is 100.
  4311. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  4312. // Token to retrieve the next set of results. For example, if a previous call
  4313. // to ListConfigurations returned 100 items, but you set ListConfigurationsRequest$maxResults
  4314. // to 10, you received a set of 10 results along with a token. Use that token
  4315. // in this query to get the next set of 10.
  4316. NextToken *string `locationName:"nextToken" type:"string"`
  4317. // Certain filter criteria return output that can be sorted in ascending or
  4318. // descending order. For a list of output characteristics for each filter, see
  4319. // Using the ListConfigurations Action (http://docs.aws.amazon.com/application-discovery/latest/APIReference/discovery-api-queries.html#ListConfigurations).
  4320. OrderBy []*OrderByElement `locationName:"orderBy" type:"list"`
  4321. }
  4322. // String returns the string representation
  4323. func (s ListConfigurationsInput) String() string {
  4324. return awsutil.Prettify(s)
  4325. }
  4326. // GoString returns the string representation
  4327. func (s ListConfigurationsInput) GoString() string {
  4328. return s.String()
  4329. }
  4330. // Validate inspects the fields of the type to determine if they are valid.
  4331. func (s *ListConfigurationsInput) Validate() error {
  4332. invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"}
  4333. if s.ConfigurationType == nil {
  4334. invalidParams.Add(request.NewErrParamRequired("ConfigurationType"))
  4335. }
  4336. if s.Filters != nil {
  4337. for i, v := range s.Filters {
  4338. if v == nil {
  4339. continue
  4340. }
  4341. if err := v.Validate(); err != nil {
  4342. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  4343. }
  4344. }
  4345. }
  4346. if s.OrderBy != nil {
  4347. for i, v := range s.OrderBy {
  4348. if v == nil {
  4349. continue
  4350. }
  4351. if err := v.Validate(); err != nil {
  4352. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OrderBy", i), err.(request.ErrInvalidParams))
  4353. }
  4354. }
  4355. }
  4356. if invalidParams.Len() > 0 {
  4357. return invalidParams
  4358. }
  4359. return nil
  4360. }
  4361. // SetConfigurationType sets the ConfigurationType field's value.
  4362. func (s *ListConfigurationsInput) SetConfigurationType(v string) *ListConfigurationsInput {
  4363. s.ConfigurationType = &v
  4364. return s
  4365. }
  4366. // SetFilters sets the Filters field's value.
  4367. func (s *ListConfigurationsInput) SetFilters(v []*Filter) *ListConfigurationsInput {
  4368. s.Filters = v
  4369. return s
  4370. }
  4371. // SetMaxResults sets the MaxResults field's value.
  4372. func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput {
  4373. s.MaxResults = &v
  4374. return s
  4375. }
  4376. // SetNextToken sets the NextToken field's value.
  4377. func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput {
  4378. s.NextToken = &v
  4379. return s
  4380. }
  4381. // SetOrderBy sets the OrderBy field's value.
  4382. func (s *ListConfigurationsInput) SetOrderBy(v []*OrderByElement) *ListConfigurationsInput {
  4383. s.OrderBy = v
  4384. return s
  4385. }
  4386. type ListConfigurationsOutput struct {
  4387. _ struct{} `type:"structure"`
  4388. // Returns configuration details, including the configuration ID, attribute
  4389. // names, and attribute values.
  4390. Configurations []map[string]*string `locationName:"configurations" type:"list"`
  4391. // Token to retrieve the next set of results. For example, if your call to ListConfigurations
  4392. // returned 100 items, but you set ListConfigurationsRequest$maxResults to 10,
  4393. // you received a set of 10 results along with this token. Use this token in
  4394. // the next query to retrieve the next set of 10.
  4395. NextToken *string `locationName:"nextToken" type:"string"`
  4396. }
  4397. // String returns the string representation
  4398. func (s ListConfigurationsOutput) String() string {
  4399. return awsutil.Prettify(s)
  4400. }
  4401. // GoString returns the string representation
  4402. func (s ListConfigurationsOutput) GoString() string {
  4403. return s.String()
  4404. }
  4405. // SetConfigurations sets the Configurations field's value.
  4406. func (s *ListConfigurationsOutput) SetConfigurations(v []map[string]*string) *ListConfigurationsOutput {
  4407. s.Configurations = v
  4408. return s
  4409. }
  4410. // SetNextToken sets the NextToken field's value.
  4411. func (s *ListConfigurationsOutput) SetNextToken(v string) *ListConfigurationsOutput {
  4412. s.NextToken = &v
  4413. return s
  4414. }
  4415. type ListServerNeighborsInput struct {
  4416. _ struct{} `type:"structure"`
  4417. // Configuration ID of the server for which neighbors are being listed.
  4418. //
  4419. // ConfigurationId is a required field
  4420. ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"`
  4421. // Maximum number of results to return in a single page of output.
  4422. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  4423. // List of configuration IDs to test for one-hop-away.
  4424. NeighborConfigurationIds []*string `locationName:"neighborConfigurationIds" type:"list"`
  4425. // Token to retrieve the next set of results. For example, if you previously
  4426. // specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds
  4427. // but set ListServerNeighborsRequest$maxResults to 10, you received a set of
  4428. // 10 results along with a token. Use that token in this query to get the next
  4429. // set of 10.
  4430. NextToken *string `locationName:"nextToken" type:"string"`
  4431. // Flag to indicate if port and protocol information is needed as part of the
  4432. // response.
  4433. PortInformationNeeded *bool `locationName:"portInformationNeeded" type:"boolean"`
  4434. }
  4435. // String returns the string representation
  4436. func (s ListServerNeighborsInput) String() string {
  4437. return awsutil.Prettify(s)
  4438. }
  4439. // GoString returns the string representation
  4440. func (s ListServerNeighborsInput) GoString() string {
  4441. return s.String()
  4442. }
  4443. // Validate inspects the fields of the type to determine if they are valid.
  4444. func (s *ListServerNeighborsInput) Validate() error {
  4445. invalidParams := request.ErrInvalidParams{Context: "ListServerNeighborsInput"}
  4446. if s.ConfigurationId == nil {
  4447. invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
  4448. }
  4449. if invalidParams.Len() > 0 {
  4450. return invalidParams
  4451. }
  4452. return nil
  4453. }
  4454. // SetConfigurationId sets the ConfigurationId field's value.
  4455. func (s *ListServerNeighborsInput) SetConfigurationId(v string) *ListServerNeighborsInput {
  4456. s.ConfigurationId = &v
  4457. return s
  4458. }
  4459. // SetMaxResults sets the MaxResults field's value.
  4460. func (s *ListServerNeighborsInput) SetMaxResults(v int64) *ListServerNeighborsInput {
  4461. s.MaxResults = &v
  4462. return s
  4463. }
  4464. // SetNeighborConfigurationIds sets the NeighborConfigurationIds field's value.
  4465. func (s *ListServerNeighborsInput) SetNeighborConfigurationIds(v []*string) *ListServerNeighborsInput {
  4466. s.NeighborConfigurationIds = v
  4467. return s
  4468. }
  4469. // SetNextToken sets the NextToken field's value.
  4470. func (s *ListServerNeighborsInput) SetNextToken(v string) *ListServerNeighborsInput {
  4471. s.NextToken = &v
  4472. return s
  4473. }
  4474. // SetPortInformationNeeded sets the PortInformationNeeded field's value.
  4475. func (s *ListServerNeighborsInput) SetPortInformationNeeded(v bool) *ListServerNeighborsInput {
  4476. s.PortInformationNeeded = &v
  4477. return s
  4478. }
  4479. type ListServerNeighborsOutput struct {
  4480. _ struct{} `type:"structure"`
  4481. // Count of distinct servers that are one hop away from the given server.
  4482. KnownDependencyCount *int64 `locationName:"knownDependencyCount" type:"long"`
  4483. // List of distinct servers that are one hop away from the given server.
  4484. //
  4485. // Neighbors is a required field
  4486. Neighbors []*NeighborConnectionDetail `locationName:"neighbors" type:"list" required:"true"`
  4487. // Token to retrieve the next set of results. For example, if you specified
  4488. // 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults
  4489. // to 10, you received a set of 10 results along with this token. Use this token
  4490. // in the next query to retrieve the next set of 10.
  4491. NextToken *string `locationName:"nextToken" type:"string"`
  4492. }
  4493. // String returns the string representation
  4494. func (s ListServerNeighborsOutput) String() string {
  4495. return awsutil.Prettify(s)
  4496. }
  4497. // GoString returns the string representation
  4498. func (s ListServerNeighborsOutput) GoString() string {
  4499. return s.String()
  4500. }
  4501. // SetKnownDependencyCount sets the KnownDependencyCount field's value.
  4502. func (s *ListServerNeighborsOutput) SetKnownDependencyCount(v int64) *ListServerNeighborsOutput {
  4503. s.KnownDependencyCount = &v
  4504. return s
  4505. }
  4506. // SetNeighbors sets the Neighbors field's value.
  4507. func (s *ListServerNeighborsOutput) SetNeighbors(v []*NeighborConnectionDetail) *ListServerNeighborsOutput {
  4508. s.Neighbors = v
  4509. return s
  4510. }
  4511. // SetNextToken sets the NextToken field's value.
  4512. func (s *ListServerNeighborsOutput) SetNextToken(v string) *ListServerNeighborsOutput {
  4513. s.NextToken = &v
  4514. return s
  4515. }
  4516. // Details about neighboring servers.
  4517. type NeighborConnectionDetail struct {
  4518. _ struct{} `type:"structure"`
  4519. // The number of open network connections with the neighboring server.
  4520. //
  4521. // ConnectionsCount is a required field
  4522. ConnectionsCount *int64 `locationName:"connectionsCount" type:"long" required:"true"`
  4523. // The destination network port for the connection.
  4524. DestinationPort *int64 `locationName:"destinationPort" type:"integer"`
  4525. // The ID of the server that accepted the network connection.
  4526. //
  4527. // DestinationServerId is a required field
  4528. DestinationServerId *string `locationName:"destinationServerId" type:"string" required:"true"`
  4529. // The ID of the server that opened the network connection.
  4530. //
  4531. // SourceServerId is a required field
  4532. SourceServerId *string `locationName:"sourceServerId" type:"string" required:"true"`
  4533. // The network protocol used for the connection.
  4534. TransportProtocol *string `locationName:"transportProtocol" type:"string"`
  4535. }
  4536. // String returns the string representation
  4537. func (s NeighborConnectionDetail) String() string {
  4538. return awsutil.Prettify(s)
  4539. }
  4540. // GoString returns the string representation
  4541. func (s NeighborConnectionDetail) GoString() string {
  4542. return s.String()
  4543. }
  4544. // SetConnectionsCount sets the ConnectionsCount field's value.
  4545. func (s *NeighborConnectionDetail) SetConnectionsCount(v int64) *NeighborConnectionDetail {
  4546. s.ConnectionsCount = &v
  4547. return s
  4548. }
  4549. // SetDestinationPort sets the DestinationPort field's value.
  4550. func (s *NeighborConnectionDetail) SetDestinationPort(v int64) *NeighborConnectionDetail {
  4551. s.DestinationPort = &v
  4552. return s
  4553. }
  4554. // SetDestinationServerId sets the DestinationServerId field's value.
  4555. func (s *NeighborConnectionDetail) SetDestinationServerId(v string) *NeighborConnectionDetail {
  4556. s.DestinationServerId = &v
  4557. return s
  4558. }
  4559. // SetSourceServerId sets the SourceServerId field's value.
  4560. func (s *NeighborConnectionDetail) SetSourceServerId(v string) *NeighborConnectionDetail {
  4561. s.SourceServerId = &v
  4562. return s
  4563. }
  4564. // SetTransportProtocol sets the TransportProtocol field's value.
  4565. func (s *NeighborConnectionDetail) SetTransportProtocol(v string) *NeighborConnectionDetail {
  4566. s.TransportProtocol = &v
  4567. return s
  4568. }
  4569. // A field and direction for ordered output.
  4570. type OrderByElement struct {
  4571. _ struct{} `type:"structure"`
  4572. // The field on which to order.
  4573. //
  4574. // FieldName is a required field
  4575. FieldName *string `locationName:"fieldName" type:"string" required:"true"`
  4576. // Ordering direction.
  4577. SortOrder *string `locationName:"sortOrder" type:"string" enum:"orderString"`
  4578. }
  4579. // String returns the string representation
  4580. func (s OrderByElement) String() string {
  4581. return awsutil.Prettify(s)
  4582. }
  4583. // GoString returns the string representation
  4584. func (s OrderByElement) GoString() string {
  4585. return s.String()
  4586. }
  4587. // Validate inspects the fields of the type to determine if they are valid.
  4588. func (s *OrderByElement) Validate() error {
  4589. invalidParams := request.ErrInvalidParams{Context: "OrderByElement"}
  4590. if s.FieldName == nil {
  4591. invalidParams.Add(request.NewErrParamRequired("FieldName"))
  4592. }
  4593. if invalidParams.Len() > 0 {
  4594. return invalidParams
  4595. }
  4596. return nil
  4597. }
  4598. // SetFieldName sets the FieldName field's value.
  4599. func (s *OrderByElement) SetFieldName(v string) *OrderByElement {
  4600. s.FieldName = &v
  4601. return s
  4602. }
  4603. // SetSortOrder sets the SortOrder field's value.
  4604. func (s *OrderByElement) SetSortOrder(v string) *OrderByElement {
  4605. s.SortOrder = &v
  4606. return s
  4607. }
  4608. type StartContinuousExportInput struct {
  4609. _ struct{} `type:"structure"`
  4610. }
  4611. // String returns the string representation
  4612. func (s StartContinuousExportInput) String() string {
  4613. return awsutil.Prettify(s)
  4614. }
  4615. // GoString returns the string representation
  4616. func (s StartContinuousExportInput) GoString() string {
  4617. return s.String()
  4618. }
  4619. type StartContinuousExportOutput struct {
  4620. _ struct{} `type:"structure"`
  4621. // The type of data collector used to gather this data (currently only offered
  4622. // for AGENT).
  4623. DataSource *string `locationName:"dataSource" type:"string" enum:"DataSource"`
  4624. // The unique ID assigned to this export.
  4625. ExportId *string `locationName:"exportId" type:"string"`
  4626. // The name of the s3 bucket where the export data parquet files are stored.
  4627. S3Bucket *string `locationName:"s3Bucket" type:"string"`
  4628. // A dictionary which describes how the data is stored.
  4629. //
  4630. // * databaseName - the name of the Glue database used to store the schema.
  4631. SchemaStorageConfig map[string]*string `locationName:"schemaStorageConfig" type:"map"`
  4632. // The timestamp representing when the continuous export was started.
  4633. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  4634. }
  4635. // String returns the string representation
  4636. func (s StartContinuousExportOutput) String() string {
  4637. return awsutil.Prettify(s)
  4638. }
  4639. // GoString returns the string representation
  4640. func (s StartContinuousExportOutput) GoString() string {
  4641. return s.String()
  4642. }
  4643. // SetDataSource sets the DataSource field's value.
  4644. func (s *StartContinuousExportOutput) SetDataSource(v string) *StartContinuousExportOutput {
  4645. s.DataSource = &v
  4646. return s
  4647. }
  4648. // SetExportId sets the ExportId field's value.
  4649. func (s *StartContinuousExportOutput) SetExportId(v string) *StartContinuousExportOutput {
  4650. s.ExportId = &v
  4651. return s
  4652. }
  4653. // SetS3Bucket sets the S3Bucket field's value.
  4654. func (s *StartContinuousExportOutput) SetS3Bucket(v string) *StartContinuousExportOutput {
  4655. s.S3Bucket = &v
  4656. return s
  4657. }
  4658. // SetSchemaStorageConfig sets the SchemaStorageConfig field's value.
  4659. func (s *StartContinuousExportOutput) SetSchemaStorageConfig(v map[string]*string) *StartContinuousExportOutput {
  4660. s.SchemaStorageConfig = v
  4661. return s
  4662. }
  4663. // SetStartTime sets the StartTime field's value.
  4664. func (s *StartContinuousExportOutput) SetStartTime(v time.Time) *StartContinuousExportOutput {
  4665. s.StartTime = &v
  4666. return s
  4667. }
  4668. type StartDataCollectionByAgentIdsInput struct {
  4669. _ struct{} `type:"structure"`
  4670. // The IDs of the agents or connectors from which to start collecting data.
  4671. // If you send a request to an agent/connector ID that you do not have permission
  4672. // to contact, according to your AWS account, the service does not throw an
  4673. // exception. Instead, it returns the error in the Description field. If you
  4674. // send a request to multiple agents/connectors and you do not have permission
  4675. // to contact some of those agents/connectors, the system does not throw an
  4676. // exception. Instead, the system shows Failed in the Description field.
  4677. //
  4678. // AgentIds is a required field
  4679. AgentIds []*string `locationName:"agentIds" type:"list" required:"true"`
  4680. }
  4681. // String returns the string representation
  4682. func (s StartDataCollectionByAgentIdsInput) String() string {
  4683. return awsutil.Prettify(s)
  4684. }
  4685. // GoString returns the string representation
  4686. func (s StartDataCollectionByAgentIdsInput) GoString() string {
  4687. return s.String()
  4688. }
  4689. // Validate inspects the fields of the type to determine if they are valid.
  4690. func (s *StartDataCollectionByAgentIdsInput) Validate() error {
  4691. invalidParams := request.ErrInvalidParams{Context: "StartDataCollectionByAgentIdsInput"}
  4692. if s.AgentIds == nil {
  4693. invalidParams.Add(request.NewErrParamRequired("AgentIds"))
  4694. }
  4695. if invalidParams.Len() > 0 {
  4696. return invalidParams
  4697. }
  4698. return nil
  4699. }
  4700. // SetAgentIds sets the AgentIds field's value.
  4701. func (s *StartDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StartDataCollectionByAgentIdsInput {
  4702. s.AgentIds = v
  4703. return s
  4704. }
  4705. type StartDataCollectionByAgentIdsOutput struct {
  4706. _ struct{} `type:"structure"`
  4707. // Information about agents or the connector that were instructed to start collecting
  4708. // data. Information includes the agent/connector ID, a description of the operation
  4709. // performed, and whether the agent/connector configuration was updated.
  4710. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"`
  4711. }
  4712. // String returns the string representation
  4713. func (s StartDataCollectionByAgentIdsOutput) String() string {
  4714. return awsutil.Prettify(s)
  4715. }
  4716. // GoString returns the string representation
  4717. func (s StartDataCollectionByAgentIdsOutput) GoString() string {
  4718. return s.String()
  4719. }
  4720. // SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value.
  4721. func (s *StartDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StartDataCollectionByAgentIdsOutput {
  4722. s.AgentsConfigurationStatus = v
  4723. return s
  4724. }
  4725. type StartExportTaskInput struct {
  4726. _ struct{} `type:"structure"`
  4727. // The end timestamp for exported data from the single Application Discovery
  4728. // Agent selected in the filters. If no value is specified, exported data includes
  4729. // the most recent data collected by the agent.
  4730. EndTime *time.Time `locationName:"endTime" type:"timestamp"`
  4731. // The file format for the returned export data. Default value is CSV. Note:TheGRAPHMLoption
  4732. // has been deprecated.
  4733. ExportDataFormat []*string `locationName:"exportDataFormat" type:"list"`
  4734. // If a filter is present, it selects the single agentId of the Application
  4735. // Discovery Agent for which data is exported. The agentId can be found in the
  4736. // results of the DescribeAgents API or CLI. If no filter is present, startTime
  4737. // and endTime are ignored and exported data includes both Agentless Discovery
  4738. // Connector data and summary data from Application Discovery agents.
  4739. Filters []*ExportFilter `locationName:"filters" type:"list"`
  4740. // The start timestamp for exported data from the single Application Discovery
  4741. // Agent selected in the filters. If no value is specified, data is exported
  4742. // starting from the first data collected by the agent.
  4743. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  4744. }
  4745. // String returns the string representation
  4746. func (s StartExportTaskInput) String() string {
  4747. return awsutil.Prettify(s)
  4748. }
  4749. // GoString returns the string representation
  4750. func (s StartExportTaskInput) GoString() string {
  4751. return s.String()
  4752. }
  4753. // Validate inspects the fields of the type to determine if they are valid.
  4754. func (s *StartExportTaskInput) Validate() error {
  4755. invalidParams := request.ErrInvalidParams{Context: "StartExportTaskInput"}
  4756. if s.Filters != nil {
  4757. for i, v := range s.Filters {
  4758. if v == nil {
  4759. continue
  4760. }
  4761. if err := v.Validate(); err != nil {
  4762. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  4763. }
  4764. }
  4765. }
  4766. if invalidParams.Len() > 0 {
  4767. return invalidParams
  4768. }
  4769. return nil
  4770. }
  4771. // SetEndTime sets the EndTime field's value.
  4772. func (s *StartExportTaskInput) SetEndTime(v time.Time) *StartExportTaskInput {
  4773. s.EndTime = &v
  4774. return s
  4775. }
  4776. // SetExportDataFormat sets the ExportDataFormat field's value.
  4777. func (s *StartExportTaskInput) SetExportDataFormat(v []*string) *StartExportTaskInput {
  4778. s.ExportDataFormat = v
  4779. return s
  4780. }
  4781. // SetFilters sets the Filters field's value.
  4782. func (s *StartExportTaskInput) SetFilters(v []*ExportFilter) *StartExportTaskInput {
  4783. s.Filters = v
  4784. return s
  4785. }
  4786. // SetStartTime sets the StartTime field's value.
  4787. func (s *StartExportTaskInput) SetStartTime(v time.Time) *StartExportTaskInput {
  4788. s.StartTime = &v
  4789. return s
  4790. }
  4791. type StartExportTaskOutput struct {
  4792. _ struct{} `type:"structure"`
  4793. // A unique identifier used to query the status of an export request.
  4794. ExportId *string `locationName:"exportId" type:"string"`
  4795. }
  4796. // String returns the string representation
  4797. func (s StartExportTaskOutput) String() string {
  4798. return awsutil.Prettify(s)
  4799. }
  4800. // GoString returns the string representation
  4801. func (s StartExportTaskOutput) GoString() string {
  4802. return s.String()
  4803. }
  4804. // SetExportId sets the ExportId field's value.
  4805. func (s *StartExportTaskOutput) SetExportId(v string) *StartExportTaskOutput {
  4806. s.ExportId = &v
  4807. return s
  4808. }
  4809. type StartImportTaskInput struct {
  4810. _ struct{} `type:"structure"`
  4811. // Optional. A unique token that you can provide to prevent the same import
  4812. // request from occurring more than once. If you don't provide a token, a token
  4813. // is automatically generated.
  4814. //
  4815. // Sending more than one StartImportTask request with the same client request
  4816. // token will return information about the original import task with that client
  4817. // request token.
  4818. ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string" idempotencyToken:"true"`
  4819. // The URL for your import file that you've uploaded to Amazon S3.
  4820. //
  4821. // If you're using the AWS CLI, this URL is structured as follows: s3://BucketName/ImportFileName.CSV
  4822. //
  4823. // ImportUrl is a required field
  4824. ImportUrl *string `locationName:"importUrl" min:"1" type:"string" required:"true"`
  4825. // A descriptive name for this request. You can use this name to filter future
  4826. // requests related to this import task, such as identifying applications and
  4827. // servers that were included in this import task. We recommend that you use
  4828. // a meaningful name for each import task.
  4829. //
  4830. // Name is a required field
  4831. Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  4832. }
  4833. // String returns the string representation
  4834. func (s StartImportTaskInput) String() string {
  4835. return awsutil.Prettify(s)
  4836. }
  4837. // GoString returns the string representation
  4838. func (s StartImportTaskInput) GoString() string {
  4839. return s.String()
  4840. }
  4841. // Validate inspects the fields of the type to determine if they are valid.
  4842. func (s *StartImportTaskInput) Validate() error {
  4843. invalidParams := request.ErrInvalidParams{Context: "StartImportTaskInput"}
  4844. if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
  4845. invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 1))
  4846. }
  4847. if s.ImportUrl == nil {
  4848. invalidParams.Add(request.NewErrParamRequired("ImportUrl"))
  4849. }
  4850. if s.ImportUrl != nil && len(*s.ImportUrl) < 1 {
  4851. invalidParams.Add(request.NewErrParamMinLen("ImportUrl", 1))
  4852. }
  4853. if s.Name == nil {
  4854. invalidParams.Add(request.NewErrParamRequired("Name"))
  4855. }
  4856. if s.Name != nil && len(*s.Name) < 1 {
  4857. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4858. }
  4859. if invalidParams.Len() > 0 {
  4860. return invalidParams
  4861. }
  4862. return nil
  4863. }
  4864. // SetClientRequestToken sets the ClientRequestToken field's value.
  4865. func (s *StartImportTaskInput) SetClientRequestToken(v string) *StartImportTaskInput {
  4866. s.ClientRequestToken = &v
  4867. return s
  4868. }
  4869. // SetImportUrl sets the ImportUrl field's value.
  4870. func (s *StartImportTaskInput) SetImportUrl(v string) *StartImportTaskInput {
  4871. s.ImportUrl = &v
  4872. return s
  4873. }
  4874. // SetName sets the Name field's value.
  4875. func (s *StartImportTaskInput) SetName(v string) *StartImportTaskInput {
  4876. s.Name = &v
  4877. return s
  4878. }
  4879. type StartImportTaskOutput struct {
  4880. _ struct{} `type:"structure"`
  4881. // An array of information related to the import task request including status
  4882. // information, times, IDs, the Amazon S3 Object URL for the import file, and
  4883. // more.
  4884. Task *ImportTask `locationName:"task" type:"structure"`
  4885. }
  4886. // String returns the string representation
  4887. func (s StartImportTaskOutput) String() string {
  4888. return awsutil.Prettify(s)
  4889. }
  4890. // GoString returns the string representation
  4891. func (s StartImportTaskOutput) GoString() string {
  4892. return s.String()
  4893. }
  4894. // SetTask sets the Task field's value.
  4895. func (s *StartImportTaskOutput) SetTask(v *ImportTask) *StartImportTaskOutput {
  4896. s.Task = v
  4897. return s
  4898. }
  4899. type StopContinuousExportInput struct {
  4900. _ struct{} `type:"structure"`
  4901. // The unique ID assigned to this export.
  4902. //
  4903. // ExportId is a required field
  4904. ExportId *string `locationName:"exportId" type:"string" required:"true"`
  4905. }
  4906. // String returns the string representation
  4907. func (s StopContinuousExportInput) String() string {
  4908. return awsutil.Prettify(s)
  4909. }
  4910. // GoString returns the string representation
  4911. func (s StopContinuousExportInput) GoString() string {
  4912. return s.String()
  4913. }
  4914. // Validate inspects the fields of the type to determine if they are valid.
  4915. func (s *StopContinuousExportInput) Validate() error {
  4916. invalidParams := request.ErrInvalidParams{Context: "StopContinuousExportInput"}
  4917. if s.ExportId == nil {
  4918. invalidParams.Add(request.NewErrParamRequired("ExportId"))
  4919. }
  4920. if invalidParams.Len() > 0 {
  4921. return invalidParams
  4922. }
  4923. return nil
  4924. }
  4925. // SetExportId sets the ExportId field's value.
  4926. func (s *StopContinuousExportInput) SetExportId(v string) *StopContinuousExportInput {
  4927. s.ExportId = &v
  4928. return s
  4929. }
  4930. type StopContinuousExportOutput struct {
  4931. _ struct{} `type:"structure"`
  4932. // Timestamp that represents when this continuous export started collecting
  4933. // data.
  4934. StartTime *time.Time `locationName:"startTime" type:"timestamp"`
  4935. // Timestamp that represents when this continuous export was stopped.
  4936. StopTime *time.Time `locationName:"stopTime" type:"timestamp"`
  4937. }
  4938. // String returns the string representation
  4939. func (s StopContinuousExportOutput) String() string {
  4940. return awsutil.Prettify(s)
  4941. }
  4942. // GoString returns the string representation
  4943. func (s StopContinuousExportOutput) GoString() string {
  4944. return s.String()
  4945. }
  4946. // SetStartTime sets the StartTime field's value.
  4947. func (s *StopContinuousExportOutput) SetStartTime(v time.Time) *StopContinuousExportOutput {
  4948. s.StartTime = &v
  4949. return s
  4950. }
  4951. // SetStopTime sets the StopTime field's value.
  4952. func (s *StopContinuousExportOutput) SetStopTime(v time.Time) *StopContinuousExportOutput {
  4953. s.StopTime = &v
  4954. return s
  4955. }
  4956. type StopDataCollectionByAgentIdsInput struct {
  4957. _ struct{} `type:"structure"`
  4958. // The IDs of the agents or connectors from which to stop collecting data.
  4959. //
  4960. // AgentIds is a required field
  4961. AgentIds []*string `locationName:"agentIds" type:"list" required:"true"`
  4962. }
  4963. // String returns the string representation
  4964. func (s StopDataCollectionByAgentIdsInput) String() string {
  4965. return awsutil.Prettify(s)
  4966. }
  4967. // GoString returns the string representation
  4968. func (s StopDataCollectionByAgentIdsInput) GoString() string {
  4969. return s.String()
  4970. }
  4971. // Validate inspects the fields of the type to determine if they are valid.
  4972. func (s *StopDataCollectionByAgentIdsInput) Validate() error {
  4973. invalidParams := request.ErrInvalidParams{Context: "StopDataCollectionByAgentIdsInput"}
  4974. if s.AgentIds == nil {
  4975. invalidParams.Add(request.NewErrParamRequired("AgentIds"))
  4976. }
  4977. if invalidParams.Len() > 0 {
  4978. return invalidParams
  4979. }
  4980. return nil
  4981. }
  4982. // SetAgentIds sets the AgentIds field's value.
  4983. func (s *StopDataCollectionByAgentIdsInput) SetAgentIds(v []*string) *StopDataCollectionByAgentIdsInput {
  4984. s.AgentIds = v
  4985. return s
  4986. }
  4987. type StopDataCollectionByAgentIdsOutput struct {
  4988. _ struct{} `type:"structure"`
  4989. // Information about the agents or connector that were instructed to stop collecting
  4990. // data. Information includes the agent/connector ID, a description of the operation
  4991. // performed, and whether the agent/connector configuration was updated.
  4992. AgentsConfigurationStatus []*AgentConfigurationStatus `locationName:"agentsConfigurationStatus" type:"list"`
  4993. }
  4994. // String returns the string representation
  4995. func (s StopDataCollectionByAgentIdsOutput) String() string {
  4996. return awsutil.Prettify(s)
  4997. }
  4998. // GoString returns the string representation
  4999. func (s StopDataCollectionByAgentIdsOutput) GoString() string {
  5000. return s.String()
  5001. }
  5002. // SetAgentsConfigurationStatus sets the AgentsConfigurationStatus field's value.
  5003. func (s *StopDataCollectionByAgentIdsOutput) SetAgentsConfigurationStatus(v []*AgentConfigurationStatus) *StopDataCollectionByAgentIdsOutput {
  5004. s.AgentsConfigurationStatus = v
  5005. return s
  5006. }
  5007. // Metadata that help you categorize IT assets.
  5008. type Tag struct {
  5009. _ struct{} `type:"structure"`
  5010. // The type of tag on which to filter.
  5011. //
  5012. // Key is a required field
  5013. Key *string `locationName:"key" type:"string" required:"true"`
  5014. // A value for a tag key on which to filter.
  5015. //
  5016. // Value is a required field
  5017. Value *string `locationName:"value" type:"string" required:"true"`
  5018. }
  5019. // String returns the string representation
  5020. func (s Tag) String() string {
  5021. return awsutil.Prettify(s)
  5022. }
  5023. // GoString returns the string representation
  5024. func (s Tag) GoString() string {
  5025. return s.String()
  5026. }
  5027. // Validate inspects the fields of the type to determine if they are valid.
  5028. func (s *Tag) Validate() error {
  5029. invalidParams := request.ErrInvalidParams{Context: "Tag"}
  5030. if s.Key == nil {
  5031. invalidParams.Add(request.NewErrParamRequired("Key"))
  5032. }
  5033. if s.Value == nil {
  5034. invalidParams.Add(request.NewErrParamRequired("Value"))
  5035. }
  5036. if invalidParams.Len() > 0 {
  5037. return invalidParams
  5038. }
  5039. return nil
  5040. }
  5041. // SetKey sets the Key field's value.
  5042. func (s *Tag) SetKey(v string) *Tag {
  5043. s.Key = &v
  5044. return s
  5045. }
  5046. // SetValue sets the Value field's value.
  5047. func (s *Tag) SetValue(v string) *Tag {
  5048. s.Value = &v
  5049. return s
  5050. }
  5051. // The tag filter. Valid names are: tagKey, tagValue, configurationId.
  5052. type TagFilter struct {
  5053. _ struct{} `type:"structure"`
  5054. // A name of the tag filter.
  5055. //
  5056. // Name is a required field
  5057. Name *string `locationName:"name" type:"string" required:"true"`
  5058. // Values for the tag filter.
  5059. //
  5060. // Values is a required field
  5061. Values []*string `locationName:"values" type:"list" required:"true"`
  5062. }
  5063. // String returns the string representation
  5064. func (s TagFilter) String() string {
  5065. return awsutil.Prettify(s)
  5066. }
  5067. // GoString returns the string representation
  5068. func (s TagFilter) GoString() string {
  5069. return s.String()
  5070. }
  5071. // Validate inspects the fields of the type to determine if they are valid.
  5072. func (s *TagFilter) Validate() error {
  5073. invalidParams := request.ErrInvalidParams{Context: "TagFilter"}
  5074. if s.Name == nil {
  5075. invalidParams.Add(request.NewErrParamRequired("Name"))
  5076. }
  5077. if s.Values == nil {
  5078. invalidParams.Add(request.NewErrParamRequired("Values"))
  5079. }
  5080. if invalidParams.Len() > 0 {
  5081. return invalidParams
  5082. }
  5083. return nil
  5084. }
  5085. // SetName sets the Name field's value.
  5086. func (s *TagFilter) SetName(v string) *TagFilter {
  5087. s.Name = &v
  5088. return s
  5089. }
  5090. // SetValues sets the Values field's value.
  5091. func (s *TagFilter) SetValues(v []*string) *TagFilter {
  5092. s.Values = v
  5093. return s
  5094. }
  5095. type UpdateApplicationInput struct {
  5096. _ struct{} `type:"structure"`
  5097. // Configuration ID of the application to be updated.
  5098. //
  5099. // ConfigurationId is a required field
  5100. ConfigurationId *string `locationName:"configurationId" type:"string" required:"true"`
  5101. // New description of the application to be updated.
  5102. Description *string `locationName:"description" type:"string"`
  5103. // New name of the application to be updated.
  5104. Name *string `locationName:"name" type:"string"`
  5105. }
  5106. // String returns the string representation
  5107. func (s UpdateApplicationInput) String() string {
  5108. return awsutil.Prettify(s)
  5109. }
  5110. // GoString returns the string representation
  5111. func (s UpdateApplicationInput) GoString() string {
  5112. return s.String()
  5113. }
  5114. // Validate inspects the fields of the type to determine if they are valid.
  5115. func (s *UpdateApplicationInput) Validate() error {
  5116. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
  5117. if s.ConfigurationId == nil {
  5118. invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
  5119. }
  5120. if invalidParams.Len() > 0 {
  5121. return invalidParams
  5122. }
  5123. return nil
  5124. }
  5125. // SetConfigurationId sets the ConfigurationId field's value.
  5126. func (s *UpdateApplicationInput) SetConfigurationId(v string) *UpdateApplicationInput {
  5127. s.ConfigurationId = &v
  5128. return s
  5129. }
  5130. // SetDescription sets the Description field's value.
  5131. func (s *UpdateApplicationInput) SetDescription(v string) *UpdateApplicationInput {
  5132. s.Description = &v
  5133. return s
  5134. }
  5135. // SetName sets the Name field's value.
  5136. func (s *UpdateApplicationInput) SetName(v string) *UpdateApplicationInput {
  5137. s.Name = &v
  5138. return s
  5139. }
  5140. type UpdateApplicationOutput struct {
  5141. _ struct{} `type:"structure"`
  5142. }
  5143. // String returns the string representation
  5144. func (s UpdateApplicationOutput) String() string {
  5145. return awsutil.Prettify(s)
  5146. }
  5147. // GoString returns the string representation
  5148. func (s UpdateApplicationOutput) GoString() string {
  5149. return s.String()
  5150. }
  5151. const (
  5152. // AgentStatusHealthy is a AgentStatus enum value
  5153. AgentStatusHealthy = "HEALTHY"
  5154. // AgentStatusUnhealthy is a AgentStatus enum value
  5155. AgentStatusUnhealthy = "UNHEALTHY"
  5156. // AgentStatusRunning is a AgentStatus enum value
  5157. AgentStatusRunning = "RUNNING"
  5158. // AgentStatusUnknown is a AgentStatus enum value
  5159. AgentStatusUnknown = "UNKNOWN"
  5160. // AgentStatusBlacklisted is a AgentStatus enum value
  5161. AgentStatusBlacklisted = "BLACKLISTED"
  5162. // AgentStatusShutdown is a AgentStatus enum value
  5163. AgentStatusShutdown = "SHUTDOWN"
  5164. )
  5165. const (
  5166. // BatchDeleteImportDataErrorCodeNotFound is a BatchDeleteImportDataErrorCode enum value
  5167. BatchDeleteImportDataErrorCodeNotFound = "NOT_FOUND"
  5168. // BatchDeleteImportDataErrorCodeInternalServerError is a BatchDeleteImportDataErrorCode enum value
  5169. BatchDeleteImportDataErrorCodeInternalServerError = "INTERNAL_SERVER_ERROR"
  5170. )
  5171. const (
  5172. // ConfigurationItemTypeServer is a ConfigurationItemType enum value
  5173. ConfigurationItemTypeServer = "SERVER"
  5174. // ConfigurationItemTypeProcess is a ConfigurationItemType enum value
  5175. ConfigurationItemTypeProcess = "PROCESS"
  5176. // ConfigurationItemTypeConnection is a ConfigurationItemType enum value
  5177. ConfigurationItemTypeConnection = "CONNECTION"
  5178. // ConfigurationItemTypeApplication is a ConfigurationItemType enum value
  5179. ConfigurationItemTypeApplication = "APPLICATION"
  5180. )
  5181. const (
  5182. // ContinuousExportStatusStartInProgress is a ContinuousExportStatus enum value
  5183. ContinuousExportStatusStartInProgress = "START_IN_PROGRESS"
  5184. // ContinuousExportStatusStartFailed is a ContinuousExportStatus enum value
  5185. ContinuousExportStatusStartFailed = "START_FAILED"
  5186. // ContinuousExportStatusActive is a ContinuousExportStatus enum value
  5187. ContinuousExportStatusActive = "ACTIVE"
  5188. // ContinuousExportStatusError is a ContinuousExportStatus enum value
  5189. ContinuousExportStatusError = "ERROR"
  5190. // ContinuousExportStatusStopInProgress is a ContinuousExportStatus enum value
  5191. ContinuousExportStatusStopInProgress = "STOP_IN_PROGRESS"
  5192. // ContinuousExportStatusStopFailed is a ContinuousExportStatus enum value
  5193. ContinuousExportStatusStopFailed = "STOP_FAILED"
  5194. // ContinuousExportStatusInactive is a ContinuousExportStatus enum value
  5195. ContinuousExportStatusInactive = "INACTIVE"
  5196. )
  5197. const (
  5198. // DataSourceAgent is a DataSource enum value
  5199. DataSourceAgent = "AGENT"
  5200. )
  5201. const (
  5202. // ExportDataFormatCsv is a ExportDataFormat enum value
  5203. ExportDataFormatCsv = "CSV"
  5204. // ExportDataFormatGraphml is a ExportDataFormat enum value
  5205. ExportDataFormatGraphml = "GRAPHML"
  5206. )
  5207. const (
  5208. // ExportStatusFailed is a ExportStatus enum value
  5209. ExportStatusFailed = "FAILED"
  5210. // ExportStatusSucceeded is a ExportStatus enum value
  5211. ExportStatusSucceeded = "SUCCEEDED"
  5212. // ExportStatusInProgress is a ExportStatus enum value
  5213. ExportStatusInProgress = "IN_PROGRESS"
  5214. )
  5215. const (
  5216. // ImportStatusImportInProgress is a ImportStatus enum value
  5217. ImportStatusImportInProgress = "IMPORT_IN_PROGRESS"
  5218. // ImportStatusImportComplete is a ImportStatus enum value
  5219. ImportStatusImportComplete = "IMPORT_COMPLETE"
  5220. // ImportStatusImportFailed is a ImportStatus enum value
  5221. ImportStatusImportFailed = "IMPORT_FAILED"
  5222. // ImportStatusImportFailedServerLimitExceeded is a ImportStatus enum value
  5223. ImportStatusImportFailedServerLimitExceeded = "IMPORT_FAILED_SERVER_LIMIT_EXCEEDED"
  5224. // ImportStatusImportFailedRecordLimitExceeded is a ImportStatus enum value
  5225. ImportStatusImportFailedRecordLimitExceeded = "IMPORT_FAILED_RECORD_LIMIT_EXCEEDED"
  5226. // ImportStatusDeleteInProgress is a ImportStatus enum value
  5227. ImportStatusDeleteInProgress = "DELETE_IN_PROGRESS"
  5228. // ImportStatusDeleteComplete is a ImportStatus enum value
  5229. ImportStatusDeleteComplete = "DELETE_COMPLETE"
  5230. // ImportStatusDeleteFailed is a ImportStatus enum value
  5231. ImportStatusDeleteFailed = "DELETE_FAILED"
  5232. // ImportStatusDeleteFailedLimitExceeded is a ImportStatus enum value
  5233. ImportStatusDeleteFailedLimitExceeded = "DELETE_FAILED_LIMIT_EXCEEDED"
  5234. )
  5235. const (
  5236. // ImportTaskFilterNameImportTaskId is a ImportTaskFilterName enum value
  5237. ImportTaskFilterNameImportTaskId = "IMPORT_TASK_ID"
  5238. // ImportTaskFilterNameStatus is a ImportTaskFilterName enum value
  5239. ImportTaskFilterNameStatus = "STATUS"
  5240. // ImportTaskFilterNameName is a ImportTaskFilterName enum value
  5241. ImportTaskFilterNameName = "NAME"
  5242. )
  5243. const (
  5244. // OrderStringAsc is a orderString enum value
  5245. OrderStringAsc = "ASC"
  5246. // OrderStringDesc is a orderString enum value
  5247. OrderStringDesc = "DESC"
  5248. )