| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package sms
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
- )
- const opCreateApp = "CreateApp"
- // CreateAppRequest generates a "aws/request.Request" representing the
- // client's request for the CreateApp operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateApp for more information on using the CreateApp
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateAppRequest method.
- // req, resp := client.CreateAppRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp
- func (c *SMS) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
- op := &request.Operation{
- Name: opCreateApp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateAppInput{}
- }
- output = &CreateAppOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateApp API operation for AWS Server Migration Service.
- //
- // Creates an application. An application consists of one or more server groups.
- // Each server group contain one or more servers.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation CreateApp for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateApp
- func (c *SMS) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
- req, out := c.CreateAppRequest(input)
- return out, req.Send()
- }
- // CreateAppWithContext is the same as CreateApp with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateApp for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) {
- req, out := c.CreateAppRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opCreateReplicationJob = "CreateReplicationJob"
- // CreateReplicationJobRequest generates a "aws/request.Request" representing the
- // client's request for the CreateReplicationJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See CreateReplicationJob for more information on using the CreateReplicationJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the CreateReplicationJobRequest method.
- // req, resp := client.CreateReplicationJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob
- func (c *SMS) CreateReplicationJobRequest(input *CreateReplicationJobInput) (req *request.Request, output *CreateReplicationJobOutput) {
- op := &request.Operation{
- Name: opCreateReplicationJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateReplicationJobInput{}
- }
- output = &CreateReplicationJobOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // CreateReplicationJob API operation for AWS Server Migration Service.
- //
- // Creates a replication job. The replication job schedules periodic replication
- // runs to replicate your server to AWS. Each replication run creates an Amazon
- // Machine Image (AMI).
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation CreateReplicationJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException"
- // The specified server cannot be replicated.
- //
- // * ErrCodeReplicationJobAlreadyExistsException "ReplicationJobAlreadyExistsException"
- // The specified replication job already exists.
- //
- // * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException"
- // There are no connectors available.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException"
- // The service is temporarily unavailable.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/CreateReplicationJob
- func (c *SMS) CreateReplicationJob(input *CreateReplicationJobInput) (*CreateReplicationJobOutput, error) {
- req, out := c.CreateReplicationJobRequest(input)
- return out, req.Send()
- }
- // CreateReplicationJobWithContext is the same as CreateReplicationJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See CreateReplicationJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) CreateReplicationJobWithContext(ctx aws.Context, input *CreateReplicationJobInput, opts ...request.Option) (*CreateReplicationJobOutput, error) {
- req, out := c.CreateReplicationJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteApp = "DeleteApp"
- // DeleteAppRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteApp operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteApp for more information on using the DeleteApp
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteAppRequest method.
- // req, resp := client.DeleteAppRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp
- func (c *SMS) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
- op := &request.Operation{
- Name: opDeleteApp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteAppInput{}
- }
- output = &DeleteAppOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteApp API operation for AWS Server Migration Service.
- //
- // Deletes an existing application. Optionally deletes the launched stack associated
- // with the application and all AWS SMS replication jobs for servers in the
- // application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation DeleteApp for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteApp
- func (c *SMS) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
- req, out := c.DeleteAppRequest(input)
- return out, req.Send()
- }
- // DeleteAppWithContext is the same as DeleteApp with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteApp for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) {
- req, out := c.DeleteAppRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteAppLaunchConfiguration = "DeleteAppLaunchConfiguration"
- // DeleteAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAppLaunchConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteAppLaunchConfiguration for more information on using the DeleteAppLaunchConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteAppLaunchConfigurationRequest method.
- // req, resp := client.DeleteAppLaunchConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration
- func (c *SMS) DeleteAppLaunchConfigurationRequest(input *DeleteAppLaunchConfigurationInput) (req *request.Request, output *DeleteAppLaunchConfigurationOutput) {
- op := &request.Operation{
- Name: opDeleteAppLaunchConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteAppLaunchConfigurationInput{}
- }
- output = &DeleteAppLaunchConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteAppLaunchConfiguration API operation for AWS Server Migration Service.
- //
- // Deletes existing launch configuration for an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation DeleteAppLaunchConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppLaunchConfiguration
- func (c *SMS) DeleteAppLaunchConfiguration(input *DeleteAppLaunchConfigurationInput) (*DeleteAppLaunchConfigurationOutput, error) {
- req, out := c.DeleteAppLaunchConfigurationRequest(input)
- return out, req.Send()
- }
- // DeleteAppLaunchConfigurationWithContext is the same as DeleteAppLaunchConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteAppLaunchConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) DeleteAppLaunchConfigurationWithContext(ctx aws.Context, input *DeleteAppLaunchConfigurationInput, opts ...request.Option) (*DeleteAppLaunchConfigurationOutput, error) {
- req, out := c.DeleteAppLaunchConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteAppReplicationConfiguration = "DeleteAppReplicationConfiguration"
- // DeleteAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAppReplicationConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteAppReplicationConfiguration for more information on using the DeleteAppReplicationConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteAppReplicationConfigurationRequest method.
- // req, resp := client.DeleteAppReplicationConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration
- func (c *SMS) DeleteAppReplicationConfigurationRequest(input *DeleteAppReplicationConfigurationInput) (req *request.Request, output *DeleteAppReplicationConfigurationOutput) {
- op := &request.Operation{
- Name: opDeleteAppReplicationConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteAppReplicationConfigurationInput{}
- }
- output = &DeleteAppReplicationConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteAppReplicationConfiguration API operation for AWS Server Migration Service.
- //
- // Deletes existing replication configuration for an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation DeleteAppReplicationConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteAppReplicationConfiguration
- func (c *SMS) DeleteAppReplicationConfiguration(input *DeleteAppReplicationConfigurationInput) (*DeleteAppReplicationConfigurationOutput, error) {
- req, out := c.DeleteAppReplicationConfigurationRequest(input)
- return out, req.Send()
- }
- // DeleteAppReplicationConfigurationWithContext is the same as DeleteAppReplicationConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteAppReplicationConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) DeleteAppReplicationConfigurationWithContext(ctx aws.Context, input *DeleteAppReplicationConfigurationInput, opts ...request.Option) (*DeleteAppReplicationConfigurationOutput, error) {
- req, out := c.DeleteAppReplicationConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteReplicationJob = "DeleteReplicationJob"
- // DeleteReplicationJobRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteReplicationJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteReplicationJob for more information on using the DeleteReplicationJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteReplicationJobRequest method.
- // req, resp := client.DeleteReplicationJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob
- func (c *SMS) DeleteReplicationJobRequest(input *DeleteReplicationJobInput) (req *request.Request, output *DeleteReplicationJobOutput) {
- op := &request.Operation{
- Name: opDeleteReplicationJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteReplicationJobInput{}
- }
- output = &DeleteReplicationJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteReplicationJob API operation for AWS Server Migration Service.
- //
- // Deletes the specified replication job.
- //
- // After you delete a replication job, there are no further replication runs.
- // AWS deletes the contents of the Amazon S3 bucket used to store AWS SMS artifacts.
- // The AMIs created by the replication runs are not deleted.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation DeleteReplicationJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException"
- // The specified replication job does not exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteReplicationJob
- func (c *SMS) DeleteReplicationJob(input *DeleteReplicationJobInput) (*DeleteReplicationJobOutput, error) {
- req, out := c.DeleteReplicationJobRequest(input)
- return out, req.Send()
- }
- // DeleteReplicationJobWithContext is the same as DeleteReplicationJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteReplicationJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) DeleteReplicationJobWithContext(ctx aws.Context, input *DeleteReplicationJobInput, opts ...request.Option) (*DeleteReplicationJobOutput, error) {
- req, out := c.DeleteReplicationJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDeleteServerCatalog = "DeleteServerCatalog"
- // DeleteServerCatalogRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteServerCatalog operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DeleteServerCatalog for more information on using the DeleteServerCatalog
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DeleteServerCatalogRequest method.
- // req, resp := client.DeleteServerCatalogRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog
- func (c *SMS) DeleteServerCatalogRequest(input *DeleteServerCatalogInput) (req *request.Request, output *DeleteServerCatalogOutput) {
- op := &request.Operation{
- Name: opDeleteServerCatalog,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteServerCatalogInput{}
- }
- output = &DeleteServerCatalogOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DeleteServerCatalog API operation for AWS Server Migration Service.
- //
- // Deletes all servers from your server catalog.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation DeleteServerCatalog for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DeleteServerCatalog
- func (c *SMS) DeleteServerCatalog(input *DeleteServerCatalogInput) (*DeleteServerCatalogOutput, error) {
- req, out := c.DeleteServerCatalogRequest(input)
- return out, req.Send()
- }
- // DeleteServerCatalogWithContext is the same as DeleteServerCatalog with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DeleteServerCatalog for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) DeleteServerCatalogWithContext(ctx aws.Context, input *DeleteServerCatalogInput, opts ...request.Option) (*DeleteServerCatalogOutput, error) {
- req, out := c.DeleteServerCatalogRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opDisassociateConnector = "DisassociateConnector"
- // DisassociateConnectorRequest generates a "aws/request.Request" representing the
- // client's request for the DisassociateConnector operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See DisassociateConnector for more information on using the DisassociateConnector
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the DisassociateConnectorRequest method.
- // req, resp := client.DisassociateConnectorRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector
- func (c *SMS) DisassociateConnectorRequest(input *DisassociateConnectorInput) (req *request.Request, output *DisassociateConnectorOutput) {
- op := &request.Operation{
- Name: opDisassociateConnector,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DisassociateConnectorInput{}
- }
- output = &DisassociateConnectorOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // DisassociateConnector API operation for AWS Server Migration Service.
- //
- // Disassociates the specified connector from AWS SMS.
- //
- // After you disassociate a connector, it is no longer available to support
- // replication jobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation DisassociateConnector for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/DisassociateConnector
- func (c *SMS) DisassociateConnector(input *DisassociateConnectorInput) (*DisassociateConnectorOutput, error) {
- req, out := c.DisassociateConnectorRequest(input)
- return out, req.Send()
- }
- // DisassociateConnectorWithContext is the same as DisassociateConnector with the addition of
- // the ability to pass a context and additional request options.
- //
- // See DisassociateConnector for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) DisassociateConnectorWithContext(ctx aws.Context, input *DisassociateConnectorInput, opts ...request.Option) (*DisassociateConnectorOutput, error) {
- req, out := c.DisassociateConnectorRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGenerateChangeSet = "GenerateChangeSet"
- // GenerateChangeSetRequest generates a "aws/request.Request" representing the
- // client's request for the GenerateChangeSet operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GenerateChangeSet for more information on using the GenerateChangeSet
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GenerateChangeSetRequest method.
- // req, resp := client.GenerateChangeSetRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet
- func (c *SMS) GenerateChangeSetRequest(input *GenerateChangeSetInput) (req *request.Request, output *GenerateChangeSetOutput) {
- op := &request.Operation{
- Name: opGenerateChangeSet,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GenerateChangeSetInput{}
- }
- output = &GenerateChangeSetOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GenerateChangeSet API operation for AWS Server Migration Service.
- //
- // Generates a target change set for a currently launched stack and writes it
- // to an Amazon S3 object in the customer’s Amazon S3 bucket.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GenerateChangeSet for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateChangeSet
- func (c *SMS) GenerateChangeSet(input *GenerateChangeSetInput) (*GenerateChangeSetOutput, error) {
- req, out := c.GenerateChangeSetRequest(input)
- return out, req.Send()
- }
- // GenerateChangeSetWithContext is the same as GenerateChangeSet with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GenerateChangeSet for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GenerateChangeSetWithContext(ctx aws.Context, input *GenerateChangeSetInput, opts ...request.Option) (*GenerateChangeSetOutput, error) {
- req, out := c.GenerateChangeSetRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGenerateTemplate = "GenerateTemplate"
- // GenerateTemplateRequest generates a "aws/request.Request" representing the
- // client's request for the GenerateTemplate operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GenerateTemplate for more information on using the GenerateTemplate
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GenerateTemplateRequest method.
- // req, resp := client.GenerateTemplateRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate
- func (c *SMS) GenerateTemplateRequest(input *GenerateTemplateInput) (req *request.Request, output *GenerateTemplateOutput) {
- op := &request.Operation{
- Name: opGenerateTemplate,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GenerateTemplateInput{}
- }
- output = &GenerateTemplateOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GenerateTemplate API operation for AWS Server Migration Service.
- //
- // Generates an Amazon CloudFormation template based on the current launch configuration
- // and writes it to an Amazon S3 object in the customer’s Amazon S3 bucket.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GenerateTemplate for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GenerateTemplate
- func (c *SMS) GenerateTemplate(input *GenerateTemplateInput) (*GenerateTemplateOutput, error) {
- req, out := c.GenerateTemplateRequest(input)
- return out, req.Send()
- }
- // GenerateTemplateWithContext is the same as GenerateTemplate with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GenerateTemplate for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GenerateTemplateWithContext(ctx aws.Context, input *GenerateTemplateInput, opts ...request.Option) (*GenerateTemplateOutput, error) {
- req, out := c.GenerateTemplateRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetApp = "GetApp"
- // GetAppRequest generates a "aws/request.Request" representing the
- // client's request for the GetApp operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetApp for more information on using the GetApp
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetAppRequest method.
- // req, resp := client.GetAppRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp
- func (c *SMS) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) {
- op := &request.Operation{
- Name: opGetApp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetAppInput{}
- }
- output = &GetAppOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetApp API operation for AWS Server Migration Service.
- //
- // Retrieve information about an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GetApp for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetApp
- func (c *SMS) GetApp(input *GetAppInput) (*GetAppOutput, error) {
- req, out := c.GetAppRequest(input)
- return out, req.Send()
- }
- // GetAppWithContext is the same as GetApp with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetApp for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) {
- req, out := c.GetAppRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetAppLaunchConfiguration = "GetAppLaunchConfiguration"
- // GetAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the GetAppLaunchConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetAppLaunchConfiguration for more information on using the GetAppLaunchConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetAppLaunchConfigurationRequest method.
- // req, resp := client.GetAppLaunchConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration
- func (c *SMS) GetAppLaunchConfigurationRequest(input *GetAppLaunchConfigurationInput) (req *request.Request, output *GetAppLaunchConfigurationOutput) {
- op := &request.Operation{
- Name: opGetAppLaunchConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetAppLaunchConfigurationInput{}
- }
- output = &GetAppLaunchConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetAppLaunchConfiguration API operation for AWS Server Migration Service.
- //
- // Retrieves the application launch configuration associated with an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GetAppLaunchConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppLaunchConfiguration
- func (c *SMS) GetAppLaunchConfiguration(input *GetAppLaunchConfigurationInput) (*GetAppLaunchConfigurationOutput, error) {
- req, out := c.GetAppLaunchConfigurationRequest(input)
- return out, req.Send()
- }
- // GetAppLaunchConfigurationWithContext is the same as GetAppLaunchConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetAppLaunchConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetAppLaunchConfigurationWithContext(ctx aws.Context, input *GetAppLaunchConfigurationInput, opts ...request.Option) (*GetAppLaunchConfigurationOutput, error) {
- req, out := c.GetAppLaunchConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetAppReplicationConfiguration = "GetAppReplicationConfiguration"
- // GetAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the GetAppReplicationConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetAppReplicationConfiguration for more information on using the GetAppReplicationConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetAppReplicationConfigurationRequest method.
- // req, resp := client.GetAppReplicationConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration
- func (c *SMS) GetAppReplicationConfigurationRequest(input *GetAppReplicationConfigurationInput) (req *request.Request, output *GetAppReplicationConfigurationOutput) {
- op := &request.Operation{
- Name: opGetAppReplicationConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &GetAppReplicationConfigurationInput{}
- }
- output = &GetAppReplicationConfigurationOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetAppReplicationConfiguration API operation for AWS Server Migration Service.
- //
- // Retrieves an application replication configuration associatd with an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GetAppReplicationConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetAppReplicationConfiguration
- func (c *SMS) GetAppReplicationConfiguration(input *GetAppReplicationConfigurationInput) (*GetAppReplicationConfigurationOutput, error) {
- req, out := c.GetAppReplicationConfigurationRequest(input)
- return out, req.Send()
- }
- // GetAppReplicationConfigurationWithContext is the same as GetAppReplicationConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetAppReplicationConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetAppReplicationConfigurationWithContext(ctx aws.Context, input *GetAppReplicationConfigurationInput, opts ...request.Option) (*GetAppReplicationConfigurationOutput, error) {
- req, out := c.GetAppReplicationConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opGetConnectors = "GetConnectors"
- // GetConnectorsRequest generates a "aws/request.Request" representing the
- // client's request for the GetConnectors operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetConnectors for more information on using the GetConnectors
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetConnectorsRequest method.
- // req, resp := client.GetConnectorsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors
- func (c *SMS) GetConnectorsRequest(input *GetConnectorsInput) (req *request.Request, output *GetConnectorsOutput) {
- op := &request.Operation{
- Name: opGetConnectors,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetConnectorsInput{}
- }
- output = &GetConnectorsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetConnectors API operation for AWS Server Migration Service.
- //
- // Describes the connectors registered with the AWS SMS.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GetConnectors for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetConnectors
- func (c *SMS) GetConnectors(input *GetConnectorsInput) (*GetConnectorsOutput, error) {
- req, out := c.GetConnectorsRequest(input)
- return out, req.Send()
- }
- // GetConnectorsWithContext is the same as GetConnectors with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetConnectors for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetConnectorsWithContext(ctx aws.Context, input *GetConnectorsInput, opts ...request.Option) (*GetConnectorsOutput, error) {
- req, out := c.GetConnectorsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetConnectorsPages iterates over the pages of a GetConnectors operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetConnectors method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetConnectors operation.
- // pageNum := 0
- // err := client.GetConnectorsPages(params,
- // func(page *GetConnectorsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SMS) GetConnectorsPages(input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool) error {
- return c.GetConnectorsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetConnectorsPagesWithContext same as GetConnectorsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetConnectorsPagesWithContext(ctx aws.Context, input *GetConnectorsInput, fn func(*GetConnectorsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetConnectorsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetConnectorsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetConnectorsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetReplicationJobs = "GetReplicationJobs"
- // GetReplicationJobsRequest generates a "aws/request.Request" representing the
- // client's request for the GetReplicationJobs operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetReplicationJobs for more information on using the GetReplicationJobs
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetReplicationJobsRequest method.
- // req, resp := client.GetReplicationJobsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs
- func (c *SMS) GetReplicationJobsRequest(input *GetReplicationJobsInput) (req *request.Request, output *GetReplicationJobsOutput) {
- op := &request.Operation{
- Name: opGetReplicationJobs,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetReplicationJobsInput{}
- }
- output = &GetReplicationJobsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetReplicationJobs API operation for AWS Server Migration Service.
- //
- // Describes the specified replication job or all of your replication jobs.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GetReplicationJobs for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationJobs
- func (c *SMS) GetReplicationJobs(input *GetReplicationJobsInput) (*GetReplicationJobsOutput, error) {
- req, out := c.GetReplicationJobsRequest(input)
- return out, req.Send()
- }
- // GetReplicationJobsWithContext is the same as GetReplicationJobs with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetReplicationJobs for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetReplicationJobsWithContext(ctx aws.Context, input *GetReplicationJobsInput, opts ...request.Option) (*GetReplicationJobsOutput, error) {
- req, out := c.GetReplicationJobsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetReplicationJobsPages iterates over the pages of a GetReplicationJobs operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetReplicationJobs method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetReplicationJobs operation.
- // pageNum := 0
- // err := client.GetReplicationJobsPages(params,
- // func(page *GetReplicationJobsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SMS) GetReplicationJobsPages(input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool) error {
- return c.GetReplicationJobsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetReplicationJobsPagesWithContext same as GetReplicationJobsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetReplicationJobsPagesWithContext(ctx aws.Context, input *GetReplicationJobsInput, fn func(*GetReplicationJobsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetReplicationJobsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetReplicationJobsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetReplicationJobsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetReplicationRuns = "GetReplicationRuns"
- // GetReplicationRunsRequest generates a "aws/request.Request" representing the
- // client's request for the GetReplicationRuns operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetReplicationRuns for more information on using the GetReplicationRuns
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetReplicationRunsRequest method.
- // req, resp := client.GetReplicationRunsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns
- func (c *SMS) GetReplicationRunsRequest(input *GetReplicationRunsInput) (req *request.Request, output *GetReplicationRunsOutput) {
- op := &request.Operation{
- Name: opGetReplicationRuns,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetReplicationRunsInput{}
- }
- output = &GetReplicationRunsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetReplicationRuns API operation for AWS Server Migration Service.
- //
- // Describes the replication runs for the specified replication job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GetReplicationRuns for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetReplicationRuns
- func (c *SMS) GetReplicationRuns(input *GetReplicationRunsInput) (*GetReplicationRunsOutput, error) {
- req, out := c.GetReplicationRunsRequest(input)
- return out, req.Send()
- }
- // GetReplicationRunsWithContext is the same as GetReplicationRuns with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetReplicationRuns for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetReplicationRunsWithContext(ctx aws.Context, input *GetReplicationRunsInput, opts ...request.Option) (*GetReplicationRunsOutput, error) {
- req, out := c.GetReplicationRunsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetReplicationRunsPages iterates over the pages of a GetReplicationRuns operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetReplicationRuns method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetReplicationRuns operation.
- // pageNum := 0
- // err := client.GetReplicationRunsPages(params,
- // func(page *GetReplicationRunsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SMS) GetReplicationRunsPages(input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool) error {
- return c.GetReplicationRunsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetReplicationRunsPagesWithContext same as GetReplicationRunsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetReplicationRunsPagesWithContext(ctx aws.Context, input *GetReplicationRunsInput, fn func(*GetReplicationRunsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetReplicationRunsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetReplicationRunsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetReplicationRunsOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opGetServers = "GetServers"
- // GetServersRequest generates a "aws/request.Request" representing the
- // client's request for the GetServers operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetServers for more information on using the GetServers
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the GetServersRequest method.
- // req, resp := client.GetServersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers
- func (c *SMS) GetServersRequest(input *GetServersInput) (req *request.Request, output *GetServersOutput) {
- op := &request.Operation{
- Name: opGetServers,
- HTTPMethod: "POST",
- HTTPPath: "/",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &GetServersInput{}
- }
- output = &GetServersOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // GetServers API operation for AWS Server Migration Service.
- //
- // Describes the servers in your server catalog.
- //
- // Before you can describe your servers, you must import them using ImportServerCatalog.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation GetServers for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/GetServers
- func (c *SMS) GetServers(input *GetServersInput) (*GetServersOutput, error) {
- req, out := c.GetServersRequest(input)
- return out, req.Send()
- }
- // GetServersWithContext is the same as GetServers with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetServers for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetServersWithContext(ctx aws.Context, input *GetServersInput, opts ...request.Option) (*GetServersOutput, error) {
- req, out := c.GetServersRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // GetServersPages iterates over the pages of a GetServers operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See GetServers method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a GetServers operation.
- // pageNum := 0
- // err := client.GetServersPages(params,
- // func(page *GetServersOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- //
- func (c *SMS) GetServersPages(input *GetServersInput, fn func(*GetServersOutput, bool) bool) error {
- return c.GetServersPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // GetServersPagesWithContext same as GetServersPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) GetServersPagesWithContext(ctx aws.Context, input *GetServersInput, fn func(*GetServersOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *GetServersInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.GetServersRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- cont := true
- for p.Next() && cont {
- cont = fn(p.Page().(*GetServersOutput), !p.HasNextPage())
- }
- return p.Err()
- }
- const opImportServerCatalog = "ImportServerCatalog"
- // ImportServerCatalogRequest generates a "aws/request.Request" representing the
- // client's request for the ImportServerCatalog operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ImportServerCatalog for more information on using the ImportServerCatalog
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ImportServerCatalogRequest method.
- // req, resp := client.ImportServerCatalogRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog
- func (c *SMS) ImportServerCatalogRequest(input *ImportServerCatalogInput) (req *request.Request, output *ImportServerCatalogOutput) {
- op := &request.Operation{
- Name: opImportServerCatalog,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ImportServerCatalogInput{}
- }
- output = &ImportServerCatalogOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // ImportServerCatalog API operation for AWS Server Migration Service.
- //
- // Gathers a complete list of on-premises servers. Connectors must be installed
- // and monitoring all servers that you want to import.
- //
- // This call returns immediately, but might take additional time to retrieve
- // all the servers.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation ImportServerCatalog for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeNoConnectorsAvailableException "NoConnectorsAvailableException"
- // There are no connectors available.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ImportServerCatalog
- func (c *SMS) ImportServerCatalog(input *ImportServerCatalogInput) (*ImportServerCatalogOutput, error) {
- req, out := c.ImportServerCatalogRequest(input)
- return out, req.Send()
- }
- // ImportServerCatalogWithContext is the same as ImportServerCatalog with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ImportServerCatalog for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) ImportServerCatalogWithContext(ctx aws.Context, input *ImportServerCatalogInput, opts ...request.Option) (*ImportServerCatalogOutput, error) {
- req, out := c.ImportServerCatalogRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opLaunchApp = "LaunchApp"
- // LaunchAppRequest generates a "aws/request.Request" representing the
- // client's request for the LaunchApp operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See LaunchApp for more information on using the LaunchApp
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the LaunchAppRequest method.
- // req, resp := client.LaunchAppRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp
- func (c *SMS) LaunchAppRequest(input *LaunchAppInput) (req *request.Request, output *LaunchAppOutput) {
- op := &request.Operation{
- Name: opLaunchApp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &LaunchAppInput{}
- }
- output = &LaunchAppOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // LaunchApp API operation for AWS Server Migration Service.
- //
- // Launches an application stack.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation LaunchApp for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/LaunchApp
- func (c *SMS) LaunchApp(input *LaunchAppInput) (*LaunchAppOutput, error) {
- req, out := c.LaunchAppRequest(input)
- return out, req.Send()
- }
- // LaunchAppWithContext is the same as LaunchApp with the addition of
- // the ability to pass a context and additional request options.
- //
- // See LaunchApp for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) LaunchAppWithContext(ctx aws.Context, input *LaunchAppInput, opts ...request.Option) (*LaunchAppOutput, error) {
- req, out := c.LaunchAppRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListApps = "ListApps"
- // ListAppsRequest generates a "aws/request.Request" representing the
- // client's request for the ListApps operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListApps for more information on using the ListApps
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the ListAppsRequest method.
- // req, resp := client.ListAppsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps
- func (c *SMS) ListAppsRequest(input *ListAppsInput) (req *request.Request, output *ListAppsOutput) {
- op := &request.Operation{
- Name: opListApps,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListAppsInput{}
- }
- output = &ListAppsOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // ListApps API operation for AWS Server Migration Service.
- //
- // Returns a list of summaries for all applications.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation ListApps for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/ListApps
- func (c *SMS) ListApps(input *ListAppsInput) (*ListAppsOutput, error) {
- req, out := c.ListAppsRequest(input)
- return out, req.Send()
- }
- // ListAppsWithContext is the same as ListApps with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListApps for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) ListAppsWithContext(ctx aws.Context, input *ListAppsInput, opts ...request.Option) (*ListAppsOutput, error) {
- req, out := c.ListAppsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutAppLaunchConfiguration = "PutAppLaunchConfiguration"
- // PutAppLaunchConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the PutAppLaunchConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutAppLaunchConfiguration for more information on using the PutAppLaunchConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutAppLaunchConfigurationRequest method.
- // req, resp := client.PutAppLaunchConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration
- func (c *SMS) PutAppLaunchConfigurationRequest(input *PutAppLaunchConfigurationInput) (req *request.Request, output *PutAppLaunchConfigurationOutput) {
- op := &request.Operation{
- Name: opPutAppLaunchConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutAppLaunchConfigurationInput{}
- }
- output = &PutAppLaunchConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // PutAppLaunchConfiguration API operation for AWS Server Migration Service.
- //
- // Creates a launch configuration for an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation PutAppLaunchConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppLaunchConfiguration
- func (c *SMS) PutAppLaunchConfiguration(input *PutAppLaunchConfigurationInput) (*PutAppLaunchConfigurationOutput, error) {
- req, out := c.PutAppLaunchConfigurationRequest(input)
- return out, req.Send()
- }
- // PutAppLaunchConfigurationWithContext is the same as PutAppLaunchConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutAppLaunchConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) PutAppLaunchConfigurationWithContext(ctx aws.Context, input *PutAppLaunchConfigurationInput, opts ...request.Option) (*PutAppLaunchConfigurationOutput, error) {
- req, out := c.PutAppLaunchConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opPutAppReplicationConfiguration = "PutAppReplicationConfiguration"
- // PutAppReplicationConfigurationRequest generates a "aws/request.Request" representing the
- // client's request for the PutAppReplicationConfiguration operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See PutAppReplicationConfiguration for more information on using the PutAppReplicationConfiguration
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the PutAppReplicationConfigurationRequest method.
- // req, resp := client.PutAppReplicationConfigurationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration
- func (c *SMS) PutAppReplicationConfigurationRequest(input *PutAppReplicationConfigurationInput) (req *request.Request, output *PutAppReplicationConfigurationOutput) {
- op := &request.Operation{
- Name: opPutAppReplicationConfiguration,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &PutAppReplicationConfigurationInput{}
- }
- output = &PutAppReplicationConfigurationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // PutAppReplicationConfiguration API operation for AWS Server Migration Service.
- //
- // Creates or updates a replication configuration for an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation PutAppReplicationConfiguration for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/PutAppReplicationConfiguration
- func (c *SMS) PutAppReplicationConfiguration(input *PutAppReplicationConfigurationInput) (*PutAppReplicationConfigurationOutput, error) {
- req, out := c.PutAppReplicationConfigurationRequest(input)
- return out, req.Send()
- }
- // PutAppReplicationConfigurationWithContext is the same as PutAppReplicationConfiguration with the addition of
- // the ability to pass a context and additional request options.
- //
- // See PutAppReplicationConfiguration for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) PutAppReplicationConfigurationWithContext(ctx aws.Context, input *PutAppReplicationConfigurationInput, opts ...request.Option) (*PutAppReplicationConfigurationOutput, error) {
- req, out := c.PutAppReplicationConfigurationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartAppReplication = "StartAppReplication"
- // StartAppReplicationRequest generates a "aws/request.Request" representing the
- // client's request for the StartAppReplication operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartAppReplication for more information on using the StartAppReplication
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartAppReplicationRequest method.
- // req, resp := client.StartAppReplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication
- func (c *SMS) StartAppReplicationRequest(input *StartAppReplicationInput) (req *request.Request, output *StartAppReplicationOutput) {
- op := &request.Operation{
- Name: opStartAppReplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartAppReplicationInput{}
- }
- output = &StartAppReplicationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StartAppReplication API operation for AWS Server Migration Service.
- //
- // Starts replicating an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation StartAppReplication for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartAppReplication
- func (c *SMS) StartAppReplication(input *StartAppReplicationInput) (*StartAppReplicationOutput, error) {
- req, out := c.StartAppReplicationRequest(input)
- return out, req.Send()
- }
- // StartAppReplicationWithContext is the same as StartAppReplication with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartAppReplication for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) StartAppReplicationWithContext(ctx aws.Context, input *StartAppReplicationInput, opts ...request.Option) (*StartAppReplicationOutput, error) {
- req, out := c.StartAppReplicationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStartOnDemandReplicationRun = "StartOnDemandReplicationRun"
- // StartOnDemandReplicationRunRequest generates a "aws/request.Request" representing the
- // client's request for the StartOnDemandReplicationRun operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StartOnDemandReplicationRun for more information on using the StartOnDemandReplicationRun
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StartOnDemandReplicationRunRequest method.
- // req, resp := client.StartOnDemandReplicationRunRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun
- func (c *SMS) StartOnDemandReplicationRunRequest(input *StartOnDemandReplicationRunInput) (req *request.Request, output *StartOnDemandReplicationRunOutput) {
- op := &request.Operation{
- Name: opStartOnDemandReplicationRun,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartOnDemandReplicationRunInput{}
- }
- output = &StartOnDemandReplicationRunOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // StartOnDemandReplicationRun API operation for AWS Server Migration Service.
- //
- // Starts an on-demand replication run for the specified replication job. This
- // replication run starts immediately. This replication run is in addition to
- // the ones already scheduled.
- //
- // There is a limit on the number of on-demand replications runs you can request
- // in a 24-hour period.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation StartOnDemandReplicationRun for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // * ErrCodeReplicationRunLimitExceededException "ReplicationRunLimitExceededException"
- // You have exceeded the number of on-demand replication runs you can request
- // in a 24-hour period.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StartOnDemandReplicationRun
- func (c *SMS) StartOnDemandReplicationRun(input *StartOnDemandReplicationRunInput) (*StartOnDemandReplicationRunOutput, error) {
- req, out := c.StartOnDemandReplicationRunRequest(input)
- return out, req.Send()
- }
- // StartOnDemandReplicationRunWithContext is the same as StartOnDemandReplicationRun with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StartOnDemandReplicationRun for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) StartOnDemandReplicationRunWithContext(ctx aws.Context, input *StartOnDemandReplicationRunInput, opts ...request.Option) (*StartOnDemandReplicationRunOutput, error) {
- req, out := c.StartOnDemandReplicationRunRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opStopAppReplication = "StopAppReplication"
- // StopAppReplicationRequest generates a "aws/request.Request" representing the
- // client's request for the StopAppReplication operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See StopAppReplication for more information on using the StopAppReplication
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the StopAppReplicationRequest method.
- // req, resp := client.StopAppReplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication
- func (c *SMS) StopAppReplicationRequest(input *StopAppReplicationInput) (req *request.Request, output *StopAppReplicationOutput) {
- op := &request.Operation{
- Name: opStopAppReplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopAppReplicationInput{}
- }
- output = &StopAppReplicationOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // StopAppReplication API operation for AWS Server Migration Service.
- //
- // Stops replicating an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation StopAppReplication for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/StopAppReplication
- func (c *SMS) StopAppReplication(input *StopAppReplicationInput) (*StopAppReplicationOutput, error) {
- req, out := c.StopAppReplicationRequest(input)
- return out, req.Send()
- }
- // StopAppReplicationWithContext is the same as StopAppReplication with the addition of
- // the ability to pass a context and additional request options.
- //
- // See StopAppReplication for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) StopAppReplicationWithContext(ctx aws.Context, input *StopAppReplicationInput, opts ...request.Option) (*StopAppReplicationOutput, error) {
- req, out := c.StopAppReplicationRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opTerminateApp = "TerminateApp"
- // TerminateAppRequest generates a "aws/request.Request" representing the
- // client's request for the TerminateApp operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See TerminateApp for more information on using the TerminateApp
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the TerminateAppRequest method.
- // req, resp := client.TerminateAppRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp
- func (c *SMS) TerminateAppRequest(input *TerminateAppInput) (req *request.Request, output *TerminateAppOutput) {
- op := &request.Operation{
- Name: opTerminateApp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &TerminateAppInput{}
- }
- output = &TerminateAppOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // TerminateApp API operation for AWS Server Migration Service.
- //
- // Terminates the stack for an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation TerminateApp for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/TerminateApp
- func (c *SMS) TerminateApp(input *TerminateAppInput) (*TerminateAppOutput, error) {
- req, out := c.TerminateAppRequest(input)
- return out, req.Send()
- }
- // TerminateAppWithContext is the same as TerminateApp with the addition of
- // the ability to pass a context and additional request options.
- //
- // See TerminateApp for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) TerminateAppWithContext(ctx aws.Context, input *TerminateAppInput, opts ...request.Option) (*TerminateAppOutput, error) {
- req, out := c.TerminateAppRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateApp = "UpdateApp"
- // UpdateAppRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateApp operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateApp for more information on using the UpdateApp
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateAppRequest method.
- // req, resp := client.UpdateAppRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp
- func (c *SMS) UpdateAppRequest(input *UpdateAppInput) (req *request.Request, output *UpdateAppOutput) {
- op := &request.Operation{
- Name: opUpdateApp,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateAppInput{}
- }
- output = &UpdateAppOutput{}
- req = c.newRequest(op, input, output)
- return
- }
- // UpdateApp API operation for AWS Server Migration Service.
- //
- // Updates an application.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation UpdateApp for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateApp
- func (c *SMS) UpdateApp(input *UpdateAppInput) (*UpdateAppOutput, error) {
- req, out := c.UpdateAppRequest(input)
- return out, req.Send()
- }
- // UpdateAppWithContext is the same as UpdateApp with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateApp for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) UpdateAppWithContext(ctx aws.Context, input *UpdateAppInput, opts ...request.Option) (*UpdateAppOutput, error) {
- req, out := c.UpdateAppRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opUpdateReplicationJob = "UpdateReplicationJob"
- // UpdateReplicationJobRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateReplicationJob operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See UpdateReplicationJob for more information on using the UpdateReplicationJob
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- //
- // // Example sending a request using the UpdateReplicationJobRequest method.
- // req, resp := client.UpdateReplicationJobRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob
- func (c *SMS) UpdateReplicationJobRequest(input *UpdateReplicationJobInput) (req *request.Request, output *UpdateReplicationJobOutput) {
- op := &request.Operation{
- Name: opUpdateReplicationJob,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateReplicationJobInput{}
- }
- output = &UpdateReplicationJobOutput{}
- req = c.newRequest(op, input, output)
- req.Handlers.Unmarshal.Swap(jsonrpc.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // UpdateReplicationJob API operation for AWS Server Migration Service.
- //
- // Updates the specified settings for the specified replication job.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Server Migration Service's
- // API operation UpdateReplicationJob for usage and error information.
- //
- // Returned Error Codes:
- // * ErrCodeInvalidParameterException "InvalidParameterException"
- // A specified parameter is not valid.
- //
- // * ErrCodeMissingRequiredParameterException "MissingRequiredParameterException"
- // A required parameter is missing.
- //
- // * ErrCodeOperationNotPermittedException "OperationNotPermittedException"
- // This operation is not allowed.
- //
- // * ErrCodeUnauthorizedOperationException "UnauthorizedOperationException"
- // You lack permissions needed to perform this operation. Check your IAM policies,
- // and ensure that you are using the correct access keys.
- //
- // * ErrCodeServerCannotBeReplicatedException "ServerCannotBeReplicatedException"
- // The specified server cannot be replicated.
- //
- // * ErrCodeReplicationJobNotFoundException "ReplicationJobNotFoundException"
- // The specified replication job does not exist.
- //
- // * ErrCodeInternalError "InternalError"
- // An internal error occurred.
- //
- // * ErrCodeTemporarilyUnavailableException "TemporarilyUnavailableException"
- // The service is temporarily unavailable.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sms-2016-10-24/UpdateReplicationJob
- func (c *SMS) UpdateReplicationJob(input *UpdateReplicationJobInput) (*UpdateReplicationJobOutput, error) {
- req, out := c.UpdateReplicationJobRequest(input)
- return out, req.Send()
- }
- // UpdateReplicationJobWithContext is the same as UpdateReplicationJob with the addition of
- // the ability to pass a context and additional request options.
- //
- // See UpdateReplicationJob for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SMS) UpdateReplicationJobWithContext(ctx aws.Context, input *UpdateReplicationJobInput, opts ...request.Option) (*UpdateReplicationJobOutput, error) {
- req, out := c.UpdateReplicationJobRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Information about the application.
- type AppSummary struct {
- _ struct{} `type:"structure"`
- // Unique ID of the application.
- AppId *string `locationName:"appId" type:"string"`
- // Time of creation of this application.
- CreationTime *time.Time `locationName:"creationTime" type:"timestamp"`
- // Description of the application.
- Description *string `locationName:"description" type:"string"`
- // Timestamp of the application's creation.
- LastModified *time.Time `locationName:"lastModified" type:"timestamp"`
- // Timestamp of the application's most recent successful replication.
- LatestReplicationTime *time.Time `locationName:"latestReplicationTime" type:"timestamp"`
- // Details about the latest launch of the application.
- LaunchDetails *LaunchDetails `locationName:"launchDetails" type:"structure"`
- // Launch status of the application.
- LaunchStatus *string `locationName:"launchStatus" type:"string" enum:"AppLaunchStatus"`
- // A message related to the launch status of the application.
- LaunchStatusMessage *string `locationName:"launchStatusMessage" type:"string"`
- // Name of the application.
- Name *string `locationName:"name" type:"string"`
- // Replication status of the application.
- ReplicationStatus *string `locationName:"replicationStatus" type:"string" enum:"AppReplicationStatus"`
- // A message related to the replication status of the application.
- ReplicationStatusMessage *string `locationName:"replicationStatusMessage" type:"string"`
- // Name of the service role in the customer's account used by AWS SMS.
- RoleName *string `locationName:"roleName" type:"string"`
- // Status of the application.
- Status *string `locationName:"status" type:"string" enum:"AppStatus"`
- // A message related to the status of the application
- StatusMessage *string `locationName:"statusMessage" type:"string"`
- // Number of server groups present in the application.
- TotalServerGroups *int64 `locationName:"totalServerGroups" type:"integer"`
- // Number of servers present in the application.
- TotalServers *int64 `locationName:"totalServers" type:"integer"`
- }
- // String returns the string representation
- func (s AppSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AppSummary) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *AppSummary) SetAppId(v string) *AppSummary {
- s.AppId = &v
- return s
- }
- // SetCreationTime sets the CreationTime field's value.
- func (s *AppSummary) SetCreationTime(v time.Time) *AppSummary {
- s.CreationTime = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *AppSummary) SetDescription(v string) *AppSummary {
- s.Description = &v
- return s
- }
- // SetLastModified sets the LastModified field's value.
- func (s *AppSummary) SetLastModified(v time.Time) *AppSummary {
- s.LastModified = &v
- return s
- }
- // SetLatestReplicationTime sets the LatestReplicationTime field's value.
- func (s *AppSummary) SetLatestReplicationTime(v time.Time) *AppSummary {
- s.LatestReplicationTime = &v
- return s
- }
- // SetLaunchDetails sets the LaunchDetails field's value.
- func (s *AppSummary) SetLaunchDetails(v *LaunchDetails) *AppSummary {
- s.LaunchDetails = v
- return s
- }
- // SetLaunchStatus sets the LaunchStatus field's value.
- func (s *AppSummary) SetLaunchStatus(v string) *AppSummary {
- s.LaunchStatus = &v
- return s
- }
- // SetLaunchStatusMessage sets the LaunchStatusMessage field's value.
- func (s *AppSummary) SetLaunchStatusMessage(v string) *AppSummary {
- s.LaunchStatusMessage = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *AppSummary) SetName(v string) *AppSummary {
- s.Name = &v
- return s
- }
- // SetReplicationStatus sets the ReplicationStatus field's value.
- func (s *AppSummary) SetReplicationStatus(v string) *AppSummary {
- s.ReplicationStatus = &v
- return s
- }
- // SetReplicationStatusMessage sets the ReplicationStatusMessage field's value.
- func (s *AppSummary) SetReplicationStatusMessage(v string) *AppSummary {
- s.ReplicationStatusMessage = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *AppSummary) SetRoleName(v string) *AppSummary {
- s.RoleName = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *AppSummary) SetStatus(v string) *AppSummary {
- s.Status = &v
- return s
- }
- // SetStatusMessage sets the StatusMessage field's value.
- func (s *AppSummary) SetStatusMessage(v string) *AppSummary {
- s.StatusMessage = &v
- return s
- }
- // SetTotalServerGroups sets the TotalServerGroups field's value.
- func (s *AppSummary) SetTotalServerGroups(v int64) *AppSummary {
- s.TotalServerGroups = &v
- return s
- }
- // SetTotalServers sets the TotalServers field's value.
- func (s *AppSummary) SetTotalServers(v int64) *AppSummary {
- s.TotalServers = &v
- return s
- }
- // Represents a connector.
- type Connector struct {
- _ struct{} `type:"structure"`
- // The time the connector was associated.
- AssociatedOn *time.Time `locationName:"associatedOn" type:"timestamp"`
- // The capabilities of the connector.
- CapabilityList []*string `locationName:"capabilityList" type:"list"`
- // The identifier of the connector.
- ConnectorId *string `locationName:"connectorId" type:"string"`
- // The IP address of the connector.
- IpAddress *string `locationName:"ipAddress" type:"string"`
- // The MAC address of the connector.
- MacAddress *string `locationName:"macAddress" type:"string"`
- // The status of the connector.
- Status *string `locationName:"status" type:"string" enum:"ConnectorStatus"`
- // The connector version.
- Version *string `locationName:"version" type:"string"`
- // The identifier of the VM manager.
- VmManagerId *string `locationName:"vmManagerId" type:"string"`
- // The name of the VM manager.
- VmManagerName *string `locationName:"vmManagerName" type:"string"`
- // The VM management product.
- VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"`
- }
- // String returns the string representation
- func (s Connector) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Connector) GoString() string {
- return s.String()
- }
- // SetAssociatedOn sets the AssociatedOn field's value.
- func (s *Connector) SetAssociatedOn(v time.Time) *Connector {
- s.AssociatedOn = &v
- return s
- }
- // SetCapabilityList sets the CapabilityList field's value.
- func (s *Connector) SetCapabilityList(v []*string) *Connector {
- s.CapabilityList = v
- return s
- }
- // SetConnectorId sets the ConnectorId field's value.
- func (s *Connector) SetConnectorId(v string) *Connector {
- s.ConnectorId = &v
- return s
- }
- // SetIpAddress sets the IpAddress field's value.
- func (s *Connector) SetIpAddress(v string) *Connector {
- s.IpAddress = &v
- return s
- }
- // SetMacAddress sets the MacAddress field's value.
- func (s *Connector) SetMacAddress(v string) *Connector {
- s.MacAddress = &v
- return s
- }
- // SetStatus sets the Status field's value.
- func (s *Connector) SetStatus(v string) *Connector {
- s.Status = &v
- return s
- }
- // SetVersion sets the Version field's value.
- func (s *Connector) SetVersion(v string) *Connector {
- s.Version = &v
- return s
- }
- // SetVmManagerId sets the VmManagerId field's value.
- func (s *Connector) SetVmManagerId(v string) *Connector {
- s.VmManagerId = &v
- return s
- }
- // SetVmManagerName sets the VmManagerName field's value.
- func (s *Connector) SetVmManagerName(v string) *Connector {
- s.VmManagerName = &v
- return s
- }
- // SetVmManagerType sets the VmManagerType field's value.
- func (s *Connector) SetVmManagerType(v string) *Connector {
- s.VmManagerType = &v
- return s
- }
- type CreateAppInput struct {
- _ struct{} `type:"structure"`
- // A unique, case-sensitive identifier you provide to ensure idempotency of
- // application creation.
- ClientToken *string `locationName:"clientToken" type:"string"`
- // Description of the new application
- Description *string `locationName:"description" type:"string"`
- // Name of the new application.
- Name *string `locationName:"name" type:"string"`
- // Name of service role in customer's account to be used by AWS SMS.
- RoleName *string `locationName:"roleName" type:"string"`
- // List of server groups to include in the application.
- ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
- // List of tags to be associated with the application.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s CreateAppInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAppInput) GoString() string {
- return s.String()
- }
- // SetClientToken sets the ClientToken field's value.
- func (s *CreateAppInput) SetClientToken(v string) *CreateAppInput {
- s.ClientToken = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *CreateAppInput) SetDescription(v string) *CreateAppInput {
- s.Description = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *CreateAppInput) SetName(v string) *CreateAppInput {
- s.Name = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *CreateAppInput) SetRoleName(v string) *CreateAppInput {
- s.RoleName = &v
- return s
- }
- // SetServerGroups sets the ServerGroups field's value.
- func (s *CreateAppInput) SetServerGroups(v []*ServerGroup) *CreateAppInput {
- s.ServerGroups = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateAppInput) SetTags(v []*Tag) *CreateAppInput {
- s.Tags = v
- return s
- }
- type CreateAppOutput struct {
- _ struct{} `type:"structure"`
- // Summary description of the application.
- AppSummary *AppSummary `locationName:"appSummary" type:"structure"`
- // List of server groups included in the application.
- ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
- // List of taags associated with the application.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s CreateAppOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateAppOutput) GoString() string {
- return s.String()
- }
- // SetAppSummary sets the AppSummary field's value.
- func (s *CreateAppOutput) SetAppSummary(v *AppSummary) *CreateAppOutput {
- s.AppSummary = v
- return s
- }
- // SetServerGroups sets the ServerGroups field's value.
- func (s *CreateAppOutput) SetServerGroups(v []*ServerGroup) *CreateAppOutput {
- s.ServerGroups = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *CreateAppOutput) SetTags(v []*Tag) *CreateAppOutput {
- s.Tags = v
- return s
- }
- type CreateReplicationJobInput struct {
- _ struct{} `type:"structure"`
- // The description of the replication job.
- Description *string `locationName:"description" type:"string"`
- // When true, the replication job produces encrypted AMIs. See also KmsKeyId
- // below.
- Encrypted *bool `locationName:"encrypted" type:"boolean"`
- // The time between consecutive replication runs, in hours.
- Frequency *int64 `locationName:"frequency" type:"integer"`
- // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
- // the following:
- //
- // * KMS key ID
- //
- // * KMS key alias
- //
- // * ARN referring to KMS key ID
- //
- // * ARN referring to KMS key alias
- //
- // If encrypted is true but a KMS key id is not specified, the customer's default
- // KMS key for EBS is used.
- KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
- // The license type to be used for the AMI created by a successful replication
- // run.
- LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
- // The maximum number of SMS-created AMIs to retain. The oldest will be deleted
- // once the maximum number is reached and a new AMI is created.
- NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
- // The name of the IAM role to be used by the AWS SMS.
- RoleName *string `locationName:"roleName" type:"string"`
- RunOnce *bool `locationName:"runOnce" type:"boolean"`
- // The seed replication time.
- //
- // SeedReplicationTime is a required field
- SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp" required:"true"`
- // The identifier of the server.
- //
- // ServerId is a required field
- ServerId *string `locationName:"serverId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateReplicationJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateReplicationJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateReplicationJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateReplicationJobInput"}
- if s.SeedReplicationTime == nil {
- invalidParams.Add(request.NewErrParamRequired("SeedReplicationTime"))
- }
- if s.ServerId == nil {
- invalidParams.Add(request.NewErrParamRequired("ServerId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *CreateReplicationJobInput) SetDescription(v string) *CreateReplicationJobInput {
- s.Description = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *CreateReplicationJobInput) SetEncrypted(v bool) *CreateReplicationJobInput {
- s.Encrypted = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *CreateReplicationJobInput) SetFrequency(v int64) *CreateReplicationJobInput {
- s.Frequency = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *CreateReplicationJobInput) SetKmsKeyId(v string) *CreateReplicationJobInput {
- s.KmsKeyId = &v
- return s
- }
- // SetLicenseType sets the LicenseType field's value.
- func (s *CreateReplicationJobInput) SetLicenseType(v string) *CreateReplicationJobInput {
- s.LicenseType = &v
- return s
- }
- // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
- func (s *CreateReplicationJobInput) SetNumberOfRecentAmisToKeep(v int64) *CreateReplicationJobInput {
- s.NumberOfRecentAmisToKeep = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *CreateReplicationJobInput) SetRoleName(v string) *CreateReplicationJobInput {
- s.RoleName = &v
- return s
- }
- // SetRunOnce sets the RunOnce field's value.
- func (s *CreateReplicationJobInput) SetRunOnce(v bool) *CreateReplicationJobInput {
- s.RunOnce = &v
- return s
- }
- // SetSeedReplicationTime sets the SeedReplicationTime field's value.
- func (s *CreateReplicationJobInput) SetSeedReplicationTime(v time.Time) *CreateReplicationJobInput {
- s.SeedReplicationTime = &v
- return s
- }
- // SetServerId sets the ServerId field's value.
- func (s *CreateReplicationJobInput) SetServerId(v string) *CreateReplicationJobInput {
- s.ServerId = &v
- return s
- }
- type CreateReplicationJobOutput struct {
- _ struct{} `type:"structure"`
- // The unique identifier of the replication job.
- ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
- }
- // String returns the string representation
- func (s CreateReplicationJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateReplicationJobOutput) GoString() string {
- return s.String()
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *CreateReplicationJobOutput) SetReplicationJobId(v string) *CreateReplicationJobOutput {
- s.ReplicationJobId = &v
- return s
- }
- type DeleteAppInput struct {
- _ struct{} `type:"structure"`
- // ID of the application to delete.
- AppId *string `locationName:"appId" type:"string"`
- // While deleting the application, stop all replication jobs corresponding to
- // the servers in the application.
- ForceStopAppReplication *bool `locationName:"forceStopAppReplication" type:"boolean"`
- // While deleting the application, terminate the stack corresponding to the
- // application.
- ForceTerminateApp *bool `locationName:"forceTerminateApp" type:"boolean"`
- }
- // String returns the string representation
- func (s DeleteAppInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAppInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *DeleteAppInput) SetAppId(v string) *DeleteAppInput {
- s.AppId = &v
- return s
- }
- // SetForceStopAppReplication sets the ForceStopAppReplication field's value.
- func (s *DeleteAppInput) SetForceStopAppReplication(v bool) *DeleteAppInput {
- s.ForceStopAppReplication = &v
- return s
- }
- // SetForceTerminateApp sets the ForceTerminateApp field's value.
- func (s *DeleteAppInput) SetForceTerminateApp(v bool) *DeleteAppInput {
- s.ForceTerminateApp = &v
- return s
- }
- type DeleteAppLaunchConfigurationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application associated with the launch configuration.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s DeleteAppLaunchConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAppLaunchConfigurationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *DeleteAppLaunchConfigurationInput) SetAppId(v string) *DeleteAppLaunchConfigurationInput {
- s.AppId = &v
- return s
- }
- type DeleteAppLaunchConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAppLaunchConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAppLaunchConfigurationOutput) GoString() string {
- return s.String()
- }
- type DeleteAppOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAppOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAppOutput) GoString() string {
- return s.String()
- }
- type DeleteAppReplicationConfigurationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application associated with the replication configuration.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s DeleteAppReplicationConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAppReplicationConfigurationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *DeleteAppReplicationConfigurationInput) SetAppId(v string) *DeleteAppReplicationConfigurationInput {
- s.AppId = &v
- return s
- }
- type DeleteAppReplicationConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteAppReplicationConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAppReplicationConfigurationOutput) GoString() string {
- return s.String()
- }
- type DeleteReplicationJobInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the replication job.
- //
- // ReplicationJobId is a required field
- ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteReplicationJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteReplicationJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteReplicationJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteReplicationJobInput"}
- if s.ReplicationJobId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *DeleteReplicationJobInput) SetReplicationJobId(v string) *DeleteReplicationJobInput {
- s.ReplicationJobId = &v
- return s
- }
- type DeleteReplicationJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteReplicationJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteReplicationJobOutput) GoString() string {
- return s.String()
- }
- type DeleteServerCatalogInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteServerCatalogInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteServerCatalogInput) GoString() string {
- return s.String()
- }
- type DeleteServerCatalogOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteServerCatalogOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteServerCatalogOutput) GoString() string {
- return s.String()
- }
- type DisassociateConnectorInput struct {
- _ struct{} `type:"structure"`
- // The identifier of the connector.
- //
- // ConnectorId is a required field
- ConnectorId *string `locationName:"connectorId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DisassociateConnectorInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateConnectorInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DisassociateConnectorInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DisassociateConnectorInput"}
- if s.ConnectorId == nil {
- invalidParams.Add(request.NewErrParamRequired("ConnectorId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetConnectorId sets the ConnectorId field's value.
- func (s *DisassociateConnectorInput) SetConnectorId(v string) *DisassociateConnectorInput {
- s.ConnectorId = &v
- return s
- }
- type DisassociateConnectorOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DisassociateConnectorOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DisassociateConnectorOutput) GoString() string {
- return s.String()
- }
- type GenerateChangeSetInput struct {
- _ struct{} `type:"structure"`
- // ID of the application associated with the change set.
- AppId *string `locationName:"appId" type:"string"`
- // Format for the change set.
- ChangesetFormat *string `locationName:"changesetFormat" type:"string" enum:"OutputFormat"`
- }
- // String returns the string representation
- func (s GenerateChangeSetInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GenerateChangeSetInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *GenerateChangeSetInput) SetAppId(v string) *GenerateChangeSetInput {
- s.AppId = &v
- return s
- }
- // SetChangesetFormat sets the ChangesetFormat field's value.
- func (s *GenerateChangeSetInput) SetChangesetFormat(v string) *GenerateChangeSetInput {
- s.ChangesetFormat = &v
- return s
- }
- type GenerateChangeSetOutput struct {
- _ struct{} `type:"structure"`
- // Location of the Amazon S3 object.
- S3Location *S3Location `locationName:"s3Location" type:"structure"`
- }
- // String returns the string representation
- func (s GenerateChangeSetOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GenerateChangeSetOutput) GoString() string {
- return s.String()
- }
- // SetS3Location sets the S3Location field's value.
- func (s *GenerateChangeSetOutput) SetS3Location(v *S3Location) *GenerateChangeSetOutput {
- s.S3Location = v
- return s
- }
- type GenerateTemplateInput struct {
- _ struct{} `type:"structure"`
- // ID of the application associated with the Amazon CloudFormation template.
- AppId *string `locationName:"appId" type:"string"`
- // Format for generating the Amazon CloudFormation template.
- TemplateFormat *string `locationName:"templateFormat" type:"string" enum:"OutputFormat"`
- }
- // String returns the string representation
- func (s GenerateTemplateInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GenerateTemplateInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *GenerateTemplateInput) SetAppId(v string) *GenerateTemplateInput {
- s.AppId = &v
- return s
- }
- // SetTemplateFormat sets the TemplateFormat field's value.
- func (s *GenerateTemplateInput) SetTemplateFormat(v string) *GenerateTemplateInput {
- s.TemplateFormat = &v
- return s
- }
- type GenerateTemplateOutput struct {
- _ struct{} `type:"structure"`
- // Location of the Amazon S3 object.
- S3Location *S3Location `locationName:"s3Location" type:"structure"`
- }
- // String returns the string representation
- func (s GenerateTemplateOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GenerateTemplateOutput) GoString() string {
- return s.String()
- }
- // SetS3Location sets the S3Location field's value.
- func (s *GenerateTemplateOutput) SetS3Location(v *S3Location) *GenerateTemplateOutput {
- s.S3Location = v
- return s
- }
- type GetAppInput struct {
- _ struct{} `type:"structure"`
- // ID of the application whose information is being retrieved.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s GetAppInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAppInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *GetAppInput) SetAppId(v string) *GetAppInput {
- s.AppId = &v
- return s
- }
- type GetAppLaunchConfigurationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application launch configuration.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s GetAppLaunchConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAppLaunchConfigurationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *GetAppLaunchConfigurationInput) SetAppId(v string) *GetAppLaunchConfigurationInput {
- s.AppId = &v
- return s
- }
- type GetAppLaunchConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // ID of the application associated with the launch configuration.
- AppId *string `locationName:"appId" type:"string"`
- // Name of the service role in the customer's account that Amazon CloudFormation
- // uses to launch the application.
- RoleName *string `locationName:"roleName" type:"string"`
- // List of launch configurations for server groups in this application.
- ServerGroupLaunchConfigurations []*ServerGroupLaunchConfiguration `locationName:"serverGroupLaunchConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s GetAppLaunchConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAppLaunchConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *GetAppLaunchConfigurationOutput) SetAppId(v string) *GetAppLaunchConfigurationOutput {
- s.AppId = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *GetAppLaunchConfigurationOutput) SetRoleName(v string) *GetAppLaunchConfigurationOutput {
- s.RoleName = &v
- return s
- }
- // SetServerGroupLaunchConfigurations sets the ServerGroupLaunchConfigurations field's value.
- func (s *GetAppLaunchConfigurationOutput) SetServerGroupLaunchConfigurations(v []*ServerGroupLaunchConfiguration) *GetAppLaunchConfigurationOutput {
- s.ServerGroupLaunchConfigurations = v
- return s
- }
- type GetAppOutput struct {
- _ struct{} `type:"structure"`
- // Information about the application.
- AppSummary *AppSummary `locationName:"appSummary" type:"structure"`
- // List of server groups belonging to the application.
- ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
- // List of tags associated with the application.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s GetAppOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAppOutput) GoString() string {
- return s.String()
- }
- // SetAppSummary sets the AppSummary field's value.
- func (s *GetAppOutput) SetAppSummary(v *AppSummary) *GetAppOutput {
- s.AppSummary = v
- return s
- }
- // SetServerGroups sets the ServerGroups field's value.
- func (s *GetAppOutput) SetServerGroups(v []*ServerGroup) *GetAppOutput {
- s.ServerGroups = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *GetAppOutput) SetTags(v []*Tag) *GetAppOutput {
- s.Tags = v
- return s
- }
- type GetAppReplicationConfigurationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application associated with the replication configuration.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s GetAppReplicationConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAppReplicationConfigurationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *GetAppReplicationConfigurationInput) SetAppId(v string) *GetAppReplicationConfigurationInput {
- s.AppId = &v
- return s
- }
- type GetAppReplicationConfigurationOutput struct {
- _ struct{} `type:"structure"`
- // Replication configurations associated with server groups in this application.
- ServerGroupReplicationConfigurations []*ServerGroupReplicationConfiguration `locationName:"serverGroupReplicationConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s GetAppReplicationConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetAppReplicationConfigurationOutput) GoString() string {
- return s.String()
- }
- // SetServerGroupReplicationConfigurations sets the ServerGroupReplicationConfigurations field's value.
- func (s *GetAppReplicationConfigurationOutput) SetServerGroupReplicationConfigurations(v []*ServerGroupReplicationConfiguration) *GetAppReplicationConfigurationOutput {
- s.ServerGroupReplicationConfigurations = v
- return s
- }
- type GetConnectorsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in a single call. The default value
- // is 50. To retrieve the remaining results, make another call with the returned
- // NextToken value.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // The token for the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s GetConnectorsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetConnectorsInput) GoString() string {
- return s.String()
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetConnectorsInput) SetMaxResults(v int64) *GetConnectorsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetConnectorsInput) SetNextToken(v string) *GetConnectorsInput {
- s.NextToken = &v
- return s
- }
- type GetConnectorsOutput struct {
- _ struct{} `type:"structure"`
- // Information about the registered connectors.
- ConnectorList []*Connector `locationName:"connectorList" type:"list"`
- // The token required to retrieve the next set of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s GetConnectorsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetConnectorsOutput) GoString() string {
- return s.String()
- }
- // SetConnectorList sets the ConnectorList field's value.
- func (s *GetConnectorsOutput) SetConnectorList(v []*Connector) *GetConnectorsOutput {
- s.ConnectorList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetConnectorsOutput) SetNextToken(v string) *GetConnectorsOutput {
- s.NextToken = &v
- return s
- }
- type GetReplicationJobsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in a single call. The default value
- // is 50. To retrieve the remaining results, make another call with the returned
- // NextToken value.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // The token for the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The identifier of the replication job.
- ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
- }
- // String returns the string representation
- func (s GetReplicationJobsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReplicationJobsInput) GoString() string {
- return s.String()
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetReplicationJobsInput) SetMaxResults(v int64) *GetReplicationJobsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetReplicationJobsInput) SetNextToken(v string) *GetReplicationJobsInput {
- s.NextToken = &v
- return s
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *GetReplicationJobsInput) SetReplicationJobId(v string) *GetReplicationJobsInput {
- s.ReplicationJobId = &v
- return s
- }
- type GetReplicationJobsOutput struct {
- _ struct{} `type:"structure"`
- // The token required to retrieve the next set of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information about the replication jobs.
- ReplicationJobList []*ReplicationJob `locationName:"replicationJobList" type:"list"`
- }
- // String returns the string representation
- func (s GetReplicationJobsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReplicationJobsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetReplicationJobsOutput) SetNextToken(v string) *GetReplicationJobsOutput {
- s.NextToken = &v
- return s
- }
- // SetReplicationJobList sets the ReplicationJobList field's value.
- func (s *GetReplicationJobsOutput) SetReplicationJobList(v []*ReplicationJob) *GetReplicationJobsOutput {
- s.ReplicationJobList = v
- return s
- }
- type GetReplicationRunsInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in a single call. The default value
- // is 50. To retrieve the remaining results, make another call with the returned
- // NextToken value.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // The token for the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The identifier of the replication job.
- //
- // ReplicationJobId is a required field
- ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s GetReplicationRunsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReplicationRunsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetReplicationRunsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetReplicationRunsInput"}
- if s.ReplicationJobId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetReplicationRunsInput) SetMaxResults(v int64) *GetReplicationRunsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetReplicationRunsInput) SetNextToken(v string) *GetReplicationRunsInput {
- s.NextToken = &v
- return s
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *GetReplicationRunsInput) SetReplicationJobId(v string) *GetReplicationRunsInput {
- s.ReplicationJobId = &v
- return s
- }
- type GetReplicationRunsOutput struct {
- _ struct{} `type:"structure"`
- // The token required to retrieve the next set of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // Information about the replication job.
- ReplicationJob *ReplicationJob `locationName:"replicationJob" type:"structure"`
- // Information about the replication runs.
- ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" type:"list"`
- }
- // String returns the string representation
- func (s GetReplicationRunsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetReplicationRunsOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetReplicationRunsOutput) SetNextToken(v string) *GetReplicationRunsOutput {
- s.NextToken = &v
- return s
- }
- // SetReplicationJob sets the ReplicationJob field's value.
- func (s *GetReplicationRunsOutput) SetReplicationJob(v *ReplicationJob) *GetReplicationRunsOutput {
- s.ReplicationJob = v
- return s
- }
- // SetReplicationRunList sets the ReplicationRunList field's value.
- func (s *GetReplicationRunsOutput) SetReplicationRunList(v []*ReplicationRun) *GetReplicationRunsOutput {
- s.ReplicationRunList = v
- return s
- }
- type GetServersInput struct {
- _ struct{} `type:"structure"`
- // The maximum number of results to return in a single call. The default value
- // is 50. To retrieve the remaining results, make another call with the returned
- // NextToken value.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // The token for the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- // List of VmServerAddress objects
- VmServerAddressList []*VmServerAddress `locationName:"vmServerAddressList" type:"list"`
- }
- // String returns the string representation
- func (s GetServersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetServersInput) GoString() string {
- return s.String()
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *GetServersInput) SetMaxResults(v int64) *GetServersInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetServersInput) SetNextToken(v string) *GetServersInput {
- s.NextToken = &v
- return s
- }
- // SetVmServerAddressList sets the VmServerAddressList field's value.
- func (s *GetServersInput) SetVmServerAddressList(v []*VmServerAddress) *GetServersInput {
- s.VmServerAddressList = v
- return s
- }
- type GetServersOutput struct {
- _ struct{} `type:"structure"`
- // The time when the server was last modified.
- LastModifiedOn *time.Time `locationName:"lastModifiedOn" type:"timestamp"`
- // The token required to retrieve the next set of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- // The status of the server catalog.
- ServerCatalogStatus *string `locationName:"serverCatalogStatus" type:"string" enum:"ServerCatalogStatus"`
- // Information about the servers.
- ServerList []*Server `locationName:"serverList" type:"list"`
- }
- // String returns the string representation
- func (s GetServersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s GetServersOutput) GoString() string {
- return s.String()
- }
- // SetLastModifiedOn sets the LastModifiedOn field's value.
- func (s *GetServersOutput) SetLastModifiedOn(v time.Time) *GetServersOutput {
- s.LastModifiedOn = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *GetServersOutput) SetNextToken(v string) *GetServersOutput {
- s.NextToken = &v
- return s
- }
- // SetServerCatalogStatus sets the ServerCatalogStatus field's value.
- func (s *GetServersOutput) SetServerCatalogStatus(v string) *GetServersOutput {
- s.ServerCatalogStatus = &v
- return s
- }
- // SetServerList sets the ServerList field's value.
- func (s *GetServersOutput) SetServerList(v []*Server) *GetServersOutput {
- s.ServerList = v
- return s
- }
- type ImportServerCatalogInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ImportServerCatalogInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImportServerCatalogInput) GoString() string {
- return s.String()
- }
- type ImportServerCatalogOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ImportServerCatalogOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ImportServerCatalogOutput) GoString() string {
- return s.String()
- }
- type LaunchAppInput struct {
- _ struct{} `type:"structure"`
- // ID of the application to launch.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s LaunchAppInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LaunchAppInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *LaunchAppInput) SetAppId(v string) *LaunchAppInput {
- s.AppId = &v
- return s
- }
- type LaunchAppOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s LaunchAppOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LaunchAppOutput) GoString() string {
- return s.String()
- }
- // Details about the latest launch of an application.
- type LaunchDetails struct {
- _ struct{} `type:"structure"`
- // Latest time this application was launched successfully.
- LatestLaunchTime *time.Time `locationName:"latestLaunchTime" type:"timestamp"`
- // Identifier of the latest stack launched for this application.
- StackId *string `locationName:"stackId" type:"string"`
- // Name of the latest stack launched for this application.
- StackName *string `locationName:"stackName" type:"string"`
- }
- // String returns the string representation
- func (s LaunchDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LaunchDetails) GoString() string {
- return s.String()
- }
- // SetLatestLaunchTime sets the LatestLaunchTime field's value.
- func (s *LaunchDetails) SetLatestLaunchTime(v time.Time) *LaunchDetails {
- s.LatestLaunchTime = &v
- return s
- }
- // SetStackId sets the StackId field's value.
- func (s *LaunchDetails) SetStackId(v string) *LaunchDetails {
- s.StackId = &v
- return s
- }
- // SetStackName sets the StackName field's value.
- func (s *LaunchDetails) SetStackName(v string) *LaunchDetails {
- s.StackName = &v
- return s
- }
- type ListAppsInput struct {
- _ struct{} `type:"structure"`
- AppIds []*string `locationName:"appIds" type:"list"`
- // The maximum number of results to return in a single call. The default value
- // is 50. To retrieve the remaining results, make another call with the returned
- // NextToken value.
- MaxResults *int64 `locationName:"maxResults" type:"integer"`
- // The token for the next set of results.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListAppsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAppsInput) GoString() string {
- return s.String()
- }
- // SetAppIds sets the AppIds field's value.
- func (s *ListAppsInput) SetAppIds(v []*string) *ListAppsInput {
- s.AppIds = v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListAppsInput) SetMaxResults(v int64) *ListAppsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAppsInput) SetNextToken(v string) *ListAppsInput {
- s.NextToken = &v
- return s
- }
- type ListAppsOutput struct {
- _ struct{} `type:"structure"`
- // A list of application summaries.
- Apps []*AppSummary `locationName:"apps" type:"list"`
- // The token required to retrieve the next set of results. This value is null
- // when there are no more results to return.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation
- func (s ListAppsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListAppsOutput) GoString() string {
- return s.String()
- }
- // SetApps sets the Apps field's value.
- func (s *ListAppsOutput) SetApps(v []*AppSummary) *ListAppsOutput {
- s.Apps = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAppsOutput) SetNextToken(v string) *ListAppsOutput {
- s.NextToken = &v
- return s
- }
- type PutAppLaunchConfigurationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application associated with the launch configuration.
- AppId *string `locationName:"appId" type:"string"`
- // Name of service role in the customer's account that Amazon CloudFormation
- // uses to launch the application.
- RoleName *string `locationName:"roleName" type:"string"`
- // Launch configurations for server groups in the application.
- ServerGroupLaunchConfigurations []*ServerGroupLaunchConfiguration `locationName:"serverGroupLaunchConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s PutAppLaunchConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutAppLaunchConfigurationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *PutAppLaunchConfigurationInput) SetAppId(v string) *PutAppLaunchConfigurationInput {
- s.AppId = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *PutAppLaunchConfigurationInput) SetRoleName(v string) *PutAppLaunchConfigurationInput {
- s.RoleName = &v
- return s
- }
- // SetServerGroupLaunchConfigurations sets the ServerGroupLaunchConfigurations field's value.
- func (s *PutAppLaunchConfigurationInput) SetServerGroupLaunchConfigurations(v []*ServerGroupLaunchConfiguration) *PutAppLaunchConfigurationInput {
- s.ServerGroupLaunchConfigurations = v
- return s
- }
- type PutAppLaunchConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutAppLaunchConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutAppLaunchConfigurationOutput) GoString() string {
- return s.String()
- }
- type PutAppReplicationConfigurationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application tassociated with the replication configuration.
- AppId *string `locationName:"appId" type:"string"`
- // Replication configurations for server groups in the application.
- ServerGroupReplicationConfigurations []*ServerGroupReplicationConfiguration `locationName:"serverGroupReplicationConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s PutAppReplicationConfigurationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutAppReplicationConfigurationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *PutAppReplicationConfigurationInput) SetAppId(v string) *PutAppReplicationConfigurationInput {
- s.AppId = &v
- return s
- }
- // SetServerGroupReplicationConfigurations sets the ServerGroupReplicationConfigurations field's value.
- func (s *PutAppReplicationConfigurationInput) SetServerGroupReplicationConfigurations(v []*ServerGroupReplicationConfiguration) *PutAppReplicationConfigurationInput {
- s.ServerGroupReplicationConfigurations = v
- return s
- }
- type PutAppReplicationConfigurationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s PutAppReplicationConfigurationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s PutAppReplicationConfigurationOutput) GoString() string {
- return s.String()
- }
- // Represents a replication job.
- type ReplicationJob struct {
- _ struct{} `type:"structure"`
- // The description of the replication job.
- Description *string `locationName:"description" type:"string"`
- // Whether the replication job should produce encrypted AMIs or not. See also
- // KmsKeyId below.
- Encrypted *bool `locationName:"encrypted" type:"boolean"`
- // The time between consecutive replication runs, in hours.
- Frequency *int64 `locationName:"frequency" type:"integer"`
- // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
- // the following:
- //
- // * KMS key ID
- //
- // * KMS key alias
- //
- // * ARN referring to KMS key ID
- //
- // * ARN referring to KMS key alias
- //
- // If encrypted is true but a KMS key id is not specified, the customer's default
- // KMS key for EBS is used.
- KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
- // The ID of the latest Amazon Machine Image (AMI).
- LatestAmiId *string `locationName:"latestAmiId" type:"string"`
- // The license type to be used for the AMI created by a successful replication
- // run.
- LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
- // The start time of the next replication run.
- NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"`
- // Number of recent AMIs to keep in the customer's account for a replication
- // job. By default the value is set to zero, meaning that all AMIs are kept.
- NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
- // The identifier of the replication job.
- ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
- // Information about the replication runs.
- ReplicationRunList []*ReplicationRun `locationName:"replicationRunList" type:"list"`
- // The name of the IAM role to be used by the Server Migration Service.
- RoleName *string `locationName:"roleName" type:"string"`
- RunOnce *bool `locationName:"runOnce" type:"boolean"`
- // The seed replication time.
- SeedReplicationTime *time.Time `locationName:"seedReplicationTime" type:"timestamp"`
- // The identifier of the server.
- ServerId *string `locationName:"serverId" type:"string"`
- // The type of server.
- ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"`
- // The state of the replication job.
- State *string `locationName:"state" type:"string" enum:"ReplicationJobState"`
- // The description of the current status of the replication job.
- StatusMessage *string `locationName:"statusMessage" type:"string"`
- // Information about the VM server.
- VmServer *VmServer `locationName:"vmServer" type:"structure"`
- }
- // String returns the string representation
- func (s ReplicationJob) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReplicationJob) GoString() string {
- return s.String()
- }
- // SetDescription sets the Description field's value.
- func (s *ReplicationJob) SetDescription(v string) *ReplicationJob {
- s.Description = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *ReplicationJob) SetEncrypted(v bool) *ReplicationJob {
- s.Encrypted = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *ReplicationJob) SetFrequency(v int64) *ReplicationJob {
- s.Frequency = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *ReplicationJob) SetKmsKeyId(v string) *ReplicationJob {
- s.KmsKeyId = &v
- return s
- }
- // SetLatestAmiId sets the LatestAmiId field's value.
- func (s *ReplicationJob) SetLatestAmiId(v string) *ReplicationJob {
- s.LatestAmiId = &v
- return s
- }
- // SetLicenseType sets the LicenseType field's value.
- func (s *ReplicationJob) SetLicenseType(v string) *ReplicationJob {
- s.LicenseType = &v
- return s
- }
- // SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value.
- func (s *ReplicationJob) SetNextReplicationRunStartTime(v time.Time) *ReplicationJob {
- s.NextReplicationRunStartTime = &v
- return s
- }
- // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
- func (s *ReplicationJob) SetNumberOfRecentAmisToKeep(v int64) *ReplicationJob {
- s.NumberOfRecentAmisToKeep = &v
- return s
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *ReplicationJob) SetReplicationJobId(v string) *ReplicationJob {
- s.ReplicationJobId = &v
- return s
- }
- // SetReplicationRunList sets the ReplicationRunList field's value.
- func (s *ReplicationJob) SetReplicationRunList(v []*ReplicationRun) *ReplicationJob {
- s.ReplicationRunList = v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *ReplicationJob) SetRoleName(v string) *ReplicationJob {
- s.RoleName = &v
- return s
- }
- // SetRunOnce sets the RunOnce field's value.
- func (s *ReplicationJob) SetRunOnce(v bool) *ReplicationJob {
- s.RunOnce = &v
- return s
- }
- // SetSeedReplicationTime sets the SeedReplicationTime field's value.
- func (s *ReplicationJob) SetSeedReplicationTime(v time.Time) *ReplicationJob {
- s.SeedReplicationTime = &v
- return s
- }
- // SetServerId sets the ServerId field's value.
- func (s *ReplicationJob) SetServerId(v string) *ReplicationJob {
- s.ServerId = &v
- return s
- }
- // SetServerType sets the ServerType field's value.
- func (s *ReplicationJob) SetServerType(v string) *ReplicationJob {
- s.ServerType = &v
- return s
- }
- // SetState sets the State field's value.
- func (s *ReplicationJob) SetState(v string) *ReplicationJob {
- s.State = &v
- return s
- }
- // SetStatusMessage sets the StatusMessage field's value.
- func (s *ReplicationJob) SetStatusMessage(v string) *ReplicationJob {
- s.StatusMessage = &v
- return s
- }
- // SetVmServer sets the VmServer field's value.
- func (s *ReplicationJob) SetVmServer(v *VmServer) *ReplicationJob {
- s.VmServer = v
- return s
- }
- // Represents a replication run.
- type ReplicationRun struct {
- _ struct{} `type:"structure"`
- // The identifier of the Amazon Machine Image (AMI) from the replication run.
- AmiId *string `locationName:"amiId" type:"string"`
- // The completion time of the last replication run.
- CompletedTime *time.Time `locationName:"completedTime" type:"timestamp"`
- // The description of the replication run.
- Description *string `locationName:"description" type:"string"`
- // Whether the replication run should produce encrypted AMI or not. See also
- // KmsKeyId below.
- Encrypted *bool `locationName:"encrypted" type:"boolean"`
- // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
- // the following:
- //
- // * KMS key ID
- //
- // * KMS key alias
- //
- // * ARN referring to KMS key ID
- //
- // * ARN referring to KMS key alias
- //
- // If encrypted is true but a KMS key id is not specified, the customer's default
- // KMS key for EBS is used.
- KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
- // The identifier of the replication run.
- ReplicationRunId *string `locationName:"replicationRunId" type:"string"`
- // The start time of the next replication run.
- ScheduledStartTime *time.Time `locationName:"scheduledStartTime" type:"timestamp"`
- // Details of the current stage of the replication run.
- StageDetails *ReplicationRunStageDetails `locationName:"stageDetails" type:"structure"`
- // The state of the replication run.
- State *string `locationName:"state" type:"string" enum:"ReplicationRunState"`
- // The description of the current status of the replication job.
- StatusMessage *string `locationName:"statusMessage" type:"string"`
- // The type of replication run.
- Type *string `locationName:"type" type:"string" enum:"ReplicationRunType"`
- }
- // String returns the string representation
- func (s ReplicationRun) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReplicationRun) GoString() string {
- return s.String()
- }
- // SetAmiId sets the AmiId field's value.
- func (s *ReplicationRun) SetAmiId(v string) *ReplicationRun {
- s.AmiId = &v
- return s
- }
- // SetCompletedTime sets the CompletedTime field's value.
- func (s *ReplicationRun) SetCompletedTime(v time.Time) *ReplicationRun {
- s.CompletedTime = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *ReplicationRun) SetDescription(v string) *ReplicationRun {
- s.Description = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *ReplicationRun) SetEncrypted(v bool) *ReplicationRun {
- s.Encrypted = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *ReplicationRun) SetKmsKeyId(v string) *ReplicationRun {
- s.KmsKeyId = &v
- return s
- }
- // SetReplicationRunId sets the ReplicationRunId field's value.
- func (s *ReplicationRun) SetReplicationRunId(v string) *ReplicationRun {
- s.ReplicationRunId = &v
- return s
- }
- // SetScheduledStartTime sets the ScheduledStartTime field's value.
- func (s *ReplicationRun) SetScheduledStartTime(v time.Time) *ReplicationRun {
- s.ScheduledStartTime = &v
- return s
- }
- // SetStageDetails sets the StageDetails field's value.
- func (s *ReplicationRun) SetStageDetails(v *ReplicationRunStageDetails) *ReplicationRun {
- s.StageDetails = v
- return s
- }
- // SetState sets the State field's value.
- func (s *ReplicationRun) SetState(v string) *ReplicationRun {
- s.State = &v
- return s
- }
- // SetStatusMessage sets the StatusMessage field's value.
- func (s *ReplicationRun) SetStatusMessage(v string) *ReplicationRun {
- s.StatusMessage = &v
- return s
- }
- // SetType sets the Type field's value.
- func (s *ReplicationRun) SetType(v string) *ReplicationRun {
- s.Type = &v
- return s
- }
- // Details of the current stage of a replication run.
- type ReplicationRunStageDetails struct {
- _ struct{} `type:"structure"`
- // String describing the current stage of a replication run.
- Stage *string `locationName:"stage" type:"string"`
- // String describing the progress of the current stage of a replication run.
- StageProgress *string `locationName:"stageProgress" type:"string"`
- }
- // String returns the string representation
- func (s ReplicationRunStageDetails) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReplicationRunStageDetails) GoString() string {
- return s.String()
- }
- // SetStage sets the Stage field's value.
- func (s *ReplicationRunStageDetails) SetStage(v string) *ReplicationRunStageDetails {
- s.Stage = &v
- return s
- }
- // SetStageProgress sets the StageProgress field's value.
- func (s *ReplicationRunStageDetails) SetStageProgress(v string) *ReplicationRunStageDetails {
- s.StageProgress = &v
- return s
- }
- // Location of the Amazon S3 object in the customer's account.
- type S3Location struct {
- _ struct{} `type:"structure"`
- // Amazon S3 bucket name.
- Bucket *string `locationName:"bucket" type:"string"`
- // Amazon S3 bucket key.
- Key *string `locationName:"key" type:"string"`
- }
- // String returns the string representation
- func (s S3Location) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3Location) GoString() string {
- return s.String()
- }
- // SetBucket sets the Bucket field's value.
- func (s *S3Location) SetBucket(v string) *S3Location {
- s.Bucket = &v
- return s
- }
- // SetKey sets the Key field's value.
- func (s *S3Location) SetKey(v string) *S3Location {
- s.Key = &v
- return s
- }
- // Represents a server.
- type Server struct {
- _ struct{} `type:"structure"`
- // The identifier of the replication job.
- ReplicationJobId *string `locationName:"replicationJobId" type:"string"`
- // Indicates whether the replication job is deleted or failed.
- ReplicationJobTerminated *bool `locationName:"replicationJobTerminated" type:"boolean"`
- // The identifier of the server.
- ServerId *string `locationName:"serverId" type:"string"`
- // The type of server.
- ServerType *string `locationName:"serverType" type:"string" enum:"ServerType"`
- // Information about the VM server.
- VmServer *VmServer `locationName:"vmServer" type:"structure"`
- }
- // String returns the string representation
- func (s Server) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Server) GoString() string {
- return s.String()
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *Server) SetReplicationJobId(v string) *Server {
- s.ReplicationJobId = &v
- return s
- }
- // SetReplicationJobTerminated sets the ReplicationJobTerminated field's value.
- func (s *Server) SetReplicationJobTerminated(v bool) *Server {
- s.ReplicationJobTerminated = &v
- return s
- }
- // SetServerId sets the ServerId field's value.
- func (s *Server) SetServerId(v string) *Server {
- s.ServerId = &v
- return s
- }
- // SetServerType sets the ServerType field's value.
- func (s *Server) SetServerType(v string) *Server {
- s.ServerType = &v
- return s
- }
- // SetVmServer sets the VmServer field's value.
- func (s *Server) SetVmServer(v *VmServer) *Server {
- s.VmServer = v
- return s
- }
- // A logical grouping of servers.
- type ServerGroup struct {
- _ struct{} `type:"structure"`
- // Name of a server group.
- Name *string `locationName:"name" type:"string"`
- // Identifier of a server group.
- ServerGroupId *string `locationName:"serverGroupId" type:"string"`
- // List of servers belonging to a server group.
- ServerList []*Server `locationName:"serverList" type:"list"`
- }
- // String returns the string representation
- func (s ServerGroup) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServerGroup) GoString() string {
- return s.String()
- }
- // SetName sets the Name field's value.
- func (s *ServerGroup) SetName(v string) *ServerGroup {
- s.Name = &v
- return s
- }
- // SetServerGroupId sets the ServerGroupId field's value.
- func (s *ServerGroup) SetServerGroupId(v string) *ServerGroup {
- s.ServerGroupId = &v
- return s
- }
- // SetServerList sets the ServerList field's value.
- func (s *ServerGroup) SetServerList(v []*Server) *ServerGroup {
- s.ServerList = v
- return s
- }
- // Launch configuration for a server group.
- type ServerGroupLaunchConfiguration struct {
- _ struct{} `type:"structure"`
- // Launch order of servers in the server group.
- LaunchOrder *int64 `locationName:"launchOrder" type:"integer"`
- // Identifier of the server group the launch configuration is associated with.
- ServerGroupId *string `locationName:"serverGroupId" type:"string"`
- // Launch configuration for servers in the server group.
- ServerLaunchConfigurations []*ServerLaunchConfiguration `locationName:"serverLaunchConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s ServerGroupLaunchConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServerGroupLaunchConfiguration) GoString() string {
- return s.String()
- }
- // SetLaunchOrder sets the LaunchOrder field's value.
- func (s *ServerGroupLaunchConfiguration) SetLaunchOrder(v int64) *ServerGroupLaunchConfiguration {
- s.LaunchOrder = &v
- return s
- }
- // SetServerGroupId sets the ServerGroupId field's value.
- func (s *ServerGroupLaunchConfiguration) SetServerGroupId(v string) *ServerGroupLaunchConfiguration {
- s.ServerGroupId = &v
- return s
- }
- // SetServerLaunchConfigurations sets the ServerLaunchConfigurations field's value.
- func (s *ServerGroupLaunchConfiguration) SetServerLaunchConfigurations(v []*ServerLaunchConfiguration) *ServerGroupLaunchConfiguration {
- s.ServerLaunchConfigurations = v
- return s
- }
- // Replication configuration for a server group.
- type ServerGroupReplicationConfiguration struct {
- _ struct{} `type:"structure"`
- // Identifier of the server group this replication configuration is associated
- // with.
- ServerGroupId *string `locationName:"serverGroupId" type:"string"`
- // Replication configuration for servers in the server group.
- ServerReplicationConfigurations []*ServerReplicationConfiguration `locationName:"serverReplicationConfigurations" type:"list"`
- }
- // String returns the string representation
- func (s ServerGroupReplicationConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServerGroupReplicationConfiguration) GoString() string {
- return s.String()
- }
- // SetServerGroupId sets the ServerGroupId field's value.
- func (s *ServerGroupReplicationConfiguration) SetServerGroupId(v string) *ServerGroupReplicationConfiguration {
- s.ServerGroupId = &v
- return s
- }
- // SetServerReplicationConfigurations sets the ServerReplicationConfigurations field's value.
- func (s *ServerGroupReplicationConfiguration) SetServerReplicationConfigurations(v []*ServerReplicationConfiguration) *ServerGroupReplicationConfiguration {
- s.ServerReplicationConfigurations = v
- return s
- }
- // Launch configuration for a server.
- type ServerLaunchConfiguration struct {
- _ struct{} `type:"structure"`
- // If true, a publicly accessible IP address is created when launching the server.
- AssociatePublicIpAddress *bool `locationName:"associatePublicIpAddress" type:"boolean"`
- // Name of the EC2 SSH Key to be used for connecting to the launched server.
- Ec2KeyName *string `locationName:"ec2KeyName" type:"string"`
- // Instance type to be used for launching the server.
- InstanceType *string `locationName:"instanceType" type:"string"`
- // Logical ID of the server in the Amazon CloudFormation template.
- LogicalId *string `locationName:"logicalId" type:"string"`
- // Identifier of the security group that applies to the launched server.
- SecurityGroup *string `locationName:"securityGroup" type:"string"`
- // Identifier of the server the launch configuration is associated with.
- Server *Server `locationName:"server" type:"structure"`
- // Identifier of the subnet the server should be launched into.
- Subnet *string `locationName:"subnet" type:"string"`
- // Location of the user-data script to be executed when launching the server.
- UserData *UserData `locationName:"userData" type:"structure"`
- // Identifier of the VPC the server should be launched into.
- Vpc *string `locationName:"vpc" type:"string"`
- }
- // String returns the string representation
- func (s ServerLaunchConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServerLaunchConfiguration) GoString() string {
- return s.String()
- }
- // SetAssociatePublicIpAddress sets the AssociatePublicIpAddress field's value.
- func (s *ServerLaunchConfiguration) SetAssociatePublicIpAddress(v bool) *ServerLaunchConfiguration {
- s.AssociatePublicIpAddress = &v
- return s
- }
- // SetEc2KeyName sets the Ec2KeyName field's value.
- func (s *ServerLaunchConfiguration) SetEc2KeyName(v string) *ServerLaunchConfiguration {
- s.Ec2KeyName = &v
- return s
- }
- // SetInstanceType sets the InstanceType field's value.
- func (s *ServerLaunchConfiguration) SetInstanceType(v string) *ServerLaunchConfiguration {
- s.InstanceType = &v
- return s
- }
- // SetLogicalId sets the LogicalId field's value.
- func (s *ServerLaunchConfiguration) SetLogicalId(v string) *ServerLaunchConfiguration {
- s.LogicalId = &v
- return s
- }
- // SetSecurityGroup sets the SecurityGroup field's value.
- func (s *ServerLaunchConfiguration) SetSecurityGroup(v string) *ServerLaunchConfiguration {
- s.SecurityGroup = &v
- return s
- }
- // SetServer sets the Server field's value.
- func (s *ServerLaunchConfiguration) SetServer(v *Server) *ServerLaunchConfiguration {
- s.Server = v
- return s
- }
- // SetSubnet sets the Subnet field's value.
- func (s *ServerLaunchConfiguration) SetSubnet(v string) *ServerLaunchConfiguration {
- s.Subnet = &v
- return s
- }
- // SetUserData sets the UserData field's value.
- func (s *ServerLaunchConfiguration) SetUserData(v *UserData) *ServerLaunchConfiguration {
- s.UserData = v
- return s
- }
- // SetVpc sets the Vpc field's value.
- func (s *ServerLaunchConfiguration) SetVpc(v string) *ServerLaunchConfiguration {
- s.Vpc = &v
- return s
- }
- // Replication configuration of a server.
- type ServerReplicationConfiguration struct {
- _ struct{} `type:"structure"`
- // Identifier of the server this replication configuration is associated with.
- Server *Server `locationName:"server" type:"structure"`
- // Parameters for replicating the server.
- ServerReplicationParameters *ServerReplicationParameters `locationName:"serverReplicationParameters" type:"structure"`
- }
- // String returns the string representation
- func (s ServerReplicationConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServerReplicationConfiguration) GoString() string {
- return s.String()
- }
- // SetServer sets the Server field's value.
- func (s *ServerReplicationConfiguration) SetServer(v *Server) *ServerReplicationConfiguration {
- s.Server = v
- return s
- }
- // SetServerReplicationParameters sets the ServerReplicationParameters field's value.
- func (s *ServerReplicationConfiguration) SetServerReplicationParameters(v *ServerReplicationParameters) *ServerReplicationConfiguration {
- s.ServerReplicationParameters = v
- return s
- }
- // Replication parameters for replicating a server.
- type ServerReplicationParameters struct {
- _ struct{} `type:"structure"`
- // When true, the replication job produces encrypted AMIs. See also KmsKeyId
- // below.
- Encrypted *bool `locationName:"encrypted" type:"boolean"`
- // Frequency of creating replication jobs for the server.
- Frequency *int64 `locationName:"frequency" type:"integer"`
- // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
- // the following:
- //
- // KMS key ID
- //
- // * KMS key alias
- //
- // * ARN referring to KMS key ID
- //
- // * ARN referring to KMS key alias
- //
- // If encrypted is true
- KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
- // License type for creating a replication job for the server.
- LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
- // Number of recent AMIs to keep when creating a replication job for this server.
- NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
- RunOnce *bool `locationName:"runOnce" type:"boolean"`
- // Seed time for creating a replication job for the server.
- SeedTime *time.Time `locationName:"seedTime" type:"timestamp"`
- }
- // String returns the string representation
- func (s ServerReplicationParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServerReplicationParameters) GoString() string {
- return s.String()
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *ServerReplicationParameters) SetEncrypted(v bool) *ServerReplicationParameters {
- s.Encrypted = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *ServerReplicationParameters) SetFrequency(v int64) *ServerReplicationParameters {
- s.Frequency = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *ServerReplicationParameters) SetKmsKeyId(v string) *ServerReplicationParameters {
- s.KmsKeyId = &v
- return s
- }
- // SetLicenseType sets the LicenseType field's value.
- func (s *ServerReplicationParameters) SetLicenseType(v string) *ServerReplicationParameters {
- s.LicenseType = &v
- return s
- }
- // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
- func (s *ServerReplicationParameters) SetNumberOfRecentAmisToKeep(v int64) *ServerReplicationParameters {
- s.NumberOfRecentAmisToKeep = &v
- return s
- }
- // SetRunOnce sets the RunOnce field's value.
- func (s *ServerReplicationParameters) SetRunOnce(v bool) *ServerReplicationParameters {
- s.RunOnce = &v
- return s
- }
- // SetSeedTime sets the SeedTime field's value.
- func (s *ServerReplicationParameters) SetSeedTime(v time.Time) *ServerReplicationParameters {
- s.SeedTime = &v
- return s
- }
- type StartAppReplicationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application to replicate.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s StartAppReplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartAppReplicationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *StartAppReplicationInput) SetAppId(v string) *StartAppReplicationInput {
- s.AppId = &v
- return s
- }
- type StartAppReplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StartAppReplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartAppReplicationOutput) GoString() string {
- return s.String()
- }
- type StartOnDemandReplicationRunInput struct {
- _ struct{} `type:"structure"`
- // The description of the replication run.
- Description *string `locationName:"description" type:"string"`
- // The identifier of the replication job.
- //
- // ReplicationJobId is a required field
- ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StartOnDemandReplicationRunInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartOnDemandReplicationRunInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartOnDemandReplicationRunInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartOnDemandReplicationRunInput"}
- if s.ReplicationJobId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *StartOnDemandReplicationRunInput) SetDescription(v string) *StartOnDemandReplicationRunInput {
- s.Description = &v
- return s
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *StartOnDemandReplicationRunInput) SetReplicationJobId(v string) *StartOnDemandReplicationRunInput {
- s.ReplicationJobId = &v
- return s
- }
- type StartOnDemandReplicationRunOutput struct {
- _ struct{} `type:"structure"`
- // The identifier of the replication run.
- ReplicationRunId *string `locationName:"replicationRunId" type:"string"`
- }
- // String returns the string representation
- func (s StartOnDemandReplicationRunOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartOnDemandReplicationRunOutput) GoString() string {
- return s.String()
- }
- // SetReplicationRunId sets the ReplicationRunId field's value.
- func (s *StartOnDemandReplicationRunOutput) SetReplicationRunId(v string) *StartOnDemandReplicationRunOutput {
- s.ReplicationRunId = &v
- return s
- }
- type StopAppReplicationInput struct {
- _ struct{} `type:"structure"`
- // ID of the application to stop replicating.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s StopAppReplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopAppReplicationInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *StopAppReplicationInput) SetAppId(v string) *StopAppReplicationInput {
- s.AppId = &v
- return s
- }
- type StopAppReplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopAppReplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopAppReplicationOutput) GoString() string {
- return s.String()
- }
- // A label that can be assigned to an application.
- type Tag struct {
- _ struct{} `type:"structure"`
- // Tag key.
- Key *string `locationName:"key" type:"string"`
- // Tag value.
- Value *string `locationName:"value" type:"string"`
- }
- // String returns the string representation
- func (s Tag) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Tag) GoString() string {
- return s.String()
- }
- // SetKey sets the Key field's value.
- func (s *Tag) SetKey(v string) *Tag {
- s.Key = &v
- return s
- }
- // SetValue sets the Value field's value.
- func (s *Tag) SetValue(v string) *Tag {
- s.Value = &v
- return s
- }
- type TerminateAppInput struct {
- _ struct{} `type:"structure"`
- // ID of the application to terminate.
- AppId *string `locationName:"appId" type:"string"`
- }
- // String returns the string representation
- func (s TerminateAppInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TerminateAppInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *TerminateAppInput) SetAppId(v string) *TerminateAppInput {
- s.AppId = &v
- return s
- }
- type TerminateAppOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s TerminateAppOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TerminateAppOutput) GoString() string {
- return s.String()
- }
- type UpdateAppInput struct {
- _ struct{} `type:"structure"`
- // ID of the application to update.
- AppId *string `locationName:"appId" type:"string"`
- // New description of the application.
- Description *string `locationName:"description" type:"string"`
- // New name of the application.
- Name *string `locationName:"name" type:"string"`
- // Name of the service role in the customer's account used by AWS SMS.
- RoleName *string `locationName:"roleName" type:"string"`
- // List of server groups in the application to update.
- ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
- // List of tags to associate with the application.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s UpdateAppInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAppInput) GoString() string {
- return s.String()
- }
- // SetAppId sets the AppId field's value.
- func (s *UpdateAppInput) SetAppId(v string) *UpdateAppInput {
- s.AppId = &v
- return s
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateAppInput) SetDescription(v string) *UpdateAppInput {
- s.Description = &v
- return s
- }
- // SetName sets the Name field's value.
- func (s *UpdateAppInput) SetName(v string) *UpdateAppInput {
- s.Name = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *UpdateAppInput) SetRoleName(v string) *UpdateAppInput {
- s.RoleName = &v
- return s
- }
- // SetServerGroups sets the ServerGroups field's value.
- func (s *UpdateAppInput) SetServerGroups(v []*ServerGroup) *UpdateAppInput {
- s.ServerGroups = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *UpdateAppInput) SetTags(v []*Tag) *UpdateAppInput {
- s.Tags = v
- return s
- }
- type UpdateAppOutput struct {
- _ struct{} `type:"structure"`
- // Summary description of the application.
- AppSummary *AppSummary `locationName:"appSummary" type:"structure"`
- // List of updated server groups in the application.
- ServerGroups []*ServerGroup `locationName:"serverGroups" type:"list"`
- // List of tags associated with the application.
- Tags []*Tag `locationName:"tags" type:"list"`
- }
- // String returns the string representation
- func (s UpdateAppOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAppOutput) GoString() string {
- return s.String()
- }
- // SetAppSummary sets the AppSummary field's value.
- func (s *UpdateAppOutput) SetAppSummary(v *AppSummary) *UpdateAppOutput {
- s.AppSummary = v
- return s
- }
- // SetServerGroups sets the ServerGroups field's value.
- func (s *UpdateAppOutput) SetServerGroups(v []*ServerGroup) *UpdateAppOutput {
- s.ServerGroups = v
- return s
- }
- // SetTags sets the Tags field's value.
- func (s *UpdateAppOutput) SetTags(v []*Tag) *UpdateAppOutput {
- s.Tags = v
- return s
- }
- type UpdateReplicationJobInput struct {
- _ struct{} `type:"structure"`
- // The description of the replication job.
- Description *string `locationName:"description" type:"string"`
- // When true, the replication job produces encrypted AMIs . See also KmsKeyId
- // below.
- Encrypted *bool `locationName:"encrypted" type:"boolean"`
- // The time between consecutive replication runs, in hours.
- Frequency *int64 `locationName:"frequency" type:"integer"`
- // KMS key ID for replication jobs that produce encrypted AMIs. Can be any of
- // the following:
- //
- // KMS key ID
- //
- // * KMS key alias
- //
- // * ARN referring to KMS key ID
- //
- // * ARN referring to KMS key alias
- //
- // If encrypted is true
- KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
- // The license type to be used for the AMI created by a successful replication
- // run.
- LicenseType *string `locationName:"licenseType" type:"string" enum:"LicenseType"`
- // The start time of the next replication run.
- NextReplicationRunStartTime *time.Time `locationName:"nextReplicationRunStartTime" type:"timestamp"`
- // The maximum number of SMS-created AMIs to retain. The oldest will be deleted
- // once the maximum number is reached and a new AMI is created.
- NumberOfRecentAmisToKeep *int64 `locationName:"numberOfRecentAmisToKeep" type:"integer"`
- // The identifier of the replication job.
- //
- // ReplicationJobId is a required field
- ReplicationJobId *string `locationName:"replicationJobId" type:"string" required:"true"`
- // The name of the IAM role to be used by AWS SMS.
- RoleName *string `locationName:"roleName" type:"string"`
- }
- // String returns the string representation
- func (s UpdateReplicationJobInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateReplicationJobInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateReplicationJobInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateReplicationJobInput"}
- if s.ReplicationJobId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReplicationJobId"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetDescription sets the Description field's value.
- func (s *UpdateReplicationJobInput) SetDescription(v string) *UpdateReplicationJobInput {
- s.Description = &v
- return s
- }
- // SetEncrypted sets the Encrypted field's value.
- func (s *UpdateReplicationJobInput) SetEncrypted(v bool) *UpdateReplicationJobInput {
- s.Encrypted = &v
- return s
- }
- // SetFrequency sets the Frequency field's value.
- func (s *UpdateReplicationJobInput) SetFrequency(v int64) *UpdateReplicationJobInput {
- s.Frequency = &v
- return s
- }
- // SetKmsKeyId sets the KmsKeyId field's value.
- func (s *UpdateReplicationJobInput) SetKmsKeyId(v string) *UpdateReplicationJobInput {
- s.KmsKeyId = &v
- return s
- }
- // SetLicenseType sets the LicenseType field's value.
- func (s *UpdateReplicationJobInput) SetLicenseType(v string) *UpdateReplicationJobInput {
- s.LicenseType = &v
- return s
- }
- // SetNextReplicationRunStartTime sets the NextReplicationRunStartTime field's value.
- func (s *UpdateReplicationJobInput) SetNextReplicationRunStartTime(v time.Time) *UpdateReplicationJobInput {
- s.NextReplicationRunStartTime = &v
- return s
- }
- // SetNumberOfRecentAmisToKeep sets the NumberOfRecentAmisToKeep field's value.
- func (s *UpdateReplicationJobInput) SetNumberOfRecentAmisToKeep(v int64) *UpdateReplicationJobInput {
- s.NumberOfRecentAmisToKeep = &v
- return s
- }
- // SetReplicationJobId sets the ReplicationJobId field's value.
- func (s *UpdateReplicationJobInput) SetReplicationJobId(v string) *UpdateReplicationJobInput {
- s.ReplicationJobId = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *UpdateReplicationJobInput) SetRoleName(v string) *UpdateReplicationJobInput {
- s.RoleName = &v
- return s
- }
- type UpdateReplicationJobOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateReplicationJobOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateReplicationJobOutput) GoString() string {
- return s.String()
- }
- // A script that runs on first launch of an Amazon EC2 instance. Used for configuring
- // the server during launch.
- type UserData struct {
- _ struct{} `type:"structure"`
- // Amazon S3 location of the user-data script.
- S3Location *S3Location `locationName:"s3Location" type:"structure"`
- }
- // String returns the string representation
- func (s UserData) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UserData) GoString() string {
- return s.String()
- }
- // SetS3Location sets the S3Location field's value.
- func (s *UserData) SetS3Location(v *S3Location) *UserData {
- s.S3Location = v
- return s
- }
- // Represents a VM server.
- type VmServer struct {
- _ struct{} `type:"structure"`
- // The name of the VM manager.
- VmManagerName *string `locationName:"vmManagerName" type:"string"`
- // The type of VM management product.
- VmManagerType *string `locationName:"vmManagerType" type:"string" enum:"VmManagerType"`
- // The name of the VM.
- VmName *string `locationName:"vmName" type:"string"`
- // The VM folder path in the vCenter Server virtual machine inventory tree.
- VmPath *string `locationName:"vmPath" type:"string"`
- // Information about the VM server location.
- VmServerAddress *VmServerAddress `locationName:"vmServerAddress" type:"structure"`
- }
- // String returns the string representation
- func (s VmServer) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VmServer) GoString() string {
- return s.String()
- }
- // SetVmManagerName sets the VmManagerName field's value.
- func (s *VmServer) SetVmManagerName(v string) *VmServer {
- s.VmManagerName = &v
- return s
- }
- // SetVmManagerType sets the VmManagerType field's value.
- func (s *VmServer) SetVmManagerType(v string) *VmServer {
- s.VmManagerType = &v
- return s
- }
- // SetVmName sets the VmName field's value.
- func (s *VmServer) SetVmName(v string) *VmServer {
- s.VmName = &v
- return s
- }
- // SetVmPath sets the VmPath field's value.
- func (s *VmServer) SetVmPath(v string) *VmServer {
- s.VmPath = &v
- return s
- }
- // SetVmServerAddress sets the VmServerAddress field's value.
- func (s *VmServer) SetVmServerAddress(v *VmServerAddress) *VmServer {
- s.VmServerAddress = v
- return s
- }
- // Represents a VM server location.
- type VmServerAddress struct {
- _ struct{} `type:"structure"`
- // The identifier of the VM.
- VmId *string `locationName:"vmId" type:"string"`
- // The identifier of the VM manager.
- VmManagerId *string `locationName:"vmManagerId" type:"string"`
- }
- // String returns the string representation
- func (s VmServerAddress) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s VmServerAddress) GoString() string {
- return s.String()
- }
- // SetVmId sets the VmId field's value.
- func (s *VmServerAddress) SetVmId(v string) *VmServerAddress {
- s.VmId = &v
- return s
- }
- // SetVmManagerId sets the VmManagerId field's value.
- func (s *VmServerAddress) SetVmManagerId(v string) *VmServerAddress {
- s.VmManagerId = &v
- return s
- }
- const (
- // AppLaunchStatusReadyForConfiguration is a AppLaunchStatus enum value
- AppLaunchStatusReadyForConfiguration = "READY_FOR_CONFIGURATION"
- // AppLaunchStatusConfigurationInProgress is a AppLaunchStatus enum value
- AppLaunchStatusConfigurationInProgress = "CONFIGURATION_IN_PROGRESS"
- // AppLaunchStatusConfigurationInvalid is a AppLaunchStatus enum value
- AppLaunchStatusConfigurationInvalid = "CONFIGURATION_INVALID"
- // AppLaunchStatusReadyForLaunch is a AppLaunchStatus enum value
- AppLaunchStatusReadyForLaunch = "READY_FOR_LAUNCH"
- // AppLaunchStatusValidationInProgress is a AppLaunchStatus enum value
- AppLaunchStatusValidationInProgress = "VALIDATION_IN_PROGRESS"
- // AppLaunchStatusLaunchPending is a AppLaunchStatus enum value
- AppLaunchStatusLaunchPending = "LAUNCH_PENDING"
- // AppLaunchStatusLaunchInProgress is a AppLaunchStatus enum value
- AppLaunchStatusLaunchInProgress = "LAUNCH_IN_PROGRESS"
- // AppLaunchStatusLaunched is a AppLaunchStatus enum value
- AppLaunchStatusLaunched = "LAUNCHED"
- // AppLaunchStatusDeltaLaunchInProgress is a AppLaunchStatus enum value
- AppLaunchStatusDeltaLaunchInProgress = "DELTA_LAUNCH_IN_PROGRESS"
- // AppLaunchStatusDeltaLaunchFailed is a AppLaunchStatus enum value
- AppLaunchStatusDeltaLaunchFailed = "DELTA_LAUNCH_FAILED"
- // AppLaunchStatusLaunchFailed is a AppLaunchStatus enum value
- AppLaunchStatusLaunchFailed = "LAUNCH_FAILED"
- // AppLaunchStatusTerminateInProgress is a AppLaunchStatus enum value
- AppLaunchStatusTerminateInProgress = "TERMINATE_IN_PROGRESS"
- // AppLaunchStatusTerminateFailed is a AppLaunchStatus enum value
- AppLaunchStatusTerminateFailed = "TERMINATE_FAILED"
- // AppLaunchStatusTerminated is a AppLaunchStatus enum value
- AppLaunchStatusTerminated = "TERMINATED"
- )
- const (
- // AppReplicationStatusReadyForConfiguration is a AppReplicationStatus enum value
- AppReplicationStatusReadyForConfiguration = "READY_FOR_CONFIGURATION"
- // AppReplicationStatusConfigurationInProgress is a AppReplicationStatus enum value
- AppReplicationStatusConfigurationInProgress = "CONFIGURATION_IN_PROGRESS"
- // AppReplicationStatusConfigurationInvalid is a AppReplicationStatus enum value
- AppReplicationStatusConfigurationInvalid = "CONFIGURATION_INVALID"
- // AppReplicationStatusReadyForReplication is a AppReplicationStatus enum value
- AppReplicationStatusReadyForReplication = "READY_FOR_REPLICATION"
- // AppReplicationStatusValidationInProgress is a AppReplicationStatus enum value
- AppReplicationStatusValidationInProgress = "VALIDATION_IN_PROGRESS"
- // AppReplicationStatusReplicationPending is a AppReplicationStatus enum value
- AppReplicationStatusReplicationPending = "REPLICATION_PENDING"
- // AppReplicationStatusReplicationInProgress is a AppReplicationStatus enum value
- AppReplicationStatusReplicationInProgress = "REPLICATION_IN_PROGRESS"
- // AppReplicationStatusReplicated is a AppReplicationStatus enum value
- AppReplicationStatusReplicated = "REPLICATED"
- // AppReplicationStatusDeltaReplicationInProgress is a AppReplicationStatus enum value
- AppReplicationStatusDeltaReplicationInProgress = "DELTA_REPLICATION_IN_PROGRESS"
- // AppReplicationStatusDeltaReplicated is a AppReplicationStatus enum value
- AppReplicationStatusDeltaReplicated = "DELTA_REPLICATED"
- // AppReplicationStatusDeltaReplicationFailed is a AppReplicationStatus enum value
- AppReplicationStatusDeltaReplicationFailed = "DELTA_REPLICATION_FAILED"
- // AppReplicationStatusReplicationFailed is a AppReplicationStatus enum value
- AppReplicationStatusReplicationFailed = "REPLICATION_FAILED"
- // AppReplicationStatusReplicationStopping is a AppReplicationStatus enum value
- AppReplicationStatusReplicationStopping = "REPLICATION_STOPPING"
- // AppReplicationStatusReplicationStopFailed is a AppReplicationStatus enum value
- AppReplicationStatusReplicationStopFailed = "REPLICATION_STOP_FAILED"
- // AppReplicationStatusReplicationStopped is a AppReplicationStatus enum value
- AppReplicationStatusReplicationStopped = "REPLICATION_STOPPED"
- )
- const (
- // AppStatusCreating is a AppStatus enum value
- AppStatusCreating = "CREATING"
- // AppStatusActive is a AppStatus enum value
- AppStatusActive = "ACTIVE"
- // AppStatusUpdating is a AppStatus enum value
- AppStatusUpdating = "UPDATING"
- // AppStatusDeleting is a AppStatus enum value
- AppStatusDeleting = "DELETING"
- // AppStatusDeleted is a AppStatus enum value
- AppStatusDeleted = "DELETED"
- // AppStatusDeleteFailed is a AppStatus enum value
- AppStatusDeleteFailed = "DELETE_FAILED"
- )
- const (
- // ConnectorCapabilityVsphere is a ConnectorCapability enum value
- ConnectorCapabilityVsphere = "VSPHERE"
- // ConnectorCapabilityScvmm is a ConnectorCapability enum value
- ConnectorCapabilityScvmm = "SCVMM"
- // ConnectorCapabilityHypervManager is a ConnectorCapability enum value
- ConnectorCapabilityHypervManager = "HYPERV-MANAGER"
- // ConnectorCapabilitySnapshotBatching is a ConnectorCapability enum value
- ConnectorCapabilitySnapshotBatching = "SNAPSHOT_BATCHING"
- )
- const (
- // ConnectorStatusHealthy is a ConnectorStatus enum value
- ConnectorStatusHealthy = "HEALTHY"
- // ConnectorStatusUnhealthy is a ConnectorStatus enum value
- ConnectorStatusUnhealthy = "UNHEALTHY"
- )
- const (
- // LicenseTypeAws is a LicenseType enum value
- LicenseTypeAws = "AWS"
- // LicenseTypeByol is a LicenseType enum value
- LicenseTypeByol = "BYOL"
- )
- const (
- // OutputFormatJson is a OutputFormat enum value
- OutputFormatJson = "JSON"
- // OutputFormatYaml is a OutputFormat enum value
- OutputFormatYaml = "YAML"
- )
- const (
- // ReplicationJobStatePending is a ReplicationJobState enum value
- ReplicationJobStatePending = "PENDING"
- // ReplicationJobStateActive is a ReplicationJobState enum value
- ReplicationJobStateActive = "ACTIVE"
- // ReplicationJobStateFailed is a ReplicationJobState enum value
- ReplicationJobStateFailed = "FAILED"
- // ReplicationJobStateDeleting is a ReplicationJobState enum value
- ReplicationJobStateDeleting = "DELETING"
- // ReplicationJobStateDeleted is a ReplicationJobState enum value
- ReplicationJobStateDeleted = "DELETED"
- // ReplicationJobStateCompleted is a ReplicationJobState enum value
- ReplicationJobStateCompleted = "COMPLETED"
- // ReplicationJobStatePausedOnFailure is a ReplicationJobState enum value
- ReplicationJobStatePausedOnFailure = "PAUSED_ON_FAILURE"
- // ReplicationJobStateFailing is a ReplicationJobState enum value
- ReplicationJobStateFailing = "FAILING"
- )
- const (
- // ReplicationRunStatePending is a ReplicationRunState enum value
- ReplicationRunStatePending = "PENDING"
- // ReplicationRunStateMissed is a ReplicationRunState enum value
- ReplicationRunStateMissed = "MISSED"
- // ReplicationRunStateActive is a ReplicationRunState enum value
- ReplicationRunStateActive = "ACTIVE"
- // ReplicationRunStateFailed is a ReplicationRunState enum value
- ReplicationRunStateFailed = "FAILED"
- // ReplicationRunStateCompleted is a ReplicationRunState enum value
- ReplicationRunStateCompleted = "COMPLETED"
- // ReplicationRunStateDeleting is a ReplicationRunState enum value
- ReplicationRunStateDeleting = "DELETING"
- // ReplicationRunStateDeleted is a ReplicationRunState enum value
- ReplicationRunStateDeleted = "DELETED"
- )
- const (
- // ReplicationRunTypeOnDemand is a ReplicationRunType enum value
- ReplicationRunTypeOnDemand = "ON_DEMAND"
- // ReplicationRunTypeAutomatic is a ReplicationRunType enum value
- ReplicationRunTypeAutomatic = "AUTOMATIC"
- )
- const (
- // ServerCatalogStatusNotImported is a ServerCatalogStatus enum value
- ServerCatalogStatusNotImported = "NOT_IMPORTED"
- // ServerCatalogStatusImporting is a ServerCatalogStatus enum value
- ServerCatalogStatusImporting = "IMPORTING"
- // ServerCatalogStatusAvailable is a ServerCatalogStatus enum value
- ServerCatalogStatusAvailable = "AVAILABLE"
- // ServerCatalogStatusDeleted is a ServerCatalogStatus enum value
- ServerCatalogStatusDeleted = "DELETED"
- // ServerCatalogStatusExpired is a ServerCatalogStatus enum value
- ServerCatalogStatusExpired = "EXPIRED"
- )
- const (
- // ServerTypeVirtualMachine is a ServerType enum value
- ServerTypeVirtualMachine = "VIRTUAL_MACHINE"
- )
- const (
- // VmManagerTypeVsphere is a VmManagerType enum value
- VmManagerTypeVsphere = "VSPHERE"
- // VmManagerTypeScvmm is a VmManagerType enum value
- VmManagerTypeScvmm = "SCVMM"
- // VmManagerTypeHypervManager is a VmManagerType enum value
- VmManagerTypeHypervManager = "HYPERV-MANAGER"
- )
|