api.go 274 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package gamelift provides a client for Amazon GameLift.
  3. package gamelift
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. "github.com/aws/aws-sdk-go/private/protocol"
  10. "github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
  11. )
  12. const opCreateAlias = "CreateAlias"
  13. // CreateAliasRequest generates a "aws/request.Request" representing the
  14. // client's request for the CreateAlias operation. The "output" return
  15. // value can be used to capture response data after the request's "Send" method
  16. // is called.
  17. //
  18. // See CreateAlias for usage and error information.
  19. //
  20. // Creating a request object using this method should be used when you want to inject
  21. // custom logic into the request's lifecycle using a custom handler, or if you want to
  22. // access properties on the request object before or after sending the request. If
  23. // you just want the service response, call the CreateAlias method directly
  24. // instead.
  25. //
  26. // Note: You must call the "Send" method on the returned request object in order
  27. // to execute the request.
  28. //
  29. // // Example sending a request using the CreateAliasRequest method.
  30. // req, resp := client.CreateAliasRequest(params)
  31. //
  32. // err := req.Send()
  33. // if err == nil { // resp is now filled
  34. // fmt.Println(resp)
  35. // }
  36. //
  37. func (c *GameLift) CreateAliasRequest(input *CreateAliasInput) (req *request.Request, output *CreateAliasOutput) {
  38. op := &request.Operation{
  39. Name: opCreateAlias,
  40. HTTPMethod: "POST",
  41. HTTPPath: "/",
  42. }
  43. if input == nil {
  44. input = &CreateAliasInput{}
  45. }
  46. req = c.newRequest(op, input, output)
  47. output = &CreateAliasOutput{}
  48. req.Data = output
  49. return
  50. }
  51. // CreateAlias API operation for Amazon GameLift.
  52. //
  53. // Creates an alias for a fleet. You can use an alias to anonymize your fleet
  54. // by referencing an alias instead of a specific fleet when you create game
  55. // sessions. Amazon GameLift supports two types of routing strategies for aliases:
  56. // simple and terminal. Use a simple alias to point to an active fleet. Use
  57. // a terminal alias to display a message to incoming traffic instead of routing
  58. // players to an active fleet. This option is useful when a game server is no
  59. // longer supported but you want to provide better messaging than a standard
  60. // 404 error.
  61. //
  62. // To create a fleet alias, specify an alias name, routing strategy, and optional
  63. // description. If successful, a new alias record is returned, including an
  64. // alias ID, which you can reference when creating a game session. To reassign
  65. // the alias to another fleet ID, call UpdateAlias.
  66. //
  67. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  68. // with awserr.Error's Code and Message methods to get detailed information about
  69. // the error.
  70. //
  71. // See the AWS API reference guide for Amazon GameLift's
  72. // API operation CreateAlias for usage and error information.
  73. //
  74. // Returned Error Codes:
  75. // * UnauthorizedException
  76. // The client failed authentication. Clients should not retry such requests.
  77. //
  78. // * InvalidRequestException
  79. // One or more parameter values in the request are invalid. Correct the invalid
  80. // parameter values before retrying.
  81. //
  82. // * ConflictException
  83. // The requested operation would cause a conflict with the current state of
  84. // a service resource associated with the request. Resolve the conflict before
  85. // retrying this request.
  86. //
  87. // * InternalServiceException
  88. // The service encountered an unrecoverable internal failure while processing
  89. // the request. Clients can retry such requests immediately or after a waiting
  90. // period.
  91. //
  92. // * LimitExceededException
  93. // The requested operation would cause the resource to exceed the allowed service
  94. // limit. Resolve the issue before retrying.
  95. //
  96. func (c *GameLift) CreateAlias(input *CreateAliasInput) (*CreateAliasOutput, error) {
  97. req, out := c.CreateAliasRequest(input)
  98. err := req.Send()
  99. return out, err
  100. }
  101. const opCreateBuild = "CreateBuild"
  102. // CreateBuildRequest generates a "aws/request.Request" representing the
  103. // client's request for the CreateBuild operation. The "output" return
  104. // value can be used to capture response data after the request's "Send" method
  105. // is called.
  106. //
  107. // See CreateBuild for usage and error information.
  108. //
  109. // Creating a request object using this method should be used when you want to inject
  110. // custom logic into the request's lifecycle using a custom handler, or if you want to
  111. // access properties on the request object before or after sending the request. If
  112. // you just want the service response, call the CreateBuild method directly
  113. // instead.
  114. //
  115. // Note: You must call the "Send" method on the returned request object in order
  116. // to execute the request.
  117. //
  118. // // Example sending a request using the CreateBuildRequest method.
  119. // req, resp := client.CreateBuildRequest(params)
  120. //
  121. // err := req.Send()
  122. // if err == nil { // resp is now filled
  123. // fmt.Println(resp)
  124. // }
  125. //
  126. func (c *GameLift) CreateBuildRequest(input *CreateBuildInput) (req *request.Request, output *CreateBuildOutput) {
  127. op := &request.Operation{
  128. Name: opCreateBuild,
  129. HTTPMethod: "POST",
  130. HTTPPath: "/",
  131. }
  132. if input == nil {
  133. input = &CreateBuildInput{}
  134. }
  135. req = c.newRequest(op, input, output)
  136. output = &CreateBuildOutput{}
  137. req.Data = output
  138. return
  139. }
  140. // CreateBuild API operation for Amazon GameLift.
  141. //
  142. // Initializes a new build record and generates information required to upload
  143. // a game build to Amazon GameLift. Once the build record has been created and
  144. // its status is INITIALIZED, you can upload your game build.
  145. //
  146. // Do not use this API action unless you are using your own Amazon Simple Storage
  147. // Service (Amazon S3) client and need to manually upload your build files.
  148. // Instead, to create a build, use the CLI command upload-build, which creates
  149. // a new build record and uploads the build files in one step. (See the Amazon
  150. // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-intro.html)
  151. // help on packaging and uploading your build.)
  152. //
  153. // To create a new build, identify the operating system of the game server binaries.
  154. // All game servers in a build must use the same operating system. Optionally,
  155. // specify a build name and version; this metadata is stored with other properties
  156. // in the build record and is displayed in the GameLift console (it is not visible
  157. // to players). If successful, this action returns the newly created build record
  158. // along with the Amazon S3 storage location and AWS account credentials. Use
  159. // the location and credentials to upload your game build.
  160. //
  161. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  162. // with awserr.Error's Code and Message methods to get detailed information about
  163. // the error.
  164. //
  165. // See the AWS API reference guide for Amazon GameLift's
  166. // API operation CreateBuild for usage and error information.
  167. //
  168. // Returned Error Codes:
  169. // * UnauthorizedException
  170. // The client failed authentication. Clients should not retry such requests.
  171. //
  172. // * InvalidRequestException
  173. // One or more parameter values in the request are invalid. Correct the invalid
  174. // parameter values before retrying.
  175. //
  176. // * ConflictException
  177. // The requested operation would cause a conflict with the current state of
  178. // a service resource associated with the request. Resolve the conflict before
  179. // retrying this request.
  180. //
  181. // * InternalServiceException
  182. // The service encountered an unrecoverable internal failure while processing
  183. // the request. Clients can retry such requests immediately or after a waiting
  184. // period.
  185. //
  186. func (c *GameLift) CreateBuild(input *CreateBuildInput) (*CreateBuildOutput, error) {
  187. req, out := c.CreateBuildRequest(input)
  188. err := req.Send()
  189. return out, err
  190. }
  191. const opCreateFleet = "CreateFleet"
  192. // CreateFleetRequest generates a "aws/request.Request" representing the
  193. // client's request for the CreateFleet operation. The "output" return
  194. // value can be used to capture response data after the request's "Send" method
  195. // is called.
  196. //
  197. // See CreateFleet for usage and error information.
  198. //
  199. // Creating a request object using this method should be used when you want to inject
  200. // custom logic into the request's lifecycle using a custom handler, or if you want to
  201. // access properties on the request object before or after sending the request. If
  202. // you just want the service response, call the CreateFleet method directly
  203. // instead.
  204. //
  205. // Note: You must call the "Send" method on the returned request object in order
  206. // to execute the request.
  207. //
  208. // // Example sending a request using the CreateFleetRequest method.
  209. // req, resp := client.CreateFleetRequest(params)
  210. //
  211. // err := req.Send()
  212. // if err == nil { // resp is now filled
  213. // fmt.Println(resp)
  214. // }
  215. //
  216. func (c *GameLift) CreateFleetRequest(input *CreateFleetInput) (req *request.Request, output *CreateFleetOutput) {
  217. op := &request.Operation{
  218. Name: opCreateFleet,
  219. HTTPMethod: "POST",
  220. HTTPPath: "/",
  221. }
  222. if input == nil {
  223. input = &CreateFleetInput{}
  224. }
  225. req = c.newRequest(op, input, output)
  226. output = &CreateFleetOutput{}
  227. req.Data = output
  228. return
  229. }
  230. // CreateFleet API operation for Amazon GameLift.
  231. //
  232. // Creates a new fleet to run your game servers. A fleet is a set of Amazon
  233. // Elastic Compute Cloud (Amazon EC2) instances, each of which can run multiple
  234. // server processes to host game sessions. You configure a fleet to create instances
  235. // with certain hardware specifications (see Amazon EC2 Instance Types (http://aws.amazon.com/ec2/instance-types/)
  236. // for more information), and deploy a specified game build to each instance.
  237. // A newly created fleet passes through several statuses; once it reaches the
  238. // ACTIVE status, it can begin hosting game sessions.
  239. //
  240. // To create a new fleet, provide a fleet name, an EC2 instance type, and a
  241. // build ID of the game build to deploy. You can also configure the new fleet
  242. // with the following settings: (1) a runtime configuration describing what
  243. // server processes to run on each instance in the fleet (required to create
  244. // fleet), (2) access permissions for inbound traffic, (3) fleet-wide game session
  245. // protection, and (4) the location of default log files for GameLift to upload
  246. // and store.
  247. //
  248. // If the CreateFleet call is successful, Amazon GameLift performs the following
  249. // tasks:
  250. //
  251. // * Creates a fleet record and sets the status to NEW (followed by other
  252. // statuses as the fleet is activated).
  253. //
  254. // * Sets the fleet's capacity to 1 "desired", which causes GameLift to start
  255. // one new EC2 instance.
  256. //
  257. // * Starts launching server processes on the instance. If the fleet is configured
  258. // to run multiple server processes per instance, GameLift staggers each
  259. // launch by a few seconds.
  260. //
  261. // * Begins writing events to the fleet event log, which can be accessed
  262. // in the GameLift console.
  263. //
  264. // * Sets the fleet's status to ACTIVE once one server process in the fleet
  265. // is ready to host a game session.
  266. //
  267. // After a fleet is created, use the following actions to change fleet properties
  268. // and configuration:
  269. //
  270. // * UpdateFleetAttributes -- Update fleet metadata, including name and description.
  271. //
  272. // * UpdateFleetCapacity -- Increase or decrease the number of instances
  273. // you want the fleet to maintain.
  274. //
  275. // * UpdateFleetPortSettings -- Change the IP address and port ranges that
  276. // allow access to incoming traffic.
  277. //
  278. // * UpdateRuntimeConfiguration -- Change how server processes are launched
  279. // in the fleet, including launch path, launch parameters, and the number
  280. // of concurrent processes.
  281. //
  282. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  283. // with awserr.Error's Code and Message methods to get detailed information about
  284. // the error.
  285. //
  286. // See the AWS API reference guide for Amazon GameLift's
  287. // API operation CreateFleet for usage and error information.
  288. //
  289. // Returned Error Codes:
  290. // * InternalServiceException
  291. // The service encountered an unrecoverable internal failure while processing
  292. // the request. Clients can retry such requests immediately or after a waiting
  293. // period.
  294. //
  295. // * NotFoundException
  296. // A service resource associated with the request could not be found. Clients
  297. // should not retry such requests.
  298. //
  299. // * ConflictException
  300. // The requested operation would cause a conflict with the current state of
  301. // a service resource associated with the request. Resolve the conflict before
  302. // retrying this request.
  303. //
  304. // * LimitExceededException
  305. // The requested operation would cause the resource to exceed the allowed service
  306. // limit. Resolve the issue before retrying.
  307. //
  308. // * InvalidRequestException
  309. // One or more parameter values in the request are invalid. Correct the invalid
  310. // parameter values before retrying.
  311. //
  312. // * UnauthorizedException
  313. // The client failed authentication. Clients should not retry such requests.
  314. //
  315. func (c *GameLift) CreateFleet(input *CreateFleetInput) (*CreateFleetOutput, error) {
  316. req, out := c.CreateFleetRequest(input)
  317. err := req.Send()
  318. return out, err
  319. }
  320. const opCreateGameSession = "CreateGameSession"
  321. // CreateGameSessionRequest generates a "aws/request.Request" representing the
  322. // client's request for the CreateGameSession operation. The "output" return
  323. // value can be used to capture response data after the request's "Send" method
  324. // is called.
  325. //
  326. // See CreateGameSession for usage and error information.
  327. //
  328. // Creating a request object using this method should be used when you want to inject
  329. // custom logic into the request's lifecycle using a custom handler, or if you want to
  330. // access properties on the request object before or after sending the request. If
  331. // you just want the service response, call the CreateGameSession method directly
  332. // instead.
  333. //
  334. // Note: You must call the "Send" method on the returned request object in order
  335. // to execute the request.
  336. //
  337. // // Example sending a request using the CreateGameSessionRequest method.
  338. // req, resp := client.CreateGameSessionRequest(params)
  339. //
  340. // err := req.Send()
  341. // if err == nil { // resp is now filled
  342. // fmt.Println(resp)
  343. // }
  344. //
  345. func (c *GameLift) CreateGameSessionRequest(input *CreateGameSessionInput) (req *request.Request, output *CreateGameSessionOutput) {
  346. op := &request.Operation{
  347. Name: opCreateGameSession,
  348. HTTPMethod: "POST",
  349. HTTPPath: "/",
  350. }
  351. if input == nil {
  352. input = &CreateGameSessionInput{}
  353. }
  354. req = c.newRequest(op, input, output)
  355. output = &CreateGameSessionOutput{}
  356. req.Data = output
  357. return
  358. }
  359. // CreateGameSession API operation for Amazon GameLift.
  360. //
  361. // Creates a multiplayer game session for players. This action creates a game
  362. // session record and assigns the new session to an instance in the specified
  363. // fleet, which initializes a new server process to host the game session. A
  364. // fleet must be in an ACTIVE status before a game session can be created in
  365. // it.
  366. //
  367. // To create a game session, specify either a fleet ID or an alias ID and indicate
  368. // the maximum number of players the game session allows. You can also provide
  369. // a name and a set of properties for your game (optional). If successful, a
  370. // GameSession object is returned containing session properties, including an
  371. // IP address. By default, newly created game sessions are set to accept adding
  372. // any new players to the game session. Use UpdateGameSession to change the
  373. // creation policy.
  374. //
  375. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  376. // with awserr.Error's Code and Message methods to get detailed information about
  377. // the error.
  378. //
  379. // See the AWS API reference guide for Amazon GameLift's
  380. // API operation CreateGameSession for usage and error information.
  381. //
  382. // Returned Error Codes:
  383. // * ConflictException
  384. // The requested operation would cause a conflict with the current state of
  385. // a service resource associated with the request. Resolve the conflict before
  386. // retrying this request.
  387. //
  388. // * InternalServiceException
  389. // The service encountered an unrecoverable internal failure while processing
  390. // the request. Clients can retry such requests immediately or after a waiting
  391. // period.
  392. //
  393. // * UnauthorizedException
  394. // The client failed authentication. Clients should not retry such requests.
  395. //
  396. // * InvalidFleetStatusException
  397. // The requested operation would cause a conflict with the current state of
  398. // a resource associated with the request and/or the fleet. Resolve the conflict
  399. // before retrying.
  400. //
  401. // * TerminalRoutingStrategyException
  402. // The service is unable to resolve the routing for a particular alias because
  403. // it has a terminal RoutingStrategy associated with it. The message returned
  404. // in this exception is the message defined in the routing strategy itself.
  405. // Such requests should only be retried if the routing strategy for the specified
  406. // alias is modified.
  407. //
  408. // * InvalidRequestException
  409. // One or more parameter values in the request are invalid. Correct the invalid
  410. // parameter values before retrying.
  411. //
  412. // * NotFoundException
  413. // A service resource associated with the request could not be found. Clients
  414. // should not retry such requests.
  415. //
  416. // * FleetCapacityExceededException
  417. // The specified fleet has no available instances to fulfill a CreateGameSession
  418. // request. Clients can retry such requests immediately or after a waiting period.
  419. //
  420. // * LimitExceededException
  421. // The requested operation would cause the resource to exceed the allowed service
  422. // limit. Resolve the issue before retrying.
  423. //
  424. // * IdempotentParameterMismatchException
  425. // A game session with this custom ID string already exists in this fleet. Resolve
  426. // this conflict before retrying this request.
  427. //
  428. func (c *GameLift) CreateGameSession(input *CreateGameSessionInput) (*CreateGameSessionOutput, error) {
  429. req, out := c.CreateGameSessionRequest(input)
  430. err := req.Send()
  431. return out, err
  432. }
  433. const opCreatePlayerSession = "CreatePlayerSession"
  434. // CreatePlayerSessionRequest generates a "aws/request.Request" representing the
  435. // client's request for the CreatePlayerSession operation. The "output" return
  436. // value can be used to capture response data after the request's "Send" method
  437. // is called.
  438. //
  439. // See CreatePlayerSession for usage and error information.
  440. //
  441. // Creating a request object using this method should be used when you want to inject
  442. // custom logic into the request's lifecycle using a custom handler, or if you want to
  443. // access properties on the request object before or after sending the request. If
  444. // you just want the service response, call the CreatePlayerSession method directly
  445. // instead.
  446. //
  447. // Note: You must call the "Send" method on the returned request object in order
  448. // to execute the request.
  449. //
  450. // // Example sending a request using the CreatePlayerSessionRequest method.
  451. // req, resp := client.CreatePlayerSessionRequest(params)
  452. //
  453. // err := req.Send()
  454. // if err == nil { // resp is now filled
  455. // fmt.Println(resp)
  456. // }
  457. //
  458. func (c *GameLift) CreatePlayerSessionRequest(input *CreatePlayerSessionInput) (req *request.Request, output *CreatePlayerSessionOutput) {
  459. op := &request.Operation{
  460. Name: opCreatePlayerSession,
  461. HTTPMethod: "POST",
  462. HTTPPath: "/",
  463. }
  464. if input == nil {
  465. input = &CreatePlayerSessionInput{}
  466. }
  467. req = c.newRequest(op, input, output)
  468. output = &CreatePlayerSessionOutput{}
  469. req.Data = output
  470. return
  471. }
  472. // CreatePlayerSession API operation for Amazon GameLift.
  473. //
  474. // Adds a player to a game session and creates a player session record. A game
  475. // session must be in an ACTIVE status, have a creation policy of ALLOW_ALL,
  476. // and have an open player slot before players can be added to the session.
  477. //
  478. // To create a player session, specify a game session ID and player ID. If successful,
  479. // the player is added to the game session and a new PlayerSession object is
  480. // returned.
  481. //
  482. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  483. // with awserr.Error's Code and Message methods to get detailed information about
  484. // the error.
  485. //
  486. // See the AWS API reference guide for Amazon GameLift's
  487. // API operation CreatePlayerSession for usage and error information.
  488. //
  489. // Returned Error Codes:
  490. // * InternalServiceException
  491. // The service encountered an unrecoverable internal failure while processing
  492. // the request. Clients can retry such requests immediately or after a waiting
  493. // period.
  494. //
  495. // * UnauthorizedException
  496. // The client failed authentication. Clients should not retry such requests.
  497. //
  498. // * InvalidGameSessionStatusException
  499. // The requested operation would cause a conflict with the current state of
  500. // a resource associated with the request and/or the game instance. Resolve
  501. // the conflict before retrying.
  502. //
  503. // * GameSessionFullException
  504. // The game instance is currently full and cannot allow the requested player(s)
  505. // to join. Clients can retry such requests immediately or after a waiting period.
  506. //
  507. // * TerminalRoutingStrategyException
  508. // The service is unable to resolve the routing for a particular alias because
  509. // it has a terminal RoutingStrategy associated with it. The message returned
  510. // in this exception is the message defined in the routing strategy itself.
  511. // Such requests should only be retried if the routing strategy for the specified
  512. // alias is modified.
  513. //
  514. // * InvalidRequestException
  515. // One or more parameter values in the request are invalid. Correct the invalid
  516. // parameter values before retrying.
  517. //
  518. // * NotFoundException
  519. // A service resource associated with the request could not be found. Clients
  520. // should not retry such requests.
  521. //
  522. func (c *GameLift) CreatePlayerSession(input *CreatePlayerSessionInput) (*CreatePlayerSessionOutput, error) {
  523. req, out := c.CreatePlayerSessionRequest(input)
  524. err := req.Send()
  525. return out, err
  526. }
  527. const opCreatePlayerSessions = "CreatePlayerSessions"
  528. // CreatePlayerSessionsRequest generates a "aws/request.Request" representing the
  529. // client's request for the CreatePlayerSessions operation. The "output" return
  530. // value can be used to capture response data after the request's "Send" method
  531. // is called.
  532. //
  533. // See CreatePlayerSessions for usage and error information.
  534. //
  535. // Creating a request object using this method should be used when you want to inject
  536. // custom logic into the request's lifecycle using a custom handler, or if you want to
  537. // access properties on the request object before or after sending the request. If
  538. // you just want the service response, call the CreatePlayerSessions method directly
  539. // instead.
  540. //
  541. // Note: You must call the "Send" method on the returned request object in order
  542. // to execute the request.
  543. //
  544. // // Example sending a request using the CreatePlayerSessionsRequest method.
  545. // req, resp := client.CreatePlayerSessionsRequest(params)
  546. //
  547. // err := req.Send()
  548. // if err == nil { // resp is now filled
  549. // fmt.Println(resp)
  550. // }
  551. //
  552. func (c *GameLift) CreatePlayerSessionsRequest(input *CreatePlayerSessionsInput) (req *request.Request, output *CreatePlayerSessionsOutput) {
  553. op := &request.Operation{
  554. Name: opCreatePlayerSessions,
  555. HTTPMethod: "POST",
  556. HTTPPath: "/",
  557. }
  558. if input == nil {
  559. input = &CreatePlayerSessionsInput{}
  560. }
  561. req = c.newRequest(op, input, output)
  562. output = &CreatePlayerSessionsOutput{}
  563. req.Data = output
  564. return
  565. }
  566. // CreatePlayerSessions API operation for Amazon GameLift.
  567. //
  568. // Adds a group of players to a game session. Similar to CreatePlayerSession,
  569. // this action allows you to add multiple players in a single call, which is
  570. // useful for games that provide party and/or matchmaking features. A game session
  571. // must be in an ACTIVE status, have a creation policy of ALLOW_ALL, and have
  572. // an open player slot before players can be added to the session.
  573. //
  574. // To create player sessions, specify a game session ID and a list of player
  575. // IDs. If successful, the players are added to the game session and a set of
  576. // new PlayerSession objects is returned.
  577. //
  578. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  579. // with awserr.Error's Code and Message methods to get detailed information about
  580. // the error.
  581. //
  582. // See the AWS API reference guide for Amazon GameLift's
  583. // API operation CreatePlayerSessions for usage and error information.
  584. //
  585. // Returned Error Codes:
  586. // * InternalServiceException
  587. // The service encountered an unrecoverable internal failure while processing
  588. // the request. Clients can retry such requests immediately or after a waiting
  589. // period.
  590. //
  591. // * UnauthorizedException
  592. // The client failed authentication. Clients should not retry such requests.
  593. //
  594. // * InvalidGameSessionStatusException
  595. // The requested operation would cause a conflict with the current state of
  596. // a resource associated with the request and/or the game instance. Resolve
  597. // the conflict before retrying.
  598. //
  599. // * GameSessionFullException
  600. // The game instance is currently full and cannot allow the requested player(s)
  601. // to join. Clients can retry such requests immediately or after a waiting period.
  602. //
  603. // * TerminalRoutingStrategyException
  604. // The service is unable to resolve the routing for a particular alias because
  605. // it has a terminal RoutingStrategy associated with it. The message returned
  606. // in this exception is the message defined in the routing strategy itself.
  607. // Such requests should only be retried if the routing strategy for the specified
  608. // alias is modified.
  609. //
  610. // * InvalidRequestException
  611. // One or more parameter values in the request are invalid. Correct the invalid
  612. // parameter values before retrying.
  613. //
  614. // * NotFoundException
  615. // A service resource associated with the request could not be found. Clients
  616. // should not retry such requests.
  617. //
  618. func (c *GameLift) CreatePlayerSessions(input *CreatePlayerSessionsInput) (*CreatePlayerSessionsOutput, error) {
  619. req, out := c.CreatePlayerSessionsRequest(input)
  620. err := req.Send()
  621. return out, err
  622. }
  623. const opDeleteAlias = "DeleteAlias"
  624. // DeleteAliasRequest generates a "aws/request.Request" representing the
  625. // client's request for the DeleteAlias operation. The "output" return
  626. // value can be used to capture response data after the request's "Send" method
  627. // is called.
  628. //
  629. // See DeleteAlias for usage and error information.
  630. //
  631. // Creating a request object using this method should be used when you want to inject
  632. // custom logic into the request's lifecycle using a custom handler, or if you want to
  633. // access properties on the request object before or after sending the request. If
  634. // you just want the service response, call the DeleteAlias method directly
  635. // instead.
  636. //
  637. // Note: You must call the "Send" method on the returned request object in order
  638. // to execute the request.
  639. //
  640. // // Example sending a request using the DeleteAliasRequest method.
  641. // req, resp := client.DeleteAliasRequest(params)
  642. //
  643. // err := req.Send()
  644. // if err == nil { // resp is now filled
  645. // fmt.Println(resp)
  646. // }
  647. //
  648. func (c *GameLift) DeleteAliasRequest(input *DeleteAliasInput) (req *request.Request, output *DeleteAliasOutput) {
  649. op := &request.Operation{
  650. Name: opDeleteAlias,
  651. HTTPMethod: "POST",
  652. HTTPPath: "/",
  653. }
  654. if input == nil {
  655. input = &DeleteAliasInput{}
  656. }
  657. req = c.newRequest(op, input, output)
  658. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  659. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  660. output = &DeleteAliasOutput{}
  661. req.Data = output
  662. return
  663. }
  664. // DeleteAlias API operation for Amazon GameLift.
  665. //
  666. // Deletes an alias. This action removes all record of the alias; game clients
  667. // attempting to access a server process using the deleted alias receive an
  668. // error. To delete an alias, specify the alias ID to be deleted.
  669. //
  670. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  671. // with awserr.Error's Code and Message methods to get detailed information about
  672. // the error.
  673. //
  674. // See the AWS API reference guide for Amazon GameLift's
  675. // API operation DeleteAlias for usage and error information.
  676. //
  677. // Returned Error Codes:
  678. // * UnauthorizedException
  679. // The client failed authentication. Clients should not retry such requests.
  680. //
  681. // * NotFoundException
  682. // A service resource associated with the request could not be found. Clients
  683. // should not retry such requests.
  684. //
  685. // * InvalidRequestException
  686. // One or more parameter values in the request are invalid. Correct the invalid
  687. // parameter values before retrying.
  688. //
  689. // * InternalServiceException
  690. // The service encountered an unrecoverable internal failure while processing
  691. // the request. Clients can retry such requests immediately or after a waiting
  692. // period.
  693. //
  694. func (c *GameLift) DeleteAlias(input *DeleteAliasInput) (*DeleteAliasOutput, error) {
  695. req, out := c.DeleteAliasRequest(input)
  696. err := req.Send()
  697. return out, err
  698. }
  699. const opDeleteBuild = "DeleteBuild"
  700. // DeleteBuildRequest generates a "aws/request.Request" representing the
  701. // client's request for the DeleteBuild operation. The "output" return
  702. // value can be used to capture response data after the request's "Send" method
  703. // is called.
  704. //
  705. // See DeleteBuild for usage and error information.
  706. //
  707. // Creating a request object using this method should be used when you want to inject
  708. // custom logic into the request's lifecycle using a custom handler, or if you want to
  709. // access properties on the request object before or after sending the request. If
  710. // you just want the service response, call the DeleteBuild method directly
  711. // instead.
  712. //
  713. // Note: You must call the "Send" method on the returned request object in order
  714. // to execute the request.
  715. //
  716. // // Example sending a request using the DeleteBuildRequest method.
  717. // req, resp := client.DeleteBuildRequest(params)
  718. //
  719. // err := req.Send()
  720. // if err == nil { // resp is now filled
  721. // fmt.Println(resp)
  722. // }
  723. //
  724. func (c *GameLift) DeleteBuildRequest(input *DeleteBuildInput) (req *request.Request, output *DeleteBuildOutput) {
  725. op := &request.Operation{
  726. Name: opDeleteBuild,
  727. HTTPMethod: "POST",
  728. HTTPPath: "/",
  729. }
  730. if input == nil {
  731. input = &DeleteBuildInput{}
  732. }
  733. req = c.newRequest(op, input, output)
  734. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  735. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  736. output = &DeleteBuildOutput{}
  737. req.Data = output
  738. return
  739. }
  740. // DeleteBuild API operation for Amazon GameLift.
  741. //
  742. // Deletes a build. This action permanently deletes the build record and any
  743. // uploaded build files.
  744. //
  745. // To delete a build, specify its ID. Deleting a build does not affect the status
  746. // of any active fleets using the build, but you can no longer create new fleets
  747. // with the deleted build.
  748. //
  749. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  750. // with awserr.Error's Code and Message methods to get detailed information about
  751. // the error.
  752. //
  753. // See the AWS API reference guide for Amazon GameLift's
  754. // API operation DeleteBuild for usage and error information.
  755. //
  756. // Returned Error Codes:
  757. // * UnauthorizedException
  758. // The client failed authentication. Clients should not retry such requests.
  759. //
  760. // * NotFoundException
  761. // A service resource associated with the request could not be found. Clients
  762. // should not retry such requests.
  763. //
  764. // * InternalServiceException
  765. // The service encountered an unrecoverable internal failure while processing
  766. // the request. Clients can retry such requests immediately or after a waiting
  767. // period.
  768. //
  769. // * InvalidRequestException
  770. // One or more parameter values in the request are invalid. Correct the invalid
  771. // parameter values before retrying.
  772. //
  773. func (c *GameLift) DeleteBuild(input *DeleteBuildInput) (*DeleteBuildOutput, error) {
  774. req, out := c.DeleteBuildRequest(input)
  775. err := req.Send()
  776. return out, err
  777. }
  778. const opDeleteFleet = "DeleteFleet"
  779. // DeleteFleetRequest generates a "aws/request.Request" representing the
  780. // client's request for the DeleteFleet operation. The "output" return
  781. // value can be used to capture response data after the request's "Send" method
  782. // is called.
  783. //
  784. // See DeleteFleet for usage and error information.
  785. //
  786. // Creating a request object using this method should be used when you want to inject
  787. // custom logic into the request's lifecycle using a custom handler, or if you want to
  788. // access properties on the request object before or after sending the request. If
  789. // you just want the service response, call the DeleteFleet method directly
  790. // instead.
  791. //
  792. // Note: You must call the "Send" method on the returned request object in order
  793. // to execute the request.
  794. //
  795. // // Example sending a request using the DeleteFleetRequest method.
  796. // req, resp := client.DeleteFleetRequest(params)
  797. //
  798. // err := req.Send()
  799. // if err == nil { // resp is now filled
  800. // fmt.Println(resp)
  801. // }
  802. //
  803. func (c *GameLift) DeleteFleetRequest(input *DeleteFleetInput) (req *request.Request, output *DeleteFleetOutput) {
  804. op := &request.Operation{
  805. Name: opDeleteFleet,
  806. HTTPMethod: "POST",
  807. HTTPPath: "/",
  808. }
  809. if input == nil {
  810. input = &DeleteFleetInput{}
  811. }
  812. req = c.newRequest(op, input, output)
  813. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  814. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  815. output = &DeleteFleetOutput{}
  816. req.Data = output
  817. return
  818. }
  819. // DeleteFleet API operation for Amazon GameLift.
  820. //
  821. // Deletes everything related to a fleet. Before deleting a fleet, you must
  822. // set the fleet's desired capacity to zero. See UpdateFleetCapacity.
  823. //
  824. // This action removes the fleet's resources and the fleet record. Once a fleet
  825. // is deleted, you can no longer use that fleet.
  826. //
  827. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  828. // with awserr.Error's Code and Message methods to get detailed information about
  829. // the error.
  830. //
  831. // See the AWS API reference guide for Amazon GameLift's
  832. // API operation DeleteFleet for usage and error information.
  833. //
  834. // Returned Error Codes:
  835. // * NotFoundException
  836. // A service resource associated with the request could not be found. Clients
  837. // should not retry such requests.
  838. //
  839. // * InternalServiceException
  840. // The service encountered an unrecoverable internal failure while processing
  841. // the request. Clients can retry such requests immediately or after a waiting
  842. // period.
  843. //
  844. // * InvalidFleetStatusException
  845. // The requested operation would cause a conflict with the current state of
  846. // a resource associated with the request and/or the fleet. Resolve the conflict
  847. // before retrying.
  848. //
  849. // * UnauthorizedException
  850. // The client failed authentication. Clients should not retry such requests.
  851. //
  852. // * InvalidRequestException
  853. // One or more parameter values in the request are invalid. Correct the invalid
  854. // parameter values before retrying.
  855. //
  856. func (c *GameLift) DeleteFleet(input *DeleteFleetInput) (*DeleteFleetOutput, error) {
  857. req, out := c.DeleteFleetRequest(input)
  858. err := req.Send()
  859. return out, err
  860. }
  861. const opDeleteScalingPolicy = "DeleteScalingPolicy"
  862. // DeleteScalingPolicyRequest generates a "aws/request.Request" representing the
  863. // client's request for the DeleteScalingPolicy operation. The "output" return
  864. // value can be used to capture response data after the request's "Send" method
  865. // is called.
  866. //
  867. // See DeleteScalingPolicy for usage and error information.
  868. //
  869. // Creating a request object using this method should be used when you want to inject
  870. // custom logic into the request's lifecycle using a custom handler, or if you want to
  871. // access properties on the request object before or after sending the request. If
  872. // you just want the service response, call the DeleteScalingPolicy method directly
  873. // instead.
  874. //
  875. // Note: You must call the "Send" method on the returned request object in order
  876. // to execute the request.
  877. //
  878. // // Example sending a request using the DeleteScalingPolicyRequest method.
  879. // req, resp := client.DeleteScalingPolicyRequest(params)
  880. //
  881. // err := req.Send()
  882. // if err == nil { // resp is now filled
  883. // fmt.Println(resp)
  884. // }
  885. //
  886. func (c *GameLift) DeleteScalingPolicyRequest(input *DeleteScalingPolicyInput) (req *request.Request, output *DeleteScalingPolicyOutput) {
  887. op := &request.Operation{
  888. Name: opDeleteScalingPolicy,
  889. HTTPMethod: "POST",
  890. HTTPPath: "/",
  891. }
  892. if input == nil {
  893. input = &DeleteScalingPolicyInput{}
  894. }
  895. req = c.newRequest(op, input, output)
  896. req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
  897. req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
  898. output = &DeleteScalingPolicyOutput{}
  899. req.Data = output
  900. return
  901. }
  902. // DeleteScalingPolicy API operation for Amazon GameLift.
  903. //
  904. // Deletes a fleet scaling policy. This action means that the policy is no longer
  905. // in force and removes all record of it. To delete a scaling policy, specify
  906. // both the scaling policy name and the fleet ID it is associated with.
  907. //
  908. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  909. // with awserr.Error's Code and Message methods to get detailed information about
  910. // the error.
  911. //
  912. // See the AWS API reference guide for Amazon GameLift's
  913. // API operation DeleteScalingPolicy for usage and error information.
  914. //
  915. // Returned Error Codes:
  916. // * InternalServiceException
  917. // The service encountered an unrecoverable internal failure while processing
  918. // the request. Clients can retry such requests immediately or after a waiting
  919. // period.
  920. //
  921. // * InvalidRequestException
  922. // One or more parameter values in the request are invalid. Correct the invalid
  923. // parameter values before retrying.
  924. //
  925. // * UnauthorizedException
  926. // The client failed authentication. Clients should not retry such requests.
  927. //
  928. // * NotFoundException
  929. // A service resource associated with the request could not be found. Clients
  930. // should not retry such requests.
  931. //
  932. func (c *GameLift) DeleteScalingPolicy(input *DeleteScalingPolicyInput) (*DeleteScalingPolicyOutput, error) {
  933. req, out := c.DeleteScalingPolicyRequest(input)
  934. err := req.Send()
  935. return out, err
  936. }
  937. const opDescribeAlias = "DescribeAlias"
  938. // DescribeAliasRequest generates a "aws/request.Request" representing the
  939. // client's request for the DescribeAlias operation. The "output" return
  940. // value can be used to capture response data after the request's "Send" method
  941. // is called.
  942. //
  943. // See DescribeAlias for usage and error information.
  944. //
  945. // Creating a request object using this method should be used when you want to inject
  946. // custom logic into the request's lifecycle using a custom handler, or if you want to
  947. // access properties on the request object before or after sending the request. If
  948. // you just want the service response, call the DescribeAlias method directly
  949. // instead.
  950. //
  951. // Note: You must call the "Send" method on the returned request object in order
  952. // to execute the request.
  953. //
  954. // // Example sending a request using the DescribeAliasRequest method.
  955. // req, resp := client.DescribeAliasRequest(params)
  956. //
  957. // err := req.Send()
  958. // if err == nil { // resp is now filled
  959. // fmt.Println(resp)
  960. // }
  961. //
  962. func (c *GameLift) DescribeAliasRequest(input *DescribeAliasInput) (req *request.Request, output *DescribeAliasOutput) {
  963. op := &request.Operation{
  964. Name: opDescribeAlias,
  965. HTTPMethod: "POST",
  966. HTTPPath: "/",
  967. }
  968. if input == nil {
  969. input = &DescribeAliasInput{}
  970. }
  971. req = c.newRequest(op, input, output)
  972. output = &DescribeAliasOutput{}
  973. req.Data = output
  974. return
  975. }
  976. // DescribeAlias API operation for Amazon GameLift.
  977. //
  978. // Retrieves properties for a specified alias. To get the alias, specify an
  979. // alias ID. If successful, an Alias object is returned.
  980. //
  981. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  982. // with awserr.Error's Code and Message methods to get detailed information about
  983. // the error.
  984. //
  985. // See the AWS API reference guide for Amazon GameLift's
  986. // API operation DescribeAlias for usage and error information.
  987. //
  988. // Returned Error Codes:
  989. // * UnauthorizedException
  990. // The client failed authentication. Clients should not retry such requests.
  991. //
  992. // * InvalidRequestException
  993. // One or more parameter values in the request are invalid. Correct the invalid
  994. // parameter values before retrying.
  995. //
  996. // * NotFoundException
  997. // A service resource associated with the request could not be found. Clients
  998. // should not retry such requests.
  999. //
  1000. // * InternalServiceException
  1001. // The service encountered an unrecoverable internal failure while processing
  1002. // the request. Clients can retry such requests immediately or after a waiting
  1003. // period.
  1004. //
  1005. func (c *GameLift) DescribeAlias(input *DescribeAliasInput) (*DescribeAliasOutput, error) {
  1006. req, out := c.DescribeAliasRequest(input)
  1007. err := req.Send()
  1008. return out, err
  1009. }
  1010. const opDescribeBuild = "DescribeBuild"
  1011. // DescribeBuildRequest generates a "aws/request.Request" representing the
  1012. // client's request for the DescribeBuild operation. The "output" return
  1013. // value can be used to capture response data after the request's "Send" method
  1014. // is called.
  1015. //
  1016. // See DescribeBuild for usage and error information.
  1017. //
  1018. // Creating a request object using this method should be used when you want to inject
  1019. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1020. // access properties on the request object before or after sending the request. If
  1021. // you just want the service response, call the DescribeBuild method directly
  1022. // instead.
  1023. //
  1024. // Note: You must call the "Send" method on the returned request object in order
  1025. // to execute the request.
  1026. //
  1027. // // Example sending a request using the DescribeBuildRequest method.
  1028. // req, resp := client.DescribeBuildRequest(params)
  1029. //
  1030. // err := req.Send()
  1031. // if err == nil { // resp is now filled
  1032. // fmt.Println(resp)
  1033. // }
  1034. //
  1035. func (c *GameLift) DescribeBuildRequest(input *DescribeBuildInput) (req *request.Request, output *DescribeBuildOutput) {
  1036. op := &request.Operation{
  1037. Name: opDescribeBuild,
  1038. HTTPMethod: "POST",
  1039. HTTPPath: "/",
  1040. }
  1041. if input == nil {
  1042. input = &DescribeBuildInput{}
  1043. }
  1044. req = c.newRequest(op, input, output)
  1045. output = &DescribeBuildOutput{}
  1046. req.Data = output
  1047. return
  1048. }
  1049. // DescribeBuild API operation for Amazon GameLift.
  1050. //
  1051. // Retrieves properties for a build. To get a build record, specify a build
  1052. // ID. If successful, an object containing the build properties is returned.
  1053. //
  1054. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1055. // with awserr.Error's Code and Message methods to get detailed information about
  1056. // the error.
  1057. //
  1058. // See the AWS API reference guide for Amazon GameLift's
  1059. // API operation DescribeBuild for usage and error information.
  1060. //
  1061. // Returned Error Codes:
  1062. // * UnauthorizedException
  1063. // The client failed authentication. Clients should not retry such requests.
  1064. //
  1065. // * InvalidRequestException
  1066. // One or more parameter values in the request are invalid. Correct the invalid
  1067. // parameter values before retrying.
  1068. //
  1069. // * NotFoundException
  1070. // A service resource associated with the request could not be found. Clients
  1071. // should not retry such requests.
  1072. //
  1073. // * InternalServiceException
  1074. // The service encountered an unrecoverable internal failure while processing
  1075. // the request. Clients can retry such requests immediately or after a waiting
  1076. // period.
  1077. //
  1078. func (c *GameLift) DescribeBuild(input *DescribeBuildInput) (*DescribeBuildOutput, error) {
  1079. req, out := c.DescribeBuildRequest(input)
  1080. err := req.Send()
  1081. return out, err
  1082. }
  1083. const opDescribeEC2InstanceLimits = "DescribeEC2InstanceLimits"
  1084. // DescribeEC2InstanceLimitsRequest generates a "aws/request.Request" representing the
  1085. // client's request for the DescribeEC2InstanceLimits operation. The "output" return
  1086. // value can be used to capture response data after the request's "Send" method
  1087. // is called.
  1088. //
  1089. // See DescribeEC2InstanceLimits for usage and error information.
  1090. //
  1091. // Creating a request object using this method should be used when you want to inject
  1092. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1093. // access properties on the request object before or after sending the request. If
  1094. // you just want the service response, call the DescribeEC2InstanceLimits method directly
  1095. // instead.
  1096. //
  1097. // Note: You must call the "Send" method on the returned request object in order
  1098. // to execute the request.
  1099. //
  1100. // // Example sending a request using the DescribeEC2InstanceLimitsRequest method.
  1101. // req, resp := client.DescribeEC2InstanceLimitsRequest(params)
  1102. //
  1103. // err := req.Send()
  1104. // if err == nil { // resp is now filled
  1105. // fmt.Println(resp)
  1106. // }
  1107. //
  1108. func (c *GameLift) DescribeEC2InstanceLimitsRequest(input *DescribeEC2InstanceLimitsInput) (req *request.Request, output *DescribeEC2InstanceLimitsOutput) {
  1109. op := &request.Operation{
  1110. Name: opDescribeEC2InstanceLimits,
  1111. HTTPMethod: "POST",
  1112. HTTPPath: "/",
  1113. }
  1114. if input == nil {
  1115. input = &DescribeEC2InstanceLimitsInput{}
  1116. }
  1117. req = c.newRequest(op, input, output)
  1118. output = &DescribeEC2InstanceLimitsOutput{}
  1119. req.Data = output
  1120. return
  1121. }
  1122. // DescribeEC2InstanceLimits API operation for Amazon GameLift.
  1123. //
  1124. // Retrieves the following information for the specified EC2 instance type:
  1125. //
  1126. // * maximum number of instances allowed per AWS account (service limit)
  1127. //
  1128. // * current usage level for the AWS account
  1129. //
  1130. // Service limits vary depending on region. Available regions for GameLift can
  1131. // be found in the AWS Management Console for GameLift (see the drop-down list
  1132. // in the upper right corner).
  1133. //
  1134. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1135. // with awserr.Error's Code and Message methods to get detailed information about
  1136. // the error.
  1137. //
  1138. // See the AWS API reference guide for Amazon GameLift's
  1139. // API operation DescribeEC2InstanceLimits for usage and error information.
  1140. //
  1141. // Returned Error Codes:
  1142. // * InvalidRequestException
  1143. // One or more parameter values in the request are invalid. Correct the invalid
  1144. // parameter values before retrying.
  1145. //
  1146. // * InternalServiceException
  1147. // The service encountered an unrecoverable internal failure while processing
  1148. // the request. Clients can retry such requests immediately or after a waiting
  1149. // period.
  1150. //
  1151. // * UnauthorizedException
  1152. // The client failed authentication. Clients should not retry such requests.
  1153. //
  1154. func (c *GameLift) DescribeEC2InstanceLimits(input *DescribeEC2InstanceLimitsInput) (*DescribeEC2InstanceLimitsOutput, error) {
  1155. req, out := c.DescribeEC2InstanceLimitsRequest(input)
  1156. err := req.Send()
  1157. return out, err
  1158. }
  1159. const opDescribeFleetAttributes = "DescribeFleetAttributes"
  1160. // DescribeFleetAttributesRequest generates a "aws/request.Request" representing the
  1161. // client's request for the DescribeFleetAttributes operation. The "output" return
  1162. // value can be used to capture response data after the request's "Send" method
  1163. // is called.
  1164. //
  1165. // See DescribeFleetAttributes for usage and error information.
  1166. //
  1167. // Creating a request object using this method should be used when you want to inject
  1168. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1169. // access properties on the request object before or after sending the request. If
  1170. // you just want the service response, call the DescribeFleetAttributes method directly
  1171. // instead.
  1172. //
  1173. // Note: You must call the "Send" method on the returned request object in order
  1174. // to execute the request.
  1175. //
  1176. // // Example sending a request using the DescribeFleetAttributesRequest method.
  1177. // req, resp := client.DescribeFleetAttributesRequest(params)
  1178. //
  1179. // err := req.Send()
  1180. // if err == nil { // resp is now filled
  1181. // fmt.Println(resp)
  1182. // }
  1183. //
  1184. func (c *GameLift) DescribeFleetAttributesRequest(input *DescribeFleetAttributesInput) (req *request.Request, output *DescribeFleetAttributesOutput) {
  1185. op := &request.Operation{
  1186. Name: opDescribeFleetAttributes,
  1187. HTTPMethod: "POST",
  1188. HTTPPath: "/",
  1189. }
  1190. if input == nil {
  1191. input = &DescribeFleetAttributesInput{}
  1192. }
  1193. req = c.newRequest(op, input, output)
  1194. output = &DescribeFleetAttributesOutput{}
  1195. req.Data = output
  1196. return
  1197. }
  1198. // DescribeFleetAttributes API operation for Amazon GameLift.
  1199. //
  1200. // Retrieves fleet properties, including metadata, status, and configuration,
  1201. // for one or more fleets. You can request attributes for all fleets, or specify
  1202. // a list of one or more fleet IDs. When requesting multiple fleets, use the
  1203. // pagination parameters to retrieve results as a set of sequential pages. If
  1204. // successful, a FleetAttributes object is returned for each requested fleet
  1205. // ID. When specifying a list of fleet IDs, attribute objects are returned only
  1206. // for fleets that currently exist.
  1207. //
  1208. // Some API actions may limit the number of fleet IDs allowed in one request.
  1209. // If a request exceeds this limit, the request fails and the error message
  1210. // includes the maximum allowed.
  1211. //
  1212. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1213. // with awserr.Error's Code and Message methods to get detailed information about
  1214. // the error.
  1215. //
  1216. // See the AWS API reference guide for Amazon GameLift's
  1217. // API operation DescribeFleetAttributes for usage and error information.
  1218. //
  1219. // Returned Error Codes:
  1220. // * InternalServiceException
  1221. // The service encountered an unrecoverable internal failure while processing
  1222. // the request. Clients can retry such requests immediately or after a waiting
  1223. // period.
  1224. //
  1225. // * NotFoundException
  1226. // A service resource associated with the request could not be found. Clients
  1227. // should not retry such requests.
  1228. //
  1229. // * InvalidRequestException
  1230. // One or more parameter values in the request are invalid. Correct the invalid
  1231. // parameter values before retrying.
  1232. //
  1233. // * UnauthorizedException
  1234. // The client failed authentication. Clients should not retry such requests.
  1235. //
  1236. func (c *GameLift) DescribeFleetAttributes(input *DescribeFleetAttributesInput) (*DescribeFleetAttributesOutput, error) {
  1237. req, out := c.DescribeFleetAttributesRequest(input)
  1238. err := req.Send()
  1239. return out, err
  1240. }
  1241. const opDescribeFleetCapacity = "DescribeFleetCapacity"
  1242. // DescribeFleetCapacityRequest generates a "aws/request.Request" representing the
  1243. // client's request for the DescribeFleetCapacity operation. The "output" return
  1244. // value can be used to capture response data after the request's "Send" method
  1245. // is called.
  1246. //
  1247. // See DescribeFleetCapacity for usage and error information.
  1248. //
  1249. // Creating a request object using this method should be used when you want to inject
  1250. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1251. // access properties on the request object before or after sending the request. If
  1252. // you just want the service response, call the DescribeFleetCapacity method directly
  1253. // instead.
  1254. //
  1255. // Note: You must call the "Send" method on the returned request object in order
  1256. // to execute the request.
  1257. //
  1258. // // Example sending a request using the DescribeFleetCapacityRequest method.
  1259. // req, resp := client.DescribeFleetCapacityRequest(params)
  1260. //
  1261. // err := req.Send()
  1262. // if err == nil { // resp is now filled
  1263. // fmt.Println(resp)
  1264. // }
  1265. //
  1266. func (c *GameLift) DescribeFleetCapacityRequest(input *DescribeFleetCapacityInput) (req *request.Request, output *DescribeFleetCapacityOutput) {
  1267. op := &request.Operation{
  1268. Name: opDescribeFleetCapacity,
  1269. HTTPMethod: "POST",
  1270. HTTPPath: "/",
  1271. }
  1272. if input == nil {
  1273. input = &DescribeFleetCapacityInput{}
  1274. }
  1275. req = c.newRequest(op, input, output)
  1276. output = &DescribeFleetCapacityOutput{}
  1277. req.Data = output
  1278. return
  1279. }
  1280. // DescribeFleetCapacity API operation for Amazon GameLift.
  1281. //
  1282. // Retrieves the current status of fleet capacity for one or more fleets. This
  1283. // information includes the number of instances that have been requested for
  1284. // the fleet and the number currently active. You can request capacity for all
  1285. // fleets, or specify a list of one or more fleet IDs. When requesting multiple
  1286. // fleets, use the pagination parameters to retrieve results as a set of sequential
  1287. // pages. If successful, a FleetCapacity object is returned for each requested
  1288. // fleet ID. When specifying a list of fleet IDs, attribute objects are returned
  1289. // only for fleets that currently exist.
  1290. //
  1291. // Some API actions may limit the number of fleet IDs allowed in one request.
  1292. // If a request exceeds this limit, the request fails and the error message
  1293. // includes the maximum allowed.
  1294. //
  1295. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1296. // with awserr.Error's Code and Message methods to get detailed information about
  1297. // the error.
  1298. //
  1299. // See the AWS API reference guide for Amazon GameLift's
  1300. // API operation DescribeFleetCapacity for usage and error information.
  1301. //
  1302. // Returned Error Codes:
  1303. // * InternalServiceException
  1304. // The service encountered an unrecoverable internal failure while processing
  1305. // the request. Clients can retry such requests immediately or after a waiting
  1306. // period.
  1307. //
  1308. // * NotFoundException
  1309. // A service resource associated with the request could not be found. Clients
  1310. // should not retry such requests.
  1311. //
  1312. // * InvalidRequestException
  1313. // One or more parameter values in the request are invalid. Correct the invalid
  1314. // parameter values before retrying.
  1315. //
  1316. // * UnauthorizedException
  1317. // The client failed authentication. Clients should not retry such requests.
  1318. //
  1319. func (c *GameLift) DescribeFleetCapacity(input *DescribeFleetCapacityInput) (*DescribeFleetCapacityOutput, error) {
  1320. req, out := c.DescribeFleetCapacityRequest(input)
  1321. err := req.Send()
  1322. return out, err
  1323. }
  1324. const opDescribeFleetEvents = "DescribeFleetEvents"
  1325. // DescribeFleetEventsRequest generates a "aws/request.Request" representing the
  1326. // client's request for the DescribeFleetEvents operation. The "output" return
  1327. // value can be used to capture response data after the request's "Send" method
  1328. // is called.
  1329. //
  1330. // See DescribeFleetEvents for usage and error information.
  1331. //
  1332. // Creating a request object using this method should be used when you want to inject
  1333. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1334. // access properties on the request object before or after sending the request. If
  1335. // you just want the service response, call the DescribeFleetEvents method directly
  1336. // instead.
  1337. //
  1338. // Note: You must call the "Send" method on the returned request object in order
  1339. // to execute the request.
  1340. //
  1341. // // Example sending a request using the DescribeFleetEventsRequest method.
  1342. // req, resp := client.DescribeFleetEventsRequest(params)
  1343. //
  1344. // err := req.Send()
  1345. // if err == nil { // resp is now filled
  1346. // fmt.Println(resp)
  1347. // }
  1348. //
  1349. func (c *GameLift) DescribeFleetEventsRequest(input *DescribeFleetEventsInput) (req *request.Request, output *DescribeFleetEventsOutput) {
  1350. op := &request.Operation{
  1351. Name: opDescribeFleetEvents,
  1352. HTTPMethod: "POST",
  1353. HTTPPath: "/",
  1354. }
  1355. if input == nil {
  1356. input = &DescribeFleetEventsInput{}
  1357. }
  1358. req = c.newRequest(op, input, output)
  1359. output = &DescribeFleetEventsOutput{}
  1360. req.Data = output
  1361. return
  1362. }
  1363. // DescribeFleetEvents API operation for Amazon GameLift.
  1364. //
  1365. // Retrieves entries from the specified fleet's event log. You can specify a
  1366. // time range to limit the result set. Use the pagination parameters to retrieve
  1367. // results as a set of sequential pages. If successful, a collection of event
  1368. // log entries matching the request are returned.
  1369. //
  1370. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1371. // with awserr.Error's Code and Message methods to get detailed information about
  1372. // the error.
  1373. //
  1374. // See the AWS API reference guide for Amazon GameLift's
  1375. // API operation DescribeFleetEvents for usage and error information.
  1376. //
  1377. // Returned Error Codes:
  1378. // * NotFoundException
  1379. // A service resource associated with the request could not be found. Clients
  1380. // should not retry such requests.
  1381. //
  1382. // * InternalServiceException
  1383. // The service encountered an unrecoverable internal failure while processing
  1384. // the request. Clients can retry such requests immediately or after a waiting
  1385. // period.
  1386. //
  1387. // * UnauthorizedException
  1388. // The client failed authentication. Clients should not retry such requests.
  1389. //
  1390. // * InvalidRequestException
  1391. // One or more parameter values in the request are invalid. Correct the invalid
  1392. // parameter values before retrying.
  1393. //
  1394. func (c *GameLift) DescribeFleetEvents(input *DescribeFleetEventsInput) (*DescribeFleetEventsOutput, error) {
  1395. req, out := c.DescribeFleetEventsRequest(input)
  1396. err := req.Send()
  1397. return out, err
  1398. }
  1399. const opDescribeFleetPortSettings = "DescribeFleetPortSettings"
  1400. // DescribeFleetPortSettingsRequest generates a "aws/request.Request" representing the
  1401. // client's request for the DescribeFleetPortSettings operation. The "output" return
  1402. // value can be used to capture response data after the request's "Send" method
  1403. // is called.
  1404. //
  1405. // See DescribeFleetPortSettings for usage and error information.
  1406. //
  1407. // Creating a request object using this method should be used when you want to inject
  1408. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1409. // access properties on the request object before or after sending the request. If
  1410. // you just want the service response, call the DescribeFleetPortSettings method directly
  1411. // instead.
  1412. //
  1413. // Note: You must call the "Send" method on the returned request object in order
  1414. // to execute the request.
  1415. //
  1416. // // Example sending a request using the DescribeFleetPortSettingsRequest method.
  1417. // req, resp := client.DescribeFleetPortSettingsRequest(params)
  1418. //
  1419. // err := req.Send()
  1420. // if err == nil { // resp is now filled
  1421. // fmt.Println(resp)
  1422. // }
  1423. //
  1424. func (c *GameLift) DescribeFleetPortSettingsRequest(input *DescribeFleetPortSettingsInput) (req *request.Request, output *DescribeFleetPortSettingsOutput) {
  1425. op := &request.Operation{
  1426. Name: opDescribeFleetPortSettings,
  1427. HTTPMethod: "POST",
  1428. HTTPPath: "/",
  1429. }
  1430. if input == nil {
  1431. input = &DescribeFleetPortSettingsInput{}
  1432. }
  1433. req = c.newRequest(op, input, output)
  1434. output = &DescribeFleetPortSettingsOutput{}
  1435. req.Data = output
  1436. return
  1437. }
  1438. // DescribeFleetPortSettings API operation for Amazon GameLift.
  1439. //
  1440. // Retrieves the inbound connection permissions for a fleet. Connection permissions
  1441. // include a range of IP addresses and port settings that incoming traffic can
  1442. // use to access server processes in the fleet. To get a fleet's inbound connection
  1443. // permissions, specify a fleet ID. If successful, a collection of IpPermission
  1444. // objects is returned for the requested fleet ID. If the requested fleet has
  1445. // been deleted, the result set is empty.
  1446. //
  1447. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1448. // with awserr.Error's Code and Message methods to get detailed information about
  1449. // the error.
  1450. //
  1451. // See the AWS API reference guide for Amazon GameLift's
  1452. // API operation DescribeFleetPortSettings for usage and error information.
  1453. //
  1454. // Returned Error Codes:
  1455. // * InternalServiceException
  1456. // The service encountered an unrecoverable internal failure while processing
  1457. // the request. Clients can retry such requests immediately or after a waiting
  1458. // period.
  1459. //
  1460. // * NotFoundException
  1461. // A service resource associated with the request could not be found. Clients
  1462. // should not retry such requests.
  1463. //
  1464. // * InvalidRequestException
  1465. // One or more parameter values in the request are invalid. Correct the invalid
  1466. // parameter values before retrying.
  1467. //
  1468. // * UnauthorizedException
  1469. // The client failed authentication. Clients should not retry such requests.
  1470. //
  1471. func (c *GameLift) DescribeFleetPortSettings(input *DescribeFleetPortSettingsInput) (*DescribeFleetPortSettingsOutput, error) {
  1472. req, out := c.DescribeFleetPortSettingsRequest(input)
  1473. err := req.Send()
  1474. return out, err
  1475. }
  1476. const opDescribeFleetUtilization = "DescribeFleetUtilization"
  1477. // DescribeFleetUtilizationRequest generates a "aws/request.Request" representing the
  1478. // client's request for the DescribeFleetUtilization operation. The "output" return
  1479. // value can be used to capture response data after the request's "Send" method
  1480. // is called.
  1481. //
  1482. // See DescribeFleetUtilization for usage and error information.
  1483. //
  1484. // Creating a request object using this method should be used when you want to inject
  1485. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1486. // access properties on the request object before or after sending the request. If
  1487. // you just want the service response, call the DescribeFleetUtilization method directly
  1488. // instead.
  1489. //
  1490. // Note: You must call the "Send" method on the returned request object in order
  1491. // to execute the request.
  1492. //
  1493. // // Example sending a request using the DescribeFleetUtilizationRequest method.
  1494. // req, resp := client.DescribeFleetUtilizationRequest(params)
  1495. //
  1496. // err := req.Send()
  1497. // if err == nil { // resp is now filled
  1498. // fmt.Println(resp)
  1499. // }
  1500. //
  1501. func (c *GameLift) DescribeFleetUtilizationRequest(input *DescribeFleetUtilizationInput) (req *request.Request, output *DescribeFleetUtilizationOutput) {
  1502. op := &request.Operation{
  1503. Name: opDescribeFleetUtilization,
  1504. HTTPMethod: "POST",
  1505. HTTPPath: "/",
  1506. }
  1507. if input == nil {
  1508. input = &DescribeFleetUtilizationInput{}
  1509. }
  1510. req = c.newRequest(op, input, output)
  1511. output = &DescribeFleetUtilizationOutput{}
  1512. req.Data = output
  1513. return
  1514. }
  1515. // DescribeFleetUtilization API operation for Amazon GameLift.
  1516. //
  1517. // Retrieves utilization statistics for one or more fleets. You can request
  1518. // utilization data for all fleets, or specify a list of one or more fleet IDs.
  1519. // When requesting multiple fleets, use the pagination parameters to retrieve
  1520. // results as a set of sequential pages. If successful, a FleetUtilization object
  1521. // is returned for each requested fleet ID. When specifying a list of fleet
  1522. // IDs, utilization objects are returned only for fleets that currently exist.
  1523. //
  1524. // Some API actions may limit the number of fleet IDs allowed in one request.
  1525. // If a request exceeds this limit, the request fails and the error message
  1526. // includes the maximum allowed.
  1527. //
  1528. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1529. // with awserr.Error's Code and Message methods to get detailed information about
  1530. // the error.
  1531. //
  1532. // See the AWS API reference guide for Amazon GameLift's
  1533. // API operation DescribeFleetUtilization for usage and error information.
  1534. //
  1535. // Returned Error Codes:
  1536. // * InternalServiceException
  1537. // The service encountered an unrecoverable internal failure while processing
  1538. // the request. Clients can retry such requests immediately or after a waiting
  1539. // period.
  1540. //
  1541. // * NotFoundException
  1542. // A service resource associated with the request could not be found. Clients
  1543. // should not retry such requests.
  1544. //
  1545. // * InvalidRequestException
  1546. // One or more parameter values in the request are invalid. Correct the invalid
  1547. // parameter values before retrying.
  1548. //
  1549. // * UnauthorizedException
  1550. // The client failed authentication. Clients should not retry such requests.
  1551. //
  1552. func (c *GameLift) DescribeFleetUtilization(input *DescribeFleetUtilizationInput) (*DescribeFleetUtilizationOutput, error) {
  1553. req, out := c.DescribeFleetUtilizationRequest(input)
  1554. err := req.Send()
  1555. return out, err
  1556. }
  1557. const opDescribeGameSessionDetails = "DescribeGameSessionDetails"
  1558. // DescribeGameSessionDetailsRequest generates a "aws/request.Request" representing the
  1559. // client's request for the DescribeGameSessionDetails operation. The "output" return
  1560. // value can be used to capture response data after the request's "Send" method
  1561. // is called.
  1562. //
  1563. // See DescribeGameSessionDetails for usage and error information.
  1564. //
  1565. // Creating a request object using this method should be used when you want to inject
  1566. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1567. // access properties on the request object before or after sending the request. If
  1568. // you just want the service response, call the DescribeGameSessionDetails method directly
  1569. // instead.
  1570. //
  1571. // Note: You must call the "Send" method on the returned request object in order
  1572. // to execute the request.
  1573. //
  1574. // // Example sending a request using the DescribeGameSessionDetailsRequest method.
  1575. // req, resp := client.DescribeGameSessionDetailsRequest(params)
  1576. //
  1577. // err := req.Send()
  1578. // if err == nil { // resp is now filled
  1579. // fmt.Println(resp)
  1580. // }
  1581. //
  1582. func (c *GameLift) DescribeGameSessionDetailsRequest(input *DescribeGameSessionDetailsInput) (req *request.Request, output *DescribeGameSessionDetailsOutput) {
  1583. op := &request.Operation{
  1584. Name: opDescribeGameSessionDetails,
  1585. HTTPMethod: "POST",
  1586. HTTPPath: "/",
  1587. }
  1588. if input == nil {
  1589. input = &DescribeGameSessionDetailsInput{}
  1590. }
  1591. req = c.newRequest(op, input, output)
  1592. output = &DescribeGameSessionDetailsOutput{}
  1593. req.Data = output
  1594. return
  1595. }
  1596. // DescribeGameSessionDetails API operation for Amazon GameLift.
  1597. //
  1598. // Retrieves properties, including the protection policy in force, for one or
  1599. // more game sessions. This action can be used in several ways: (1) provide
  1600. // a GameSessionId to request details for a specific game session; (2) provide
  1601. // either a FleetId or an AliasId to request properties for all game sessions
  1602. // running on a fleet.
  1603. //
  1604. // To get game session record(s), specify just one of the following: game session
  1605. // ID, fleet ID, or alias ID. You can filter this request by game session status.
  1606. // Use the pagination parameters to retrieve results as a set of sequential
  1607. // pages. If successful, a GameSessionDetail object is returned for each session
  1608. // matching the request.
  1609. //
  1610. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1611. // with awserr.Error's Code and Message methods to get detailed information about
  1612. // the error.
  1613. //
  1614. // See the AWS API reference guide for Amazon GameLift's
  1615. // API operation DescribeGameSessionDetails for usage and error information.
  1616. //
  1617. // Returned Error Codes:
  1618. // * InternalServiceException
  1619. // The service encountered an unrecoverable internal failure while processing
  1620. // the request. Clients can retry such requests immediately or after a waiting
  1621. // period.
  1622. //
  1623. // * NotFoundException
  1624. // A service resource associated with the request could not be found. Clients
  1625. // should not retry such requests.
  1626. //
  1627. // * InvalidRequestException
  1628. // One or more parameter values in the request are invalid. Correct the invalid
  1629. // parameter values before retrying.
  1630. //
  1631. // * UnauthorizedException
  1632. // The client failed authentication. Clients should not retry such requests.
  1633. //
  1634. // * TerminalRoutingStrategyException
  1635. // The service is unable to resolve the routing for a particular alias because
  1636. // it has a terminal RoutingStrategy associated with it. The message returned
  1637. // in this exception is the message defined in the routing strategy itself.
  1638. // Such requests should only be retried if the routing strategy for the specified
  1639. // alias is modified.
  1640. //
  1641. func (c *GameLift) DescribeGameSessionDetails(input *DescribeGameSessionDetailsInput) (*DescribeGameSessionDetailsOutput, error) {
  1642. req, out := c.DescribeGameSessionDetailsRequest(input)
  1643. err := req.Send()
  1644. return out, err
  1645. }
  1646. const opDescribeGameSessions = "DescribeGameSessions"
  1647. // DescribeGameSessionsRequest generates a "aws/request.Request" representing the
  1648. // client's request for the DescribeGameSessions operation. The "output" return
  1649. // value can be used to capture response data after the request's "Send" method
  1650. // is called.
  1651. //
  1652. // See DescribeGameSessions for usage and error information.
  1653. //
  1654. // Creating a request object using this method should be used when you want to inject
  1655. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1656. // access properties on the request object before or after sending the request. If
  1657. // you just want the service response, call the DescribeGameSessions method directly
  1658. // instead.
  1659. //
  1660. // Note: You must call the "Send" method on the returned request object in order
  1661. // to execute the request.
  1662. //
  1663. // // Example sending a request using the DescribeGameSessionsRequest method.
  1664. // req, resp := client.DescribeGameSessionsRequest(params)
  1665. //
  1666. // err := req.Send()
  1667. // if err == nil { // resp is now filled
  1668. // fmt.Println(resp)
  1669. // }
  1670. //
  1671. func (c *GameLift) DescribeGameSessionsRequest(input *DescribeGameSessionsInput) (req *request.Request, output *DescribeGameSessionsOutput) {
  1672. op := &request.Operation{
  1673. Name: opDescribeGameSessions,
  1674. HTTPMethod: "POST",
  1675. HTTPPath: "/",
  1676. }
  1677. if input == nil {
  1678. input = &DescribeGameSessionsInput{}
  1679. }
  1680. req = c.newRequest(op, input, output)
  1681. output = &DescribeGameSessionsOutput{}
  1682. req.Data = output
  1683. return
  1684. }
  1685. // DescribeGameSessions API operation for Amazon GameLift.
  1686. //
  1687. // Retrieves a set of one or more game sessions and properties. This action
  1688. // can be used in several ways: (1) provide a GameSessionId to request properties
  1689. // for a specific game session; (2) provide a FleetId or an AliasId to request
  1690. // properties for all game sessions running on a fleet. You can also use SearchGameSessions,
  1691. // which allows you to retrieve all game sessions or filter on certain criteria,
  1692. // but only returns game sessions with a status of ACTIVE. If you need to retrieve
  1693. // the protection policy for each game session, use DescribeGameSessionDetails.
  1694. //
  1695. // To get game session record(s), specify just one of the following: game session
  1696. // ID, fleet ID, or alias ID. You can filter this request by game session status.
  1697. // Use the pagination parameters to retrieve results as a set of sequential
  1698. // pages. If successful, a GameSession object is returned for each session matching
  1699. // the request.
  1700. //
  1701. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1702. // with awserr.Error's Code and Message methods to get detailed information about
  1703. // the error.
  1704. //
  1705. // See the AWS API reference guide for Amazon GameLift's
  1706. // API operation DescribeGameSessions for usage and error information.
  1707. //
  1708. // Returned Error Codes:
  1709. // * InternalServiceException
  1710. // The service encountered an unrecoverable internal failure while processing
  1711. // the request. Clients can retry such requests immediately or after a waiting
  1712. // period.
  1713. //
  1714. // * NotFoundException
  1715. // A service resource associated with the request could not be found. Clients
  1716. // should not retry such requests.
  1717. //
  1718. // * InvalidRequestException
  1719. // One or more parameter values in the request are invalid. Correct the invalid
  1720. // parameter values before retrying.
  1721. //
  1722. // * UnauthorizedException
  1723. // The client failed authentication. Clients should not retry such requests.
  1724. //
  1725. // * TerminalRoutingStrategyException
  1726. // The service is unable to resolve the routing for a particular alias because
  1727. // it has a terminal RoutingStrategy associated with it. The message returned
  1728. // in this exception is the message defined in the routing strategy itself.
  1729. // Such requests should only be retried if the routing strategy for the specified
  1730. // alias is modified.
  1731. //
  1732. func (c *GameLift) DescribeGameSessions(input *DescribeGameSessionsInput) (*DescribeGameSessionsOutput, error) {
  1733. req, out := c.DescribeGameSessionsRequest(input)
  1734. err := req.Send()
  1735. return out, err
  1736. }
  1737. const opDescribeInstances = "DescribeInstances"
  1738. // DescribeInstancesRequest generates a "aws/request.Request" representing the
  1739. // client's request for the DescribeInstances operation. The "output" return
  1740. // value can be used to capture response data after the request's "Send" method
  1741. // is called.
  1742. //
  1743. // See DescribeInstances for usage and error information.
  1744. //
  1745. // Creating a request object using this method should be used when you want to inject
  1746. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1747. // access properties on the request object before or after sending the request. If
  1748. // you just want the service response, call the DescribeInstances method directly
  1749. // instead.
  1750. //
  1751. // Note: You must call the "Send" method on the returned request object in order
  1752. // to execute the request.
  1753. //
  1754. // // Example sending a request using the DescribeInstancesRequest method.
  1755. // req, resp := client.DescribeInstancesRequest(params)
  1756. //
  1757. // err := req.Send()
  1758. // if err == nil { // resp is now filled
  1759. // fmt.Println(resp)
  1760. // }
  1761. //
  1762. func (c *GameLift) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput) {
  1763. op := &request.Operation{
  1764. Name: opDescribeInstances,
  1765. HTTPMethod: "POST",
  1766. HTTPPath: "/",
  1767. }
  1768. if input == nil {
  1769. input = &DescribeInstancesInput{}
  1770. }
  1771. req = c.newRequest(op, input, output)
  1772. output = &DescribeInstancesOutput{}
  1773. req.Data = output
  1774. return
  1775. }
  1776. // DescribeInstances API operation for Amazon GameLift.
  1777. //
  1778. // Retrieves information about instances in a fleet.
  1779. //
  1780. // To get information on a specific instance, specify both a fleet ID and instance
  1781. // ID. To get information for all instances in a fleet, specify a fleet ID only.
  1782. // Use the pagination parameters to retrieve results as a set of sequential
  1783. // pages. If successful, an Instance object is returned for each result.
  1784. //
  1785. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1786. // with awserr.Error's Code and Message methods to get detailed information about
  1787. // the error.
  1788. //
  1789. // See the AWS API reference guide for Amazon GameLift's
  1790. // API operation DescribeInstances for usage and error information.
  1791. //
  1792. // Returned Error Codes:
  1793. // * UnauthorizedException
  1794. // The client failed authentication. Clients should not retry such requests.
  1795. //
  1796. // * InvalidRequestException
  1797. // One or more parameter values in the request are invalid. Correct the invalid
  1798. // parameter values before retrying.
  1799. //
  1800. // * NotFoundException
  1801. // A service resource associated with the request could not be found. Clients
  1802. // should not retry such requests.
  1803. //
  1804. // * InternalServiceException
  1805. // The service encountered an unrecoverable internal failure while processing
  1806. // the request. Clients can retry such requests immediately or after a waiting
  1807. // period.
  1808. //
  1809. func (c *GameLift) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error) {
  1810. req, out := c.DescribeInstancesRequest(input)
  1811. err := req.Send()
  1812. return out, err
  1813. }
  1814. const opDescribePlayerSessions = "DescribePlayerSessions"
  1815. // DescribePlayerSessionsRequest generates a "aws/request.Request" representing the
  1816. // client's request for the DescribePlayerSessions operation. The "output" return
  1817. // value can be used to capture response data after the request's "Send" method
  1818. // is called.
  1819. //
  1820. // See DescribePlayerSessions for usage and error information.
  1821. //
  1822. // Creating a request object using this method should be used when you want to inject
  1823. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1824. // access properties on the request object before or after sending the request. If
  1825. // you just want the service response, call the DescribePlayerSessions method directly
  1826. // instead.
  1827. //
  1828. // Note: You must call the "Send" method on the returned request object in order
  1829. // to execute the request.
  1830. //
  1831. // // Example sending a request using the DescribePlayerSessionsRequest method.
  1832. // req, resp := client.DescribePlayerSessionsRequest(params)
  1833. //
  1834. // err := req.Send()
  1835. // if err == nil { // resp is now filled
  1836. // fmt.Println(resp)
  1837. // }
  1838. //
  1839. func (c *GameLift) DescribePlayerSessionsRequest(input *DescribePlayerSessionsInput) (req *request.Request, output *DescribePlayerSessionsOutput) {
  1840. op := &request.Operation{
  1841. Name: opDescribePlayerSessions,
  1842. HTTPMethod: "POST",
  1843. HTTPPath: "/",
  1844. }
  1845. if input == nil {
  1846. input = &DescribePlayerSessionsInput{}
  1847. }
  1848. req = c.newRequest(op, input, output)
  1849. output = &DescribePlayerSessionsOutput{}
  1850. req.Data = output
  1851. return
  1852. }
  1853. // DescribePlayerSessions API operation for Amazon GameLift.
  1854. //
  1855. // Retrieves properties for one or more player sessions. This action can be
  1856. // used in several ways: (1) provide a PlayerSessionId parameter to request
  1857. // properties for a specific player session; (2) provide a GameSessionId parameter
  1858. // to request properties for all player sessions in the specified game session;
  1859. // (3) provide a PlayerId parameter to request properties for all player sessions
  1860. // of a specified player.
  1861. //
  1862. // To get game session record(s), specify only one of the following: a player
  1863. // session ID, a game session ID, or a player ID. You can filter this request
  1864. // by player session status. Use the pagination parameters to retrieve results
  1865. // as a set of sequential pages. If successful, a PlayerSession object is returned
  1866. // for each session matching the request.
  1867. //
  1868. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1869. // with awserr.Error's Code and Message methods to get detailed information about
  1870. // the error.
  1871. //
  1872. // See the AWS API reference guide for Amazon GameLift's
  1873. // API operation DescribePlayerSessions for usage and error information.
  1874. //
  1875. // Returned Error Codes:
  1876. // * InternalServiceException
  1877. // The service encountered an unrecoverable internal failure while processing
  1878. // the request. Clients can retry such requests immediately or after a waiting
  1879. // period.
  1880. //
  1881. // * NotFoundException
  1882. // A service resource associated with the request could not be found. Clients
  1883. // should not retry such requests.
  1884. //
  1885. // * InvalidRequestException
  1886. // One or more parameter values in the request are invalid. Correct the invalid
  1887. // parameter values before retrying.
  1888. //
  1889. // * UnauthorizedException
  1890. // The client failed authentication. Clients should not retry such requests.
  1891. //
  1892. func (c *GameLift) DescribePlayerSessions(input *DescribePlayerSessionsInput) (*DescribePlayerSessionsOutput, error) {
  1893. req, out := c.DescribePlayerSessionsRequest(input)
  1894. err := req.Send()
  1895. return out, err
  1896. }
  1897. const opDescribeRuntimeConfiguration = "DescribeRuntimeConfiguration"
  1898. // DescribeRuntimeConfigurationRequest generates a "aws/request.Request" representing the
  1899. // client's request for the DescribeRuntimeConfiguration operation. The "output" return
  1900. // value can be used to capture response data after the request's "Send" method
  1901. // is called.
  1902. //
  1903. // See DescribeRuntimeConfiguration for usage and error information.
  1904. //
  1905. // Creating a request object using this method should be used when you want to inject
  1906. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1907. // access properties on the request object before or after sending the request. If
  1908. // you just want the service response, call the DescribeRuntimeConfiguration method directly
  1909. // instead.
  1910. //
  1911. // Note: You must call the "Send" method on the returned request object in order
  1912. // to execute the request.
  1913. //
  1914. // // Example sending a request using the DescribeRuntimeConfigurationRequest method.
  1915. // req, resp := client.DescribeRuntimeConfigurationRequest(params)
  1916. //
  1917. // err := req.Send()
  1918. // if err == nil { // resp is now filled
  1919. // fmt.Println(resp)
  1920. // }
  1921. //
  1922. func (c *GameLift) DescribeRuntimeConfigurationRequest(input *DescribeRuntimeConfigurationInput) (req *request.Request, output *DescribeRuntimeConfigurationOutput) {
  1923. op := &request.Operation{
  1924. Name: opDescribeRuntimeConfiguration,
  1925. HTTPMethod: "POST",
  1926. HTTPPath: "/",
  1927. }
  1928. if input == nil {
  1929. input = &DescribeRuntimeConfigurationInput{}
  1930. }
  1931. req = c.newRequest(op, input, output)
  1932. output = &DescribeRuntimeConfigurationOutput{}
  1933. req.Data = output
  1934. return
  1935. }
  1936. // DescribeRuntimeConfiguration API operation for Amazon GameLift.
  1937. //
  1938. // Retrieves the current runtime configuration for the specified fleet. The
  1939. // runtime configuration tells GameLift how to launch server processes on instances
  1940. // in the fleet.
  1941. //
  1942. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1943. // with awserr.Error's Code and Message methods to get detailed information about
  1944. // the error.
  1945. //
  1946. // See the AWS API reference guide for Amazon GameLift's
  1947. // API operation DescribeRuntimeConfiguration for usage and error information.
  1948. //
  1949. // Returned Error Codes:
  1950. // * UnauthorizedException
  1951. // The client failed authentication. Clients should not retry such requests.
  1952. //
  1953. // * NotFoundException
  1954. // A service resource associated with the request could not be found. Clients
  1955. // should not retry such requests.
  1956. //
  1957. // * InternalServiceException
  1958. // The service encountered an unrecoverable internal failure while processing
  1959. // the request. Clients can retry such requests immediately or after a waiting
  1960. // period.
  1961. //
  1962. // * InvalidRequestException
  1963. // One or more parameter values in the request are invalid. Correct the invalid
  1964. // parameter values before retrying.
  1965. //
  1966. func (c *GameLift) DescribeRuntimeConfiguration(input *DescribeRuntimeConfigurationInput) (*DescribeRuntimeConfigurationOutput, error) {
  1967. req, out := c.DescribeRuntimeConfigurationRequest(input)
  1968. err := req.Send()
  1969. return out, err
  1970. }
  1971. const opDescribeScalingPolicies = "DescribeScalingPolicies"
  1972. // DescribeScalingPoliciesRequest generates a "aws/request.Request" representing the
  1973. // client's request for the DescribeScalingPolicies operation. The "output" return
  1974. // value can be used to capture response data after the request's "Send" method
  1975. // is called.
  1976. //
  1977. // See DescribeScalingPolicies for usage and error information.
  1978. //
  1979. // Creating a request object using this method should be used when you want to inject
  1980. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1981. // access properties on the request object before or after sending the request. If
  1982. // you just want the service response, call the DescribeScalingPolicies method directly
  1983. // instead.
  1984. //
  1985. // Note: You must call the "Send" method on the returned request object in order
  1986. // to execute the request.
  1987. //
  1988. // // Example sending a request using the DescribeScalingPoliciesRequest method.
  1989. // req, resp := client.DescribeScalingPoliciesRequest(params)
  1990. //
  1991. // err := req.Send()
  1992. // if err == nil { // resp is now filled
  1993. // fmt.Println(resp)
  1994. // }
  1995. //
  1996. func (c *GameLift) DescribeScalingPoliciesRequest(input *DescribeScalingPoliciesInput) (req *request.Request, output *DescribeScalingPoliciesOutput) {
  1997. op := &request.Operation{
  1998. Name: opDescribeScalingPolicies,
  1999. HTTPMethod: "POST",
  2000. HTTPPath: "/",
  2001. }
  2002. if input == nil {
  2003. input = &DescribeScalingPoliciesInput{}
  2004. }
  2005. req = c.newRequest(op, input, output)
  2006. output = &DescribeScalingPoliciesOutput{}
  2007. req.Data = output
  2008. return
  2009. }
  2010. // DescribeScalingPolicies API operation for Amazon GameLift.
  2011. //
  2012. // Retrieves all scaling policies applied to a fleet.
  2013. //
  2014. // To get a fleet's scaling policies, specify the fleet ID. You can filter this
  2015. // request by policy status, such as to retrieve only active scaling policies.
  2016. // Use the pagination parameters to retrieve results as a set of sequential
  2017. // pages. If successful, set of ScalingPolicy objects is returned for the fleet.
  2018. //
  2019. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2020. // with awserr.Error's Code and Message methods to get detailed information about
  2021. // the error.
  2022. //
  2023. // See the AWS API reference guide for Amazon GameLift's
  2024. // API operation DescribeScalingPolicies for usage and error information.
  2025. //
  2026. // Returned Error Codes:
  2027. // * InternalServiceException
  2028. // The service encountered an unrecoverable internal failure while processing
  2029. // the request. Clients can retry such requests immediately or after a waiting
  2030. // period.
  2031. //
  2032. // * InvalidRequestException
  2033. // One or more parameter values in the request are invalid. Correct the invalid
  2034. // parameter values before retrying.
  2035. //
  2036. // * UnauthorizedException
  2037. // The client failed authentication. Clients should not retry such requests.
  2038. //
  2039. // * NotFoundException
  2040. // A service resource associated with the request could not be found. Clients
  2041. // should not retry such requests.
  2042. //
  2043. func (c *GameLift) DescribeScalingPolicies(input *DescribeScalingPoliciesInput) (*DescribeScalingPoliciesOutput, error) {
  2044. req, out := c.DescribeScalingPoliciesRequest(input)
  2045. err := req.Send()
  2046. return out, err
  2047. }
  2048. const opGetGameSessionLogUrl = "GetGameSessionLogUrl"
  2049. // GetGameSessionLogUrlRequest generates a "aws/request.Request" representing the
  2050. // client's request for the GetGameSessionLogUrl operation. The "output" return
  2051. // value can be used to capture response data after the request's "Send" method
  2052. // is called.
  2053. //
  2054. // See GetGameSessionLogUrl for usage and error information.
  2055. //
  2056. // Creating a request object using this method should be used when you want to inject
  2057. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2058. // access properties on the request object before or after sending the request. If
  2059. // you just want the service response, call the GetGameSessionLogUrl method directly
  2060. // instead.
  2061. //
  2062. // Note: You must call the "Send" method on the returned request object in order
  2063. // to execute the request.
  2064. //
  2065. // // Example sending a request using the GetGameSessionLogUrlRequest method.
  2066. // req, resp := client.GetGameSessionLogUrlRequest(params)
  2067. //
  2068. // err := req.Send()
  2069. // if err == nil { // resp is now filled
  2070. // fmt.Println(resp)
  2071. // }
  2072. //
  2073. func (c *GameLift) GetGameSessionLogUrlRequest(input *GetGameSessionLogUrlInput) (req *request.Request, output *GetGameSessionLogUrlOutput) {
  2074. op := &request.Operation{
  2075. Name: opGetGameSessionLogUrl,
  2076. HTTPMethod: "POST",
  2077. HTTPPath: "/",
  2078. }
  2079. if input == nil {
  2080. input = &GetGameSessionLogUrlInput{}
  2081. }
  2082. req = c.newRequest(op, input, output)
  2083. output = &GetGameSessionLogUrlOutput{}
  2084. req.Data = output
  2085. return
  2086. }
  2087. // GetGameSessionLogUrl API operation for Amazon GameLift.
  2088. //
  2089. // Retrieves the location of stored game session logs for a specified game session.
  2090. // When a game session is terminated, Amazon GameLift automatically stores the
  2091. // logs in Amazon S3. Use this URL to download the logs.
  2092. //
  2093. // See the AWS Service Limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift)
  2094. // page for maximum log file sizes. Log files that exceed this limit are not
  2095. // saved.
  2096. //
  2097. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2098. // with awserr.Error's Code and Message methods to get detailed information about
  2099. // the error.
  2100. //
  2101. // See the AWS API reference guide for Amazon GameLift's
  2102. // API operation GetGameSessionLogUrl for usage and error information.
  2103. //
  2104. // Returned Error Codes:
  2105. // * InternalServiceException
  2106. // The service encountered an unrecoverable internal failure while processing
  2107. // the request. Clients can retry such requests immediately or after a waiting
  2108. // period.
  2109. //
  2110. // * NotFoundException
  2111. // A service resource associated with the request could not be found. Clients
  2112. // should not retry such requests.
  2113. //
  2114. // * UnauthorizedException
  2115. // The client failed authentication. Clients should not retry such requests.
  2116. //
  2117. // * InvalidRequestException
  2118. // One or more parameter values in the request are invalid. Correct the invalid
  2119. // parameter values before retrying.
  2120. //
  2121. func (c *GameLift) GetGameSessionLogUrl(input *GetGameSessionLogUrlInput) (*GetGameSessionLogUrlOutput, error) {
  2122. req, out := c.GetGameSessionLogUrlRequest(input)
  2123. err := req.Send()
  2124. return out, err
  2125. }
  2126. const opListAliases = "ListAliases"
  2127. // ListAliasesRequest generates a "aws/request.Request" representing the
  2128. // client's request for the ListAliases operation. The "output" return
  2129. // value can be used to capture response data after the request's "Send" method
  2130. // is called.
  2131. //
  2132. // See ListAliases for usage and error information.
  2133. //
  2134. // Creating a request object using this method should be used when you want to inject
  2135. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2136. // access properties on the request object before or after sending the request. If
  2137. // you just want the service response, call the ListAliases method directly
  2138. // instead.
  2139. //
  2140. // Note: You must call the "Send" method on the returned request object in order
  2141. // to execute the request.
  2142. //
  2143. // // Example sending a request using the ListAliasesRequest method.
  2144. // req, resp := client.ListAliasesRequest(params)
  2145. //
  2146. // err := req.Send()
  2147. // if err == nil { // resp is now filled
  2148. // fmt.Println(resp)
  2149. // }
  2150. //
  2151. func (c *GameLift) ListAliasesRequest(input *ListAliasesInput) (req *request.Request, output *ListAliasesOutput) {
  2152. op := &request.Operation{
  2153. Name: opListAliases,
  2154. HTTPMethod: "POST",
  2155. HTTPPath: "/",
  2156. }
  2157. if input == nil {
  2158. input = &ListAliasesInput{}
  2159. }
  2160. req = c.newRequest(op, input, output)
  2161. output = &ListAliasesOutput{}
  2162. req.Data = output
  2163. return
  2164. }
  2165. // ListAliases API operation for Amazon GameLift.
  2166. //
  2167. // Retrieves a collection of alias records for this AWS account. You can filter
  2168. // the result set by alias name and/or routing strategy type. Use the pagination
  2169. // parameters to retrieve results in sequential pages.
  2170. //
  2171. // Aliases are not listed in any particular order.
  2172. //
  2173. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2174. // with awserr.Error's Code and Message methods to get detailed information about
  2175. // the error.
  2176. //
  2177. // See the AWS API reference guide for Amazon GameLift's
  2178. // API operation ListAliases for usage and error information.
  2179. //
  2180. // Returned Error Codes:
  2181. // * UnauthorizedException
  2182. // The client failed authentication. Clients should not retry such requests.
  2183. //
  2184. // * InvalidRequestException
  2185. // One or more parameter values in the request are invalid. Correct the invalid
  2186. // parameter values before retrying.
  2187. //
  2188. // * InternalServiceException
  2189. // The service encountered an unrecoverable internal failure while processing
  2190. // the request. Clients can retry such requests immediately or after a waiting
  2191. // period.
  2192. //
  2193. func (c *GameLift) ListAliases(input *ListAliasesInput) (*ListAliasesOutput, error) {
  2194. req, out := c.ListAliasesRequest(input)
  2195. err := req.Send()
  2196. return out, err
  2197. }
  2198. const opListBuilds = "ListBuilds"
  2199. // ListBuildsRequest generates a "aws/request.Request" representing the
  2200. // client's request for the ListBuilds operation. The "output" return
  2201. // value can be used to capture response data after the request's "Send" method
  2202. // is called.
  2203. //
  2204. // See ListBuilds for usage and error information.
  2205. //
  2206. // Creating a request object using this method should be used when you want to inject
  2207. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2208. // access properties on the request object before or after sending the request. If
  2209. // you just want the service response, call the ListBuilds method directly
  2210. // instead.
  2211. //
  2212. // Note: You must call the "Send" method on the returned request object in order
  2213. // to execute the request.
  2214. //
  2215. // // Example sending a request using the ListBuildsRequest method.
  2216. // req, resp := client.ListBuildsRequest(params)
  2217. //
  2218. // err := req.Send()
  2219. // if err == nil { // resp is now filled
  2220. // fmt.Println(resp)
  2221. // }
  2222. //
  2223. func (c *GameLift) ListBuildsRequest(input *ListBuildsInput) (req *request.Request, output *ListBuildsOutput) {
  2224. op := &request.Operation{
  2225. Name: opListBuilds,
  2226. HTTPMethod: "POST",
  2227. HTTPPath: "/",
  2228. }
  2229. if input == nil {
  2230. input = &ListBuildsInput{}
  2231. }
  2232. req = c.newRequest(op, input, output)
  2233. output = &ListBuildsOutput{}
  2234. req.Data = output
  2235. return
  2236. }
  2237. // ListBuilds API operation for Amazon GameLift.
  2238. //
  2239. // Retrieves build records for all builds associated with the AWS account in
  2240. // use. You can limit results to builds that are in a specific status by using
  2241. // the Status parameter. Use the pagination parameters to retrieve results in
  2242. // a set of sequential pages.
  2243. //
  2244. // Build records are not listed in any particular order.
  2245. //
  2246. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2247. // with awserr.Error's Code and Message methods to get detailed information about
  2248. // the error.
  2249. //
  2250. // See the AWS API reference guide for Amazon GameLift's
  2251. // API operation ListBuilds for usage and error information.
  2252. //
  2253. // Returned Error Codes:
  2254. // * UnauthorizedException
  2255. // The client failed authentication. Clients should not retry such requests.
  2256. //
  2257. // * InvalidRequestException
  2258. // One or more parameter values in the request are invalid. Correct the invalid
  2259. // parameter values before retrying.
  2260. //
  2261. // * InternalServiceException
  2262. // The service encountered an unrecoverable internal failure while processing
  2263. // the request. Clients can retry such requests immediately or after a waiting
  2264. // period.
  2265. //
  2266. func (c *GameLift) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error) {
  2267. req, out := c.ListBuildsRequest(input)
  2268. err := req.Send()
  2269. return out, err
  2270. }
  2271. const opListFleets = "ListFleets"
  2272. // ListFleetsRequest generates a "aws/request.Request" representing the
  2273. // client's request for the ListFleets operation. The "output" return
  2274. // value can be used to capture response data after the request's "Send" method
  2275. // is called.
  2276. //
  2277. // See ListFleets for usage and error information.
  2278. //
  2279. // Creating a request object using this method should be used when you want to inject
  2280. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2281. // access properties on the request object before or after sending the request. If
  2282. // you just want the service response, call the ListFleets method directly
  2283. // instead.
  2284. //
  2285. // Note: You must call the "Send" method on the returned request object in order
  2286. // to execute the request.
  2287. //
  2288. // // Example sending a request using the ListFleetsRequest method.
  2289. // req, resp := client.ListFleetsRequest(params)
  2290. //
  2291. // err := req.Send()
  2292. // if err == nil { // resp is now filled
  2293. // fmt.Println(resp)
  2294. // }
  2295. //
  2296. func (c *GameLift) ListFleetsRequest(input *ListFleetsInput) (req *request.Request, output *ListFleetsOutput) {
  2297. op := &request.Operation{
  2298. Name: opListFleets,
  2299. HTTPMethod: "POST",
  2300. HTTPPath: "/",
  2301. }
  2302. if input == nil {
  2303. input = &ListFleetsInput{}
  2304. }
  2305. req = c.newRequest(op, input, output)
  2306. output = &ListFleetsOutput{}
  2307. req.Data = output
  2308. return
  2309. }
  2310. // ListFleets API operation for Amazon GameLift.
  2311. //
  2312. // Retrieves a collection of fleet records for this AWS account. You can filter
  2313. // the result set by build ID. Use the pagination parameters to retrieve results
  2314. // in sequential pages.
  2315. //
  2316. // Fleet records are not listed in any particular order.
  2317. //
  2318. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2319. // with awserr.Error's Code and Message methods to get detailed information about
  2320. // the error.
  2321. //
  2322. // See the AWS API reference guide for Amazon GameLift's
  2323. // API operation ListFleets for usage and error information.
  2324. //
  2325. // Returned Error Codes:
  2326. // * InternalServiceException
  2327. // The service encountered an unrecoverable internal failure while processing
  2328. // the request. Clients can retry such requests immediately or after a waiting
  2329. // period.
  2330. //
  2331. // * NotFoundException
  2332. // A service resource associated with the request could not be found. Clients
  2333. // should not retry such requests.
  2334. //
  2335. // * InvalidRequestException
  2336. // One or more parameter values in the request are invalid. Correct the invalid
  2337. // parameter values before retrying.
  2338. //
  2339. // * UnauthorizedException
  2340. // The client failed authentication. Clients should not retry such requests.
  2341. //
  2342. func (c *GameLift) ListFleets(input *ListFleetsInput) (*ListFleetsOutput, error) {
  2343. req, out := c.ListFleetsRequest(input)
  2344. err := req.Send()
  2345. return out, err
  2346. }
  2347. const opPutScalingPolicy = "PutScalingPolicy"
  2348. // PutScalingPolicyRequest generates a "aws/request.Request" representing the
  2349. // client's request for the PutScalingPolicy operation. The "output" return
  2350. // value can be used to capture response data after the request's "Send" method
  2351. // is called.
  2352. //
  2353. // See PutScalingPolicy for usage and error information.
  2354. //
  2355. // Creating a request object using this method should be used when you want to inject
  2356. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2357. // access properties on the request object before or after sending the request. If
  2358. // you just want the service response, call the PutScalingPolicy method directly
  2359. // instead.
  2360. //
  2361. // Note: You must call the "Send" method on the returned request object in order
  2362. // to execute the request.
  2363. //
  2364. // // Example sending a request using the PutScalingPolicyRequest method.
  2365. // req, resp := client.PutScalingPolicyRequest(params)
  2366. //
  2367. // err := req.Send()
  2368. // if err == nil { // resp is now filled
  2369. // fmt.Println(resp)
  2370. // }
  2371. //
  2372. func (c *GameLift) PutScalingPolicyRequest(input *PutScalingPolicyInput) (req *request.Request, output *PutScalingPolicyOutput) {
  2373. op := &request.Operation{
  2374. Name: opPutScalingPolicy,
  2375. HTTPMethod: "POST",
  2376. HTTPPath: "/",
  2377. }
  2378. if input == nil {
  2379. input = &PutScalingPolicyInput{}
  2380. }
  2381. req = c.newRequest(op, input, output)
  2382. output = &PutScalingPolicyOutput{}
  2383. req.Data = output
  2384. return
  2385. }
  2386. // PutScalingPolicy API operation for Amazon GameLift.
  2387. //
  2388. // Creates or updates a scaling policy for a fleet. An active scaling policy
  2389. // prompts Amazon GameLift to track a certain metric for a fleet and automatically
  2390. // change the fleet's capacity in specific circumstances. Each scaling policy
  2391. // contains one rule statement. Fleets can have multiple scaling policies in
  2392. // force simultaneously.
  2393. //
  2394. // A scaling policy rule statement has the following structure:
  2395. //
  2396. // If [MetricName] is [ComparisonOperator][Threshold] for [EvaluationPeriods]
  2397. // minutes, then [ScalingAdjustmentType] to/by [ScalingAdjustment].
  2398. //
  2399. // For example, this policy: "If the number of idle instances exceeds 20 for
  2400. // more than 15 minutes, then reduce the fleet capacity by 10 instances" could
  2401. // be implemented as the following rule statement:
  2402. //
  2403. // If [IdleInstances] is [GreaterThanOrEqualToThreshold] [20] for [15] minutes,
  2404. // then [ChangeInCapacity] by [-10].
  2405. //
  2406. // To create or update a scaling policy, specify a unique combination of name
  2407. // and fleet ID, and set the rule values. All parameters for this action are
  2408. // required. If successful, the policy name is returned. Scaling policies cannot
  2409. // be suspended or made inactive. To stop enforcing a scaling policy, call DeleteScalingPolicy.
  2410. //
  2411. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2412. // with awserr.Error's Code and Message methods to get detailed information about
  2413. // the error.
  2414. //
  2415. // See the AWS API reference guide for Amazon GameLift's
  2416. // API operation PutScalingPolicy for usage and error information.
  2417. //
  2418. // Returned Error Codes:
  2419. // * InternalServiceException
  2420. // The service encountered an unrecoverable internal failure while processing
  2421. // the request. Clients can retry such requests immediately or after a waiting
  2422. // period.
  2423. //
  2424. // * InvalidRequestException
  2425. // One or more parameter values in the request are invalid. Correct the invalid
  2426. // parameter values before retrying.
  2427. //
  2428. // * UnauthorizedException
  2429. // The client failed authentication. Clients should not retry such requests.
  2430. //
  2431. // * NotFoundException
  2432. // A service resource associated with the request could not be found. Clients
  2433. // should not retry such requests.
  2434. //
  2435. func (c *GameLift) PutScalingPolicy(input *PutScalingPolicyInput) (*PutScalingPolicyOutput, error) {
  2436. req, out := c.PutScalingPolicyRequest(input)
  2437. err := req.Send()
  2438. return out, err
  2439. }
  2440. const opRequestUploadCredentials = "RequestUploadCredentials"
  2441. // RequestUploadCredentialsRequest generates a "aws/request.Request" representing the
  2442. // client's request for the RequestUploadCredentials operation. The "output" return
  2443. // value can be used to capture response data after the request's "Send" method
  2444. // is called.
  2445. //
  2446. // See RequestUploadCredentials for usage and error information.
  2447. //
  2448. // Creating a request object using this method should be used when you want to inject
  2449. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2450. // access properties on the request object before or after sending the request. If
  2451. // you just want the service response, call the RequestUploadCredentials method directly
  2452. // instead.
  2453. //
  2454. // Note: You must call the "Send" method on the returned request object in order
  2455. // to execute the request.
  2456. //
  2457. // // Example sending a request using the RequestUploadCredentialsRequest method.
  2458. // req, resp := client.RequestUploadCredentialsRequest(params)
  2459. //
  2460. // err := req.Send()
  2461. // if err == nil { // resp is now filled
  2462. // fmt.Println(resp)
  2463. // }
  2464. //
  2465. func (c *GameLift) RequestUploadCredentialsRequest(input *RequestUploadCredentialsInput) (req *request.Request, output *RequestUploadCredentialsOutput) {
  2466. op := &request.Operation{
  2467. Name: opRequestUploadCredentials,
  2468. HTTPMethod: "POST",
  2469. HTTPPath: "/",
  2470. }
  2471. if input == nil {
  2472. input = &RequestUploadCredentialsInput{}
  2473. }
  2474. req = c.newRequest(op, input, output)
  2475. output = &RequestUploadCredentialsOutput{}
  2476. req.Data = output
  2477. return
  2478. }
  2479. // RequestUploadCredentials API operation for Amazon GameLift.
  2480. //
  2481. // Retrieves a fresh set of upload credentials and the assigned Amazon S3 storage
  2482. // location for a specific build. Valid credentials are required to upload your
  2483. // game build files to Amazon S3.
  2484. //
  2485. // Call this action only if you need credentials for a build created with CreateBuild.
  2486. // This is a rare situation; in most cases, builds are created using the CLI
  2487. // command upload-build, which creates a build record and also uploads build
  2488. // files.
  2489. //
  2490. // Upload credentials are returned when you create the build, but they have
  2491. // a limited lifespan. You can get fresh credentials and use them to re-upload
  2492. // game files until the status of that build changes to READY. Once this happens,
  2493. // you must create a brand new build.
  2494. //
  2495. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2496. // with awserr.Error's Code and Message methods to get detailed information about
  2497. // the error.
  2498. //
  2499. // See the AWS API reference guide for Amazon GameLift's
  2500. // API operation RequestUploadCredentials for usage and error information.
  2501. //
  2502. // Returned Error Codes:
  2503. // * UnauthorizedException
  2504. // The client failed authentication. Clients should not retry such requests.
  2505. //
  2506. // * InvalidRequestException
  2507. // One or more parameter values in the request are invalid. Correct the invalid
  2508. // parameter values before retrying.
  2509. //
  2510. // * NotFoundException
  2511. // A service resource associated with the request could not be found. Clients
  2512. // should not retry such requests.
  2513. //
  2514. // * InternalServiceException
  2515. // The service encountered an unrecoverable internal failure while processing
  2516. // the request. Clients can retry such requests immediately or after a waiting
  2517. // period.
  2518. //
  2519. func (c *GameLift) RequestUploadCredentials(input *RequestUploadCredentialsInput) (*RequestUploadCredentialsOutput, error) {
  2520. req, out := c.RequestUploadCredentialsRequest(input)
  2521. err := req.Send()
  2522. return out, err
  2523. }
  2524. const opResolveAlias = "ResolveAlias"
  2525. // ResolveAliasRequest generates a "aws/request.Request" representing the
  2526. // client's request for the ResolveAlias operation. The "output" return
  2527. // value can be used to capture response data after the request's "Send" method
  2528. // is called.
  2529. //
  2530. // See ResolveAlias for usage and error information.
  2531. //
  2532. // Creating a request object using this method should be used when you want to inject
  2533. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2534. // access properties on the request object before or after sending the request. If
  2535. // you just want the service response, call the ResolveAlias method directly
  2536. // instead.
  2537. //
  2538. // Note: You must call the "Send" method on the returned request object in order
  2539. // to execute the request.
  2540. //
  2541. // // Example sending a request using the ResolveAliasRequest method.
  2542. // req, resp := client.ResolveAliasRequest(params)
  2543. //
  2544. // err := req.Send()
  2545. // if err == nil { // resp is now filled
  2546. // fmt.Println(resp)
  2547. // }
  2548. //
  2549. func (c *GameLift) ResolveAliasRequest(input *ResolveAliasInput) (req *request.Request, output *ResolveAliasOutput) {
  2550. op := &request.Operation{
  2551. Name: opResolveAlias,
  2552. HTTPMethod: "POST",
  2553. HTTPPath: "/",
  2554. }
  2555. if input == nil {
  2556. input = &ResolveAliasInput{}
  2557. }
  2558. req = c.newRequest(op, input, output)
  2559. output = &ResolveAliasOutput{}
  2560. req.Data = output
  2561. return
  2562. }
  2563. // ResolveAlias API operation for Amazon GameLift.
  2564. //
  2565. // Retrieves the fleet ID that a specified alias is currently pointing to.
  2566. //
  2567. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2568. // with awserr.Error's Code and Message methods to get detailed information about
  2569. // the error.
  2570. //
  2571. // See the AWS API reference guide for Amazon GameLift's
  2572. // API operation ResolveAlias for usage and error information.
  2573. //
  2574. // Returned Error Codes:
  2575. // * UnauthorizedException
  2576. // The client failed authentication. Clients should not retry such requests.
  2577. //
  2578. // * InvalidRequestException
  2579. // One or more parameter values in the request are invalid. Correct the invalid
  2580. // parameter values before retrying.
  2581. //
  2582. // * NotFoundException
  2583. // A service resource associated with the request could not be found. Clients
  2584. // should not retry such requests.
  2585. //
  2586. // * TerminalRoutingStrategyException
  2587. // The service is unable to resolve the routing for a particular alias because
  2588. // it has a terminal RoutingStrategy associated with it. The message returned
  2589. // in this exception is the message defined in the routing strategy itself.
  2590. // Such requests should only be retried if the routing strategy for the specified
  2591. // alias is modified.
  2592. //
  2593. // * InternalServiceException
  2594. // The service encountered an unrecoverable internal failure while processing
  2595. // the request. Clients can retry such requests immediately or after a waiting
  2596. // period.
  2597. //
  2598. func (c *GameLift) ResolveAlias(input *ResolveAliasInput) (*ResolveAliasOutput, error) {
  2599. req, out := c.ResolveAliasRequest(input)
  2600. err := req.Send()
  2601. return out, err
  2602. }
  2603. const opSearchGameSessions = "SearchGameSessions"
  2604. // SearchGameSessionsRequest generates a "aws/request.Request" representing the
  2605. // client's request for the SearchGameSessions operation. The "output" return
  2606. // value can be used to capture response data after the request's "Send" method
  2607. // is called.
  2608. //
  2609. // See SearchGameSessions for usage and error information.
  2610. //
  2611. // Creating a request object using this method should be used when you want to inject
  2612. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2613. // access properties on the request object before or after sending the request. If
  2614. // you just want the service response, call the SearchGameSessions method directly
  2615. // instead.
  2616. //
  2617. // Note: You must call the "Send" method on the returned request object in order
  2618. // to execute the request.
  2619. //
  2620. // // Example sending a request using the SearchGameSessionsRequest method.
  2621. // req, resp := client.SearchGameSessionsRequest(params)
  2622. //
  2623. // err := req.Send()
  2624. // if err == nil { // resp is now filled
  2625. // fmt.Println(resp)
  2626. // }
  2627. //
  2628. func (c *GameLift) SearchGameSessionsRequest(input *SearchGameSessionsInput) (req *request.Request, output *SearchGameSessionsOutput) {
  2629. op := &request.Operation{
  2630. Name: opSearchGameSessions,
  2631. HTTPMethod: "POST",
  2632. HTTPPath: "/",
  2633. }
  2634. if input == nil {
  2635. input = &SearchGameSessionsInput{}
  2636. }
  2637. req = c.newRequest(op, input, output)
  2638. output = &SearchGameSessionsOutput{}
  2639. req.Data = output
  2640. return
  2641. }
  2642. // SearchGameSessions API operation for Amazon GameLift.
  2643. //
  2644. // Retrieves a set of game sessions that match a set of search criteria and
  2645. // sorts them in a specified order. Currently a game session search is limited
  2646. // to a single fleet. Search results include only game sessions that are in
  2647. // ACTIVE status. If you need to retrieve game sessions with a status other
  2648. // than active, use DescribeGameSessions. If you need to retrieve the protection
  2649. // policy for each game session, use DescribeGameSessionDetails.
  2650. //
  2651. // You can search or sort by the following game session attributes:
  2652. //
  2653. // * gameSessionId -- ID value assigned to a game session. This unique value
  2654. // is returned in a GameSession object when a new game session is created.
  2655. //
  2656. //
  2657. // * gameSessionName -- Name assigned to a game session. This value is set
  2658. // when requesting a new game session with CreateGameSession or updating
  2659. // with UpdateGameSession. Game session names do not need to be unique to
  2660. // a game session.
  2661. //
  2662. // * creationTimeMillis -- Value indicating when a game session was created.
  2663. // It is expressed in Unix time as milliseconds.
  2664. //
  2665. // * playerSessionCount -- Number of players currently connected to a game
  2666. // session. This value changes rapidly as players join the session or drop
  2667. // out.
  2668. //
  2669. // * maximumSessions -- Maximum number of player sessions allowed for a game
  2670. // session. This value is set when requesting a new game session with CreateGameSession
  2671. // or updating with UpdateGameSession.
  2672. //
  2673. // * hasAvailablePlayerSessions -- Boolean value indicating whether or not
  2674. // a game session has reached its maximum number of players. When searching
  2675. // with this attribute, the search value must be true or false. It is highly
  2676. // recommended that all search requests include this filter attribute to
  2677. // optimize search performance and return only sessions that players can
  2678. // join.
  2679. //
  2680. // To search or sort, specify either a fleet ID or an alias ID, and provide
  2681. // a search filter expression, a sort expression, or both. Use the pagination
  2682. // parameters to retrieve results as a set of sequential pages. If successful,
  2683. // a collection of GameSession objects matching the request is returned.
  2684. //
  2685. // Returned values for playerSessionCount and hasAvailablePlayerSessions change
  2686. // quickly as players join sessions and others drop out. Results should be considered
  2687. // a snapshot in time. Be sure to refresh search results often, and handle sessions
  2688. // that fill up before a player can join.
  2689. //
  2690. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2691. // with awserr.Error's Code and Message methods to get detailed information about
  2692. // the error.
  2693. //
  2694. // See the AWS API reference guide for Amazon GameLift's
  2695. // API operation SearchGameSessions for usage and error information.
  2696. //
  2697. // Returned Error Codes:
  2698. // * InternalServiceException
  2699. // The service encountered an unrecoverable internal failure while processing
  2700. // the request. Clients can retry such requests immediately or after a waiting
  2701. // period.
  2702. //
  2703. // * NotFoundException
  2704. // A service resource associated with the request could not be found. Clients
  2705. // should not retry such requests.
  2706. //
  2707. // * InvalidRequestException
  2708. // One or more parameter values in the request are invalid. Correct the invalid
  2709. // parameter values before retrying.
  2710. //
  2711. // * UnauthorizedException
  2712. // The client failed authentication. Clients should not retry such requests.
  2713. //
  2714. // * TerminalRoutingStrategyException
  2715. // The service is unable to resolve the routing for a particular alias because
  2716. // it has a terminal RoutingStrategy associated with it. The message returned
  2717. // in this exception is the message defined in the routing strategy itself.
  2718. // Such requests should only be retried if the routing strategy for the specified
  2719. // alias is modified.
  2720. //
  2721. func (c *GameLift) SearchGameSessions(input *SearchGameSessionsInput) (*SearchGameSessionsOutput, error) {
  2722. req, out := c.SearchGameSessionsRequest(input)
  2723. err := req.Send()
  2724. return out, err
  2725. }
  2726. const opUpdateAlias = "UpdateAlias"
  2727. // UpdateAliasRequest generates a "aws/request.Request" representing the
  2728. // client's request for the UpdateAlias operation. The "output" return
  2729. // value can be used to capture response data after the request's "Send" method
  2730. // is called.
  2731. //
  2732. // See UpdateAlias for usage and error information.
  2733. //
  2734. // Creating a request object using this method should be used when you want to inject
  2735. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2736. // access properties on the request object before or after sending the request. If
  2737. // you just want the service response, call the UpdateAlias method directly
  2738. // instead.
  2739. //
  2740. // Note: You must call the "Send" method on the returned request object in order
  2741. // to execute the request.
  2742. //
  2743. // // Example sending a request using the UpdateAliasRequest method.
  2744. // req, resp := client.UpdateAliasRequest(params)
  2745. //
  2746. // err := req.Send()
  2747. // if err == nil { // resp is now filled
  2748. // fmt.Println(resp)
  2749. // }
  2750. //
  2751. func (c *GameLift) UpdateAliasRequest(input *UpdateAliasInput) (req *request.Request, output *UpdateAliasOutput) {
  2752. op := &request.Operation{
  2753. Name: opUpdateAlias,
  2754. HTTPMethod: "POST",
  2755. HTTPPath: "/",
  2756. }
  2757. if input == nil {
  2758. input = &UpdateAliasInput{}
  2759. }
  2760. req = c.newRequest(op, input, output)
  2761. output = &UpdateAliasOutput{}
  2762. req.Data = output
  2763. return
  2764. }
  2765. // UpdateAlias API operation for Amazon GameLift.
  2766. //
  2767. // Updates properties for an alias. To update properties, specify the alias
  2768. // ID to be updated and provide the information to be changed. To reassign an
  2769. // alias to another fleet, provide an updated routing strategy. If successful,
  2770. // the updated alias record is returned.
  2771. //
  2772. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2773. // with awserr.Error's Code and Message methods to get detailed information about
  2774. // the error.
  2775. //
  2776. // See the AWS API reference guide for Amazon GameLift's
  2777. // API operation UpdateAlias for usage and error information.
  2778. //
  2779. // Returned Error Codes:
  2780. // * UnauthorizedException
  2781. // The client failed authentication. Clients should not retry such requests.
  2782. //
  2783. // * InvalidRequestException
  2784. // One or more parameter values in the request are invalid. Correct the invalid
  2785. // parameter values before retrying.
  2786. //
  2787. // * NotFoundException
  2788. // A service resource associated with the request could not be found. Clients
  2789. // should not retry such requests.
  2790. //
  2791. // * InternalServiceException
  2792. // The service encountered an unrecoverable internal failure while processing
  2793. // the request. Clients can retry such requests immediately or after a waiting
  2794. // period.
  2795. //
  2796. func (c *GameLift) UpdateAlias(input *UpdateAliasInput) (*UpdateAliasOutput, error) {
  2797. req, out := c.UpdateAliasRequest(input)
  2798. err := req.Send()
  2799. return out, err
  2800. }
  2801. const opUpdateBuild = "UpdateBuild"
  2802. // UpdateBuildRequest generates a "aws/request.Request" representing the
  2803. // client's request for the UpdateBuild operation. The "output" return
  2804. // value can be used to capture response data after the request's "Send" method
  2805. // is called.
  2806. //
  2807. // See UpdateBuild for usage and error information.
  2808. //
  2809. // Creating a request object using this method should be used when you want to inject
  2810. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2811. // access properties on the request object before or after sending the request. If
  2812. // you just want the service response, call the UpdateBuild method directly
  2813. // instead.
  2814. //
  2815. // Note: You must call the "Send" method on the returned request object in order
  2816. // to execute the request.
  2817. //
  2818. // // Example sending a request using the UpdateBuildRequest method.
  2819. // req, resp := client.UpdateBuildRequest(params)
  2820. //
  2821. // err := req.Send()
  2822. // if err == nil { // resp is now filled
  2823. // fmt.Println(resp)
  2824. // }
  2825. //
  2826. func (c *GameLift) UpdateBuildRequest(input *UpdateBuildInput) (req *request.Request, output *UpdateBuildOutput) {
  2827. op := &request.Operation{
  2828. Name: opUpdateBuild,
  2829. HTTPMethod: "POST",
  2830. HTTPPath: "/",
  2831. }
  2832. if input == nil {
  2833. input = &UpdateBuildInput{}
  2834. }
  2835. req = c.newRequest(op, input, output)
  2836. output = &UpdateBuildOutput{}
  2837. req.Data = output
  2838. return
  2839. }
  2840. // UpdateBuild API operation for Amazon GameLift.
  2841. //
  2842. // Updates metadata in a build record, including the build name and version.
  2843. // To update the metadata, specify the build ID to update and provide the new
  2844. // values. If successful, a build object containing the updated metadata is
  2845. // returned.
  2846. //
  2847. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2848. // with awserr.Error's Code and Message methods to get detailed information about
  2849. // the error.
  2850. //
  2851. // See the AWS API reference guide for Amazon GameLift's
  2852. // API operation UpdateBuild for usage and error information.
  2853. //
  2854. // Returned Error Codes:
  2855. // * UnauthorizedException
  2856. // The client failed authentication. Clients should not retry such requests.
  2857. //
  2858. // * InvalidRequestException
  2859. // One or more parameter values in the request are invalid. Correct the invalid
  2860. // parameter values before retrying.
  2861. //
  2862. // * NotFoundException
  2863. // A service resource associated with the request could not be found. Clients
  2864. // should not retry such requests.
  2865. //
  2866. // * InternalServiceException
  2867. // The service encountered an unrecoverable internal failure while processing
  2868. // the request. Clients can retry such requests immediately or after a waiting
  2869. // period.
  2870. //
  2871. func (c *GameLift) UpdateBuild(input *UpdateBuildInput) (*UpdateBuildOutput, error) {
  2872. req, out := c.UpdateBuildRequest(input)
  2873. err := req.Send()
  2874. return out, err
  2875. }
  2876. const opUpdateFleetAttributes = "UpdateFleetAttributes"
  2877. // UpdateFleetAttributesRequest generates a "aws/request.Request" representing the
  2878. // client's request for the UpdateFleetAttributes operation. The "output" return
  2879. // value can be used to capture response data after the request's "Send" method
  2880. // is called.
  2881. //
  2882. // See UpdateFleetAttributes for usage and error information.
  2883. //
  2884. // Creating a request object using this method should be used when you want to inject
  2885. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2886. // access properties on the request object before or after sending the request. If
  2887. // you just want the service response, call the UpdateFleetAttributes method directly
  2888. // instead.
  2889. //
  2890. // Note: You must call the "Send" method on the returned request object in order
  2891. // to execute the request.
  2892. //
  2893. // // Example sending a request using the UpdateFleetAttributesRequest method.
  2894. // req, resp := client.UpdateFleetAttributesRequest(params)
  2895. //
  2896. // err := req.Send()
  2897. // if err == nil { // resp is now filled
  2898. // fmt.Println(resp)
  2899. // }
  2900. //
  2901. func (c *GameLift) UpdateFleetAttributesRequest(input *UpdateFleetAttributesInput) (req *request.Request, output *UpdateFleetAttributesOutput) {
  2902. op := &request.Operation{
  2903. Name: opUpdateFleetAttributes,
  2904. HTTPMethod: "POST",
  2905. HTTPPath: "/",
  2906. }
  2907. if input == nil {
  2908. input = &UpdateFleetAttributesInput{}
  2909. }
  2910. req = c.newRequest(op, input, output)
  2911. output = &UpdateFleetAttributesOutput{}
  2912. req.Data = output
  2913. return
  2914. }
  2915. // UpdateFleetAttributes API operation for Amazon GameLift.
  2916. //
  2917. // Updates fleet properties, including name and description, for a fleet. To
  2918. // update metadata, specify the fleet ID and the property values you want to
  2919. // change. If successful, the fleet ID for the updated fleet is returned.
  2920. //
  2921. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2922. // with awserr.Error's Code and Message methods to get detailed information about
  2923. // the error.
  2924. //
  2925. // See the AWS API reference guide for Amazon GameLift's
  2926. // API operation UpdateFleetAttributes for usage and error information.
  2927. //
  2928. // Returned Error Codes:
  2929. // * NotFoundException
  2930. // A service resource associated with the request could not be found. Clients
  2931. // should not retry such requests.
  2932. //
  2933. // * ConflictException
  2934. // The requested operation would cause a conflict with the current state of
  2935. // a service resource associated with the request. Resolve the conflict before
  2936. // retrying this request.
  2937. //
  2938. // * InvalidFleetStatusException
  2939. // The requested operation would cause a conflict with the current state of
  2940. // a resource associated with the request and/or the fleet. Resolve the conflict
  2941. // before retrying.
  2942. //
  2943. // * LimitExceededException
  2944. // The requested operation would cause the resource to exceed the allowed service
  2945. // limit. Resolve the issue before retrying.
  2946. //
  2947. // * InternalServiceException
  2948. // The service encountered an unrecoverable internal failure while processing
  2949. // the request. Clients can retry such requests immediately or after a waiting
  2950. // period.
  2951. //
  2952. // * InvalidRequestException
  2953. // One or more parameter values in the request are invalid. Correct the invalid
  2954. // parameter values before retrying.
  2955. //
  2956. // * UnauthorizedException
  2957. // The client failed authentication. Clients should not retry such requests.
  2958. //
  2959. func (c *GameLift) UpdateFleetAttributes(input *UpdateFleetAttributesInput) (*UpdateFleetAttributesOutput, error) {
  2960. req, out := c.UpdateFleetAttributesRequest(input)
  2961. err := req.Send()
  2962. return out, err
  2963. }
  2964. const opUpdateFleetCapacity = "UpdateFleetCapacity"
  2965. // UpdateFleetCapacityRequest generates a "aws/request.Request" representing the
  2966. // client's request for the UpdateFleetCapacity operation. The "output" return
  2967. // value can be used to capture response data after the request's "Send" method
  2968. // is called.
  2969. //
  2970. // See UpdateFleetCapacity for usage and error information.
  2971. //
  2972. // Creating a request object using this method should be used when you want to inject
  2973. // custom logic into the request's lifecycle using a custom handler, or if you want to
  2974. // access properties on the request object before or after sending the request. If
  2975. // you just want the service response, call the UpdateFleetCapacity method directly
  2976. // instead.
  2977. //
  2978. // Note: You must call the "Send" method on the returned request object in order
  2979. // to execute the request.
  2980. //
  2981. // // Example sending a request using the UpdateFleetCapacityRequest method.
  2982. // req, resp := client.UpdateFleetCapacityRequest(params)
  2983. //
  2984. // err := req.Send()
  2985. // if err == nil { // resp is now filled
  2986. // fmt.Println(resp)
  2987. // }
  2988. //
  2989. func (c *GameLift) UpdateFleetCapacityRequest(input *UpdateFleetCapacityInput) (req *request.Request, output *UpdateFleetCapacityOutput) {
  2990. op := &request.Operation{
  2991. Name: opUpdateFleetCapacity,
  2992. HTTPMethod: "POST",
  2993. HTTPPath: "/",
  2994. }
  2995. if input == nil {
  2996. input = &UpdateFleetCapacityInput{}
  2997. }
  2998. req = c.newRequest(op, input, output)
  2999. output = &UpdateFleetCapacityOutput{}
  3000. req.Data = output
  3001. return
  3002. }
  3003. // UpdateFleetCapacity API operation for Amazon GameLift.
  3004. //
  3005. // Updates capacity settings for a fleet. Use this action to specify the number
  3006. // of EC2 instances (hosts) that you want this fleet to contain. Before calling
  3007. // this action, you may want to call DescribeEC2InstanceLimits to get the maximum
  3008. // capacity based on the fleet's EC2 instance type.
  3009. //
  3010. // If you're using autoscaling (see PutScalingPolicy), you may want to specify
  3011. // a minimum and/or maximum capacity. If you don't provide these, autoscaling
  3012. // can set capacity anywhere between zero and the service limits (http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#limits_gamelift).
  3013. //
  3014. // To update fleet capacity, specify the fleet ID and the number of instances
  3015. // you want the fleet to host. If successful, Amazon GameLift starts or terminates
  3016. // instances so that the fleet's active instance count matches the desired instance
  3017. // count. You can view a fleet's current capacity information by calling DescribeFleetCapacity.
  3018. // If the desired instance count is higher than the instance type's limit, the
  3019. // "Limit Exceeded" exception occurs.
  3020. //
  3021. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3022. // with awserr.Error's Code and Message methods to get detailed information about
  3023. // the error.
  3024. //
  3025. // See the AWS API reference guide for Amazon GameLift's
  3026. // API operation UpdateFleetCapacity for usage and error information.
  3027. //
  3028. // Returned Error Codes:
  3029. // * NotFoundException
  3030. // A service resource associated with the request could not be found. Clients
  3031. // should not retry such requests.
  3032. //
  3033. // * ConflictException
  3034. // The requested operation would cause a conflict with the current state of
  3035. // a service resource associated with the request. Resolve the conflict before
  3036. // retrying this request.
  3037. //
  3038. // * LimitExceededException
  3039. // The requested operation would cause the resource to exceed the allowed service
  3040. // limit. Resolve the issue before retrying.
  3041. //
  3042. // * InvalidFleetStatusException
  3043. // The requested operation would cause a conflict with the current state of
  3044. // a resource associated with the request and/or the fleet. Resolve the conflict
  3045. // before retrying.
  3046. //
  3047. // * InternalServiceException
  3048. // The service encountered an unrecoverable internal failure while processing
  3049. // the request. Clients can retry such requests immediately or after a waiting
  3050. // period.
  3051. //
  3052. // * InvalidRequestException
  3053. // One or more parameter values in the request are invalid. Correct the invalid
  3054. // parameter values before retrying.
  3055. //
  3056. // * UnauthorizedException
  3057. // The client failed authentication. Clients should not retry such requests.
  3058. //
  3059. func (c *GameLift) UpdateFleetCapacity(input *UpdateFleetCapacityInput) (*UpdateFleetCapacityOutput, error) {
  3060. req, out := c.UpdateFleetCapacityRequest(input)
  3061. err := req.Send()
  3062. return out, err
  3063. }
  3064. const opUpdateFleetPortSettings = "UpdateFleetPortSettings"
  3065. // UpdateFleetPortSettingsRequest generates a "aws/request.Request" representing the
  3066. // client's request for the UpdateFleetPortSettings operation. The "output" return
  3067. // value can be used to capture response data after the request's "Send" method
  3068. // is called.
  3069. //
  3070. // See UpdateFleetPortSettings for usage and error information.
  3071. //
  3072. // Creating a request object using this method should be used when you want to inject
  3073. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3074. // access properties on the request object before or after sending the request. If
  3075. // you just want the service response, call the UpdateFleetPortSettings method directly
  3076. // instead.
  3077. //
  3078. // Note: You must call the "Send" method on the returned request object in order
  3079. // to execute the request.
  3080. //
  3081. // // Example sending a request using the UpdateFleetPortSettingsRequest method.
  3082. // req, resp := client.UpdateFleetPortSettingsRequest(params)
  3083. //
  3084. // err := req.Send()
  3085. // if err == nil { // resp is now filled
  3086. // fmt.Println(resp)
  3087. // }
  3088. //
  3089. func (c *GameLift) UpdateFleetPortSettingsRequest(input *UpdateFleetPortSettingsInput) (req *request.Request, output *UpdateFleetPortSettingsOutput) {
  3090. op := &request.Operation{
  3091. Name: opUpdateFleetPortSettings,
  3092. HTTPMethod: "POST",
  3093. HTTPPath: "/",
  3094. }
  3095. if input == nil {
  3096. input = &UpdateFleetPortSettingsInput{}
  3097. }
  3098. req = c.newRequest(op, input, output)
  3099. output = &UpdateFleetPortSettingsOutput{}
  3100. req.Data = output
  3101. return
  3102. }
  3103. // UpdateFleetPortSettings API operation for Amazon GameLift.
  3104. //
  3105. // Updates port settings for a fleet. To update settings, specify the fleet
  3106. // ID to be updated and list the permissions you want to update. List the permissions
  3107. // you want to add in InboundPermissionAuthorizations, and permissions you want
  3108. // to remove in InboundPermissionRevocations. Permissions to be removed must
  3109. // match existing fleet permissions. If successful, the fleet ID for the updated
  3110. // fleet is returned.
  3111. //
  3112. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3113. // with awserr.Error's Code and Message methods to get detailed information about
  3114. // the error.
  3115. //
  3116. // See the AWS API reference guide for Amazon GameLift's
  3117. // API operation UpdateFleetPortSettings for usage and error information.
  3118. //
  3119. // Returned Error Codes:
  3120. // * NotFoundException
  3121. // A service resource associated with the request could not be found. Clients
  3122. // should not retry such requests.
  3123. //
  3124. // * ConflictException
  3125. // The requested operation would cause a conflict with the current state of
  3126. // a service resource associated with the request. Resolve the conflict before
  3127. // retrying this request.
  3128. //
  3129. // * InvalidFleetStatusException
  3130. // The requested operation would cause a conflict with the current state of
  3131. // a resource associated with the request and/or the fleet. Resolve the conflict
  3132. // before retrying.
  3133. //
  3134. // * LimitExceededException
  3135. // The requested operation would cause the resource to exceed the allowed service
  3136. // limit. Resolve the issue before retrying.
  3137. //
  3138. // * InternalServiceException
  3139. // The service encountered an unrecoverable internal failure while processing
  3140. // the request. Clients can retry such requests immediately or after a waiting
  3141. // period.
  3142. //
  3143. // * InvalidRequestException
  3144. // One or more parameter values in the request are invalid. Correct the invalid
  3145. // parameter values before retrying.
  3146. //
  3147. // * UnauthorizedException
  3148. // The client failed authentication. Clients should not retry such requests.
  3149. //
  3150. func (c *GameLift) UpdateFleetPortSettings(input *UpdateFleetPortSettingsInput) (*UpdateFleetPortSettingsOutput, error) {
  3151. req, out := c.UpdateFleetPortSettingsRequest(input)
  3152. err := req.Send()
  3153. return out, err
  3154. }
  3155. const opUpdateGameSession = "UpdateGameSession"
  3156. // UpdateGameSessionRequest generates a "aws/request.Request" representing the
  3157. // client's request for the UpdateGameSession operation. The "output" return
  3158. // value can be used to capture response data after the request's "Send" method
  3159. // is called.
  3160. //
  3161. // See UpdateGameSession for usage and error information.
  3162. //
  3163. // Creating a request object using this method should be used when you want to inject
  3164. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3165. // access properties on the request object before or after sending the request. If
  3166. // you just want the service response, call the UpdateGameSession method directly
  3167. // instead.
  3168. //
  3169. // Note: You must call the "Send" method on the returned request object in order
  3170. // to execute the request.
  3171. //
  3172. // // Example sending a request using the UpdateGameSessionRequest method.
  3173. // req, resp := client.UpdateGameSessionRequest(params)
  3174. //
  3175. // err := req.Send()
  3176. // if err == nil { // resp is now filled
  3177. // fmt.Println(resp)
  3178. // }
  3179. //
  3180. func (c *GameLift) UpdateGameSessionRequest(input *UpdateGameSessionInput) (req *request.Request, output *UpdateGameSessionOutput) {
  3181. op := &request.Operation{
  3182. Name: opUpdateGameSession,
  3183. HTTPMethod: "POST",
  3184. HTTPPath: "/",
  3185. }
  3186. if input == nil {
  3187. input = &UpdateGameSessionInput{}
  3188. }
  3189. req = c.newRequest(op, input, output)
  3190. output = &UpdateGameSessionOutput{}
  3191. req.Data = output
  3192. return
  3193. }
  3194. // UpdateGameSession API operation for Amazon GameLift.
  3195. //
  3196. // Updates game session properties. This includes the session name, maximum
  3197. // player count, protection policy, which controls whether or not an active
  3198. // game session can be terminated during a scale-down event, and the player
  3199. // session creation policy, which controls whether or not new players can join
  3200. // the session. To update a game session, specify the game session ID and the
  3201. // values you want to change. If successful, an updated GameSession object is
  3202. // returned.
  3203. //
  3204. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3205. // with awserr.Error's Code and Message methods to get detailed information about
  3206. // the error.
  3207. //
  3208. // See the AWS API reference guide for Amazon GameLift's
  3209. // API operation UpdateGameSession for usage and error information.
  3210. //
  3211. // Returned Error Codes:
  3212. // * NotFoundException
  3213. // A service resource associated with the request could not be found. Clients
  3214. // should not retry such requests.
  3215. //
  3216. // * ConflictException
  3217. // The requested operation would cause a conflict with the current state of
  3218. // a service resource associated with the request. Resolve the conflict before
  3219. // retrying this request.
  3220. //
  3221. // * InternalServiceException
  3222. // The service encountered an unrecoverable internal failure while processing
  3223. // the request. Clients can retry such requests immediately or after a waiting
  3224. // period.
  3225. //
  3226. // * UnauthorizedException
  3227. // The client failed authentication. Clients should not retry such requests.
  3228. //
  3229. // * InvalidGameSessionStatusException
  3230. // The requested operation would cause a conflict with the current state of
  3231. // a resource associated with the request and/or the game instance. Resolve
  3232. // the conflict before retrying.
  3233. //
  3234. // * InvalidRequestException
  3235. // One or more parameter values in the request are invalid. Correct the invalid
  3236. // parameter values before retrying.
  3237. //
  3238. func (c *GameLift) UpdateGameSession(input *UpdateGameSessionInput) (*UpdateGameSessionOutput, error) {
  3239. req, out := c.UpdateGameSessionRequest(input)
  3240. err := req.Send()
  3241. return out, err
  3242. }
  3243. const opUpdateRuntimeConfiguration = "UpdateRuntimeConfiguration"
  3244. // UpdateRuntimeConfigurationRequest generates a "aws/request.Request" representing the
  3245. // client's request for the UpdateRuntimeConfiguration operation. The "output" return
  3246. // value can be used to capture response data after the request's "Send" method
  3247. // is called.
  3248. //
  3249. // See UpdateRuntimeConfiguration for usage and error information.
  3250. //
  3251. // Creating a request object using this method should be used when you want to inject
  3252. // custom logic into the request's lifecycle using a custom handler, or if you want to
  3253. // access properties on the request object before or after sending the request. If
  3254. // you just want the service response, call the UpdateRuntimeConfiguration method directly
  3255. // instead.
  3256. //
  3257. // Note: You must call the "Send" method on the returned request object in order
  3258. // to execute the request.
  3259. //
  3260. // // Example sending a request using the UpdateRuntimeConfigurationRequest method.
  3261. // req, resp := client.UpdateRuntimeConfigurationRequest(params)
  3262. //
  3263. // err := req.Send()
  3264. // if err == nil { // resp is now filled
  3265. // fmt.Println(resp)
  3266. // }
  3267. //
  3268. func (c *GameLift) UpdateRuntimeConfigurationRequest(input *UpdateRuntimeConfigurationInput) (req *request.Request, output *UpdateRuntimeConfigurationOutput) {
  3269. op := &request.Operation{
  3270. Name: opUpdateRuntimeConfiguration,
  3271. HTTPMethod: "POST",
  3272. HTTPPath: "/",
  3273. }
  3274. if input == nil {
  3275. input = &UpdateRuntimeConfigurationInput{}
  3276. }
  3277. req = c.newRequest(op, input, output)
  3278. output = &UpdateRuntimeConfigurationOutput{}
  3279. req.Data = output
  3280. return
  3281. }
  3282. // UpdateRuntimeConfiguration API operation for Amazon GameLift.
  3283. //
  3284. // Updates the current runtime configuration for the specified fleet, which
  3285. // tells GameLift how to launch server processes on instances in the fleet.
  3286. // You can update a fleet's runtime configuration at any time after the fleet
  3287. // is created; it does not need to be in an ACTIVE status.
  3288. //
  3289. // To update runtime configuration, specify the fleet ID and provide a RuntimeConfiguration
  3290. // object with the updated collection of server process configurations.
  3291. //
  3292. // Each instance in a GameLift fleet checks regularly for an updated runtime
  3293. // configuration and changes how it launches server processes to comply with
  3294. // the latest version. Existing server processes are not affected by the update;
  3295. // they continue to run until they end, while GameLift simply adds new server
  3296. // processes to fit the current runtime configuration. As a result, the runtime
  3297. // configuration changes are applied gradually as existing processes shut down
  3298. // and new processes are launched in GameLift's normal process recycling activity.
  3299. //
  3300. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3301. // with awserr.Error's Code and Message methods to get detailed information about
  3302. // the error.
  3303. //
  3304. // See the AWS API reference guide for Amazon GameLift's
  3305. // API operation UpdateRuntimeConfiguration for usage and error information.
  3306. //
  3307. // Returned Error Codes:
  3308. // * UnauthorizedException
  3309. // The client failed authentication. Clients should not retry such requests.
  3310. //
  3311. // * NotFoundException
  3312. // A service resource associated with the request could not be found. Clients
  3313. // should not retry such requests.
  3314. //
  3315. // * InternalServiceException
  3316. // The service encountered an unrecoverable internal failure while processing
  3317. // the request. Clients can retry such requests immediately or after a waiting
  3318. // period.
  3319. //
  3320. // * InvalidRequestException
  3321. // One or more parameter values in the request are invalid. Correct the invalid
  3322. // parameter values before retrying.
  3323. //
  3324. // * InvalidFleetStatusException
  3325. // The requested operation would cause a conflict with the current state of
  3326. // a resource associated with the request and/or the fleet. Resolve the conflict
  3327. // before retrying.
  3328. //
  3329. func (c *GameLift) UpdateRuntimeConfiguration(input *UpdateRuntimeConfigurationInput) (*UpdateRuntimeConfigurationOutput, error) {
  3330. req, out := c.UpdateRuntimeConfigurationRequest(input)
  3331. err := req.Send()
  3332. return out, err
  3333. }
  3334. // Properties describing a fleet alias.
  3335. type Alias struct {
  3336. _ struct{} `type:"structure"`
  3337. // Unique identifier for a fleet alias.
  3338. AliasId *string `type:"string"`
  3339. // Time stamp indicating when this data object was created. Format is a number
  3340. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3341. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3342. // Human-readable description of an alias.
  3343. Description *string `type:"string"`
  3344. // Time stamp indicating when this data object was last modified. Format is
  3345. // a number expressed in Unix time as milliseconds (ex: "1469498468.057".
  3346. LastUpdatedTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3347. // Descriptive label associated with an alias. Alias names do not need to be
  3348. // unique.
  3349. Name *string `min:"1" type:"string"`
  3350. // Routing configuration for a fleet alias.
  3351. RoutingStrategy *RoutingStrategy `type:"structure"`
  3352. }
  3353. // String returns the string representation
  3354. func (s Alias) String() string {
  3355. return awsutil.Prettify(s)
  3356. }
  3357. // GoString returns the string representation
  3358. func (s Alias) GoString() string {
  3359. return s.String()
  3360. }
  3361. // AWS access credentials required to upload game build files to Amazon GameLift.
  3362. // These credentials are generated with CreateBuild, and are valid for a limited
  3363. // time. If they expire before you upload your game build, get a new set by
  3364. // calling RequestUploadCredentials.
  3365. type AwsCredentials struct {
  3366. _ struct{} `type:"structure"`
  3367. // Access key for an AWS account.
  3368. AccessKeyId *string `min:"1" type:"string"`
  3369. // Secret key for an AWS account.
  3370. SecretAccessKey *string `min:"1" type:"string"`
  3371. // Token specific to a build ID.
  3372. SessionToken *string `min:"1" type:"string"`
  3373. }
  3374. // String returns the string representation
  3375. func (s AwsCredentials) String() string {
  3376. return awsutil.Prettify(s)
  3377. }
  3378. // GoString returns the string representation
  3379. func (s AwsCredentials) GoString() string {
  3380. return s.String()
  3381. }
  3382. // Properties describing a game build.
  3383. type Build struct {
  3384. _ struct{} `type:"structure"`
  3385. // Unique identifier for a build.
  3386. BuildId *string `type:"string"`
  3387. // Time stamp indicating when this data object was created. Format is a number
  3388. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  3389. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  3390. // Descriptive label associated with a build. Build names do not need to be
  3391. // unique. It can be set using CreateBuild or UpdateBuild.
  3392. Name *string `type:"string"`
  3393. // Operating system that the game server binaries are built to run on. This
  3394. // value determines the type of fleet resources that you can use for this build.
  3395. OperatingSystem *string `type:"string" enum:"OperatingSystem"`
  3396. // File size of the uploaded game build, expressed in bytes. When the build
  3397. // status is INITIALIZED, this value is 0.
  3398. SizeOnDisk *int64 `min:"1" type:"long"`
  3399. // Current status of the build.
  3400. //
  3401. // Possible build statuses include the following:
  3402. //
  3403. // * INITIALIZED – A new build has been defined, but no files have been uploaded.
  3404. // You cannot create fleets for builds that are in this status. When a build
  3405. // is successfully created, the build status is set to this value.
  3406. //
  3407. // * READY – The game build has been successfully uploaded. You can now create
  3408. // new fleets for this build.
  3409. //
  3410. // * FAILED – The game build upload failed. You cannot create new fleets
  3411. // for this build.
  3412. Status *string `type:"string" enum:"BuildStatus"`
  3413. // Version associated with this build. Version strings do not need to be unique
  3414. // to a build. This value can be set using CreateBuild or UpdateBuild.
  3415. Version *string `type:"string"`
  3416. }
  3417. // String returns the string representation
  3418. func (s Build) String() string {
  3419. return awsutil.Prettify(s)
  3420. }
  3421. // GoString returns the string representation
  3422. func (s Build) GoString() string {
  3423. return s.String()
  3424. }
  3425. // Represents the input for a request action.
  3426. type CreateAliasInput struct {
  3427. _ struct{} `type:"structure"`
  3428. // Human-readable description of an alias.
  3429. Description *string `min:"1" type:"string"`
  3430. // Descriptive label associated with an alias. Alias names do not need to be
  3431. // unique.
  3432. //
  3433. // Name is a required field
  3434. Name *string `min:"1" type:"string" required:"true"`
  3435. // Object specifying the fleet and routing type to use for the alias.
  3436. //
  3437. // RoutingStrategy is a required field
  3438. RoutingStrategy *RoutingStrategy `type:"structure" required:"true"`
  3439. }
  3440. // String returns the string representation
  3441. func (s CreateAliasInput) String() string {
  3442. return awsutil.Prettify(s)
  3443. }
  3444. // GoString returns the string representation
  3445. func (s CreateAliasInput) GoString() string {
  3446. return s.String()
  3447. }
  3448. // Validate inspects the fields of the type to determine if they are valid.
  3449. func (s *CreateAliasInput) Validate() error {
  3450. invalidParams := request.ErrInvalidParams{Context: "CreateAliasInput"}
  3451. if s.Description != nil && len(*s.Description) < 1 {
  3452. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  3453. }
  3454. if s.Name == nil {
  3455. invalidParams.Add(request.NewErrParamRequired("Name"))
  3456. }
  3457. if s.Name != nil && len(*s.Name) < 1 {
  3458. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3459. }
  3460. if s.RoutingStrategy == nil {
  3461. invalidParams.Add(request.NewErrParamRequired("RoutingStrategy"))
  3462. }
  3463. if invalidParams.Len() > 0 {
  3464. return invalidParams
  3465. }
  3466. return nil
  3467. }
  3468. // Represents the returned data in response to a request action.
  3469. type CreateAliasOutput struct {
  3470. _ struct{} `type:"structure"`
  3471. // Object containing the newly created alias record.
  3472. Alias *Alias `type:"structure"`
  3473. }
  3474. // String returns the string representation
  3475. func (s CreateAliasOutput) String() string {
  3476. return awsutil.Prettify(s)
  3477. }
  3478. // GoString returns the string representation
  3479. func (s CreateAliasOutput) GoString() string {
  3480. return s.String()
  3481. }
  3482. // Represents the input for a request action.
  3483. type CreateBuildInput struct {
  3484. _ struct{} `type:"structure"`
  3485. // Descriptive label associated with a build. Build names do not need to be
  3486. // unique. A build name can be changed later using UpdateBuild.
  3487. Name *string `min:"1" type:"string"`
  3488. // Operating system that the game server binaries are built to run on. This
  3489. // value determines the type of fleet resources that you can use for this build.
  3490. OperatingSystem *string `type:"string" enum:"OperatingSystem"`
  3491. // Location in Amazon Simple Storage Service (Amazon S3) where a build's files
  3492. // are stored. This location is assigned in response to a CreateBuild call,
  3493. // and is always in the same region as the service used to create the build.
  3494. // For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/).
  3495. StorageLocation *S3Location `type:"structure"`
  3496. // Version associated with this build. Version strings do not need to be unique
  3497. // to a build. A build version can be changed later using UpdateBuild.
  3498. Version *string `min:"1" type:"string"`
  3499. }
  3500. // String returns the string representation
  3501. func (s CreateBuildInput) String() string {
  3502. return awsutil.Prettify(s)
  3503. }
  3504. // GoString returns the string representation
  3505. func (s CreateBuildInput) GoString() string {
  3506. return s.String()
  3507. }
  3508. // Validate inspects the fields of the type to determine if they are valid.
  3509. func (s *CreateBuildInput) Validate() error {
  3510. invalidParams := request.ErrInvalidParams{Context: "CreateBuildInput"}
  3511. if s.Name != nil && len(*s.Name) < 1 {
  3512. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3513. }
  3514. if s.Version != nil && len(*s.Version) < 1 {
  3515. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  3516. }
  3517. if s.StorageLocation != nil {
  3518. if err := s.StorageLocation.Validate(); err != nil {
  3519. invalidParams.AddNested("StorageLocation", err.(request.ErrInvalidParams))
  3520. }
  3521. }
  3522. if invalidParams.Len() > 0 {
  3523. return invalidParams
  3524. }
  3525. return nil
  3526. }
  3527. // Represents the returned data in response to a request action.
  3528. type CreateBuildOutput struct {
  3529. _ struct{} `type:"structure"`
  3530. // Set of properties for the newly created build.
  3531. Build *Build `type:"structure"`
  3532. // Amazon S3 path and key, identifying where the game build files are stored.
  3533. StorageLocation *S3Location `type:"structure"`
  3534. // AWS credentials required when uploading a game build to the storage location.
  3535. // These credentials have a limited lifespan and are valid only for the build
  3536. // they were issued for. If you need to get fresh credentials, call RequestUploadCredentials.
  3537. UploadCredentials *AwsCredentials `type:"structure"`
  3538. }
  3539. // String returns the string representation
  3540. func (s CreateBuildOutput) String() string {
  3541. return awsutil.Prettify(s)
  3542. }
  3543. // GoString returns the string representation
  3544. func (s CreateBuildOutput) GoString() string {
  3545. return s.String()
  3546. }
  3547. // Represents the input for a request action.
  3548. type CreateFleetInput struct {
  3549. _ struct{} `type:"structure"`
  3550. // Unique identifier of the build to be deployed on the new fleet. The build
  3551. // must have been successfully uploaded to GameLift and be in a READY status.
  3552. // This fleet setting cannot be changed once the fleet is created.
  3553. //
  3554. // BuildId is a required field
  3555. BuildId *string `type:"string" required:"true"`
  3556. // Human-readable description of a fleet.
  3557. Description *string `min:"1" type:"string"`
  3558. // Range of IP addresses and port settings that permit inbound traffic to access
  3559. // server processes running on the fleet. If no inbound permissions are set,
  3560. // including both IP address range and port range, the server processes in the
  3561. // fleet cannot accept connections. You can specify one or more sets of permissions
  3562. // for a fleet.
  3563. EC2InboundPermissions []*IpPermission `type:"list"`
  3564. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  3565. // instance type determines the computing resources of each instance in the
  3566. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  3567. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  3568. // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions.
  3569. //
  3570. // EC2InstanceType is a required field
  3571. EC2InstanceType *string `type:"string" required:"true" enum:"EC2InstanceType"`
  3572. // Location of default log files. When a server process is shut down, Amazon
  3573. // GameLift captures and stores any log files in this location. These logs are
  3574. // in addition to game session logs; see more on game session logs in the Amazon
  3575. // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code).
  3576. // If no default log path for a fleet is specified, GameLift will automatically
  3577. // upload logs stored on each instance at C:\game\logs. Use the GameLift console
  3578. // to access stored logs.
  3579. LogPaths []*string `type:"list"`
  3580. // Descriptive label associated with a fleet. Fleet names do not need to be
  3581. // unique.
  3582. //
  3583. // Name is a required field
  3584. Name *string `min:"1" type:"string" required:"true"`
  3585. // Game session protection policy to apply to all instances in this fleet. If
  3586. // this parameter is not set, instances in this fleet default to no protection.
  3587. // You can change a fleet's protection policy using UpdateFleetAttributes, but
  3588. // this change will only affect sessions created after the policy change. You
  3589. // can also set protection for individual instances using UpdateGameSession.
  3590. //
  3591. // * NoProtection – The game session can be terminated during a scale-down
  3592. // event.
  3593. //
  3594. // * FullProtection – If the game session is in an ACTIVE status, it cannot
  3595. // be terminated during a scale-down event.
  3596. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  3597. // Policy that limits the number of game sessions an individual player can create
  3598. // over a span of time for this fleet.
  3599. ResourceCreationLimitPolicy *ResourceCreationLimitPolicy `type:"structure"`
  3600. // Instructions for launching server processes on each instance in the fleet.
  3601. // The runtime configuration for a fleet has a collection of server process
  3602. // configurations, one for each type of server process to run on an instance.
  3603. // A server process configuration specifies the location of the server executable,
  3604. // launch parameters, and the number of concurrent processes with that configuration
  3605. // to maintain on each instance. A CreateFleet request must include a runtime
  3606. // configuration with at least one server process configuration; otherwise the
  3607. // request will fail with an invalid request exception. (This parameter replaces
  3608. // the parameters ServerLaunchPath and ServerLaunchParameters; requests that
  3609. // contain values for these parameters instead of a runtime configuration will
  3610. // continue to work.)
  3611. RuntimeConfiguration *RuntimeConfiguration `type:"structure"`
  3612. // This parameter is no longer used. Instead, specify server launch parameters
  3613. // in the RuntimeConfiguration parameter. (Requests that specify a server launch
  3614. // path and launch parameters instead of a runtime configuration will continue
  3615. // to work.)
  3616. ServerLaunchParameters *string `min:"1" type:"string"`
  3617. // This parameter is no longer used. Instead, specify a server launch path using
  3618. // the RuntimeConfiguration parameter. (Requests that specify a server launch
  3619. // path and launch parameters instead of a runtime configuration will continue
  3620. // to work.)
  3621. ServerLaunchPath *string `min:"1" type:"string"`
  3622. }
  3623. // String returns the string representation
  3624. func (s CreateFleetInput) String() string {
  3625. return awsutil.Prettify(s)
  3626. }
  3627. // GoString returns the string representation
  3628. func (s CreateFleetInput) GoString() string {
  3629. return s.String()
  3630. }
  3631. // Validate inspects the fields of the type to determine if they are valid.
  3632. func (s *CreateFleetInput) Validate() error {
  3633. invalidParams := request.ErrInvalidParams{Context: "CreateFleetInput"}
  3634. if s.BuildId == nil {
  3635. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  3636. }
  3637. if s.Description != nil && len(*s.Description) < 1 {
  3638. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  3639. }
  3640. if s.EC2InstanceType == nil {
  3641. invalidParams.Add(request.NewErrParamRequired("EC2InstanceType"))
  3642. }
  3643. if s.Name == nil {
  3644. invalidParams.Add(request.NewErrParamRequired("Name"))
  3645. }
  3646. if s.Name != nil && len(*s.Name) < 1 {
  3647. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3648. }
  3649. if s.ServerLaunchParameters != nil && len(*s.ServerLaunchParameters) < 1 {
  3650. invalidParams.Add(request.NewErrParamMinLen("ServerLaunchParameters", 1))
  3651. }
  3652. if s.ServerLaunchPath != nil && len(*s.ServerLaunchPath) < 1 {
  3653. invalidParams.Add(request.NewErrParamMinLen("ServerLaunchPath", 1))
  3654. }
  3655. if s.EC2InboundPermissions != nil {
  3656. for i, v := range s.EC2InboundPermissions {
  3657. if v == nil {
  3658. continue
  3659. }
  3660. if err := v.Validate(); err != nil {
  3661. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "EC2InboundPermissions", i), err.(request.ErrInvalidParams))
  3662. }
  3663. }
  3664. }
  3665. if s.RuntimeConfiguration != nil {
  3666. if err := s.RuntimeConfiguration.Validate(); err != nil {
  3667. invalidParams.AddNested("RuntimeConfiguration", err.(request.ErrInvalidParams))
  3668. }
  3669. }
  3670. if invalidParams.Len() > 0 {
  3671. return invalidParams
  3672. }
  3673. return nil
  3674. }
  3675. // Represents the returned data in response to a request action.
  3676. type CreateFleetOutput struct {
  3677. _ struct{} `type:"structure"`
  3678. // Properties for the newly created fleet.
  3679. FleetAttributes *FleetAttributes `type:"structure"`
  3680. }
  3681. // String returns the string representation
  3682. func (s CreateFleetOutput) String() string {
  3683. return awsutil.Prettify(s)
  3684. }
  3685. // GoString returns the string representation
  3686. func (s CreateFleetOutput) GoString() string {
  3687. return s.String()
  3688. }
  3689. // Represents the input for a request action.
  3690. type CreateGameSessionInput struct {
  3691. _ struct{} `type:"structure"`
  3692. // Unique identifier for a fleet alias. Each request must reference either a
  3693. // fleet ID or alias ID, but not both.
  3694. AliasId *string `type:"string"`
  3695. // Player ID identifying the person or entity creating the game session. This
  3696. // ID is used to enforce a resource protection policy (if one exists) that limits
  3697. // the number of concurrent active game sessions one player can have.
  3698. CreatorId *string `min:"1" type:"string"`
  3699. // Unique identifier for a fleet. Each request must reference either a fleet
  3700. // ID or alias ID, but not both.
  3701. FleetId *string `type:"string"`
  3702. // Set of properties used to administer a game session. These properties are
  3703. // passed to the server process hosting it.
  3704. GameProperties []*GameProperty `type:"list"`
  3705. // Custom string to include in the game session ID, with a maximum length of
  3706. // 48 characters. If this parameter is set, GameLift creates a game session
  3707. // ID in the following format: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet
  3708. // ID>/<custom ID string>". For example, this full game session ID: "arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session"
  3709. // includes the custom ID string "my-game-session". If this parameter is not
  3710. // set, GameLift creates a game session ID in the same format with an auto-generated
  3711. // ID string.
  3712. GameSessionId *string `min:"1" type:"string"`
  3713. // Maximum number of players that can be connected simultaneously to the game
  3714. // session.
  3715. //
  3716. // MaximumPlayerSessionCount is a required field
  3717. MaximumPlayerSessionCount *int64 `type:"integer" required:"true"`
  3718. // Descriptive label associated with a game session. Session names do not need
  3719. // to be unique.
  3720. Name *string `min:"1" type:"string"`
  3721. }
  3722. // String returns the string representation
  3723. func (s CreateGameSessionInput) String() string {
  3724. return awsutil.Prettify(s)
  3725. }
  3726. // GoString returns the string representation
  3727. func (s CreateGameSessionInput) GoString() string {
  3728. return s.String()
  3729. }
  3730. // Validate inspects the fields of the type to determine if they are valid.
  3731. func (s *CreateGameSessionInput) Validate() error {
  3732. invalidParams := request.ErrInvalidParams{Context: "CreateGameSessionInput"}
  3733. if s.CreatorId != nil && len(*s.CreatorId) < 1 {
  3734. invalidParams.Add(request.NewErrParamMinLen("CreatorId", 1))
  3735. }
  3736. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  3737. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  3738. }
  3739. if s.MaximumPlayerSessionCount == nil {
  3740. invalidParams.Add(request.NewErrParamRequired("MaximumPlayerSessionCount"))
  3741. }
  3742. if s.Name != nil && len(*s.Name) < 1 {
  3743. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3744. }
  3745. if s.GameProperties != nil {
  3746. for i, v := range s.GameProperties {
  3747. if v == nil {
  3748. continue
  3749. }
  3750. if err := v.Validate(); err != nil {
  3751. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "GameProperties", i), err.(request.ErrInvalidParams))
  3752. }
  3753. }
  3754. }
  3755. if invalidParams.Len() > 0 {
  3756. return invalidParams
  3757. }
  3758. return nil
  3759. }
  3760. // Represents the returned data in response to a request action.
  3761. type CreateGameSessionOutput struct {
  3762. _ struct{} `type:"structure"`
  3763. // Object containing the newly created game session record.
  3764. GameSession *GameSession `type:"structure"`
  3765. }
  3766. // String returns the string representation
  3767. func (s CreateGameSessionOutput) String() string {
  3768. return awsutil.Prettify(s)
  3769. }
  3770. // GoString returns the string representation
  3771. func (s CreateGameSessionOutput) GoString() string {
  3772. return s.String()
  3773. }
  3774. // Represents the input for a request action.
  3775. type CreatePlayerSessionInput struct {
  3776. _ struct{} `type:"structure"`
  3777. // Unique identifier for the game session to add a player to. Game session ID
  3778. // format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet
  3779. // ID>/<ID string>". The value of <ID string> is either a custom ID string (if
  3780. // one was specified when the game session was created) an auto-generated string.
  3781. //
  3782. // GameSessionId is a required field
  3783. GameSessionId *string `min:"1" type:"string" required:"true"`
  3784. // Unique identifier for the player to be added.
  3785. //
  3786. // PlayerId is a required field
  3787. PlayerId *string `min:"1" type:"string" required:"true"`
  3788. }
  3789. // String returns the string representation
  3790. func (s CreatePlayerSessionInput) String() string {
  3791. return awsutil.Prettify(s)
  3792. }
  3793. // GoString returns the string representation
  3794. func (s CreatePlayerSessionInput) GoString() string {
  3795. return s.String()
  3796. }
  3797. // Validate inspects the fields of the type to determine if they are valid.
  3798. func (s *CreatePlayerSessionInput) Validate() error {
  3799. invalidParams := request.ErrInvalidParams{Context: "CreatePlayerSessionInput"}
  3800. if s.GameSessionId == nil {
  3801. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  3802. }
  3803. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  3804. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  3805. }
  3806. if s.PlayerId == nil {
  3807. invalidParams.Add(request.NewErrParamRequired("PlayerId"))
  3808. }
  3809. if s.PlayerId != nil && len(*s.PlayerId) < 1 {
  3810. invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1))
  3811. }
  3812. if invalidParams.Len() > 0 {
  3813. return invalidParams
  3814. }
  3815. return nil
  3816. }
  3817. // Represents the returned data in response to a request action.
  3818. type CreatePlayerSessionOutput struct {
  3819. _ struct{} `type:"structure"`
  3820. // Object containing the newly created player session record.
  3821. PlayerSession *PlayerSession `type:"structure"`
  3822. }
  3823. // String returns the string representation
  3824. func (s CreatePlayerSessionOutput) String() string {
  3825. return awsutil.Prettify(s)
  3826. }
  3827. // GoString returns the string representation
  3828. func (s CreatePlayerSessionOutput) GoString() string {
  3829. return s.String()
  3830. }
  3831. // Represents the input for a request action.
  3832. type CreatePlayerSessionsInput struct {
  3833. _ struct{} `type:"structure"`
  3834. // Unique identifier for the game session to add players to. Game session ID
  3835. // format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet
  3836. // ID>/<ID string>". The value of <ID string> is either a custom ID string (if
  3837. // one was specified when the game session was created) an auto-generated string.
  3838. //
  3839. // GameSessionId is a required field
  3840. GameSessionId *string `min:"1" type:"string" required:"true"`
  3841. // List of unique identifiers for the players to be added.
  3842. //
  3843. // PlayerIds is a required field
  3844. PlayerIds []*string `min:"1" type:"list" required:"true"`
  3845. }
  3846. // String returns the string representation
  3847. func (s CreatePlayerSessionsInput) String() string {
  3848. return awsutil.Prettify(s)
  3849. }
  3850. // GoString returns the string representation
  3851. func (s CreatePlayerSessionsInput) GoString() string {
  3852. return s.String()
  3853. }
  3854. // Validate inspects the fields of the type to determine if they are valid.
  3855. func (s *CreatePlayerSessionsInput) Validate() error {
  3856. invalidParams := request.ErrInvalidParams{Context: "CreatePlayerSessionsInput"}
  3857. if s.GameSessionId == nil {
  3858. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  3859. }
  3860. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  3861. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  3862. }
  3863. if s.PlayerIds == nil {
  3864. invalidParams.Add(request.NewErrParamRequired("PlayerIds"))
  3865. }
  3866. if s.PlayerIds != nil && len(s.PlayerIds) < 1 {
  3867. invalidParams.Add(request.NewErrParamMinLen("PlayerIds", 1))
  3868. }
  3869. if invalidParams.Len() > 0 {
  3870. return invalidParams
  3871. }
  3872. return nil
  3873. }
  3874. // Represents the returned data in response to a request action.
  3875. type CreatePlayerSessionsOutput struct {
  3876. _ struct{} `type:"structure"`
  3877. // Collection of player session objects created for the added players.
  3878. PlayerSessions []*PlayerSession `type:"list"`
  3879. }
  3880. // String returns the string representation
  3881. func (s CreatePlayerSessionsOutput) String() string {
  3882. return awsutil.Prettify(s)
  3883. }
  3884. // GoString returns the string representation
  3885. func (s CreatePlayerSessionsOutput) GoString() string {
  3886. return s.String()
  3887. }
  3888. // Represents the input for a request action.
  3889. type DeleteAliasInput struct {
  3890. _ struct{} `type:"structure"`
  3891. // Unique identifier for a fleet alias. Specify the alias you want to delete.
  3892. //
  3893. // AliasId is a required field
  3894. AliasId *string `type:"string" required:"true"`
  3895. }
  3896. // String returns the string representation
  3897. func (s DeleteAliasInput) String() string {
  3898. return awsutil.Prettify(s)
  3899. }
  3900. // GoString returns the string representation
  3901. func (s DeleteAliasInput) GoString() string {
  3902. return s.String()
  3903. }
  3904. // Validate inspects the fields of the type to determine if they are valid.
  3905. func (s *DeleteAliasInput) Validate() error {
  3906. invalidParams := request.ErrInvalidParams{Context: "DeleteAliasInput"}
  3907. if s.AliasId == nil {
  3908. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  3909. }
  3910. if invalidParams.Len() > 0 {
  3911. return invalidParams
  3912. }
  3913. return nil
  3914. }
  3915. type DeleteAliasOutput struct {
  3916. _ struct{} `type:"structure"`
  3917. }
  3918. // String returns the string representation
  3919. func (s DeleteAliasOutput) String() string {
  3920. return awsutil.Prettify(s)
  3921. }
  3922. // GoString returns the string representation
  3923. func (s DeleteAliasOutput) GoString() string {
  3924. return s.String()
  3925. }
  3926. // Represents the input for a request action.
  3927. type DeleteBuildInput struct {
  3928. _ struct{} `type:"structure"`
  3929. // Unique identifier for the build you want to delete.
  3930. //
  3931. // BuildId is a required field
  3932. BuildId *string `type:"string" required:"true"`
  3933. }
  3934. // String returns the string representation
  3935. func (s DeleteBuildInput) String() string {
  3936. return awsutil.Prettify(s)
  3937. }
  3938. // GoString returns the string representation
  3939. func (s DeleteBuildInput) GoString() string {
  3940. return s.String()
  3941. }
  3942. // Validate inspects the fields of the type to determine if they are valid.
  3943. func (s *DeleteBuildInput) Validate() error {
  3944. invalidParams := request.ErrInvalidParams{Context: "DeleteBuildInput"}
  3945. if s.BuildId == nil {
  3946. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  3947. }
  3948. if invalidParams.Len() > 0 {
  3949. return invalidParams
  3950. }
  3951. return nil
  3952. }
  3953. type DeleteBuildOutput struct {
  3954. _ struct{} `type:"structure"`
  3955. }
  3956. // String returns the string representation
  3957. func (s DeleteBuildOutput) String() string {
  3958. return awsutil.Prettify(s)
  3959. }
  3960. // GoString returns the string representation
  3961. func (s DeleteBuildOutput) GoString() string {
  3962. return s.String()
  3963. }
  3964. // Represents the input for a request action.
  3965. type DeleteFleetInput struct {
  3966. _ struct{} `type:"structure"`
  3967. // Unique identifier for the fleet you want to delete.
  3968. //
  3969. // FleetId is a required field
  3970. FleetId *string `type:"string" required:"true"`
  3971. }
  3972. // String returns the string representation
  3973. func (s DeleteFleetInput) String() string {
  3974. return awsutil.Prettify(s)
  3975. }
  3976. // GoString returns the string representation
  3977. func (s DeleteFleetInput) GoString() string {
  3978. return s.String()
  3979. }
  3980. // Validate inspects the fields of the type to determine if they are valid.
  3981. func (s *DeleteFleetInput) Validate() error {
  3982. invalidParams := request.ErrInvalidParams{Context: "DeleteFleetInput"}
  3983. if s.FleetId == nil {
  3984. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  3985. }
  3986. if invalidParams.Len() > 0 {
  3987. return invalidParams
  3988. }
  3989. return nil
  3990. }
  3991. type DeleteFleetOutput struct {
  3992. _ struct{} `type:"structure"`
  3993. }
  3994. // String returns the string representation
  3995. func (s DeleteFleetOutput) String() string {
  3996. return awsutil.Prettify(s)
  3997. }
  3998. // GoString returns the string representation
  3999. func (s DeleteFleetOutput) GoString() string {
  4000. return s.String()
  4001. }
  4002. // Represents the input for a request action.
  4003. type DeleteScalingPolicyInput struct {
  4004. _ struct{} `type:"structure"`
  4005. // Unique identifier for a fleet.
  4006. //
  4007. // FleetId is a required field
  4008. FleetId *string `type:"string" required:"true"`
  4009. // Descriptive label associated with a scaling policy. Policy names do not need
  4010. // to be unique.
  4011. //
  4012. // Name is a required field
  4013. Name *string `min:"1" type:"string" required:"true"`
  4014. }
  4015. // String returns the string representation
  4016. func (s DeleteScalingPolicyInput) String() string {
  4017. return awsutil.Prettify(s)
  4018. }
  4019. // GoString returns the string representation
  4020. func (s DeleteScalingPolicyInput) GoString() string {
  4021. return s.String()
  4022. }
  4023. // Validate inspects the fields of the type to determine if they are valid.
  4024. func (s *DeleteScalingPolicyInput) Validate() error {
  4025. invalidParams := request.ErrInvalidParams{Context: "DeleteScalingPolicyInput"}
  4026. if s.FleetId == nil {
  4027. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4028. }
  4029. if s.Name == nil {
  4030. invalidParams.Add(request.NewErrParamRequired("Name"))
  4031. }
  4032. if s.Name != nil && len(*s.Name) < 1 {
  4033. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  4034. }
  4035. if invalidParams.Len() > 0 {
  4036. return invalidParams
  4037. }
  4038. return nil
  4039. }
  4040. type DeleteScalingPolicyOutput struct {
  4041. _ struct{} `type:"structure"`
  4042. }
  4043. // String returns the string representation
  4044. func (s DeleteScalingPolicyOutput) String() string {
  4045. return awsutil.Prettify(s)
  4046. }
  4047. // GoString returns the string representation
  4048. func (s DeleteScalingPolicyOutput) GoString() string {
  4049. return s.String()
  4050. }
  4051. // Represents the input for a request action.
  4052. type DescribeAliasInput struct {
  4053. _ struct{} `type:"structure"`
  4054. // Unique identifier for a fleet alias. Specify the alias you want to retrieve.
  4055. //
  4056. // AliasId is a required field
  4057. AliasId *string `type:"string" required:"true"`
  4058. }
  4059. // String returns the string representation
  4060. func (s DescribeAliasInput) String() string {
  4061. return awsutil.Prettify(s)
  4062. }
  4063. // GoString returns the string representation
  4064. func (s DescribeAliasInput) GoString() string {
  4065. return s.String()
  4066. }
  4067. // Validate inspects the fields of the type to determine if they are valid.
  4068. func (s *DescribeAliasInput) Validate() error {
  4069. invalidParams := request.ErrInvalidParams{Context: "DescribeAliasInput"}
  4070. if s.AliasId == nil {
  4071. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  4072. }
  4073. if invalidParams.Len() > 0 {
  4074. return invalidParams
  4075. }
  4076. return nil
  4077. }
  4078. // Represents the returned data in response to a request action.
  4079. type DescribeAliasOutput struct {
  4080. _ struct{} `type:"structure"`
  4081. // Object containing the requested alias.
  4082. Alias *Alias `type:"structure"`
  4083. }
  4084. // String returns the string representation
  4085. func (s DescribeAliasOutput) String() string {
  4086. return awsutil.Prettify(s)
  4087. }
  4088. // GoString returns the string representation
  4089. func (s DescribeAliasOutput) GoString() string {
  4090. return s.String()
  4091. }
  4092. // Represents the input for a request action.
  4093. type DescribeBuildInput struct {
  4094. _ struct{} `type:"structure"`
  4095. // Unique identifier of the build that you want to retrieve properties for.
  4096. //
  4097. // BuildId is a required field
  4098. BuildId *string `type:"string" required:"true"`
  4099. }
  4100. // String returns the string representation
  4101. func (s DescribeBuildInput) String() string {
  4102. return awsutil.Prettify(s)
  4103. }
  4104. // GoString returns the string representation
  4105. func (s DescribeBuildInput) GoString() string {
  4106. return s.String()
  4107. }
  4108. // Validate inspects the fields of the type to determine if they are valid.
  4109. func (s *DescribeBuildInput) Validate() error {
  4110. invalidParams := request.ErrInvalidParams{Context: "DescribeBuildInput"}
  4111. if s.BuildId == nil {
  4112. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  4113. }
  4114. if invalidParams.Len() > 0 {
  4115. return invalidParams
  4116. }
  4117. return nil
  4118. }
  4119. // Represents the returned data in response to a request action.
  4120. type DescribeBuildOutput struct {
  4121. _ struct{} `type:"structure"`
  4122. // Set of properties describing the requested build.
  4123. Build *Build `type:"structure"`
  4124. }
  4125. // String returns the string representation
  4126. func (s DescribeBuildOutput) String() string {
  4127. return awsutil.Prettify(s)
  4128. }
  4129. // GoString returns the string representation
  4130. func (s DescribeBuildOutput) GoString() string {
  4131. return s.String()
  4132. }
  4133. // Represents the input for a request action.
  4134. type DescribeEC2InstanceLimitsInput struct {
  4135. _ struct{} `type:"structure"`
  4136. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  4137. // instance type determines the computing resources of each instance in the
  4138. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  4139. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  4140. // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions. Leave
  4141. // this parameter blank to retrieve limits for all types.
  4142. EC2InstanceType *string `type:"string" enum:"EC2InstanceType"`
  4143. }
  4144. // String returns the string representation
  4145. func (s DescribeEC2InstanceLimitsInput) String() string {
  4146. return awsutil.Prettify(s)
  4147. }
  4148. // GoString returns the string representation
  4149. func (s DescribeEC2InstanceLimitsInput) GoString() string {
  4150. return s.String()
  4151. }
  4152. // Represents the returned data in response to a request action.
  4153. type DescribeEC2InstanceLimitsOutput struct {
  4154. _ struct{} `type:"structure"`
  4155. // Object containing the maximum number of instances for the specified instance
  4156. // type.
  4157. EC2InstanceLimits []*EC2InstanceLimit `type:"list"`
  4158. }
  4159. // String returns the string representation
  4160. func (s DescribeEC2InstanceLimitsOutput) String() string {
  4161. return awsutil.Prettify(s)
  4162. }
  4163. // GoString returns the string representation
  4164. func (s DescribeEC2InstanceLimitsOutput) GoString() string {
  4165. return s.String()
  4166. }
  4167. // Represents the input for a request action.
  4168. type DescribeFleetAttributesInput struct {
  4169. _ struct{} `type:"structure"`
  4170. // Unique identifiers for the fleet(s) that you want to retrieve attributes
  4171. // for. To request attributes for all fleets, leave this parameter empty.
  4172. FleetIds []*string `min:"1" type:"list"`
  4173. // Maximum number of results to return. Use this parameter with NextToken to
  4174. // get results as a set of sequential pages. This parameter is ignored when
  4175. // the request specifies one or a list of fleet IDs.
  4176. Limit *int64 `min:"1" type:"integer"`
  4177. // Token indicating the start of the next sequential page of results. Use the
  4178. // token that is returned with a previous call to this action. To specify the
  4179. // start of the result set, do not specify a value. This parameter is ignored
  4180. // when the request specifies one or a list of fleet IDs.
  4181. NextToken *string `min:"1" type:"string"`
  4182. }
  4183. // String returns the string representation
  4184. func (s DescribeFleetAttributesInput) String() string {
  4185. return awsutil.Prettify(s)
  4186. }
  4187. // GoString returns the string representation
  4188. func (s DescribeFleetAttributesInput) GoString() string {
  4189. return s.String()
  4190. }
  4191. // Validate inspects the fields of the type to determine if they are valid.
  4192. func (s *DescribeFleetAttributesInput) Validate() error {
  4193. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetAttributesInput"}
  4194. if s.FleetIds != nil && len(s.FleetIds) < 1 {
  4195. invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
  4196. }
  4197. if s.Limit != nil && *s.Limit < 1 {
  4198. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4199. }
  4200. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4201. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4202. }
  4203. if invalidParams.Len() > 0 {
  4204. return invalidParams
  4205. }
  4206. return nil
  4207. }
  4208. // Represents the returned data in response to a request action.
  4209. type DescribeFleetAttributesOutput struct {
  4210. _ struct{} `type:"structure"`
  4211. // Collection of objects containing attribute metadata for each requested fleet
  4212. // ID.
  4213. FleetAttributes []*FleetAttributes `type:"list"`
  4214. // Token indicating where to resume retrieving results on the next call to this
  4215. // action. If no token is returned, these results represent the end of the list.
  4216. NextToken *string `min:"1" type:"string"`
  4217. }
  4218. // String returns the string representation
  4219. func (s DescribeFleetAttributesOutput) String() string {
  4220. return awsutil.Prettify(s)
  4221. }
  4222. // GoString returns the string representation
  4223. func (s DescribeFleetAttributesOutput) GoString() string {
  4224. return s.String()
  4225. }
  4226. // Represents the input for a request action.
  4227. type DescribeFleetCapacityInput struct {
  4228. _ struct{} `type:"structure"`
  4229. // Unique identifier for the fleet(s) you want to retrieve capacity information
  4230. // for. To request capacity information for all fleets, leave this parameter
  4231. // empty.
  4232. FleetIds []*string `min:"1" type:"list"`
  4233. // Maximum number of results to return. Use this parameter with NextToken to
  4234. // get results as a set of sequential pages. This parameter is ignored when
  4235. // the request specifies one or a list of fleet IDs.
  4236. Limit *int64 `min:"1" type:"integer"`
  4237. // Token indicating the start of the next sequential page of results. Use the
  4238. // token that is returned with a previous call to this action. To specify the
  4239. // start of the result set, do not specify a value. This parameter is ignored
  4240. // when the request specifies one or a list of fleet IDs.
  4241. NextToken *string `min:"1" type:"string"`
  4242. }
  4243. // String returns the string representation
  4244. func (s DescribeFleetCapacityInput) String() string {
  4245. return awsutil.Prettify(s)
  4246. }
  4247. // GoString returns the string representation
  4248. func (s DescribeFleetCapacityInput) GoString() string {
  4249. return s.String()
  4250. }
  4251. // Validate inspects the fields of the type to determine if they are valid.
  4252. func (s *DescribeFleetCapacityInput) Validate() error {
  4253. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetCapacityInput"}
  4254. if s.FleetIds != nil && len(s.FleetIds) < 1 {
  4255. invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
  4256. }
  4257. if s.Limit != nil && *s.Limit < 1 {
  4258. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4259. }
  4260. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4261. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4262. }
  4263. if invalidParams.Len() > 0 {
  4264. return invalidParams
  4265. }
  4266. return nil
  4267. }
  4268. // Represents the returned data in response to a request action.
  4269. type DescribeFleetCapacityOutput struct {
  4270. _ struct{} `type:"structure"`
  4271. // Collection of objects containing capacity information for each requested
  4272. // fleet ID. Leave this parameter empty to retrieve capacity information for
  4273. // all fleets.
  4274. FleetCapacity []*FleetCapacity `type:"list"`
  4275. // Token indicating where to resume retrieving results on the next call to this
  4276. // action. If no token is returned, these results represent the end of the list.
  4277. NextToken *string `min:"1" type:"string"`
  4278. }
  4279. // String returns the string representation
  4280. func (s DescribeFleetCapacityOutput) String() string {
  4281. return awsutil.Prettify(s)
  4282. }
  4283. // GoString returns the string representation
  4284. func (s DescribeFleetCapacityOutput) GoString() string {
  4285. return s.String()
  4286. }
  4287. // Represents the input for a request action.
  4288. type DescribeFleetEventsInput struct {
  4289. _ struct{} `type:"structure"`
  4290. // Most recent date to retrieve event logs for. If no end time is specified,
  4291. // this call returns entries from the specified start time up to the present.
  4292. // Format is a number expressed in Unix time as milliseconds (ex: "1469498468.057".
  4293. EndTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  4294. // Unique identifier for the fleet to get event logs for.
  4295. //
  4296. // FleetId is a required field
  4297. FleetId *string `type:"string" required:"true"`
  4298. // Maximum number of results to return. Use this parameter with NextToken to
  4299. // get results as a set of sequential pages.
  4300. Limit *int64 `min:"1" type:"integer"`
  4301. // Token indicating the start of the next sequential page of results. Use the
  4302. // token that is returned with a previous call to this action. To specify the
  4303. // start of the result set, do not specify a value.
  4304. NextToken *string `min:"1" type:"string"`
  4305. // Earliest date to retrieve event logs for. If no start time is specified,
  4306. // this call returns entries starting from when the fleet was created to the
  4307. // specified end time. Format is a number expressed in Unix time as milliseconds
  4308. // (ex: "1469498468.057".
  4309. StartTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  4310. }
  4311. // String returns the string representation
  4312. func (s DescribeFleetEventsInput) String() string {
  4313. return awsutil.Prettify(s)
  4314. }
  4315. // GoString returns the string representation
  4316. func (s DescribeFleetEventsInput) GoString() string {
  4317. return s.String()
  4318. }
  4319. // Validate inspects the fields of the type to determine if they are valid.
  4320. func (s *DescribeFleetEventsInput) Validate() error {
  4321. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetEventsInput"}
  4322. if s.FleetId == nil {
  4323. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4324. }
  4325. if s.Limit != nil && *s.Limit < 1 {
  4326. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4327. }
  4328. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4329. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4330. }
  4331. if invalidParams.Len() > 0 {
  4332. return invalidParams
  4333. }
  4334. return nil
  4335. }
  4336. // Represents the returned data in response to a request action.
  4337. type DescribeFleetEventsOutput struct {
  4338. _ struct{} `type:"structure"`
  4339. // Collection of objects containing event log entries for the specified fleet.
  4340. Events []*Event `type:"list"`
  4341. // Token indicating where to resume retrieving results on the next call to this
  4342. // action. If no token is returned, these results represent the end of the list.
  4343. NextToken *string `min:"1" type:"string"`
  4344. }
  4345. // String returns the string representation
  4346. func (s DescribeFleetEventsOutput) String() string {
  4347. return awsutil.Prettify(s)
  4348. }
  4349. // GoString returns the string representation
  4350. func (s DescribeFleetEventsOutput) GoString() string {
  4351. return s.String()
  4352. }
  4353. // Represents the input for a request action.
  4354. type DescribeFleetPortSettingsInput struct {
  4355. _ struct{} `type:"structure"`
  4356. // Unique identifier for the fleet you want to retrieve port settings for.
  4357. //
  4358. // FleetId is a required field
  4359. FleetId *string `type:"string" required:"true"`
  4360. }
  4361. // String returns the string representation
  4362. func (s DescribeFleetPortSettingsInput) String() string {
  4363. return awsutil.Prettify(s)
  4364. }
  4365. // GoString returns the string representation
  4366. func (s DescribeFleetPortSettingsInput) GoString() string {
  4367. return s.String()
  4368. }
  4369. // Validate inspects the fields of the type to determine if they are valid.
  4370. func (s *DescribeFleetPortSettingsInput) Validate() error {
  4371. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetPortSettingsInput"}
  4372. if s.FleetId == nil {
  4373. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4374. }
  4375. if invalidParams.Len() > 0 {
  4376. return invalidParams
  4377. }
  4378. return nil
  4379. }
  4380. // Represents the returned data in response to a request action.
  4381. type DescribeFleetPortSettingsOutput struct {
  4382. _ struct{} `type:"structure"`
  4383. // Object containing port settings for the requested fleet ID.
  4384. InboundPermissions []*IpPermission `type:"list"`
  4385. }
  4386. // String returns the string representation
  4387. func (s DescribeFleetPortSettingsOutput) String() string {
  4388. return awsutil.Prettify(s)
  4389. }
  4390. // GoString returns the string representation
  4391. func (s DescribeFleetPortSettingsOutput) GoString() string {
  4392. return s.String()
  4393. }
  4394. // Represents the input for a request action.
  4395. type DescribeFleetUtilizationInput struct {
  4396. _ struct{} `type:"structure"`
  4397. // Unique identifier for the fleet(s) you want to retrieve utilization data
  4398. // for. To request utilization data for all fleets, leave this parameter empty.
  4399. FleetIds []*string `min:"1" type:"list"`
  4400. // Maximum number of results to return. Use this parameter with NextToken to
  4401. // get results as a set of sequential pages. This parameter is ignored when
  4402. // the request specifies one or a list of fleet IDs.
  4403. Limit *int64 `min:"1" type:"integer"`
  4404. // Token indicating the start of the next sequential page of results. Use the
  4405. // token that is returned with a previous call to this action. To specify the
  4406. // start of the result set, do not specify a value. This parameter is ignored
  4407. // when the request specifies one or a list of fleet IDs.
  4408. NextToken *string `min:"1" type:"string"`
  4409. }
  4410. // String returns the string representation
  4411. func (s DescribeFleetUtilizationInput) String() string {
  4412. return awsutil.Prettify(s)
  4413. }
  4414. // GoString returns the string representation
  4415. func (s DescribeFleetUtilizationInput) GoString() string {
  4416. return s.String()
  4417. }
  4418. // Validate inspects the fields of the type to determine if they are valid.
  4419. func (s *DescribeFleetUtilizationInput) Validate() error {
  4420. invalidParams := request.ErrInvalidParams{Context: "DescribeFleetUtilizationInput"}
  4421. if s.FleetIds != nil && len(s.FleetIds) < 1 {
  4422. invalidParams.Add(request.NewErrParamMinLen("FleetIds", 1))
  4423. }
  4424. if s.Limit != nil && *s.Limit < 1 {
  4425. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4426. }
  4427. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4428. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4429. }
  4430. if invalidParams.Len() > 0 {
  4431. return invalidParams
  4432. }
  4433. return nil
  4434. }
  4435. // Represents the returned data in response to a request action.
  4436. type DescribeFleetUtilizationOutput struct {
  4437. _ struct{} `type:"structure"`
  4438. // Collection of objects containing utilization information for each requested
  4439. // fleet ID.
  4440. FleetUtilization []*FleetUtilization `type:"list"`
  4441. // Token indicating where to resume retrieving results on the next call to this
  4442. // action. If no token is returned, these results represent the end of the list.
  4443. NextToken *string `min:"1" type:"string"`
  4444. }
  4445. // String returns the string representation
  4446. func (s DescribeFleetUtilizationOutput) String() string {
  4447. return awsutil.Prettify(s)
  4448. }
  4449. // GoString returns the string representation
  4450. func (s DescribeFleetUtilizationOutput) GoString() string {
  4451. return s.String()
  4452. }
  4453. // Represents the input for a request action.
  4454. type DescribeGameSessionDetailsInput struct {
  4455. _ struct{} `type:"structure"`
  4456. // Unique identifier for a fleet alias. Specify an alias to retrieve information
  4457. // on all game sessions active on the fleet.
  4458. AliasId *string `type:"string"`
  4459. // Unique identifier for a fleet. Specify a fleet to retrieve information on
  4460. // all game sessions active on the fleet.
  4461. FleetId *string `type:"string"`
  4462. // Unique identifier for the game session to retrieve information on. Game session
  4463. // ID format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet
  4464. // ID>/<ID string>". The value of <ID string> is either a custom ID string (if
  4465. // one was specified when the game session was created) an auto-generated string.
  4466. GameSessionId *string `min:"1" type:"string"`
  4467. // Maximum number of results to return. Use this parameter with NextToken to
  4468. // get results as a set of sequential pages.
  4469. Limit *int64 `min:"1" type:"integer"`
  4470. // Token indicating the start of the next sequential page of results. Use the
  4471. // token that is returned with a previous call to this action. To specify the
  4472. // start of the result set, do not specify a value.
  4473. NextToken *string `min:"1" type:"string"`
  4474. // Game session status to filter results on. Possible game session statuses
  4475. // include ACTIVE, TERMINATED, ACTIVATING and TERMINATING (the last two are
  4476. // transitory).
  4477. StatusFilter *string `min:"1" type:"string"`
  4478. }
  4479. // String returns the string representation
  4480. func (s DescribeGameSessionDetailsInput) String() string {
  4481. return awsutil.Prettify(s)
  4482. }
  4483. // GoString returns the string representation
  4484. func (s DescribeGameSessionDetailsInput) GoString() string {
  4485. return s.String()
  4486. }
  4487. // Validate inspects the fields of the type to determine if they are valid.
  4488. func (s *DescribeGameSessionDetailsInput) Validate() error {
  4489. invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionDetailsInput"}
  4490. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  4491. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  4492. }
  4493. if s.Limit != nil && *s.Limit < 1 {
  4494. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4495. }
  4496. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4497. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4498. }
  4499. if s.StatusFilter != nil && len(*s.StatusFilter) < 1 {
  4500. invalidParams.Add(request.NewErrParamMinLen("StatusFilter", 1))
  4501. }
  4502. if invalidParams.Len() > 0 {
  4503. return invalidParams
  4504. }
  4505. return nil
  4506. }
  4507. // Represents the returned data in response to a request action.
  4508. type DescribeGameSessionDetailsOutput struct {
  4509. _ struct{} `type:"structure"`
  4510. // Collection of objects containing game session properties and the protection
  4511. // policy currently in force for each session matching the request.
  4512. GameSessionDetails []*GameSessionDetail `type:"list"`
  4513. // Token indicating where to resume retrieving results on the next call to this
  4514. // action. If no token is returned, these results represent the end of the list.
  4515. NextToken *string `min:"1" type:"string"`
  4516. }
  4517. // String returns the string representation
  4518. func (s DescribeGameSessionDetailsOutput) String() string {
  4519. return awsutil.Prettify(s)
  4520. }
  4521. // GoString returns the string representation
  4522. func (s DescribeGameSessionDetailsOutput) GoString() string {
  4523. return s.String()
  4524. }
  4525. // Represents the input for a request action.
  4526. type DescribeGameSessionsInput struct {
  4527. _ struct{} `type:"structure"`
  4528. // Unique identifier for a fleet alias. Specify an alias to retrieve information
  4529. // on all game sessions active on the fleet.
  4530. AliasId *string `type:"string"`
  4531. // Unique identifier for a fleet. Specify a fleet to retrieve information on
  4532. // all game sessions active on the fleet.
  4533. FleetId *string `type:"string"`
  4534. // Unique identifier for the game session to retrieve information on. Game session
  4535. // ID format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet
  4536. // ID>/<ID string>". The value of <ID string> is either a custom ID string (if
  4537. // one was specified when the game session was created) an auto-generated string.
  4538. GameSessionId *string `min:"1" type:"string"`
  4539. // Maximum number of results to return. Use this parameter with NextToken to
  4540. // get results as a set of sequential pages.
  4541. Limit *int64 `min:"1" type:"integer"`
  4542. // Token indicating the start of the next sequential page of results. Use the
  4543. // token that is returned with a previous call to this action. To specify the
  4544. // start of the result set, do not specify a value.
  4545. NextToken *string `min:"1" type:"string"`
  4546. // Game session status to filter results on. Possible game session statuses
  4547. // include ACTIVE, TERMINATED, ACTIVATING, and TERMINATING (the last two are
  4548. // transitory).
  4549. StatusFilter *string `min:"1" type:"string"`
  4550. }
  4551. // String returns the string representation
  4552. func (s DescribeGameSessionsInput) String() string {
  4553. return awsutil.Prettify(s)
  4554. }
  4555. // GoString returns the string representation
  4556. func (s DescribeGameSessionsInput) GoString() string {
  4557. return s.String()
  4558. }
  4559. // Validate inspects the fields of the type to determine if they are valid.
  4560. func (s *DescribeGameSessionsInput) Validate() error {
  4561. invalidParams := request.ErrInvalidParams{Context: "DescribeGameSessionsInput"}
  4562. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  4563. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  4564. }
  4565. if s.Limit != nil && *s.Limit < 1 {
  4566. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4567. }
  4568. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4569. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4570. }
  4571. if s.StatusFilter != nil && len(*s.StatusFilter) < 1 {
  4572. invalidParams.Add(request.NewErrParamMinLen("StatusFilter", 1))
  4573. }
  4574. if invalidParams.Len() > 0 {
  4575. return invalidParams
  4576. }
  4577. return nil
  4578. }
  4579. // Represents the returned data in response to a request action.
  4580. type DescribeGameSessionsOutput struct {
  4581. _ struct{} `type:"structure"`
  4582. // Collection of objects containing game session properties for each session
  4583. // matching the request.
  4584. GameSessions []*GameSession `type:"list"`
  4585. // Token indicating where to resume retrieving results on the next call to this
  4586. // action. If no token is returned, these results represent the end of the list.
  4587. NextToken *string `min:"1" type:"string"`
  4588. }
  4589. // String returns the string representation
  4590. func (s DescribeGameSessionsOutput) String() string {
  4591. return awsutil.Prettify(s)
  4592. }
  4593. // GoString returns the string representation
  4594. func (s DescribeGameSessionsOutput) GoString() string {
  4595. return s.String()
  4596. }
  4597. // Represents the input for a request action.
  4598. type DescribeInstancesInput struct {
  4599. _ struct{} `type:"structure"`
  4600. // Unique identifier for a fleet. Specify the fleet to retrieve instance information
  4601. // for.
  4602. //
  4603. // FleetId is a required field
  4604. FleetId *string `type:"string" required:"true"`
  4605. // Unique identifier for an instance. Specify an instance to retrieve information
  4606. // for or leave blank to get information on all instances in the fleet.
  4607. InstanceId *string `type:"string"`
  4608. // Maximum number of results to return. Use this parameter with NextToken to
  4609. // get results as a set of sequential pages.
  4610. Limit *int64 `min:"1" type:"integer"`
  4611. // Token indicating the start of the next sequential page of results. Use the
  4612. // token that is returned with a previous call to this action. To specify the
  4613. // start of the result set, do not specify a value.
  4614. NextToken *string `min:"1" type:"string"`
  4615. }
  4616. // String returns the string representation
  4617. func (s DescribeInstancesInput) String() string {
  4618. return awsutil.Prettify(s)
  4619. }
  4620. // GoString returns the string representation
  4621. func (s DescribeInstancesInput) GoString() string {
  4622. return s.String()
  4623. }
  4624. // Validate inspects the fields of the type to determine if they are valid.
  4625. func (s *DescribeInstancesInput) Validate() error {
  4626. invalidParams := request.ErrInvalidParams{Context: "DescribeInstancesInput"}
  4627. if s.FleetId == nil {
  4628. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4629. }
  4630. if s.Limit != nil && *s.Limit < 1 {
  4631. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4632. }
  4633. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4634. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4635. }
  4636. if invalidParams.Len() > 0 {
  4637. return invalidParams
  4638. }
  4639. return nil
  4640. }
  4641. // Represents the returned data in response to a request action.
  4642. type DescribeInstancesOutput struct {
  4643. _ struct{} `type:"structure"`
  4644. // Collection of objects containing properties for each instance returned.
  4645. Instances []*Instance `type:"list"`
  4646. // Token indicating where to resume retrieving results on the next call to this
  4647. // action. If no token is returned, these results represent the end of the list.
  4648. NextToken *string `min:"1" type:"string"`
  4649. }
  4650. // String returns the string representation
  4651. func (s DescribeInstancesOutput) String() string {
  4652. return awsutil.Prettify(s)
  4653. }
  4654. // GoString returns the string representation
  4655. func (s DescribeInstancesOutput) GoString() string {
  4656. return s.String()
  4657. }
  4658. // Represents the input for a request action.
  4659. type DescribePlayerSessionsInput struct {
  4660. _ struct{} `type:"structure"`
  4661. // Unique identifier for the game session to get player sessions for.Game session
  4662. // ID format is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet
  4663. // ID>/<ID string>". The value of <ID string> is either a custom ID string (if
  4664. // one was specified when the game session was created) an auto-generated string.
  4665. GameSessionId *string `min:"1" type:"string"`
  4666. // Maximum number of results to return. Use this parameter with NextToken to
  4667. // get results as a set of sequential pages. If a player session ID is specified,
  4668. // this parameter is ignored.
  4669. Limit *int64 `min:"1" type:"integer"`
  4670. // Token indicating the start of the next sequential page of results. Use the
  4671. // token that is returned with a previous call to this action. To specify the
  4672. // start of the result set, do not specify a value. If a player session ID is
  4673. // specified, this parameter is ignored.
  4674. NextToken *string `min:"1" type:"string"`
  4675. // Unique identifier for a player.
  4676. PlayerId *string `min:"1" type:"string"`
  4677. // Unique identifier for a player session.
  4678. PlayerSessionId *string `type:"string"`
  4679. // Player session status to filter results on.
  4680. //
  4681. // Possible player session statuses include the following:
  4682. //
  4683. // * RESERVED – The player session request has been received, but the player
  4684. // has not yet connected to the server process and/or been validated.
  4685. //
  4686. // * ACTIVE – The player has been validated by the server process and is
  4687. // currently connected.
  4688. //
  4689. // * COMPLETED – The player connection has been dropped.
  4690. //
  4691. // * TIMEDOUT – A player session request was received, but the player did
  4692. // not connect and/or was not validated within the time-out limit (60 seconds).
  4693. PlayerSessionStatusFilter *string `min:"1" type:"string"`
  4694. }
  4695. // String returns the string representation
  4696. func (s DescribePlayerSessionsInput) String() string {
  4697. return awsutil.Prettify(s)
  4698. }
  4699. // GoString returns the string representation
  4700. func (s DescribePlayerSessionsInput) GoString() string {
  4701. return s.String()
  4702. }
  4703. // Validate inspects the fields of the type to determine if they are valid.
  4704. func (s *DescribePlayerSessionsInput) Validate() error {
  4705. invalidParams := request.ErrInvalidParams{Context: "DescribePlayerSessionsInput"}
  4706. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  4707. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  4708. }
  4709. if s.Limit != nil && *s.Limit < 1 {
  4710. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4711. }
  4712. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4713. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4714. }
  4715. if s.PlayerId != nil && len(*s.PlayerId) < 1 {
  4716. invalidParams.Add(request.NewErrParamMinLen("PlayerId", 1))
  4717. }
  4718. if s.PlayerSessionStatusFilter != nil && len(*s.PlayerSessionStatusFilter) < 1 {
  4719. invalidParams.Add(request.NewErrParamMinLen("PlayerSessionStatusFilter", 1))
  4720. }
  4721. if invalidParams.Len() > 0 {
  4722. return invalidParams
  4723. }
  4724. return nil
  4725. }
  4726. // Represents the returned data in response to a request action.
  4727. type DescribePlayerSessionsOutput struct {
  4728. _ struct{} `type:"structure"`
  4729. // Token indicating where to resume retrieving results on the next call to this
  4730. // action. If no token is returned, these results represent the end of the list.
  4731. NextToken *string `min:"1" type:"string"`
  4732. // Collection of objects containing properties for each player session that
  4733. // matches the request.
  4734. PlayerSessions []*PlayerSession `type:"list"`
  4735. }
  4736. // String returns the string representation
  4737. func (s DescribePlayerSessionsOutput) String() string {
  4738. return awsutil.Prettify(s)
  4739. }
  4740. // GoString returns the string representation
  4741. func (s DescribePlayerSessionsOutput) GoString() string {
  4742. return s.String()
  4743. }
  4744. // Represents the input for a request action.
  4745. type DescribeRuntimeConfigurationInput struct {
  4746. _ struct{} `type:"structure"`
  4747. // Unique identifier of the fleet to get the runtime configuration for.
  4748. //
  4749. // FleetId is a required field
  4750. FleetId *string `type:"string" required:"true"`
  4751. }
  4752. // String returns the string representation
  4753. func (s DescribeRuntimeConfigurationInput) String() string {
  4754. return awsutil.Prettify(s)
  4755. }
  4756. // GoString returns the string representation
  4757. func (s DescribeRuntimeConfigurationInput) GoString() string {
  4758. return s.String()
  4759. }
  4760. // Validate inspects the fields of the type to determine if they are valid.
  4761. func (s *DescribeRuntimeConfigurationInput) Validate() error {
  4762. invalidParams := request.ErrInvalidParams{Context: "DescribeRuntimeConfigurationInput"}
  4763. if s.FleetId == nil {
  4764. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4765. }
  4766. if invalidParams.Len() > 0 {
  4767. return invalidParams
  4768. }
  4769. return nil
  4770. }
  4771. // Represents the returned data in response to a request action.
  4772. type DescribeRuntimeConfigurationOutput struct {
  4773. _ struct{} `type:"structure"`
  4774. // Instructions describing how server processes should be launched and maintained
  4775. // on each instance in the fleet.
  4776. RuntimeConfiguration *RuntimeConfiguration `type:"structure"`
  4777. }
  4778. // String returns the string representation
  4779. func (s DescribeRuntimeConfigurationOutput) String() string {
  4780. return awsutil.Prettify(s)
  4781. }
  4782. // GoString returns the string representation
  4783. func (s DescribeRuntimeConfigurationOutput) GoString() string {
  4784. return s.String()
  4785. }
  4786. // Represents the input for a request action.
  4787. type DescribeScalingPoliciesInput struct {
  4788. _ struct{} `type:"structure"`
  4789. // Unique identifier for a fleet. Specify the fleet to retrieve scaling policies
  4790. // for.
  4791. //
  4792. // FleetId is a required field
  4793. FleetId *string `type:"string" required:"true"`
  4794. // Maximum number of results to return. Use this parameter with NextToken to
  4795. // get results as a set of sequential pages.
  4796. Limit *int64 `min:"1" type:"integer"`
  4797. // Token indicating the start of the next sequential page of results. Use the
  4798. // token that is returned with a previous call to this action. To specify the
  4799. // start of the result set, do not specify a value.
  4800. NextToken *string `min:"1" type:"string"`
  4801. // Scaling policy status to filter results on. A scaling policy is only in force
  4802. // when in an ACTIVE status.
  4803. //
  4804. // * ACTIVE – The scaling policy is currently in force.
  4805. //
  4806. // * UPDATEREQUESTED – A request to update the scaling policy has been received.
  4807. //
  4808. // * UPDATING – A change is being made to the scaling policy.
  4809. //
  4810. // * DELETEREQUESTED – A request to delete the scaling policy has been received.
  4811. //
  4812. // * DELETING – The scaling policy is being deleted.
  4813. //
  4814. // * DELETED – The scaling policy has been deleted.
  4815. //
  4816. // * ERROR – An error occurred in creating the policy. It should be removed
  4817. // and recreated.
  4818. StatusFilter *string `type:"string" enum:"ScalingStatusType"`
  4819. }
  4820. // String returns the string representation
  4821. func (s DescribeScalingPoliciesInput) String() string {
  4822. return awsutil.Prettify(s)
  4823. }
  4824. // GoString returns the string representation
  4825. func (s DescribeScalingPoliciesInput) GoString() string {
  4826. return s.String()
  4827. }
  4828. // Validate inspects the fields of the type to determine if they are valid.
  4829. func (s *DescribeScalingPoliciesInput) Validate() error {
  4830. invalidParams := request.ErrInvalidParams{Context: "DescribeScalingPoliciesInput"}
  4831. if s.FleetId == nil {
  4832. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  4833. }
  4834. if s.Limit != nil && *s.Limit < 1 {
  4835. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  4836. }
  4837. if s.NextToken != nil && len(*s.NextToken) < 1 {
  4838. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  4839. }
  4840. if invalidParams.Len() > 0 {
  4841. return invalidParams
  4842. }
  4843. return nil
  4844. }
  4845. // Represents the returned data in response to a request action.
  4846. type DescribeScalingPoliciesOutput struct {
  4847. _ struct{} `type:"structure"`
  4848. // Token indicating where to resume retrieving results on the next call to this
  4849. // action. If no token is returned, these results represent the end of the list.
  4850. NextToken *string `min:"1" type:"string"`
  4851. // Collection of objects containing the scaling policies matching the request.
  4852. ScalingPolicies []*ScalingPolicy `type:"list"`
  4853. }
  4854. // String returns the string representation
  4855. func (s DescribeScalingPoliciesOutput) String() string {
  4856. return awsutil.Prettify(s)
  4857. }
  4858. // GoString returns the string representation
  4859. func (s DescribeScalingPoliciesOutput) GoString() string {
  4860. return s.String()
  4861. }
  4862. // Current status of fleet capacity. The number of active instances should match
  4863. // or be in the process of matching the number of desired instances. Pending
  4864. // and terminating counts are non-zero only if fleet capacity is adjusting to
  4865. // an UpdateFleetCapacity request, or if access to resources is temporarily
  4866. // affected.
  4867. type EC2InstanceCounts struct {
  4868. _ struct{} `type:"structure"`
  4869. // Actual number of active instances in the fleet.
  4870. ACTIVE *int64 `type:"integer"`
  4871. // Ideal number of active instances in the fleet.
  4872. DESIRED *int64 `type:"integer"`
  4873. // Number of active instances in the fleet that are not currently hosting a
  4874. // game session.
  4875. IDLE *int64 `type:"integer"`
  4876. // Maximum value allowed for the fleet's instance count.
  4877. MAXIMUM *int64 `type:"integer"`
  4878. // Minimum value allowed for the fleet's instance count.
  4879. MINIMUM *int64 `type:"integer"`
  4880. // Number of instances in the fleet that are starting but not yet active.
  4881. PENDING *int64 `type:"integer"`
  4882. // Number of instances in the fleet that are no longer active but haven't yet
  4883. // been terminated.
  4884. TERMINATING *int64 `type:"integer"`
  4885. }
  4886. // String returns the string representation
  4887. func (s EC2InstanceCounts) String() string {
  4888. return awsutil.Prettify(s)
  4889. }
  4890. // GoString returns the string representation
  4891. func (s EC2InstanceCounts) GoString() string {
  4892. return s.String()
  4893. }
  4894. // Maximum number of instances allowed based on the Amazon Elastic Compute Cloud
  4895. // (Amazon EC2) instance type. Instance limits can be retrieved by calling DescribeEC2InstanceLimits.
  4896. type EC2InstanceLimit struct {
  4897. _ struct{} `type:"structure"`
  4898. // Number of instances of the specified type that are currently in use by this
  4899. // AWS account.
  4900. CurrentInstances *int64 `type:"integer"`
  4901. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  4902. // instance type determines the computing resources of each instance in the
  4903. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  4904. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  4905. // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions.
  4906. EC2InstanceType *string `type:"string" enum:"EC2InstanceType"`
  4907. // Number of instances allowed.
  4908. InstanceLimit *int64 `type:"integer"`
  4909. }
  4910. // String returns the string representation
  4911. func (s EC2InstanceLimit) String() string {
  4912. return awsutil.Prettify(s)
  4913. }
  4914. // GoString returns the string representation
  4915. func (s EC2InstanceLimit) GoString() string {
  4916. return s.String()
  4917. }
  4918. // Log entry describing an event involving an Amazon GameLift resource (such
  4919. // as a fleet).
  4920. type Event struct {
  4921. _ struct{} `type:"structure"`
  4922. // Type of event being logged.
  4923. EventCode *string `type:"string" enum:"EventCode"`
  4924. // Unique identifier for a fleet event.
  4925. EventId *string `min:"1" type:"string"`
  4926. // Time stamp indicating when this event occurred. Format is a number expressed
  4927. // in Unix time as milliseconds (ex: "1469498468.057".
  4928. EventTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  4929. // Additional information related to the event.
  4930. Message *string `min:"1" type:"string"`
  4931. // Unique identifier for the resource, such as a fleet ID.
  4932. ResourceId *string `min:"1" type:"string"`
  4933. }
  4934. // String returns the string representation
  4935. func (s Event) String() string {
  4936. return awsutil.Prettify(s)
  4937. }
  4938. // GoString returns the string representation
  4939. func (s Event) GoString() string {
  4940. return s.String()
  4941. }
  4942. // General properties describing a fleet.
  4943. type FleetAttributes struct {
  4944. _ struct{} `type:"structure"`
  4945. // Unique identifier for a build.
  4946. BuildId *string `type:"string"`
  4947. // Time stamp indicating when this data object was created. Format is a number
  4948. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  4949. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  4950. // Human-readable description of the fleet.
  4951. Description *string `min:"1" type:"string"`
  4952. // Unique identifier for a fleet.
  4953. FleetId *string `type:"string"`
  4954. // Location of default log files. When a server process is shut down, Amazon
  4955. // GameLift captures and stores any log files in this location. These logs are
  4956. // in addition to game session logs; see more on game session logs in the Amazon
  4957. // GameLift Developer Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-sdk-server-api.html#gamelift-sdk-server-api-server-code).
  4958. // If no default log path for a fleet is specified, GameLift will automatically
  4959. // upload logs stored on each instance at C:\game\logs. Use the GameLift console
  4960. // to access stored logs.
  4961. LogPaths []*string `type:"list"`
  4962. // Descriptive label associated with a fleet. Fleet names do not need to be
  4963. // unique.
  4964. Name *string `min:"1" type:"string"`
  4965. // Type of game session protection to set for all new instances started in the
  4966. // fleet.
  4967. //
  4968. // * NoProtection – The game session can be terminated during a scale-down
  4969. // event.
  4970. //
  4971. // * FullProtection – If the game session is in an ACTIVE status, it cannot
  4972. // be terminated during a scale-down event.
  4973. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  4974. // Operating system of the fleet's computing resources. A fleet's operating
  4975. // system depends on the OS specified for the build that is deployed on this
  4976. // fleet.
  4977. OperatingSystem *string `type:"string" enum:"OperatingSystem"`
  4978. // Fleet policy to limit the number of game sessions an individual player can
  4979. // create over a span of time.
  4980. ResourceCreationLimitPolicy *ResourceCreationLimitPolicy `type:"structure"`
  4981. // Game server launch parameters specified for fleets created prior to 2016-08-04
  4982. // (or AWS SDK v. 0.12.16). Server launch parameters for fleets created after
  4983. // this date are specified in the fleet's RuntimeConfiguration.
  4984. ServerLaunchParameters *string `min:"1" type:"string"`
  4985. // Path to a game server executable in the fleet's build, specified for fleets
  4986. // created prior to 2016-08-04 (or AWS SDK v. 0.12.16). Server launch paths
  4987. // for fleets created after this date are specified in the fleet's RuntimeConfiguration.
  4988. ServerLaunchPath *string `min:"1" type:"string"`
  4989. // Current status of the fleet.
  4990. //
  4991. // Possible fleet statuses include the following:
  4992. //
  4993. // * NEW – A new fleet has been defined and desired instances is set to 1.
  4994. //
  4995. //
  4996. // * DOWNLOADING/VALIDATING/BUILDING/ACTIVATING – GameLift is setting up
  4997. // the new fleet, creating new instances with the game build and starting
  4998. // server processes.
  4999. //
  5000. // * ACTIVE – Hosts can now accept game sessions.
  5001. //
  5002. // * ERROR – An error occurred when downloading, validating, building, or
  5003. // activating the fleet.
  5004. //
  5005. // * DELETING – Hosts are responding to a delete fleet request.
  5006. //
  5007. // * TERMINATED – The fleet no longer exists.
  5008. Status *string `type:"string" enum:"FleetStatus"`
  5009. // Time stamp indicating when this data object was terminated. Format is a number
  5010. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  5011. TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5012. }
  5013. // String returns the string representation
  5014. func (s FleetAttributes) String() string {
  5015. return awsutil.Prettify(s)
  5016. }
  5017. // GoString returns the string representation
  5018. func (s FleetAttributes) GoString() string {
  5019. return s.String()
  5020. }
  5021. // Information about the fleet's capacity. Fleet capacity is measured in EC2
  5022. // instances. By default, new fleets have a capacity of one instance, but can
  5023. // be updated as needed. The maximum number of instances for a fleet is determined
  5024. // by the fleet's instance type.
  5025. type FleetCapacity struct {
  5026. _ struct{} `type:"structure"`
  5027. // Unique identifier for a fleet.
  5028. FleetId *string `type:"string"`
  5029. // Current status of fleet capacity.
  5030. InstanceCounts *EC2InstanceCounts `type:"structure"`
  5031. // Name of an EC2 instance type that is supported in Amazon GameLift. A fleet
  5032. // instance type determines the computing resources of each instance in the
  5033. // fleet, including CPU, memory, storage, and networking capacity. GameLift
  5034. // supports the following EC2 instance types. See Amazon EC2 Instance Types
  5035. // (http://aws.amazon.com/ec2/instance-types/) for detailed descriptions.
  5036. InstanceType *string `type:"string" enum:"EC2InstanceType"`
  5037. }
  5038. // String returns the string representation
  5039. func (s FleetCapacity) String() string {
  5040. return awsutil.Prettify(s)
  5041. }
  5042. // GoString returns the string representation
  5043. func (s FleetCapacity) GoString() string {
  5044. return s.String()
  5045. }
  5046. // Current status of fleet utilization, including the number of game and player
  5047. // sessions being hosted.
  5048. type FleetUtilization struct {
  5049. _ struct{} `type:"structure"`
  5050. // Number of active game sessions currently being hosted on all instances in
  5051. // the fleet.
  5052. ActiveGameSessionCount *int64 `type:"integer"`
  5053. // Number of server processes in an ACTIVE status currently running across all
  5054. // instances in the fleet
  5055. ActiveServerProcessCount *int64 `type:"integer"`
  5056. // Number of active player sessions currently being hosted on all instances
  5057. // in the fleet.
  5058. CurrentPlayerSessionCount *int64 `type:"integer"`
  5059. // Unique identifier for a fleet.
  5060. FleetId *string `type:"string"`
  5061. // Maximum players allowed across all game sessions currently being hosted on
  5062. // all instances in the fleet.
  5063. MaximumPlayerSessionCount *int64 `type:"integer"`
  5064. }
  5065. // String returns the string representation
  5066. func (s FleetUtilization) String() string {
  5067. return awsutil.Prettify(s)
  5068. }
  5069. // GoString returns the string representation
  5070. func (s FleetUtilization) GoString() string {
  5071. return s.String()
  5072. }
  5073. // Set of key-value pairs containing information a server process requires to
  5074. // set up a game session. This object allows you to pass in any set of data
  5075. // needed for your game. For more information, see the Amazon GameLift Developer
  5076. // Guide (http://docs.aws.amazon.com/gamelift/latest/developerguide/).
  5077. type GameProperty struct {
  5078. _ struct{} `type:"structure"`
  5079. // TBD
  5080. //
  5081. // Key is a required field
  5082. Key *string `type:"string" required:"true"`
  5083. // TBD
  5084. //
  5085. // Value is a required field
  5086. Value *string `type:"string" required:"true"`
  5087. }
  5088. // String returns the string representation
  5089. func (s GameProperty) String() string {
  5090. return awsutil.Prettify(s)
  5091. }
  5092. // GoString returns the string representation
  5093. func (s GameProperty) GoString() string {
  5094. return s.String()
  5095. }
  5096. // Validate inspects the fields of the type to determine if they are valid.
  5097. func (s *GameProperty) Validate() error {
  5098. invalidParams := request.ErrInvalidParams{Context: "GameProperty"}
  5099. if s.Key == nil {
  5100. invalidParams.Add(request.NewErrParamRequired("Key"))
  5101. }
  5102. if s.Value == nil {
  5103. invalidParams.Add(request.NewErrParamRequired("Value"))
  5104. }
  5105. if invalidParams.Len() > 0 {
  5106. return invalidParams
  5107. }
  5108. return nil
  5109. }
  5110. // Properties describing a game session.
  5111. type GameSession struct {
  5112. _ struct{} `type:"structure"`
  5113. // Time stamp indicating when this data object was created. Format is a number
  5114. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  5115. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5116. // Player ID of the person or entity that created the game session. This ID
  5117. // is used to enforce a resource protection policy (if one exists) that limits
  5118. // the number of concurrent active game sessions one player can have.
  5119. CreatorId *string `min:"1" type:"string"`
  5120. // Number of players currently in the game session.
  5121. CurrentPlayerSessionCount *int64 `type:"integer"`
  5122. // Unique identifier for a fleet.
  5123. FleetId *string `type:"string"`
  5124. // Set of custom properties for the game session.
  5125. GameProperties []*GameProperty `type:"list"`
  5126. // Unique identifier for a game session. Game session ID format is as follows:
  5127. // "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID string>". The
  5128. // value of <ID string> is either a custom ID string (if one was specified when
  5129. // the game session was created) an auto-generated string.
  5130. GameSessionId *string `min:"1" type:"string"`
  5131. // IP address of the game session. To connect to a GameLift server process,
  5132. // an app needs both the IP address and port number.
  5133. IpAddress *string `type:"string"`
  5134. // Maximum number of players allowed in the game session.
  5135. MaximumPlayerSessionCount *int64 `type:"integer"`
  5136. // Descriptive label associated with a game session. Session names do not need
  5137. // to be unique.
  5138. Name *string `min:"1" type:"string"`
  5139. // Indicates whether or not the game session is accepting new players.
  5140. PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"`
  5141. // Port number for the game session. To connect to a GameLift server process,
  5142. // an app needs both the IP address and port number.
  5143. Port *int64 `min:"1" type:"integer"`
  5144. // Current status of the game session. A game session must be in an ACTIVE status
  5145. // to have player sessions.
  5146. Status *string `type:"string" enum:"GameSessionStatus"`
  5147. // Time stamp indicating when this data object was terminated. Format is a number
  5148. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  5149. TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5150. }
  5151. // String returns the string representation
  5152. func (s GameSession) String() string {
  5153. return awsutil.Prettify(s)
  5154. }
  5155. // GoString returns the string representation
  5156. func (s GameSession) GoString() string {
  5157. return s.String()
  5158. }
  5159. // A game session's properties and the protection policy currently in force.
  5160. type GameSessionDetail struct {
  5161. _ struct{} `type:"structure"`
  5162. // Properties describing a game session.
  5163. GameSession *GameSession `type:"structure"`
  5164. // Current status of protection for the game session.
  5165. //
  5166. // * NoProtection – The game session can be terminated during a scale-down
  5167. // event.
  5168. //
  5169. // * FullProtection – If the game session is in an ACTIVE status, it cannot
  5170. // be terminated during a scale-down event.
  5171. ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  5172. }
  5173. // String returns the string representation
  5174. func (s GameSessionDetail) String() string {
  5175. return awsutil.Prettify(s)
  5176. }
  5177. // GoString returns the string representation
  5178. func (s GameSessionDetail) GoString() string {
  5179. return s.String()
  5180. }
  5181. // Represents the input for a request action.
  5182. type GetGameSessionLogUrlInput struct {
  5183. _ struct{} `type:"structure"`
  5184. // Unique identifier for the game session to get logs for. Game session ID format
  5185. // is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID
  5186. // string>". The value of <ID string> is either a custom ID string (if one was
  5187. // specified when the game session was created) an auto-generated string.
  5188. //
  5189. // GameSessionId is a required field
  5190. GameSessionId *string `min:"1" type:"string" required:"true"`
  5191. }
  5192. // String returns the string representation
  5193. func (s GetGameSessionLogUrlInput) String() string {
  5194. return awsutil.Prettify(s)
  5195. }
  5196. // GoString returns the string representation
  5197. func (s GetGameSessionLogUrlInput) GoString() string {
  5198. return s.String()
  5199. }
  5200. // Validate inspects the fields of the type to determine if they are valid.
  5201. func (s *GetGameSessionLogUrlInput) Validate() error {
  5202. invalidParams := request.ErrInvalidParams{Context: "GetGameSessionLogUrlInput"}
  5203. if s.GameSessionId == nil {
  5204. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  5205. }
  5206. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  5207. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  5208. }
  5209. if invalidParams.Len() > 0 {
  5210. return invalidParams
  5211. }
  5212. return nil
  5213. }
  5214. // Represents the returned data in response to a request action.
  5215. type GetGameSessionLogUrlOutput struct {
  5216. _ struct{} `type:"structure"`
  5217. // Location of the requested game session logs, available for download.
  5218. PreSignedUrl *string `min:"1" type:"string"`
  5219. }
  5220. // String returns the string representation
  5221. func (s GetGameSessionLogUrlOutput) String() string {
  5222. return awsutil.Prettify(s)
  5223. }
  5224. // GoString returns the string representation
  5225. func (s GetGameSessionLogUrlOutput) GoString() string {
  5226. return s.String()
  5227. }
  5228. // Properties describing an instance of a virtual computing resource that is
  5229. // hosting game servers. Fleets contain zero or more instances.
  5230. type Instance struct {
  5231. _ struct{} `type:"structure"`
  5232. // Time stamp indicating when this data object was created. Format is a number
  5233. // expressed in Unix time as milliseconds (ex: "1469498468.057").
  5234. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5235. // Unique identifier for the fleet that the instance belongs to.
  5236. FleetId *string `type:"string"`
  5237. // Unique identifier for the instance.
  5238. InstanceId *string `type:"string"`
  5239. // IP address assigned to the instance.
  5240. IpAddress *string `type:"string"`
  5241. // Operating system being used on this instance.
  5242. OperatingSystem *string `type:"string" enum:"OperatingSystem"`
  5243. // Current status of the instance. Possible statuses include the following:
  5244. //
  5245. // * PENDING – The instance is in the process of being created and launching
  5246. // server processes as defined in the fleet's runtime configuration.
  5247. //
  5248. // * ACTIVE – The instance has been successfully created and at least one
  5249. // server process has successfully launched and reported back to GameLift
  5250. // that it is ready to host a game session. The instance is now considered
  5251. // ready to host game sessions.
  5252. //
  5253. // * TERMINATING – The instance is in the process of shutting down. This
  5254. // may happen to reduce capacity during a scaling down event or to recycle
  5255. // resources in the event of a problem.
  5256. Status *string `type:"string" enum:"InstanceStatus"`
  5257. // EC2 instance type that defines the computing resources of this instance.
  5258. Type *string `type:"string" enum:"EC2InstanceType"`
  5259. }
  5260. // String returns the string representation
  5261. func (s Instance) String() string {
  5262. return awsutil.Prettify(s)
  5263. }
  5264. // GoString returns the string representation
  5265. func (s Instance) GoString() string {
  5266. return s.String()
  5267. }
  5268. // A range of IP addresses and port settings that allow inbound traffic to connect
  5269. // to server processes on GameLift. Each game session hosted on a fleet is assigned
  5270. // a unique combination of IP address and port number, which must fall into
  5271. // the fleet's allowed ranges. This combination is included in the GameSession
  5272. // object.
  5273. type IpPermission struct {
  5274. _ struct{} `type:"structure"`
  5275. // Starting value for a range of allowed port numbers.
  5276. //
  5277. // FromPort is a required field
  5278. FromPort *int64 `min:"1" type:"integer" required:"true"`
  5279. // Range of allowed IP addresses. This value must be expressed in CIDR notation
  5280. // (https://tools.ietf.org/id/cidr). Example: "000.000.000.000/[subnet mask]"
  5281. // or optionally the shortened version "0.0.0.0/[subnet mask]".
  5282. //
  5283. // IpRange is a required field
  5284. IpRange *string `type:"string" required:"true"`
  5285. // Network communication protocol used by the fleet.
  5286. //
  5287. // Protocol is a required field
  5288. Protocol *string `type:"string" required:"true" enum:"IpProtocol"`
  5289. // Ending value for a range of allowed port numbers. Port numbers are end-inclusive.
  5290. // This value must be higher than FromPort.
  5291. //
  5292. // ToPort is a required field
  5293. ToPort *int64 `min:"1" type:"integer" required:"true"`
  5294. }
  5295. // String returns the string representation
  5296. func (s IpPermission) String() string {
  5297. return awsutil.Prettify(s)
  5298. }
  5299. // GoString returns the string representation
  5300. func (s IpPermission) GoString() string {
  5301. return s.String()
  5302. }
  5303. // Validate inspects the fields of the type to determine if they are valid.
  5304. func (s *IpPermission) Validate() error {
  5305. invalidParams := request.ErrInvalidParams{Context: "IpPermission"}
  5306. if s.FromPort == nil {
  5307. invalidParams.Add(request.NewErrParamRequired("FromPort"))
  5308. }
  5309. if s.FromPort != nil && *s.FromPort < 1 {
  5310. invalidParams.Add(request.NewErrParamMinValue("FromPort", 1))
  5311. }
  5312. if s.IpRange == nil {
  5313. invalidParams.Add(request.NewErrParamRequired("IpRange"))
  5314. }
  5315. if s.Protocol == nil {
  5316. invalidParams.Add(request.NewErrParamRequired("Protocol"))
  5317. }
  5318. if s.ToPort == nil {
  5319. invalidParams.Add(request.NewErrParamRequired("ToPort"))
  5320. }
  5321. if s.ToPort != nil && *s.ToPort < 1 {
  5322. invalidParams.Add(request.NewErrParamMinValue("ToPort", 1))
  5323. }
  5324. if invalidParams.Len() > 0 {
  5325. return invalidParams
  5326. }
  5327. return nil
  5328. }
  5329. // Represents the input for a request action.
  5330. type ListAliasesInput struct {
  5331. _ struct{} `type:"structure"`
  5332. // Maximum number of results to return. Use this parameter with NextToken to
  5333. // get results as a set of sequential pages.
  5334. Limit *int64 `min:"1" type:"integer"`
  5335. // Descriptive label associated with an alias. Alias names do not need to be
  5336. // unique.
  5337. Name *string `min:"1" type:"string"`
  5338. // Token indicating the start of the next sequential page of results. Use the
  5339. // token that is returned with a previous call to this action. To specify the
  5340. // start of the result set, do not specify a value.
  5341. NextToken *string `min:"1" type:"string"`
  5342. // Type of routing to filter results on. Use this parameter to retrieve only
  5343. // aliases of a certain type. To retrieve all aliases, leave this parameter
  5344. // empty.
  5345. //
  5346. // Possible routing types include the following:
  5347. //
  5348. // * SIMPLE – The alias resolves to one specific fleet. Use this type when
  5349. // routing to active fleets.
  5350. //
  5351. // * TERMINAL – The alias does not resolve to a fleet but instead can be
  5352. // used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException
  5353. // with the RoutingStrategy message embedded.
  5354. RoutingStrategyType *string `type:"string" enum:"RoutingStrategyType"`
  5355. }
  5356. // String returns the string representation
  5357. func (s ListAliasesInput) String() string {
  5358. return awsutil.Prettify(s)
  5359. }
  5360. // GoString returns the string representation
  5361. func (s ListAliasesInput) GoString() string {
  5362. return s.String()
  5363. }
  5364. // Validate inspects the fields of the type to determine if they are valid.
  5365. func (s *ListAliasesInput) Validate() error {
  5366. invalidParams := request.ErrInvalidParams{Context: "ListAliasesInput"}
  5367. if s.Limit != nil && *s.Limit < 1 {
  5368. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  5369. }
  5370. if s.Name != nil && len(*s.Name) < 1 {
  5371. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5372. }
  5373. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5374. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5375. }
  5376. if invalidParams.Len() > 0 {
  5377. return invalidParams
  5378. }
  5379. return nil
  5380. }
  5381. // Represents the returned data in response to a request action.
  5382. type ListAliasesOutput struct {
  5383. _ struct{} `type:"structure"`
  5384. // Collection of alias records that match the list request.
  5385. Aliases []*Alias `type:"list"`
  5386. // Token indicating where to resume retrieving results on the next call to this
  5387. // action. If no token is returned, these results represent the end of the list.
  5388. NextToken *string `min:"1" type:"string"`
  5389. }
  5390. // String returns the string representation
  5391. func (s ListAliasesOutput) String() string {
  5392. return awsutil.Prettify(s)
  5393. }
  5394. // GoString returns the string representation
  5395. func (s ListAliasesOutput) GoString() string {
  5396. return s.String()
  5397. }
  5398. // Represents the input for a request action.
  5399. type ListBuildsInput struct {
  5400. _ struct{} `type:"structure"`
  5401. // Maximum number of results to return. Use this parameter with NextToken to
  5402. // get results as a set of sequential pages.
  5403. Limit *int64 `min:"1" type:"integer"`
  5404. // Token indicating the start of the next sequential page of results. Use the
  5405. // token that is returned with a previous call to this action. To specify the
  5406. // start of the result set, do not specify a value.
  5407. NextToken *string `min:"1" type:"string"`
  5408. // Build status to filter results by. To retrieve all builds, leave this parameter
  5409. // empty.
  5410. //
  5411. // Possible build statuses include the following:
  5412. //
  5413. // * INITIALIZED – A new build has been defined, but no files have been uploaded.
  5414. // You cannot create fleets for builds that are in this status. When a build
  5415. // is successfully created, the build status is set to this value.
  5416. //
  5417. // * READY – The game build has been successfully uploaded. You can now create
  5418. // new fleets for this build.
  5419. //
  5420. // * FAILED – The game build upload failed. You cannot create new fleets
  5421. // for this build.
  5422. Status *string `type:"string" enum:"BuildStatus"`
  5423. }
  5424. // String returns the string representation
  5425. func (s ListBuildsInput) String() string {
  5426. return awsutil.Prettify(s)
  5427. }
  5428. // GoString returns the string representation
  5429. func (s ListBuildsInput) GoString() string {
  5430. return s.String()
  5431. }
  5432. // Validate inspects the fields of the type to determine if they are valid.
  5433. func (s *ListBuildsInput) Validate() error {
  5434. invalidParams := request.ErrInvalidParams{Context: "ListBuildsInput"}
  5435. if s.Limit != nil && *s.Limit < 1 {
  5436. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  5437. }
  5438. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5439. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5440. }
  5441. if invalidParams.Len() > 0 {
  5442. return invalidParams
  5443. }
  5444. return nil
  5445. }
  5446. // Represents the returned data in response to a request action.
  5447. type ListBuildsOutput struct {
  5448. _ struct{} `type:"structure"`
  5449. // Collection of build records that match the request.
  5450. Builds []*Build `type:"list"`
  5451. // Token indicating where to resume retrieving results on the next call to this
  5452. // action. If no token is returned, these results represent the end of the list.
  5453. NextToken *string `min:"1" type:"string"`
  5454. }
  5455. // String returns the string representation
  5456. func (s ListBuildsOutput) String() string {
  5457. return awsutil.Prettify(s)
  5458. }
  5459. // GoString returns the string representation
  5460. func (s ListBuildsOutput) GoString() string {
  5461. return s.String()
  5462. }
  5463. // Represents the input for a request action.
  5464. type ListFleetsInput struct {
  5465. _ struct{} `type:"structure"`
  5466. // Unique identifier of the build to return fleets for. Use this parameter to
  5467. // return only fleets using the specified build. To retrieve all fleets, leave
  5468. // this parameter empty.
  5469. BuildId *string `type:"string"`
  5470. // Maximum number of results to return. Use this parameter with NextToken to
  5471. // get results as a set of sequential pages.
  5472. Limit *int64 `min:"1" type:"integer"`
  5473. // Token indicating the start of the next sequential page of results. Use the
  5474. // token that is returned with a previous call to this action. To specify the
  5475. // start of the result set, do not specify a value.
  5476. NextToken *string `min:"1" type:"string"`
  5477. }
  5478. // String returns the string representation
  5479. func (s ListFleetsInput) String() string {
  5480. return awsutil.Prettify(s)
  5481. }
  5482. // GoString returns the string representation
  5483. func (s ListFleetsInput) GoString() string {
  5484. return s.String()
  5485. }
  5486. // Validate inspects the fields of the type to determine if they are valid.
  5487. func (s *ListFleetsInput) Validate() error {
  5488. invalidParams := request.ErrInvalidParams{Context: "ListFleetsInput"}
  5489. if s.Limit != nil && *s.Limit < 1 {
  5490. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  5491. }
  5492. if s.NextToken != nil && len(*s.NextToken) < 1 {
  5493. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  5494. }
  5495. if invalidParams.Len() > 0 {
  5496. return invalidParams
  5497. }
  5498. return nil
  5499. }
  5500. // Represents the returned data in response to a request action.
  5501. type ListFleetsOutput struct {
  5502. _ struct{} `type:"structure"`
  5503. // Set of fleet IDs matching the list request. You can retrieve additional information
  5504. // about all returned fleets by passing this result set to a call to DescribeFleetAttributes,
  5505. // DescribeFleetCapacity, and DescribeFleetUtilization.
  5506. FleetIds []*string `min:"1" type:"list"`
  5507. // Token indicating where to resume retrieving results on the next call to this
  5508. // action. If no token is returned, these results represent the end of the list.
  5509. NextToken *string `min:"1" type:"string"`
  5510. }
  5511. // String returns the string representation
  5512. func (s ListFleetsOutput) String() string {
  5513. return awsutil.Prettify(s)
  5514. }
  5515. // GoString returns the string representation
  5516. func (s ListFleetsOutput) GoString() string {
  5517. return s.String()
  5518. }
  5519. // Properties describing a player session.
  5520. type PlayerSession struct {
  5521. _ struct{} `type:"structure"`
  5522. // Time stamp indicating when this data object was created. Format is a number
  5523. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  5524. CreationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5525. // Unique identifier for a fleet.
  5526. FleetId *string `type:"string"`
  5527. // Unique identifier for the game session that the player session is connected
  5528. // to.
  5529. GameSessionId *string `min:"1" type:"string"`
  5530. // Game session IP address. All player sessions reference the game session location.
  5531. IpAddress *string `type:"string"`
  5532. // Unique identifier for a player.
  5533. PlayerId *string `min:"1" type:"string"`
  5534. // Unique identifier for a player session.
  5535. PlayerSessionId *string `type:"string"`
  5536. // Port number for the game session. To connect to a GameLift server process,
  5537. // an app needs both the IP address and port number.
  5538. Port *int64 `min:"1" type:"integer"`
  5539. // Current status of the player session.
  5540. //
  5541. // Possible player session statuses include the following:
  5542. //
  5543. // * RESERVED – The player session request has been received, but the player
  5544. // has not yet connected to the server process and/or been validated.
  5545. //
  5546. // * ACTIVE – The player has been validated by the server process and is
  5547. // currently connected.
  5548. //
  5549. // * COMPLETED – The player connection has been dropped.
  5550. //
  5551. // * TIMEDOUT – A player session request was received, but the player did
  5552. // not connect and/or was not validated within the time-out limit (60 seconds).
  5553. Status *string `type:"string" enum:"PlayerSessionStatus"`
  5554. // Time stamp indicating when this data object was terminated. Format is a number
  5555. // expressed in Unix time as milliseconds (ex: "1469498468.057".
  5556. TerminationTime *time.Time `type:"timestamp" timestampFormat:"unix"`
  5557. }
  5558. // String returns the string representation
  5559. func (s PlayerSession) String() string {
  5560. return awsutil.Prettify(s)
  5561. }
  5562. // GoString returns the string representation
  5563. func (s PlayerSession) GoString() string {
  5564. return s.String()
  5565. }
  5566. // Represents the input for a request action.
  5567. type PutScalingPolicyInput struct {
  5568. _ struct{} `type:"structure"`
  5569. // Comparison operator to use when measuring the metric against the threshold
  5570. // value.
  5571. //
  5572. // ComparisonOperator is a required field
  5573. ComparisonOperator *string `type:"string" required:"true" enum:"ComparisonOperatorType"`
  5574. // Length of time (in minutes) the metric must be at or beyond the threshold
  5575. // before a scaling event is triggered.
  5576. //
  5577. // EvaluationPeriods is a required field
  5578. EvaluationPeriods *int64 `min:"1" type:"integer" required:"true"`
  5579. // Unique identity for the fleet to scale with this policy.
  5580. //
  5581. // FleetId is a required field
  5582. FleetId *string `type:"string" required:"true"`
  5583. // Name of the Amazon GameLift-defined metric that is used to trigger an adjustment.
  5584. //
  5585. // * ActivatingGameSessions – number of game sessions in the process of being
  5586. // created (game session status = ACTIVATING).
  5587. //
  5588. // * ActiveGameSessions – number of game sessions currently running (game
  5589. // session status = ACTIVE).
  5590. //
  5591. // * CurrentPlayerSessions – number of active or reserved player sessions
  5592. // (player session status = ACTIVE or RESERVED).
  5593. //
  5594. // * AvailablePlayerSessions – number of player session slots currently available
  5595. // in active game sessions across the fleet, calculated by subtracting a
  5596. // game session's current player session count from its maximum player session
  5597. // count. This number includes game sessions that are not currently accepting
  5598. // players (game session PlayerSessionCreationPolicy = DENY_ALL).
  5599. //
  5600. // * ActiveInstances – number of instances currently running a game session.
  5601. //
  5602. // * IdleInstances – number of instances not currently running a game session.
  5603. //
  5604. // MetricName is a required field
  5605. MetricName *string `type:"string" required:"true" enum:"MetricName"`
  5606. // Descriptive label associated with a scaling policy. Policy names do not need
  5607. // to be unique. A fleet can have only one scaling policy with the same name.
  5608. //
  5609. // Name is a required field
  5610. Name *string `min:"1" type:"string" required:"true"`
  5611. // Amount of adjustment to make, based on the scaling adjustment type.
  5612. //
  5613. // ScalingAdjustment is a required field
  5614. ScalingAdjustment *int64 `type:"integer" required:"true"`
  5615. // Type of adjustment to make to a fleet's instance count (see FleetCapacity):
  5616. //
  5617. // * ChangeInCapacity – add (or subtract) the scaling adjustment value from
  5618. // the current instance count. Positive values scale up while negative values
  5619. // scale down.
  5620. //
  5621. // * ExactCapacity – set the instance count to the scaling adjustment value.
  5622. //
  5623. // * PercentChangeInCapacity – increase or reduce the current instance count
  5624. // by the scaling adjustment, read as a percentage. Positive values scale
  5625. // up while negative values scale down; for example, a value of "-10" scales
  5626. // the fleet down by 10%.
  5627. //
  5628. // ScalingAdjustmentType is a required field
  5629. ScalingAdjustmentType *string `type:"string" required:"true" enum:"ScalingAdjustmentType"`
  5630. // Metric value used to trigger a scaling event.
  5631. //
  5632. // Threshold is a required field
  5633. Threshold *float64 `type:"double" required:"true"`
  5634. }
  5635. // String returns the string representation
  5636. func (s PutScalingPolicyInput) String() string {
  5637. return awsutil.Prettify(s)
  5638. }
  5639. // GoString returns the string representation
  5640. func (s PutScalingPolicyInput) GoString() string {
  5641. return s.String()
  5642. }
  5643. // Validate inspects the fields of the type to determine if they are valid.
  5644. func (s *PutScalingPolicyInput) Validate() error {
  5645. invalidParams := request.ErrInvalidParams{Context: "PutScalingPolicyInput"}
  5646. if s.ComparisonOperator == nil {
  5647. invalidParams.Add(request.NewErrParamRequired("ComparisonOperator"))
  5648. }
  5649. if s.EvaluationPeriods == nil {
  5650. invalidParams.Add(request.NewErrParamRequired("EvaluationPeriods"))
  5651. }
  5652. if s.EvaluationPeriods != nil && *s.EvaluationPeriods < 1 {
  5653. invalidParams.Add(request.NewErrParamMinValue("EvaluationPeriods", 1))
  5654. }
  5655. if s.FleetId == nil {
  5656. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  5657. }
  5658. if s.MetricName == nil {
  5659. invalidParams.Add(request.NewErrParamRequired("MetricName"))
  5660. }
  5661. if s.Name == nil {
  5662. invalidParams.Add(request.NewErrParamRequired("Name"))
  5663. }
  5664. if s.Name != nil && len(*s.Name) < 1 {
  5665. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  5666. }
  5667. if s.ScalingAdjustment == nil {
  5668. invalidParams.Add(request.NewErrParamRequired("ScalingAdjustment"))
  5669. }
  5670. if s.ScalingAdjustmentType == nil {
  5671. invalidParams.Add(request.NewErrParamRequired("ScalingAdjustmentType"))
  5672. }
  5673. if s.Threshold == nil {
  5674. invalidParams.Add(request.NewErrParamRequired("Threshold"))
  5675. }
  5676. if invalidParams.Len() > 0 {
  5677. return invalidParams
  5678. }
  5679. return nil
  5680. }
  5681. // Represents the returned data in response to a request action.
  5682. type PutScalingPolicyOutput struct {
  5683. _ struct{} `type:"structure"`
  5684. // Descriptive label associated with a scaling policy. Policy names do not need
  5685. // to be unique.
  5686. Name *string `min:"1" type:"string"`
  5687. }
  5688. // String returns the string representation
  5689. func (s PutScalingPolicyOutput) String() string {
  5690. return awsutil.Prettify(s)
  5691. }
  5692. // GoString returns the string representation
  5693. func (s PutScalingPolicyOutput) GoString() string {
  5694. return s.String()
  5695. }
  5696. // Represents the input for a request action.
  5697. type RequestUploadCredentialsInput struct {
  5698. _ struct{} `type:"structure"`
  5699. // Unique identifier for the build you want to get credentials for.
  5700. //
  5701. // BuildId is a required field
  5702. BuildId *string `type:"string" required:"true"`
  5703. }
  5704. // String returns the string representation
  5705. func (s RequestUploadCredentialsInput) String() string {
  5706. return awsutil.Prettify(s)
  5707. }
  5708. // GoString returns the string representation
  5709. func (s RequestUploadCredentialsInput) GoString() string {
  5710. return s.String()
  5711. }
  5712. // Validate inspects the fields of the type to determine if they are valid.
  5713. func (s *RequestUploadCredentialsInput) Validate() error {
  5714. invalidParams := request.ErrInvalidParams{Context: "RequestUploadCredentialsInput"}
  5715. if s.BuildId == nil {
  5716. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  5717. }
  5718. if invalidParams.Len() > 0 {
  5719. return invalidParams
  5720. }
  5721. return nil
  5722. }
  5723. // Represents the returned data in response to a request action.
  5724. type RequestUploadCredentialsOutput struct {
  5725. _ struct{} `type:"structure"`
  5726. // Amazon S3 path and key, identifying where the game build files are stored.
  5727. StorageLocation *S3Location `type:"structure"`
  5728. // AWS credentials required when uploading a game build to the storage location.
  5729. // These credentials have a limited lifespan and are valid only for the build
  5730. // they were issued for.
  5731. UploadCredentials *AwsCredentials `type:"structure"`
  5732. }
  5733. // String returns the string representation
  5734. func (s RequestUploadCredentialsOutput) String() string {
  5735. return awsutil.Prettify(s)
  5736. }
  5737. // GoString returns the string representation
  5738. func (s RequestUploadCredentialsOutput) GoString() string {
  5739. return s.String()
  5740. }
  5741. // Represents the input for a request action.
  5742. type ResolveAliasInput struct {
  5743. _ struct{} `type:"structure"`
  5744. // Unique identifier for the alias you want to resolve.
  5745. //
  5746. // AliasId is a required field
  5747. AliasId *string `type:"string" required:"true"`
  5748. }
  5749. // String returns the string representation
  5750. func (s ResolveAliasInput) String() string {
  5751. return awsutil.Prettify(s)
  5752. }
  5753. // GoString returns the string representation
  5754. func (s ResolveAliasInput) GoString() string {
  5755. return s.String()
  5756. }
  5757. // Validate inspects the fields of the type to determine if they are valid.
  5758. func (s *ResolveAliasInput) Validate() error {
  5759. invalidParams := request.ErrInvalidParams{Context: "ResolveAliasInput"}
  5760. if s.AliasId == nil {
  5761. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  5762. }
  5763. if invalidParams.Len() > 0 {
  5764. return invalidParams
  5765. }
  5766. return nil
  5767. }
  5768. // Represents the returned data in response to a request action.
  5769. type ResolveAliasOutput struct {
  5770. _ struct{} `type:"structure"`
  5771. // Fleet ID associated with the requested alias.
  5772. FleetId *string `type:"string"`
  5773. }
  5774. // String returns the string representation
  5775. func (s ResolveAliasOutput) String() string {
  5776. return awsutil.Prettify(s)
  5777. }
  5778. // GoString returns the string representation
  5779. func (s ResolveAliasOutput) GoString() string {
  5780. return s.String()
  5781. }
  5782. // Policy that limits the number of game sessions a player can create on the
  5783. // same fleet. This optional policy gives game owners control over how players
  5784. // can consume available game server resources. A resource creation policy makes
  5785. // the following statement: "An individual player can create a maximum number
  5786. // of new game sessions within a specified time period".
  5787. //
  5788. // The policy is evaluated when a player tries to create a new game session.
  5789. // For example, with a policy of 10 new game sessions and a time period of 60
  5790. // minutes, on receiving a CreateGameSession request, GameLift checks that the
  5791. // player (identified by CreatorId) has created fewer than 10 game sessions
  5792. // in the past 60 minutes.
  5793. type ResourceCreationLimitPolicy struct {
  5794. _ struct{} `type:"structure"`
  5795. // Maximum number of game sessions an individual can create during the policy
  5796. // period.
  5797. NewGameSessionsPerCreator *int64 `type:"integer"`
  5798. // Time span used to evaluate the resource creation limit policy.
  5799. PolicyPeriodInMinutes *int64 `type:"integer"`
  5800. }
  5801. // String returns the string representation
  5802. func (s ResourceCreationLimitPolicy) String() string {
  5803. return awsutil.Prettify(s)
  5804. }
  5805. // GoString returns the string representation
  5806. func (s ResourceCreationLimitPolicy) GoString() string {
  5807. return s.String()
  5808. }
  5809. // Routing configuration for a fleet alias.
  5810. type RoutingStrategy struct {
  5811. _ struct{} `type:"structure"`
  5812. // Unique identifier for a fleet.
  5813. FleetId *string `type:"string"`
  5814. // Message text to be used with a terminal routing strategy.
  5815. Message *string `type:"string"`
  5816. // Type of routing strategy.
  5817. //
  5818. // Possible routing types include the following:
  5819. //
  5820. // * SIMPLE – The alias resolves to one specific fleet. Use this type when
  5821. // routing to active fleets.
  5822. //
  5823. // * TERMINAL – The alias does not resolve to a fleet but instead can be
  5824. // used to display a message to the user. A terminal alias throws a TerminalRoutingStrategyException
  5825. // with the RoutingStrategy message embedded.
  5826. Type *string `type:"string" enum:"RoutingStrategyType"`
  5827. }
  5828. // String returns the string representation
  5829. func (s RoutingStrategy) String() string {
  5830. return awsutil.Prettify(s)
  5831. }
  5832. // GoString returns the string representation
  5833. func (s RoutingStrategy) GoString() string {
  5834. return s.String()
  5835. }
  5836. // Collection of server process configurations that describe what processes
  5837. // should be run on each instance in a fleet. An instance can launch and maintain
  5838. // multiple server processes based on the runtime configuration; it regularly
  5839. // checks for an updated runtime configuration and starts new server processes
  5840. // to match the latest version.
  5841. //
  5842. // The key purpose of a runtime configuration with multiple server process configurations
  5843. // is to be able to run more than one kind of game server in a single fleet.
  5844. // You can include configurations for more than one server executable in order
  5845. // to run two or more different programs to run on the same instance. This option
  5846. // might be useful, for example, to run more than one version of your game server
  5847. // on the same fleet. Another option is to specify configurations for the same
  5848. // server executable but with different launch parameters.
  5849. //
  5850. // A GameLift instance is limited to 50 processes running simultaneously. To
  5851. // calculate the total number of processes specified in a runtime configuration,
  5852. // add the values of the ConcurrentExecutions parameter for each ServerProcess
  5853. // object in the runtime configuration.
  5854. type RuntimeConfiguration struct {
  5855. _ struct{} `type:"structure"`
  5856. // Collection of server process configurations describing what server processes
  5857. // to run on each instance in a fleet
  5858. ServerProcesses []*ServerProcess `min:"1" type:"list"`
  5859. }
  5860. // String returns the string representation
  5861. func (s RuntimeConfiguration) String() string {
  5862. return awsutil.Prettify(s)
  5863. }
  5864. // GoString returns the string representation
  5865. func (s RuntimeConfiguration) GoString() string {
  5866. return s.String()
  5867. }
  5868. // Validate inspects the fields of the type to determine if they are valid.
  5869. func (s *RuntimeConfiguration) Validate() error {
  5870. invalidParams := request.ErrInvalidParams{Context: "RuntimeConfiguration"}
  5871. if s.ServerProcesses != nil && len(s.ServerProcesses) < 1 {
  5872. invalidParams.Add(request.NewErrParamMinLen("ServerProcesses", 1))
  5873. }
  5874. if s.ServerProcesses != nil {
  5875. for i, v := range s.ServerProcesses {
  5876. if v == nil {
  5877. continue
  5878. }
  5879. if err := v.Validate(); err != nil {
  5880. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ServerProcesses", i), err.(request.ErrInvalidParams))
  5881. }
  5882. }
  5883. }
  5884. if invalidParams.Len() > 0 {
  5885. return invalidParams
  5886. }
  5887. return nil
  5888. }
  5889. // Location in Amazon Simple Storage Service (Amazon S3) where a build's files
  5890. // are stored. This location is assigned in response to a CreateBuild call,
  5891. // and is always in the same region as the service used to create the build.
  5892. // For more details see the Amazon S3 documentation (http://aws.amazon.com/documentation/s3/).
  5893. type S3Location struct {
  5894. _ struct{} `type:"structure"`
  5895. // Amazon S3 bucket identifier.
  5896. Bucket *string `min:"1" type:"string"`
  5897. // Amazon S3 bucket key.
  5898. Key *string `min:"1" type:"string"`
  5899. // Amazon resource number for the cross-account access role that allows GameLift
  5900. // access to the S3 bucket.
  5901. RoleArn *string `min:"1" type:"string"`
  5902. }
  5903. // String returns the string representation
  5904. func (s S3Location) String() string {
  5905. return awsutil.Prettify(s)
  5906. }
  5907. // GoString returns the string representation
  5908. func (s S3Location) GoString() string {
  5909. return s.String()
  5910. }
  5911. // Validate inspects the fields of the type to determine if they are valid.
  5912. func (s *S3Location) Validate() error {
  5913. invalidParams := request.ErrInvalidParams{Context: "S3Location"}
  5914. if s.Bucket != nil && len(*s.Bucket) < 1 {
  5915. invalidParams.Add(request.NewErrParamMinLen("Bucket", 1))
  5916. }
  5917. if s.Key != nil && len(*s.Key) < 1 {
  5918. invalidParams.Add(request.NewErrParamMinLen("Key", 1))
  5919. }
  5920. if s.RoleArn != nil && len(*s.RoleArn) < 1 {
  5921. invalidParams.Add(request.NewErrParamMinLen("RoleArn", 1))
  5922. }
  5923. if invalidParams.Len() > 0 {
  5924. return invalidParams
  5925. }
  5926. return nil
  5927. }
  5928. // Rule that controls how a fleet is scaled. Scaling policies are uniquely identified
  5929. // by the combination of name and fleet ID.
  5930. type ScalingPolicy struct {
  5931. _ struct{} `type:"structure"`
  5932. // Comparison operator to use when measuring a metric against the threshold
  5933. // value.
  5934. ComparisonOperator *string `type:"string" enum:"ComparisonOperatorType"`
  5935. // Length of time (in minutes) the metric must be at or beyond the threshold
  5936. // before a scaling event is triggered.
  5937. EvaluationPeriods *int64 `min:"1" type:"integer"`
  5938. // Unique identity for the fleet associated with this scaling policy.
  5939. FleetId *string `type:"string"`
  5940. // Name of the GameLift-defined metric that is used to trigger an adjustment.
  5941. //
  5942. // * ActivatingGameSessions – number of game sessions in the process of being
  5943. // created (game session status = ACTIVATING).
  5944. //
  5945. // * ActiveGameSessions – number of game sessions currently running (game
  5946. // session status = ACTIVE).
  5947. //
  5948. // * CurrentPlayerSessions – number of active or reserved player sessions
  5949. // (player session status = ACTIVE or RESERVED).
  5950. //
  5951. // * AvailablePlayerSessions – number of player session slots currently available
  5952. // in active game sessions across the fleet, calculated by subtracting a
  5953. // game session's current player session count from its maximum player session
  5954. // count. This number does include game sessions that are not currently accepting
  5955. // players (game session PlayerSessionCreationPolicy = DENY_ALL).
  5956. //
  5957. // * ActiveInstances – number of instances currently running a game session.
  5958. //
  5959. // * IdleInstances – number of instances not currently running a game session.
  5960. MetricName *string `type:"string" enum:"MetricName"`
  5961. // Descriptive label associated with a scaling policy. Policy names do not need
  5962. // to be unique.
  5963. Name *string `min:"1" type:"string"`
  5964. // Amount of adjustment to make, based on the scaling adjustment type.
  5965. ScalingAdjustment *int64 `type:"integer"`
  5966. // Type of adjustment to make to a fleet's instance count (see FleetCapacity):
  5967. //
  5968. // * ChangeInCapacity – add (or subtract) the scaling adjustment value from
  5969. // the current instance count. Positive values scale up while negative values
  5970. // scale down.
  5971. //
  5972. // * ExactCapacity – set the instance count to the scaling adjustment value.
  5973. //
  5974. // * PercentChangeInCapacity – increase or reduce the current instance count
  5975. // by the scaling adjustment, read as a percentage. Positive values scale
  5976. // up while negative values scale down.
  5977. ScalingAdjustmentType *string `type:"string" enum:"ScalingAdjustmentType"`
  5978. // Current status of the scaling policy. The scaling policy is only in force
  5979. // when in an ACTIVE status.
  5980. //
  5981. // * ACTIVE – The scaling policy is currently in force.
  5982. //
  5983. // * UPDATE_REQUESTED – A request to update the scaling policy has been received.
  5984. //
  5985. // * UPDATING – A change is being made to the scaling policy.
  5986. //
  5987. // * DELETE_REQUESTED – A request to delete the scaling policy has been received.
  5988. //
  5989. // * DELETING – The scaling policy is being deleted.
  5990. //
  5991. // * DELETED – The scaling policy has been deleted.
  5992. //
  5993. // * ERROR – An error occurred in creating the policy. It should be removed
  5994. // and recreated.
  5995. Status *string `type:"string" enum:"ScalingStatusType"`
  5996. // Metric value used to trigger a scaling event.
  5997. Threshold *float64 `type:"double"`
  5998. }
  5999. // String returns the string representation
  6000. func (s ScalingPolicy) String() string {
  6001. return awsutil.Prettify(s)
  6002. }
  6003. // GoString returns the string representation
  6004. func (s ScalingPolicy) GoString() string {
  6005. return s.String()
  6006. }
  6007. // Represents the input for a request action.
  6008. type SearchGameSessionsInput struct {
  6009. _ struct{} `type:"structure"`
  6010. // Unique identifier for a fleet alias. Each request must reference either a
  6011. // fleet ID or alias ID, but not both.
  6012. AliasId *string `type:"string"`
  6013. // String containing the search criteria for the session search. If no filter
  6014. // expression is included, the request returns results for all game sessions
  6015. // in the fleet that are in ACTIVE status.
  6016. //
  6017. // A filter expression can contain one or multiple conditions. Each condition
  6018. // consists of the following:
  6019. //
  6020. // * Operand -- Name of a game session attribute. Valid values are gameSessionName,
  6021. // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions,
  6022. // hasAvailablePlayerSessions.
  6023. //
  6024. // * Comparator -- Valid comparators are: =, <>, <, >, <=, >=.
  6025. //
  6026. // * Value -- Value to be searched for. Values can be numbers, boolean values
  6027. // (true/false) or strings. String values are case sensitive, enclosed in
  6028. // single quotes. Special characters must be escaped. Boolean and string
  6029. // values can only be used with the comparators = and <>. For example, the
  6030. // following filter expression searches on gameSessionName: "FilterExpression":
  6031. // "gameSessionName = 'Matt\\'s Awesome Game 1'".
  6032. //
  6033. // To chain multiple conditions in a single expression, use the logical keywords
  6034. // AND, OR, and NOT and parentheses as needed. For example: x AND y AND NOT
  6035. // z, NOT (x OR y).
  6036. //
  6037. // Session search evaluates conditions from left to right using the following
  6038. // precedence rules:
  6039. //
  6040. // =, <>, <, >, <=, >=
  6041. //
  6042. // Parentheses
  6043. //
  6044. // NOT
  6045. //
  6046. // AND
  6047. //
  6048. // OR
  6049. //
  6050. // For example, this filter expression retrieves game sessions hosting at least
  6051. // ten players that have an open player slot: "maximumSessions>=10 AND hasAvailablePlayerSessions=true".
  6052. FilterExpression *string `min:"1" type:"string"`
  6053. // Unique identifier for a fleet. Each request must reference either a fleet
  6054. // ID or alias ID, but not both.
  6055. FleetId *string `type:"string"`
  6056. // Maximum number of results to return. Use this parameter with NextToken to
  6057. // get results as a set of sequential pages. The maximum number of results returned
  6058. // is 20, even if this value is not set or is set higher than 20.
  6059. Limit *int64 `min:"1" type:"integer"`
  6060. // Token indicating the start of the next sequential page of results. Use the
  6061. // token that is returned with a previous call to this action. To specify the
  6062. // start of the result set, do not specify a value.
  6063. NextToken *string `min:"1" type:"string"`
  6064. // Instructions on how to sort the search results. If no sort expression is
  6065. // included, the request returns results in random order. A sort expression
  6066. // consists of the following elements:
  6067. //
  6068. // * Operand -- Name of a game session attribute. Valid values are gameSessionName,
  6069. // gameSessionId, creationTimeMillis, playerSessionCount, maximumSessions,
  6070. // hasAvailablePlayerSessions.
  6071. //
  6072. // * Order -- Valid sort orders are ASC (ascending) and DESC (descending).
  6073. //
  6074. // For example, this sort expression returns the oldest active sessions first:
  6075. // "SortExpression": "creationTimeMillis ASC". Results with a null value for
  6076. // the sort operand are returned at the end of the list.
  6077. SortExpression *string `min:"1" type:"string"`
  6078. }
  6079. // String returns the string representation
  6080. func (s SearchGameSessionsInput) String() string {
  6081. return awsutil.Prettify(s)
  6082. }
  6083. // GoString returns the string representation
  6084. func (s SearchGameSessionsInput) GoString() string {
  6085. return s.String()
  6086. }
  6087. // Validate inspects the fields of the type to determine if they are valid.
  6088. func (s *SearchGameSessionsInput) Validate() error {
  6089. invalidParams := request.ErrInvalidParams{Context: "SearchGameSessionsInput"}
  6090. if s.FilterExpression != nil && len(*s.FilterExpression) < 1 {
  6091. invalidParams.Add(request.NewErrParamMinLen("FilterExpression", 1))
  6092. }
  6093. if s.Limit != nil && *s.Limit < 1 {
  6094. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  6095. }
  6096. if s.NextToken != nil && len(*s.NextToken) < 1 {
  6097. invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
  6098. }
  6099. if s.SortExpression != nil && len(*s.SortExpression) < 1 {
  6100. invalidParams.Add(request.NewErrParamMinLen("SortExpression", 1))
  6101. }
  6102. if invalidParams.Len() > 0 {
  6103. return invalidParams
  6104. }
  6105. return nil
  6106. }
  6107. // Represents the returned data in response to a request action.
  6108. type SearchGameSessionsOutput struct {
  6109. _ struct{} `type:"structure"`
  6110. // Collection of objects containing game session properties for each session
  6111. // matching the request.
  6112. GameSessions []*GameSession `type:"list"`
  6113. // Token indicating where to resume retrieving results on the next call to this
  6114. // action. If no token is returned, these results represent the end of the list.
  6115. NextToken *string `min:"1" type:"string"`
  6116. }
  6117. // String returns the string representation
  6118. func (s SearchGameSessionsOutput) String() string {
  6119. return awsutil.Prettify(s)
  6120. }
  6121. // GoString returns the string representation
  6122. func (s SearchGameSessionsOutput) GoString() string {
  6123. return s.String()
  6124. }
  6125. // A set of instructions for launching server processes on each instance in
  6126. // a fleet. Each instruction set identifies the location of the server executable,
  6127. // optional launch parameters, and the number of server processes with this
  6128. // configuration to maintain concurrently on the instance. Server process configurations
  6129. // make up a fleet's RuntimeConfiguration.
  6130. type ServerProcess struct {
  6131. _ struct{} `type:"structure"`
  6132. // Number of server processes using this configuration to run concurrently on
  6133. // an instance.
  6134. //
  6135. // ConcurrentExecutions is a required field
  6136. ConcurrentExecutions *int64 `min:"1" type:"integer" required:"true"`
  6137. // Location in the game build of the server executable. All game builds are
  6138. // installed on instances at the root C:\game\..., so an executable file located
  6139. // at MyGame\latest\server.exe has a launch path of "C:\game\MyGame\latest\server.exe".
  6140. //
  6141. // LaunchPath is a required field
  6142. LaunchPath *string `min:"1" type:"string" required:"true"`
  6143. // Optional list of parameters to pass to the server executable on launch.
  6144. Parameters *string `min:"1" type:"string"`
  6145. }
  6146. // String returns the string representation
  6147. func (s ServerProcess) String() string {
  6148. return awsutil.Prettify(s)
  6149. }
  6150. // GoString returns the string representation
  6151. func (s ServerProcess) GoString() string {
  6152. return s.String()
  6153. }
  6154. // Validate inspects the fields of the type to determine if they are valid.
  6155. func (s *ServerProcess) Validate() error {
  6156. invalidParams := request.ErrInvalidParams{Context: "ServerProcess"}
  6157. if s.ConcurrentExecutions == nil {
  6158. invalidParams.Add(request.NewErrParamRequired("ConcurrentExecutions"))
  6159. }
  6160. if s.ConcurrentExecutions != nil && *s.ConcurrentExecutions < 1 {
  6161. invalidParams.Add(request.NewErrParamMinValue("ConcurrentExecutions", 1))
  6162. }
  6163. if s.LaunchPath == nil {
  6164. invalidParams.Add(request.NewErrParamRequired("LaunchPath"))
  6165. }
  6166. if s.LaunchPath != nil && len(*s.LaunchPath) < 1 {
  6167. invalidParams.Add(request.NewErrParamMinLen("LaunchPath", 1))
  6168. }
  6169. if s.Parameters != nil && len(*s.Parameters) < 1 {
  6170. invalidParams.Add(request.NewErrParamMinLen("Parameters", 1))
  6171. }
  6172. if invalidParams.Len() > 0 {
  6173. return invalidParams
  6174. }
  6175. return nil
  6176. }
  6177. // Represents the input for a request action.
  6178. type UpdateAliasInput struct {
  6179. _ struct{} `type:"structure"`
  6180. // Unique identifier for a fleet alias. Specify the alias you want to update.
  6181. //
  6182. // AliasId is a required field
  6183. AliasId *string `type:"string" required:"true"`
  6184. // Human-readable description of an alias.
  6185. Description *string `min:"1" type:"string"`
  6186. // Descriptive label associated with an alias. Alias names do not need to be
  6187. // unique.
  6188. Name *string `min:"1" type:"string"`
  6189. // Object specifying the fleet and routing type to use for the alias.
  6190. RoutingStrategy *RoutingStrategy `type:"structure"`
  6191. }
  6192. // String returns the string representation
  6193. func (s UpdateAliasInput) String() string {
  6194. return awsutil.Prettify(s)
  6195. }
  6196. // GoString returns the string representation
  6197. func (s UpdateAliasInput) GoString() string {
  6198. return s.String()
  6199. }
  6200. // Validate inspects the fields of the type to determine if they are valid.
  6201. func (s *UpdateAliasInput) Validate() error {
  6202. invalidParams := request.ErrInvalidParams{Context: "UpdateAliasInput"}
  6203. if s.AliasId == nil {
  6204. invalidParams.Add(request.NewErrParamRequired("AliasId"))
  6205. }
  6206. if s.Description != nil && len(*s.Description) < 1 {
  6207. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  6208. }
  6209. if s.Name != nil && len(*s.Name) < 1 {
  6210. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6211. }
  6212. if invalidParams.Len() > 0 {
  6213. return invalidParams
  6214. }
  6215. return nil
  6216. }
  6217. // Represents the returned data in response to a request action.
  6218. type UpdateAliasOutput struct {
  6219. _ struct{} `type:"structure"`
  6220. // Object containing the updated alias configuration.
  6221. Alias *Alias `type:"structure"`
  6222. }
  6223. // String returns the string representation
  6224. func (s UpdateAliasOutput) String() string {
  6225. return awsutil.Prettify(s)
  6226. }
  6227. // GoString returns the string representation
  6228. func (s UpdateAliasOutput) GoString() string {
  6229. return s.String()
  6230. }
  6231. // Represents the input for a request action.
  6232. type UpdateBuildInput struct {
  6233. _ struct{} `type:"structure"`
  6234. // Unique identifier of the build you want to update.
  6235. //
  6236. // BuildId is a required field
  6237. BuildId *string `type:"string" required:"true"`
  6238. // Descriptive label associated with a build. Build names do not need to be
  6239. // unique.
  6240. Name *string `min:"1" type:"string"`
  6241. // Version associated with this build. Version strings do not need to be unique
  6242. // to a build.
  6243. Version *string `min:"1" type:"string"`
  6244. }
  6245. // String returns the string representation
  6246. func (s UpdateBuildInput) String() string {
  6247. return awsutil.Prettify(s)
  6248. }
  6249. // GoString returns the string representation
  6250. func (s UpdateBuildInput) GoString() string {
  6251. return s.String()
  6252. }
  6253. // Validate inspects the fields of the type to determine if they are valid.
  6254. func (s *UpdateBuildInput) Validate() error {
  6255. invalidParams := request.ErrInvalidParams{Context: "UpdateBuildInput"}
  6256. if s.BuildId == nil {
  6257. invalidParams.Add(request.NewErrParamRequired("BuildId"))
  6258. }
  6259. if s.Name != nil && len(*s.Name) < 1 {
  6260. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6261. }
  6262. if s.Version != nil && len(*s.Version) < 1 {
  6263. invalidParams.Add(request.NewErrParamMinLen("Version", 1))
  6264. }
  6265. if invalidParams.Len() > 0 {
  6266. return invalidParams
  6267. }
  6268. return nil
  6269. }
  6270. // Represents the returned data in response to a request action.
  6271. type UpdateBuildOutput struct {
  6272. _ struct{} `type:"structure"`
  6273. // Object containing the updated build record.
  6274. Build *Build `type:"structure"`
  6275. }
  6276. // String returns the string representation
  6277. func (s UpdateBuildOutput) String() string {
  6278. return awsutil.Prettify(s)
  6279. }
  6280. // GoString returns the string representation
  6281. func (s UpdateBuildOutput) GoString() string {
  6282. return s.String()
  6283. }
  6284. // Represents the input for a request action.
  6285. type UpdateFleetAttributesInput struct {
  6286. _ struct{} `type:"structure"`
  6287. // Human-readable description of a fleet.
  6288. Description *string `min:"1" type:"string"`
  6289. // Unique identifier for the fleet you want to update attribute metadata for.
  6290. //
  6291. // FleetId is a required field
  6292. FleetId *string `type:"string" required:"true"`
  6293. // Descriptive label associated with a fleet. Fleet names do not need to be
  6294. // unique.
  6295. Name *string `min:"1" type:"string"`
  6296. // Game session protection policy to apply to all new instances created in this
  6297. // fleet. Instances that already exist are not affected. You can set protection
  6298. // for individual instances using UpdateGameSession.
  6299. //
  6300. // * NoProtection – The game session can be terminated during a scale-down
  6301. // event.
  6302. //
  6303. // * FullProtection – If the game session is in an ACTIVE status, it cannot
  6304. // be terminated during a scale-down event.
  6305. NewGameSessionProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  6306. // Policy that limits the number of game sessions an individual player can create
  6307. // over a span of time.
  6308. ResourceCreationLimitPolicy *ResourceCreationLimitPolicy `type:"structure"`
  6309. }
  6310. // String returns the string representation
  6311. func (s UpdateFleetAttributesInput) String() string {
  6312. return awsutil.Prettify(s)
  6313. }
  6314. // GoString returns the string representation
  6315. func (s UpdateFleetAttributesInput) GoString() string {
  6316. return s.String()
  6317. }
  6318. // Validate inspects the fields of the type to determine if they are valid.
  6319. func (s *UpdateFleetAttributesInput) Validate() error {
  6320. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetAttributesInput"}
  6321. if s.Description != nil && len(*s.Description) < 1 {
  6322. invalidParams.Add(request.NewErrParamMinLen("Description", 1))
  6323. }
  6324. if s.FleetId == nil {
  6325. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  6326. }
  6327. if s.Name != nil && len(*s.Name) < 1 {
  6328. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6329. }
  6330. if invalidParams.Len() > 0 {
  6331. return invalidParams
  6332. }
  6333. return nil
  6334. }
  6335. // Represents the returned data in response to a request action.
  6336. type UpdateFleetAttributesOutput struct {
  6337. _ struct{} `type:"structure"`
  6338. // Unique identifier for the updated fleet.
  6339. FleetId *string `type:"string"`
  6340. }
  6341. // String returns the string representation
  6342. func (s UpdateFleetAttributesOutput) String() string {
  6343. return awsutil.Prettify(s)
  6344. }
  6345. // GoString returns the string representation
  6346. func (s UpdateFleetAttributesOutput) GoString() string {
  6347. return s.String()
  6348. }
  6349. // Represents the input for a request action.
  6350. type UpdateFleetCapacityInput struct {
  6351. _ struct{} `type:"structure"`
  6352. // Number of EC2 instances you want this fleet to host.
  6353. DesiredInstances *int64 `type:"integer"`
  6354. // Unique identifier for the fleet you want to update capacity for.
  6355. //
  6356. // FleetId is a required field
  6357. FleetId *string `type:"string" required:"true"`
  6358. // Maximum value allowed for the fleet's instance count. Default if not set
  6359. // is 1.
  6360. MaxSize *int64 `type:"integer"`
  6361. // Minimum value allowed for the fleet's instance count. Default if not set
  6362. // is 0.
  6363. MinSize *int64 `type:"integer"`
  6364. }
  6365. // String returns the string representation
  6366. func (s UpdateFleetCapacityInput) String() string {
  6367. return awsutil.Prettify(s)
  6368. }
  6369. // GoString returns the string representation
  6370. func (s UpdateFleetCapacityInput) GoString() string {
  6371. return s.String()
  6372. }
  6373. // Validate inspects the fields of the type to determine if they are valid.
  6374. func (s *UpdateFleetCapacityInput) Validate() error {
  6375. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetCapacityInput"}
  6376. if s.FleetId == nil {
  6377. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  6378. }
  6379. if invalidParams.Len() > 0 {
  6380. return invalidParams
  6381. }
  6382. return nil
  6383. }
  6384. // Represents the returned data in response to a request action.
  6385. type UpdateFleetCapacityOutput struct {
  6386. _ struct{} `type:"structure"`
  6387. // Unique identifier for the updated fleet.
  6388. FleetId *string `type:"string"`
  6389. }
  6390. // String returns the string representation
  6391. func (s UpdateFleetCapacityOutput) String() string {
  6392. return awsutil.Prettify(s)
  6393. }
  6394. // GoString returns the string representation
  6395. func (s UpdateFleetCapacityOutput) GoString() string {
  6396. return s.String()
  6397. }
  6398. // Represents the input for a request action.
  6399. type UpdateFleetPortSettingsInput struct {
  6400. _ struct{} `type:"structure"`
  6401. // Unique identifier for the fleet you want to update port settings for.
  6402. //
  6403. // FleetId is a required field
  6404. FleetId *string `type:"string" required:"true"`
  6405. // Collection of port settings to be added to the fleet record.
  6406. InboundPermissionAuthorizations []*IpPermission `type:"list"`
  6407. // Collection of port settings to be removed from the fleet record.
  6408. InboundPermissionRevocations []*IpPermission `type:"list"`
  6409. }
  6410. // String returns the string representation
  6411. func (s UpdateFleetPortSettingsInput) String() string {
  6412. return awsutil.Prettify(s)
  6413. }
  6414. // GoString returns the string representation
  6415. func (s UpdateFleetPortSettingsInput) GoString() string {
  6416. return s.String()
  6417. }
  6418. // Validate inspects the fields of the type to determine if they are valid.
  6419. func (s *UpdateFleetPortSettingsInput) Validate() error {
  6420. invalidParams := request.ErrInvalidParams{Context: "UpdateFleetPortSettingsInput"}
  6421. if s.FleetId == nil {
  6422. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  6423. }
  6424. if s.InboundPermissionAuthorizations != nil {
  6425. for i, v := range s.InboundPermissionAuthorizations {
  6426. if v == nil {
  6427. continue
  6428. }
  6429. if err := v.Validate(); err != nil {
  6430. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InboundPermissionAuthorizations", i), err.(request.ErrInvalidParams))
  6431. }
  6432. }
  6433. }
  6434. if s.InboundPermissionRevocations != nil {
  6435. for i, v := range s.InboundPermissionRevocations {
  6436. if v == nil {
  6437. continue
  6438. }
  6439. if err := v.Validate(); err != nil {
  6440. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InboundPermissionRevocations", i), err.(request.ErrInvalidParams))
  6441. }
  6442. }
  6443. }
  6444. if invalidParams.Len() > 0 {
  6445. return invalidParams
  6446. }
  6447. return nil
  6448. }
  6449. // Represents the returned data in response to a request action.
  6450. type UpdateFleetPortSettingsOutput struct {
  6451. _ struct{} `type:"structure"`
  6452. // Unique identifier for the updated fleet.
  6453. FleetId *string `type:"string"`
  6454. }
  6455. // String returns the string representation
  6456. func (s UpdateFleetPortSettingsOutput) String() string {
  6457. return awsutil.Prettify(s)
  6458. }
  6459. // GoString returns the string representation
  6460. func (s UpdateFleetPortSettingsOutput) GoString() string {
  6461. return s.String()
  6462. }
  6463. // Represents the input for a request action.
  6464. type UpdateGameSessionInput struct {
  6465. _ struct{} `type:"structure"`
  6466. // Unique identifier for the game session to update. Game session ID format
  6467. // is as follows: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<ID
  6468. // string>". The value of <ID string> is either a custom ID string (if one was
  6469. // specified when the game session was created) an auto-generated string.
  6470. //
  6471. // GameSessionId is a required field
  6472. GameSessionId *string `min:"1" type:"string" required:"true"`
  6473. // Maximum number of players that can be simultaneously connected to the game
  6474. // session.
  6475. MaximumPlayerSessionCount *int64 `type:"integer"`
  6476. // Descriptive label associated with a game session. Session names do not need
  6477. // to be unique.
  6478. Name *string `min:"1" type:"string"`
  6479. // Policy determining whether or not the game session accepts new players.
  6480. PlayerSessionCreationPolicy *string `type:"string" enum:"PlayerSessionCreationPolicy"`
  6481. // Game session protection policy to apply to this game session only.
  6482. //
  6483. // * NoProtection – The game session can be terminated during a scale-down
  6484. // event.
  6485. //
  6486. // * FullProtection – If the game session is in an ACTIVE status, it cannot
  6487. // be terminated during a scale-down event.
  6488. ProtectionPolicy *string `type:"string" enum:"ProtectionPolicy"`
  6489. }
  6490. // String returns the string representation
  6491. func (s UpdateGameSessionInput) String() string {
  6492. return awsutil.Prettify(s)
  6493. }
  6494. // GoString returns the string representation
  6495. func (s UpdateGameSessionInput) GoString() string {
  6496. return s.String()
  6497. }
  6498. // Validate inspects the fields of the type to determine if they are valid.
  6499. func (s *UpdateGameSessionInput) Validate() error {
  6500. invalidParams := request.ErrInvalidParams{Context: "UpdateGameSessionInput"}
  6501. if s.GameSessionId == nil {
  6502. invalidParams.Add(request.NewErrParamRequired("GameSessionId"))
  6503. }
  6504. if s.GameSessionId != nil && len(*s.GameSessionId) < 1 {
  6505. invalidParams.Add(request.NewErrParamMinLen("GameSessionId", 1))
  6506. }
  6507. if s.Name != nil && len(*s.Name) < 1 {
  6508. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  6509. }
  6510. if invalidParams.Len() > 0 {
  6511. return invalidParams
  6512. }
  6513. return nil
  6514. }
  6515. // Represents the returned data in response to a request action.
  6516. type UpdateGameSessionOutput struct {
  6517. _ struct{} `type:"structure"`
  6518. // Object containing the updated game session metadata.
  6519. GameSession *GameSession `type:"structure"`
  6520. }
  6521. // String returns the string representation
  6522. func (s UpdateGameSessionOutput) String() string {
  6523. return awsutil.Prettify(s)
  6524. }
  6525. // GoString returns the string representation
  6526. func (s UpdateGameSessionOutput) GoString() string {
  6527. return s.String()
  6528. }
  6529. // Represents the input for a request action.
  6530. type UpdateRuntimeConfigurationInput struct {
  6531. _ struct{} `type:"structure"`
  6532. // Unique identifier of the fleet to update runtime configuration for.
  6533. //
  6534. // FleetId is a required field
  6535. FleetId *string `type:"string" required:"true"`
  6536. // Instructions for launching server processes on each instance in the fleet.
  6537. // The runtime configuration for a fleet has a collection of server process
  6538. // configurations, one for each type of server process to run on an instance.
  6539. // A server process configuration specifies the location of the server executable,
  6540. // launch parameters, and the number of concurrent processes with that configuration
  6541. // to maintain on each instance.
  6542. //
  6543. // RuntimeConfiguration is a required field
  6544. RuntimeConfiguration *RuntimeConfiguration `type:"structure" required:"true"`
  6545. }
  6546. // String returns the string representation
  6547. func (s UpdateRuntimeConfigurationInput) String() string {
  6548. return awsutil.Prettify(s)
  6549. }
  6550. // GoString returns the string representation
  6551. func (s UpdateRuntimeConfigurationInput) GoString() string {
  6552. return s.String()
  6553. }
  6554. // Validate inspects the fields of the type to determine if they are valid.
  6555. func (s *UpdateRuntimeConfigurationInput) Validate() error {
  6556. invalidParams := request.ErrInvalidParams{Context: "UpdateRuntimeConfigurationInput"}
  6557. if s.FleetId == nil {
  6558. invalidParams.Add(request.NewErrParamRequired("FleetId"))
  6559. }
  6560. if s.RuntimeConfiguration == nil {
  6561. invalidParams.Add(request.NewErrParamRequired("RuntimeConfiguration"))
  6562. }
  6563. if s.RuntimeConfiguration != nil {
  6564. if err := s.RuntimeConfiguration.Validate(); err != nil {
  6565. invalidParams.AddNested("RuntimeConfiguration", err.(request.ErrInvalidParams))
  6566. }
  6567. }
  6568. if invalidParams.Len() > 0 {
  6569. return invalidParams
  6570. }
  6571. return nil
  6572. }
  6573. // Represents the returned data in response to a request action.
  6574. type UpdateRuntimeConfigurationOutput struct {
  6575. _ struct{} `type:"structure"`
  6576. // The runtime configuration currently in force. If the update was successful,
  6577. // this object matches the one in the request.
  6578. RuntimeConfiguration *RuntimeConfiguration `type:"structure"`
  6579. }
  6580. // String returns the string representation
  6581. func (s UpdateRuntimeConfigurationOutput) String() string {
  6582. return awsutil.Prettify(s)
  6583. }
  6584. // GoString returns the string representation
  6585. func (s UpdateRuntimeConfigurationOutput) GoString() string {
  6586. return s.String()
  6587. }
  6588. const (
  6589. // BuildStatusInitialized is a BuildStatus enum value
  6590. BuildStatusInitialized = "INITIALIZED"
  6591. // BuildStatusReady is a BuildStatus enum value
  6592. BuildStatusReady = "READY"
  6593. // BuildStatusFailed is a BuildStatus enum value
  6594. BuildStatusFailed = "FAILED"
  6595. )
  6596. const (
  6597. // ComparisonOperatorTypeGreaterThanOrEqualToThreshold is a ComparisonOperatorType enum value
  6598. ComparisonOperatorTypeGreaterThanOrEqualToThreshold = "GreaterThanOrEqualToThreshold"
  6599. // ComparisonOperatorTypeGreaterThanThreshold is a ComparisonOperatorType enum value
  6600. ComparisonOperatorTypeGreaterThanThreshold = "GreaterThanThreshold"
  6601. // ComparisonOperatorTypeLessThanThreshold is a ComparisonOperatorType enum value
  6602. ComparisonOperatorTypeLessThanThreshold = "LessThanThreshold"
  6603. // ComparisonOperatorTypeLessThanOrEqualToThreshold is a ComparisonOperatorType enum value
  6604. ComparisonOperatorTypeLessThanOrEqualToThreshold = "LessThanOrEqualToThreshold"
  6605. )
  6606. const (
  6607. // EC2InstanceTypeT2Micro is a EC2InstanceType enum value
  6608. EC2InstanceTypeT2Micro = "t2.micro"
  6609. // EC2InstanceTypeT2Small is a EC2InstanceType enum value
  6610. EC2InstanceTypeT2Small = "t2.small"
  6611. // EC2InstanceTypeT2Medium is a EC2InstanceType enum value
  6612. EC2InstanceTypeT2Medium = "t2.medium"
  6613. // EC2InstanceTypeT2Large is a EC2InstanceType enum value
  6614. EC2InstanceTypeT2Large = "t2.large"
  6615. // EC2InstanceTypeC3Large is a EC2InstanceType enum value
  6616. EC2InstanceTypeC3Large = "c3.large"
  6617. // EC2InstanceTypeC3Xlarge is a EC2InstanceType enum value
  6618. EC2InstanceTypeC3Xlarge = "c3.xlarge"
  6619. // EC2InstanceTypeC32xlarge is a EC2InstanceType enum value
  6620. EC2InstanceTypeC32xlarge = "c3.2xlarge"
  6621. // EC2InstanceTypeC34xlarge is a EC2InstanceType enum value
  6622. EC2InstanceTypeC34xlarge = "c3.4xlarge"
  6623. // EC2InstanceTypeC38xlarge is a EC2InstanceType enum value
  6624. EC2InstanceTypeC38xlarge = "c3.8xlarge"
  6625. // EC2InstanceTypeC4Large is a EC2InstanceType enum value
  6626. EC2InstanceTypeC4Large = "c4.large"
  6627. // EC2InstanceTypeC4Xlarge is a EC2InstanceType enum value
  6628. EC2InstanceTypeC4Xlarge = "c4.xlarge"
  6629. // EC2InstanceTypeC42xlarge is a EC2InstanceType enum value
  6630. EC2InstanceTypeC42xlarge = "c4.2xlarge"
  6631. // EC2InstanceTypeC44xlarge is a EC2InstanceType enum value
  6632. EC2InstanceTypeC44xlarge = "c4.4xlarge"
  6633. // EC2InstanceTypeC48xlarge is a EC2InstanceType enum value
  6634. EC2InstanceTypeC48xlarge = "c4.8xlarge"
  6635. // EC2InstanceTypeR3Large is a EC2InstanceType enum value
  6636. EC2InstanceTypeR3Large = "r3.large"
  6637. // EC2InstanceTypeR3Xlarge is a EC2InstanceType enum value
  6638. EC2InstanceTypeR3Xlarge = "r3.xlarge"
  6639. // EC2InstanceTypeR32xlarge is a EC2InstanceType enum value
  6640. EC2InstanceTypeR32xlarge = "r3.2xlarge"
  6641. // EC2InstanceTypeR34xlarge is a EC2InstanceType enum value
  6642. EC2InstanceTypeR34xlarge = "r3.4xlarge"
  6643. // EC2InstanceTypeR38xlarge is a EC2InstanceType enum value
  6644. EC2InstanceTypeR38xlarge = "r3.8xlarge"
  6645. // EC2InstanceTypeM3Medium is a EC2InstanceType enum value
  6646. EC2InstanceTypeM3Medium = "m3.medium"
  6647. // EC2InstanceTypeM3Large is a EC2InstanceType enum value
  6648. EC2InstanceTypeM3Large = "m3.large"
  6649. // EC2InstanceTypeM3Xlarge is a EC2InstanceType enum value
  6650. EC2InstanceTypeM3Xlarge = "m3.xlarge"
  6651. // EC2InstanceTypeM32xlarge is a EC2InstanceType enum value
  6652. EC2InstanceTypeM32xlarge = "m3.2xlarge"
  6653. // EC2InstanceTypeM4Large is a EC2InstanceType enum value
  6654. EC2InstanceTypeM4Large = "m4.large"
  6655. // EC2InstanceTypeM4Xlarge is a EC2InstanceType enum value
  6656. EC2InstanceTypeM4Xlarge = "m4.xlarge"
  6657. // EC2InstanceTypeM42xlarge is a EC2InstanceType enum value
  6658. EC2InstanceTypeM42xlarge = "m4.2xlarge"
  6659. // EC2InstanceTypeM44xlarge is a EC2InstanceType enum value
  6660. EC2InstanceTypeM44xlarge = "m4.4xlarge"
  6661. // EC2InstanceTypeM410xlarge is a EC2InstanceType enum value
  6662. EC2InstanceTypeM410xlarge = "m4.10xlarge"
  6663. )
  6664. const (
  6665. // EventCodeGenericEvent is a EventCode enum value
  6666. EventCodeGenericEvent = "GENERIC_EVENT"
  6667. // EventCodeFleetCreated is a EventCode enum value
  6668. EventCodeFleetCreated = "FLEET_CREATED"
  6669. // EventCodeFleetDeleted is a EventCode enum value
  6670. EventCodeFleetDeleted = "FLEET_DELETED"
  6671. // EventCodeFleetScalingEvent is a EventCode enum value
  6672. EventCodeFleetScalingEvent = "FLEET_SCALING_EVENT"
  6673. // EventCodeFleetStateDownloading is a EventCode enum value
  6674. EventCodeFleetStateDownloading = "FLEET_STATE_DOWNLOADING"
  6675. // EventCodeFleetStateValidating is a EventCode enum value
  6676. EventCodeFleetStateValidating = "FLEET_STATE_VALIDATING"
  6677. // EventCodeFleetStateBuilding is a EventCode enum value
  6678. EventCodeFleetStateBuilding = "FLEET_STATE_BUILDING"
  6679. // EventCodeFleetStateActivating is a EventCode enum value
  6680. EventCodeFleetStateActivating = "FLEET_STATE_ACTIVATING"
  6681. // EventCodeFleetStateActive is a EventCode enum value
  6682. EventCodeFleetStateActive = "FLEET_STATE_ACTIVE"
  6683. // EventCodeFleetStateError is a EventCode enum value
  6684. EventCodeFleetStateError = "FLEET_STATE_ERROR"
  6685. // EventCodeFleetInitializationFailed is a EventCode enum value
  6686. EventCodeFleetInitializationFailed = "FLEET_INITIALIZATION_FAILED"
  6687. // EventCodeFleetBinaryDownloadFailed is a EventCode enum value
  6688. EventCodeFleetBinaryDownloadFailed = "FLEET_BINARY_DOWNLOAD_FAILED"
  6689. // EventCodeFleetValidationLaunchPathNotFound is a EventCode enum value
  6690. EventCodeFleetValidationLaunchPathNotFound = "FLEET_VALIDATION_LAUNCH_PATH_NOT_FOUND"
  6691. // EventCodeFleetValidationExecutableRuntimeFailure is a EventCode enum value
  6692. EventCodeFleetValidationExecutableRuntimeFailure = "FLEET_VALIDATION_EXECUTABLE_RUNTIME_FAILURE"
  6693. // EventCodeFleetValidationTimedOut is a EventCode enum value
  6694. EventCodeFleetValidationTimedOut = "FLEET_VALIDATION_TIMED_OUT"
  6695. // EventCodeFleetActivationFailed is a EventCode enum value
  6696. EventCodeFleetActivationFailed = "FLEET_ACTIVATION_FAILED"
  6697. // EventCodeFleetActivationFailedNoInstances is a EventCode enum value
  6698. EventCodeFleetActivationFailedNoInstances = "FLEET_ACTIVATION_FAILED_NO_INSTANCES"
  6699. // EventCodeFleetNewGameSessionProtectionPolicyUpdated is a EventCode enum value
  6700. EventCodeFleetNewGameSessionProtectionPolicyUpdated = "FLEET_NEW_GAME_SESSION_PROTECTION_POLICY_UPDATED"
  6701. )
  6702. const (
  6703. // FleetStatusNew is a FleetStatus enum value
  6704. FleetStatusNew = "NEW"
  6705. // FleetStatusDownloading is a FleetStatus enum value
  6706. FleetStatusDownloading = "DOWNLOADING"
  6707. // FleetStatusValidating is a FleetStatus enum value
  6708. FleetStatusValidating = "VALIDATING"
  6709. // FleetStatusBuilding is a FleetStatus enum value
  6710. FleetStatusBuilding = "BUILDING"
  6711. // FleetStatusActivating is a FleetStatus enum value
  6712. FleetStatusActivating = "ACTIVATING"
  6713. // FleetStatusActive is a FleetStatus enum value
  6714. FleetStatusActive = "ACTIVE"
  6715. // FleetStatusDeleting is a FleetStatus enum value
  6716. FleetStatusDeleting = "DELETING"
  6717. // FleetStatusError is a FleetStatus enum value
  6718. FleetStatusError = "ERROR"
  6719. // FleetStatusTerminated is a FleetStatus enum value
  6720. FleetStatusTerminated = "TERMINATED"
  6721. )
  6722. const (
  6723. // GameSessionStatusActive is a GameSessionStatus enum value
  6724. GameSessionStatusActive = "ACTIVE"
  6725. // GameSessionStatusActivating is a GameSessionStatus enum value
  6726. GameSessionStatusActivating = "ACTIVATING"
  6727. // GameSessionStatusTerminated is a GameSessionStatus enum value
  6728. GameSessionStatusTerminated = "TERMINATED"
  6729. // GameSessionStatusTerminating is a GameSessionStatus enum value
  6730. GameSessionStatusTerminating = "TERMINATING"
  6731. // GameSessionStatusError is a GameSessionStatus enum value
  6732. GameSessionStatusError = "ERROR"
  6733. )
  6734. const (
  6735. // InstanceStatusPending is a InstanceStatus enum value
  6736. InstanceStatusPending = "PENDING"
  6737. // InstanceStatusActive is a InstanceStatus enum value
  6738. InstanceStatusActive = "ACTIVE"
  6739. // InstanceStatusTerminating is a InstanceStatus enum value
  6740. InstanceStatusTerminating = "TERMINATING"
  6741. )
  6742. const (
  6743. // IpProtocolTcp is a IpProtocol enum value
  6744. IpProtocolTcp = "TCP"
  6745. // IpProtocolUdp is a IpProtocol enum value
  6746. IpProtocolUdp = "UDP"
  6747. )
  6748. const (
  6749. // MetricNameActivatingGameSessions is a MetricName enum value
  6750. MetricNameActivatingGameSessions = "ActivatingGameSessions"
  6751. // MetricNameActiveGameSessions is a MetricName enum value
  6752. MetricNameActiveGameSessions = "ActiveGameSessions"
  6753. // MetricNameActiveInstances is a MetricName enum value
  6754. MetricNameActiveInstances = "ActiveInstances"
  6755. // MetricNameAvailablePlayerSessions is a MetricName enum value
  6756. MetricNameAvailablePlayerSessions = "AvailablePlayerSessions"
  6757. // MetricNameCurrentPlayerSessions is a MetricName enum value
  6758. MetricNameCurrentPlayerSessions = "CurrentPlayerSessions"
  6759. // MetricNameIdleInstances is a MetricName enum value
  6760. MetricNameIdleInstances = "IdleInstances"
  6761. )
  6762. const (
  6763. // OperatingSystemWindows2012 is a OperatingSystem enum value
  6764. OperatingSystemWindows2012 = "WINDOWS_2012"
  6765. // OperatingSystemAmazonLinux is a OperatingSystem enum value
  6766. OperatingSystemAmazonLinux = "AMAZON_LINUX"
  6767. )
  6768. const (
  6769. // PlayerSessionCreationPolicyAcceptAll is a PlayerSessionCreationPolicy enum value
  6770. PlayerSessionCreationPolicyAcceptAll = "ACCEPT_ALL"
  6771. // PlayerSessionCreationPolicyDenyAll is a PlayerSessionCreationPolicy enum value
  6772. PlayerSessionCreationPolicyDenyAll = "DENY_ALL"
  6773. )
  6774. const (
  6775. // PlayerSessionStatusReserved is a PlayerSessionStatus enum value
  6776. PlayerSessionStatusReserved = "RESERVED"
  6777. // PlayerSessionStatusActive is a PlayerSessionStatus enum value
  6778. PlayerSessionStatusActive = "ACTIVE"
  6779. // PlayerSessionStatusCompleted is a PlayerSessionStatus enum value
  6780. PlayerSessionStatusCompleted = "COMPLETED"
  6781. // PlayerSessionStatusTimedout is a PlayerSessionStatus enum value
  6782. PlayerSessionStatusTimedout = "TIMEDOUT"
  6783. )
  6784. const (
  6785. // ProtectionPolicyNoProtection is a ProtectionPolicy enum value
  6786. ProtectionPolicyNoProtection = "NoProtection"
  6787. // ProtectionPolicyFullProtection is a ProtectionPolicy enum value
  6788. ProtectionPolicyFullProtection = "FullProtection"
  6789. )
  6790. const (
  6791. // RoutingStrategyTypeSimple is a RoutingStrategyType enum value
  6792. RoutingStrategyTypeSimple = "SIMPLE"
  6793. // RoutingStrategyTypeTerminal is a RoutingStrategyType enum value
  6794. RoutingStrategyTypeTerminal = "TERMINAL"
  6795. )
  6796. const (
  6797. // ScalingAdjustmentTypeChangeInCapacity is a ScalingAdjustmentType enum value
  6798. ScalingAdjustmentTypeChangeInCapacity = "ChangeInCapacity"
  6799. // ScalingAdjustmentTypeExactCapacity is a ScalingAdjustmentType enum value
  6800. ScalingAdjustmentTypeExactCapacity = "ExactCapacity"
  6801. // ScalingAdjustmentTypePercentChangeInCapacity is a ScalingAdjustmentType enum value
  6802. ScalingAdjustmentTypePercentChangeInCapacity = "PercentChangeInCapacity"
  6803. )
  6804. const (
  6805. // ScalingStatusTypeActive is a ScalingStatusType enum value
  6806. ScalingStatusTypeActive = "ACTIVE"
  6807. // ScalingStatusTypeUpdateRequested is a ScalingStatusType enum value
  6808. ScalingStatusTypeUpdateRequested = "UPDATE_REQUESTED"
  6809. // ScalingStatusTypeUpdating is a ScalingStatusType enum value
  6810. ScalingStatusTypeUpdating = "UPDATING"
  6811. // ScalingStatusTypeDeleteRequested is a ScalingStatusType enum value
  6812. ScalingStatusTypeDeleteRequested = "DELETE_REQUESTED"
  6813. // ScalingStatusTypeDeleting is a ScalingStatusType enum value
  6814. ScalingStatusTypeDeleting = "DELETING"
  6815. // ScalingStatusTypeDeleted is a ScalingStatusType enum value
  6816. ScalingStatusTypeDeleted = "DELETED"
  6817. // ScalingStatusTypeError is a ScalingStatusType enum value
  6818. ScalingStatusTypeError = "ERROR"
  6819. )