api.go 205 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package sms
  3. import (
  4. "time"
  5. "github.com/aws/aws-sdk-go/aws"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. "github.com/aws/aws-sdk-go/private/protocol"
  9. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  10. )
  11. const opCreateApp = "CreateApp"
  12. // CreateAppRequest generates a "aws/request.Request" representing the
  13. // client's request for the CreateApp operation. The "output" return
  14. // value will be populated with the request's response once the request completes
  15. // successfully.
  16. //
  17. // Use "Send" method on the returned Request to send the API call to the service.
  18. // the "output" return value is not valid until after Send returns without error.
  19. //
  20. // See CreateApp for more information on using the CreateApp
  21. // API call, and error handling.
  22. //
  23. // This method is useful when you want to inject custom logic or configuration
  24. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  25. //
  26. //
  27. // // Example sending a request using the CreateAppRequest method.
  28. // req, resp := client.CreateAppRequest(params)
  29. //
  30. // err := req.Send()
  31. // if err == nil { // resp is now filled
  32. // fmt.Println(resp)
  33. // }
  34. //
  35. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp
  36. func (c *SMS) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
  37. op := &request.Operation{
  38. Name: opCreateApp,
  39. HTTPMethod: "POST",
  40. HTTPPath: "/",
  41. }
  42. if input == nil {
  43. input = &CreateAppInput{}
  44. }
  45. output = &CreateAppOutput{}
  46. req = c.newRequest(op, input, output)
  47. return
  48. }
  49. // CreateApp API operation for AWS Server Migration Service.
  50. //
  51. // Creates an application. An application consists of one or more server groups.
  52. // Each server group contain one or more servers.
  53. //
  54. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  55. // with awserr.Error's Code and Message methods to get detailed information about
  56. // the error.
  57. //
  58. // See the AWS API reference guide for AWS Server Migration Service's
  59. // API operation CreateApp for usage and error information.
  60. //
  61. // Returned Error Codes:
  62. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  63. // You lack permissions needed to perform this operation. Check your IAM policies,
  64. // and ensure that you are using the correct access keys.
  65. //
  66. // * ErrCodeInvalidParameterException "InvalidParameterException"
  67. // A specified parameter is not valid.
  68. //
  69. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  70. // A required parameter is missing.
  71. //
  72. // * ErrCodeInternalError "InternalError"
  73. // An internal error occurred.
  74. //
  75. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  76. // This operation is not allowed.
  77. //
  78. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp
  79. func (c *SMS) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
  80. req, out := c.CreateAppRequest(input)
  81. return out, req.Send()
  82. }
  83. // CreateAppWithContext is the same as CreateApp with the addition of
  84. // the ability to pass a context and additional request options.
  85. //
  86. // See CreateApp for details on how to use this API operation.
  87. //
  88. // The context must be non-nil and will be used for request cancellation. If
  89. // the context is nil a panic will occur. In the future the SDK may create
  90. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  91. // for more information on using Contexts.
  92. func (c *SMS) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) {
  93. req, out := c.CreateAppRequest(input)
  94. req.SetContext(ctx)
  95. req.ApplyOptions(opts...)
  96. return out, req.Send()
  97. }
  98. const opCreateReplicationJob = "CreateReplicationJob"
  99. // CreateReplicationJobRequest generates a "aws/request.Request" representing the
  100. // client's request for the CreateReplicationJob operation. The "output" return
  101. // value will be populated with the request's response once the request completes
  102. // successfully.
  103. //
  104. // Use "Send" method on the returned Request to send the API call to the service.
  105. // the "output" return value is not valid until after Send returns without error.
  106. //
  107. // See CreateReplicationJob for more information on using the CreateReplicationJob
  108. // API call, and error handling.
  109. //
  110. // This method is useful when you want to inject custom logic or configuration
  111. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  112. //
  113. //
  114. // // Example sending a request using the CreateReplicationJobRequest method.
  115. // req, resp := client.CreateReplicationJobRequest(params)
  116. //
  117. // err := req.Send()
  118. // if err == nil { // resp is now filled
  119. // fmt.Println(resp)
  120. // }
  121. //
  122. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob
  123. func (c *SMS) CreateReplicationJobRequest(input *CreateReplicationJobInput) (req *request.Request, output *CreateReplicationJobOutput) {
  124. op := &request.Operation{
  125. Name: opCreateReplicationJob,
  126. HTTPMethod: "POST",
  127. HTTPPath: "/",
  128. }
  129. if input == nil {
  130. input = &CreateReplicationJobInput{}
  131. }
  132. output = &CreateReplicationJobOutput{}
  133. req = c.newRequest(op, input, output)
  134. return
  135. }
  136. // CreateReplicationJob API operation for AWS Server Migration Service.
  137. //
  138. // Creates a replication job. The replication job schedules periodic replication
  139. // runs to replicate your server to AWS. Each replication run creates an Amazon
  140. // Machine Image (AMI).
  141. //
  142. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  143. // with awserr.Error's Code and Message methods to get detailed information about
  144. // the error.
  145. //
  146. // See the AWS API reference guide for AWS Server Migration Service's
  147. // API operation CreateReplicationJob for usage and error information.
  148. //
  149. // Returned Error Codes:
  150. // * ErrCodeInvalidParameterException "InvalidParameterException"
  151. // A specified parameter is not valid.
  152. //
  153. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  154. // A required parameter is missing.
  155. //
  156. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  157. // You lack permissions needed to perform this operation. Check your IAM policies,
  158. // and ensure that you are using the correct access keys.
  159. //
  160. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  161. // This operation is not allowed.
  162. //
  163. // * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException"
  164. // The specified server cannot be replicated.
  165. //
  166. // * ErrCodeReplicationJobAlreadyExistsException "ReplicationJobAlreadyExistsException"
  167. // The specified replication job already exists.
  168. //
  169. // * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException"
  170. // There are no connectors available.
  171. //
  172. // * ErrCodeInternalError "InternalError"
  173. // An internal error occurred.
  174. //
  175. // * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException"
  176. // The service is temporarily unavailable.
  177. //
  178. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob
  179. func (c *SMS) CreateReplicationJob(input *CreateReplicationJobInput) (*CreateReplicationJobOutput, error) {
  180. req, out := c.CreateReplicationJobRequest(input)
  181. return out, req.Send()
  182. }
  183. // CreateReplicationJobWithContext is the same as CreateReplicationJob with the addition of
  184. // the ability to pass a context and additional request options.
  185. //
  186. // See CreateReplicationJob for details on how to use this API operation.
  187. //
  188. // The context must be non-nil and will be used for request cancellation. If
  189. // the context is nil a panic will occur. In the future the SDK may create
  190. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  191. // for more information on using Contexts.
  192. func (c *SMS) CreateReplicationJobWithContext(ctx aws.Context, input *CreateReplicationJobInput, opts ...request.Option) (*CreateReplicationJobOutput, error) {
  193. req, out := c.CreateReplicationJobRequest(input)
  194. req.SetContext(ctx)
  195. req.ApplyOptions(opts...)
  196. return out, req.Send()
  197. }
  198. const opDeleteApp = "DeleteApp"
  199. // DeleteAppRequest generates a "aws/request.Request" representing the
  200. // client's request for the DeleteApp operation. The "output" return
  201. // value will be populated with the request's response once the request completes
  202. // successfully.
  203. //
  204. // Use "Send" method on the returned Request to send the API call to the service.
  205. // the "output" return value is not valid until after Send returns without error.
  206. //
  207. // See DeleteApp for more information on using the DeleteApp
  208. // API call, and error handling.
  209. //
  210. // This method is useful when you want to inject custom logic or configuration
  211. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  212. //
  213. //
  214. // // Example sending a request using the DeleteAppRequest method.
  215. // req, resp := client.DeleteAppRequest(params)
  216. //
  217. // err := req.Send()
  218. // if err == nil { // resp is now filled
  219. // fmt.Println(resp)
  220. // }
  221. //
  222. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp
  223. func (c *SMS) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
  224. op := &request.Operation{
  225. Name: opDeleteApp,
  226. HTTPMethod: "POST",
  227. HTTPPath: "/",
  228. }
  229. if input == nil {
  230. input = &DeleteAppInput{}
  231. }
  232. output = &DeleteAppOutput{}
  233. req = c.newRequest(op, input, output)
  234. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  235. return
  236. }
  237. // DeleteApp API operation for AWS Server Migration Service.
  238. //
  239. // Deletes an existing application. Optionally deletes the launched stack associated
  240. // with the application and all AWS SMS replication jobs for servers in the
  241. // application.
  242. //
  243. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  244. // with awserr.Error's Code and Message methods to get detailed information about
  245. // the error.
  246. //
  247. // See the AWS API reference guide for AWS Server Migration Service's
  248. // API operation DeleteApp for usage and error information.
  249. //
  250. // Returned Error Codes:
  251. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  252. // You lack permissions needed to perform this operation. Check your IAM policies,
  253. // and ensure that you are using the correct access keys.
  254. //
  255. // * ErrCodeInvalidParameterException "InvalidParameterException"
  256. // A specified parameter is not valid.
  257. //
  258. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  259. // A required parameter is missing.
  260. //
  261. // * ErrCodeInternalError "InternalError"
  262. // An internal error occurred.
  263. //
  264. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  265. // This operation is not allowed.
  266. //
  267. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp
  268. func (c *SMS) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
  269. req, out := c.DeleteAppRequest(input)
  270. return out, req.Send()
  271. }
  272. // DeleteAppWithContext is the same as DeleteApp with the addition of
  273. // the ability to pass a context and additional request options.
  274. //
  275. // See DeleteApp for details on how to use this API operation.
  276. //
  277. // The context must be non-nil and will be used for request cancellation. If
  278. // the context is nil a panic will occur. In the future the SDK may create
  279. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  280. // for more information on using Contexts.
  281. func (c *SMS) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) {
  282. req, out := c.DeleteAppRequest(input)
  283. req.SetContext(ctx)
  284. req.ApplyOptions(opts...)
  285. return out, req.Send()
  286. }
  287. const opDeleteAppLaunchConfiguration = "DeleteAppLaunchConfiguration"
  288. // DeleteAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
  289. // client's request for the DeleteAppLaunchConfiguration operation. The "output" return
  290. // value will be populated with the request's response once the request completes
  291. // successfully.
  292. //
  293. // Use "Send" method on the returned Request to send the API call to the service.
  294. // the "output" return value is not valid until after Send returns without error.
  295. //
  296. // See DeleteAppLaunchConfiguration for more information on using the DeleteAppLaunchConfiguration
  297. // API call, and error handling.
  298. //
  299. // This method is useful when you want to inject custom logic or configuration
  300. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  301. //
  302. //
  303. // // Example sending a request using the DeleteAppLaunchConfigurationRequest method.
  304. // req, resp := client.DeleteAppLaunchConfigurationRequest(params)
  305. //
  306. // err := req.Send()
  307. // if err == nil { // resp is now filled
  308. // fmt.Println(resp)
  309. // }
  310. //
  311. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration
  312. func (c *SMS) DeleteAppLaunchConfigurationRequest(input *DeleteAppLaunchConfigurationInput) (req *request.Request, output *DeleteAppLaunchConfigurationOutput) {
  313. op := &request.Operation{
  314. Name: opDeleteAppLaunchConfiguration,
  315. HTTPMethod: "POST",
  316. HTTPPath: "/",
  317. }
  318. if input == nil {
  319. input = &DeleteAppLaunchConfigurationInput{}
  320. }
  321. output = &DeleteAppLaunchConfigurationOutput{}
  322. req = c.newRequest(op, input, output)
  323. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  324. return
  325. }
  326. // DeleteAppLaunchConfiguration API operation for AWS Server Migration Service.
  327. //
  328. // Deletes existing launch configuration for an application.
  329. //
  330. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  331. // with awserr.Error's Code and Message methods to get detailed information about
  332. // the error.
  333. //
  334. // See the AWS API reference guide for AWS Server Migration Service's
  335. // API operation DeleteAppLaunchConfiguration for usage and error information.
  336. //
  337. // Returned Error Codes:
  338. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  339. // You lack permissions needed to perform this operation. Check your IAM policies,
  340. // and ensure that you are using the correct access keys.
  341. //
  342. // * ErrCodeInvalidParameterException "InvalidParameterException"
  343. // A specified parameter is not valid.
  344. //
  345. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  346. // A required parameter is missing.
  347. //
  348. // * ErrCodeInternalError "InternalError"
  349. // An internal error occurred.
  350. //
  351. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  352. // This operation is not allowed.
  353. //
  354. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration
  355. func (c *SMS) DeleteAppLaunchConfiguration(input *DeleteAppLaunchConfigurationInput) (*DeleteAppLaunchConfigurationOutput, error) {
  356. req, out := c.DeleteAppLaunchConfigurationRequest(input)
  357. return out, req.Send()
  358. }
  359. // DeleteAppLaunchConfigurationWithContext is the same as DeleteAppLaunchConfiguration with the addition of
  360. // the ability to pass a context and additional request options.
  361. //
  362. // See DeleteAppLaunchConfiguration for details on how to use this API operation.
  363. //
  364. // The context must be non-nil and will be used for request cancellation. If
  365. // the context is nil a panic will occur. In the future the SDK may create
  366. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  367. // for more information on using Contexts.
  368. func (c *SMS) DeleteAppLaunchConfigurationWithContext(ctx aws.Context, input *DeleteAppLaunchConfigurationInput, opts ...request.Option) (*DeleteAppLaunchConfigurationOutput, error) {
  369. req, out := c.DeleteAppLaunchConfigurationRequest(input)
  370. req.SetContext(ctx)
  371. req.ApplyOptions(opts...)
  372. return out, req.Send()
  373. }
  374. const opDeleteAppReplicationConfiguration = "DeleteAppReplicationConfiguration"
  375. // DeleteAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
  376. // client's request for the DeleteAppReplicationConfiguration operation. The "output" return
  377. // value will be populated with the request's response once the request completes
  378. // successfully.
  379. //
  380. // Use "Send" method on the returned Request to send the API call to the service.
  381. // the "output" return value is not valid until after Send returns without error.
  382. //
  383. // See DeleteAppReplicationConfiguration for more information on using the DeleteAppReplicationConfiguration
  384. // API call, and error handling.
  385. //
  386. // This method is useful when you want to inject custom logic or configuration
  387. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  388. //
  389. //
  390. // // Example sending a request using the DeleteAppReplicationConfigurationRequest method.
  391. // req, resp := client.DeleteAppReplicationConfigurationRequest(params)
  392. //
  393. // err := req.Send()
  394. // if err == nil { // resp is now filled
  395. // fmt.Println(resp)
  396. // }
  397. //
  398. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration
  399. func (c *SMS) DeleteAppReplicationConfigurationRequest(input *DeleteAppReplicationConfigurationInput) (req *request.Request, output *DeleteAppReplicationConfigurationOutput) {
  400. op := &request.Operation{
  401. Name: opDeleteAppReplicationConfiguration,
  402. HTTPMethod: "POST",
  403. HTTPPath: "/",
  404. }
  405. if input == nil {
  406. input = &DeleteAppReplicationConfigurationInput{}
  407. }
  408. output = &DeleteAppReplicationConfigurationOutput{}
  409. req = c.newRequest(op, input, output)
  410. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  411. return
  412. }
  413. // DeleteAppReplicationConfiguration API operation for AWS Server Migration Service.
  414. //
  415. // Deletes existing replication configuration for an application.
  416. //
  417. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  418. // with awserr.Error's Code and Message methods to get detailed information about
  419. // the error.
  420. //
  421. // See the AWS API reference guide for AWS Server Migration Service's
  422. // API operation DeleteAppReplicationConfiguration for usage and error information.
  423. //
  424. // Returned Error Codes:
  425. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  426. // You lack permissions needed to perform this operation. Check your IAM policies,
  427. // and ensure that you are using the correct access keys.
  428. //
  429. // * ErrCodeInvalidParameterException "InvalidParameterException"
  430. // A specified parameter is not valid.
  431. //
  432. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  433. // A required parameter is missing.
  434. //
  435. // * ErrCodeInternalError "InternalError"
  436. // An internal error occurred.
  437. //
  438. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  439. // This operation is not allowed.
  440. //
  441. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration
  442. func (c *SMS) DeleteAppReplicationConfiguration(input *DeleteAppReplicationConfigurationInput) (*DeleteAppReplicationConfigurationOutput, error) {
  443. req, out := c.DeleteAppReplicationConfigurationRequest(input)
  444. return out, req.Send()
  445. }
  446. // DeleteAppReplicationConfigurationWithContext is the same as DeleteAppReplicationConfiguration with the addition of
  447. // the ability to pass a context and additional request options.
  448. //
  449. // See DeleteAppReplicationConfiguration for details on how to use this API operation.
  450. //
  451. // The context must be non-nil and will be used for request cancellation. If
  452. // the context is nil a panic will occur. In the future the SDK may create
  453. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  454. // for more information on using Contexts.
  455. func (c *SMS) DeleteAppReplicationConfigurationWithContext(ctx aws.Context, input *DeleteAppReplicationConfigurationInput, opts ...request.Option) (*DeleteAppReplicationConfigurationOutput, error) {
  456. req, out := c.DeleteAppReplicationConfigurationRequest(input)
  457. req.SetContext(ctx)
  458. req.ApplyOptions(opts...)
  459. return out, req.Send()
  460. }
  461. const opDeleteReplicationJob = "DeleteReplicationJob"
  462. // DeleteReplicationJobRequest generates a "aws/request.Request" representing the
  463. // client's request for the DeleteReplicationJob operation. The "output" return
  464. // value will be populated with the request's response once the request completes
  465. // successfully.
  466. //
  467. // Use "Send" method on the returned Request to send the API call to the service.
  468. // the "output" return value is not valid until after Send returns without error.
  469. //
  470. // See DeleteReplicationJob for more information on using the DeleteReplicationJob
  471. // API call, and error handling.
  472. //
  473. // This method is useful when you want to inject custom logic or configuration
  474. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  475. //
  476. //
  477. // // Example sending a request using the DeleteReplicationJobRequest method.
  478. // req, resp := client.DeleteReplicationJobRequest(params)
  479. //
  480. // err := req.Send()
  481. // if err == nil { // resp is now filled
  482. // fmt.Println(resp)
  483. // }
  484. //
  485. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob
  486. func (c *SMS) DeleteReplicationJobRequest(input *DeleteReplicationJobInput) (req *request.Request, output *DeleteReplicationJobOutput) {
  487. op := &request.Operation{
  488. Name: opDeleteReplicationJob,
  489. HTTPMethod: "POST",
  490. HTTPPath: "/",
  491. }
  492. if input == nil {
  493. input = &DeleteReplicationJobInput{}
  494. }
  495. output = &DeleteReplicationJobOutput{}
  496. req = c.newRequest(op, input, output)
  497. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  498. return
  499. }
  500. // DeleteReplicationJob API operation for AWS Server Migration Service.
  501. //
  502. // Deletes the specified replication job.
  503. //
  504. // After you delete a replication job, there are no further replication runs.
  505. // AWS deletes the contents of the Amazon S3 bucket used to store AWS SMS artifacts.
  506. // The AMIs created by the replication runs are not deleted.
  507. //
  508. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  509. // with awserr.Error's Code and Message methods to get detailed information about
  510. // the error.
  511. //
  512. // See the AWS API reference guide for AWS Server Migration Service's
  513. // API operation DeleteReplicationJob for usage and error information.
  514. //
  515. // Returned Error Codes:
  516. // * ErrCodeInvalidParameterException "InvalidParameterException"
  517. // A specified parameter is not valid.
  518. //
  519. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  520. // A required parameter is missing.
  521. //
  522. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  523. // You lack permissions needed to perform this operation. Check your IAM policies,
  524. // and ensure that you are using the correct access keys.
  525. //
  526. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  527. // This operation is not allowed.
  528. //
  529. // * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException"
  530. // The specified replication job does not exist.
  531. //
  532. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob
  533. func (c *SMS) DeleteReplicationJob(input *DeleteReplicationJobInput) (*DeleteReplicationJobOutput, error) {
  534. req, out := c.DeleteReplicationJobRequest(input)
  535. return out, req.Send()
  536. }
  537. // DeleteReplicationJobWithContext is the same as DeleteReplicationJob with the addition of
  538. // the ability to pass a context and additional request options.
  539. //
  540. // See DeleteReplicationJob for details on how to use this API operation.
  541. //
  542. // The context must be non-nil and will be used for request cancellation. If
  543. // the context is nil a panic will occur. In the future the SDK may create
  544. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  545. // for more information on using Contexts.
  546. func (c *SMS) DeleteReplicationJobWithContext(ctx aws.Context, input *DeleteReplicationJobInput, opts ...request.Option) (*DeleteReplicationJobOutput, error) {
  547. req, out := c.DeleteReplicationJobRequest(input)
  548. req.SetContext(ctx)
  549. req.ApplyOptions(opts...)
  550. return out, req.Send()
  551. }
  552. const opDeleteServerCatalog = "DeleteServerCatalog"
  553. // DeleteServerCatalogRequest generates a "aws/request.Request" representing the
  554. // client's request for the DeleteServerCatalog operation. The "output" return
  555. // value will be populated with the request's response once the request completes
  556. // successfully.
  557. //
  558. // Use "Send" method on the returned Request to send the API call to the service.
  559. // the "output" return value is not valid until after Send returns without error.
  560. //
  561. // See DeleteServerCatalog for more information on using the DeleteServerCatalog
  562. // API call, and error handling.
  563. //
  564. // This method is useful when you want to inject custom logic or configuration
  565. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  566. //
  567. //
  568. // // Example sending a request using the DeleteServerCatalogRequest method.
  569. // req, resp := client.DeleteServerCatalogRequest(params)
  570. //
  571. // err := req.Send()
  572. // if err == nil { // resp is now filled
  573. // fmt.Println(resp)
  574. // }
  575. //
  576. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog
  577. func (c *SMS) DeleteServerCatalogRequest(input *DeleteServerCatalogInput) (req *request.Request, output *DeleteServerCatalogOutput) {
  578. op := &request.Operation{
  579. Name: opDeleteServerCatalog,
  580. HTTPMethod: "POST",
  581. HTTPPath: "/",
  582. }
  583. if input == nil {
  584. input = &DeleteServerCatalogInput{}
  585. }
  586. output = &DeleteServerCatalogOutput{}
  587. req = c.newRequest(op, input, output)
  588. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  589. return
  590. }
  591. // DeleteServerCatalog API operation for AWS Server Migration Service.
  592. //
  593. // Deletes all servers from your server catalog.
  594. //
  595. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  596. // with awserr.Error's Code and Message methods to get detailed information about
  597. // the error.
  598. //
  599. // See the AWS API reference guide for AWS Server Migration Service's
  600. // API operation DeleteServerCatalog for usage and error information.
  601. //
  602. // Returned Error Codes:
  603. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  604. // You lack permissions needed to perform this operation. Check your IAM policies,
  605. // and ensure that you are using the correct access keys.
  606. //
  607. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  608. // This operation is not allowed.
  609. //
  610. // * ErrCodeInvalidParameterException "InvalidParameterException"
  611. // A specified parameter is not valid.
  612. //
  613. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  614. // A required parameter is missing.
  615. //
  616. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog
  617. func (c *SMS) DeleteServerCatalog(input *DeleteServerCatalogInput) (*DeleteServerCatalogOutput, error) {
  618. req, out := c.DeleteServerCatalogRequest(input)
  619. return out, req.Send()
  620. }
  621. // DeleteServerCatalogWithContext is the same as DeleteServerCatalog with the addition of
  622. // the ability to pass a context and additional request options.
  623. //
  624. // See DeleteServerCatalog for details on how to use this API operation.
  625. //
  626. // The context must be non-nil and will be used for request cancellation. If
  627. // the context is nil a panic will occur. In the future the SDK may create
  628. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  629. // for more information on using Contexts.
  630. func (c *SMS) DeleteServerCatalogWithContext(ctx aws.Context, input *DeleteServerCatalogInput, opts ...request.Option) (*DeleteServerCatalogOutput, error) {
  631. req, out := c.DeleteServerCatalogRequest(input)
  632. req.SetContext(ctx)
  633. req.ApplyOptions(opts...)
  634. return out, req.Send()
  635. }
  636. const opDisassociateConnector = "DisassociateConnector"
  637. // DisassociateConnectorRequest generates a "aws/request.Request" representing the
  638. // client's request for the DisassociateConnector operation. The "output" return
  639. // value will be populated with the request's response once the request completes
  640. // successfully.
  641. //
  642. // Use "Send" method on the returned Request to send the API call to the service.
  643. // the "output" return value is not valid until after Send returns without error.
  644. //
  645. // See DisassociateConnector for more information on using the DisassociateConnector
  646. // API call, and error handling.
  647. //
  648. // This method is useful when you want to inject custom logic or configuration
  649. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  650. //
  651. //
  652. // // Example sending a request using the DisassociateConnectorRequest method.
  653. // req, resp := client.DisassociateConnectorRequest(params)
  654. //
  655. // err := req.Send()
  656. // if err == nil { // resp is now filled
  657. // fmt.Println(resp)
  658. // }
  659. //
  660. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector
  661. func (c *SMS) DisassociateConnectorRequest(input *DisassociateConnectorInput) (req *request.Request, output *DisassociateConnectorOutput) {
  662. op := &request.Operation{
  663. Name: opDisassociateConnector,
  664. HTTPMethod: "POST",
  665. HTTPPath: "/",
  666. }
  667. if input == nil {
  668. input = &DisassociateConnectorInput{}
  669. }
  670. output = &DisassociateConnectorOutput{}
  671. req = c.newRequest(op, input, output)
  672. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  673. return
  674. }
  675. // DisassociateConnector API operation for AWS Server Migration Service.
  676. //
  677. // Disassociates the specified connector from AWS SMS.
  678. //
  679. // After you disassociate a connector, it is no longer available to support
  680. // replication jobs.
  681. //
  682. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  683. // with awserr.Error's Code and Message methods to get detailed information about
  684. // the error.
  685. //
  686. // See the AWS API reference guide for AWS Server Migration Service's
  687. // API operation DisassociateConnector for usage and error information.
  688. //
  689. // Returned Error Codes:
  690. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  691. // A required parameter is missing.
  692. //
  693. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  694. // You lack permissions needed to perform this operation. Check your IAM policies,
  695. // and ensure that you are using the correct access keys.
  696. //
  697. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  698. // This operation is not allowed.
  699. //
  700. // * ErrCodeInvalidParameterException "InvalidParameterException"
  701. // A specified parameter is not valid.
  702. //
  703. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector
  704. func (c *SMS) DisassociateConnector(input *DisassociateConnectorInput) (*DisassociateConnectorOutput, error) {
  705. req, out := c.DisassociateConnectorRequest(input)
  706. return out, req.Send()
  707. }
  708. // DisassociateConnectorWithContext is the same as DisassociateConnector with the addition of
  709. // the ability to pass a context and additional request options.
  710. //
  711. // See DisassociateConnector for details on how to use this API operation.
  712. //
  713. // The context must be non-nil and will be used for request cancellation. If
  714. // the context is nil a panic will occur. In the future the SDK may create
  715. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  716. // for more information on using Contexts.
  717. func (c *SMS) DisassociateConnectorWithContext(ctx aws.Context, input *DisassociateConnectorInput, opts ...request.Option) (*DisassociateConnectorOutput, error) {
  718. req, out := c.DisassociateConnectorRequest(input)
  719. req.SetContext(ctx)
  720. req.ApplyOptions(opts...)
  721. return out, req.Send()
  722. }
  723. const opGenerateChangeSet = "GenerateChangeSet"
  724. // GenerateChangeSetRequest generates a "aws/request.Request" representing the
  725. // client's request for the GenerateChangeSet operation. The "output" return
  726. // value will be populated with the request's response once the request completes
  727. // successfully.
  728. //
  729. // Use "Send" method on the returned Request to send the API call to the service.
  730. // the "output" return value is not valid until after Send returns without error.
  731. //
  732. // See GenerateChangeSet for more information on using the GenerateChangeSet
  733. // API call, and error handling.
  734. //
  735. // This method is useful when you want to inject custom logic or configuration
  736. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  737. //
  738. //
  739. // // Example sending a request using the GenerateChangeSetRequest method.
  740. // req, resp := client.GenerateChangeSetRequest(params)
  741. //
  742. // err := req.Send()
  743. // if err == nil { // resp is now filled
  744. // fmt.Println(resp)
  745. // }
  746. //
  747. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet
  748. func (c *SMS) GenerateChangeSetRequest(input *GenerateChangeSetInput) (req *request.Request, output *GenerateChangeSetOutput) {
  749. op := &request.Operation{
  750. Name: opGenerateChangeSet,
  751. HTTPMethod: "POST",
  752. HTTPPath: "/",
  753. }
  754. if input == nil {
  755. input = &GenerateChangeSetInput{}
  756. }
  757. output = &GenerateChangeSetOutput{}
  758. req = c.newRequest(op, input, output)
  759. return
  760. }
  761. // GenerateChangeSet API operation for AWS Server Migration Service.
  762. //
  763. // Generates a target change set for a currently launched stack and writes it
  764. // to an Amazon S3 object in the customer’s Amazon S3 bucket.
  765. //
  766. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  767. // with awserr.Error's Code and Message methods to get detailed information about
  768. // the error.
  769. //
  770. // See the AWS API reference guide for AWS Server Migration Service's
  771. // API operation GenerateChangeSet for usage and error information.
  772. //
  773. // Returned Error Codes:
  774. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  775. // You lack permissions needed to perform this operation. Check your IAM policies,
  776. // and ensure that you are using the correct access keys.
  777. //
  778. // * ErrCodeInvalidParameterException "InvalidParameterException"
  779. // A specified parameter is not valid.
  780. //
  781. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  782. // A required parameter is missing.
  783. //
  784. // * ErrCodeInternalError "InternalError"
  785. // An internal error occurred.
  786. //
  787. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  788. // This operation is not allowed.
  789. //
  790. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet
  791. func (c *SMS) GenerateChangeSet(input *GenerateChangeSetInput) (*GenerateChangeSetOutput, error) {
  792. req, out := c.GenerateChangeSetRequest(input)
  793. return out, req.Send()
  794. }
  795. // GenerateChangeSetWithContext is the same as GenerateChangeSet with the addition of
  796. // the ability to pass a context and additional request options.
  797. //
  798. // See GenerateChangeSet for details on how to use this API operation.
  799. //
  800. // The context must be non-nil and will be used for request cancellation. If
  801. // the context is nil a panic will occur. In the future the SDK may create
  802. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  803. // for more information on using Contexts.
  804. func (c *SMS) GenerateChangeSetWithContext(ctx aws.Context, input *GenerateChangeSetInput, opts ...request.Option) (*GenerateChangeSetOutput, error) {
  805. req, out := c.GenerateChangeSetRequest(input)
  806. req.SetContext(ctx)
  807. req.ApplyOptions(opts...)
  808. return out, req.Send()
  809. }
  810. const opGenerateTemplate = "GenerateTemplate"
  811. // GenerateTemplateRequest generates a "aws/request.Request" representing the
  812. // client's request for the GenerateTemplate operation. The "output" return
  813. // value will be populated with the request's response once the request completes
  814. // successfully.
  815. //
  816. // Use "Send" method on the returned Request to send the API call to the service.
  817. // the "output" return value is not valid until after Send returns without error.
  818. //
  819. // See GenerateTemplate for more information on using the GenerateTemplate
  820. // API call, and error handling.
  821. //
  822. // This method is useful when you want to inject custom logic or configuration
  823. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  824. //
  825. //
  826. // // Example sending a request using the GenerateTemplateRequest method.
  827. // req, resp := client.GenerateTemplateRequest(params)
  828. //
  829. // err := req.Send()
  830. // if err == nil { // resp is now filled
  831. // fmt.Println(resp)
  832. // }
  833. //
  834. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate
  835. func (c *SMS) GenerateTemplateRequest(input *GenerateTemplateInput) (req *request.Request, output *GenerateTemplateOutput) {
  836. op := &request.Operation{
  837. Name: opGenerateTemplate,
  838. HTTPMethod: "POST",
  839. HTTPPath: "/",
  840. }
  841. if input == nil {
  842. input = &GenerateTemplateInput{}
  843. }
  844. output = &GenerateTemplateOutput{}
  845. req = c.newRequest(op, input, output)
  846. return
  847. }
  848. // GenerateTemplate API operation for AWS Server Migration Service.
  849. //
  850. // Generates an Amazon CloudFormation template based on the current launch configuration
  851. // and writes it to an Amazon S3 object in the customer’s Amazon S3 bucket.
  852. //
  853. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  854. // with awserr.Error's Code and Message methods to get detailed information about
  855. // the error.
  856. //
  857. // See the AWS API reference guide for AWS Server Migration Service's
  858. // API operation GenerateTemplate for usage and error information.
  859. //
  860. // Returned Error Codes:
  861. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  862. // You lack permissions needed to perform this operation. Check your IAM policies,
  863. // and ensure that you are using the correct access keys.
  864. //
  865. // * ErrCodeInvalidParameterException "InvalidParameterException"
  866. // A specified parameter is not valid.
  867. //
  868. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  869. // A required parameter is missing.
  870. //
  871. // * ErrCodeInternalError "InternalError"
  872. // An internal error occurred.
  873. //
  874. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  875. // This operation is not allowed.
  876. //
  877. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate
  878. func (c *SMS) GenerateTemplate(input *GenerateTemplateInput) (*GenerateTemplateOutput, error) {
  879. req, out := c.GenerateTemplateRequest(input)
  880. return out, req.Send()
  881. }
  882. // GenerateTemplateWithContext is the same as GenerateTemplate with the addition of
  883. // the ability to pass a context and additional request options.
  884. //
  885. // See GenerateTemplate for details on how to use this API operation.
  886. //
  887. // The context must be non-nil and will be used for request cancellation. If
  888. // the context is nil a panic will occur. In the future the SDK may create
  889. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  890. // for more information on using Contexts.
  891. func (c *SMS) GenerateTemplateWithContext(ctx aws.Context, input *GenerateTemplateInput, opts ...request.Option) (*GenerateTemplateOutput, error) {
  892. req, out := c.GenerateTemplateRequest(input)
  893. req.SetContext(ctx)
  894. req.ApplyOptions(opts...)
  895. return out, req.Send()
  896. }
  897. const opGetApp = "GetApp"
  898. // GetAppRequest generates a "aws/request.Request" representing the
  899. // client's request for the GetApp operation. The "output" return
  900. // value will be populated with the request's response once the request completes
  901. // successfully.
  902. //
  903. // Use "Send" method on the returned Request to send the API call to the service.
  904. // the "output" return value is not valid until after Send returns without error.
  905. //
  906. // See GetApp for more information on using the GetApp
  907. // API call, and error handling.
  908. //
  909. // This method is useful when you want to inject custom logic or configuration
  910. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  911. //
  912. //
  913. // // Example sending a request using the GetAppRequest method.
  914. // req, resp := client.GetAppRequest(params)
  915. //
  916. // err := req.Send()
  917. // if err == nil { // resp is now filled
  918. // fmt.Println(resp)
  919. // }
  920. //
  921. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp
  922. func (c *SMS) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) {
  923. op := &request.Operation{
  924. Name: opGetApp,
  925. HTTPMethod: "POST",
  926. HTTPPath: "/",
  927. }
  928. if input == nil {
  929. input = &GetAppInput{}
  930. }
  931. output = &GetAppOutput{}
  932. req = c.newRequest(op, input, output)
  933. return
  934. }
  935. // GetApp API operation for AWS Server Migration Service.
  936. //
  937. // Retrieve information about an application.
  938. //
  939. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  940. // with awserr.Error's Code and Message methods to get detailed information about
  941. // the error.
  942. //
  943. // See the AWS API reference guide for AWS Server Migration Service's
  944. // API operation GetApp for usage and error information.
  945. //
  946. // Returned Error Codes:
  947. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  948. // You lack permissions needed to perform this operation. Check your IAM policies,
  949. // and ensure that you are using the correct access keys.
  950. //
  951. // * ErrCodeInvalidParameterException "InvalidParameterException"
  952. // A specified parameter is not valid.
  953. //
  954. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  955. // A required parameter is missing.
  956. //
  957. // * ErrCodeInternalError "InternalError"
  958. // An internal error occurred.
  959. //
  960. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  961. // This operation is not allowed.
  962. //
  963. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp
  964. func (c *SMS) GetApp(input *GetAppInput) (*GetAppOutput, error) {
  965. req, out := c.GetAppRequest(input)
  966. return out, req.Send()
  967. }
  968. // GetAppWithContext is the same as GetApp with the addition of
  969. // the ability to pass a context and additional request options.
  970. //
  971. // See GetApp for details on how to use this API operation.
  972. //
  973. // The context must be non-nil and will be used for request cancellation. If
  974. // the context is nil a panic will occur. In the future the SDK may create
  975. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  976. // for more information on using Contexts.
  977. func (c *SMS) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) {
  978. req, out := c.GetAppRequest(input)
  979. req.SetContext(ctx)
  980. req.ApplyOptions(opts...)
  981. return out, req.Send()
  982. }
  983. const opGetAppLaunchConfiguration = "GetAppLaunchConfiguration"
  984. // GetAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
  985. // client's request for the GetAppLaunchConfiguration operation. The "output" return
  986. // value will be populated with the request's response once the request completes
  987. // successfully.
  988. //
  989. // Use "Send" method on the returned Request to send the API call to the service.
  990. // the "output" return value is not valid until after Send returns without error.
  991. //
  992. // See GetAppLaunchConfiguration for more information on using the GetAppLaunchConfiguration
  993. // API call, and error handling.
  994. //
  995. // This method is useful when you want to inject custom logic or configuration
  996. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  997. //
  998. //
  999. // // Example sending a request using the GetAppLaunchConfigurationRequest method.
  1000. // req, resp := client.GetAppLaunchConfigurationRequest(params)
  1001. //
  1002. // err := req.Send()
  1003. // if err == nil { // resp is now filled
  1004. // fmt.Println(resp)
  1005. // }
  1006. //
  1007. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration
  1008. func (c *SMS) GetAppLaunchConfigurationRequest(input *GetAppLaunchConfigurationInput) (req *request.Request, output *GetAppLaunchConfigurationOutput) {
  1009. op := &request.Operation{
  1010. Name: opGetAppLaunchConfiguration,
  1011. HTTPMethod: "POST",
  1012. HTTPPath: "/",
  1013. }
  1014. if input == nil {
  1015. input = &GetAppLaunchConfigurationInput{}
  1016. }
  1017. output = &GetAppLaunchConfigurationOutput{}
  1018. req = c.newRequest(op, input, output)
  1019. return
  1020. }
  1021. // GetAppLaunchConfiguration API operation for AWS Server Migration Service.
  1022. //
  1023. // Retrieves the application launch configuration associated with an application.
  1024. //
  1025. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1026. // with awserr.Error's Code and Message methods to get detailed information about
  1027. // the error.
  1028. //
  1029. // See the AWS API reference guide for AWS Server Migration Service's
  1030. // API operation GetAppLaunchConfiguration for usage and error information.
  1031. //
  1032. // Returned Error Codes:
  1033. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1034. // You lack permissions needed to perform this operation. Check your IAM policies,
  1035. // and ensure that you are using the correct access keys.
  1036. //
  1037. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1038. // A specified parameter is not valid.
  1039. //
  1040. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  1041. // A required parameter is missing.
  1042. //
  1043. // * ErrCodeInternalError "InternalError"
  1044. // An internal error occurred.
  1045. //
  1046. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1047. // This operation is not allowed.
  1048. //
  1049. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration
  1050. func (c *SMS) GetAppLaunchConfiguration(input *GetAppLaunchConfigurationInput) (*GetAppLaunchConfigurationOutput, error) {
  1051. req, out := c.GetAppLaunchConfigurationRequest(input)
  1052. return out, req.Send()
  1053. }
  1054. // GetAppLaunchConfigurationWithContext is the same as GetAppLaunchConfiguration with the addition of
  1055. // the ability to pass a context and additional request options.
  1056. //
  1057. // See GetAppLaunchConfiguration for details on how to use this API operation.
  1058. //
  1059. // The context must be non-nil and will be used for request cancellation. If
  1060. // the context is nil a panic will occur. In the future the SDK may create
  1061. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1062. // for more information on using Contexts.
  1063. func (c *SMS) GetAppLaunchConfigurationWithContext(ctx aws.Context, input *GetAppLaunchConfigurationInput, opts ...request.Option) (*GetAppLaunchConfigurationOutput, error) {
  1064. req, out := c.GetAppLaunchConfigurationRequest(input)
  1065. req.SetContext(ctx)
  1066. req.ApplyOptions(opts...)
  1067. return out, req.Send()
  1068. }
  1069. const opGetAppReplicationConfiguration = "GetAppReplicationConfiguration"
  1070. // GetAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
  1071. // client's request for the GetAppReplicationConfiguration operation. The "output" return
  1072. // value will be populated with the request's response once the request completes
  1073. // successfully.
  1074. //
  1075. // Use "Send" method on the returned Request to send the API call to the service.
  1076. // the "output" return value is not valid until after Send returns without error.
  1077. //
  1078. // See GetAppReplicationConfiguration for more information on using the GetAppReplicationConfiguration
  1079. // API call, and error handling.
  1080. //
  1081. // This method is useful when you want to inject custom logic or configuration
  1082. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1083. //
  1084. //
  1085. // // Example sending a request using the GetAppReplicationConfigurationRequest method.
  1086. // req, resp := client.GetAppReplicationConfigurationRequest(params)
  1087. //
  1088. // err := req.Send()
  1089. // if err == nil { // resp is now filled
  1090. // fmt.Println(resp)
  1091. // }
  1092. //
  1093. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration
  1094. func (c *SMS) GetAppReplicationConfigurationRequest(input *GetAppReplicationConfigurationInput) (req *request.Request, output *GetAppReplicationConfigurationOutput) {
  1095. op := &request.Operation{
  1096. Name: opGetAppReplicationConfiguration,
  1097. HTTPMethod: "POST",
  1098. HTTPPath: "/",
  1099. }
  1100. if input == nil {
  1101. input = &GetAppReplicationConfigurationInput{}
  1102. }
  1103. output = &GetAppReplicationConfigurationOutput{}
  1104. req = c.newRequest(op, input, output)
  1105. return
  1106. }
  1107. // GetAppReplicationConfiguration API operation for AWS Server Migration Service.
  1108. //
  1109. // Retrieves an application replication configuration associatd with an application.
  1110. //
  1111. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1112. // with awserr.Error's Code and Message methods to get detailed information about
  1113. // the error.
  1114. //
  1115. // See the AWS API reference guide for AWS Server Migration Service's
  1116. // API operation GetAppReplicationConfiguration for usage and error information.
  1117. //
  1118. // Returned Error Codes:
  1119. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1120. // You lack permissions needed to perform this operation. Check your IAM policies,
  1121. // and ensure that you are using the correct access keys.
  1122. //
  1123. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1124. // A specified parameter is not valid.
  1125. //
  1126. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  1127. // A required parameter is missing.
  1128. //
  1129. // * ErrCodeInternalError "InternalError"
  1130. // An internal error occurred.
  1131. //
  1132. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1133. // This operation is not allowed.
  1134. //
  1135. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration
  1136. func (c *SMS) GetAppReplicationConfiguration(input *GetAppReplicationConfigurationInput) (*GetAppReplicationConfigurationOutput, error) {
  1137. req, out := c.GetAppReplicationConfigurationRequest(input)
  1138. return out, req.Send()
  1139. }
  1140. // GetAppReplicationConfigurationWithContext is the same as GetAppReplicationConfiguration with the addition of
  1141. // the ability to pass a context and additional request options.
  1142. //
  1143. // See GetAppReplicationConfiguration for details on how to use this API operation.
  1144. //
  1145. // The context must be non-nil and will be used for request cancellation. If
  1146. // the context is nil a panic will occur. In the future the SDK may create
  1147. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1148. // for more information on using Contexts.
  1149. func (c *SMS) GetAppReplicationConfigurationWithContext(ctx aws.Context, input *GetAppReplicationConfigurationInput, opts ...request.Option) (*GetAppReplicationConfigurationOutput, error) {
  1150. req, out := c.GetAppReplicationConfigurationRequest(input)
  1151. req.SetContext(ctx)
  1152. req.ApplyOptions(opts...)
  1153. return out, req.Send()
  1154. }
  1155. const opGetConnectors = "GetConnectors"
  1156. // GetConnectorsRequest generates a "aws/request.Request" representing the
  1157. // client's request for the GetConnectors operation. The "output" return
  1158. // value will be populated with the request's response once the request completes
  1159. // successfully.
  1160. //
  1161. // Use "Send" method on the returned Request to send the API call to the service.
  1162. // the "output" return value is not valid until after Send returns without error.
  1163. //
  1164. // See GetConnectors for more information on using the GetConnectors
  1165. // API call, and error handling.
  1166. //
  1167. // This method is useful when you want to inject custom logic or configuration
  1168. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1169. //
  1170. //
  1171. // // Example sending a request using the GetConnectorsRequest method.
  1172. // req, resp := client.GetConnectorsRequest(params)
  1173. //
  1174. // err := req.Send()
  1175. // if err == nil { // resp is now filled
  1176. // fmt.Println(resp)
  1177. // }
  1178. //
  1179. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors
  1180. func (c *SMS) GetConnectorsRequest(input *GetConnectorsInput) (req *request.Request, output *GetConnectorsOutput) {
  1181. op := &request.Operation{
  1182. Name: opGetConnectors,
  1183. HTTPMethod: "POST",
  1184. HTTPPath: "/",
  1185. Paginator: &request.Paginator{
  1186. InputTokens: []string{"nextToken"},
  1187. OutputTokens: []string{"nextToken"},
  1188. LimitToken: "maxResults",
  1189. TruncationToken: "",
  1190. },
  1191. }
  1192. if input == nil {
  1193. input = &GetConnectorsInput{}
  1194. }
  1195. output = &GetConnectorsOutput{}
  1196. req = c.newRequest(op, input, output)
  1197. return
  1198. }
  1199. // GetConnectors API operation for AWS Server Migration Service.
  1200. //
  1201. // Describes the connectors registered with the AWS SMS.
  1202. //
  1203. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1204. // with awserr.Error's Code and Message methods to get detailed information about
  1205. // the error.
  1206. //
  1207. // See the AWS API reference guide for AWS Server Migration Service's
  1208. // API operation GetConnectors for usage and error information.
  1209. //
  1210. // Returned Error Codes:
  1211. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1212. // You lack permissions needed to perform this operation. Check your IAM policies,
  1213. // and ensure that you are using the correct access keys.
  1214. //
  1215. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors
  1216. func (c *SMS) GetConnectors(input *GetConnectorsInput) (*GetConnectorsOutput, error) {
  1217. req, out := c.GetConnectorsRequest(input)
  1218. return out, req.Send()
  1219. }
  1220. // GetConnectorsWithContext is the same as GetConnectors with the addition of
  1221. // the ability to pass a context and additional request options.
  1222. //
  1223. // See GetConnectors for details on how to use this API operation.
  1224. //
  1225. // The context must be non-nil and will be used for request cancellation. If
  1226. // the context is nil a panic will occur. In the future the SDK may create
  1227. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1228. // for more information on using Contexts.
  1229. func (c *SMS) GetConnectorsWithContext(ctx aws.Context, input *GetConnectorsInput, opts ...request.Option) (*GetConnectorsOutput, error) {
  1230. req, out := c.GetConnectorsRequest(input)
  1231. req.SetContext(ctx)
  1232. req.ApplyOptions(opts...)
  1233. return out, req.Send()
  1234. }
  1235. // GetConnectorsPages iterates over the pages of a GetConnectors operation,
  1236. // calling the "fn" function with the response data for each page. To stop
  1237. // iterating, return false from the fn function.
  1238. //
  1239. // See GetConnectors method for more information on how to use this operation.
  1240. //
  1241. // Note: This operation can generate multiple requests to a service.
  1242. //
  1243. // // Example iterating over at most 3 pages of a GetConnectors operation.
  1244. // pageNum := 0
  1245. // err := client.GetConnectorsPages(params,
  1246. // func(page *GetConnectorsOutput, lastPage bool) bool {
  1247. // pageNum++
  1248. // fmt.Println(page)
  1249. // return pageNum <= 3
  1250. // })
  1251. //
  1252. func (c *SMS) GetConnectorsPages(input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool) error {
  1253. return c.GetConnectorsPagesWithContext(aws.BackgroundContext(), input, fn)
  1254. }
  1255. // GetConnectorsPagesWithContext same as GetConnectorsPages except
  1256. // it takes a Context and allows setting request options on the pages.
  1257. //
  1258. // The context must be non-nil and will be used for request cancellation. If
  1259. // the context is nil a panic will occur. In the future the SDK may create
  1260. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1261. // for more information on using Contexts.
  1262. func (c *SMS) GetConnectorsPagesWithContext(ctx aws.Context, input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool, opts ...request.Option) error {
  1263. p := request.Pagination{
  1264. NewRequest: func() (*request.Request, error) {
  1265. var inCpy *GetConnectorsInput
  1266. if input != nil {
  1267. tmp := *input
  1268. inCpy = &tmp
  1269. }
  1270. req, _ := c.GetConnectorsRequest(inCpy)
  1271. req.SetContext(ctx)
  1272. req.ApplyOptions(opts...)
  1273. return req, nil
  1274. },
  1275. }
  1276. cont := true
  1277. for p.Next() && cont {
  1278. cont = fn(p.Page().(*GetConnectorsOutput), !p.HasNextPage())
  1279. }
  1280. return p.Err()
  1281. }
  1282. const opGetReplicationJobs = "GetReplicationJobs"
  1283. // GetReplicationJobsRequest generates a "aws/request.Request" representing the
  1284. // client's request for the GetReplicationJobs operation. The "output" return
  1285. // value will be populated with the request's response once the request completes
  1286. // successfully.
  1287. //
  1288. // Use "Send" method on the returned Request to send the API call to the service.
  1289. // the "output" return value is not valid until after Send returns without error.
  1290. //
  1291. // See GetReplicationJobs for more information on using the GetReplicationJobs
  1292. // API call, and error handling.
  1293. //
  1294. // This method is useful when you want to inject custom logic or configuration
  1295. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1296. //
  1297. //
  1298. // // Example sending a request using the GetReplicationJobsRequest method.
  1299. // req, resp := client.GetReplicationJobsRequest(params)
  1300. //
  1301. // err := req.Send()
  1302. // if err == nil { // resp is now filled
  1303. // fmt.Println(resp)
  1304. // }
  1305. //
  1306. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs
  1307. func (c *SMS) GetReplicationJobsRequest(input *GetReplicationJobsInput) (req *request.Request, output *GetReplicationJobsOutput) {
  1308. op := &request.Operation{
  1309. Name: opGetReplicationJobs,
  1310. HTTPMethod: "POST",
  1311. HTTPPath: "/",
  1312. Paginator: &request.Paginator{
  1313. InputTokens: []string{"nextToken"},
  1314. OutputTokens: []string{"nextToken"},
  1315. LimitToken: "maxResults",
  1316. TruncationToken: "",
  1317. },
  1318. }
  1319. if input == nil {
  1320. input = &GetReplicationJobsInput{}
  1321. }
  1322. output = &GetReplicationJobsOutput{}
  1323. req = c.newRequest(op, input, output)
  1324. return
  1325. }
  1326. // GetReplicationJobs API operation for AWS Server Migration Service.
  1327. //
  1328. // Describes the specified replication job or all of your replication jobs.
  1329. //
  1330. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1331. // with awserr.Error's Code and Message methods to get detailed information about
  1332. // the error.
  1333. //
  1334. // See the AWS API reference guide for AWS Server Migration Service's
  1335. // API operation GetReplicationJobs for usage and error information.
  1336. //
  1337. // Returned Error Codes:
  1338. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1339. // A specified parameter is not valid.
  1340. //
  1341. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  1342. // A required parameter is missing.
  1343. //
  1344. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1345. // You lack permissions needed to perform this operation. Check your IAM policies,
  1346. // and ensure that you are using the correct access keys.
  1347. //
  1348. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs
  1349. func (c *SMS) GetReplicationJobs(input *GetReplicationJobsInput) (*GetReplicationJobsOutput, error) {
  1350. req, out := c.GetReplicationJobsRequest(input)
  1351. return out, req.Send()
  1352. }
  1353. // GetReplicationJobsWithContext is the same as GetReplicationJobs with the addition of
  1354. // the ability to pass a context and additional request options.
  1355. //
  1356. // See GetReplicationJobs for details on how to use this API operation.
  1357. //
  1358. // The context must be non-nil and will be used for request cancellation. If
  1359. // the context is nil a panic will occur. In the future the SDK may create
  1360. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1361. // for more information on using Contexts.
  1362. func (c *SMS) GetReplicationJobsWithContext(ctx aws.Context, input *GetReplicationJobsInput, opts ...request.Option) (*GetReplicationJobsOutput, error) {
  1363. req, out := c.GetReplicationJobsRequest(input)
  1364. req.SetContext(ctx)
  1365. req.ApplyOptions(opts...)
  1366. return out, req.Send()
  1367. }
  1368. // GetReplicationJobsPages iterates over the pages of a GetReplicationJobs operation,
  1369. // calling the "fn" function with the response data for each page. To stop
  1370. // iterating, return false from the fn function.
  1371. //
  1372. // See GetReplicationJobs method for more information on how to use this operation.
  1373. //
  1374. // Note: This operation can generate multiple requests to a service.
  1375. //
  1376. // // Example iterating over at most 3 pages of a GetReplicationJobs operation.
  1377. // pageNum := 0
  1378. // err := client.GetReplicationJobsPages(params,
  1379. // func(page *GetReplicationJobsOutput, lastPage bool) bool {
  1380. // pageNum++
  1381. // fmt.Println(page)
  1382. // return pageNum <= 3
  1383. // })
  1384. //
  1385. func (c *SMS) GetReplicationJobsPages(input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool) error {
  1386. return c.GetReplicationJobsPagesWithContext(aws.BackgroundContext(), input, fn)
  1387. }
  1388. // GetReplicationJobsPagesWithContext same as GetReplicationJobsPages except
  1389. // it takes a Context and allows setting request options on the pages.
  1390. //
  1391. // The context must be non-nil and will be used for request cancellation. If
  1392. // the context is nil a panic will occur. In the future the SDK may create
  1393. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1394. // for more information on using Contexts.
  1395. func (c *SMS) GetReplicationJobsPagesWithContext(ctx aws.Context, input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool, opts ...request.Option) error {
  1396. p := request.Pagination{
  1397. NewRequest: func() (*request.Request, error) {
  1398. var inCpy *GetReplicationJobsInput
  1399. if input != nil {
  1400. tmp := *input
  1401. inCpy = &tmp
  1402. }
  1403. req, _ := c.GetReplicationJobsRequest(inCpy)
  1404. req.SetContext(ctx)
  1405. req.ApplyOptions(opts...)
  1406. return req, nil
  1407. },
  1408. }
  1409. cont := true
  1410. for p.Next() && cont {
  1411. cont = fn(p.Page().(*GetReplicationJobsOutput), !p.HasNextPage())
  1412. }
  1413. return p.Err()
  1414. }
  1415. const opGetReplicationRuns = "GetReplicationRuns"
  1416. // GetReplicationRunsRequest generates a "aws/request.Request" representing the
  1417. // client's request for the GetReplicationRuns operation. The "output" return
  1418. // value will be populated with the request's response once the request completes
  1419. // successfully.
  1420. //
  1421. // Use "Send" method on the returned Request to send the API call to the service.
  1422. // the "output" return value is not valid until after Send returns without error.
  1423. //
  1424. // See GetReplicationRuns for more information on using the GetReplicationRuns
  1425. // API call, and error handling.
  1426. //
  1427. // This method is useful when you want to inject custom logic or configuration
  1428. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1429. //
  1430. //
  1431. // // Example sending a request using the GetReplicationRunsRequest method.
  1432. // req, resp := client.GetReplicationRunsRequest(params)
  1433. //
  1434. // err := req.Send()
  1435. // if err == nil { // resp is now filled
  1436. // fmt.Println(resp)
  1437. // }
  1438. //
  1439. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns
  1440. func (c *SMS) GetReplicationRunsRequest(input *GetReplicationRunsInput) (req *request.Request, output *GetReplicationRunsOutput) {
  1441. op := &request.Operation{
  1442. Name: opGetReplicationRuns,
  1443. HTTPMethod: "POST",
  1444. HTTPPath: "/",
  1445. Paginator: &request.Paginator{
  1446. InputTokens: []string{"nextToken"},
  1447. OutputTokens: []string{"nextToken"},
  1448. LimitToken: "maxResults",
  1449. TruncationToken: "",
  1450. },
  1451. }
  1452. if input == nil {
  1453. input = &GetReplicationRunsInput{}
  1454. }
  1455. output = &GetReplicationRunsOutput{}
  1456. req = c.newRequest(op, input, output)
  1457. return
  1458. }
  1459. // GetReplicationRuns API operation for AWS Server Migration Service.
  1460. //
  1461. // Describes the replication runs for the specified replication job.
  1462. //
  1463. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1464. // with awserr.Error's Code and Message methods to get detailed information about
  1465. // the error.
  1466. //
  1467. // See the AWS API reference guide for AWS Server Migration Service's
  1468. // API operation GetReplicationRuns for usage and error information.
  1469. //
  1470. // Returned Error Codes:
  1471. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1472. // A specified parameter is not valid.
  1473. //
  1474. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  1475. // A required parameter is missing.
  1476. //
  1477. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1478. // You lack permissions needed to perform this operation. Check your IAM policies,
  1479. // and ensure that you are using the correct access keys.
  1480. //
  1481. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns
  1482. func (c *SMS) GetReplicationRuns(input *GetReplicationRunsInput) (*GetReplicationRunsOutput, error) {
  1483. req, out := c.GetReplicationRunsRequest(input)
  1484. return out, req.Send()
  1485. }
  1486. // GetReplicationRunsWithContext is the same as GetReplicationRuns with the addition of
  1487. // the ability to pass a context and additional request options.
  1488. //
  1489. // See GetReplicationRuns for details on how to use this API operation.
  1490. //
  1491. // The context must be non-nil and will be used for request cancellation. If
  1492. // the context is nil a panic will occur. In the future the SDK may create
  1493. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1494. // for more information on using Contexts.
  1495. func (c *SMS) GetReplicationRunsWithContext(ctx aws.Context, input *GetReplicationRunsInput, opts ...request.Option) (*GetReplicationRunsOutput, error) {
  1496. req, out := c.GetReplicationRunsRequest(input)
  1497. req.SetContext(ctx)
  1498. req.ApplyOptions(opts...)
  1499. return out, req.Send()
  1500. }
  1501. // GetReplicationRunsPages iterates over the pages of a GetReplicationRuns operation,
  1502. // calling the "fn" function with the response data for each page. To stop
  1503. // iterating, return false from the fn function.
  1504. //
  1505. // See GetReplicationRuns method for more information on how to use this operation.
  1506. //
  1507. // Note: This operation can generate multiple requests to a service.
  1508. //
  1509. // // Example iterating over at most 3 pages of a GetReplicationRuns operation.
  1510. // pageNum := 0
  1511. // err := client.GetReplicationRunsPages(params,
  1512. // func(page *GetReplicationRunsOutput, lastPage bool) bool {
  1513. // pageNum++
  1514. // fmt.Println(page)
  1515. // return pageNum <= 3
  1516. // })
  1517. //
  1518. func (c *SMS) GetReplicationRunsPages(input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool) error {
  1519. return c.GetReplicationRunsPagesWithContext(aws.BackgroundContext(), input, fn)
  1520. }
  1521. // GetReplicationRunsPagesWithContext same as GetReplicationRunsPages except
  1522. // it takes a Context and allows setting request options on the pages.
  1523. //
  1524. // The context must be non-nil and will be used for request cancellation. If
  1525. // the context is nil a panic will occur. In the future the SDK may create
  1526. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1527. // for more information on using Contexts.
  1528. func (c *SMS) GetReplicationRunsPagesWithContext(ctx aws.Context, input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool, opts ...request.Option) error {
  1529. p := request.Pagination{
  1530. NewRequest: func() (*request.Request, error) {
  1531. var inCpy *GetReplicationRunsInput
  1532. if input != nil {
  1533. tmp := *input
  1534. inCpy = &tmp
  1535. }
  1536. req, _ := c.GetReplicationRunsRequest(inCpy)
  1537. req.SetContext(ctx)
  1538. req.ApplyOptions(opts...)
  1539. return req, nil
  1540. },
  1541. }
  1542. cont := true
  1543. for p.Next() && cont {
  1544. cont = fn(p.Page().(*GetReplicationRunsOutput), !p.HasNextPage())
  1545. }
  1546. return p.Err()
  1547. }
  1548. const opGetServers = "GetServers"
  1549. // GetServersRequest generates a "aws/request.Request" representing the
  1550. // client's request for the GetServers operation. The "output" return
  1551. // value will be populated with the request's response once the request completes
  1552. // successfully.
  1553. //
  1554. // Use "Send" method on the returned Request to send the API call to the service.
  1555. // the "output" return value is not valid until after Send returns without error.
  1556. //
  1557. // See GetServers for more information on using the GetServers
  1558. // API call, and error handling.
  1559. //
  1560. // This method is useful when you want to inject custom logic or configuration
  1561. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1562. //
  1563. //
  1564. // // Example sending a request using the GetServersRequest method.
  1565. // req, resp := client.GetServersRequest(params)
  1566. //
  1567. // err := req.Send()
  1568. // if err == nil { // resp is now filled
  1569. // fmt.Println(resp)
  1570. // }
  1571. //
  1572. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers
  1573. func (c *SMS) GetServersRequest(input *GetServersInput) (req *request.Request, output *GetServersOutput) {
  1574. op := &request.Operation{
  1575. Name: opGetServers,
  1576. HTTPMethod: "POST",
  1577. HTTPPath: "/",
  1578. Paginator: &request.Paginator{
  1579. InputTokens: []string{"nextToken"},
  1580. OutputTokens: []string{"nextToken"},
  1581. LimitToken: "maxResults",
  1582. TruncationToken: "",
  1583. },
  1584. }
  1585. if input == nil {
  1586. input = &GetServersInput{}
  1587. }
  1588. output = &GetServersOutput{}
  1589. req = c.newRequest(op, input, output)
  1590. return
  1591. }
  1592. // GetServers API operation for AWS Server Migration Service.
  1593. //
  1594. // Describes the servers in your server catalog.
  1595. //
  1596. // Before you can describe your servers, you must import them using ImportServerCatalog.
  1597. //
  1598. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1599. // with awserr.Error's Code and Message methods to get detailed information about
  1600. // the error.
  1601. //
  1602. // See the AWS API reference guide for AWS Server Migration Service's
  1603. // API operation GetServers for usage and error information.
  1604. //
  1605. // Returned Error Codes:
  1606. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1607. // You lack permissions needed to perform this operation. Check your IAM policies,
  1608. // and ensure that you are using the correct access keys.
  1609. //
  1610. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers
  1611. func (c *SMS) GetServers(input *GetServersInput) (*GetServersOutput, error) {
  1612. req, out := c.GetServersRequest(input)
  1613. return out, req.Send()
  1614. }
  1615. // GetServersWithContext is the same as GetServers with the addition of
  1616. // the ability to pass a context and additional request options.
  1617. //
  1618. // See GetServers for details on how to use this API operation.
  1619. //
  1620. // The context must be non-nil and will be used for request cancellation. If
  1621. // the context is nil a panic will occur. In the future the SDK may create
  1622. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1623. // for more information on using Contexts.
  1624. func (c *SMS) GetServersWithContext(ctx aws.Context, input *GetServersInput, opts ...request.Option) (*GetServersOutput, error) {
  1625. req, out := c.GetServersRequest(input)
  1626. req.SetContext(ctx)
  1627. req.ApplyOptions(opts...)
  1628. return out, req.Send()
  1629. }
  1630. // GetServersPages iterates over the pages of a GetServers operation,
  1631. // calling the "fn" function with the response data for each page. To stop
  1632. // iterating, return false from the fn function.
  1633. //
  1634. // See GetServers method for more information on how to use this operation.
  1635. //
  1636. // Note: This operation can generate multiple requests to a service.
  1637. //
  1638. // // Example iterating over at most 3 pages of a GetServers operation.
  1639. // pageNum := 0
  1640. // err := client.GetServersPages(params,
  1641. // func(page *GetServersOutput, lastPage bool) bool {
  1642. // pageNum++
  1643. // fmt.Println(page)
  1644. // return pageNum <= 3
  1645. // })
  1646. //
  1647. func (c *SMS) GetServersPages(input *GetServersInput, fn func(*GetServersOutput, bool) bool) error {
  1648. return c.GetServersPagesWithContext(aws.BackgroundContext(), input, fn)
  1649. }
  1650. // GetServersPagesWithContext same as GetServersPages except
  1651. // it takes a Context and allows setting request options on the pages.
  1652. //
  1653. // The context must be non-nil and will be used for request cancellation. If
  1654. // the context is nil a panic will occur. In the future the SDK may create
  1655. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1656. // for more information on using Contexts.
  1657. func (c *SMS) GetServersPagesWithContext(ctx aws.Context, input *GetServersInput, fn func(*GetServersOutput, bool) bool, opts ...request.Option) error {
  1658. p := request.Pagination{
  1659. NewRequest: func() (*request.Request, error) {
  1660. var inCpy *GetServersInput
  1661. if input != nil {
  1662. tmp := *input
  1663. inCpy = &tmp
  1664. }
  1665. req, _ := c.GetServersRequest(inCpy)
  1666. req.SetContext(ctx)
  1667. req.ApplyOptions(opts...)
  1668. return req, nil
  1669. },
  1670. }
  1671. cont := true
  1672. for p.Next() && cont {
  1673. cont = fn(p.Page().(*GetServersOutput), !p.HasNextPage())
  1674. }
  1675. return p.Err()
  1676. }
  1677. const opImportServerCatalog = "ImportServerCatalog"
  1678. // ImportServerCatalogRequest generates a "aws/request.Request" representing the
  1679. // client's request for the ImportServerCatalog operation. The "output" return
  1680. // value will be populated with the request's response once the request completes
  1681. // successfully.
  1682. //
  1683. // Use "Send" method on the returned Request to send the API call to the service.
  1684. // the "output" return value is not valid until after Send returns without error.
  1685. //
  1686. // See ImportServerCatalog for more information on using the ImportServerCatalog
  1687. // API call, and error handling.
  1688. //
  1689. // This method is useful when you want to inject custom logic or configuration
  1690. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1691. //
  1692. //
  1693. // // Example sending a request using the ImportServerCatalogRequest method.
  1694. // req, resp := client.ImportServerCatalogRequest(params)
  1695. //
  1696. // err := req.Send()
  1697. // if err == nil { // resp is now filled
  1698. // fmt.Println(resp)
  1699. // }
  1700. //
  1701. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog
  1702. func (c *SMS) ImportServerCatalogRequest(input *ImportServerCatalogInput) (req *request.Request, output *ImportServerCatalogOutput) {
  1703. op := &request.Operation{
  1704. Name: opImportServerCatalog,
  1705. HTTPMethod: "POST",
  1706. HTTPPath: "/",
  1707. }
  1708. if input == nil {
  1709. input = &ImportServerCatalogInput{}
  1710. }
  1711. output = &ImportServerCatalogOutput{}
  1712. req = c.newRequest(op, input, output)
  1713. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1714. return
  1715. }
  1716. // ImportServerCatalog API operation for AWS Server Migration Service.
  1717. //
  1718. // Gathers a complete list of on-premises servers. Connectors must be installed
  1719. // and monitoring all servers that you want to import.
  1720. //
  1721. // This call returns immediately, but might take additional time to retrieve
  1722. // all the servers.
  1723. //
  1724. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1725. // with awserr.Error's Code and Message methods to get detailed information about
  1726. // the error.
  1727. //
  1728. // See the AWS API reference guide for AWS Server Migration Service's
  1729. // API operation ImportServerCatalog for usage and error information.
  1730. //
  1731. // Returned Error Codes:
  1732. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1733. // You lack permissions needed to perform this operation. Check your IAM policies,
  1734. // and ensure that you are using the correct access keys.
  1735. //
  1736. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1737. // This operation is not allowed.
  1738. //
  1739. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1740. // A specified parameter is not valid.
  1741. //
  1742. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  1743. // A required parameter is missing.
  1744. //
  1745. // * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException"
  1746. // There are no connectors available.
  1747. //
  1748. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog
  1749. func (c *SMS) ImportServerCatalog(input *ImportServerCatalogInput) (*ImportServerCatalogOutput, error) {
  1750. req, out := c.ImportServerCatalogRequest(input)
  1751. return out, req.Send()
  1752. }
  1753. // ImportServerCatalogWithContext is the same as ImportServerCatalog with the addition of
  1754. // the ability to pass a context and additional request options.
  1755. //
  1756. // See ImportServerCatalog for details on how to use this API operation.
  1757. //
  1758. // The context must be non-nil and will be used for request cancellation. If
  1759. // the context is nil a panic will occur. In the future the SDK may create
  1760. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1761. // for more information on using Contexts.
  1762. func (c *SMS) ImportServerCatalogWithContext(ctx aws.Context, input *ImportServerCatalogInput, opts ...request.Option) (*ImportServerCatalogOutput, error) {
  1763. req, out := c.ImportServerCatalogRequest(input)
  1764. req.SetContext(ctx)
  1765. req.ApplyOptions(opts...)
  1766. return out, req.Send()
  1767. }
  1768. const opLaunchApp = "LaunchApp"
  1769. // LaunchAppRequest generates a "aws/request.Request" representing the
  1770. // client's request for the LaunchApp operation. The "output" return
  1771. // value will be populated with the request's response once the request completes
  1772. // successfully.
  1773. //
  1774. // Use "Send" method on the returned Request to send the API call to the service.
  1775. // the "output" return value is not valid until after Send returns without error.
  1776. //
  1777. // See LaunchApp for more information on using the LaunchApp
  1778. // API call, and error handling.
  1779. //
  1780. // This method is useful when you want to inject custom logic or configuration
  1781. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1782. //
  1783. //
  1784. // // Example sending a request using the LaunchAppRequest method.
  1785. // req, resp := client.LaunchAppRequest(params)
  1786. //
  1787. // err := req.Send()
  1788. // if err == nil { // resp is now filled
  1789. // fmt.Println(resp)
  1790. // }
  1791. //
  1792. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp
  1793. func (c *SMS) LaunchAppRequest(input *LaunchAppInput) (req *request.Request, output *LaunchAppOutput) {
  1794. op := &request.Operation{
  1795. Name: opLaunchApp,
  1796. HTTPMethod: "POST",
  1797. HTTPPath: "/",
  1798. }
  1799. if input == nil {
  1800. input = &LaunchAppInput{}
  1801. }
  1802. output = &LaunchAppOutput{}
  1803. req = c.newRequest(op, input, output)
  1804. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1805. return
  1806. }
  1807. // LaunchApp API operation for AWS Server Migration Service.
  1808. //
  1809. // Launches an application stack.
  1810. //
  1811. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1812. // with awserr.Error's Code and Message methods to get detailed information about
  1813. // the error.
  1814. //
  1815. // See the AWS API reference guide for AWS Server Migration Service's
  1816. // API operation LaunchApp for usage and error information.
  1817. //
  1818. // Returned Error Codes:
  1819. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1820. // You lack permissions needed to perform this operation. Check your IAM policies,
  1821. // and ensure that you are using the correct access keys.
  1822. //
  1823. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1824. // A specified parameter is not valid.
  1825. //
  1826. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  1827. // A required parameter is missing.
  1828. //
  1829. // * ErrCodeInternalError "InternalError"
  1830. // An internal error occurred.
  1831. //
  1832. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1833. // This operation is not allowed.
  1834. //
  1835. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp
  1836. func (c *SMS) LaunchApp(input *LaunchAppInput) (*LaunchAppOutput, error) {
  1837. req, out := c.LaunchAppRequest(input)
  1838. return out, req.Send()
  1839. }
  1840. // LaunchAppWithContext is the same as LaunchApp with the addition of
  1841. // the ability to pass a context and additional request options.
  1842. //
  1843. // See LaunchApp for details on how to use this API operation.
  1844. //
  1845. // The context must be non-nil and will be used for request cancellation. If
  1846. // the context is nil a panic will occur. In the future the SDK may create
  1847. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1848. // for more information on using Contexts.
  1849. func (c *SMS) LaunchAppWithContext(ctx aws.Context, input *LaunchAppInput, opts ...request.Option) (*LaunchAppOutput, error) {
  1850. req, out := c.LaunchAppRequest(input)
  1851. req.SetContext(ctx)
  1852. req.ApplyOptions(opts...)
  1853. return out, req.Send()
  1854. }
  1855. const opListApps = "ListApps"
  1856. // ListAppsRequest generates a "aws/request.Request" representing the
  1857. // client's request for the ListApps operation. The "output" return
  1858. // value will be populated with the request's response once the request completes
  1859. // successfully.
  1860. //
  1861. // Use "Send" method on the returned Request to send the API call to the service.
  1862. // the "output" return value is not valid until after Send returns without error.
  1863. //
  1864. // See ListApps for more information on using the ListApps
  1865. // API call, and error handling.
  1866. //
  1867. // This method is useful when you want to inject custom logic or configuration
  1868. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1869. //
  1870. //
  1871. // // Example sending a request using the ListAppsRequest method.
  1872. // req, resp := client.ListAppsRequest(params)
  1873. //
  1874. // err := req.Send()
  1875. // if err == nil { // resp is now filled
  1876. // fmt.Println(resp)
  1877. // }
  1878. //
  1879. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps
  1880. func (c *SMS) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) {
  1881. op := &request.Operation{
  1882. Name: opListApps,
  1883. HTTPMethod: "POST",
  1884. HTTPPath: "/",
  1885. }
  1886. if input == nil {
  1887. input = &ListAppsInput{}
  1888. }
  1889. output = &ListAppsOutput{}
  1890. req = c.newRequest(op, input, output)
  1891. return
  1892. }
  1893. // ListApps API operation for AWS Server Migration Service.
  1894. //
  1895. // Returns a list of summaries for all applications.
  1896. //
  1897. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1898. // with awserr.Error's Code and Message methods to get detailed information about
  1899. // the error.
  1900. //
  1901. // See the AWS API reference guide for AWS Server Migration Service's
  1902. // API operation ListApps for usage and error information.
  1903. //
  1904. // Returned Error Codes:
  1905. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1906. // You lack permissions needed to perform this operation. Check your IAM policies,
  1907. // and ensure that you are using the correct access keys.
  1908. //
  1909. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1910. // A specified parameter is not valid.
  1911. //
  1912. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  1913. // A required parameter is missing.
  1914. //
  1915. // * ErrCodeInternalError "InternalError"
  1916. // An internal error occurred.
  1917. //
  1918. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  1919. // This operation is not allowed.
  1920. //
  1921. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps
  1922. func (c *SMS) ListApps(input *ListAppsInput) (*ListAppsOutput, error) {
  1923. req, out := c.ListAppsRequest(input)
  1924. return out, req.Send()
  1925. }
  1926. // ListAppsWithContext is the same as ListApps with the addition of
  1927. // the ability to pass a context and additional request options.
  1928. //
  1929. // See ListApps for details on how to use this API operation.
  1930. //
  1931. // The context must be non-nil and will be used for request cancellation. If
  1932. // the context is nil a panic will occur. In the future the SDK may create
  1933. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1934. // for more information on using Contexts.
  1935. func (c *SMS) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) {
  1936. req, out := c.ListAppsRequest(input)
  1937. req.SetContext(ctx)
  1938. req.ApplyOptions(opts...)
  1939. return out, req.Send()
  1940. }
  1941. const opPutAppLaunchConfiguration = "PutAppLaunchConfiguration"
  1942. // PutAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
  1943. // client's request for the PutAppLaunchConfiguration operation. The "output" return
  1944. // value will be populated with the request's response once the request completes
  1945. // successfully.
  1946. //
  1947. // Use "Send" method on the returned Request to send the API call to the service.
  1948. // the "output" return value is not valid until after Send returns without error.
  1949. //
  1950. // See PutAppLaunchConfiguration for more information on using the PutAppLaunchConfiguration
  1951. // API call, and error handling.
  1952. //
  1953. // This method is useful when you want to inject custom logic or configuration
  1954. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1955. //
  1956. //
  1957. // // Example sending a request using the PutAppLaunchConfigurationRequest method.
  1958. // req, resp := client.PutAppLaunchConfigurationRequest(params)
  1959. //
  1960. // err := req.Send()
  1961. // if err == nil { // resp is now filled
  1962. // fmt.Println(resp)
  1963. // }
  1964. //
  1965. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration
  1966. func (c *SMS) PutAppLaunchConfigurationRequest(input *PutAppLaunchConfigurationInput) (req *request.Request, output *PutAppLaunchConfigurationOutput) {
  1967. op := &request.Operation{
  1968. Name: opPutAppLaunchConfiguration,
  1969. HTTPMethod: "POST",
  1970. HTTPPath: "/",
  1971. }
  1972. if input == nil {
  1973. input = &PutAppLaunchConfigurationInput{}
  1974. }
  1975. output = &PutAppLaunchConfigurationOutput{}
  1976. req = c.newRequest(op, input, output)
  1977. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1978. return
  1979. }
  1980. // PutAppLaunchConfiguration API operation for AWS Server Migration Service.
  1981. //
  1982. // Creates a launch configuration for an application.
  1983. //
  1984. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1985. // with awserr.Error's Code and Message methods to get detailed information about
  1986. // the error.
  1987. //
  1988. // See the AWS API reference guide for AWS Server Migration Service's
  1989. // API operation PutAppLaunchConfiguration for usage and error information.
  1990. //
  1991. // Returned Error Codes:
  1992. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  1993. // You lack permissions needed to perform this operation. Check your IAM policies,
  1994. // and ensure that you are using the correct access keys.
  1995. //
  1996. // * ErrCodeInvalidParameterException "InvalidParameterException"
  1997. // A specified parameter is not valid.
  1998. //
  1999. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2000. // A required parameter is missing.
  2001. //
  2002. // * ErrCodeInternalError "InternalError"
  2003. // An internal error occurred.
  2004. //
  2005. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2006. // This operation is not allowed.
  2007. //
  2008. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration
  2009. func (c *SMS) PutAppLaunchConfiguration(input *PutAppLaunchConfigurationInput) (*PutAppLaunchConfigurationOutput, error) {
  2010. req, out := c.PutAppLaunchConfigurationRequest(input)
  2011. return out, req.Send()
  2012. }
  2013. // PutAppLaunchConfigurationWithContext is the same as PutAppLaunchConfiguration with the addition of
  2014. // the ability to pass a context and additional request options.
  2015. //
  2016. // See PutAppLaunchConfiguration for details on how to use this API operation.
  2017. //
  2018. // The context must be non-nil and will be used for request cancellation. If
  2019. // the context is nil a panic will occur. In the future the SDK may create
  2020. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2021. // for more information on using Contexts.
  2022. func (c *SMS) PutAppLaunchConfigurationWithContext(ctx aws.Context, input *PutAppLaunchConfigurationInput, opts ...request.Option) (*PutAppLaunchConfigurationOutput, error) {
  2023. req, out := c.PutAppLaunchConfigurationRequest(input)
  2024. req.SetContext(ctx)
  2025. req.ApplyOptions(opts...)
  2026. return out, req.Send()
  2027. }
  2028. const opPutAppReplicationConfiguration = "PutAppReplicationConfiguration"
  2029. // PutAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
  2030. // client's request for the PutAppReplicationConfiguration operation. The "output" return
  2031. // value will be populated with the request's response once the request completes
  2032. // successfully.
  2033. //
  2034. // Use "Send" method on the returned Request to send the API call to the service.
  2035. // the "output" return value is not valid until after Send returns without error.
  2036. //
  2037. // See PutAppReplicationConfiguration for more information on using the PutAppReplicationConfiguration
  2038. // API call, and error handling.
  2039. //
  2040. // This method is useful when you want to inject custom logic or configuration
  2041. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2042. //
  2043. //
  2044. // // Example sending a request using the PutAppReplicationConfigurationRequest method.
  2045. // req, resp := client.PutAppReplicationConfigurationRequest(params)
  2046. //
  2047. // err := req.Send()
  2048. // if err == nil { // resp is now filled
  2049. // fmt.Println(resp)
  2050. // }
  2051. //
  2052. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration
  2053. func (c *SMS) PutAppReplicationConfigurationRequest(input *PutAppReplicationConfigurationInput) (req *request.Request, output *PutAppReplicationConfigurationOutput) {
  2054. op := &request.Operation{
  2055. Name: opPutAppReplicationConfiguration,
  2056. HTTPMethod: "POST",
  2057. HTTPPath: "/",
  2058. }
  2059. if input == nil {
  2060. input = &PutAppReplicationConfigurationInput{}
  2061. }
  2062. output = &PutAppReplicationConfigurationOutput{}
  2063. req = c.newRequest(op, input, output)
  2064. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2065. return
  2066. }
  2067. // PutAppReplicationConfiguration API operation for AWS Server Migration Service.
  2068. //
  2069. // Creates or updates a replication configuration for an application.
  2070. //
  2071. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2072. // with awserr.Error's Code and Message methods to get detailed information about
  2073. // the error.
  2074. //
  2075. // See the AWS API reference guide for AWS Server Migration Service's
  2076. // API operation PutAppReplicationConfiguration for usage and error information.
  2077. //
  2078. // Returned Error Codes:
  2079. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  2080. // You lack permissions needed to perform this operation. Check your IAM policies,
  2081. // and ensure that you are using the correct access keys.
  2082. //
  2083. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2084. // A specified parameter is not valid.
  2085. //
  2086. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2087. // A required parameter is missing.
  2088. //
  2089. // * ErrCodeInternalError "InternalError"
  2090. // An internal error occurred.
  2091. //
  2092. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2093. // This operation is not allowed.
  2094. //
  2095. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration
  2096. func (c *SMS) PutAppReplicationConfiguration(input *PutAppReplicationConfigurationInput) (*PutAppReplicationConfigurationOutput, error) {
  2097. req, out := c.PutAppReplicationConfigurationRequest(input)
  2098. return out, req.Send()
  2099. }
  2100. // PutAppReplicationConfigurationWithContext is the same as PutAppReplicationConfiguration with the addition of
  2101. // the ability to pass a context and additional request options.
  2102. //
  2103. // See PutAppReplicationConfiguration for details on how to use this API operation.
  2104. //
  2105. // The context must be non-nil and will be used for request cancellation. If
  2106. // the context is nil a panic will occur. In the future the SDK may create
  2107. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2108. // for more information on using Contexts.
  2109. func (c *SMS) PutAppReplicationConfigurationWithContext(ctx aws.Context, input *PutAppReplicationConfigurationInput, opts ...request.Option) (*PutAppReplicationConfigurationOutput, error) {
  2110. req, out := c.PutAppReplicationConfigurationRequest(input)
  2111. req.SetContext(ctx)
  2112. req.ApplyOptions(opts...)
  2113. return out, req.Send()
  2114. }
  2115. const opStartAppReplication = "StartAppReplication"
  2116. // StartAppReplicationRequest generates a "aws/request.Request" representing the
  2117. // client's request for the StartAppReplication operation. The "output" return
  2118. // value will be populated with the request's response once the request completes
  2119. // successfully.
  2120. //
  2121. // Use "Send" method on the returned Request to send the API call to the service.
  2122. // the "output" return value is not valid until after Send returns without error.
  2123. //
  2124. // See StartAppReplication for more information on using the StartAppReplication
  2125. // API call, and error handling.
  2126. //
  2127. // This method is useful when you want to inject custom logic or configuration
  2128. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2129. //
  2130. //
  2131. // // Example sending a request using the StartAppReplicationRequest method.
  2132. // req, resp := client.StartAppReplicationRequest(params)
  2133. //
  2134. // err := req.Send()
  2135. // if err == nil { // resp is now filled
  2136. // fmt.Println(resp)
  2137. // }
  2138. //
  2139. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication
  2140. func (c *SMS) StartAppReplicationRequest(input *StartAppReplicationInput) (req *request.Request, output *StartAppReplicationOutput) {
  2141. op := &request.Operation{
  2142. Name: opStartAppReplication,
  2143. HTTPMethod: "POST",
  2144. HTTPPath: "/",
  2145. }
  2146. if input == nil {
  2147. input = &StartAppReplicationInput{}
  2148. }
  2149. output = &StartAppReplicationOutput{}
  2150. req = c.newRequest(op, input, output)
  2151. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2152. return
  2153. }
  2154. // StartAppReplication API operation for AWS Server Migration Service.
  2155. //
  2156. // Starts replicating an application.
  2157. //
  2158. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2159. // with awserr.Error's Code and Message methods to get detailed information about
  2160. // the error.
  2161. //
  2162. // See the AWS API reference guide for AWS Server Migration Service's
  2163. // API operation StartAppReplication for usage and error information.
  2164. //
  2165. // Returned Error Codes:
  2166. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  2167. // You lack permissions needed to perform this operation. Check your IAM policies,
  2168. // and ensure that you are using the correct access keys.
  2169. //
  2170. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2171. // A specified parameter is not valid.
  2172. //
  2173. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2174. // A required parameter is missing.
  2175. //
  2176. // * ErrCodeInternalError "InternalError"
  2177. // An internal error occurred.
  2178. //
  2179. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2180. // This operation is not allowed.
  2181. //
  2182. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication
  2183. func (c *SMS) StartAppReplication(input *StartAppReplicationInput) (*StartAppReplicationOutput, error) {
  2184. req, out := c.StartAppReplicationRequest(input)
  2185. return out, req.Send()
  2186. }
  2187. // StartAppReplicationWithContext is the same as StartAppReplication with the addition of
  2188. // the ability to pass a context and additional request options.
  2189. //
  2190. // See StartAppReplication for details on how to use this API operation.
  2191. //
  2192. // The context must be non-nil and will be used for request cancellation. If
  2193. // the context is nil a panic will occur. In the future the SDK may create
  2194. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2195. // for more information on using Contexts.
  2196. func (c *SMS) StartAppReplicationWithContext(ctx aws.Context, input *StartAppReplicationInput, opts ...request.Option) (*StartAppReplicationOutput, error) {
  2197. req, out := c.StartAppReplicationRequest(input)
  2198. req.SetContext(ctx)
  2199. req.ApplyOptions(opts...)
  2200. return out, req.Send()
  2201. }
  2202. const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun"
  2203. // StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the
  2204. // client's request for the StartOnDemandReplicationRun operation. The "output" return
  2205. // value will be populated with the request's response once the request completes
  2206. // successfully.
  2207. //
  2208. // Use "Send" method on the returned Request to send the API call to the service.
  2209. // the "output" return value is not valid until after Send returns without error.
  2210. //
  2211. // See StartOnDemandReplicationRun for more information on using the StartOnDemandReplicationRun
  2212. // API call, and error handling.
  2213. //
  2214. // This method is useful when you want to inject custom logic or configuration
  2215. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2216. //
  2217. //
  2218. // // Example sending a request using the StartOnDemandReplicationRunRequest method.
  2219. // req, resp := client.StartOnDemandReplicationRunRequest(params)
  2220. //
  2221. // err := req.Send()
  2222. // if err == nil { // resp is now filled
  2223. // fmt.Println(resp)
  2224. // }
  2225. //
  2226. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun
  2227. func (c *SMS) StartOnDemandReplicationRunRequest(input *StartOnDemandReplicationRunInput) (req *request.Request, output *StartOnDemandReplicationRunOutput) {
  2228. op := &request.Operation{
  2229. Name: opStartOnDemandReplicationRun,
  2230. HTTPMethod: "POST",
  2231. HTTPPath: "/",
  2232. }
  2233. if input == nil {
  2234. input = &StartOnDemandReplicationRunInput{}
  2235. }
  2236. output = &StartOnDemandReplicationRunOutput{}
  2237. req = c.newRequest(op, input, output)
  2238. return
  2239. }
  2240. // StartOnDemandReplicationRun API operation for AWS Server Migration Service.
  2241. //
  2242. // Starts an on-demand replication run for the specified replication job. This
  2243. // replication run starts immediately. This replication run is in addition to
  2244. // the ones already scheduled.
  2245. //
  2246. // There is a limit on the number of on-demand replications runs you can request
  2247. // in a 24-hour period.
  2248. //
  2249. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2250. // with awserr.Error's Code and Message methods to get detailed information about
  2251. // the error.
  2252. //
  2253. // See the AWS API reference guide for AWS Server Migration Service's
  2254. // API operation StartOnDemandReplicationRun for usage and error information.
  2255. //
  2256. // Returned Error Codes:
  2257. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2258. // A specified parameter is not valid.
  2259. //
  2260. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2261. // A required parameter is missing.
  2262. //
  2263. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  2264. // You lack permissions needed to perform this operation. Check your IAM policies,
  2265. // and ensure that you are using the correct access keys.
  2266. //
  2267. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2268. // This operation is not allowed.
  2269. //
  2270. // * ErrCodeReplicationRunLimitExceededException "ReplicationRunLimitExceededException"
  2271. // You have exceeded the number of on-demand replication runs you can request
  2272. // in a 24-hour period.
  2273. //
  2274. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun
  2275. func (c *SMS) StartOnDemandReplicationRun(input *StartOnDemandReplicationRunInput) (*StartOnDemandReplicationRunOutput, error) {
  2276. req, out := c.StartOnDemandReplicationRunRequest(input)
  2277. return out, req.Send()
  2278. }
  2279. // StartOnDemandReplicationRunWithContext is the same as StartOnDemandReplicationRun with the addition of
  2280. // the ability to pass a context and additional request options.
  2281. //
  2282. // See StartOnDemandReplicationRun for details on how to use this API operation.
  2283. //
  2284. // The context must be non-nil and will be used for request cancellation. If
  2285. // the context is nil a panic will occur. In the future the SDK may create
  2286. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2287. // for more information on using Contexts.
  2288. func (c *SMS) StartOnDemandReplicationRunWithContext(ctx aws.Context, input *StartOnDemandReplicationRunInput, opts ...request.Option) (*StartOnDemandReplicationRunOutput, error) {
  2289. req, out := c.StartOnDemandReplicationRunRequest(input)
  2290. req.SetContext(ctx)
  2291. req.ApplyOptions(opts...)
  2292. return out, req.Send()
  2293. }
  2294. const opStopAppReplication = "StopAppReplication"
  2295. // StopAppReplicationRequest generates a "aws/request.Request" representing the
  2296. // client's request for the StopAppReplication operation. The "output" return
  2297. // value will be populated with the request's response once the request completes
  2298. // successfully.
  2299. //
  2300. // Use "Send" method on the returned Request to send the API call to the service.
  2301. // the "output" return value is not valid until after Send returns without error.
  2302. //
  2303. // See StopAppReplication for more information on using the StopAppReplication
  2304. // API call, and error handling.
  2305. //
  2306. // This method is useful when you want to inject custom logic or configuration
  2307. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2308. //
  2309. //
  2310. // // Example sending a request using the StopAppReplicationRequest method.
  2311. // req, resp := client.StopAppReplicationRequest(params)
  2312. //
  2313. // err := req.Send()
  2314. // if err == nil { // resp is now filled
  2315. // fmt.Println(resp)
  2316. // }
  2317. //
  2318. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication
  2319. func (c *SMS) StopAppReplicationRequest(input *StopAppReplicationInput) (req *request.Request, output *StopAppReplicationOutput) {
  2320. op := &request.Operation{
  2321. Name: opStopAppReplication,
  2322. HTTPMethod: "POST",
  2323. HTTPPath: "/",
  2324. }
  2325. if input == nil {
  2326. input = &StopAppReplicationInput{}
  2327. }
  2328. output = &StopAppReplicationOutput{}
  2329. req = c.newRequest(op, input, output)
  2330. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2331. return
  2332. }
  2333. // StopAppReplication API operation for AWS Server Migration Service.
  2334. //
  2335. // Stops replicating an application.
  2336. //
  2337. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2338. // with awserr.Error's Code and Message methods to get detailed information about
  2339. // the error.
  2340. //
  2341. // See the AWS API reference guide for AWS Server Migration Service's
  2342. // API operation StopAppReplication for usage and error information.
  2343. //
  2344. // Returned Error Codes:
  2345. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  2346. // You lack permissions needed to perform this operation. Check your IAM policies,
  2347. // and ensure that you are using the correct access keys.
  2348. //
  2349. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2350. // A specified parameter is not valid.
  2351. //
  2352. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2353. // A required parameter is missing.
  2354. //
  2355. // * ErrCodeInternalError "InternalError"
  2356. // An internal error occurred.
  2357. //
  2358. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2359. // This operation is not allowed.
  2360. //
  2361. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication
  2362. func (c *SMS) StopAppReplication(input *StopAppReplicationInput) (*StopAppReplicationOutput, error) {
  2363. req, out := c.StopAppReplicationRequest(input)
  2364. return out, req.Send()
  2365. }
  2366. // StopAppReplicationWithContext is the same as StopAppReplication with the addition of
  2367. // the ability to pass a context and additional request options.
  2368. //
  2369. // See StopAppReplication for details on how to use this API operation.
  2370. //
  2371. // The context must be non-nil and will be used for request cancellation. If
  2372. // the context is nil a panic will occur. In the future the SDK may create
  2373. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2374. // for more information on using Contexts.
  2375. func (c *SMS) StopAppReplicationWithContext(ctx aws.Context, input *StopAppReplicationInput, opts ...request.Option) (*StopAppReplicationOutput, error) {
  2376. req, out := c.StopAppReplicationRequest(input)
  2377. req.SetContext(ctx)
  2378. req.ApplyOptions(opts...)
  2379. return out, req.Send()
  2380. }
  2381. const opTerminateApp = "TerminateApp"
  2382. // TerminateAppRequest generates a "aws/request.Request" representing the
  2383. // client's request for the TerminateApp operation. The "output" return
  2384. // value will be populated with the request's response once the request completes
  2385. // successfully.
  2386. //
  2387. // Use "Send" method on the returned Request to send the API call to the service.
  2388. // the "output" return value is not valid until after Send returns without error.
  2389. //
  2390. // See TerminateApp for more information on using the TerminateApp
  2391. // API call, and error handling.
  2392. //
  2393. // This method is useful when you want to inject custom logic or configuration
  2394. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2395. //
  2396. //
  2397. // // Example sending a request using the TerminateAppRequest method.
  2398. // req, resp := client.TerminateAppRequest(params)
  2399. //
  2400. // err := req.Send()
  2401. // if err == nil { // resp is now filled
  2402. // fmt.Println(resp)
  2403. // }
  2404. //
  2405. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp
  2406. func (c *SMS) TerminateAppRequest(input *TerminateAppInput) (req *request.Request, output *TerminateAppOutput) {
  2407. op := &request.Operation{
  2408. Name: opTerminateApp,
  2409. HTTPMethod: "POST",
  2410. HTTPPath: "/",
  2411. }
  2412. if input == nil {
  2413. input = &TerminateAppInput{}
  2414. }
  2415. output = &TerminateAppOutput{}
  2416. req = c.newRequest(op, input, output)
  2417. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2418. return
  2419. }
  2420. // TerminateApp API operation for AWS Server Migration Service.
  2421. //
  2422. // Terminates the stack for an application.
  2423. //
  2424. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2425. // with awserr.Error's Code and Message methods to get detailed information about
  2426. // the error.
  2427. //
  2428. // See the AWS API reference guide for AWS Server Migration Service's
  2429. // API operation TerminateApp for usage and error information.
  2430. //
  2431. // Returned Error Codes:
  2432. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  2433. // You lack permissions needed to perform this operation. Check your IAM policies,
  2434. // and ensure that you are using the correct access keys.
  2435. //
  2436. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2437. // A specified parameter is not valid.
  2438. //
  2439. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2440. // A required parameter is missing.
  2441. //
  2442. // * ErrCodeInternalError "InternalError"
  2443. // An internal error occurred.
  2444. //
  2445. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2446. // This operation is not allowed.
  2447. //
  2448. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp
  2449. func (c *SMS) TerminateApp(input *TerminateAppInput) (*TerminateAppOutput, error) {
  2450. req, out := c.TerminateAppRequest(input)
  2451. return out, req.Send()
  2452. }
  2453. // TerminateAppWithContext is the same as TerminateApp with the addition of
  2454. // the ability to pass a context and additional request options.
  2455. //
  2456. // See TerminateApp for details on how to use this API operation.
  2457. //
  2458. // The context must be non-nil and will be used for request cancellation. If
  2459. // the context is nil a panic will occur. In the future the SDK may create
  2460. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2461. // for more information on using Contexts.
  2462. func (c *SMS) TerminateAppWithContext(ctx aws.Context, input *TerminateAppInput, opts ...request.Option) (*TerminateAppOutput, error) {
  2463. req, out := c.TerminateAppRequest(input)
  2464. req.SetContext(ctx)
  2465. req.ApplyOptions(opts...)
  2466. return out, req.Send()
  2467. }
  2468. const opUpdateApp = "UpdateApp"
  2469. // UpdateAppRequest generates a "aws/request.Request" representing the
  2470. // client's request for the UpdateApp operation. The "output" return
  2471. // value will be populated with the request's response once the request completes
  2472. // successfully.
  2473. //
  2474. // Use "Send" method on the returned Request to send the API call to the service.
  2475. // the "output" return value is not valid until after Send returns without error.
  2476. //
  2477. // See UpdateApp for more information on using the UpdateApp
  2478. // API call, and error handling.
  2479. //
  2480. // This method is useful when you want to inject custom logic or configuration
  2481. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2482. //
  2483. //
  2484. // // Example sending a request using the UpdateAppRequest method.
  2485. // req, resp := client.UpdateAppRequest(params)
  2486. //
  2487. // err := req.Send()
  2488. // if err == nil { // resp is now filled
  2489. // fmt.Println(resp)
  2490. // }
  2491. //
  2492. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp
  2493. func (c *SMS) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
  2494. op := &request.Operation{
  2495. Name: opUpdateApp,
  2496. HTTPMethod: "POST",
  2497. HTTPPath: "/",
  2498. }
  2499. if input == nil {
  2500. input = &UpdateAppInput{}
  2501. }
  2502. output = &UpdateAppOutput{}
  2503. req = c.newRequest(op, input, output)
  2504. return
  2505. }
  2506. // UpdateApp API operation for AWS Server Migration Service.
  2507. //
  2508. // Updates an application.
  2509. //
  2510. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2511. // with awserr.Error's Code and Message methods to get detailed information about
  2512. // the error.
  2513. //
  2514. // See the AWS API reference guide for AWS Server Migration Service's
  2515. // API operation UpdateApp for usage and error information.
  2516. //
  2517. // Returned Error Codes:
  2518. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  2519. // You lack permissions needed to perform this operation. Check your IAM policies,
  2520. // and ensure that you are using the correct access keys.
  2521. //
  2522. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2523. // A specified parameter is not valid.
  2524. //
  2525. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2526. // A required parameter is missing.
  2527. //
  2528. // * ErrCodeInternalError "InternalError"
  2529. // An internal error occurred.
  2530. //
  2531. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2532. // This operation is not allowed.
  2533. //
  2534. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp
  2535. func (c *SMS) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
  2536. req, out := c.UpdateAppRequest(input)
  2537. return out, req.Send()
  2538. }
  2539. // UpdateAppWithContext is the same as UpdateApp with the addition of
  2540. // the ability to pass a context and additional request options.
  2541. //
  2542. // See UpdateApp for details on how to use this API operation.
  2543. //
  2544. // The context must be non-nil and will be used for request cancellation. If
  2545. // the context is nil a panic will occur. In the future the SDK may create
  2546. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2547. // for more information on using Contexts.
  2548. func (c *SMS) UpdateAppWithContext(ctx aws.Context, input *UpdateAppInput, opts ...request.Option) (*UpdateAppOutput, error) {
  2549. req, out := c.UpdateAppRequest(input)
  2550. req.SetContext(ctx)
  2551. req.ApplyOptions(opts...)
  2552. return out, req.Send()
  2553. }
  2554. const opUpdateReplicationJob = "UpdateReplicationJob"
  2555. // UpdateReplicationJobRequest generates a "aws/request.Request" representing the
  2556. // client's request for the UpdateReplicationJob operation. The "output" return
  2557. // value will be populated with the request's response once the request completes
  2558. // successfully.
  2559. //
  2560. // Use "Send" method on the returned Request to send the API call to the service.
  2561. // the "output" return value is not valid until after Send returns without error.
  2562. //
  2563. // See UpdateReplicationJob for more information on using the UpdateReplicationJob
  2564. // API call, and error handling.
  2565. //
  2566. // This method is useful when you want to inject custom logic or configuration
  2567. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2568. //
  2569. //
  2570. // // Example sending a request using the UpdateReplicationJobRequest method.
  2571. // req, resp := client.UpdateReplicationJobRequest(params)
  2572. //
  2573. // err := req.Send()
  2574. // if err == nil { // resp is now filled
  2575. // fmt.Println(resp)
  2576. // }
  2577. //
  2578. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob
  2579. func (c *SMS) UpdateReplicationJobRequest(input *UpdateReplicationJobInput) (req *request.Request, output *UpdateReplicationJobOutput) {
  2580. op := &request.Operation{
  2581. Name: opUpdateReplicationJob,
  2582. HTTPMethod: "POST",
  2583. HTTPPath: "/",
  2584. }
  2585. if input == nil {
  2586. input = &UpdateReplicationJobInput{}
  2587. }
  2588. output = &UpdateReplicationJobOutput{}
  2589. req = c.newRequest(op, input, output)
  2590. req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2591. return
  2592. }
  2593. // UpdateReplicationJob API operation for AWS Server Migration Service.
  2594. //
  2595. // Updates the specified settings for the specified replication job.
  2596. //
  2597. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2598. // with awserr.Error's Code and Message methods to get detailed information about
  2599. // the error.
  2600. //
  2601. // See the AWS API reference guide for AWS Server Migration Service's
  2602. // API operation UpdateReplicationJob for usage and error information.
  2603. //
  2604. // Returned Error Codes:
  2605. // * ErrCodeInvalidParameterException "InvalidParameterException"
  2606. // A specified parameter is not valid.
  2607. //
  2608. // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
  2609. // A required parameter is missing.
  2610. //
  2611. // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
  2612. // This operation is not allowed.
  2613. //
  2614. // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
  2615. // You lack permissions needed to perform this operation. Check your IAM policies,
  2616. // and ensure that you are using the correct access keys.
  2617. //
  2618. // * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException"
  2619. // The specified server cannot be replicated.
  2620. //
  2621. // * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException"
  2622. // The specified replication job does not exist.
  2623. //
  2624. // * ErrCodeInternalError "InternalError"
  2625. // An internal error occurred.
  2626. //
  2627. // * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException"
  2628. // The service is temporarily unavailable.
  2629. //
  2630. // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob
  2631. func (c *SMS) UpdateReplicationJob(input *UpdateReplicationJobInput) (*UpdateReplicationJobOutput, error) {
  2632. req, out := c.UpdateReplicationJobRequest(input)
  2633. return out, req.Send()
  2634. }
  2635. // UpdateReplicationJobWithContext is the same as UpdateReplicationJob with the addition of
  2636. // the ability to pass a context and additional request options.
  2637. //
  2638. // See UpdateReplicationJob for details on how to use this API operation.
  2639. //
  2640. // The context must be non-nil and will be used for request cancellation. If
  2641. // the context is nil a panic will occur. In the future the SDK may create
  2642. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2643. // for more information on using Contexts.
  2644. func (c *SMS) UpdateReplicationJobWithContext(ctx aws.Context, input *UpdateReplicationJobInput, opts ...request.Option) (*UpdateReplicationJobOutput, error) {
  2645. req, out := c.UpdateReplicationJobRequest(input)
  2646. req.SetContext(ctx)
  2647. req.ApplyOptions(opts...)
  2648. return out, req.Send()
  2649. }
  2650. // Information about the application.
  2651. type AppSummary struct {
  2652. _ struct{} `type:"structure"`
  2653. // Unique ID of the application.
  2654. AppId *string `locationName:"appId" type:"string"`
  2655. // Time of creation of this application.
  2656. CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
  2657. // Description of the application.
  2658. Description *string `locationName:"description" type:"string"`
  2659. // Timestamp of the application's creation.
  2660. LastModified *time.Time `locationName:"lastModified" type:"timestamp"`
  2661. // Timestamp of the application's most recent successful replication.
  2662. LatestReplicationTime *time.Time `locationName:"latestReplicationTime" type:"timestamp"`
  2663. // Details about the latest launch of the application.
  2664. LaunchDetails *LaunchDetails `locationName:"launchDetails" type:"structure"`
  2665. // Launch status of the application.
  2666. LaunchStatus *string `locationName:"launchStatus" type:"string" enum:"AppLaunchStatus"`
  2667. // A message related to the launch status of the application.
  2668. LaunchStatusMessage *string `locationName:"launchStatusMessage" type:"string"`
  2669. // Name of the application.
  2670. Name *string `locationName:"name" type:"string"`
  2671. // Replication status of the application.
  2672. ReplicationStatus *string `locationName:"replicationStatus" type:"string" enum:"AppReplicationStatus"`
  2673. // A message related to the replication status of the application.
  2674. ReplicationStatusMessage *string `locationName:"replicationStatusMessage" type:"string"`
  2675. // Name of the service role in the customer's account used by AWS SMS.
  2676. RoleName *string `locationName:"roleName" type:"string"`
  2677. // Status of the application.
  2678. Status *string `locationName:"status" type:"string" enum:"AppStatus"`
  2679. // A message related to the status of the application
  2680. StatusMessage *string `locationName:"statusMessage" type:"string"`
  2681. // Number of server groups present in the application.
  2682. TotalServerGroups *int64 `locationName:"totalServerGroups" type:"integer"`
  2683. // Number of servers present in the application.
  2684. TotalServers *int64 `locationName:"totalServers" type:"integer"`
  2685. }
  2686. // String returns the string representation
  2687. func (s AppSummary) String() string {
  2688. return awsutil.Prettify(s)
  2689. }
  2690. // GoString returns the string representation
  2691. func (s AppSummary) GoString() string {
  2692. return s.String()
  2693. }
  2694. // SetAppId sets the AppId field's value.
  2695. func (s *AppSummary) SetAppId(v string) *AppSummary {
  2696. s.AppId = &v
  2697. return s
  2698. }
  2699. // SetCreationTime sets the CreationTime field's value.
  2700. func (s *AppSummary) SetCreationTime(v time.Time) *AppSummary {
  2701. s.CreationTime = &v
  2702. return s
  2703. }
  2704. // SetDescription sets the Description field's value.
  2705. func (s *AppSummary) SetDescription(v string) *AppSummary {
  2706. s.Description = &v
  2707. return s
  2708. }
  2709. // SetLastModified sets the LastModified field's value.
  2710. func (s *AppSummary) SetLastModified(v time.Time) *AppSummary {
  2711. s.LastModified = &v
  2712. return s
  2713. }
  2714. // SetLatestReplicationTime sets the LatestReplicationTime field's value.
  2715. func (s *AppSummary) SetLatestReplicationTime(v time.Time) *AppSummary {
  2716. s.LatestReplicationTime = &v
  2717. return s
  2718. }
  2719. // SetLaunchDetails sets the LaunchDetails field's value.
  2720. func (s *AppSummary) SetLaunchDetails(v *LaunchDetails) *AppSummary {
  2721. s.LaunchDetails = v
  2722. return s
  2723. }
  2724. // SetLaunchStatus sets the LaunchStatus field's value.
  2725. func (s *AppSummary) SetLaunchStatus(v string) *AppSummary {
  2726. s.LaunchStatus = &v
  2727. return s
  2728. }
  2729. // SetLaunchStatusMessage sets the LaunchStatusMessage field's value.
  2730. func (s *AppSummary) SetLaunchStatusMessage(v string) *AppSummary {
  2731. s.LaunchStatusMessage = &v
  2732. return s
  2733. }
  2734. // SetName sets the Name field's value.
  2735. func (s *AppSummary) SetName(v string) *AppSummary {
  2736. s.Name = &v
  2737. return s
  2738. }
  2739. // SetReplicationStatus sets the ReplicationStatus field's value.
  2740. func (s *AppSummary) SetReplicationStatus(v string) *AppSummary {
  2741. s.ReplicationStatus = &v
  2742. return s
  2743. }
  2744. // SetReplicationStatusMessage sets the ReplicationStatusMessage field's value.
  2745. func (s *AppSummary) SetReplicationStatusMessage(v string) *AppSummary {
  2746. s.ReplicationStatusMessage = &v
  2747. return s
  2748. }
  2749. // SetRoleName sets the RoleName field's value.
  2750. func (s *AppSummary) SetRoleName(v string) *AppSummary {
  2751. s.RoleName = &v
  2752. return s
  2753. }
  2754. // SetStatus sets the Status field's value.
  2755. func (s *AppSummary) SetStatus(v string) *AppSummary {
  2756. s.Status = &v
  2757. return s
  2758. }
  2759. // SetStatusMessage sets the StatusMessage field's value.
  2760. func (s *AppSummary) SetStatusMessage(v string) *AppSummary {
  2761. s.StatusMessage = &v
  2762. return s
  2763. }
  2764. // SetTotalServerGroups sets the TotalServerGroups field's value.
  2765. func (s *AppSummary) SetTotalServerGroups(v int64) *AppSummary {
  2766. s.TotalServerGroups = &v
  2767. return s
  2768. }
  2769. // SetTotalServers sets the TotalServers field's value.
  2770. func (s *AppSummary) SetTotalServers(v int64) *AppSummary {
  2771. s.TotalServers = &v
  2772. return s
  2773. }
  2774. // Represents a connector.
  2775. type Connector struct {
  2776. _ struct{} `type:"structure"`
  2777. // The time the connector was associated.
  2778. AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp"`
  2779. // The capabilities of the connector.
  2780. CapabilityList []*string `locationName:"capabilityList" type:"list"`
  2781. // The identifier of the connector.
  2782. ConnectorId *string `locationName:"connectorId" type:"string"`
  2783. // The IP address of the connector.
  2784. IpAddress *string `locationName:"ipAddress" type:"string"`
  2785. // The MAC address of the connector.
  2786. MacAddress *string `locationName:"macAddress" type:"string"`
  2787. // The status of the connector.
  2788. Status *string `locationName:"status" type:"string" enum:"ConnectorStatus"`
  2789. // The connector version.
  2790. Version *string `locationName:"version" type:"string"`
  2791. // The identifier of the VM manager.
  2792. VmManagerId *string `locationName:"vmManagerId" type:"string"`
  2793. // The name of the VM manager.
  2794. VmManagerName *string `locationName:"vmManagerName" type:"string"`
  2795. // The VM management product.
  2796. VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"`
  2797. }
  2798. // String returns the string representation
  2799. func (s Connector) String() string {
  2800. return awsutil.Prettify(s)
  2801. }
  2802. // GoString returns the string representation
  2803. func (s Connector) GoString() string {
  2804. return s.String()
  2805. }
  2806. // SetAssociatedOn sets the AssociatedOn field's value.
  2807. func (s *Connector) SetAssociatedOn(v time.Time) *Connector {
  2808. s.AssociatedOn = &v
  2809. return s
  2810. }
  2811. // SetCapabilityList sets the CapabilityList field's value.
  2812. func (s *Connector) SetCapabilityList(v []*string) *Connector {
  2813. s.CapabilityList = v
  2814. return s
  2815. }
  2816. // SetConnectorId sets the ConnectorId field's value.
  2817. func (s *Connector) SetConnectorId(v string) *Connector {
  2818. s.ConnectorId = &v
  2819. return s
  2820. }
  2821. // SetIpAddress sets the IpAddress field's value.
  2822. func (s *Connector) SetIpAddress(v string) *Connector {
  2823. s.IpAddress = &v
  2824. return s
  2825. }
  2826. // SetMacAddress sets the MacAddress field's value.
  2827. func (s *Connector) SetMacAddress(v string) *Connector {
  2828. s.MacAddress = &v
  2829. return s
  2830. }
  2831. // SetStatus sets the Status field's value.
  2832. func (s *Connector) SetStatus(v string) *Connector {
  2833. s.Status = &v
  2834. return s
  2835. }
  2836. // SetVersion sets the Version field's value.
  2837. func (s *Connector) SetVersion(v string) *Connector {
  2838. s.Version = &v
  2839. return s
  2840. }
  2841. // SetVmManagerId sets the VmManagerId field's value.
  2842. func (s *Connector) SetVmManagerId(v string) *Connector {
  2843. s.VmManagerId = &v
  2844. return s
  2845. }
  2846. // SetVmManagerName sets the VmManagerName field's value.
  2847. func (s *Connector) SetVmManagerName(v string) *Connector {
  2848. s.VmManagerName = &v
  2849. return s
  2850. }
  2851. // SetVmManagerType sets the VmManagerType field's value.
  2852. func (s *Connector) SetVmManagerType(v string) *Connector {
  2853. s.VmManagerType = &v
  2854. return s
  2855. }
  2856. type CreateAppInput struct {
  2857. _ struct{} `type:"structure"`
  2858. // A unique, case-sensitive identifier you provide to ensure idempotency of
  2859. // application creation.
  2860. ClientToken *string `locationName:"clientToken" type:"string"`
  2861. // Description of the new application
  2862. Description *string `locationName:"description" type:"string"`
  2863. // Name of the new application.
  2864. Name *string `locationName:"name" type:"string"`
  2865. // Name of service role in customer's account to be used by AWS SMS.
  2866. RoleName *string `locationName:"roleName" type:"string"`
  2867. // List of server groups to include in the application.
  2868. ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
  2869. // List of tags to be associated with the application.
  2870. Tags []*Tag `locationName:"tags" type:"list"`
  2871. }
  2872. // String returns the string representation
  2873. func (s CreateAppInput) String() string {
  2874. return awsutil.Prettify(s)
  2875. }
  2876. // GoString returns the string representation
  2877. func (s CreateAppInput) GoString() string {
  2878. return s.String()
  2879. }
  2880. // SetClientToken sets the ClientToken field's value.
  2881. func (s *CreateAppInput) SetClientToken(v string) *CreateAppInput {
  2882. s.ClientToken = &v
  2883. return s
  2884. }
  2885. // SetDescription sets the Description field's value.
  2886. func (s *CreateAppInput) SetDescription(v string) *CreateAppInput {
  2887. s.Description = &v
  2888. return s
  2889. }
  2890. // SetName sets the Name field's value.
  2891. func (s *CreateAppInput) SetName(v string) *CreateAppInput {
  2892. s.Name = &v
  2893. return s
  2894. }
  2895. // SetRoleName sets the RoleName field's value.
  2896. func (s *CreateAppInput) SetRoleName(v string) *CreateAppInput {
  2897. s.RoleName = &v
  2898. return s
  2899. }
  2900. // SetServerGroups sets the ServerGroups field's value.
  2901. func (s *CreateAppInput) SetServerGroups(v []*ServerGroup) *CreateAppInput {
  2902. s.ServerGroups = v
  2903. return s
  2904. }
  2905. // SetTags sets the Tags field's value.
  2906. func (s *CreateAppInput) SetTags(v []*Tag) *CreateAppInput {
  2907. s.Tags = v
  2908. return s
  2909. }
  2910. type CreateAppOutput struct {
  2911. _ struct{} `type:"structure"`
  2912. // Summary description of the application.
  2913. AppSummary *AppSummary `locationName:"appSummary" type:"structure"`
  2914. // List of server groups included in the application.
  2915. ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
  2916. // List of taags associated with the application.
  2917. Tags []*Tag `locationName:"tags" type:"list"`
  2918. }
  2919. // String returns the string representation
  2920. func (s CreateAppOutput) String() string {
  2921. return awsutil.Prettify(s)
  2922. }
  2923. // GoString returns the string representation
  2924. func (s CreateAppOutput) GoString() string {
  2925. return s.String()
  2926. }
  2927. // SetAppSummary sets the AppSummary field's value.
  2928. func (s *CreateAppOutput) SetAppSummary(v *AppSummary) *CreateAppOutput {
  2929. s.AppSummary = v
  2930. return s
  2931. }
  2932. // SetServerGroups sets the ServerGroups field's value.
  2933. func (s *CreateAppOutput) SetServerGroups(v []*ServerGroup) *CreateAppOutput {
  2934. s.ServerGroups = v
  2935. return s
  2936. }
  2937. // SetTags sets the Tags field's value.
  2938. func (s *CreateAppOutput) SetTags(v []*Tag) *CreateAppOutput {
  2939. s.Tags = v
  2940. return s
  2941. }
  2942. type CreateReplicationJobInput struct {
  2943. _ struct{} `type:"structure"`
  2944. // The description of the replication job.
  2945. Description *string `locationName:"description" type:"string"`
  2946. // When true, the replication job produces encrypted AMIs. See also KmsKeyId
  2947. // below.
  2948. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  2949. // The time between consecutive replication runs, in hours.
  2950. Frequency *int64 `locationName:"frequency" type:"integer"`
  2951. // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
  2952. // the following:
  2953. //
  2954. // * KMS key ID
  2955. //
  2956. // * KMS key alias
  2957. //
  2958. // * ARN referring to KMS key ID
  2959. //
  2960. // * ARN referring to KMS key alias
  2961. //
  2962. // If encrypted is true but a KMS key id is not specified, the customer's default
  2963. // KMS key for EBS is used.
  2964. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  2965. // The license type to be used for the AMI created by a successful replication
  2966. // run.
  2967. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
  2968. // The maximum number of SMS-created AMIs to retain. The oldest will be deleted
  2969. // once the maximum number is reached and a new AMI is created.
  2970. NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
  2971. // The name of the IAM role to be used by the AWS SMS.
  2972. RoleName *string `locationName:"roleName" type:"string"`
  2973. RunOnce *bool `locationName:"runOnce" type:"boolean"`
  2974. // The seed replication time.
  2975. //
  2976. // SeedReplicationTime is a required field
  2977. SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" required:"true"`
  2978. // The identifier of the server.
  2979. //
  2980. // ServerId is a required field
  2981. ServerId *string `locationName:"serverId" type:"string" required:"true"`
  2982. }
  2983. // String returns the string representation
  2984. func (s CreateReplicationJobInput) String() string {
  2985. return awsutil.Prettify(s)
  2986. }
  2987. // GoString returns the string representation
  2988. func (s CreateReplicationJobInput) GoString() string {
  2989. return s.String()
  2990. }
  2991. // Validate inspects the fields of the type to determine if they are valid.
  2992. func (s *CreateReplicationJobInput) Validate() error {
  2993. invalidParams := request.ErrInvalidParams{Context: "CreateReplicationJobInput"}
  2994. if s.SeedReplicationTime == nil {
  2995. invalidParams.Add(request.NewErrParamRequired("SeedReplicationTime"))
  2996. }
  2997. if s.ServerId == nil {
  2998. invalidParams.Add(request.NewErrParamRequired("ServerId"))
  2999. }
  3000. if invalidParams.Len() > 0 {
  3001. return invalidParams
  3002. }
  3003. return nil
  3004. }
  3005. // SetDescription sets the Description field's value.
  3006. func (s *CreateReplicationJobInput) SetDescription(v string) *CreateReplicationJobInput {
  3007. s.Description = &v
  3008. return s
  3009. }
  3010. // SetEncrypted sets the Encrypted field's value.
  3011. func (s *CreateReplicationJobInput) SetEncrypted(v bool) *CreateReplicationJobInput {
  3012. s.Encrypted = &v
  3013. return s
  3014. }
  3015. // SetFrequency sets the Frequency field's value.
  3016. func (s *CreateReplicationJobInput) SetFrequency(v int64) *CreateReplicationJobInput {
  3017. s.Frequency = &v
  3018. return s
  3019. }
  3020. // SetKmsKeyId sets the KmsKeyId field's value.
  3021. func (s *CreateReplicationJobInput) SetKmsKeyId(v string) *CreateReplicationJobInput {
  3022. s.KmsKeyId = &v
  3023. return s
  3024. }
  3025. // SetLicenseType sets the LicenseType field's value.
  3026. func (s *CreateReplicationJobInput) SetLicenseType(v string) *CreateReplicationJobInput {
  3027. s.LicenseType = &v
  3028. return s
  3029. }
  3030. // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
  3031. func (s *CreateReplicationJobInput) SetNumberOfRecentAmisToKeep(v int64) *CreateReplicationJobInput {
  3032. s.NumberOfRecentAmisToKeep = &v
  3033. return s
  3034. }
  3035. // SetRoleName sets the RoleName field's value.
  3036. func (s *CreateReplicationJobInput) SetRoleName(v string) *CreateReplicationJobInput {
  3037. s.RoleName = &v
  3038. return s
  3039. }
  3040. // SetRunOnce sets the RunOnce field's value.
  3041. func (s *CreateReplicationJobInput) SetRunOnce(v bool) *CreateReplicationJobInput {
  3042. s.RunOnce = &v
  3043. return s
  3044. }
  3045. // SetSeedReplicationTime sets the SeedReplicationTime field's value.
  3046. func (s *CreateReplicationJobInput) SetSeedReplicationTime(v time.Time) *CreateReplicationJobInput {
  3047. s.SeedReplicationTime = &v
  3048. return s
  3049. }
  3050. // SetServerId sets the ServerId field's value.
  3051. func (s *CreateReplicationJobInput) SetServerId(v string) *CreateReplicationJobInput {
  3052. s.ServerId = &v
  3053. return s
  3054. }
  3055. type CreateReplicationJobOutput struct {
  3056. _ struct{} `type:"structure"`
  3057. // The unique identifier of the replication job.
  3058. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  3059. }
  3060. // String returns the string representation
  3061. func (s CreateReplicationJobOutput) String() string {
  3062. return awsutil.Prettify(s)
  3063. }
  3064. // GoString returns the string representation
  3065. func (s CreateReplicationJobOutput) GoString() string {
  3066. return s.String()
  3067. }
  3068. // SetReplicationJobId sets the ReplicationJobId field's value.
  3069. func (s *CreateReplicationJobOutput) SetReplicationJobId(v string) *CreateReplicationJobOutput {
  3070. s.ReplicationJobId = &v
  3071. return s
  3072. }
  3073. type DeleteAppInput struct {
  3074. _ struct{} `type:"structure"`
  3075. // ID of the application to delete.
  3076. AppId *string `locationName:"appId" type:"string"`
  3077. // While deleting the application, stop all replication jobs corresponding to
  3078. // the servers in the application.
  3079. ForceStopAppReplication *bool `locationName:"forceStopAppReplication" type:"boolean"`
  3080. // While deleting the application, terminate the stack corresponding to the
  3081. // application.
  3082. ForceTerminateApp *bool `locationName:"forceTerminateApp" type:"boolean"`
  3083. }
  3084. // String returns the string representation
  3085. func (s DeleteAppInput) String() string {
  3086. return awsutil.Prettify(s)
  3087. }
  3088. // GoString returns the string representation
  3089. func (s DeleteAppInput) GoString() string {
  3090. return s.String()
  3091. }
  3092. // SetAppId sets the AppId field's value.
  3093. func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput {
  3094. s.AppId = &v
  3095. return s
  3096. }
  3097. // SetForceStopAppReplication sets the ForceStopAppReplication field's value.
  3098. func (s *DeleteAppInput) SetForceStopAppReplication(v bool) *DeleteAppInput {
  3099. s.ForceStopAppReplication = &v
  3100. return s
  3101. }
  3102. // SetForceTerminateApp sets the ForceTerminateApp field's value.
  3103. func (s *DeleteAppInput) SetForceTerminateApp(v bool) *DeleteAppInput {
  3104. s.ForceTerminateApp = &v
  3105. return s
  3106. }
  3107. type DeleteAppLaunchConfigurationInput struct {
  3108. _ struct{} `type:"structure"`
  3109. // ID of the application associated with the launch configuration.
  3110. AppId *string `locationName:"appId" type:"string"`
  3111. }
  3112. // String returns the string representation
  3113. func (s DeleteAppLaunchConfigurationInput) String() string {
  3114. return awsutil.Prettify(s)
  3115. }
  3116. // GoString returns the string representation
  3117. func (s DeleteAppLaunchConfigurationInput) GoString() string {
  3118. return s.String()
  3119. }
  3120. // SetAppId sets the AppId field's value.
  3121. func (s *DeleteAppLaunchConfigurationInput) SetAppId(v string) *DeleteAppLaunchConfigurationInput {
  3122. s.AppId = &v
  3123. return s
  3124. }
  3125. type DeleteAppLaunchConfigurationOutput struct {
  3126. _ struct{} `type:"structure"`
  3127. }
  3128. // String returns the string representation
  3129. func (s DeleteAppLaunchConfigurationOutput) String() string {
  3130. return awsutil.Prettify(s)
  3131. }
  3132. // GoString returns the string representation
  3133. func (s DeleteAppLaunchConfigurationOutput) GoString() string {
  3134. return s.String()
  3135. }
  3136. type DeleteAppOutput struct {
  3137. _ struct{} `type:"structure"`
  3138. }
  3139. // String returns the string representation
  3140. func (s DeleteAppOutput) String() string {
  3141. return awsutil.Prettify(s)
  3142. }
  3143. // GoString returns the string representation
  3144. func (s DeleteAppOutput) GoString() string {
  3145. return s.String()
  3146. }
  3147. type DeleteAppReplicationConfigurationInput struct {
  3148. _ struct{} `type:"structure"`
  3149. // ID of the application associated with the replication configuration.
  3150. AppId *string `locationName:"appId" type:"string"`
  3151. }
  3152. // String returns the string representation
  3153. func (s DeleteAppReplicationConfigurationInput) String() string {
  3154. return awsutil.Prettify(s)
  3155. }
  3156. // GoString returns the string representation
  3157. func (s DeleteAppReplicationConfigurationInput) GoString() string {
  3158. return s.String()
  3159. }
  3160. // SetAppId sets the AppId field's value.
  3161. func (s *DeleteAppReplicationConfigurationInput) SetAppId(v string) *DeleteAppReplicationConfigurationInput {
  3162. s.AppId = &v
  3163. return s
  3164. }
  3165. type DeleteAppReplicationConfigurationOutput struct {
  3166. _ struct{} `type:"structure"`
  3167. }
  3168. // String returns the string representation
  3169. func (s DeleteAppReplicationConfigurationOutput) String() string {
  3170. return awsutil.Prettify(s)
  3171. }
  3172. // GoString returns the string representation
  3173. func (s DeleteAppReplicationConfigurationOutput) GoString() string {
  3174. return s.String()
  3175. }
  3176. type DeleteReplicationJobInput struct {
  3177. _ struct{} `type:"structure"`
  3178. // The identifier of the replication job.
  3179. //
  3180. // ReplicationJobId is a required field
  3181. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  3182. }
  3183. // String returns the string representation
  3184. func (s DeleteReplicationJobInput) String() string {
  3185. return awsutil.Prettify(s)
  3186. }
  3187. // GoString returns the string representation
  3188. func (s DeleteReplicationJobInput) GoString() string {
  3189. return s.String()
  3190. }
  3191. // Validate inspects the fields of the type to determine if they are valid.
  3192. func (s *DeleteReplicationJobInput) Validate() error {
  3193. invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationJobInput"}
  3194. if s.ReplicationJobId == nil {
  3195. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  3196. }
  3197. if invalidParams.Len() > 0 {
  3198. return invalidParams
  3199. }
  3200. return nil
  3201. }
  3202. // SetReplicationJobId sets the ReplicationJobId field's value.
  3203. func (s *DeleteReplicationJobInput) SetReplicationJobId(v string) *DeleteReplicationJobInput {
  3204. s.ReplicationJobId = &v
  3205. return s
  3206. }
  3207. type DeleteReplicationJobOutput struct {
  3208. _ struct{} `type:"structure"`
  3209. }
  3210. // String returns the string representation
  3211. func (s DeleteReplicationJobOutput) String() string {
  3212. return awsutil.Prettify(s)
  3213. }
  3214. // GoString returns the string representation
  3215. func (s DeleteReplicationJobOutput) GoString() string {
  3216. return s.String()
  3217. }
  3218. type DeleteServerCatalogInput struct {
  3219. _ struct{} `type:"structure"`
  3220. }
  3221. // String returns the string representation
  3222. func (s DeleteServerCatalogInput) String() string {
  3223. return awsutil.Prettify(s)
  3224. }
  3225. // GoString returns the string representation
  3226. func (s DeleteServerCatalogInput) GoString() string {
  3227. return s.String()
  3228. }
  3229. type DeleteServerCatalogOutput struct {
  3230. _ struct{} `type:"structure"`
  3231. }
  3232. // String returns the string representation
  3233. func (s DeleteServerCatalogOutput) String() string {
  3234. return awsutil.Prettify(s)
  3235. }
  3236. // GoString returns the string representation
  3237. func (s DeleteServerCatalogOutput) GoString() string {
  3238. return s.String()
  3239. }
  3240. type DisassociateConnectorInput struct {
  3241. _ struct{} `type:"structure"`
  3242. // The identifier of the connector.
  3243. //
  3244. // ConnectorId is a required field
  3245. ConnectorId *string `locationName:"connectorId" type:"string" required:"true"`
  3246. }
  3247. // String returns the string representation
  3248. func (s DisassociateConnectorInput) String() string {
  3249. return awsutil.Prettify(s)
  3250. }
  3251. // GoString returns the string representation
  3252. func (s DisassociateConnectorInput) GoString() string {
  3253. return s.String()
  3254. }
  3255. // Validate inspects the fields of the type to determine if they are valid.
  3256. func (s *DisassociateConnectorInput) Validate() error {
  3257. invalidParams := request.ErrInvalidParams{Context: "DisassociateConnectorInput"}
  3258. if s.ConnectorId == nil {
  3259. invalidParams.Add(request.NewErrParamRequired("ConnectorId"))
  3260. }
  3261. if invalidParams.Len() > 0 {
  3262. return invalidParams
  3263. }
  3264. return nil
  3265. }
  3266. // SetConnectorId sets the ConnectorId field's value.
  3267. func (s *DisassociateConnectorInput) SetConnectorId(v string) *DisassociateConnectorInput {
  3268. s.ConnectorId = &v
  3269. return s
  3270. }
  3271. type DisassociateConnectorOutput struct {
  3272. _ struct{} `type:"structure"`
  3273. }
  3274. // String returns the string representation
  3275. func (s DisassociateConnectorOutput) String() string {
  3276. return awsutil.Prettify(s)
  3277. }
  3278. // GoString returns the string representation
  3279. func (s DisassociateConnectorOutput) GoString() string {
  3280. return s.String()
  3281. }
  3282. type GenerateChangeSetInput struct {
  3283. _ struct{} `type:"structure"`
  3284. // ID of the application associated with the change set.
  3285. AppId *string `locationName:"appId" type:"string"`
  3286. // Format for the change set.
  3287. ChangesetFormat *string `locationName:"changesetFormat" type:"string" enum:"OutputFormat"`
  3288. }
  3289. // String returns the string representation
  3290. func (s GenerateChangeSetInput) String() string {
  3291. return awsutil.Prettify(s)
  3292. }
  3293. // GoString returns the string representation
  3294. func (s GenerateChangeSetInput) GoString() string {
  3295. return s.String()
  3296. }
  3297. // SetAppId sets the AppId field's value.
  3298. func (s *GenerateChangeSetInput) SetAppId(v string) *GenerateChangeSetInput {
  3299. s.AppId = &v
  3300. return s
  3301. }
  3302. // SetChangesetFormat sets the ChangesetFormat field's value.
  3303. func (s *GenerateChangeSetInput) SetChangesetFormat(v string) *GenerateChangeSetInput {
  3304. s.ChangesetFormat = &v
  3305. return s
  3306. }
  3307. type GenerateChangeSetOutput struct {
  3308. _ struct{} `type:"structure"`
  3309. // Location of the Amazon S3 object.
  3310. S3Location *S3Location `locationName:"s3Location" type:"structure"`
  3311. }
  3312. // String returns the string representation
  3313. func (s GenerateChangeSetOutput) String() string {
  3314. return awsutil.Prettify(s)
  3315. }
  3316. // GoString returns the string representation
  3317. func (s GenerateChangeSetOutput) GoString() string {
  3318. return s.String()
  3319. }
  3320. // SetS3Location sets the S3Location field's value.
  3321. func (s *GenerateChangeSetOutput) SetS3Location(v *S3Location) *GenerateChangeSetOutput {
  3322. s.S3Location = v
  3323. return s
  3324. }
  3325. type GenerateTemplateInput struct {
  3326. _ struct{} `type:"structure"`
  3327. // ID of the application associated with the Amazon CloudFormation template.
  3328. AppId *string `locationName:"appId" type:"string"`
  3329. // Format for generating the Amazon CloudFormation template.
  3330. TemplateFormat *string `locationName:"templateFormat" type:"string" enum:"OutputFormat"`
  3331. }
  3332. // String returns the string representation
  3333. func (s GenerateTemplateInput) String() string {
  3334. return awsutil.Prettify(s)
  3335. }
  3336. // GoString returns the string representation
  3337. func (s GenerateTemplateInput) GoString() string {
  3338. return s.String()
  3339. }
  3340. // SetAppId sets the AppId field's value.
  3341. func (s *GenerateTemplateInput) SetAppId(v string) *GenerateTemplateInput {
  3342. s.AppId = &v
  3343. return s
  3344. }
  3345. // SetTemplateFormat sets the TemplateFormat field's value.
  3346. func (s *GenerateTemplateInput) SetTemplateFormat(v string) *GenerateTemplateInput {
  3347. s.TemplateFormat = &v
  3348. return s
  3349. }
  3350. type GenerateTemplateOutput struct {
  3351. _ struct{} `type:"structure"`
  3352. // Location of the Amazon S3 object.
  3353. S3Location *S3Location `locationName:"s3Location" type:"structure"`
  3354. }
  3355. // String returns the string representation
  3356. func (s GenerateTemplateOutput) String() string {
  3357. return awsutil.Prettify(s)
  3358. }
  3359. // GoString returns the string representation
  3360. func (s GenerateTemplateOutput) GoString() string {
  3361. return s.String()
  3362. }
  3363. // SetS3Location sets the S3Location field's value.
  3364. func (s *GenerateTemplateOutput) SetS3Location(v *S3Location) *GenerateTemplateOutput {
  3365. s.S3Location = v
  3366. return s
  3367. }
  3368. type GetAppInput struct {
  3369. _ struct{} `type:"structure"`
  3370. // ID of the application whose information is being retrieved.
  3371. AppId *string `locationName:"appId" type:"string"`
  3372. }
  3373. // String returns the string representation
  3374. func (s GetAppInput) String() string {
  3375. return awsutil.Prettify(s)
  3376. }
  3377. // GoString returns the string representation
  3378. func (s GetAppInput) GoString() string {
  3379. return s.String()
  3380. }
  3381. // SetAppId sets the AppId field's value.
  3382. func (s *GetAppInput) SetAppId(v string) *GetAppInput {
  3383. s.AppId = &v
  3384. return s
  3385. }
  3386. type GetAppLaunchConfigurationInput struct {
  3387. _ struct{} `type:"structure"`
  3388. // ID of the application launch configuration.
  3389. AppId *string `locationName:"appId" type:"string"`
  3390. }
  3391. // String returns the string representation
  3392. func (s GetAppLaunchConfigurationInput) String() string {
  3393. return awsutil.Prettify(s)
  3394. }
  3395. // GoString returns the string representation
  3396. func (s GetAppLaunchConfigurationInput) GoString() string {
  3397. return s.String()
  3398. }
  3399. // SetAppId sets the AppId field's value.
  3400. func (s *GetAppLaunchConfigurationInput) SetAppId(v string) *GetAppLaunchConfigurationInput {
  3401. s.AppId = &v
  3402. return s
  3403. }
  3404. type GetAppLaunchConfigurationOutput struct {
  3405. _ struct{} `type:"structure"`
  3406. // ID of the application associated with the launch configuration.
  3407. AppId *string `locationName:"appId" type:"string"`
  3408. // Name of the service role in the customer's account that Amazon CloudFormation
  3409. // uses to launch the application.
  3410. RoleName *string `locationName:"roleName" type:"string"`
  3411. // List of launch configurations for server groups in this application.
  3412. ServerGroupLaunchConfigurations []*ServerGroupLaunchConfiguration `locationName:"serverGroupLaunchConfigurations" type:"list"`
  3413. }
  3414. // String returns the string representation
  3415. func (s GetAppLaunchConfigurationOutput) String() string {
  3416. return awsutil.Prettify(s)
  3417. }
  3418. // GoString returns the string representation
  3419. func (s GetAppLaunchConfigurationOutput) GoString() string {
  3420. return s.String()
  3421. }
  3422. // SetAppId sets the AppId field's value.
  3423. func (s *GetAppLaunchConfigurationOutput) SetAppId(v string) *GetAppLaunchConfigurationOutput {
  3424. s.AppId = &v
  3425. return s
  3426. }
  3427. // SetRoleName sets the RoleName field's value.
  3428. func (s *GetAppLaunchConfigurationOutput) SetRoleName(v string) *GetAppLaunchConfigurationOutput {
  3429. s.RoleName = &v
  3430. return s
  3431. }
  3432. // SetServerGroupLaunchConfigurations sets the ServerGroupLaunchConfigurations field's value.
  3433. func (s *GetAppLaunchConfigurationOutput) SetServerGroupLaunchConfigurations(v []*ServerGroupLaunchConfiguration) *GetAppLaunchConfigurationOutput {
  3434. s.ServerGroupLaunchConfigurations = v
  3435. return s
  3436. }
  3437. type GetAppOutput struct {
  3438. _ struct{} `type:"structure"`
  3439. // Information about the application.
  3440. AppSummary *AppSummary `locationName:"appSummary" type:"structure"`
  3441. // List of server groups belonging to the application.
  3442. ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
  3443. // List of tags associated with the application.
  3444. Tags []*Tag `locationName:"tags" type:"list"`
  3445. }
  3446. // String returns the string representation
  3447. func (s GetAppOutput) String() string {
  3448. return awsutil.Prettify(s)
  3449. }
  3450. // GoString returns the string representation
  3451. func (s GetAppOutput) GoString() string {
  3452. return s.String()
  3453. }
  3454. // SetAppSummary sets the AppSummary field's value.
  3455. func (s *GetAppOutput) SetAppSummary(v *AppSummary) *GetAppOutput {
  3456. s.AppSummary = v
  3457. return s
  3458. }
  3459. // SetServerGroups sets the ServerGroups field's value.
  3460. func (s *GetAppOutput) SetServerGroups(v []*ServerGroup) *GetAppOutput {
  3461. s.ServerGroups = v
  3462. return s
  3463. }
  3464. // SetTags sets the Tags field's value.
  3465. func (s *GetAppOutput) SetTags(v []*Tag) *GetAppOutput {
  3466. s.Tags = v
  3467. return s
  3468. }
  3469. type GetAppReplicationConfigurationInput struct {
  3470. _ struct{} `type:"structure"`
  3471. // ID of the application associated with the replication configuration.
  3472. AppId *string `locationName:"appId" type:"string"`
  3473. }
  3474. // String returns the string representation
  3475. func (s GetAppReplicationConfigurationInput) String() string {
  3476. return awsutil.Prettify(s)
  3477. }
  3478. // GoString returns the string representation
  3479. func (s GetAppReplicationConfigurationInput) GoString() string {
  3480. return s.String()
  3481. }
  3482. // SetAppId sets the AppId field's value.
  3483. func (s *GetAppReplicationConfigurationInput) SetAppId(v string) *GetAppReplicationConfigurationInput {
  3484. s.AppId = &v
  3485. return s
  3486. }
  3487. type GetAppReplicationConfigurationOutput struct {
  3488. _ struct{} `type:"structure"`
  3489. // Replication configurations associated with server groups in this application.
  3490. ServerGroupReplicationConfigurations []*ServerGroupReplicationConfiguration `locationName:"serverGroupReplicationConfigurations" type:"list"`
  3491. }
  3492. // String returns the string representation
  3493. func (s GetAppReplicationConfigurationOutput) String() string {
  3494. return awsutil.Prettify(s)
  3495. }
  3496. // GoString returns the string representation
  3497. func (s GetAppReplicationConfigurationOutput) GoString() string {
  3498. return s.String()
  3499. }
  3500. // SetServerGroupReplicationConfigurations sets the ServerGroupReplicationConfigurations field's value.
  3501. func (s *GetAppReplicationConfigurationOutput) SetServerGroupReplicationConfigurations(v []*ServerGroupReplicationConfiguration) *GetAppReplicationConfigurationOutput {
  3502. s.ServerGroupReplicationConfigurations = v
  3503. return s
  3504. }
  3505. type GetConnectorsInput struct {
  3506. _ struct{} `type:"structure"`
  3507. // The maximum number of results to return in a single call. The default value
  3508. // is 50. To retrieve the remaining results, make another call with the returned
  3509. // NextToken value.
  3510. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3511. // The token for the next set of results.
  3512. NextToken *string `locationName:"nextToken" type:"string"`
  3513. }
  3514. // String returns the string representation
  3515. func (s GetConnectorsInput) String() string {
  3516. return awsutil.Prettify(s)
  3517. }
  3518. // GoString returns the string representation
  3519. func (s GetConnectorsInput) GoString() string {
  3520. return s.String()
  3521. }
  3522. // SetMaxResults sets the MaxResults field's value.
  3523. func (s *GetConnectorsInput) SetMaxResults(v int64) *GetConnectorsInput {
  3524. s.MaxResults = &v
  3525. return s
  3526. }
  3527. // SetNextToken sets the NextToken field's value.
  3528. func (s *GetConnectorsInput) SetNextToken(v string) *GetConnectorsInput {
  3529. s.NextToken = &v
  3530. return s
  3531. }
  3532. type GetConnectorsOutput struct {
  3533. _ struct{} `type:"structure"`
  3534. // Information about the registered connectors.
  3535. ConnectorList []*Connector `locationName:"connectorList" type:"list"`
  3536. // The token required to retrieve the next set of results. This value is null
  3537. // when there are no more results to return.
  3538. NextToken *string `locationName:"nextToken" type:"string"`
  3539. }
  3540. // String returns the string representation
  3541. func (s GetConnectorsOutput) String() string {
  3542. return awsutil.Prettify(s)
  3543. }
  3544. // GoString returns the string representation
  3545. func (s GetConnectorsOutput) GoString() string {
  3546. return s.String()
  3547. }
  3548. // SetConnectorList sets the ConnectorList field's value.
  3549. func (s *GetConnectorsOutput) SetConnectorList(v []*Connector) *GetConnectorsOutput {
  3550. s.ConnectorList = v
  3551. return s
  3552. }
  3553. // SetNextToken sets the NextToken field's value.
  3554. func (s *GetConnectorsOutput) SetNextToken(v string) *GetConnectorsOutput {
  3555. s.NextToken = &v
  3556. return s
  3557. }
  3558. type GetReplicationJobsInput struct {
  3559. _ struct{} `type:"structure"`
  3560. // The maximum number of results to return in a single call. The default value
  3561. // is 50. To retrieve the remaining results, make another call with the returned
  3562. // NextToken value.
  3563. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3564. // The token for the next set of results.
  3565. NextToken *string `locationName:"nextToken" type:"string"`
  3566. // The identifier of the replication job.
  3567. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  3568. }
  3569. // String returns the string representation
  3570. func (s GetReplicationJobsInput) String() string {
  3571. return awsutil.Prettify(s)
  3572. }
  3573. // GoString returns the string representation
  3574. func (s GetReplicationJobsInput) GoString() string {
  3575. return s.String()
  3576. }
  3577. // SetMaxResults sets the MaxResults field's value.
  3578. func (s *GetReplicationJobsInput) SetMaxResults(v int64) *GetReplicationJobsInput {
  3579. s.MaxResults = &v
  3580. return s
  3581. }
  3582. // SetNextToken sets the NextToken field's value.
  3583. func (s *GetReplicationJobsInput) SetNextToken(v string) *GetReplicationJobsInput {
  3584. s.NextToken = &v
  3585. return s
  3586. }
  3587. // SetReplicationJobId sets the ReplicationJobId field's value.
  3588. func (s *GetReplicationJobsInput) SetReplicationJobId(v string) *GetReplicationJobsInput {
  3589. s.ReplicationJobId = &v
  3590. return s
  3591. }
  3592. type GetReplicationJobsOutput struct {
  3593. _ struct{} `type:"structure"`
  3594. // The token required to retrieve the next set of results. This value is null
  3595. // when there are no more results to return.
  3596. NextToken *string `locationName:"nextToken" type:"string"`
  3597. // Information about the replication jobs.
  3598. ReplicationJobList []*ReplicationJob `locationName:"replicationJobList" type:"list"`
  3599. }
  3600. // String returns the string representation
  3601. func (s GetReplicationJobsOutput) String() string {
  3602. return awsutil.Prettify(s)
  3603. }
  3604. // GoString returns the string representation
  3605. func (s GetReplicationJobsOutput) GoString() string {
  3606. return s.String()
  3607. }
  3608. // SetNextToken sets the NextToken field's value.
  3609. func (s *GetReplicationJobsOutput) SetNextToken(v string) *GetReplicationJobsOutput {
  3610. s.NextToken = &v
  3611. return s
  3612. }
  3613. // SetReplicationJobList sets the ReplicationJobList field's value.
  3614. func (s *GetReplicationJobsOutput) SetReplicationJobList(v []*ReplicationJob) *GetReplicationJobsOutput {
  3615. s.ReplicationJobList = v
  3616. return s
  3617. }
  3618. type GetReplicationRunsInput struct {
  3619. _ struct{} `type:"structure"`
  3620. // The maximum number of results to return in a single call. The default value
  3621. // is 50. To retrieve the remaining results, make another call with the returned
  3622. // NextToken value.
  3623. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3624. // The token for the next set of results.
  3625. NextToken *string `locationName:"nextToken" type:"string"`
  3626. // The identifier of the replication job.
  3627. //
  3628. // ReplicationJobId is a required field
  3629. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  3630. }
  3631. // String returns the string representation
  3632. func (s GetReplicationRunsInput) String() string {
  3633. return awsutil.Prettify(s)
  3634. }
  3635. // GoString returns the string representation
  3636. func (s GetReplicationRunsInput) GoString() string {
  3637. return s.String()
  3638. }
  3639. // Validate inspects the fields of the type to determine if they are valid.
  3640. func (s *GetReplicationRunsInput) Validate() error {
  3641. invalidParams := request.ErrInvalidParams{Context: "GetReplicationRunsInput"}
  3642. if s.ReplicationJobId == nil {
  3643. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  3644. }
  3645. if invalidParams.Len() > 0 {
  3646. return invalidParams
  3647. }
  3648. return nil
  3649. }
  3650. // SetMaxResults sets the MaxResults field's value.
  3651. func (s *GetReplicationRunsInput) SetMaxResults(v int64) *GetReplicationRunsInput {
  3652. s.MaxResults = &v
  3653. return s
  3654. }
  3655. // SetNextToken sets the NextToken field's value.
  3656. func (s *GetReplicationRunsInput) SetNextToken(v string) *GetReplicationRunsInput {
  3657. s.NextToken = &v
  3658. return s
  3659. }
  3660. // SetReplicationJobId sets the ReplicationJobId field's value.
  3661. func (s *GetReplicationRunsInput) SetReplicationJobId(v string) *GetReplicationRunsInput {
  3662. s.ReplicationJobId = &v
  3663. return s
  3664. }
  3665. type GetReplicationRunsOutput struct {
  3666. _ struct{} `type:"structure"`
  3667. // The token required to retrieve the next set of results. This value is null
  3668. // when there are no more results to return.
  3669. NextToken *string `locationName:"nextToken" type:"string"`
  3670. // Information about the replication job.
  3671. ReplicationJob *ReplicationJob `locationName:"replicationJob" type:"structure"`
  3672. // Information about the replication runs.
  3673. ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" type:"list"`
  3674. }
  3675. // String returns the string representation
  3676. func (s GetReplicationRunsOutput) String() string {
  3677. return awsutil.Prettify(s)
  3678. }
  3679. // GoString returns the string representation
  3680. func (s GetReplicationRunsOutput) GoString() string {
  3681. return s.String()
  3682. }
  3683. // SetNextToken sets the NextToken field's value.
  3684. func (s *GetReplicationRunsOutput) SetNextToken(v string) *GetReplicationRunsOutput {
  3685. s.NextToken = &v
  3686. return s
  3687. }
  3688. // SetReplicationJob sets the ReplicationJob field's value.
  3689. func (s *GetReplicationRunsOutput) SetReplicationJob(v *ReplicationJob) *GetReplicationRunsOutput {
  3690. s.ReplicationJob = v
  3691. return s
  3692. }
  3693. // SetReplicationRunList sets the ReplicationRunList field's value.
  3694. func (s *GetReplicationRunsOutput) SetReplicationRunList(v []*ReplicationRun) *GetReplicationRunsOutput {
  3695. s.ReplicationRunList = v
  3696. return s
  3697. }
  3698. type GetServersInput struct {
  3699. _ struct{} `type:"structure"`
  3700. // The maximum number of results to return in a single call. The default value
  3701. // is 50. To retrieve the remaining results, make another call with the returned
  3702. // NextToken value.
  3703. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3704. // The token for the next set of results.
  3705. NextToken *string `locationName:"nextToken" type:"string"`
  3706. // List of VmServerAddress objects
  3707. VmServerAddressList []*VmServerAddress `locationName:"vmServerAddressList" type:"list"`
  3708. }
  3709. // String returns the string representation
  3710. func (s GetServersInput) String() string {
  3711. return awsutil.Prettify(s)
  3712. }
  3713. // GoString returns the string representation
  3714. func (s GetServersInput) GoString() string {
  3715. return s.String()
  3716. }
  3717. // SetMaxResults sets the MaxResults field's value.
  3718. func (s *GetServersInput) SetMaxResults(v int64) *GetServersInput {
  3719. s.MaxResults = &v
  3720. return s
  3721. }
  3722. // SetNextToken sets the NextToken field's value.
  3723. func (s *GetServersInput) SetNextToken(v string) *GetServersInput {
  3724. s.NextToken = &v
  3725. return s
  3726. }
  3727. // SetVmServerAddressList sets the VmServerAddressList field's value.
  3728. func (s *GetServersInput) SetVmServerAddressList(v []*VmServerAddress) *GetServersInput {
  3729. s.VmServerAddressList = v
  3730. return s
  3731. }
  3732. type GetServersOutput struct {
  3733. _ struct{} `type:"structure"`
  3734. // The time when the server was last modified.
  3735. LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp"`
  3736. // The token required to retrieve the next set of results. This value is null
  3737. // when there are no more results to return.
  3738. NextToken *string `locationName:"nextToken" type:"string"`
  3739. // The status of the server catalog.
  3740. ServerCatalogStatus *string `locationName:"serverCatalogStatus" type:"string" enum:"ServerCatalogStatus"`
  3741. // Information about the servers.
  3742. ServerList []*Server `locationName:"serverList" type:"list"`
  3743. }
  3744. // String returns the string representation
  3745. func (s GetServersOutput) String() string {
  3746. return awsutil.Prettify(s)
  3747. }
  3748. // GoString returns the string representation
  3749. func (s GetServersOutput) GoString() string {
  3750. return s.String()
  3751. }
  3752. // SetLastModifiedOn sets the LastModifiedOn field's value.
  3753. func (s *GetServersOutput) SetLastModifiedOn(v time.Time) *GetServersOutput {
  3754. s.LastModifiedOn = &v
  3755. return s
  3756. }
  3757. // SetNextToken sets the NextToken field's value.
  3758. func (s *GetServersOutput) SetNextToken(v string) *GetServersOutput {
  3759. s.NextToken = &v
  3760. return s
  3761. }
  3762. // SetServerCatalogStatus sets the ServerCatalogStatus field's value.
  3763. func (s *GetServersOutput) SetServerCatalogStatus(v string) *GetServersOutput {
  3764. s.ServerCatalogStatus = &v
  3765. return s
  3766. }
  3767. // SetServerList sets the ServerList field's value.
  3768. func (s *GetServersOutput) SetServerList(v []*Server) *GetServersOutput {
  3769. s.ServerList = v
  3770. return s
  3771. }
  3772. type ImportServerCatalogInput struct {
  3773. _ struct{} `type:"structure"`
  3774. }
  3775. // String returns the string representation
  3776. func (s ImportServerCatalogInput) String() string {
  3777. return awsutil.Prettify(s)
  3778. }
  3779. // GoString returns the string representation
  3780. func (s ImportServerCatalogInput) GoString() string {
  3781. return s.String()
  3782. }
  3783. type ImportServerCatalogOutput struct {
  3784. _ struct{} `type:"structure"`
  3785. }
  3786. // String returns the string representation
  3787. func (s ImportServerCatalogOutput) String() string {
  3788. return awsutil.Prettify(s)
  3789. }
  3790. // GoString returns the string representation
  3791. func (s ImportServerCatalogOutput) GoString() string {
  3792. return s.String()
  3793. }
  3794. type LaunchAppInput struct {
  3795. _ struct{} `type:"structure"`
  3796. // ID of the application to launch.
  3797. AppId *string `locationName:"appId" type:"string"`
  3798. }
  3799. // String returns the string representation
  3800. func (s LaunchAppInput) String() string {
  3801. return awsutil.Prettify(s)
  3802. }
  3803. // GoString returns the string representation
  3804. func (s LaunchAppInput) GoString() string {
  3805. return s.String()
  3806. }
  3807. // SetAppId sets the AppId field's value.
  3808. func (s *LaunchAppInput) SetAppId(v string) *LaunchAppInput {
  3809. s.AppId = &v
  3810. return s
  3811. }
  3812. type LaunchAppOutput struct {
  3813. _ struct{} `type:"structure"`
  3814. }
  3815. // String returns the string representation
  3816. func (s LaunchAppOutput) String() string {
  3817. return awsutil.Prettify(s)
  3818. }
  3819. // GoString returns the string representation
  3820. func (s LaunchAppOutput) GoString() string {
  3821. return s.String()
  3822. }
  3823. // Details about the latest launch of an application.
  3824. type LaunchDetails struct {
  3825. _ struct{} `type:"structure"`
  3826. // Latest time this application was launched successfully.
  3827. LatestLaunchTime *time.Time `locationName:"latestLaunchTime" type:"timestamp"`
  3828. // Identifier of the latest stack launched for this application.
  3829. StackId *string `locationName:"stackId" type:"string"`
  3830. // Name of the latest stack launched for this application.
  3831. StackName *string `locationName:"stackName" type:"string"`
  3832. }
  3833. // String returns the string representation
  3834. func (s LaunchDetails) String() string {
  3835. return awsutil.Prettify(s)
  3836. }
  3837. // GoString returns the string representation
  3838. func (s LaunchDetails) GoString() string {
  3839. return s.String()
  3840. }
  3841. // SetLatestLaunchTime sets the LatestLaunchTime field's value.
  3842. func (s *LaunchDetails) SetLatestLaunchTime(v time.Time) *LaunchDetails {
  3843. s.LatestLaunchTime = &v
  3844. return s
  3845. }
  3846. // SetStackId sets the StackId field's value.
  3847. func (s *LaunchDetails) SetStackId(v string) *LaunchDetails {
  3848. s.StackId = &v
  3849. return s
  3850. }
  3851. // SetStackName sets the StackName field's value.
  3852. func (s *LaunchDetails) SetStackName(v string) *LaunchDetails {
  3853. s.StackName = &v
  3854. return s
  3855. }
  3856. type ListAppsInput struct {
  3857. _ struct{} `type:"structure"`
  3858. AppIds []*string `locationName:"appIds" type:"list"`
  3859. // The maximum number of results to return in a single call. The default value
  3860. // is 50. To retrieve the remaining results, make another call with the returned
  3861. // NextToken value.
  3862. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  3863. // The token for the next set of results.
  3864. NextToken *string `locationName:"nextToken" type:"string"`
  3865. }
  3866. // String returns the string representation
  3867. func (s ListAppsInput) String() string {
  3868. return awsutil.Prettify(s)
  3869. }
  3870. // GoString returns the string representation
  3871. func (s ListAppsInput) GoString() string {
  3872. return s.String()
  3873. }
  3874. // SetAppIds sets the AppIds field's value.
  3875. func (s *ListAppsInput) SetAppIds(v []*string) *ListAppsInput {
  3876. s.AppIds = v
  3877. return s
  3878. }
  3879. // SetMaxResults sets the MaxResults field's value.
  3880. func (s *ListAppsInput) SetMaxResults(v int64) *ListAppsInput {
  3881. s.MaxResults = &v
  3882. return s
  3883. }
  3884. // SetNextToken sets the NextToken field's value.
  3885. func (s *ListAppsInput) SetNextToken(v string) *ListAppsInput {
  3886. s.NextToken = &v
  3887. return s
  3888. }
  3889. type ListAppsOutput struct {
  3890. _ struct{} `type:"structure"`
  3891. // A list of application summaries.
  3892. Apps []*AppSummary `locationName:"apps" type:"list"`
  3893. // The token required to retrieve the next set of results. This value is null
  3894. // when there are no more results to return.
  3895. NextToken *string `locationName:"nextToken" type:"string"`
  3896. }
  3897. // String returns the string representation
  3898. func (s ListAppsOutput) String() string {
  3899. return awsutil.Prettify(s)
  3900. }
  3901. // GoString returns the string representation
  3902. func (s ListAppsOutput) GoString() string {
  3903. return s.String()
  3904. }
  3905. // SetApps sets the Apps field's value.
  3906. func (s *ListAppsOutput) SetApps(v []*AppSummary) *ListAppsOutput {
  3907. s.Apps = v
  3908. return s
  3909. }
  3910. // SetNextToken sets the NextToken field's value.
  3911. func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput {
  3912. s.NextToken = &v
  3913. return s
  3914. }
  3915. type PutAppLaunchConfigurationInput struct {
  3916. _ struct{} `type:"structure"`
  3917. // ID of the application associated with the launch configuration.
  3918. AppId *string `locationName:"appId" type:"string"`
  3919. // Name of service role in the customer's account that Amazon CloudFormation
  3920. // uses to launch the application.
  3921. RoleName *string `locationName:"roleName" type:"string"`
  3922. // Launch configurations for server groups in the application.
  3923. ServerGroupLaunchConfigurations []*ServerGroupLaunchConfiguration `locationName:"serverGroupLaunchConfigurations" type:"list"`
  3924. }
  3925. // String returns the string representation
  3926. func (s PutAppLaunchConfigurationInput) String() string {
  3927. return awsutil.Prettify(s)
  3928. }
  3929. // GoString returns the string representation
  3930. func (s PutAppLaunchConfigurationInput) GoString() string {
  3931. return s.String()
  3932. }
  3933. // SetAppId sets the AppId field's value.
  3934. func (s *PutAppLaunchConfigurationInput) SetAppId(v string) *PutAppLaunchConfigurationInput {
  3935. s.AppId = &v
  3936. return s
  3937. }
  3938. // SetRoleName sets the RoleName field's value.
  3939. func (s *PutAppLaunchConfigurationInput) SetRoleName(v string) *PutAppLaunchConfigurationInput {
  3940. s.RoleName = &v
  3941. return s
  3942. }
  3943. // SetServerGroupLaunchConfigurations sets the ServerGroupLaunchConfigurations field's value.
  3944. func (s *PutAppLaunchConfigurationInput) SetServerGroupLaunchConfigurations(v []*ServerGroupLaunchConfiguration) *PutAppLaunchConfigurationInput {
  3945. s.ServerGroupLaunchConfigurations = v
  3946. return s
  3947. }
  3948. type PutAppLaunchConfigurationOutput struct {
  3949. _ struct{} `type:"structure"`
  3950. }
  3951. // String returns the string representation
  3952. func (s PutAppLaunchConfigurationOutput) String() string {
  3953. return awsutil.Prettify(s)
  3954. }
  3955. // GoString returns the string representation
  3956. func (s PutAppLaunchConfigurationOutput) GoString() string {
  3957. return s.String()
  3958. }
  3959. type PutAppReplicationConfigurationInput struct {
  3960. _ struct{} `type:"structure"`
  3961. // ID of the application tassociated with the replication configuration.
  3962. AppId *string `locationName:"appId" type:"string"`
  3963. // Replication configurations for server groups in the application.
  3964. ServerGroupReplicationConfigurations []*ServerGroupReplicationConfiguration `locationName:"serverGroupReplicationConfigurations" type:"list"`
  3965. }
  3966. // String returns the string representation
  3967. func (s PutAppReplicationConfigurationInput) String() string {
  3968. return awsutil.Prettify(s)
  3969. }
  3970. // GoString returns the string representation
  3971. func (s PutAppReplicationConfigurationInput) GoString() string {
  3972. return s.String()
  3973. }
  3974. // SetAppId sets the AppId field's value.
  3975. func (s *PutAppReplicationConfigurationInput) SetAppId(v string) *PutAppReplicationConfigurationInput {
  3976. s.AppId = &v
  3977. return s
  3978. }
  3979. // SetServerGroupReplicationConfigurations sets the ServerGroupReplicationConfigurations field's value.
  3980. func (s *PutAppReplicationConfigurationInput) SetServerGroupReplicationConfigurations(v []*ServerGroupReplicationConfiguration) *PutAppReplicationConfigurationInput {
  3981. s.ServerGroupReplicationConfigurations = v
  3982. return s
  3983. }
  3984. type PutAppReplicationConfigurationOutput struct {
  3985. _ struct{} `type:"structure"`
  3986. }
  3987. // String returns the string representation
  3988. func (s PutAppReplicationConfigurationOutput) String() string {
  3989. return awsutil.Prettify(s)
  3990. }
  3991. // GoString returns the string representation
  3992. func (s PutAppReplicationConfigurationOutput) GoString() string {
  3993. return s.String()
  3994. }
  3995. // Represents a replication job.
  3996. type ReplicationJob struct {
  3997. _ struct{} `type:"structure"`
  3998. // The description of the replication job.
  3999. Description *string `locationName:"description" type:"string"`
  4000. // Whether the replication job should produce encrypted AMIs or not. See also
  4001. // KmsKeyId below.
  4002. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  4003. // The time between consecutive replication runs, in hours.
  4004. Frequency *int64 `locationName:"frequency" type:"integer"`
  4005. // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
  4006. // the following:
  4007. //
  4008. // * KMS key ID
  4009. //
  4010. // * KMS key alias
  4011. //
  4012. // * ARN referring to KMS key ID
  4013. //
  4014. // * ARN referring to KMS key alias
  4015. //
  4016. // If encrypted is true but a KMS key id is not specified, the customer's default
  4017. // KMS key for EBS is used.
  4018. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  4019. // The ID of the latest Amazon Machine Image (AMI).
  4020. LatestAmiId *string `locationName:"latestAmiId" type:"string"`
  4021. // The license type to be used for the AMI created by a successful replication
  4022. // run.
  4023. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
  4024. // The start time of the next replication run.
  4025. NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"`
  4026. // Number of recent AMIs to keep in the customer's account for a replication
  4027. // job. By default the value is set to zero, meaning that all AMIs are kept.
  4028. NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
  4029. // The identifier of the replication job.
  4030. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  4031. // Information about the replication runs.
  4032. ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" type:"list"`
  4033. // The name of the IAM role to be used by the Server Migration Service.
  4034. RoleName *string `locationName:"roleName" type:"string"`
  4035. RunOnce *bool `locationName:"runOnce" type:"boolean"`
  4036. // The seed replication time.
  4037. SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp"`
  4038. // The identifier of the server.
  4039. ServerId *string `locationName:"serverId" type:"string"`
  4040. // The type of server.
  4041. ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"`
  4042. // The state of the replication job.
  4043. State *string `locationName:"state" type:"string" enum:"ReplicationJobState"`
  4044. // The description of the current status of the replication job.
  4045. StatusMessage *string `locationName:"statusMessage" type:"string"`
  4046. // Information about the VM server.
  4047. VmServer *VmServer `locationName:"vmServer" type:"structure"`
  4048. }
  4049. // String returns the string representation
  4050. func (s ReplicationJob) String() string {
  4051. return awsutil.Prettify(s)
  4052. }
  4053. // GoString returns the string representation
  4054. func (s ReplicationJob) GoString() string {
  4055. return s.String()
  4056. }
  4057. // SetDescription sets the Description field's value.
  4058. func (s *ReplicationJob) SetDescription(v string) *ReplicationJob {
  4059. s.Description = &v
  4060. return s
  4061. }
  4062. // SetEncrypted sets the Encrypted field's value.
  4063. func (s *ReplicationJob) SetEncrypted(v bool) *ReplicationJob {
  4064. s.Encrypted = &v
  4065. return s
  4066. }
  4067. // SetFrequency sets the Frequency field's value.
  4068. func (s *ReplicationJob) SetFrequency(v int64) *ReplicationJob {
  4069. s.Frequency = &v
  4070. return s
  4071. }
  4072. // SetKmsKeyId sets the KmsKeyId field's value.
  4073. func (s *ReplicationJob) SetKmsKeyId(v string) *ReplicationJob {
  4074. s.KmsKeyId = &v
  4075. return s
  4076. }
  4077. // SetLatestAmiId sets the LatestAmiId field's value.
  4078. func (s *ReplicationJob) SetLatestAmiId(v string) *ReplicationJob {
  4079. s.LatestAmiId = &v
  4080. return s
  4081. }
  4082. // SetLicenseType sets the LicenseType field's value.
  4083. func (s *ReplicationJob) SetLicenseType(v string) *ReplicationJob {
  4084. s.LicenseType = &v
  4085. return s
  4086. }
  4087. // SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value.
  4088. func (s *ReplicationJob) SetNextReplicationRunStartTime(v time.Time) *ReplicationJob {
  4089. s.NextReplicationRunStartTime = &v
  4090. return s
  4091. }
  4092. // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
  4093. func (s *ReplicationJob) SetNumberOfRecentAmisToKeep(v int64) *ReplicationJob {
  4094. s.NumberOfRecentAmisToKeep = &v
  4095. return s
  4096. }
  4097. // SetReplicationJobId sets the ReplicationJobId field's value.
  4098. func (s *ReplicationJob) SetReplicationJobId(v string) *ReplicationJob {
  4099. s.ReplicationJobId = &v
  4100. return s
  4101. }
  4102. // SetReplicationRunList sets the ReplicationRunList field's value.
  4103. func (s *ReplicationJob) SetReplicationRunList(v []*ReplicationRun) *ReplicationJob {
  4104. s.ReplicationRunList = v
  4105. return s
  4106. }
  4107. // SetRoleName sets the RoleName field's value.
  4108. func (s *ReplicationJob) SetRoleName(v string) *ReplicationJob {
  4109. s.RoleName = &v
  4110. return s
  4111. }
  4112. // SetRunOnce sets the RunOnce field's value.
  4113. func (s *ReplicationJob) SetRunOnce(v bool) *ReplicationJob {
  4114. s.RunOnce = &v
  4115. return s
  4116. }
  4117. // SetSeedReplicationTime sets the SeedReplicationTime field's value.
  4118. func (s *ReplicationJob) SetSeedReplicationTime(v time.Time) *ReplicationJob {
  4119. s.SeedReplicationTime = &v
  4120. return s
  4121. }
  4122. // SetServerId sets the ServerId field's value.
  4123. func (s *ReplicationJob) SetServerId(v string) *ReplicationJob {
  4124. s.ServerId = &v
  4125. return s
  4126. }
  4127. // SetServerType sets the ServerType field's value.
  4128. func (s *ReplicationJob) SetServerType(v string) *ReplicationJob {
  4129. s.ServerType = &v
  4130. return s
  4131. }
  4132. // SetState sets the State field's value.
  4133. func (s *ReplicationJob) SetState(v string) *ReplicationJob {
  4134. s.State = &v
  4135. return s
  4136. }
  4137. // SetStatusMessage sets the StatusMessage field's value.
  4138. func (s *ReplicationJob) SetStatusMessage(v string) *ReplicationJob {
  4139. s.StatusMessage = &v
  4140. return s
  4141. }
  4142. // SetVmServer sets the VmServer field's value.
  4143. func (s *ReplicationJob) SetVmServer(v *VmServer) *ReplicationJob {
  4144. s.VmServer = v
  4145. return s
  4146. }
  4147. // Represents a replication run.
  4148. type ReplicationRun struct {
  4149. _ struct{} `type:"structure"`
  4150. // The identifier of the Amazon Machine Image (AMI) from the replication run.
  4151. AmiId *string `locationName:"amiId" type:"string"`
  4152. // The completion time of the last replication run.
  4153. CompletedTime *time.Time `locationName:"completedTime" type:"timestamp"`
  4154. // The description of the replication run.
  4155. Description *string `locationName:"description" type:"string"`
  4156. // Whether the replication run should produce encrypted AMI or not. See also
  4157. // KmsKeyId below.
  4158. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  4159. // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
  4160. // the following:
  4161. //
  4162. // * KMS key ID
  4163. //
  4164. // * KMS key alias
  4165. //
  4166. // * ARN referring to KMS key ID
  4167. //
  4168. // * ARN referring to KMS key alias
  4169. //
  4170. // If encrypted is true but a KMS key id is not specified, the customer's default
  4171. // KMS key for EBS is used.
  4172. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  4173. // The identifier of the replication run.
  4174. ReplicationRunId *string `locationName:"replicationRunId" type:"string"`
  4175. // The start time of the next replication run.
  4176. ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp"`
  4177. // Details of the current stage of the replication run.
  4178. StageDetails *ReplicationRunStageDetails `locationName:"stageDetails" type:"structure"`
  4179. // The state of the replication run.
  4180. State *string `locationName:"state" type:"string" enum:"ReplicationRunState"`
  4181. // The description of the current status of the replication job.
  4182. StatusMessage *string `locationName:"statusMessage" type:"string"`
  4183. // The type of replication run.
  4184. Type *string `locationName:"type" type:"string" enum:"ReplicationRunType"`
  4185. }
  4186. // String returns the string representation
  4187. func (s ReplicationRun) String() string {
  4188. return awsutil.Prettify(s)
  4189. }
  4190. // GoString returns the string representation
  4191. func (s ReplicationRun) GoString() string {
  4192. return s.String()
  4193. }
  4194. // SetAmiId sets the AmiId field's value.
  4195. func (s *ReplicationRun) SetAmiId(v string) *ReplicationRun {
  4196. s.AmiId = &v
  4197. return s
  4198. }
  4199. // SetCompletedTime sets the CompletedTime field's value.
  4200. func (s *ReplicationRun) SetCompletedTime(v time.Time) *ReplicationRun {
  4201. s.CompletedTime = &v
  4202. return s
  4203. }
  4204. // SetDescription sets the Description field's value.
  4205. func (s *ReplicationRun) SetDescription(v string) *ReplicationRun {
  4206. s.Description = &v
  4207. return s
  4208. }
  4209. // SetEncrypted sets the Encrypted field's value.
  4210. func (s *ReplicationRun) SetEncrypted(v bool) *ReplicationRun {
  4211. s.Encrypted = &v
  4212. return s
  4213. }
  4214. // SetKmsKeyId sets the KmsKeyId field's value.
  4215. func (s *ReplicationRun) SetKmsKeyId(v string) *ReplicationRun {
  4216. s.KmsKeyId = &v
  4217. return s
  4218. }
  4219. // SetReplicationRunId sets the ReplicationRunId field's value.
  4220. func (s *ReplicationRun) SetReplicationRunId(v string) *ReplicationRun {
  4221. s.ReplicationRunId = &v
  4222. return s
  4223. }
  4224. // SetScheduledStartTime sets the ScheduledStartTime field's value.
  4225. func (s *ReplicationRun) SetScheduledStartTime(v time.Time) *ReplicationRun {
  4226. s.ScheduledStartTime = &v
  4227. return s
  4228. }
  4229. // SetStageDetails sets the StageDetails field's value.
  4230. func (s *ReplicationRun) SetStageDetails(v *ReplicationRunStageDetails) *ReplicationRun {
  4231. s.StageDetails = v
  4232. return s
  4233. }
  4234. // SetState sets the State field's value.
  4235. func (s *ReplicationRun) SetState(v string) *ReplicationRun {
  4236. s.State = &v
  4237. return s
  4238. }
  4239. // SetStatusMessage sets the StatusMessage field's value.
  4240. func (s *ReplicationRun) SetStatusMessage(v string) *ReplicationRun {
  4241. s.StatusMessage = &v
  4242. return s
  4243. }
  4244. // SetType sets the Type field's value.
  4245. func (s *ReplicationRun) SetType(v string) *ReplicationRun {
  4246. s.Type = &v
  4247. return s
  4248. }
  4249. // Details of the current stage of a replication run.
  4250. type ReplicationRunStageDetails struct {
  4251. _ struct{} `type:"structure"`
  4252. // String describing the current stage of a replication run.
  4253. Stage *string `locationName:"stage" type:"string"`
  4254. // String describing the progress of the current stage of a replication run.
  4255. StageProgress *string `locationName:"stageProgress" type:"string"`
  4256. }
  4257. // String returns the string representation
  4258. func (s ReplicationRunStageDetails) String() string {
  4259. return awsutil.Prettify(s)
  4260. }
  4261. // GoString returns the string representation
  4262. func (s ReplicationRunStageDetails) GoString() string {
  4263. return s.String()
  4264. }
  4265. // SetStage sets the Stage field's value.
  4266. func (s *ReplicationRunStageDetails) SetStage(v string) *ReplicationRunStageDetails {
  4267. s.Stage = &v
  4268. return s
  4269. }
  4270. // SetStageProgress sets the StageProgress field's value.
  4271. func (s *ReplicationRunStageDetails) SetStageProgress(v string) *ReplicationRunStageDetails {
  4272. s.StageProgress = &v
  4273. return s
  4274. }
  4275. // Location of the Amazon S3 object in the customer's account.
  4276. type S3Location struct {
  4277. _ struct{} `type:"structure"`
  4278. // Amazon S3 bucket name.
  4279. Bucket *string `locationName:"bucket" type:"string"`
  4280. // Amazon S3 bucket key.
  4281. Key *string `locationName:"key" type:"string"`
  4282. }
  4283. // String returns the string representation
  4284. func (s S3Location) String() string {
  4285. return awsutil.Prettify(s)
  4286. }
  4287. // GoString returns the string representation
  4288. func (s S3Location) GoString() string {
  4289. return s.String()
  4290. }
  4291. // SetBucket sets the Bucket field's value.
  4292. func (s *S3Location) SetBucket(v string) *S3Location {
  4293. s.Bucket = &v
  4294. return s
  4295. }
  4296. // SetKey sets the Key field's value.
  4297. func (s *S3Location) SetKey(v string) *S3Location {
  4298. s.Key = &v
  4299. return s
  4300. }
  4301. // Represents a server.
  4302. type Server struct {
  4303. _ struct{} `type:"structure"`
  4304. // The identifier of the replication job.
  4305. ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
  4306. // Indicates whether the replication job is deleted or failed.
  4307. ReplicationJobTerminated *bool `locationName:"replicationJobTerminated" type:"boolean"`
  4308. // The identifier of the server.
  4309. ServerId *string `locationName:"serverId" type:"string"`
  4310. // The type of server.
  4311. ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"`
  4312. // Information about the VM server.
  4313. VmServer *VmServer `locationName:"vmServer" type:"structure"`
  4314. }
  4315. // String returns the string representation
  4316. func (s Server) String() string {
  4317. return awsutil.Prettify(s)
  4318. }
  4319. // GoString returns the string representation
  4320. func (s Server) GoString() string {
  4321. return s.String()
  4322. }
  4323. // SetReplicationJobId sets the ReplicationJobId field's value.
  4324. func (s *Server) SetReplicationJobId(v string) *Server {
  4325. s.ReplicationJobId = &v
  4326. return s
  4327. }
  4328. // SetReplicationJobTerminated sets the ReplicationJobTerminated field's value.
  4329. func (s *Server) SetReplicationJobTerminated(v bool) *Server {
  4330. s.ReplicationJobTerminated = &v
  4331. return s
  4332. }
  4333. // SetServerId sets the ServerId field's value.
  4334. func (s *Server) SetServerId(v string) *Server {
  4335. s.ServerId = &v
  4336. return s
  4337. }
  4338. // SetServerType sets the ServerType field's value.
  4339. func (s *Server) SetServerType(v string) *Server {
  4340. s.ServerType = &v
  4341. return s
  4342. }
  4343. // SetVmServer sets the VmServer field's value.
  4344. func (s *Server) SetVmServer(v *VmServer) *Server {
  4345. s.VmServer = v
  4346. return s
  4347. }
  4348. // A logical grouping of servers.
  4349. type ServerGroup struct {
  4350. _ struct{} `type:"structure"`
  4351. // Name of a server group.
  4352. Name *string `locationName:"name" type:"string"`
  4353. // Identifier of a server group.
  4354. ServerGroupId *string `locationName:"serverGroupId" type:"string"`
  4355. // List of servers belonging to a server group.
  4356. ServerList []*Server `locationName:"serverList" type:"list"`
  4357. }
  4358. // String returns the string representation
  4359. func (s ServerGroup) String() string {
  4360. return awsutil.Prettify(s)
  4361. }
  4362. // GoString returns the string representation
  4363. func (s ServerGroup) GoString() string {
  4364. return s.String()
  4365. }
  4366. // SetName sets the Name field's value.
  4367. func (s *ServerGroup) SetName(v string) *ServerGroup {
  4368. s.Name = &v
  4369. return s
  4370. }
  4371. // SetServerGroupId sets the ServerGroupId field's value.
  4372. func (s *ServerGroup) SetServerGroupId(v string) *ServerGroup {
  4373. s.ServerGroupId = &v
  4374. return s
  4375. }
  4376. // SetServerList sets the ServerList field's value.
  4377. func (s *ServerGroup) SetServerList(v []*Server) *ServerGroup {
  4378. s.ServerList = v
  4379. return s
  4380. }
  4381. // Launch configuration for a server group.
  4382. type ServerGroupLaunchConfiguration struct {
  4383. _ struct{} `type:"structure"`
  4384. // Launch order of servers in the server group.
  4385. LaunchOrder *int64 `locationName:"launchOrder" type:"integer"`
  4386. // Identifier of the server group the launch configuration is associated with.
  4387. ServerGroupId *string `locationName:"serverGroupId" type:"string"`
  4388. // Launch configuration for servers in the server group.
  4389. ServerLaunchConfigurations []*ServerLaunchConfiguration `locationName:"serverLaunchConfigurations" type:"list"`
  4390. }
  4391. // String returns the string representation
  4392. func (s ServerGroupLaunchConfiguration) String() string {
  4393. return awsutil.Prettify(s)
  4394. }
  4395. // GoString returns the string representation
  4396. func (s ServerGroupLaunchConfiguration) GoString() string {
  4397. return s.String()
  4398. }
  4399. // SetLaunchOrder sets the LaunchOrder field's value.
  4400. func (s *ServerGroupLaunchConfiguration) SetLaunchOrder(v int64) *ServerGroupLaunchConfiguration {
  4401. s.LaunchOrder = &v
  4402. return s
  4403. }
  4404. // SetServerGroupId sets the ServerGroupId field's value.
  4405. func (s *ServerGroupLaunchConfiguration) SetServerGroupId(v string) *ServerGroupLaunchConfiguration {
  4406. s.ServerGroupId = &v
  4407. return s
  4408. }
  4409. // SetServerLaunchConfigurations sets the ServerLaunchConfigurations field's value.
  4410. func (s *ServerGroupLaunchConfiguration) SetServerLaunchConfigurations(v []*ServerLaunchConfiguration) *ServerGroupLaunchConfiguration {
  4411. s.ServerLaunchConfigurations = v
  4412. return s
  4413. }
  4414. // Replication configuration for a server group.
  4415. type ServerGroupReplicationConfiguration struct {
  4416. _ struct{} `type:"structure"`
  4417. // Identifier of the server group this replication configuration is associated
  4418. // with.
  4419. ServerGroupId *string `locationName:"serverGroupId" type:"string"`
  4420. // Replication configuration for servers in the server group.
  4421. ServerReplicationConfigurations []*ServerReplicationConfiguration `locationName:"serverReplicationConfigurations" type:"list"`
  4422. }
  4423. // String returns the string representation
  4424. func (s ServerGroupReplicationConfiguration) String() string {
  4425. return awsutil.Prettify(s)
  4426. }
  4427. // GoString returns the string representation
  4428. func (s ServerGroupReplicationConfiguration) GoString() string {
  4429. return s.String()
  4430. }
  4431. // SetServerGroupId sets the ServerGroupId field's value.
  4432. func (s *ServerGroupReplicationConfiguration) SetServerGroupId(v string) *ServerGroupReplicationConfiguration {
  4433. s.ServerGroupId = &v
  4434. return s
  4435. }
  4436. // SetServerReplicationConfigurations sets the ServerReplicationConfigurations field's value.
  4437. func (s *ServerGroupReplicationConfiguration) SetServerReplicationConfigurations(v []*ServerReplicationConfiguration) *ServerGroupReplicationConfiguration {
  4438. s.ServerReplicationConfigurations = v
  4439. return s
  4440. }
  4441. // Launch configuration for a server.
  4442. type ServerLaunchConfiguration struct {
  4443. _ struct{} `type:"structure"`
  4444. // If true, a publicly accessible IP address is created when launching the server.
  4445. AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
  4446. // Name of the EC2 SSH Key to be used for connecting to the launched server.
  4447. Ec2KeyName *string `locationName:"ec2KeyName" type:"string"`
  4448. // Instance type to be used for launching the server.
  4449. InstanceType *string `locationName:"instanceType" type:"string"`
  4450. // Logical ID of the server in the Amazon CloudFormation template.
  4451. LogicalId *string `locationName:"logicalId" type:"string"`
  4452. // Identifier of the security group that applies to the launched server.
  4453. SecurityGroup *string `locationName:"securityGroup" type:"string"`
  4454. // Identifier of the server the launch configuration is associated with.
  4455. Server *Server `locationName:"server" type:"structure"`
  4456. // Identifier of the subnet the server should be launched into.
  4457. Subnet *string `locationName:"subnet" type:"string"`
  4458. // Location of the user-data script to be executed when launching the server.
  4459. UserData *UserData `locationName:"userData" type:"structure"`
  4460. // Identifier of the VPC the server should be launched into.
  4461. Vpc *string `locationName:"vpc" type:"string"`
  4462. }
  4463. // String returns the string representation
  4464. func (s ServerLaunchConfiguration) String() string {
  4465. return awsutil.Prettify(s)
  4466. }
  4467. // GoString returns the string representation
  4468. func (s ServerLaunchConfiguration) GoString() string {
  4469. return s.String()
  4470. }
  4471. // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
  4472. func (s *ServerLaunchConfiguration) SetAssociatePublicIpAddress(v bool) *ServerLaunchConfiguration {
  4473. s.AssociatePublicIpAddress = &v
  4474. return s
  4475. }
  4476. // SetEc2KeyName sets the Ec2KeyName field's value.
  4477. func (s *ServerLaunchConfiguration) SetEc2KeyName(v string) *ServerLaunchConfiguration {
  4478. s.Ec2KeyName = &v
  4479. return s
  4480. }
  4481. // SetInstanceType sets the InstanceType field's value.
  4482. func (s *ServerLaunchConfiguration) SetInstanceType(v string) *ServerLaunchConfiguration {
  4483. s.InstanceType = &v
  4484. return s
  4485. }
  4486. // SetLogicalId sets the LogicalId field's value.
  4487. func (s *ServerLaunchConfiguration) SetLogicalId(v string) *ServerLaunchConfiguration {
  4488. s.LogicalId = &v
  4489. return s
  4490. }
  4491. // SetSecurityGroup sets the SecurityGroup field's value.
  4492. func (s *ServerLaunchConfiguration) SetSecurityGroup(v string) *ServerLaunchConfiguration {
  4493. s.SecurityGroup = &v
  4494. return s
  4495. }
  4496. // SetServer sets the Server field's value.
  4497. func (s *ServerLaunchConfiguration) SetServer(v *Server) *ServerLaunchConfiguration {
  4498. s.Server = v
  4499. return s
  4500. }
  4501. // SetSubnet sets the Subnet field's value.
  4502. func (s *ServerLaunchConfiguration) SetSubnet(v string) *ServerLaunchConfiguration {
  4503. s.Subnet = &v
  4504. return s
  4505. }
  4506. // SetUserData sets the UserData field's value.
  4507. func (s *ServerLaunchConfiguration) SetUserData(v *UserData) *ServerLaunchConfiguration {
  4508. s.UserData = v
  4509. return s
  4510. }
  4511. // SetVpc sets the Vpc field's value.
  4512. func (s *ServerLaunchConfiguration) SetVpc(v string) *ServerLaunchConfiguration {
  4513. s.Vpc = &v
  4514. return s
  4515. }
  4516. // Replication configuration of a server.
  4517. type ServerReplicationConfiguration struct {
  4518. _ struct{} `type:"structure"`
  4519. // Identifier of the server this replication configuration is associated with.
  4520. Server *Server `locationName:"server" type:"structure"`
  4521. // Parameters for replicating the server.
  4522. ServerReplicationParameters *ServerReplicationParameters `locationName:"serverReplicationParameters" type:"structure"`
  4523. }
  4524. // String returns the string representation
  4525. func (s ServerReplicationConfiguration) String() string {
  4526. return awsutil.Prettify(s)
  4527. }
  4528. // GoString returns the string representation
  4529. func (s ServerReplicationConfiguration) GoString() string {
  4530. return s.String()
  4531. }
  4532. // SetServer sets the Server field's value.
  4533. func (s *ServerReplicationConfiguration) SetServer(v *Server) *ServerReplicationConfiguration {
  4534. s.Server = v
  4535. return s
  4536. }
  4537. // SetServerReplicationParameters sets the ServerReplicationParameters field's value.
  4538. func (s *ServerReplicationConfiguration) SetServerReplicationParameters(v *ServerReplicationParameters) *ServerReplicationConfiguration {
  4539. s.ServerReplicationParameters = v
  4540. return s
  4541. }
  4542. // Replication parameters for replicating a server.
  4543. type ServerReplicationParameters struct {
  4544. _ struct{} `type:"structure"`
  4545. // When true, the replication job produces encrypted AMIs. See also KmsKeyId
  4546. // below.
  4547. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  4548. // Frequency of creating replication jobs for the server.
  4549. Frequency *int64 `locationName:"frequency" type:"integer"`
  4550. // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
  4551. // the following:
  4552. //
  4553. // KMS key ID
  4554. //
  4555. // * KMS key alias
  4556. //
  4557. // * ARN referring to KMS key ID
  4558. //
  4559. // * ARN referring to KMS key alias
  4560. //
  4561. // If encrypted is true
  4562. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  4563. // License type for creating a replication job for the server.
  4564. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
  4565. // Number of recent AMIs to keep when creating a replication job for this server.
  4566. NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
  4567. RunOnce *bool `locationName:"runOnce" type:"boolean"`
  4568. // Seed time for creating a replication job for the server.
  4569. SeedTime *time.Time `locationName:"seedTime" type:"timestamp"`
  4570. }
  4571. // String returns the string representation
  4572. func (s ServerReplicationParameters) String() string {
  4573. return awsutil.Prettify(s)
  4574. }
  4575. // GoString returns the string representation
  4576. func (s ServerReplicationParameters) GoString() string {
  4577. return s.String()
  4578. }
  4579. // SetEncrypted sets the Encrypted field's value.
  4580. func (s *ServerReplicationParameters) SetEncrypted(v bool) *ServerReplicationParameters {
  4581. s.Encrypted = &v
  4582. return s
  4583. }
  4584. // SetFrequency sets the Frequency field's value.
  4585. func (s *ServerReplicationParameters) SetFrequency(v int64) *ServerReplicationParameters {
  4586. s.Frequency = &v
  4587. return s
  4588. }
  4589. // SetKmsKeyId sets the KmsKeyId field's value.
  4590. func (s *ServerReplicationParameters) SetKmsKeyId(v string) *ServerReplicationParameters {
  4591. s.KmsKeyId = &v
  4592. return s
  4593. }
  4594. // SetLicenseType sets the LicenseType field's value.
  4595. func (s *ServerReplicationParameters) SetLicenseType(v string) *ServerReplicationParameters {
  4596. s.LicenseType = &v
  4597. return s
  4598. }
  4599. // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
  4600. func (s *ServerReplicationParameters) SetNumberOfRecentAmisToKeep(v int64) *ServerReplicationParameters {
  4601. s.NumberOfRecentAmisToKeep = &v
  4602. return s
  4603. }
  4604. // SetRunOnce sets the RunOnce field's value.
  4605. func (s *ServerReplicationParameters) SetRunOnce(v bool) *ServerReplicationParameters {
  4606. s.RunOnce = &v
  4607. return s
  4608. }
  4609. // SetSeedTime sets the SeedTime field's value.
  4610. func (s *ServerReplicationParameters) SetSeedTime(v time.Time) *ServerReplicationParameters {
  4611. s.SeedTime = &v
  4612. return s
  4613. }
  4614. type StartAppReplicationInput struct {
  4615. _ struct{} `type:"structure"`
  4616. // ID of the application to replicate.
  4617. AppId *string `locationName:"appId" type:"string"`
  4618. }
  4619. // String returns the string representation
  4620. func (s StartAppReplicationInput) String() string {
  4621. return awsutil.Prettify(s)
  4622. }
  4623. // GoString returns the string representation
  4624. func (s StartAppReplicationInput) GoString() string {
  4625. return s.String()
  4626. }
  4627. // SetAppId sets the AppId field's value.
  4628. func (s *StartAppReplicationInput) SetAppId(v string) *StartAppReplicationInput {
  4629. s.AppId = &v
  4630. return s
  4631. }
  4632. type StartAppReplicationOutput struct {
  4633. _ struct{} `type:"structure"`
  4634. }
  4635. // String returns the string representation
  4636. func (s StartAppReplicationOutput) String() string {
  4637. return awsutil.Prettify(s)
  4638. }
  4639. // GoString returns the string representation
  4640. func (s StartAppReplicationOutput) GoString() string {
  4641. return s.String()
  4642. }
  4643. type StartOnDemandReplicationRunInput struct {
  4644. _ struct{} `type:"structure"`
  4645. // The description of the replication run.
  4646. Description *string `locationName:"description" type:"string"`
  4647. // The identifier of the replication job.
  4648. //
  4649. // ReplicationJobId is a required field
  4650. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  4651. }
  4652. // String returns the string representation
  4653. func (s StartOnDemandReplicationRunInput) String() string {
  4654. return awsutil.Prettify(s)
  4655. }
  4656. // GoString returns the string representation
  4657. func (s StartOnDemandReplicationRunInput) GoString() string {
  4658. return s.String()
  4659. }
  4660. // Validate inspects the fields of the type to determine if they are valid.
  4661. func (s *StartOnDemandReplicationRunInput) Validate() error {
  4662. invalidParams := request.ErrInvalidParams{Context: "StartOnDemandReplicationRunInput"}
  4663. if s.ReplicationJobId == nil {
  4664. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  4665. }
  4666. if invalidParams.Len() > 0 {
  4667. return invalidParams
  4668. }
  4669. return nil
  4670. }
  4671. // SetDescription sets the Description field's value.
  4672. func (s *StartOnDemandReplicationRunInput) SetDescription(v string) *StartOnDemandReplicationRunInput {
  4673. s.Description = &v
  4674. return s
  4675. }
  4676. // SetReplicationJobId sets the ReplicationJobId field's value.
  4677. func (s *StartOnDemandReplicationRunInput) SetReplicationJobId(v string) *StartOnDemandReplicationRunInput {
  4678. s.ReplicationJobId = &v
  4679. return s
  4680. }
  4681. type StartOnDemandReplicationRunOutput struct {
  4682. _ struct{} `type:"structure"`
  4683. // The identifier of the replication run.
  4684. ReplicationRunId *string `locationName:"replicationRunId" type:"string"`
  4685. }
  4686. // String returns the string representation
  4687. func (s StartOnDemandReplicationRunOutput) String() string {
  4688. return awsutil.Prettify(s)
  4689. }
  4690. // GoString returns the string representation
  4691. func (s StartOnDemandReplicationRunOutput) GoString() string {
  4692. return s.String()
  4693. }
  4694. // SetReplicationRunId sets the ReplicationRunId field's value.
  4695. func (s *StartOnDemandReplicationRunOutput) SetReplicationRunId(v string) *StartOnDemandReplicationRunOutput {
  4696. s.ReplicationRunId = &v
  4697. return s
  4698. }
  4699. type StopAppReplicationInput struct {
  4700. _ struct{} `type:"structure"`
  4701. // ID of the application to stop replicating.
  4702. AppId *string `locationName:"appId" type:"string"`
  4703. }
  4704. // String returns the string representation
  4705. func (s StopAppReplicationInput) String() string {
  4706. return awsutil.Prettify(s)
  4707. }
  4708. // GoString returns the string representation
  4709. func (s StopAppReplicationInput) GoString() string {
  4710. return s.String()
  4711. }
  4712. // SetAppId sets the AppId field's value.
  4713. func (s *StopAppReplicationInput) SetAppId(v string) *StopAppReplicationInput {
  4714. s.AppId = &v
  4715. return s
  4716. }
  4717. type StopAppReplicationOutput struct {
  4718. _ struct{} `type:"structure"`
  4719. }
  4720. // String returns the string representation
  4721. func (s StopAppReplicationOutput) String() string {
  4722. return awsutil.Prettify(s)
  4723. }
  4724. // GoString returns the string representation
  4725. func (s StopAppReplicationOutput) GoString() string {
  4726. return s.String()
  4727. }
  4728. // A label that can be assigned to an application.
  4729. type Tag struct {
  4730. _ struct{} `type:"structure"`
  4731. // Tag key.
  4732. Key *string `locationName:"key" type:"string"`
  4733. // Tag value.
  4734. Value *string `locationName:"value" type:"string"`
  4735. }
  4736. // String returns the string representation
  4737. func (s Tag) String() string {
  4738. return awsutil.Prettify(s)
  4739. }
  4740. // GoString returns the string representation
  4741. func (s Tag) GoString() string {
  4742. return s.String()
  4743. }
  4744. // SetKey sets the Key field's value.
  4745. func (s *Tag) SetKey(v string) *Tag {
  4746. s.Key = &v
  4747. return s
  4748. }
  4749. // SetValue sets the Value field's value.
  4750. func (s *Tag) SetValue(v string) *Tag {
  4751. s.Value = &v
  4752. return s
  4753. }
  4754. type TerminateAppInput struct {
  4755. _ struct{} `type:"structure"`
  4756. // ID of the application to terminate.
  4757. AppId *string `locationName:"appId" type:"string"`
  4758. }
  4759. // String returns the string representation
  4760. func (s TerminateAppInput) String() string {
  4761. return awsutil.Prettify(s)
  4762. }
  4763. // GoString returns the string representation
  4764. func (s TerminateAppInput) GoString() string {
  4765. return s.String()
  4766. }
  4767. // SetAppId sets the AppId field's value.
  4768. func (s *TerminateAppInput) SetAppId(v string) *TerminateAppInput {
  4769. s.AppId = &v
  4770. return s
  4771. }
  4772. type TerminateAppOutput struct {
  4773. _ struct{} `type:"structure"`
  4774. }
  4775. // String returns the string representation
  4776. func (s TerminateAppOutput) String() string {
  4777. return awsutil.Prettify(s)
  4778. }
  4779. // GoString returns the string representation
  4780. func (s TerminateAppOutput) GoString() string {
  4781. return s.String()
  4782. }
  4783. type UpdateAppInput struct {
  4784. _ struct{} `type:"structure"`
  4785. // ID of the application to update.
  4786. AppId *string `locationName:"appId" type:"string"`
  4787. // New description of the application.
  4788. Description *string `locationName:"description" type:"string"`
  4789. // New name of the application.
  4790. Name *string `locationName:"name" type:"string"`
  4791. // Name of the service role in the customer's account used by AWS SMS.
  4792. RoleName *string `locationName:"roleName" type:"string"`
  4793. // List of server groups in the application to update.
  4794. ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
  4795. // List of tags to associate with the application.
  4796. Tags []*Tag `locationName:"tags" type:"list"`
  4797. }
  4798. // String returns the string representation
  4799. func (s UpdateAppInput) String() string {
  4800. return awsutil.Prettify(s)
  4801. }
  4802. // GoString returns the string representation
  4803. func (s UpdateAppInput) GoString() string {
  4804. return s.String()
  4805. }
  4806. // SetAppId sets the AppId field's value.
  4807. func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput {
  4808. s.AppId = &v
  4809. return s
  4810. }
  4811. // SetDescription sets the Description field's value.
  4812. func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput {
  4813. s.Description = &v
  4814. return s
  4815. }
  4816. // SetName sets the Name field's value.
  4817. func (s *UpdateAppInput) SetName(v string) *UpdateAppInput {
  4818. s.Name = &v
  4819. return s
  4820. }
  4821. // SetRoleName sets the RoleName field's value.
  4822. func (s *UpdateAppInput) SetRoleName(v string) *UpdateAppInput {
  4823. s.RoleName = &v
  4824. return s
  4825. }
  4826. // SetServerGroups sets the ServerGroups field's value.
  4827. func (s *UpdateAppInput) SetServerGroups(v []*ServerGroup) *UpdateAppInput {
  4828. s.ServerGroups = v
  4829. return s
  4830. }
  4831. // SetTags sets the Tags field's value.
  4832. func (s *UpdateAppInput) SetTags(v []*Tag) *UpdateAppInput {
  4833. s.Tags = v
  4834. return s
  4835. }
  4836. type UpdateAppOutput struct {
  4837. _ struct{} `type:"structure"`
  4838. // Summary description of the application.
  4839. AppSummary *AppSummary `locationName:"appSummary" type:"structure"`
  4840. // List of updated server groups in the application.
  4841. ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
  4842. // List of tags associated with the application.
  4843. Tags []*Tag `locationName:"tags" type:"list"`
  4844. }
  4845. // String returns the string representation
  4846. func (s UpdateAppOutput) String() string {
  4847. return awsutil.Prettify(s)
  4848. }
  4849. // GoString returns the string representation
  4850. func (s UpdateAppOutput) GoString() string {
  4851. return s.String()
  4852. }
  4853. // SetAppSummary sets the AppSummary field's value.
  4854. func (s *UpdateAppOutput) SetAppSummary(v *AppSummary) *UpdateAppOutput {
  4855. s.AppSummary = v
  4856. return s
  4857. }
  4858. // SetServerGroups sets the ServerGroups field's value.
  4859. func (s *UpdateAppOutput) SetServerGroups(v []*ServerGroup) *UpdateAppOutput {
  4860. s.ServerGroups = v
  4861. return s
  4862. }
  4863. // SetTags sets the Tags field's value.
  4864. func (s *UpdateAppOutput) SetTags(v []*Tag) *UpdateAppOutput {
  4865. s.Tags = v
  4866. return s
  4867. }
  4868. type UpdateReplicationJobInput struct {
  4869. _ struct{} `type:"structure"`
  4870. // The description of the replication job.
  4871. Description *string `locationName:"description" type:"string"`
  4872. // When true, the replication job produces encrypted AMIs . See also KmsKeyId
  4873. // below.
  4874. Encrypted *bool `locationName:"encrypted" type:"boolean"`
  4875. // The time between consecutive replication runs, in hours.
  4876. Frequency *int64 `locationName:"frequency" type:"integer"`
  4877. // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
  4878. // the following:
  4879. //
  4880. // KMS key ID
  4881. //
  4882. // * KMS key alias
  4883. //
  4884. // * ARN referring to KMS key ID
  4885. //
  4886. // * ARN referring to KMS key alias
  4887. //
  4888. // If encrypted is true
  4889. KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
  4890. // The license type to be used for the AMI created by a successful replication
  4891. // run.
  4892. LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
  4893. // The start time of the next replication run.
  4894. NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"`
  4895. // The maximum number of SMS-created AMIs to retain. The oldest will be deleted
  4896. // once the maximum number is reached and a new AMI is created.
  4897. NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
  4898. // The identifier of the replication job.
  4899. //
  4900. // ReplicationJobId is a required field
  4901. ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
  4902. // The name of the IAM role to be used by AWS SMS.
  4903. RoleName *string `locationName:"roleName" type:"string"`
  4904. }
  4905. // String returns the string representation
  4906. func (s UpdateReplicationJobInput) String() string {
  4907. return awsutil.Prettify(s)
  4908. }
  4909. // GoString returns the string representation
  4910. func (s UpdateReplicationJobInput) GoString() string {
  4911. return s.String()
  4912. }
  4913. // Validate inspects the fields of the type to determine if they are valid.
  4914. func (s *UpdateReplicationJobInput) Validate() error {
  4915. invalidParams := request.ErrInvalidParams{Context: "UpdateReplicationJobInput"}
  4916. if s.ReplicationJobId == nil {
  4917. invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
  4918. }
  4919. if invalidParams.Len() > 0 {
  4920. return invalidParams
  4921. }
  4922. return nil
  4923. }
  4924. // SetDescription sets the Description field's value.
  4925. func (s *UpdateReplicationJobInput) SetDescription(v string) *UpdateReplicationJobInput {
  4926. s.Description = &v
  4927. return s
  4928. }
  4929. // SetEncrypted sets the Encrypted field's value.
  4930. func (s *UpdateReplicationJobInput) SetEncrypted(v bool) *UpdateReplicationJobInput {
  4931. s.Encrypted = &v
  4932. return s
  4933. }
  4934. // SetFrequency sets the Frequency field's value.
  4935. func (s *UpdateReplicationJobInput) SetFrequency(v int64) *UpdateReplicationJobInput {
  4936. s.Frequency = &v
  4937. return s
  4938. }
  4939. // SetKmsKeyId sets the KmsKeyId field's value.
  4940. func (s *UpdateReplicationJobInput) SetKmsKeyId(v string) *UpdateReplicationJobInput {
  4941. s.KmsKeyId = &v
  4942. return s
  4943. }
  4944. // SetLicenseType sets the LicenseType field's value.
  4945. func (s *UpdateReplicationJobInput) SetLicenseType(v string) *UpdateReplicationJobInput {
  4946. s.LicenseType = &v
  4947. return s
  4948. }
  4949. // SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value.
  4950. func (s *UpdateReplicationJobInput) SetNextReplicationRunStartTime(v time.Time) *UpdateReplicationJobInput {
  4951. s.NextReplicationRunStartTime = &v
  4952. return s
  4953. }
  4954. // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
  4955. func (s *UpdateReplicationJobInput) SetNumberOfRecentAmisToKeep(v int64) *UpdateReplicationJobInput {
  4956. s.NumberOfRecentAmisToKeep = &v
  4957. return s
  4958. }
  4959. // SetReplicationJobId sets the ReplicationJobId field's value.
  4960. func (s *UpdateReplicationJobInput) SetReplicationJobId(v string) *UpdateReplicationJobInput {
  4961. s.ReplicationJobId = &v
  4962. return s
  4963. }
  4964. // SetRoleName sets the RoleName field's value.
  4965. func (s *UpdateReplicationJobInput) SetRoleName(v string) *UpdateReplicationJobInput {
  4966. s.RoleName = &v
  4967. return s
  4968. }
  4969. type UpdateReplicationJobOutput struct {
  4970. _ struct{} `type:"structure"`
  4971. }
  4972. // String returns the string representation
  4973. func (s UpdateReplicationJobOutput) String() string {
  4974. return awsutil.Prettify(s)
  4975. }
  4976. // GoString returns the string representation
  4977. func (s UpdateReplicationJobOutput) GoString() string {
  4978. return s.String()
  4979. }
  4980. // A script that runs on first launch of an Amazon EC2 instance. Used for configuring
  4981. // the server during launch.
  4982. type UserData struct {
  4983. _ struct{} `type:"structure"`
  4984. // Amazon S3 location of the user-data script.
  4985. S3Location *S3Location `locationName:"s3Location" type:"structure"`
  4986. }
  4987. // String returns the string representation
  4988. func (s UserData) String() string {
  4989. return awsutil.Prettify(s)
  4990. }
  4991. // GoString returns the string representation
  4992. func (s UserData) GoString() string {
  4993. return s.String()
  4994. }
  4995. // SetS3Location sets the S3Location field's value.
  4996. func (s *UserData) SetS3Location(v *S3Location) *UserData {
  4997. s.S3Location = v
  4998. return s
  4999. }
  5000. // Represents a VM server.
  5001. type VmServer struct {
  5002. _ struct{} `type:"structure"`
  5003. // The name of the VM manager.
  5004. VmManagerName *string `locationName:"vmManagerName" type:"string"`
  5005. // The type of VM management product.
  5006. VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"`
  5007. // The name of the VM.
  5008. VmName *string `locationName:"vmName" type:"string"`
  5009. // The VM folder path in the vCenter Server virtual machine inventory tree.
  5010. VmPath *string `locationName:"vmPath" type:"string"`
  5011. // Information about the VM server location.
  5012. VmServerAddress *VmServerAddress `locationName:"vmServerAddress" type:"structure"`
  5013. }
  5014. // String returns the string representation
  5015. func (s VmServer) String() string {
  5016. return awsutil.Prettify(s)
  5017. }
  5018. // GoString returns the string representation
  5019. func (s VmServer) GoString() string {
  5020. return s.String()
  5021. }
  5022. // SetVmManagerName sets the VmManagerName field's value.
  5023. func (s *VmServer) SetVmManagerName(v string) *VmServer {
  5024. s.VmManagerName = &v
  5025. return s
  5026. }
  5027. // SetVmManagerType sets the VmManagerType field's value.
  5028. func (s *VmServer) SetVmManagerType(v string) *VmServer {
  5029. s.VmManagerType = &v
  5030. return s
  5031. }
  5032. // SetVmName sets the VmName field's value.
  5033. func (s *VmServer) SetVmName(v string) *VmServer {
  5034. s.VmName = &v
  5035. return s
  5036. }
  5037. // SetVmPath sets the VmPath field's value.
  5038. func (s *VmServer) SetVmPath(v string) *VmServer {
  5039. s.VmPath = &v
  5040. return s
  5041. }
  5042. // SetVmServerAddress sets the VmServerAddress field's value.
  5043. func (s *VmServer) SetVmServerAddress(v *VmServerAddress) *VmServer {
  5044. s.VmServerAddress = v
  5045. return s
  5046. }
  5047. // Represents a VM server location.
  5048. type VmServerAddress struct {
  5049. _ struct{} `type:"structure"`
  5050. // The identifier of the VM.
  5051. VmId *string `locationName:"vmId" type:"string"`
  5052. // The identifier of the VM manager.
  5053. VmManagerId *string `locationName:"vmManagerId" type:"string"`
  5054. }
  5055. // String returns the string representation
  5056. func (s VmServerAddress) String() string {
  5057. return awsutil.Prettify(s)
  5058. }
  5059. // GoString returns the string representation
  5060. func (s VmServerAddress) GoString() string {
  5061. return s.String()
  5062. }
  5063. // SetVmId sets the VmId field's value.
  5064. func (s *VmServerAddress) SetVmId(v string) *VmServerAddress {
  5065. s.VmId = &v
  5066. return s
  5067. }
  5068. // SetVmManagerId sets the VmManagerId field's value.
  5069. func (s *VmServerAddress) SetVmManagerId(v string) *VmServerAddress {
  5070. s.VmManagerId = &v
  5071. return s
  5072. }
  5073. const (
  5074. // AppLaunchStatusReadyForConfiguration is a AppLaunchStatus enum value
  5075. AppLaunchStatusReadyForConfiguration = "READY_FOR_CONFIGURATION"
  5076. // AppLaunchStatusConfigurationInProgress is a AppLaunchStatus enum value
  5077. AppLaunchStatusConfigurationInProgress = "CONFIGURATION_IN_PROGRESS"
  5078. // AppLaunchStatusConfigurationInvalid is a AppLaunchStatus enum value
  5079. AppLaunchStatusConfigurationInvalid = "CONFIGURATION_INVALID"
  5080. // AppLaunchStatusReadyForLaunch is a AppLaunchStatus enum value
  5081. AppLaunchStatusReadyForLaunch = "READY_FOR_LAUNCH"
  5082. // AppLaunchStatusValidationInProgress is a AppLaunchStatus enum value
  5083. AppLaunchStatusValidationInProgress = "VALIDATION_IN_PROGRESS"
  5084. // AppLaunchStatusLaunchPending is a AppLaunchStatus enum value
  5085. AppLaunchStatusLaunchPending = "LAUNCH_PENDING"
  5086. // AppLaunchStatusLaunchInProgress is a AppLaunchStatus enum value
  5087. AppLaunchStatusLaunchInProgress = "LAUNCH_IN_PROGRESS"
  5088. // AppLaunchStatusLaunched is a AppLaunchStatus enum value
  5089. AppLaunchStatusLaunched = "LAUNCHED"
  5090. // AppLaunchStatusDeltaLaunchInProgress is a AppLaunchStatus enum value
  5091. AppLaunchStatusDeltaLaunchInProgress = "DELTA_LAUNCH_IN_PROGRESS"
  5092. // AppLaunchStatusDeltaLaunchFailed is a AppLaunchStatus enum value
  5093. AppLaunchStatusDeltaLaunchFailed = "DELTA_LAUNCH_FAILED"
  5094. // AppLaunchStatusLaunchFailed is a AppLaunchStatus enum value
  5095. AppLaunchStatusLaunchFailed = "LAUNCH_FAILED"
  5096. // AppLaunchStatusTerminateInProgress is a AppLaunchStatus enum value
  5097. AppLaunchStatusTerminateInProgress = "TERMINATE_IN_PROGRESS"
  5098. // AppLaunchStatusTerminateFailed is a AppLaunchStatus enum value
  5099. AppLaunchStatusTerminateFailed = "TERMINATE_FAILED"
  5100. // AppLaunchStatusTerminated is a AppLaunchStatus enum value
  5101. AppLaunchStatusTerminated = "TERMINATED"
  5102. )
  5103. const (
  5104. // AppReplicationStatusReadyForConfiguration is a AppReplicationStatus enum value
  5105. AppReplicationStatusReadyForConfiguration = "READY_FOR_CONFIGURATION"
  5106. // AppReplicationStatusConfigurationInProgress is a AppReplicationStatus enum value
  5107. AppReplicationStatusConfigurationInProgress = "CONFIGURATION_IN_PROGRESS"
  5108. // AppReplicationStatusConfigurationInvalid is a AppReplicationStatus enum value
  5109. AppReplicationStatusConfigurationInvalid = "CONFIGURATION_INVALID"
  5110. // AppReplicationStatusReadyForReplication is a AppReplicationStatus enum value
  5111. AppReplicationStatusReadyForReplication = "READY_FOR_REPLICATION"
  5112. // AppReplicationStatusValidationInProgress is a AppReplicationStatus enum value
  5113. AppReplicationStatusValidationInProgress = "VALIDATION_IN_PROGRESS"
  5114. // AppReplicationStatusReplicationPending is a AppReplicationStatus enum value
  5115. AppReplicationStatusReplicationPending = "REPLICATION_PENDING"
  5116. // AppReplicationStatusReplicationInProgress is a AppReplicationStatus enum value
  5117. AppReplicationStatusReplicationInProgress = "REPLICATION_IN_PROGRESS"
  5118. // AppReplicationStatusReplicated is a AppReplicationStatus enum value
  5119. AppReplicationStatusReplicated = "REPLICATED"
  5120. // AppReplicationStatusDeltaReplicationInProgress is a AppReplicationStatus enum value
  5121. AppReplicationStatusDeltaReplicationInProgress = "DELTA_REPLICATION_IN_PROGRESS"
  5122. // AppReplicationStatusDeltaReplicated is a AppReplicationStatus enum value
  5123. AppReplicationStatusDeltaReplicated = "DELTA_REPLICATED"
  5124. // AppReplicationStatusDeltaReplicationFailed is a AppReplicationStatus enum value
  5125. AppReplicationStatusDeltaReplicationFailed = "DELTA_REPLICATION_FAILED"
  5126. // AppReplicationStatusReplicationFailed is a AppReplicationStatus enum value
  5127. AppReplicationStatusReplicationFailed = "REPLICATION_FAILED"
  5128. // AppReplicationStatusReplicationStopping is a AppReplicationStatus enum value
  5129. AppReplicationStatusReplicationStopping = "REPLICATION_STOPPING"
  5130. // AppReplicationStatusReplicationStopFailed is a AppReplicationStatus enum value
  5131. AppReplicationStatusReplicationStopFailed = "REPLICATION_STOP_FAILED"
  5132. // AppReplicationStatusReplicationStopped is a AppReplicationStatus enum value
  5133. AppReplicationStatusReplicationStopped = "REPLICATION_STOPPED"
  5134. )
  5135. const (
  5136. // AppStatusCreating is a AppStatus enum value
  5137. AppStatusCreating = "CREATING"
  5138. // AppStatusActive is a AppStatus enum value
  5139. AppStatusActive = "ACTIVE"
  5140. // AppStatusUpdating is a AppStatus enum value
  5141. AppStatusUpdating = "UPDATING"
  5142. // AppStatusDeleting is a AppStatus enum value
  5143. AppStatusDeleting = "DELETING"
  5144. // AppStatusDeleted is a AppStatus enum value
  5145. AppStatusDeleted = "DELETED"
  5146. // AppStatusDeleteFailed is a AppStatus enum value
  5147. AppStatusDeleteFailed = "DELETE_FAILED"
  5148. )
  5149. const (
  5150. // ConnectorCapabilityVsphere is a ConnectorCapability enum value
  5151. ConnectorCapabilityVsphere = "VSPHERE"
  5152. // ConnectorCapabilityScvmm is a ConnectorCapability enum value
  5153. ConnectorCapabilityScvmm = "SCVMM"
  5154. // ConnectorCapabilityHypervManager is a ConnectorCapability enum value
  5155. ConnectorCapabilityHypervManager = "HYPERV-MANAGER"
  5156. // ConnectorCapabilitySnapshotBatching is a ConnectorCapability enum value
  5157. ConnectorCapabilitySnapshotBatching = "SNAPSHOT_BATCHING"
  5158. )
  5159. const (
  5160. // ConnectorStatusHealthy is a ConnectorStatus enum value
  5161. ConnectorStatusHealthy = "HEALTHY"
  5162. // ConnectorStatusUnhealthy is a ConnectorStatus enum value
  5163. ConnectorStatusUnhealthy = "UNHEALTHY"
  5164. )
  5165. const (
  5166. // LicenseTypeAws is a LicenseType enum value
  5167. LicenseTypeAws = "AWS"
  5168. // LicenseTypeByol is a LicenseType enum value
  5169. LicenseTypeByol = "BYOL"
  5170. )
  5171. const (
  5172. // OutputFormatJson is a OutputFormat enum value
  5173. OutputFormatJson = "JSON"
  5174. // OutputFormatYaml is a OutputFormat enum value
  5175. OutputFormatYaml = "YAML"
  5176. )
  5177. const (
  5178. // ReplicationJobStatePending is a ReplicationJobState enum value
  5179. ReplicationJobStatePending = "PENDING"
  5180. // ReplicationJobStateActive is a ReplicationJobState enum value
  5181. ReplicationJobStateActive = "ACTIVE"
  5182. // ReplicationJobStateFailed is a ReplicationJobState enum value
  5183. ReplicationJobStateFailed = "FAILED"
  5184. // ReplicationJobStateDeleting is a ReplicationJobState enum value
  5185. ReplicationJobStateDeleting = "DELETING"
  5186. // ReplicationJobStateDeleted is a ReplicationJobState enum value
  5187. ReplicationJobStateDeleted = "DELETED"
  5188. // ReplicationJobStateCompleted is a ReplicationJobState enum value
  5189. ReplicationJobStateCompleted = "COMPLETED"
  5190. // ReplicationJobStatePausedOnFailure is a ReplicationJobState enum value
  5191. ReplicationJobStatePausedOnFailure = "PAUSED_ON_FAILURE"
  5192. // ReplicationJobStateFailing is a ReplicationJobState enum value
  5193. ReplicationJobStateFailing = "FAILING"
  5194. )
  5195. const (
  5196. // ReplicationRunStatePending is a ReplicationRunState enum value
  5197. ReplicationRunStatePending = "PENDING"
  5198. // ReplicationRunStateMissed is a ReplicationRunState enum value
  5199. ReplicationRunStateMissed = "MISSED"
  5200. // ReplicationRunStateActive is a ReplicationRunState enum value
  5201. ReplicationRunStateActive = "ACTIVE"
  5202. // ReplicationRunStateFailed is a ReplicationRunState enum value
  5203. ReplicationRunStateFailed = "FAILED"
  5204. // ReplicationRunStateCompleted is a ReplicationRunState enum value
  5205. ReplicationRunStateCompleted = "COMPLETED"
  5206. // ReplicationRunStateDeleting is a ReplicationRunState enum value
  5207. ReplicationRunStateDeleting = "DELETING"
  5208. // ReplicationRunStateDeleted is a ReplicationRunState enum value
  5209. ReplicationRunStateDeleted = "DELETED"
  5210. )
  5211. const (
  5212. // ReplicationRunTypeOnDemand is a ReplicationRunType enum value
  5213. ReplicationRunTypeOnDemand = "ON_DEMAND"
  5214. // ReplicationRunTypeAutomatic is a ReplicationRunType enum value
  5215. ReplicationRunTypeAutomatic = "AUTOMATIC"
  5216. )
  5217. const (
  5218. // ServerCatalogStatusNotImported is a ServerCatalogStatus enum value
  5219. ServerCatalogStatusNotImported = "NOT_IMPORTED"
  5220. // ServerCatalogStatusImporting is a ServerCatalogStatus enum value
  5221. ServerCatalogStatusImporting = "IMPORTING"
  5222. // ServerCatalogStatusAvailable is a ServerCatalogStatus enum value
  5223. ServerCatalogStatusAvailable = "AVAILABLE"
  5224. // ServerCatalogStatusDeleted is a ServerCatalogStatus enum value
  5225. ServerCatalogStatusDeleted = "DELETED"
  5226. // ServerCatalogStatusExpired is a ServerCatalogStatus enum value
  5227. ServerCatalogStatusExpired = "EXPIRED"
  5228. )
  5229. const (
  5230. // ServerTypeVirtualMachine is a ServerType enum value
  5231. ServerTypeVirtualMachine = "VIRTUAL_MACHINE"
  5232. )
  5233. const (
  5234. // VmManagerTypeVsphere is a VmManagerType enum value
  5235. VmManagerTypeVsphere = "VSPHERE"
  5236. // VmManagerTypeScvmm is a VmManagerType enum value
  5237. VmManagerTypeScvmm = "SCVMM"
  5238. // VmManagerTypeHypervManager is a VmManagerType enum value
  5239. VmManagerTypeHypervManager = "HYPERV-MANAGER"
  5240. )